@teddysc/claude-run 0.6.0 → 0.8.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.
@@ -0,0 +1,318 @@
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 Zp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Mo={exports:{}},za={};/**
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 Rm;function _y(){if(Rm)return za;Rm=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 za.Fragment=a,za.jsx=i,za.jsxs=i,za}var Lm;function Oy(){return Lm||(Lm=1,Mo.exports=_y()),Mo.exports}var b=Oy(),_o={exports:{}},be={};/**
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 Dy(){if(Bm)return be;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 T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,U={};function A(C,V,k){this.props=C,this.context=V,this.refs=U,this.updater=k||T}A.prototype.isReactComponent={},A.prototype.setState=function(C,V){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,V,"setState")},A.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function q(){}q.prototype=A.prototype;function B(C,V,k){this.props=C,this.context=V,this.refs=U,this.updater=k||T}var J=B.prototype=new q;J.constructor=B,_(J,A.prototype),J.isPureReactComponent=!0;var K=Array.isArray;function R(){}var $={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function he(C,V,k){var le=k.ref;return{$$typeof:n,type:C,key:V,ref:le!==void 0?le:null,props:k}}function H(C,V){return he(C.type,V,C.props)}function ee(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function ne(C){var V={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(k){return V[k]})}var ve=/\/+/g;function re(C,V){return typeof C=="object"&&C!==null&&C.key!=null?ne(""+C.key):V.toString(36)}function W(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(R,R):(C.status="pending",C.then(function(V){C.status==="pending"&&(C.status="fulfilled",C.value=V)},function(V){C.status==="pending"&&(C.status="rejected",C.reason=V)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function j(C,V,k,le,de){var ce=typeof C;(ce==="undefined"||ce==="boolean")&&(C=null);var Ee=!1;if(C===null)Ee=!0;else switch(ce){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(C.$$typeof){case n:case a:Ee=!0;break;case y:return Ee=C._init,j(Ee(C._payload),V,k,le,de)}}if(Ee)return de=de(C),Ee=le===""?"."+re(C,0):le,K(de)?(k="",Ee!=null&&(k=Ee.replace(ve,"$&/")+"/"),j(de,V,k,"",function(ae){return ae})):de!=null&&(ee(de)&&(de=H(de,k+(de.key==null||C&&C.key===de.key?"":(""+de.key).replace(ve,"$&/")+"/")+Ee)),V.push(de)),1;Ee=0;var Ke=le===""?".":le+":";if(K(C))for(var Ue=0;Ue<C.length;Ue++)le=C[Ue],ce=Ke+re(le,Ue),Ee+=j(le,V,k,ce,de);else if(Ue=v(C),typeof Ue=="function")for(C=Ue.call(C),Ue=0;!(le=C.next()).done;)le=le.value,ce=Ke+re(le,Ue++),Ee+=j(le,V,k,ce,de);else if(ce==="object"){if(typeof C.then=="function")return j(W(C),V,k,le,de);throw V=String(C),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function Q(C,V,k){if(C==null)return C;var le=[],de=0;return j(C,le,"","",function(ce){return V.call(k,ce,de++)}),le}function ie(C){if(C._status===-1){var V=C._result;V=V(),V.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=V)}if(C._status===1)return C._result.default;throw C._result}var ye=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=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(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},E={map:Q,forEach:function(C,V,k){Q(C,function(){V.apply(this,arguments)},k)},count:function(C){var V=0;return Q(C,function(){V++}),V},toArray:function(C){return Q(C,function(V){return V})||[]},only:function(C){if(!ee(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return be.Activity=g,be.Children=E,be.Component=A,be.Fragment=i,be.Profiler=s,be.PureComponent=B,be.StrictMode=u,be.Suspense=p,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,be.__COMPILER_RUNTIME={__proto__:null,c:function(C){return $.H.useMemoCache(C)}},be.cache=function(C){return function(){return C.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(C,V,k){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var le=_({},C.props),de=C.key;if(V!=null)for(ce in V.key!==void 0&&(de=""+V.key),V)!ue.call(V,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&V.ref===void 0||(le[ce]=V[ce]);var ce=arguments.length-2;if(ce===1)le.children=k;else if(1<ce){for(var Ee=Array(ce),Ke=0;Ke<ce;Ke++)Ee[Ke]=arguments[Ke+2];le.children=Ee}return he(C.type,de,le)},be.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},be.createElement=function(C,V,k){var le,de={},ce=null;if(V!=null)for(le in V.key!==void 0&&(ce=""+V.key),V)ue.call(V,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(de[le]=V[le]);var Ee=arguments.length-2;if(Ee===1)de.children=k;else if(1<Ee){for(var Ke=Array(Ee),Ue=0;Ue<Ee;Ue++)Ke[Ue]=arguments[Ue+2];de.children=Ke}if(C&&C.defaultProps)for(le in Ee=C.defaultProps,Ee)de[le]===void 0&&(de[le]=Ee[le]);return he(C,ce,de)},be.createRef=function(){return{current:null}},be.forwardRef=function(C){return{$$typeof:d,render:C}},be.isValidElement=ee,be.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:ie}},be.memo=function(C,V){return{$$typeof:m,type:C,compare:V===void 0?null:V}},be.startTransition=function(C){var V=$.T,k={};$.T=k;try{var le=C(),de=$.S;de!==null&&de(k,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(R,ye)}catch(ce){ye(ce)}finally{V!==null&&k.types!==null&&(V.types=k.types),$.T=V}},be.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},be.use=function(C){return $.H.use(C)},be.useActionState=function(C,V,k){return $.H.useActionState(C,V,k)},be.useCallback=function(C,V){return $.H.useCallback(C,V)},be.useContext=function(C){return $.H.useContext(C)},be.useDebugValue=function(){},be.useDeferredValue=function(C,V){return $.H.useDeferredValue(C,V)},be.useEffect=function(C,V){return $.H.useEffect(C,V)},be.useEffectEvent=function(C){return $.H.useEffectEvent(C)},be.useId=function(){return $.H.useId()},be.useImperativeHandle=function(C,V,k){return $.H.useImperativeHandle(C,V,k)},be.useInsertionEffect=function(C,V){return $.H.useInsertionEffect(C,V)},be.useLayoutEffect=function(C,V){return $.H.useLayoutEffect(C,V)},be.useMemo=function(C,V){return $.H.useMemo(C,V)},be.useOptimistic=function(C,V){return $.H.useOptimistic(C,V)},be.useReducer=function(C,V,k){return $.H.useReducer(C,V,k)},be.useRef=function(C){return $.H.useRef(C)},be.useState=function(C){return $.H.useState(C)},be.useSyncExternalStore=function(C,V,k){return $.H.useSyncExternalStore(C,V,k)},be.useTransition=function(){return $.H.useTransition()},be.version="19.2.4",be}var Um;function pc(){return Um||(Um=1,_o.exports=Dy()),_o.exports}var P=pc(),Oo={exports:{}},ka={},Do={exports:{}},Ro={};/**
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 Hm;function Ry(){return Hm||(Hm=1,(function(n){function a(j,Q){var ie=j.length;j.push(Q);e:for(;0<ie;){var ye=ie-1>>>1,E=j[ye];if(0<s(E,Q))j[ye]=Q,j[ie]=E,ie=ye;else break e}}function i(j){return j.length===0?null:j[0]}function u(j){if(j.length===0)return null;var Q=j[0],ie=j.pop();if(ie!==Q){j[0]=ie;e:for(var ye=0,E=j.length,C=E>>>1;ye<C;){var V=2*(ye+1)-1,k=j[V],le=V+1,de=j[le];if(0>s(k,ie))le<E&&0>s(de,k)?(j[ye]=de,j[le]=ie,ye=le):(j[ye]=k,j[V]=ie,ye=V);else if(le<E&&0>s(de,ie))j[ye]=de,j[le]=ie,ye=le;else break e}}return Q}function s(j,Q){var ie=j.sortIndex-Q.sortIndex;return ie!==0?ie:j.id-Q.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,T=!1,_=!1,U=!1,A=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function J(j){for(var Q=i(m);Q!==null;){if(Q.callback===null)u(m);else if(Q.startTime<=j)u(m),Q.sortIndex=Q.expirationTime,a(p,Q);else break;Q=i(m)}}function K(j){if(_=!1,J(j),!T)if(i(p)!==null)T=!0,R||(R=!0,ne());else{var Q=i(m);Q!==null&&W(K,Q.startTime-j)}}var R=!1,$=-1,ue=5,he=-1;function H(){return U?!0:!(n.unstable_now()-he<ue)}function ee(){if(U=!1,R){var j=n.unstable_now();he=j;var Q=!0;try{e:{T=!1,_&&(_=!1,q($),$=-1),v=!0;var ie=S;try{t:{for(J(j),g=i(p);g!==null&&!(g.expirationTime>j&&H());){var ye=g.callback;if(typeof ye=="function"){g.callback=null,S=g.priorityLevel;var E=ye(g.expirationTime<=j);if(j=n.unstable_now(),typeof E=="function"){g.callback=E,J(j),Q=!0;break t}g===i(p)&&u(p),J(j)}else u(p);g=i(p)}if(g!==null)Q=!0;else{var C=i(m);C!==null&&W(K,C.startTime-j),Q=!1}}break e}finally{g=null,S=ie,v=!1}Q=void 0}}finally{Q?ne():R=!1}}}var ne;if(typeof B=="function")ne=function(){B(ee)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,re=ve.port2;ve.port1.onmessage=ee,ne=function(){re.postMessage(null)}}else ne=function(){A(ee,0)};function W(j,Q){$=A(function(){j(n.unstable_now())},Q)}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(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(j){switch(S){case 1:case 2:case 3:var Q=3;break;default:Q=S}var ie=S;S=Q;try{return j()}finally{S=ie}},n.unstable_requestPaint=function(){U=!0},n.unstable_runWithPriority=function(j,Q){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var ie=S;S=j;try{return Q()}finally{S=ie}},n.unstable_scheduleCallback=function(j,Q,ie){var ye=n.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?ye+ie:ye):ie=ye,j){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=ie+E,j={id:y++,callback:Q,priorityLevel:j,startTime:ie,expirationTime:E,sortIndex:-1},ie>ye?(j.sortIndex=ie,a(m,j),i(p)===null&&j===i(m)&&(_?(q($),$=-1):_=!0,W(K,ie-ye))):(j.sortIndex=E,a(p,j),T||v||(T=!0,R||(R=!0,ne()))),j},n.unstable_shouldYield=H,n.unstable_wrapCallback=function(j){var Q=S;return function(){var ie=S;S=Q;try{return j.apply(this,arguments)}finally{S=ie}}}})(Ro)),Ro}var qm;function Ly(){return qm||(qm=1,Do.exports=Ry()),Do.exports}var Lo={exports:{}},yt={};/**
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 Ym;function By(){if(Ym)return yt;Ym=1;var n=pc();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 yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,yt.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)},yt.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()}},yt.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))},yt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},yt.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})}},yt.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)},yt.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})}},yt.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)},yt.requestFormReset=function(p){u.d.r(p)},yt.unstable_batchedUpdates=function(p,m){return p(m)},yt.useFormState=function(p,m,y){return f.H.useFormState(p,m,y)},yt.useFormStatus=function(){return f.H.useHostTransitionStatus()},yt.version="19.2.4",yt}var Vm;function Kp(){if(Vm)return Lo.exports;Vm=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(),Lo.exports=By(),Lo.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 Xm;function Uy(){if(Xm)return ka;Xm=1;var n=Ly(),a=pc(),i=Kp();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"),T=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),B=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function re(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case A:return"Profiler";case U:return"StrictMode";case K:return"Suspense";case R:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case B:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var W=Array.isArray,j=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},ye=[],E=-1;function C(e){return{current:e}}function V(e){0>E||(e.current=ye[E],ye[E]=null,E--)}function k(e,t){E++,ye[E]=e.current,e.current=t}var le=C(null),de=C(null),ce=C(null),Ee=C(null);function Ke(e,t){switch(k(ce,t),k(de,e),k(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?im(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=im(t),e=am(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(le),k(le,e)}function Ue(){V(le),V(de),V(ce)}function ae(e){e.memoizedState!==null&&k(Ee,e);var t=le.current,l=am(t,e.type);t!==l&&(k(de,e),k(le,l))}function xe(e){de.current===e&&(V(le),V(de)),Ee.current===e&&(V(Ee),ya._currentValue=ie)}var Ae,ln;function st(e){if(Ae===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ae=t&&t[1]||"",ln=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ae+e+ln}var cn=!1;function dl(e,t){if(!e||cn)return"";cn=!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 w=x.split(`
44
+ `),D=z.split(`
45
+ `);for(o=r=0;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(r===w.length||o===D.length)for(r=w.length-1,o=D.length-1;1<=r&&0<=o&&w[r]!==D[o];)o--;for(;1<=r&&0<=o;r--,o--)if(w[r]!==D[o]){if(r!==1||o!==1)do if(r--,o--,0>o||w[r]!==D[o]){var X=`
46
+ `+w[r].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=r&&0<=o);break}}}finally{cn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?st(l):""}function Hn(e,t){switch(e.tag){case 26:case 27:case 5:return st(e.type);case 16:return st("Lazy");case 13:return e.child!==t&&t!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return dl(e.type,!1);case 11:return dl(e.type.render,!1);case 1:return dl(e.type,!0);case 31:return st("Activity");default:return""}}function ml(e){try{var t="",l=null;do t+=Hn(e,l),l=e,e=e.return;while(e);return t}catch(r){return`
47
+ Error generating stack: `+r.message+`
48
+ `+r.stack}}var xn=Object.prototype.hasOwnProperty,Ll=n.unstable_scheduleCallback,ji=n.unstable_cancelCallback,pu=n.unstable_shouldYield,gu=n.unstable_requestPaint,St=n.unstable_now,xu=n.unstable_getCurrentPriorityLevel,G=n.unstable_ImmediatePriority,te=n.unstable_UserBlockingPriority,ge=n.unstable_NormalPriority,Te=n.unstable_LowPriority,He=n.unstable_IdlePriority,Lt=n.log,yn=n.unstable_setDisableYieldValue,zt=null,ot=null;function Tt(e){if(typeof Lt=="function"&&yn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(zt,e)}catch{}}var Qe=Math.clz32?Math.clz32:yg,qn=Math.log,an=Math.LN2;function yg(e){return e>>>=0,e===0?32:31-(qn(e)/an|0)|0}var Ua=256,Ha=262144,qa=4194304;function pl(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 Ya(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=pl(r):(x&=z,x!==0?o=pl(x):l||(l=z&~e,l!==0&&(o=pl(l))))):(z=r&~h,z!==0?o=pl(z):x!==0?o=pl(x):l||(l=r&~e,l!==0&&(o=pl(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 Mi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bg(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 Uc(){var e=qa;return qa<<=1,(qa&62914560)===0&&(qa=4194304),e}function yu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function _i(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vg(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,w=e.expirationTimes,D=e.hiddenUpdates;for(l=x&~l;0<l;){var X=31-Qe(l),Z=1<<X;z[X]=0,w[X]=-1;var L=D[X];if(L!==null)for(D[X]=null,X=0;X<L.length;X++){var Y=L[X];Y!==null&&(Y.lane&=-536870913)}l&=~Z}r!==0&&Hc(e,r,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(x&~t))}function Hc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|l&261930}function qc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var r=31-Qe(l),o=1<<r;o&t|e[r]&t&&(e[r]|=t),l&=~o}}function Yc(e,t){var l=t&-t;return l=(l&42)!==0?1:bu(l),(l&(e.suspendedLanes|t))!==0?0:l}function bu(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 vu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Nm(e.type))}function Xc(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var Yn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Yn,wt="__reactProps$"+Yn,Bl="__reactContainer$"+Yn,Su="__reactEvents$"+Yn,Sg="__reactListeners$"+Yn,zg="__reactHandles$"+Yn,Gc="__reactResources$"+Yn,Oi="__reactMarker$"+Yn;function zu(e){delete e[dt],delete e[wt],delete e[Su],delete e[Sg],delete e[zg]}function Ul(e){var t=e[dt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Bl]||l[dt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=hm(e);e!==null;){if(l=e[dt])return l;e=hm(e)}return t}e=l,l=e.parentNode}return null}function Hl(e){if(e=e[dt]||e[Bl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Di(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function ql(e){var t=e[Gc];return t||(t=e[Gc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[Oi]=!0}var Qc=new Set,Fc={};function gl(e,t){Yl(e,t),Yl(e+"Capture",t)}function Yl(e,t){for(Fc[e]=t,e=0;e<t.length;e++)Qc.add(t[e])}var kg=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]*$"),Zc={},Kc={};function Eg(e){return xn.call(Kc,e)?!0:xn.call(Zc,e)?!1:kg.test(e)?Kc[e]=!0:(Zc[e]=!0,!1)}function Va(e,t,l){if(Eg(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 Xa(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 bn(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 Ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tg(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 ku(e){if(!e._valueTracker){var t=Jc(e)?"checked":"value";e._valueTracker=Tg(e,t,""+e[t])}}function Ic(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),r="";return e&&(r=Jc(e)?e.checked?"true":"false":e.value),e=r,e!==l?(t.setValue(e),!0):!1}function Ga(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 wg=/[\n"\\]/g;function Zt(e){return e.replace(wg,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=""+Ft(t)):e.value!==""+Ft(t)&&(e.value=""+Ft(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Tu(e,x,Ft(t)):l!=null?Tu(e,x,Ft(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=""+Ft(z):e.removeAttribute("name")}function $c(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)){ku(e);return}l=l!=null?""+Ft(l):"",t=t!=null?""+Ft(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),ku(e)}function Tu(e,t,l){t==="number"&&Ga(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Vl(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=""+Ft(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 Wc(e,t,l){if(t!=null&&(t=""+Ft(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ft(l):""}function Pc(e,t,l,r){if(t==null){if(r!=null){if(l!=null)throw Error(u(92));if(W(r)){if(1<r.length)throw Error(u(93));r=r[0]}l=r}l==null&&(l=""),t=l}l=Ft(t),e.defaultValue=l,r=e.textContent,r===l&&r!==""&&r!==null&&(e.value=r),ku(e)}function Xl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Cg=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 ef(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||Cg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function tf(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&&ef(e,o,r)}else for(var h in t)t.hasOwnProperty(h)&&ef(e,h,t[h])}function wu(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 Ng=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"]]),Ag=/^[\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 Qa(e){return Ag.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function vn(){}var Cu=null;function Nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gl=null,Ql=null;function nf(e){var t=Hl(e);if(t&&(e=t.stateNode)){var l=e[wt]||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="'+Zt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var r=l[t];if(r!==e&&r.form===e.form){var o=r[wt]||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&&Ic(r)}break e;case"textarea":Wc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Vl(e,!!l.multiple,t,!1)}}}var Au=!1;function lf(e,t,l){if(Au)return e(t,l);Au=!0;try{var r=e(t);return r}finally{if(Au=!1,(Gl!==null||Ql!==null)&&(_r(),Gl&&(t=Gl,e=Ql,Ql=Gl=null,nf(t),e)))for(t=0;t<e.length;t++)nf(e[t])}}function Ri(e,t){var l=e.stateNode;if(l===null)return null;var r=l[wt]||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 Sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ju=!1;if(Sn)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){ju=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{ju=!1}var Vn=null,Mu=null,Fa=null;function af(){if(Fa)return Fa;var e,t=Mu,l=t.length,r,o="value"in Vn?Vn.value:Vn.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 Fa=o.slice(e,1<r?1-r:void 0)}function Za(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 Ka(){return!0}function rf(){return!1}function Ct(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)?Ka:rf,this.isPropagationStopped=rf,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=Ka)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ka)},persist:function(){},isPersistent:Ka}),t}var xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ja=Ct(xl),Bi=g({},xl,{view:0,detail:0}),jg=Ct(Bi),_u,Ou,Ui,Ia=g({},Bi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ru,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!==Ui&&(Ui&&e.type==="mousemove"?(_u=e.screenX-Ui.screenX,Ou=e.screenY-Ui.screenY):Ou=_u=0,Ui=e),_u)},movementY:function(e){return"movementY"in e?e.movementY:Ou}}),uf=Ct(Ia),Mg=g({},Ia,{dataTransfer:0}),_g=Ct(Mg),Og=g({},Bi,{relatedTarget:0}),Du=Ct(Og),Dg=g({},xl,{animationName:0,elapsedTime:0,pseudoElement:0}),Rg=Ct(Dg),Lg=g({},xl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bg=Ct(Lg),Ug=g({},xl,{data:0}),sf=Ct(Ug),Hg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qg={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"},Yg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yg[e])?!!t[e]:!1}function Ru(){return Vg}var Xg=g({},Bi,{key:function(e){if(e.key){var t=Hg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Za(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ru,charCode:function(e){return e.type==="keypress"?Za(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Za(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gg=Ct(Xg),Qg=g({},Ia,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),of=Ct(Qg),Fg=g({},Bi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ru}),Zg=Ct(Fg),Kg=g({},xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jg=Ct(Kg),Ig=g({},Ia,{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}),$g=Ct(Ig),Wg=g({},xl,{newState:0,oldState:0}),Pg=Ct(Wg),ex=[9,13,27,32],Lu=Sn&&"CompositionEvent"in window,Hi=null;Sn&&"documentMode"in document&&(Hi=document.documentMode);var tx=Sn&&"TextEvent"in window&&!Hi,cf=Sn&&(!Lu||Hi&&8<Hi&&11>=Hi),ff=" ",hf=!1;function df(e,t){switch(e){case"keyup":return ex.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fl=!1;function nx(e,t){switch(e){case"compositionend":return mf(t);case"keypress":return t.which!==32?null:(hf=!0,ff);case"textInput":return e=t.data,e===ff&&hf?null:e;default:return null}}function lx(e,t){if(Fl)return e==="compositionend"||!Lu&&df(e,t)?(e=af(),Fa=Mu=Vn=null,Fl=!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 cf&&t.locale!=="ko"?null:t.data;default:return null}}var ix={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 pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ix[e.type]:t==="textarea"}function gf(e,t,l,r){Gl?Ql?Ql.push(r):Ql=[r]:Gl=r,t=Hr(t,"onChange"),0<t.length&&(l=new Ja("onChange","change",null,l,r),e.push({event:l,listeners:t}))}var qi=null,Yi=null;function ax(e){Wd(e,0)}function $a(e){var t=Di(e);if(Ic(t))return e}function xf(e,t){if(e==="change")return t}var yf=!1;if(Sn){var Bu;if(Sn){var Uu="oninput"in document;if(!Uu){var bf=document.createElement("div");bf.setAttribute("oninput","return;"),Uu=typeof bf.oninput=="function"}Bu=Uu}else Bu=!1;yf=Bu&&(!document.documentMode||9<document.documentMode)}function vf(){qi&&(qi.detachEvent("onpropertychange",Sf),Yi=qi=null)}function Sf(e){if(e.propertyName==="value"&&$a(Yi)){var t=[];gf(t,Yi,e,Nu(e)),lf(ax,t)}}function rx(e,t,l){e==="focusin"?(vf(),qi=t,Yi=l,qi.attachEvent("onpropertychange",Sf)):e==="focusout"&&vf()}function ux(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $a(Yi)}function sx(e,t){if(e==="click")return $a(t)}function ox(e,t){if(e==="input"||e==="change")return $a(t)}function cx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:cx;function Vi(e,t){if(Bt(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(!xn.call(t,o)||!Bt(e[o],t[o]))return!1}return!0}function zf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kf(e,t){var l=zf(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=zf(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=Ga(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=Ga(e.document)}return t}function Hu(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 fx=Sn&&"documentMode"in document&&11>=document.documentMode,Zl=null,qu=null,Xi=null,Yu=!1;function wf(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Yu||Zl==null||Zl!==Ga(r)||(r=Zl,"selectionStart"in r&&Hu(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}),Xi&&Vi(Xi,r)||(Xi=r,r=Hr(qu,"onSelect"),0<r.length&&(t=new Ja("onSelect","select",null,t,l),e.push({event:t,listeners:r}),t.target=Zl)))}function yl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Kl={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionrun:yl("Transition","TransitionRun"),transitionstart:yl("Transition","TransitionStart"),transitioncancel:yl("Transition","TransitionCancel"),transitionend:yl("Transition","TransitionEnd")},Vu={},Cf={};Sn&&(Cf=document.createElement("div").style,"AnimationEvent"in window||(delete Kl.animationend.animation,delete Kl.animationiteration.animation,delete Kl.animationstart.animation),"TransitionEvent"in window||delete Kl.transitionend.transition);function bl(e){if(Vu[e])return Vu[e];if(!Kl[e])return e;var t=Kl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Cf)return Vu[e]=t[l];return e}var Nf=bl("animationend"),Af=bl("animationiteration"),jf=bl("animationstart"),hx=bl("transitionrun"),dx=bl("transitionstart"),mx=bl("transitioncancel"),Mf=bl("transitionend"),_f=new Map,Xu="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(" ");Xu.push("scrollEnd");function rn(e,t){_f.set(e,t),gl(t,[e])}var Wa=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Kt=[],Jl=0,Gu=0;function Pa(){for(var e=Jl,t=Gu=Jl=0;t<e;){var l=Kt[t];Kt[t++]=null;var r=Kt[t];Kt[t++]=null;var o=Kt[t];Kt[t++]=null;var h=Kt[t];if(Kt[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&&Of(l,o,h)}}function er(e,t,l,r){Kt[Jl++]=e,Kt[Jl++]=t,Kt[Jl++]=l,Kt[Jl++]=r,Gu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qu(e,t,l,r){return er(e,t,l,r),tr(e)}function vl(e,t){return er(e,null,null,t),tr(e)}function Of(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-Qe(l),e=h.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=l|536870912),h):null}function tr(e){if(50<fa)throw fa=0,eo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Il={};function px(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 Ut(e,t,l,r){return new px(e,t,l,r)}function Fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zn(e,t){var l=e.alternate;return l===null?(l=Ut(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 Df(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 nr(e,t,l,r,o,h){var x=0;if(r=e,typeof e=="function")Fu(e)&&(x=1);else if(typeof e=="string")x=vy(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=Ut(31,l,t,o),e.elementType=he,e.lanes=h,e;case _:return Sl(l.children,o,h,t);case U:x=8,o|=24;break;case A:return e=Ut(12,l,t,o|2),e.elementType=A,e.lanes=h,e;case K:return e=Ut(13,l,t,o),e.elementType=K,e.lanes=h,e;case R:return e=Ut(19,l,t,o),e.elementType=R,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:x=10;break e;case q:x=9;break e;case J:x=11;break e;case $:x=14;break e;case ue:x=16,r=null;break e}x=29,l=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Ut(x,l,t,o),t.elementType=e,t.type=r,t.lanes=h,t}function Sl(e,t,l,r){return e=Ut(7,e,r,t),e.lanes=l,e}function Zu(e,t,l){return e=Ut(6,e,null,t),e.lanes=l,e}function Rf(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function Ku(e,t,l){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lf=new WeakMap;function Jt(e,t){if(typeof e=="object"&&e!==null){var l=Lf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ml(t)},Lf.set(e,t),t)}return{value:e,source:t,stack:ml(t)}}var $l=[],Wl=0,lr=null,Gi=0,It=[],$t=0,Xn=null,fn=1,hn="";function kn(e,t){$l[Wl++]=Gi,$l[Wl++]=lr,lr=e,Gi=t}function Bf(e,t,l){It[$t++]=fn,It[$t++]=hn,It[$t++]=Xn,Xn=e;var r=fn;e=hn;var o=32-Qe(r)-1;r&=~(1<<o),l+=1;var h=32-Qe(t)+o;if(30<h){var x=o-o%5;h=(r&(1<<x)-1).toString(32),r>>=x,o-=x,fn=1<<32-Qe(t)+o|l<<o|r,hn=h+e}else fn=1<<h|l<<o|r,hn=e}function Ju(e){e.return!==null&&(kn(e,1),Bf(e,1,0))}function Iu(e){for(;e===lr;)lr=$l[--Wl],$l[Wl]=null,Gi=$l[--Wl],$l[Wl]=null;for(;e===Xn;)Xn=It[--$t],It[$t]=null,hn=It[--$t],It[$t]=null,fn=It[--$t],It[$t]=null}function Uf(e,t){It[$t++]=fn,It[$t++]=hn,It[$t++]=Xn,fn=t.id,hn=t.overflow,Xn=e}var mt=null,Ie=null,_e=!1,Gn=null,Wt=!1,$u=Error(u(519));function Qn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qi(Jt(t,e)),$u}function Hf(e){var t=e.stateNode,l=e.type,r=e.memoizedProps;switch(t[dt]=e,t[wt]=r,l){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(l=0;l<da.length;l++)Ce(da[l],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),$c(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),Pc(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||nm(t.textContent,l)?(r.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),r.onScroll!=null&&Ce("scroll",t),r.onScrollEnd!=null&&Ce("scrollend",t),r.onClick!=null&&(t.onclick=vn),t=!0):t=!1,t||Qn(e,!0)}function qf(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:Wt=!1;return;case 27:case 3:Wt=!0;return;default:mt=mt.return}}function Pl(e){if(e!==mt)return!1;if(!_e)return qf(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")||go(e.type,e.memoizedProps)),l=!l),l&&Ie&&Qn(e),qf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ie=fm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ie=fm(e)}else t===27?(t=Ie,al(e.type)?(e=So,So=null,Ie=e):Ie=t):Ie=mt?en(e.stateNode.nextSibling):null;return!0}function zl(){Ie=mt=null,_e=!1}function Wu(){var e=Gn;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),Gn=null),e}function Qi(e){Gn===null?Gn=[e]:Gn.push(e)}var Pu=C(null),kl=null,En=null;function Fn(e,t,l){k(Pu,t._currentValue),t._currentValue=l}function Tn(e){e._currentValue=Pu.current,V(Pu)}function es(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 ts(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 w=0;w<t.length;w++)if(z.context===t[w]){h.lanes|=l,z=h.alternate,z!==null&&(z.lanes|=l),es(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),es(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 ei(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;Bt(o.pendingProps.value,x.value)||(e!==null?e.push(z):e=[z])}}else if(o===Ee.current){if(x=o.alternate,x===null)throw Error(u(387));x.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ya):e=[ya])}o=o.return}e!==null&&ts(t,e,l,r),t.flags|=262144}function ir(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function El(e){kl=e,En=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Yf(kl,e)}function ar(e,t){return kl===null&&El(e),Yf(e,t)}function Yf(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 gx=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()})}},xx=n.unstable_scheduleCallback,yx=n.unstable_NormalPriority,lt={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ns(){return{controller:new gx,data:new Map,refCount:0}}function Fi(e){e.refCount--,e.refCount===0&&xx(yx,function(){e.controller.abort()})}var Zi=null,ls=0,ti=0,ni=null;function bx(e,t){if(Zi===null){var l=Zi=[];ls=0,ti=ro(),ni={status:"pending",value:void 0,then:function(r){l.push(r)}}}return ls++,t.then(Vf,Vf),t}function Vf(){if(--ls===0&&Zi!==null){ni!==null&&(ni.status="fulfilled");var e=Zi;Zi=null,ti=0,ni=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vx(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 Xf=j.S;j.S=function(e,t){wd=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bx(e,t),Xf!==null&&Xf(e,t)};var Tl=C(null);function is(){var e=Tl.current;return e!==null?e:Fe.pooledCache}function rr(e,t){t===null?k(Tl,Tl.current):k(Tl,t.pool)}function Gf(){var e=is();return e===null?null:{parent:lt._currentValue,pool:e}}var li=Error(u(460)),as=Error(u(474)),ur=Error(u(542)),sr={then:function(){}};function Qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ff(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(vn,vn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kf(e),e;default:if(typeof t.status=="string")t.then(vn,vn);else{if(e=Fe,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,Kf(e),e}throw Cl=t,li}}function wl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Cl=l,li):l}}var Cl=null;function Zf(){if(Cl===null)throw Error(u(459));var e=Cl;return Cl=null,e}function Kf(e){if(e===li||e===ur)throw Error(u(483))}var ii=null,Ki=0;function or(e){var t=Ki;return Ki+=1,ii===null&&(ii=[]),Ff(ii,e,t)}function Ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function cr(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 Jf(e){function t(M,N){if(e){var O=M.deletions;O===null?(M.deletions=[N],M.flags|=16):O.push(N)}}function l(M,N){if(!e)return null;for(;N!==null;)t(M,N),N=N.sibling;return null}function r(M){for(var N=new Map;M!==null;)M.key!==null?N.set(M.key,M):N.set(M.index,M),M=M.sibling;return N}function o(M,N){return M=zn(M,N),M.index=0,M.sibling=null,M}function h(M,N,O){return M.index=O,e?(O=M.alternate,O!==null?(O=O.index,O<N?(M.flags|=67108866,N):O):(M.flags|=67108866,N)):(M.flags|=1048576,N)}function x(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function z(M,N,O,F){return N===null||N.tag!==6?(N=Zu(O,M.mode,F),N.return=M,N):(N=o(N,O),N.return=M,N)}function w(M,N,O,F){var fe=O.type;return fe===_?X(M,N,O.props.children,F,O.key):N!==null&&(N.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ue&&wl(fe)===N.type)?(N=o(N,O.props),Ji(N,O),N.return=M,N):(N=nr(O.type,O.key,O.props,null,M.mode,F),Ji(N,O),N.return=M,N)}function D(M,N,O,F){return N===null||N.tag!==4||N.stateNode.containerInfo!==O.containerInfo||N.stateNode.implementation!==O.implementation?(N=Ku(O,M.mode,F),N.return=M,N):(N=o(N,O.children||[]),N.return=M,N)}function X(M,N,O,F,fe){return N===null||N.tag!==7?(N=Sl(O,M.mode,F,fe),N.return=M,N):(N=o(N,O),N.return=M,N)}function Z(M,N,O){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Zu(""+N,M.mode,O),N.return=M,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return O=nr(N.type,N.key,N.props,null,M.mode,O),Ji(O,N),O.return=M,O;case T:return N=Ku(N,M.mode,O),N.return=M,N;case ue:return N=wl(N),Z(M,N,O)}if(W(N)||ne(N))return N=Sl(N,M.mode,O,null),N.return=M,N;if(typeof N.then=="function")return Z(M,or(N),O);if(N.$$typeof===B)return Z(M,ar(M,N),O);cr(M,N)}return null}function L(M,N,O,F){var fe=N!==null?N.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return fe!==null?null:z(M,N,""+O,F);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case v:return O.key===fe?w(M,N,O,F):null;case T:return O.key===fe?D(M,N,O,F):null;case ue:return O=wl(O),L(M,N,O,F)}if(W(O)||ne(O))return fe!==null?null:X(M,N,O,F,null);if(typeof O.then=="function")return L(M,N,or(O),F);if(O.$$typeof===B)return L(M,N,ar(M,O),F);cr(M,O)}return null}function Y(M,N,O,F,fe){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return M=M.get(O)||null,z(N,M,""+F,fe);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case v:return M=M.get(F.key===null?O:F.key)||null,w(N,M,F,fe);case T:return M=M.get(F.key===null?O:F.key)||null,D(N,M,F,fe);case ue:return F=wl(F),Y(M,N,O,F,fe)}if(W(F)||ne(F))return M=M.get(O)||null,X(N,M,F,fe,null);if(typeof F.then=="function")return Y(M,N,O,or(F),fe);if(F.$$typeof===B)return Y(M,N,O,ar(N,F),fe);cr(N,F)}return null}function se(M,N,O,F){for(var fe=null,Re=null,oe=N,ze=N=0,Me=null;oe!==null&&ze<O.length;ze++){oe.index>ze?(Me=oe,oe=null):Me=oe.sibling;var Le=L(M,oe,O[ze],F);if(Le===null){oe===null&&(oe=Me);break}e&&oe&&Le.alternate===null&&t(M,oe),N=h(Le,N,ze),Re===null?fe=Le:Re.sibling=Le,Re=Le,oe=Me}if(ze===O.length)return l(M,oe),_e&&kn(M,ze),fe;if(oe===null){for(;ze<O.length;ze++)oe=Z(M,O[ze],F),oe!==null&&(N=h(oe,N,ze),Re===null?fe=oe:Re.sibling=oe,Re=oe);return _e&&kn(M,ze),fe}for(oe=r(oe);ze<O.length;ze++)Me=Y(oe,M,ze,O[ze],F),Me!==null&&(e&&Me.alternate!==null&&oe.delete(Me.key===null?ze:Me.key),N=h(Me,N,ze),Re===null?fe=Me:Re.sibling=Me,Re=Me);return e&&oe.forEach(function(cl){return t(M,cl)}),_e&&kn(M,ze),fe}function pe(M,N,O,F){if(O==null)throw Error(u(151));for(var fe=null,Re=null,oe=N,ze=N=0,Me=null,Le=O.next();oe!==null&&!Le.done;ze++,Le=O.next()){oe.index>ze?(Me=oe,oe=null):Me=oe.sibling;var cl=L(M,oe,Le.value,F);if(cl===null){oe===null&&(oe=Me);break}e&&oe&&cl.alternate===null&&t(M,oe),N=h(cl,N,ze),Re===null?fe=cl:Re.sibling=cl,Re=cl,oe=Me}if(Le.done)return l(M,oe),_e&&kn(M,ze),fe;if(oe===null){for(;!Le.done;ze++,Le=O.next())Le=Z(M,Le.value,F),Le!==null&&(N=h(Le,N,ze),Re===null?fe=Le:Re.sibling=Le,Re=Le);return _e&&kn(M,ze),fe}for(oe=r(oe);!Le.done;ze++,Le=O.next())Le=Y(oe,M,ze,Le.value,F),Le!==null&&(e&&Le.alternate!==null&&oe.delete(Le.key===null?ze:Le.key),N=h(Le,N,ze),Re===null?fe=Le:Re.sibling=Le,Re=Le);return e&&oe.forEach(function(My){return t(M,My)}),_e&&kn(M,ze),fe}function Ge(M,N,O,F){if(typeof O=="object"&&O!==null&&O.type===_&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case v:e:{for(var fe=O.key;N!==null;){if(N.key===fe){if(fe=O.type,fe===_){if(N.tag===7){l(M,N.sibling),F=o(N,O.props.children),F.return=M,M=F;break e}}else if(N.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===ue&&wl(fe)===N.type){l(M,N.sibling),F=o(N,O.props),Ji(F,O),F.return=M,M=F;break e}l(M,N);break}else t(M,N);N=N.sibling}O.type===_?(F=Sl(O.props.children,M.mode,F,O.key),F.return=M,M=F):(F=nr(O.type,O.key,O.props,null,M.mode,F),Ji(F,O),F.return=M,M=F)}return x(M);case T:e:{for(fe=O.key;N!==null;){if(N.key===fe)if(N.tag===4&&N.stateNode.containerInfo===O.containerInfo&&N.stateNode.implementation===O.implementation){l(M,N.sibling),F=o(N,O.children||[]),F.return=M,M=F;break e}else{l(M,N);break}else t(M,N);N=N.sibling}F=Ku(O,M.mode,F),F.return=M,M=F}return x(M);case ue:return O=wl(O),Ge(M,N,O,F)}if(W(O))return se(M,N,O,F);if(ne(O)){if(fe=ne(O),typeof fe!="function")throw Error(u(150));return O=fe.call(O),pe(M,N,O,F)}if(typeof O.then=="function")return Ge(M,N,or(O),F);if(O.$$typeof===B)return Ge(M,N,ar(M,O),F);cr(M,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,N!==null&&N.tag===6?(l(M,N.sibling),F=o(N,O),F.return=M,M=F):(l(M,N),F=Zu(O,M.mode,F),F.return=M,M=F),x(M)):l(M,N)}return function(M,N,O,F){try{Ki=0;var fe=Ge(M,N,O,F);return ii=null,fe}catch(oe){if(oe===li||oe===ur)throw oe;var Re=Ut(29,oe,null,M.mode);return Re.lanes=F,Re.return=M,Re}finally{}}}var Nl=Jf(!0),If=Jf(!1),Zn=!1;function rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function us(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 Kn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jn(e,t,l){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Be&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=tr(e),Of(e,null,l),t}return er(e,r,t,l),tr(e)}function Ii(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,qc(e,l)}}function ss(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 os=!1;function $i(){if(os){var e=ni;if(e!==null)throw e}}function Wi(e,t,l,r){os=!1;var o=e.updateQueue;Zn=!1;var h=o.firstBaseUpdate,x=o.lastBaseUpdate,z=o.shared.pending;if(z!==null){o.shared.pending=null;var w=z,D=w.next;w.next=null,x===null?h=D:x.next=D,x=w;var X=e.alternate;X!==null&&(X=X.updateQueue,z=X.lastBaseUpdate,z!==x&&(z===null?X.firstBaseUpdate=D:z.next=D,X.lastBaseUpdate=w))}if(h!==null){var Z=o.baseState;x=0,X=D=w=null,z=h;do{var L=z.lane&-536870913,Y=L!==z.lane;if(Y?(je&L)===L:(r&L)===L){L!==0&&L===ti&&(os=!0),X!==null&&(X=X.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var se=e,pe=z;L=t;var Ge=l;switch(pe.tag){case 1:if(se=pe.payload,typeof se=="function"){Z=se.call(Ge,Z,L);break e}Z=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=pe.payload,L=typeof se=="function"?se.call(Ge,Z,L):se,L==null)break e;Z=g({},Z,L);break e;case 2:Zn=!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},X===null?(D=X=Y,w=Z):X=X.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);X===null&&(w=Z),o.baseState=w,o.firstBaseUpdate=D,o.lastBaseUpdate=X,h===null&&(o.shared.lanes=0),el|=x,e.lanes=x,e.memoizedState=Z}}function $f(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Wf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)$f(l[e],t)}var ai=C(null),fr=C(0);function Pf(e,t){e=Dn,k(fr,e),k(ai,t),Dn=e|t.baseLanes}function cs(){k(fr,Dn),k(ai,ai.current)}function fs(){Dn=fr.current,V(ai),V(fr)}var Ht=C(null),Pt=null;function In(e){var t=e.alternate;k(tt,tt.current&1),k(Ht,e),Pt===null&&(t===null||ai.current!==null||t.memoizedState!==null)&&(Pt=e)}function hs(e){k(tt,tt.current),k(Ht,e),Pt===null&&(Pt=e)}function eh(e){e.tag===22?(k(tt,tt.current),k(Ht,e),Pt===null&&(Pt=e)):$n()}function $n(){k(tt,tt.current),k(Ht,Ht.current)}function qt(e){V(Ht),Pt===e&&(Pt=null),V(tt)}var tt=C(0);function hr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||bo(l)||vo(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 wn=0,Se=null,Ve=null,it=null,dr=!1,ri=!1,Al=!1,mr=0,Pi=0,ui=null,Sx=0;function Pe(){throw Error(u(321))}function ds(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Bt(e[l],t[l]))return!1;return!0}function ms(e,t,l,r,o,h){return wn=h,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Bh:As,Al=!1,h=l(r,o),Al=!1,ri&&(h=nh(t,l,r,o)),th(e),h}function th(e){j.H=na;var t=Ve!==null&&Ve.next!==null;if(wn=0,it=Ve=Se=null,dr=!1,Pi=0,ui=null,t)throw Error(u(300));e===null||at||(e=e.dependencies,e!==null&&ir(e)&&(at=!0))}function nh(e,t,l,r){Se=e;var o=0;do{if(ri&&(ui=null),Pi=0,ri=!1,25<=o)throw Error(u(301));if(o+=1,it=Ve=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}j.H=Uh,h=t(l,r)}while(ri);return h}function zx(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?ea(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(Se.flags|=1024),t}function ps(){var e=mr!==0;return mr=0,e}function gs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function xs(e){if(dr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}dr=!1}wn=0,it=Ve=Se=null,ri=!1,Pi=mr=0,ui=null}function kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Se.memoizedState=it=e:it=it.next=e,it}function nt(){if(Ve===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=it===null?Se.memoizedState:it.next;if(t!==null)it=t,Ve=e;else{if(e===null)throw Se.alternate===null?Error(u(467)):Error(u(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},it===null?Se.memoizedState=it=e:it=it.next=e}return it}function pr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ea(e){var t=Pi;return Pi+=1,ui===null&&(ui=[]),e=Ff(ui,e,t),t=Se,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Bh:As),e}function gr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ea(e);if(e.$$typeof===B)return pt(e)}throw Error(u(438,String(e)))}function ys(e){var t=null,l=Se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var r=Se.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=pr(),Se.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]=H;return t.index++,l}function Cn(e,t){return typeof t=="function"?t(e):t}function xr(e){var t=nt();return bs(t,Ve,e)}function bs(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,w=null,D=t,X=!1;do{var Z=D.lane&-536870913;if(Z!==D.lane?(je&Z)===Z:(wn&Z)===Z){var L=D.revertLane;if(L===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Z===ti&&(X=!0);else if((wn&L)===L){D=D.next,L===ti&&(X=!0);continue}else Z={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},w===null?(z=w=Z,x=h):w=w.next=Z,Se.lanes|=L,el|=L;Z=D.action,Al&&l(h,Z),h=D.hasEagerState?D.eagerState:l(h,Z)}else L={lane:Z,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},w===null?(z=w=L,x=h):w=w.next=L,Se.lanes|=Z,el|=Z;D=D.next}while(D!==null&&D!==t);if(w===null?x=h:w.next=z,!Bt(h,e.memoizedState)&&(at=!0,X&&(l=ni,l!==null)))throw l;e.memoizedState=h,e.baseState=x,e.baseQueue=w,r.lastRenderedState=h}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function vs(e){var t=nt(),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);Bt(h,t.memoizedState)||(at=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),l.lastRenderedState=h}return[h,r]}function lh(e,t,l){var r=Se,o=nt(),h=_e;if(h){if(l===void 0)throw Error(u(407));l=l()}else l=t();var x=!Bt((Ve||o).memoizedState,l);if(x&&(o.memoizedState=l,at=!0),o=o.queue,ks(rh.bind(null,r,o,e),[e]),o.getSnapshot!==t||x||it!==null&&it.memoizedState.tag&1){if(r.flags|=2048,si(9,{destroy:void 0},ah.bind(null,r,o,l,t),null),Fe===null)throw Error(u(349));h||(wn&127)!==0||ih(r,t,l)}return l}function ih(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=Se.updateQueue,t===null?(t=pr(),Se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ah(e,t,l,r){t.value=l,t.getSnapshot=r,uh(t)&&sh(e)}function rh(e,t,l){return l(function(){uh(t)&&sh(e)})}function uh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Bt(e,l)}catch{return!0}}function sh(e){var t=vl(e,2);t!==null&&_t(t,e,2)}function Ss(e){var t=kt();if(typeof e=="function"){var l=e;if(e=l(),Al){Tt(!0);try{l()}finally{Tt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:e},t}function oh(e,t,l,r){return e.baseState=l,bs(e,Ve,typeof r=="function"?r:Cn)}function kx(e,t,l,r,o){if(vr(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)}};j.T!==null?l(!0):h.isTransition=!1,r(h),l=t.pending,l===null?(h.next=t.pending=h,ch(t,h)):(h.next=l.next,t.pending=l.next=h)}}function ch(e,t){var l=t.action,r=t.payload,o=e.state;if(t.isTransition){var h=j.T,x={};j.T=x;try{var z=l(o,r),w=j.S;w!==null&&w(x,z),fh(e,t,z)}catch(D){zs(e,t,D)}finally{h!==null&&x.types!==null&&(h.types=x.types),j.T=h}}else try{h=l(o,r),fh(e,t,h)}catch(D){zs(e,t,D)}}function fh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(r){hh(e,t,r)},function(r){return zs(e,t,r)}):hh(e,t,l)}function hh(e,t,l){t.status="fulfilled",t.value=l,dh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ch(e,l)))}function zs(e,t,l){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=l,dh(t),t=t.next;while(t!==r)}e.action=null}function dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mh(e,t){return t}function ph(e,t){if(_e){var l=Fe.formState;if(l!==null){e:{var r=Se;if(_e){if(Ie){t:{for(var o=Ie,h=Wt;o.nodeType!==8;){if(!h){o=null;break t}if(o=en(o.nextSibling),o===null){o=null;break t}}h=o.data,o=h==="F!"||h==="F"?o:null}if(o){Ie=en(o.nextSibling),r=o.data==="F!";break e}}Qn(r)}r=!1}r&&(t=l[0])}}return l=kt(),l.memoizedState=l.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mh,lastRenderedState:t},l.queue=r,l=Dh.bind(null,Se,r),r.dispatch=l,r=Ss(!1),h=Ns.bind(null,Se,!1,r.queue),r=kt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,l=kx.bind(null,Se,o,h,l),o.dispatch=l,r.memoizedState=e,[t,l,!1]}function gh(e){var t=nt();return xh(t,Ve,e)}function xh(e,t,l){if(t=bs(e,t,mh)[0],e=xr(Cn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=ea(t)}catch(x){throw x===li?ur:x}else r=t;t=nt();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(Se.flags|=2048,si(9,{destroy:void 0},Ex.bind(null,o,l),null)),[r,h,e]}function Ex(e,t){e.action=t}function yh(e){var t=nt(),l=Ve;if(l!==null)return xh(t,l,e);nt(),t=t.memoizedState,l=nt();var r=l.queue.dispatch;return l.memoizedState=e,[t,r,!1]}function si(e,t,l,r){return e={tag:e,create:l,deps:r,inst:t,next:null},t=Se.updateQueue,t===null&&(t=pr(),Se.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 bh(){return nt().memoizedState}function yr(e,t,l,r){var o=kt();Se.flags|=e,o.memoizedState=si(1|t,{destroy:void 0},l,r===void 0?null:r)}function br(e,t,l,r){var o=nt();r=r===void 0?null:r;var h=o.memoizedState.inst;Ve!==null&&r!==null&&ds(r,Ve.memoizedState.deps)?o.memoizedState=si(t,h,l,r):(Se.flags|=e,o.memoizedState=si(1|t,h,l,r))}function vh(e,t){yr(8390656,8,e,t)}function ks(e,t){br(2048,8,e,t)}function Tx(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=pr(),Se.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Sh(e){var t=nt().memoizedState;return Tx({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function zh(e,t){return br(4,2,e,t)}function kh(e,t){return br(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,br(4,4,Eh.bind(null,t,e),l)}function Es(){}function wh(e,t){var l=nt();t=t===void 0?null:t;var r=l.memoizedState;return t!==null&&ds(t,r[1])?r[0]:(l.memoizedState=[e,t],e)}function Ch(e,t){var l=nt();t=t===void 0?null:t;var r=l.memoizedState;if(t!==null&&ds(t,r[1]))return r[0];if(r=e(),Al){Tt(!0);try{e()}finally{Tt(!1)}}return l.memoizedState=[r,t],r}function Ts(e,t,l){return l===void 0||(wn&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Nd(),Se.lanes|=e,el|=e,l)}function Nh(e,t,l,r){return Bt(l,t)?l:ai.current!==null?(e=Ts(e,l,r),Bt(e,t)||(at=!0),e):(wn&42)===0||(wn&1073741824)!==0&&(je&261930)===0?(at=!0,e.memoizedState=l):(e=Nd(),Se.lanes|=e,el|=e,t)}function Ah(e,t,l,r,o){var h=Q.p;Q.p=h!==0&&8>h?h:8;var x=j.T,z={};j.T=z,Ns(e,!1,t,l);try{var w=o(),D=j.S;if(D!==null&&D(z,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var X=vx(w,r);ta(e,t,X,Xt(e))}else ta(e,t,r,Xt(e))}catch(Z){ta(e,t,{then:function(){},status:"rejected",reason:Z},Xt())}finally{Q.p=h,x!==null&&z.types!==null&&(x.types=z.types),j.T=x}}function wx(){}function ws(e,t,l,r){if(e.tag!==5)throw Error(u(476));var o=jh(e).queue;Ah(e,o,t,ie,l===null?wx:function(){return Mh(e),l(r)})}function jh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mh(e){var t=jh(e);t.next===null&&(t=e.alternate.memoizedState),ta(e,t.next.queue,{},Xt())}function Cs(){return pt(ya)}function _h(){return nt().memoizedState}function Oh(){return nt().memoizedState}function Cx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Xt();e=Kn(l);var r=Jn(t,e,l);r!==null&&(_t(r,t,l),Ii(r,t,l)),t={cache:ns()},e.payload=t;return}t=t.return}}function Nx(e,t,l){var r=Xt();l={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},vr(e)?Rh(t,l):(l=Qu(e,t,l,r),l!==null&&(_t(l,e,r),Lh(l,t,r)))}function Dh(e,t,l){var r=Xt();ta(e,t,l,r)}function ta(e,t,l,r){var o={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(vr(e))Rh(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,Bt(z,x))return er(e,t,o,0),Fe===null&&Pa(),!1}catch{}finally{}if(l=Qu(e,t,o,r),l!==null)return _t(l,e,r),Lh(l,t,r),!0}return!1}function Ns(e,t,l,r){if(r={lane:2,revertLane:ro(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},vr(e)){if(t)throw Error(u(479))}else t=Qu(e,l,r,2),t!==null&&_t(t,e,2)}function vr(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Rh(e,t){ri=dr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Lh(e,t,l){if((l&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,qc(e,l)}}var na={readContext:pt,use:gr,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useLayoutEffect:Pe,useInsertionEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useSyncExternalStore:Pe,useId:Pe,useHostTransitionStatus:Pe,useFormState:Pe,useActionState:Pe,useOptimistic:Pe,useMemoCache:Pe,useCacheRefresh:Pe};na.useEffectEvent=Pe;var Bh={readContext:pt,use:gr,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:vh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,yr(4194308,4,Eh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return yr(4194308,4,e,t)},useInsertionEffect:function(e,t){yr(4,2,e,t)},useMemo:function(e,t){var l=kt();t=t===void 0?null:t;var r=e();if(Al){Tt(!0);try{e()}finally{Tt(!1)}}return l.memoizedState=[r,t],r},useReducer:function(e,t,l){var r=kt();if(l!==void 0){var o=l(t);if(Al){Tt(!0);try{l(t)}finally{Tt(!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=Nx.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,l=Dh.bind(null,Se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Es,useDeferredValue:function(e,t){var l=kt();return Ts(l,e,t)},useTransition:function(){var e=Ss(!1);return e=Ah.bind(null,Se,e.queue,!0,!1),kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var r=Se,o=kt();if(_e){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Fe===null)throw Error(u(349));(je&127)!==0||ih(r,t,l)}o.memoizedState=l;var h={value:l,getSnapshot:t};return o.queue=h,vh(rh.bind(null,r,h,e),[e]),r.flags|=2048,si(9,{destroy:void 0},ah.bind(null,r,h,l,t),null),l},useId:function(){var e=kt(),t=Fe.identifierPrefix;if(_e){var l=hn,r=fn;l=(r&~(1<<32-Qe(r)-1)).toString(32)+l,t="_"+t+"R_"+l,l=mr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Sx++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cs,useFormState:ph,useActionState:ph,useOptimistic:function(e){var t=kt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ns.bind(null,Se,!0,l),l.dispatch=t,[e,t]},useMemoCache:ys,useCacheRefresh:function(){return kt().memoizedState=Cx.bind(null,Se)},useEffectEvent:function(e){var t=kt(),l={impl:e};return t.memoizedState=l,function(){if((Be&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},As={readContext:pt,use:gr,useCallback:wh,useContext:pt,useEffect:ks,useImperativeHandle:Th,useInsertionEffect:zh,useLayoutEffect:kh,useMemo:Ch,useReducer:xr,useRef:bh,useState:function(){return xr(Cn)},useDebugValue:Es,useDeferredValue:function(e,t){var l=nt();return Nh(l,Ve.memoizedState,e,t)},useTransition:function(){var e=xr(Cn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:ea(e),t]},useSyncExternalStore:lh,useId:_h,useHostTransitionStatus:Cs,useFormState:gh,useActionState:gh,useOptimistic:function(e,t){var l=nt();return oh(l,Ve,e,t)},useMemoCache:ys,useCacheRefresh:Oh};As.useEffectEvent=Sh;var Uh={readContext:pt,use:gr,useCallback:wh,useContext:pt,useEffect:ks,useImperativeHandle:Th,useInsertionEffect:zh,useLayoutEffect:kh,useMemo:Ch,useReducer:vs,useRef:bh,useState:function(){return vs(Cn)},useDebugValue:Es,useDeferredValue:function(e,t){var l=nt();return Ve===null?Ts(l,e,t):Nh(l,Ve.memoizedState,e,t)},useTransition:function(){var e=vs(Cn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:ea(e),t]},useSyncExternalStore:lh,useId:_h,useHostTransitionStatus:Cs,useFormState:yh,useActionState:yh,useOptimistic:function(e,t){var l=nt();return Ve!==null?oh(l,Ve,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ys,useCacheRefresh:Oh};Uh.useEffectEvent=Sh;function js(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 Ms={enqueueSetState:function(e,t,l){e=e._reactInternals;var r=Xt(),o=Kn(r);o.payload=t,l!=null&&(o.callback=l),t=Jn(e,o,r),t!==null&&(_t(t,e,r),Ii(t,e,r))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var r=Xt(),o=Kn(r);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Jn(e,o,r),t!==null&&(_t(t,e,r),Ii(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Xt(),r=Kn(l);r.tag=2,t!=null&&(r.callback=t),t=Jn(e,r,l),t!==null&&(_t(t,e,l),Ii(t,e,l))}};function Hh(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?!Vi(l,r)||!Vi(o,h):!0}function qh(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&&Ms.enqueueReplaceState(t,t.state,null)}function jl(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 Yh(e){Wa(e)}function Vh(e){console.error(e)}function Xh(e){Wa(e)}function Sr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Gh(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 _s(e,t,l){return l=Kn(l),l.tag=3,l.payload={element:null},l.callback=function(){Sr(e,t)},l}function Qh(e){return e=Kn(e),e.tag=3,e}function Fh(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(){Gh(t,l,r)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Gh(t,l,r),typeof o!="function"&&(tl===null?tl=new Set([this]):tl.add(this));var z=r.stack;this.componentDidCatch(r.value,{componentStack:z!==null?z:""})})}function Ax(e,t,l,r,o){if(l.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=l.alternate,t!==null&&ei(t,l,o,!0),l=Ht.current,l!==null){switch(l.tag){case 31:case 13:return Pt===null?Or():l.alternate===null&&et===0&&(et=3),l.flags&=-257,l.flags|=65536,l.lanes=o,r===sr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([r]):t.add(r),lo(e,r,o)),!1;case 22:return l.flags|=65536,r===sr?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)),lo(e,r,o)),!1}throw Error(u(435,l.tag))}return lo(e,r,o),Or(),!1}if(_e)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==$u&&(e=Error(u(422),{cause:r}),Qi(Jt(e,l)))):(r!==$u&&(t=Error(u(423),{cause:r}),Qi(Jt(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Jt(r,l),o=_s(e.stateNode,r,o),ss(e,o),et!==4&&(et=2)),!1;var h=Error(u(520),{cause:r});if(h=Jt(h,l),ca===null?ca=[h]:ca.push(h),et!==4&&(et=2),t===null)return!0;r=Jt(r,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=_s(l.stateNode,r,e),ss(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"&&(tl===null||!tl.has(h))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Qh(o),Fh(o,e,l,r),ss(l,o),!1}l=l.return}while(l!==null);return!1}var Os=Error(u(461)),at=!1;function gt(e,t,l,r){t.child=e===null?If(t,null,l,r):Nl(t,e.child,l,r)}function Zh(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 El(t),r=ms(e,t,l,x,h,o),z=ps(),e!==null&&!at?(gs(e,t,o),Nn(e,t,o)):(_e&&z&&Ju(t),t.flags|=1,gt(e,t,r,o),t.child)}function Kh(e,t,l,r,o){if(e===null){var h=l.type;return typeof h=="function"&&!Fu(h)&&h.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=h,Jh(e,t,h,r,o)):(e=nr(l.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Ys(e,o)){var x=h.memoizedProps;if(l=l.compare,l=l!==null?l:Vi,l(x,r)&&e.ref===t.ref)return Nn(e,t,o)}return t.flags|=1,e=zn(h,r),e.ref=t.ref,e.return=t,t.child=e}function Jh(e,t,l,r,o){if(e!==null){var h=e.memoizedProps;if(Vi(h,r)&&e.ref===t.ref)if(at=!1,t.pendingProps=r=h,Ys(e,o))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,Nn(e,t,o)}return Ds(e,t,l,r,o)}function Ih(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 $h(e,t,h,l,r)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rr(t,h!==null?h.cachePool:null),h!==null?Pf(t,h):cs(),eh(t);else return r=t.lanes=536870912,$h(e,t,h!==null?h.baseLanes|l:l,l,r)}else h!==null?(rr(t,h.cachePool),Pf(t,h),$n(),t.memoizedState=null):(e!==null&&rr(t,null),cs(),$n());return gt(e,t,o,l),t.child}function la(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $h(e,t,l,r,o){var h=is();return h=h===null?null:{parent:lt._currentValue,pool:h},t.memoizedState={baseLanes:l,cachePool:h},e!==null&&rr(t,null),cs(),eh(t),e!==null&&ei(e,t,r,!0),t.childLanes=o,null}function zr(e,t){return t=Er({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wh(e,t,l){return Nl(t,e.child,null,l),e=zr(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function jx(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=zr(t,r),t.lanes=536870912,la(null,e);if(hs(t),(e=Ie)?(e=cm(e,Wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:fn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},l=Rf(e),l.return=t,t.child=l,mt=t,Ie=null)):e=null,e===null)throw Qn(t);return t.lanes=536870912,null}return zr(t,r)}var h=e.memoizedState;if(h!==null){var x=h.dehydrated;if(hs(t),o)if(t.flags&256)t.flags&=-257,t=Wh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(at||ei(e,t,l,!1),o=(l&e.childLanes)!==0,at||o){if(r=Fe,r!==null&&(x=Yc(r,l),x!==0&&x!==h.retryLane))throw h.retryLane=x,vl(e,x),_t(r,e,x),Os;Or(),t=Wh(e,t,l)}else e=h.treeContext,Ie=en(x.nextSibling),mt=t,_e=!0,Gn=null,Wt=!1,e!==null&&Uf(t,e),t=zr(t,r),t.flags|=4096;return t}return e=zn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function kr(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 Ds(e,t,l,r,o){return El(t),l=ms(e,t,l,r,void 0,o),r=ps(),e!==null&&!at?(gs(e,t,o),Nn(e,t,o)):(_e&&r&&Ju(t),t.flags|=1,gt(e,t,l,o),t.child)}function Ph(e,t,l,r,o,h){return El(t),t.updateQueue=null,l=nh(t,r,l,o),th(e),r=ps(),e!==null&&!at?(gs(e,t,h),Nn(e,t,h)):(_e&&r&&Ju(t),t.flags|=1,gt(e,t,l,h),t.child)}function ed(e,t,l,r,o){if(El(t),t.stateNode===null){var h=Il,x=l.contextType;typeof x=="object"&&x!==null&&(h=pt(x)),h=new l(r,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ms,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=r,h.state=t.memoizedState,h.refs={},rs(t),x=l.contextType,h.context=typeof x=="object"&&x!==null?pt(x):Il,h.state=t.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(js(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&&Ms.enqueueReplaceState(h,h.state,null),Wi(t,r,h,o),$i(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){h=t.stateNode;var z=t.memoizedProps,w=jl(l,z);h.props=w;var D=h.context,X=l.contextType;x=Il,typeof X=="object"&&X!==null&&(x=pt(X));var Z=l.getDerivedStateFromProps;X=typeof Z=="function"||typeof h.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,X||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(z||D!==x)&&qh(t,h,r,x),Zn=!1;var L=t.memoizedState;h.state=L,Wi(t,r,h,o),$i(),D=t.memoizedState,z||L!==D||Zn?(typeof Z=="function"&&(js(t,l,Z,r),D=t.memoizedState),(w=Zn||Hh(t,l,w,r,L,D,x))?(X||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=D),h.props=r,h.state=D,h.context=x,r=w):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{h=t.stateNode,us(e,t),x=t.memoizedProps,X=jl(l,x),h.props=X,Z=t.pendingProps,L=h.context,D=l.contextType,w=Il,typeof D=="object"&&D!==null&&(w=pt(D)),z=l.getDerivedStateFromProps,(D=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x!==Z||L!==w)&&qh(t,h,r,w),Zn=!1,L=t.memoizedState,h.state=L,Wi(t,r,h,o),$i();var Y=t.memoizedState;x!==Z||L!==Y||Zn||e!==null&&e.dependencies!==null&&ir(e.dependencies)?(typeof z=="function"&&(js(t,l,z,r),Y=t.memoizedState),(X=Zn||Hh(t,l,X,r,L,Y,w)||e!==null&&e.dependencies!==null&&ir(e.dependencies))?(D||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(r,Y,w),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(r,Y,w)),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=w,r=X):(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,kr(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=Nl(t,e.child,null,o),t.child=Nl(t,null,l,o)):gt(e,t,l,o),t.memoizedState=h.state,e=t.child):e=Nn(e,t,o),e}function td(e,t,l,r){return zl(),t.flags|=256,gt(e,t,l,r),t.child}var Rs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ls(e){return{baseLanes:e,cachePool:Gf()}}function Bs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function nd(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:(tt.current&2)!==0),x&&(o=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(o?In(t):$n(),(e=Ie)?(e=cm(e,Wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:fn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},l=Rf(e),l.return=t,t.child=l,mt=t,Ie=null)):e=null,e===null)throw Qn(t);return vo(e)?t.lanes=32:t.lanes=536870912,null}var z=r.children;return r=r.fallback,o?($n(),o=t.mode,z=Er({mode:"hidden",children:z},o),r=Sl(r,o,l,null),z.return=t,r.return=t,z.sibling=r,t.child=z,r=t.child,r.memoizedState=Ls(l),r.childLanes=Bs(e,x,l),t.memoizedState=Rs,la(null,r)):(In(t),Us(t,z))}var w=e.memoizedState;if(w!==null&&(z=w.dehydrated,z!==null)){if(h)t.flags&256?(In(t),t.flags&=-257,t=Hs(e,t,l)):t.memoizedState!==null?($n(),t.child=e.child,t.flags|=128,t=null):($n(),z=r.fallback,o=t.mode,r=Er({mode:"visible",children:r.children},o),z=Sl(z,o,l,null),z.flags|=2,r.return=t,z.return=t,r.sibling=z,t.child=r,Nl(t,e.child,null,l),r=t.child,r.memoizedState=Ls(l),r.childLanes=Bs(e,x,l),t.memoizedState=Rs,t=la(null,r));else if(In(t),vo(z)){if(x=z.nextSibling&&z.nextSibling.dataset,x)var D=x.dgst;x=D,r=Error(u(419)),r.stack="",r.digest=x,Qi({value:r,source:null,stack:null}),t=Hs(e,t,l)}else if(at||ei(e,t,l,!1),x=(l&e.childLanes)!==0,at||x){if(x=Fe,x!==null&&(r=Yc(x,l),r!==0&&r!==w.retryLane))throw w.retryLane=r,vl(e,r),_t(x,e,r),Os;bo(z)||Or(),t=Hs(e,t,l)}else bo(z)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Ie=en(z.nextSibling),mt=t,_e=!0,Gn=null,Wt=!1,e!==null&&Uf(t,e),t=Us(t,r.children),t.flags|=4096);return t}return o?($n(),z=r.fallback,o=t.mode,w=e.child,D=w.sibling,r=zn(w,{mode:"hidden",children:r.children}),r.subtreeFlags=w.subtreeFlags&65011712,D!==null?z=zn(D,z):(z=Sl(z,o,l,null),z.flags|=2),z.return=t,r.return=t,r.sibling=z,t.child=r,la(null,r),r=t.child,z=e.child.memoizedState,z===null?z=Ls(l):(o=z.cachePool,o!==null?(w=lt._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Gf(),z={baseLanes:z.baseLanes|l,cachePool:o}),r.memoizedState=z,r.childLanes=Bs(e,x,l),t.memoizedState=Rs,la(e.child,r)):(In(t),l=e.child,e=l.sibling,l=zn(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 Us(e,t){return t=Er({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Er(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function Hs(e,t,l){return Nl(t,e.child,null,l),e=Us(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ld(e,t,l){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),es(e.return,t,l)}function qs(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 id(e,t,l){var r=t.pendingProps,o=r.revealOrder,h=r.tail;r=r.children;var x=tt.current,z=(x&2)!==0;if(z?(x=x&1|2,t.flags|=128):x&=1,k(tt,x),gt(e,t,r,l),r=_e?Gi:0,!z&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ld(e,l,t);else if(e.tag===19)ld(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&&hr(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),qs(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&&hr(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}qs(t,!0,l,null,h,r);break;case"together":qs(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Nn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),el|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ei(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=zn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=zn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ys(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ir(e)))}function Mx(e,t,l){switch(t.tag){case 3:Ke(t,t.stateNode.containerInfo),Fn(t,lt,e.memoizedState.cache),zl();break;case 27:case 5:ae(t);break;case 4:Ke(t,t.stateNode.containerInfo);break;case 10:Fn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,hs(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(In(t),t.flags|=128,null):(l&t.child.childLanes)!==0?nd(e,t,l):(In(t),e=Nn(e,t,l),e!==null?e.sibling:null);In(t);break;case 19:var o=(e.flags&128)!==0;if(r=(l&t.childLanes)!==0,r||(ei(e,t,l,!1),r=(l&t.childLanes)!==0),o){if(r)return id(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(tt,tt.current),r)break;return null;case 22:return t.lanes=0,Ih(e,t,l,t.pendingProps);case 24:Fn(t,lt,e.memoizedState.cache)}return Nn(e,t,l)}function ad(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Ys(e,l)&&(t.flags&128)===0)return at=!1,Mx(e,t,l);at=(e.flags&131072)!==0}else at=!1,_e&&(t.flags&1048576)!==0&&Bf(t,Gi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=wl(t.elementType),t.type=e,typeof e=="function")Fu(e)?(r=jl(e,r),t.tag=1,t=ed(null,t,e,r,l)):(t.tag=0,t=Ds(null,t,e,r,l));else{if(e!=null){var o=e.$$typeof;if(o===J){t.tag=11,t=Zh(null,t,e,r,l);break e}else if(o===$){t.tag=14,t=Kh(null,t,e,r,l);break e}}throw t=re(e)||e,Error(u(306,t,""))}}return t;case 0:return Ds(e,t,t.type,t.pendingProps,l);case 1:return r=t.type,o=jl(r,t.pendingProps),ed(e,t,r,o,l);case 3:e:{if(Ke(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var h=t.memoizedState;o=h.element,us(e,t),Wi(t,r,null,l);var x=t.memoizedState;if(r=x.cache,Fn(t,lt,r),r!==h.cache&&ts(t,[lt],l,!0),$i(),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=td(e,t,r,l);break e}else if(r!==o){o=Jt(Error(u(424)),t),Qi(o),t=td(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(Ie=en(e.firstChild),mt=t,_e=!0,Gn=null,Wt=!0,l=If(t,null,r,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(zl(),r===o){t=Nn(e,t,l);break e}gt(e,t,r,l)}t=t.child}return t;case 26:return kr(e,t),e===null?(l=gm(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(l=t.type,e=t.pendingProps,r=qr(ce.current).createElement(l),r[dt]=t,r[wt]=e,xt(r,l,e),ft(r),t.stateNode=r):t.memoizedState=gm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ae(t),e===null&&_e&&(r=t.stateNode=dm(t.type,t.pendingProps,ce.current),mt=t,Wt=!0,o=Ie,al(t.type)?(So=o,Ie=en(r.firstChild)):Ie=o),gt(e,t,t.pendingProps.children,l),kr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((o=r=Ie)&&(r=uy(r,t.type,t.pendingProps,Wt),r!==null?(t.stateNode=r,mt=t,Ie=en(r.firstChild),Wt=!1,o=!0):o=!1),o||Qn(t)),ae(t),o=t.type,h=t.pendingProps,x=e!==null?e.memoizedProps:null,r=h.children,go(o,h)?r=null:x!==null&&go(o,x)&&(t.flags|=32),t.memoizedState!==null&&(o=ms(e,t,zx,null,null,l),ya._currentValue=o),kr(e,t),gt(e,t,r,l),t.child;case 6:return e===null&&_e&&((e=l=Ie)&&(l=sy(l,t.pendingProps,Wt),l!==null?(t.stateNode=l,mt=t,Ie=null,e=!0):e=!1),e||Qn(t)),null;case 13:return nd(e,t,l);case 4:return Ke(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nl(t,null,r,l):gt(e,t,r,l),t.child;case 11:return Zh(e,t,t.type,t.pendingProps,l);case 7:return gt(e,t,t.pendingProps,l),t.child;case 8:return gt(e,t,t.pendingProps.children,l),t.child;case 12:return gt(e,t,t.pendingProps.children,l),t.child;case 10:return r=t.pendingProps,Fn(t,t.type,r.value),gt(e,t,r.children,l),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,El(t),o=pt(o),r=r(o),t.flags|=1,gt(e,t,r,l),t.child;case 14:return Kh(e,t,t.type,t.pendingProps,l);case 15:return Jh(e,t,t.type,t.pendingProps,l);case 19:return id(e,t,l);case 31:return jx(e,t,l);case 22:return Ih(e,t,l,t.pendingProps);case 24:return El(t),r=pt(lt),e===null?(o=is(),o===null&&(o=Fe,h=ns(),o.pooledCache=h,h.refCount++,h!==null&&(o.pooledCacheLanes|=l),o=h),t.memoizedState={parent:r,cache:o},rs(t),Fn(t,lt,o)):((e.lanes&l)!==0&&(us(e,t),Wi(t,null,null,l),$i()),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),Fn(t,lt,r)):(r=h.cache,Fn(t,lt,r),r!==o.cache&&ts(t,[lt],l,!0))),gt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function An(e){e.flags|=4}function Vs(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(_d())e.flags|=8192;else throw Cl=sr,as}else e.flags&=-16777217}function rd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sm(t))if(_d())e.flags|=8192;else throw Cl=sr,as}function Tr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Uc():536870912,e.lanes|=t,hi|=t)}function ia(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 $e(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 _x(e,t,l){var r=t.pendingProps;switch(Iu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(t),null;case 1:return $e(t),null;case 3:return l=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Tn(lt),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Pl(t)?An(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Wu())),$e(t),null;case 26:var o=t.type,h=t.memoizedState;return e===null?(An(t),h!==null?($e(t),rd(t,h)):($e(t),Vs(t,o,null,r,l))):h?h!==e.memoizedState?(An(t),$e(t),rd(t,h)):($e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&An(t),$e(t),Vs(t,o,e,r,l)),null;case 27:if(xe(t),l=ce.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&An(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return $e(t),null}e=le.current,Pl(t)?Hf(t):(e=dm(o,r,l),t.stateNode=e,An(t))}return $e(t),null;case 5:if(xe(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&An(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return $e(t),null}if(h=le.current,Pl(t))Hf(t);else{var x=qr(ce.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[dt]=t,h[wt]=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(xt(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&&An(t)}}return $e(t),Vs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&An(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=ce.current,Pl(t)){if(e=t.stateNode,l=t.memoizedProps,r=null,o=mt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[dt]=t,e=!!(e.nodeValue===l||r!==null&&r.suppressHydrationWarning===!0||nm(e.nodeValue,l)),e||Qn(t,!0)}else e=qr(e).createTextNode(r),e[dt]=t,t.stateNode=e}return $e(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(r=Pl(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[dt]=t}else zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;$e(t),e=!1}else l=Wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return $e(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Pl(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[dt]=t}else zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;$e(t),o=!1}else o=Wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(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),Tr(t,t.updateQueue),$e(t),null);case 4:return Ue(),e===null&&co(t.stateNode.containerInfo),$e(t),null;case 10:return Tn(t.type),$e(t),null;case 19:if(V(tt),r=t.memoizedState,r===null)return $e(t),null;if(o=(t.flags&128)!==0,h=r.rendering,h===null)if(o)ia(r,!1);else{if(et!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=hr(e),h!==null){for(t.flags|=128,ia(r,!1),e=h.updateQueue,t.updateQueue=e,Tr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Df(l,e),l=l.sibling;return k(tt,tt.current&1|2),_e&&kn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&St()>jr&&(t.flags|=128,o=!0,ia(r,!1),t.lanes=4194304)}else{if(!o)if(e=hr(h),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Tr(t,e),ia(r,!0),r.tail===null&&r.tailMode==="hidden"&&!h.alternate&&!_e)return $e(t),null}else 2*St()-r.renderingStartTime>jr&&l!==536870912&&(t.flags|=128,o=!0,ia(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=St(),e.sibling=null,l=tt.current,k(tt,o?l&1|2:l&1),_e&&kn(t,r.treeForkCount),e):($e(t),null);case 22:case 23:return qt(t),fs(),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&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),l=t.updateQueue,l!==null&&Tr(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&&V(Tl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Tn(lt),$e(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ox(e,t){switch(Iu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(lt),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(tt),null;case 4:return Ue(),null;case 10:return Tn(t.type),null;case 22:case 23:return qt(t),fs(),e!==null&&V(Tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(lt),null;case 25:return null;default:return null}}function ud(e,t){switch(Iu(t),t.tag){case 3:Tn(lt),Ue();break;case 26:case 27:case 5:xe(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:V(tt);break;case 10:Tn(t.type);break;case 22:case 23:qt(t),fs(),e!==null&&V(Tl);break;case 24:Tn(lt)}}function aa(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){Ye(t,t.return,z)}}function Wn(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 w=l,D=z;try{D()}catch(X){Ye(o,w,X)}}}r=r.next}while(r!==h)}}catch(X){Ye(t,t.return,X)}}function sd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Wf(t,l)}catch(r){Ye(e,e.return,r)}}}function od(e,t,l){l.props=jl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(r){Ye(e,t,r)}}function ra(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){Ye(e,t,o)}}function dn(e,t){var l=e.ref,r=e.refCleanup;if(l!==null)if(typeof r=="function")try{r()}catch(o){Ye(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){Ye(e,t,o)}else l.current=null}function cd(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){Ye(e,e.return,o)}}function Xs(e,t,l){try{var r=e.stateNode;ty(r,e.type,l,t),r[wt]=t}catch(o){Ye(e,e.return,o)}}function fd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&al(e.type)||e.tag===4}function Gs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fd(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&&al(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 Qs(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=vn));else if(r!==4&&(r===27&&al(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Qs(e,t,l),e=e.sibling;e!==null;)Qs(e,t,l),e=e.sibling}function wr(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&&al(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(wr(e,t,l),e=e.sibling;e!==null;)wr(e,t,l),e=e.sibling}function hd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);xt(t,r,l),t[dt]=e,t[wt]=l}catch(h){Ye(e,e.return,h)}}var jn=!1,rt=!1,Fs=!1,dd=typeof WeakSet=="function"?WeakSet:Set,ht=null;function Dx(e,t){if(e=e.containerInfo,mo=Zr,e=Tf(e),Hu(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,w=-1,D=0,X=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||(w=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&&++D===o&&(z=x),L===h&&++X===r&&(w=x),(Y=Z.nextSibling)!==null)break;Z=L,L=Z.parentNode}Z=Y}l=z===-1||w===-1?null:{start:z,end:w}}else l=null}l=l||{start:0,end:0}}else l=null;for(po={focusedElem:e,selectionRange:l},Zr=!1,ht=t;ht!==null;)if(t=ht,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ht=e;else for(;ht!==null;){switch(t=ht,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 se=jl(l.type,o);e=r.getSnapshotBeforeUpdate(se,h),r.__reactInternalSnapshotBeforeUpdate=e}catch(pe){Ye(l,l.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)yo(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yo(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,ht=e;break}ht=t.return}}function md(e,t,l){var r=l.flags;switch(l.tag){case 0:case 11:case 15:_n(e,l),r&4&&aa(5,l);break;case 1:if(_n(e,l),r&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(x){Ye(l,l.return,x)}else{var o=jl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ye(l,l.return,x)}}r&64&&sd(l),r&512&&ra(l,l.return);break;case 3:if(_n(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{Wf(e,t)}catch(x){Ye(l,l.return,x)}}break;case 27:t===null&&r&4&&hd(l);case 26:case 5:_n(e,l),t===null&&r&4&&cd(l),r&512&&ra(l,l.return);break;case 12:_n(e,l);break;case 31:_n(e,l),r&4&&xd(e,l);break;case 13:_n(e,l),r&4&&yd(e,l),r&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Xx.bind(null,l),oy(e,l))));break;case 22:if(r=l.memoizedState!==null||jn,!r){t=t!==null&&t.memoizedState!==null||rt,o=jn;var h=rt;jn=r,(rt=t)&&!h?On(e,l,(l.subtreeFlags&8772)!==0):_n(e,l),jn=o,rt=h}break;case 30:break;default:_n(e,l)}}function pd(e){var t=e.alternate;t!==null&&(e.alternate=null,pd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zu(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 We=null,Nt=!1;function Mn(e,t,l){for(l=l.child;l!==null;)gd(e,t,l),l=l.sibling}function gd(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(zt,l)}catch{}switch(l.tag){case 26:rt||dn(l,t),Mn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:rt||dn(l,t);var r=We,o=Nt;al(l.type)&&(We=l.stateNode,Nt=!1),Mn(e,t,l),pa(l.stateNode),We=r,Nt=o;break;case 5:rt||dn(l,t);case 6:if(r=We,o=Nt,We=null,Mn(e,t,l),We=r,Nt=o,We!==null)if(Nt)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(l.stateNode)}catch(h){Ye(l,t,h)}else try{We.removeChild(l.stateNode)}catch(h){Ye(l,t,h)}break;case 18:We!==null&&(Nt?(e=We,sm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),vi(e)):sm(We,l.stateNode));break;case 4:r=We,o=Nt,We=l.stateNode.containerInfo,Nt=!0,Mn(e,t,l),We=r,Nt=o;break;case 0:case 11:case 14:case 15:Wn(2,l,t),rt||Wn(4,l,t),Mn(e,t,l);break;case 1:rt||(dn(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"&&od(l,t,r)),Mn(e,t,l);break;case 21:Mn(e,t,l);break;case 22:rt=(r=rt)||l.memoizedState!==null,Mn(e,t,l),rt=r;break;default:Mn(e,t,l)}}function xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vi(e)}catch(l){Ye(t,t.return,l)}}}function yd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vi(e)}catch(l){Ye(t,t.return,l)}}function Rx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dd),t;default:throw Error(u(435,e.tag))}}function Cr(e,t){var l=Rx(e);t.forEach(function(r){if(!l.has(r)){l.add(r);var o=Gx.bind(null,e,r);r.then(o,o)}})}function At(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(al(z.type)){We=z.stateNode,Nt=!1;break e}break;case 5:We=z.stateNode,Nt=!1;break e;case 3:case 4:We=z.stateNode.containerInfo,Nt=!0;break e}z=z.return}if(We===null)throw Error(u(160));gd(h,x,o),We=null,Nt=!1,h=o.alternate,h!==null&&(h.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bd(t,e),t=t.sibling}var un=null;function bd(e,t){var l=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),jt(e),r&4&&(Wn(3,e,e.return),aa(3,e),Wn(5,e,e.return));break;case 1:At(t,e),jt(e),r&512&&(rt||l===null||dn(l,l.return)),r&64&&jn&&(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=un;if(At(t,e),jt(e),r&512&&(rt||l===null||dn(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[Oi]||h[dt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=o.createElement(r),o.head.insertBefore(h,o.querySelector("head > title"))),xt(h,r,l),h[dt]=e,ft(h),r=h;break e;case"link":var x=bm("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),xt(h,r,l),o.head.appendChild(h);break;case"meta":if(x=bm("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),xt(h,r,l),o.head.appendChild(h);break;default:throw Error(u(468,r))}h[dt]=e,ft(h),r=h}e.stateNode=r}else vm(o,e.type,e.stateNode);else e.stateNode=ym(o,r,e.memoizedProps);else h!==r?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,r===null?vm(o,e.type,e.stateNode):ym(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Xs(e,e.memoizedProps,l.memoizedProps)}break;case 27:At(t,e),jt(e),r&512&&(rt||l===null||dn(l,l.return)),l!==null&&r&4&&Xs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(At(t,e),jt(e),r&512&&(rt||l===null||dn(l,l.return)),e.flags&32){o=e.stateNode;try{Xl(o,"")}catch(se){Ye(e,e.return,se)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Xs(e,o,l!==null?l.memoizedProps:o)),r&1024&&(Fs=!0);break;case 6:if(At(t,e),jt(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,l=e.stateNode;try{l.nodeValue=r}catch(se){Ye(e,e.return,se)}}break;case 3:if(Xr=null,o=un,un=Yr(t.containerInfo),At(t,e),un=o,jt(e),r&4&&l!==null&&l.memoizedState.isDehydrated)try{vi(t.containerInfo)}catch(se){Ye(e,e.return,se)}Fs&&(Fs=!1,vd(e));break;case 4:r=un,un=Yr(e.stateNode.containerInfo),At(t,e),jt(e),un=r;break;case 12:At(t,e),jt(e);break;case 31:At(t,e),jt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cr(e,r)));break;case 13:At(t,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ar=St()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cr(e,r)));break;case 22:o=e.memoizedState!==null;var w=l!==null&&l.memoizedState!==null,D=jn,X=rt;if(jn=D||o,rt=X||w,At(t,e),rt=X,jn=D,jt(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||w||jn||rt||Ml(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){w=l=t;try{if(h=w.stateNode,o)x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{z=w.stateNode;var Z=w.memoizedProps.style,L=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;z.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(se){Ye(w,w.return,se)}}}else if(t.tag===6){if(l===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(se){Ye(w,w.return,se)}}}else if(t.tag===18){if(l===null){w=t;try{var Y=w.stateNode;o?om(Y,!0):om(w.stateNode,!1)}catch(se){Ye(w,w.return,se)}}}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,Cr(e,l))));break;case 19:At(t,e),jt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cr(e,r)));break;case 30:break;case 21:break;default:At(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var l,r=e.return;r!==null;){if(fd(r)){l=r;break}r=r.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,h=Gs(e);wr(e,h,o);break;case 5:var x=l.stateNode;l.flags&32&&(Xl(x,""),l.flags&=-33);var z=Gs(e);wr(e,z,x);break;case 3:case 4:var w=l.stateNode.containerInfo,D=Gs(e);Qs(e,D,w);break;default:throw Error(u(161))}}catch(X){Ye(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)md(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wn(4,t,t.return),Ml(t);break;case 1:dn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&od(t,t.return,l),Ml(t);break;case 27:pa(t.stateNode);case 26:case 5:dn(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function On(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:On(o,h,l),aa(4,h);break;case 1:if(On(o,h,l),r=h,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Ye(r,r.return,D)}if(r=h,o=r.updateQueue,o!==null){var z=r.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)$f(w[o],z)}catch(D){Ye(r,r.return,D)}}l&&x&64&&sd(h),ra(h,h.return);break;case 27:hd(h);case 26:case 5:On(o,h,l),l&&r===null&&x&4&&cd(h),ra(h,h.return);break;case 12:On(o,h,l);break;case 31:On(o,h,l),l&&x&4&&xd(o,h);break;case 13:On(o,h,l),l&&x&4&&yd(o,h);break;case 22:h.memoizedState===null&&On(o,h,l),ra(h,h.return);break;case 30:break;default:On(o,h,l)}t=t.sibling}}function Zs(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&&Fi(l))}function Ks(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fi(e))}function sn(e,t,l,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sd(e,t,l,r),t=t.sibling}function Sd(e,t,l,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:sn(e,t,l,r),o&2048&&aa(9,t);break;case 1:sn(e,t,l,r);break;case 3:sn(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&&Fi(e)));break;case 12:if(o&2048){sn(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(w){Ye(t,t.return,w)}}else sn(e,t,l,r);break;case 31:sn(e,t,l,r);break;case 13:sn(e,t,l,r);break;case 23:break;case 22:h=t.stateNode,x=t.alternate,t.memoizedState!==null?h._visibility&2?sn(e,t,l,r):ua(e,t):h._visibility&2?sn(e,t,l,r):(h._visibility|=2,oi(e,t,l,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Zs(x,t);break;case 24:sn(e,t,l,r),o&2048&&Ks(t.alternate,t);break;default:sn(e,t,l,r)}}function oi(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,w=r,D=x.flags;switch(x.tag){case 0:case 11:case 15:oi(h,x,z,w,o),aa(8,x);break;case 23:break;case 22:var X=x.stateNode;x.memoizedState!==null?X._visibility&2?oi(h,x,z,w,o):ua(h,x):(X._visibility|=2,oi(h,x,z,w,o)),o&&D&2048&&Zs(x.alternate,x);break;case 24:oi(h,x,z,w,o),o&&D&2048&&Ks(x.alternate,x);break;default:oi(h,x,z,w,o)}t=t.sibling}}function ua(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:ua(l,r),o&2048&&Zs(r.alternate,r);break;case 24:ua(l,r),o&2048&&Ks(r.alternate,r);break;default:ua(l,r)}t=t.sibling}}var sa=8192;function ci(e,t,l){if(e.subtreeFlags&sa)for(e=e.child;e!==null;)zd(e,t,l),e=e.sibling}function zd(e,t,l){switch(e.tag){case 26:ci(e,t,l),e.flags&sa&&e.memoizedState!==null&&Sy(l,un,e.memoizedState,e.memoizedProps);break;case 5:ci(e,t,l);break;case 3:case 4:var r=un;un=Yr(e.stateNode.containerInfo),ci(e,t,l),un=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=sa,sa=16777216,ci(e,t,l),sa=r):ci(e,t,l));break;default:ci(e,t,l)}}function kd(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 oa(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];ht=r,Td(r,e)}kd(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:oa(e),e.flags&2048&&Wn(9,e,e.return);break;case 3:oa(e);break;case 12:oa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Nr(e)):oa(e);break;default:oa(e)}}function Nr(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];ht=r,Td(r,e)}kd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wn(8,t,t.return),Nr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Nr(t));break;default:Nr(t)}e=e.sibling}}function Td(e,t){for(;ht!==null;){var l=ht;switch(l.tag){case 0:case 11:case 15:Wn(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:Fi(l.memoizedState.cache)}if(r=l.child,r!==null)r.return=l,ht=r;else e:for(l=e;ht!==null;){r=ht;var o=r.sibling,h=r.return;if(pd(r),r===l){ht=null;break e}if(o!==null){o.return=h,ht=o;break e}ht=h}}}var Lx={getCacheForType:function(e){var t=pt(lt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return pt(lt).controller.signal}},Bx=typeof WeakMap=="function"?WeakMap:Map,Be=0,Fe=null,we=null,je=0,qe=0,Yt=null,Pn=!1,fi=!1,Js=!1,Dn=0,et=0,el=0,_l=0,Is=0,Vt=0,hi=0,ca=null,Mt=null,$s=!1,Ar=0,wd=0,jr=1/0,Mr=null,tl=null,ct=0,nl=null,di=null,Rn=0,Ws=0,Ps=null,Cd=null,fa=0,eo=null;function Xt(){return(Be&2)!==0&&je!==0?je&-je:j.T!==null?ro():Vc()}function Nd(){if(Vt===0)if((je&536870912)===0||_e){var e=Ha;Ha<<=1,(Ha&3932160)===0&&(Ha=262144),Vt=e}else Vt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Vt}function _t(e,t,l){(e===Fe&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(mi(e,0),ll(e,je,Vt,!1)),_i(e,l),((Be&2)===0||e!==Fe)&&(e===Fe&&((Be&2)===0&&(_l|=l),et===4&&ll(e,je,Vt,!1)),mn(e))}function Ad(e,t,l){if((Be&6)!==0)throw Error(u(327));var r=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Mi(e,t),o=r?qx(e,t):no(e,t,!0),h=r;do{if(o===0){fi&&!r&&ll(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!Ux(l)){o=no(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=ca;var w=z.current.memoizedState.isDehydrated;if(w&&(mi(z,x).flags|=256),x=no(z,x,!1),x!==2){if(Js&&!w){z.errorRecoveryDisabledLanes|=h,_l|=h,o=4;break e}h=Mt,Mt=o,h!==null&&(Mt===null?Mt=h:Mt.push.apply(Mt,h))}o=x}if(h=!1,o!==2)continue}}if(o===1){mi(e,0),ll(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:ll(r,t,Vt,!Pn);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Ar+300-St(),10<o)){if(ll(r,t,Vt,!Pn),Ya(r,0,!0)!==0)break e;Rn=t,r.timeoutHandle=rm(jd.bind(null,r,l,Mt,Mr,$s,t,Vt,_l,hi,Pn,h,"Throttled",-0,0),o);break e}jd(r,l,Mt,Mr,$s,t,Vt,_l,hi,Pn,h,null,-0,0)}}break}while(!0);mn(e)}function jd(e,t,l,r,o,h,x,z,w,D,X,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:vn},zd(t,h,Z);var se=(h&62914560)===h?Ar-St():(h&4194048)===h?wd-St():0;if(se=zy(Z,se),se!==null){Rn=h,e.cancelPendingCommit=se(Ud.bind(null,e,t,h,l,r,o,x,z,w,X,Z,null,L,Y)),ll(e,h,x,!D);return}}Ud(e,t,h,l,r,o,x,z,w)}function Ux(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(!Bt(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 ll(e,t,l,r){t&=~Is,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var h=31-Qe(o),x=1<<h;r[h]=-1,o&=~x}l!==0&&Hc(e,l,t)}function _r(){return(Be&6)===0?(ha(0),!1):!0}function to(){if(we!==null){if(qe===0)var e=we.return;else e=we,En=kl=null,xs(e),ii=null,Ki=0,e=we;for(;e!==null;)ud(e.alternate,e),e=e.return;we=null}}function mi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,iy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Rn=0,to(),Fe=e,we=l=zn(e.current,null),je=t,qe=0,Yt=null,Pn=!1,fi=Mi(e,t),Js=!1,hi=Vt=Is=_l=el=et=0,Mt=ca=null,$s=!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-Qe(r),h=1<<o;t|=e[o],r&=~h}return Dn=t,Pa(),l}function Md(e,t){Se=null,j.H=na,t===li||t===ur?(t=Zf(),qe=3):t===as?(t=Zf(),qe=4):qe=t===Os?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,we===null&&(et=1,Sr(e,Jt(t,e.current)))}function _d(){var e=Ht.current;return e===null?!0:(je&4194048)===je?Pt===null:(je&62914560)===je||(je&536870912)!==0?e===Pt:!1}function Od(){var e=j.H;return j.H=na,e===null?na:e}function Dd(){var e=j.A;return j.A=Lx,e}function Or(){et=4,Pn||(je&4194048)!==je&&Ht.current!==null||(fi=!0),(el&134217727)===0&&(_l&134217727)===0||Fe===null||ll(Fe,je,Vt,!1)}function no(e,t,l){var r=Be;Be|=2;var o=Od(),h=Dd();(Fe!==e||je!==t)&&(Mr=null,mi(e,t)),t=!1;var x=et;e:do try{if(qe!==0&&we!==null){var z=we,w=Yt;switch(qe){case 8:to(),x=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var D=qe;if(qe=0,Yt=null,pi(e,z,w,D),l&&fi){x=0;break e}break;default:D=qe,qe=0,Yt=null,pi(e,z,w,D)}}Hx(),x=et;break}catch(X){Md(e,X)}while(!0);return t&&e.shellSuspendCounter++,En=kl=null,Be=r,j.H=o,j.A=h,we===null&&(Fe=null,je=0,Pa()),x}function Hx(){for(;we!==null;)Rd(we)}function qx(e,t){var l=Be;Be|=2;var r=Od(),o=Dd();Fe!==e||je!==t?(Mr=null,jr=St()+500,mi(e,t)):fi=Mi(e,t);e:do try{if(qe!==0&&we!==null){t=we;var h=Yt;t:switch(qe){case 1:qe=0,Yt=null,pi(e,t,h,1);break;case 2:case 9:if(Qf(h)){qe=0,Yt=null,Ld(t);break}t=function(){qe!==2&&qe!==9||Fe!==e||(qe=7),mn(e)},h.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Qf(h)?(qe=0,Yt=null,Ld(t)):(qe=0,Yt=null,pi(e,t,h,7));break;case 5:var x=null;switch(we.tag){case 26:x=we.memoizedState;case 5:case 27:var z=we;if(x?Sm(x):z.stateNode.complete){qe=0,Yt=null;var w=z.sibling;if(w!==null)we=w;else{var D=z.return;D!==null?(we=D,Dr(D)):we=null}break t}}qe=0,Yt=null,pi(e,t,h,5);break;case 6:qe=0,Yt=null,pi(e,t,h,6);break;case 8:to(),et=6;break e;default:throw Error(u(462))}}Yx();break}catch(X){Md(e,X)}while(!0);return En=kl=null,j.H=r,j.A=o,Be=l,we!==null?0:(Fe=null,je=0,Pa(),et)}function Yx(){for(;we!==null&&!pu();)Rd(we)}function Rd(e){var t=ad(e.alternate,e,Dn);e.memoizedProps=e.pendingProps,t===null?Dr(e):we=t}function Ld(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ph(l,t,t.pendingProps,t.type,void 0,je);break;case 11:t=Ph(l,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:xs(t);default:ud(l,t),t=we=Df(t,Dn),t=ad(l,t,Dn)}e.memoizedProps=e.pendingProps,t===null?Dr(e):we=t}function pi(e,t,l,r){En=kl=null,xs(t),ii=null,Ki=0;var o=t.return;try{if(Ax(e,o,t,l,je)){et=1,Sr(e,Jt(l,e.current)),we=null;return}}catch(h){if(o!==null)throw we=o,h;et=1,Sr(e,Jt(l,e.current)),we=null;return}t.flags&32768?(_e||r===1?e=!0:fi||(je&536870912)!==0?e=!1:(Pn=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ht.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bd(t,e)):Dr(t)}function Dr(e){var t=e;do{if((t.flags&32768)!==0){Bd(t,Pn);return}e=t.return;var l=_x(t.alternate,t,Dn);if(l!==null){we=l;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);et===0&&(et=5)}function Bd(e,t){do{var l=Ox(e.alternate,e);if(l!==null){l.flags&=32767,we=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=l}while(e!==null);et=6,we=null}function Ud(e,t,l,r,o,h,x,z,w){e.cancelPendingCommit=null;do Rr();while(ct!==0);if((Be&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(h=t.lanes|t.childLanes,h|=Gu,vg(e,l,h,x,z,w),e===Fe&&(we=Fe=null,je=0),di=t,nl=e,Rn=l,Ws=h,Ps=o,Cd=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Qx(ge,function(){return Xd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=j.T,j.T=null,o=Q.p,Q.p=2,x=Be,Be|=4;try{Dx(e,t,l)}finally{Be=x,Q.p=o,j.T=r}}ct=1,Hd(),qd(),Yd()}}function Hd(){if(ct===1){ct=0;var e=nl,t=di,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=j.T,j.T=null;var r=Q.p;Q.p=2;var o=Be;Be|=4;try{bd(t,e);var h=po,x=Tf(e.containerInfo),z=h.focusedElem,w=h.selectionRange;if(x!==z&&z&&z.ownerDocument&&Ef(z.ownerDocument.documentElement,z)){if(w!==null&&Hu(z)){var D=w.start,X=w.end;if(X===void 0&&(X=D),"selectionStart"in z)z.selectionStart=D,z.selectionEnd=Math.min(X,z.value.length);else{var Z=z.ownerDocument||document,L=Z&&Z.defaultView||window;if(L.getSelection){var Y=L.getSelection(),se=z.textContent.length,pe=Math.min(w.start,se),Ge=w.end===void 0?pe:Math.min(w.end,se);!Y.extend&&pe>Ge&&(x=Ge,Ge=pe,pe=x);var M=kf(z,pe),N=kf(z,Ge);if(M&&N&&(Y.rangeCount!==1||Y.anchorNode!==M.node||Y.anchorOffset!==M.offset||Y.focusNode!==N.node||Y.focusOffset!==N.offset)){var O=Z.createRange();O.setStart(M.node,M.offset),Y.removeAllRanges(),pe>Ge?(Y.addRange(O),Y.extend(N.node,N.offset)):(O.setEnd(N.node,N.offset),Y.addRange(O))}}}}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 F=Z[z];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}Zr=!!mo,po=mo=null}finally{Be=o,Q.p=r,j.T=l}}e.current=t,ct=2}}function qd(){if(ct===2){ct=0;var e=nl,t=di,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=j.T,j.T=null;var r=Q.p;Q.p=2;var o=Be;Be|=4;try{md(e,t.alternate,t)}finally{Be=o,Q.p=r,j.T=l}}ct=3}}function Yd(){if(ct===4||ct===3){ct=0,gu();var e=nl,t=di,l=Rn,r=Cd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,di=nl=null,Vd(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(tl=null),vu(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(zt,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=j.T,o=Q.p,Q.p=2,j.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{j.T=t,Q.p=o}}(Rn&3)!==0&&Rr(),mn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===eo?fa++:(fa=0,eo=e):fa=0,ha(0)}}function Vd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fi(t)))}function Rr(){return Hd(),qd(),Yd(),Xd()}function Xd(){if(ct!==5)return!1;var e=nl,t=Ws;Ws=0;var l=vu(Rn),r=j.T,o=Q.p;try{Q.p=32>l?32:l,j.T=null,l=Ps,Ps=null;var h=nl,x=Rn;if(ct=0,di=nl=null,Rn=0,(Be&6)!==0)throw Error(u(331));var z=Be;if(Be|=4,Ed(h.current),Sd(h,h.current,x,l),Be=z,ha(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(zt,h)}catch{}return!0}finally{Q.p=o,j.T=r,Vd(e,t)}}function Gd(e,t,l){t=Jt(l,t),t=_s(e.stateNode,t,2),e=Jn(e,t,2),e!==null&&(_i(e,2),mn(e))}function Ye(e,t,l){if(e.tag===3)Gd(e,e,l);else for(;t!==null;){if(t.tag===3){Gd(t,e,l);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(tl===null||!tl.has(r))){e=Jt(l,e),l=Qh(2),r=Jn(t,l,2),r!==null&&(Fh(l,r,t,e),_i(r,2),mn(r));break}}t=t.return}}function lo(e,t,l){var r=e.pingCache;if(r===null){r=e.pingCache=new Bx;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)||(Js=!0,o.add(l),e=Vx.bind(null,e,t,l),t.then(e,e))}function Vx(e,t,l){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Fe===e&&(je&l)===l&&(et===4||et===3&&(je&62914560)===je&&300>St()-Ar?(Be&2)===0&&mi(e,0):Is|=l,hi===je&&(hi=0)),mn(e)}function Qd(e,t){t===0&&(t=Uc()),e=vl(e,t),e!==null&&(_i(e,t),mn(e))}function Xx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Qd(e,l)}function Gx(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),Qd(e,l)}function Qx(e,t){return Ll(e,t)}var Lr=null,gi=null,io=!1,Br=!1,ao=!1,il=0;function mn(e){e!==gi&&e.next===null&&(gi===null?Lr=gi=e:gi=gi.next=e),Br=!0,io||(io=!0,Zx())}function ha(e,t){if(!ao&&Br){ao=!0;do for(var l=!1,r=Lr;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-Qe(42|e)+1)-1,h&=o&~(x&~z),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,Jd(r,h))}else h=je,h=Ya(r,r===Fe?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(h&3)===0||Mi(r,h)||(l=!0,Jd(r,h));r=r.next}while(l);ao=!1}}function Fx(){Fd()}function Fd(){Br=io=!1;var e=0;il!==0&&ly()&&(e=il);for(var t=St(),l=null,r=Lr;r!==null;){var o=r.next,h=Zd(r,t);h===0?(r.next=null,l===null?Lr=o:l.next=o,o===null&&(gi=l)):(l=r,(e!==0||(h&3)!==0)&&(Br=!0)),r=o}ct!==0&&ct!==5||ha(e),il!==0&&(il=0)}function Zd(e,t){for(var l=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var x=31-Qe(h),z=1<<x,w=o[x];w===-1?((z&l)===0||(z&r)!==0)&&(o[x]=bg(z,t)):w<=t&&(e.expiredLanes|=z),h&=~z}if(t=Fe,l=je,l=Ya(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,l===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ji(r),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Mi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(r!==null&&ji(r),vu(l)){case 2:case 8:l=te;break;case 32:l=ge;break;case 268435456:l=He;break;default:l=ge}return r=Kd.bind(null,e),l=Ll(l,r),e.callbackPriority=t,e.callbackNode=l,t}return r!==null&&r!==null&&ji(r),e.callbackPriority=2,e.callbackNode=null,2}function Kd(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Rr()&&e.callbackNode!==l)return null;var r=je;return r=Ya(e,e===Fe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Ad(e,r,t),Zd(e,St()),e.callbackNode!=null&&e.callbackNode===l?Kd.bind(null,e):null)}function Jd(e,t){if(Rr())return null;Ad(e,t,!0)}function Zx(){ay(function(){(Be&6)!==0?Ll(G,Fx):Fd()})}function ro(){if(il===0){var e=ti;e===0&&(e=Ua,Ua<<=1,(Ua&261888)===0&&(Ua=256)),il=e}return il}function Id(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Qa(""+e)}function $d(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 Kx(e,t,l,r,o){if(t==="submit"&&l&&l.stateNode===o){var h=Id((o[wt]||null).action),x=r.submitter;x&&(t=(t=x[wt]||null)?Id(t.formAction):x.getAttribute("formAction"),t!==null&&(h=t,x=null));var z=new Ja("action","action",null,r,o);e.push({event:z,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(il!==0){var w=x?$d(o,x):new FormData(o);ws(l,{pending:!0,data:w,method:o.method,action:h},null,w)}}else typeof h=="function"&&(z.preventDefault(),w=x?$d(o,x):new FormData(o),ws(l,{pending:!0,data:w,method:o.method,action:h},h,w))},currentTarget:o}]})}}for(var uo=0;uo<Xu.length;uo++){var so=Xu[uo],Jx=so.toLowerCase(),Ix=so[0].toUpperCase()+so.slice(1);rn(Jx,"on"+Ix)}rn(Nf,"onAnimationEnd"),rn(Af,"onAnimationIteration"),rn(jf,"onAnimationStart"),rn("dblclick","onDoubleClick"),rn("focusin","onFocus"),rn("focusout","onBlur"),rn(hx,"onTransitionRun"),rn(dx,"onTransitionStart"),rn(mx,"onTransitionCancel"),rn(Mf,"onTransitionEnd"),Yl("onMouseEnter",["mouseout","mouseover"]),Yl("onMouseLeave",["mouseout","mouseover"]),Yl("onPointerEnter",["pointerout","pointerover"]),Yl("onPointerLeave",["pointerout","pointerover"]),gl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gl("onBeforeInput",["compositionend","keypress","textInput","paste"]),gl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var da="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(" "),$x=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(da));function Wd(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],w=z.instance,D=z.currentTarget;if(z=z.listener,w!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=D;try{h(o)}catch(X){Wa(X)}o.currentTarget=null,h=w}else for(x=0;x<r.length;x++){if(z=r[x],w=z.instance,D=z.currentTarget,z=z.listener,w!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=D;try{h(o)}catch(X){Wa(X)}o.currentTarget=null,h=w}}}}function Ce(e,t){var l=t[Su];l===void 0&&(l=t[Su]=new Set);var r=e+"__bubble";l.has(r)||(Pd(t,e,2,!1),l.add(r))}function oo(e,t,l){var r=0;t&&(r|=4),Pd(l,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function co(e){if(!e[Ur]){e[Ur]=!0,Qc.forEach(function(l){l!=="selectionchange"&&($x.has(l)||oo(l,!1,e),oo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ur]||(t[Ur]=!0,oo("selectionchange",!1,t))}}function Pd(e,t,l,r){switch(Nm(t)){case 2:var o=Ty;break;case 8:o=wy;break;default:o=wo}l=o.bind(null,t,l,e),o=void 0,!ju||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 fo(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 w=x.tag;if((w===3||w===4)&&x.stateNode.containerInfo===o)return;x=x.return}for(;z!==null;){if(x=Ul(z),x===null)return;if(w=x.tag,w===5||w===6||w===26||w===27){r=h=x;continue e}z=z.parentNode}}r=r.return}lf(function(){var D=h,X=Nu(l),Z=[];e:{var L=_f.get(e);if(L!==void 0){var Y=Ja,se=e;switch(e){case"keypress":if(Za(l)===0)break e;case"keydown":case"keyup":Y=Gg;break;case"focusin":se="focus",Y=Du;break;case"focusout":se="blur",Y=Du;break;case"beforeblur":case"afterblur":Y=Du;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=uf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=_g;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Zg;break;case Nf:case Af:case jf:Y=Rg;break;case Mf:Y=Jg;break;case"scroll":case"scrollend":Y=jg;break;case"wheel":Y=$g;break;case"copy":case"cut":case"paste":Y=Bg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=of;break;case"toggle":case"beforetoggle":Y=Pg}var pe=(t&4)!==0,Ge=!pe&&(e==="scroll"||e==="scrollend"),M=pe?L!==null?L+"Capture":null:L;pe=[];for(var N=D,O;N!==null;){var F=N;if(O=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||O===null||M===null||(F=Ri(N,M),F!=null&&pe.push(ma(N,F,O))),Ge)break;N=N.return}0<pe.length&&(L=new Y(L,se,null,l,X),Z.push({event:L,listeners:pe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",L&&l!==Cu&&(se=l.relatedTarget||l.fromElement)&&(Ul(se)||se[Bl]))break e;if((Y||L)&&(L=X.window===X?X:(L=X.ownerDocument)?L.defaultView||L.parentWindow:window,Y?(se=l.relatedTarget||l.toElement,Y=D,se=se?Ul(se):null,se!==null&&(Ge=c(se),pe=se.tag,se!==Ge||pe!==5&&pe!==27&&pe!==6)&&(se=null)):(Y=null,se=D),Y!==se)){if(pe=uf,F="onMouseLeave",M="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(pe=of,F="onPointerLeave",M="onPointerEnter",N="pointer"),Ge=Y==null?L:Di(Y),O=se==null?L:Di(se),L=new pe(F,N+"leave",Y,l,X),L.target=Ge,L.relatedTarget=O,F=null,Ul(X)===D&&(pe=new pe(M,N+"enter",se,l,X),pe.target=O,pe.relatedTarget=Ge,F=pe),Ge=F,Y&&se)t:{for(pe=Wx,M=Y,N=se,O=0,F=M;F;F=pe(F))O++;F=0;for(var fe=N;fe;fe=pe(fe))F++;for(;0<O-F;)M=pe(M),O--;for(;0<F-O;)N=pe(N),F--;for(;O--;){if(M===N||N!==null&&M===N.alternate){pe=M;break t}M=pe(M),N=pe(N)}pe=null}else pe=null;Y!==null&&em(Z,L,Y,pe,!1),se!==null&&Ge!==null&&em(Z,Ge,se,pe,!0)}}e:{if(L=D?Di(D):window,Y=L.nodeName&&L.nodeName.toLowerCase(),Y==="select"||Y==="input"&&L.type==="file")var Re=xf;else if(pf(L))if(yf)Re=ox;else{Re=ux;var oe=rx}else Y=L.nodeName,!Y||Y.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?D&&wu(D.elementType)&&(Re=xf):Re=sx;if(Re&&(Re=Re(e,D))){gf(Z,Re,l,X);break e}oe&&oe(e,L,D),e==="focusout"&&D&&L.type==="number"&&D.memoizedProps.value!=null&&Tu(L,"number",L.value)}switch(oe=D?Di(D):window,e){case"focusin":(pf(oe)||oe.contentEditable==="true")&&(Zl=oe,qu=D,Xi=null);break;case"focusout":Xi=qu=Zl=null;break;case"mousedown":Yu=!0;break;case"contextmenu":case"mouseup":case"dragend":Yu=!1,wf(Z,l,X);break;case"selectionchange":if(fx)break;case"keydown":case"keyup":wf(Z,l,X)}var ze;if(Lu)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 Fl?df(e,l)&&(Me="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Me="onCompositionStart");Me&&(cf&&l.locale!=="ko"&&(Fl||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Fl&&(ze=af()):(Vn=X,Mu="value"in Vn?Vn.value:Vn.textContent,Fl=!0)),oe=Hr(D,Me),0<oe.length&&(Me=new sf(Me,e,null,l,X),Z.push({event:Me,listeners:oe}),ze?Me.data=ze:(ze=mf(l),ze!==null&&(Me.data=ze)))),(ze=tx?nx(e,l):lx(e,l))&&(Me=Hr(D,"onBeforeInput"),0<Me.length&&(oe=new sf("onBeforeInput","beforeinput",null,l,X),Z.push({event:oe,listeners:Me}),oe.data=ze)),Kx(Z,e,D,l,X)}Wd(Z,t)})}function ma(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Hr(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=Ri(e,l),o!=null&&r.unshift(ma(e,o,h)),o=Ri(e,t),o!=null&&r.push(ma(e,o,h))),e.tag===3)return r;e=e.return}return[]}function Wx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function em(e,t,l,r,o){for(var h=t._reactName,x=[];l!==null&&l!==r;){var z=l,w=z.alternate,D=z.stateNode;if(z=z.tag,w!==null&&w===r)break;z!==5&&z!==26&&z!==27||D===null||(w=D,o?(D=Ri(l,h),D!=null&&x.unshift(ma(l,D,w))):o||(D=Ri(l,h),D!=null&&x.push(ma(l,D,w)))),l=l.return}x.length!==0&&e.push({event:t,listeners:x})}var Px=/\r\n?/g,ey=/\u0000|\uFFFD/g;function tm(e){return(typeof e=="string"?e:""+e).replace(Px,`
49
+ `).replace(ey,"")}function nm(e,t){return t=tm(t),tm(e)===t}function Xe(e,t,l,r,o,h){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Xl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Xl(e,""+r);break;case"className":Xa(e,"class",r);break;case"tabIndex":Xa(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Xa(e,l,r);break;case"style":tf(e,r,h);break;case"data":if(t!=="object"){Xa(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=Qa(""+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"&&Xe(e,t,"name",o.name,o,null),Xe(e,t,"formEncType",o.formEncType,o,null),Xe(e,t,"formMethod",o.formMethod,o,null),Xe(e,t,"formTarget",o.formTarget,o,null)):(Xe(e,t,"encType",o.encType,o,null),Xe(e,t,"method",o.method,o,null),Xe(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Qa(""+r),e.setAttribute(l,r);break;case"onClick":r!=null&&(e.onclick=vn);break;case"onScroll":r!=null&&Ce("scroll",e);break;case"onScrollEnd":r!=null&&Ce("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=Qa(""+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":Ce("beforetoggle",e),Ce("toggle",e),Va(e,"popover",r);break;case"xlinkActuate":bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":bn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":bn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":bn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":bn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Va(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=Ng.get(l)||l,Va(e,l,r))}}function ho(e,t,l,r,o,h){switch(l){case"style":tf(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"?Xl(e,r):(typeof r=="number"||typeof r=="bigint")&&Xl(e,""+r);break;case"onScroll":r!=null&&Ce("scroll",e);break;case"onScrollEnd":r!=null&&Ce("scrollend",e);break;case"onClick":r!=null&&(e.onclick=vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fc.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[wt]||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,""):Va(e,l,r)}}}function xt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("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:Xe(e,t,h,x,l,null)}}o&&Xe(e,t,"srcSet",l.srcSet,l,null),r&&Xe(e,t,"src",l.src,l,null);return;case"input":Ce("invalid",e);var z=h=x=o=null,w=null,D=null;for(r in l)if(l.hasOwnProperty(r)){var X=l[r];if(X!=null)switch(r){case"name":o=X;break;case"type":x=X;break;case"checked":w=X;break;case"defaultChecked":D=X;break;case"value":h=X;break;case"defaultValue":z=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(u(137,t));break;default:Xe(e,t,r,X,l,null)}}$c(e,h,z,w,D,x,o,!1);return;case"select":Ce("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:Xe(e,t,o,z,l,null)}t=h,l=x,e.multiple=!!r,t!=null?Vl(e,!!r,t,!1):l!=null&&Vl(e,!!r,l,!0);return;case"textarea":Ce("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:Xe(e,t,x,z,l,null)}Pc(e,r,o,h);return;case"option":for(w in l)if(l.hasOwnProperty(w)&&(r=l[w],r!=null))switch(w){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Xe(e,t,w,r,l,null)}return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(r=0;r<da.length;r++)Ce(da[r],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("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(D in l)if(l.hasOwnProperty(D)&&(r=l[D],r!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Xe(e,t,D,r,l,null)}return;default:if(wu(t)){for(X in l)l.hasOwnProperty(X)&&(r=l[X],r!==void 0&&ho(e,t,X,r,l,void 0));return}}for(z in l)l.hasOwnProperty(z)&&(r=l[z],r!=null&&Xe(e,t,z,r,l,null))}function ty(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,w=null,D=null,X=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":w=Z;default:r.hasOwnProperty(Y)||Xe(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":D=Y;break;case"defaultChecked":X=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&&Xe(e,t,L,Y,r,Z)}}Eu(e,x,z,w,D,X,h,o);return;case"select":Y=x=z=L=null;for(h in l)if(w=l[h],l.hasOwnProperty(h)&&w!=null)switch(h){case"value":break;case"multiple":Y=w;default:r.hasOwnProperty(h)||Xe(e,t,h,null,r,w)}for(o in r)if(h=r[o],w=l[o],r.hasOwnProperty(o)&&(h!=null||w!=null))switch(o){case"value":L=h;break;case"defaultValue":z=h;break;case"multiple":x=h;default:h!==w&&Xe(e,t,o,h,r,w)}t=z,l=x,r=Y,L!=null?Vl(e,!!l,L,!1):!!r!=!!l&&(t!=null?Vl(e,!!l,t,!0):Vl(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:Xe(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&&Xe(e,t,x,o,r,h)}Wc(e,L,Y);return;case"option":for(var se in l)if(L=l[se],l.hasOwnProperty(se)&&L!=null&&!r.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:Xe(e,t,se,null,r,L)}for(w in r)if(L=r[w],Y=l[w],r.hasOwnProperty(w)&&L!==Y&&(L!=null||Y!=null))switch(w){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Xe(e,t,w,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 pe in l)L=l[pe],l.hasOwnProperty(pe)&&L!=null&&!r.hasOwnProperty(pe)&&Xe(e,t,pe,null,r,L);for(D in r)if(L=r[D],Y=l[D],r.hasOwnProperty(D)&&L!==Y&&(L!=null||Y!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:Xe(e,t,D,L,r,Y)}return;default:if(wu(t)){for(var Ge in l)L=l[Ge],l.hasOwnProperty(Ge)&&L!==void 0&&!r.hasOwnProperty(Ge)&&ho(e,t,Ge,void 0,r,L);for(X in r)L=r[X],Y=l[X],!r.hasOwnProperty(X)||L===Y||L===void 0&&Y===void 0||ho(e,t,X,L,r,Y);return}}for(var M in l)L=l[M],l.hasOwnProperty(M)&&L!=null&&!r.hasOwnProperty(M)&&Xe(e,t,M,null,r,L);for(Z in r)L=r[Z],Y=l[Z],!r.hasOwnProperty(Z)||L===Y||L==null&&Y==null||Xe(e,t,Z,L,r,Y)}function lm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ny(){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&&lm(x)){for(x=0,z=o.responseEnd,r+=1;r<l.length;r++){var w=l[r],D=w.startTime;if(D>z)break;var X=w.transferSize,Z=w.initiatorType;X&&lm(Z)&&(w=w.responseEnd,x+=X*(w<z?1:(z-D)/(w-D)))}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 mo=null,po=null;function qr(e){return e.nodeType===9?e:e.ownerDocument}function im(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 am(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 go(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 xo=null;function ly(){var e=window.event;return e&&e.type==="popstate"?e===xo?!1:(xo=e,!0):(xo=null,!1)}var rm=typeof setTimeout=="function"?setTimeout:void 0,iy=typeof clearTimeout=="function"?clearTimeout:void 0,um=typeof Promise=="function"?Promise:void 0,ay=typeof queueMicrotask=="function"?queueMicrotask:typeof um<"u"?function(e){return um.resolve(null).then(e).catch(ry)}:rm;function ry(e){setTimeout(function(){throw e})}function al(e){return e==="head"}function sm(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),vi(t);return}r--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")r++;else if(l==="html")pa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,pa(l);for(var h=l.firstChild;h;){var x=h.nextSibling,z=h.nodeName;h[Oi]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=x}}else l==="body"&&pa(e.ownerDocument.body);l=o}while(l);vi(t)}function om(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 yo(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":yo(l),zu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function uy(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[Oi])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=en(e.nextSibling),e===null)break}return null}function sy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=en(e.nextSibling),e===null))return null;return e}function cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=en(e.nextSibling),e===null))return null;return e}function bo(e){return e.data==="$?"||e.data==="$~"}function vo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oy(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 en(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 So=null;function fm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return en(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function hm(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 dm(e,t,l){switch(t=qr(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 pa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zu(e)}var tn=new Map,mm=new Set;function Yr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ln=Q.d;Q.d={f:cy,r:fy,D:hy,C:dy,L:my,m:py,X:xy,S:gy,M:yy};function cy(){var e=Ln.f(),t=_r();return e||t}function fy(e){var t=Hl(e);t!==null&&t.tag===5&&t.type==="form"?Mh(t):Ln.r(e)}var xi=typeof document>"u"?null:document;function pm(e,t,l){var r=xi;if(r&&typeof t=="string"&&t){var o=Zt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),mm.has(o)||(mm.add(o),e={rel:e,crossOrigin:l,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),xt(t,"link",e),ft(t),r.head.appendChild(t)))}}function hy(e){Ln.D(e),pm("dns-prefetch",e,null)}function dy(e,t){Ln.C(e,t),pm("preconnect",e,t)}function my(e,t,l){Ln.L(e,t,l);var r=xi;if(r&&e&&t){var o='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Zt(l.imageSizes)+'"]')):o+='[href="'+Zt(e)+'"]';var h=o;switch(t){case"style":h=yi(e);break;case"script":h=bi(e)}tn.has(h)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),tn.set(h,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(ga(h))||t==="script"&&r.querySelector(xa(h))||(t=r.createElement("link"),xt(t,"link",e),ft(t),r.head.appendChild(t)))}}function py(e,t){Ln.m(e,t);var l=xi;if(l&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Zt(r)+'"][href="'+Zt(e)+'"]',h=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=bi(e)}if(!tn.has(h)&&(e=g({rel:"modulepreload",href:e},t),tn.set(h,e),l.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(xa(h)))return}r=l.createElement("link"),xt(r,"link",e),ft(r),l.head.appendChild(r)}}}function gy(e,t,l){Ln.S(e,t,l);var r=xi;if(r&&e){var o=ql(r).hoistableStyles,h=yi(e);t=t||"default";var x=o.get(h);if(!x){var z={loading:0,preload:null};if(x=r.querySelector(ga(h)))z.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=tn.get(h))&&zo(e,l);var w=x=r.createElement("link");ft(w),xt(w,"link",e),w._p=new Promise(function(D,X){w.onload=D,w.onerror=X}),w.addEventListener("load",function(){z.loading|=1}),w.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Vr(x,t,r)}x={type:"stylesheet",instance:x,count:1,state:z},o.set(h,x)}}}function xy(e,t){Ln.X(e,t);var l=xi;if(l&&e){var r=ql(l).hoistableScripts,o=bi(e),h=r.get(o);h||(h=l.querySelector(xa(o)),h||(e=g({src:e,async:!0},t),(t=tn.get(o))&&ko(e,t),h=l.createElement("script"),ft(h),xt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function yy(e,t){Ln.M(e,t);var l=xi;if(l&&e){var r=ql(l).hoistableScripts,o=bi(e),h=r.get(o);h||(h=l.querySelector(xa(o)),h||(e=g({src:e,async:!0,type:"module"},t),(t=tn.get(o))&&ko(e,t),h=l.createElement("script"),ft(h),xt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function gm(e,t,l,r){var o=(o=ce.current)?Yr(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=yi(l.href),l=ql(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=yi(l.href);var h=ql(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(ga(e)))&&!h._p&&(x.instance=h,x.state.loading=5),tn.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},tn.set(e,l),h||by(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=bi(l),l=ql(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 yi(e){return'href="'+Zt(e)+'"'}function ga(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function by(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}),xt(t,"link",l),ft(t),e.head.appendChild(t))}function bi(e){return'[src="'+Zt(e)+'"]'}function xa(e){return"script[async]"+e}function ym(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Zt(l.href)+'"]');if(r)return t.instance=r,ft(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"),ft(r),xt(r,"style",o),Vr(r,l.precedence,e),t.instance=r;case"stylesheet":o=yi(l.href);var h=e.querySelector(ga(o));if(h)return t.state.loading|=4,t.instance=h,ft(h),h;r=xm(l),(o=tn.get(o))&&zo(r,o),h=(e.ownerDocument||e).createElement("link"),ft(h);var x=h;return x._p=new Promise(function(z,w){x.onload=z,x.onerror=w}),xt(h,"link",r),t.state.loading|=4,Vr(h,l.precedence,e),t.instance=h;case"script":return h=bi(l.src),(o=e.querySelector(xa(h)))?(t.instance=o,ft(o),o):(r=l,(o=tn.get(h))&&(r=g({},l),ko(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ft(o),xt(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,Vr(r,l.precedence,e));return t.instance}function Vr(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 zo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ko(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Xr=null;function bm(e,t,l){if(Xr===null){var r=new Map,o=Xr=new Map;o.set(l,r)}else o=Xr,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[Oi]||h[dt]||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 vm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function vy(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 Sm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Sy(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=yi(r.href),h=t.querySelector(ga(o));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=h,ft(h);return}h=t.ownerDocument||t,r=xm(r),(o=tn.get(o))&&zo(r,o),h=h.createElement("link"),ft(h);var x=h;x._p=new Promise(function(z,w){x.onload=z,x.onerror=w}),xt(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=Gr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Eo=0;function zy(e,t){return e.stylesheets&&e.count===0&&Fr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var r=setTimeout(function(){if(e.stylesheets&&Fr(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&Eo===0&&(Eo=62500*ny());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Fr(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 Gr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Fr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qr=null;function Fr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qr=new Map,t.forEach(ky,e),Qr=null,Gr.call(e))}function ky(e,t){if(!(t.state.loading&4)){var l=Qr.get(e);if(l)var r=l.get(null);else{l=new Map,Qr.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=Gr.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 ya={$$typeof:B,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Ey(e,t,l,r,o,h,x,z,w){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=yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yu(0),this.hiddenUpdates=yu(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=h,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function zm(e,t,l,r,o,h,x,z,w,D,X,Z){return e=new Ey(e,t,l,x,w,D,X,Z,z),t=1,h===!0&&(t|=24),h=Ut(3,null,null,t),e.current=h,h.stateNode=e,t=ns(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:r,isDehydrated:l,cache:t},rs(h),e}function km(e){return e?(e=Il,e):Il}function Em(e,t,l,r,o,h){o=km(o),r.context===null?r.context=o:r.pendingContext=o,r=Kn(t),r.payload={element:l},h=h===void 0?null:h,h!==null&&(r.callback=h),l=Jn(e,r,t),l!==null&&(_t(l,e,t),Ii(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 wm(e){if(e.tag===13||e.tag===31){var t=vl(e,67108864);t!==null&&_t(t,e,67108864),To(e,67108864)}}function Cm(e){if(e.tag===13||e.tag===31){var t=Xt();t=bu(t);var l=vl(e,t);l!==null&&_t(l,e,t),To(e,t)}}var Zr=!0;function Ty(e,t,l,r){var o=j.T;j.T=null;var h=Q.p;try{Q.p=2,wo(e,t,l,r)}finally{Q.p=h,j.T=o}}function wy(e,t,l,r){var o=j.T;j.T=null;var h=Q.p;try{Q.p=8,wo(e,t,l,r)}finally{Q.p=h,j.T=o}}function wo(e,t,l,r){if(Zr){var o=Co(r);if(o===null)fo(e,t,r,Kr,l),Am(e,r);else if(Ny(o,e,t,l,r))r.stopPropagation();else if(Am(e,r),t&4&&-1<Cy.indexOf(e)){for(;o!==null;){var h=Hl(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var x=pl(h.pendingLanes);if(x!==0){var z=h;for(z.pendingLanes|=2,z.entangledLanes|=2;x;){var w=1<<31-Qe(x);z.entanglements[1]|=w,x&=~w}mn(h),(Be&6)===0&&(jr=St()+500,ha(0))}}break;case 31:case 13:z=vl(h,2),z!==null&&_t(z,h,2),_r(),To(h,2)}if(h=Co(r),h===null&&fo(e,t,r,Kr,l),h===o)break;o=h}o!==null&&r.stopPropagation()}else fo(e,t,r,null,l)}}function Co(e){return e=Nu(e),No(e)}var Kr=null;function No(e){if(Kr=null,e=Ul(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 Kr=e,null}function Nm(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(xu()){case G:return 2;case te:return 8;case ge:case Te:return 32;case He:return 268435456;default:return 32}default:return 32}}var Ao=!1,rl=null,ul=null,sl=null,ba=new Map,va=new Map,ol=[],Cy="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 Am(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":ul=null;break;case"mouseover":case"mouseout":sl=null;break;case"pointerover":case"pointerout":ba.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":va.delete(t.pointerId)}}function Sa(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=Hl(t),t!==null&&wm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Ny(e,t,l,r,o){switch(t){case"focusin":return rl=Sa(rl,e,t,l,r,o),!0;case"dragenter":return ul=Sa(ul,e,t,l,r,o),!0;case"mouseover":return sl=Sa(sl,e,t,l,r,o),!0;case"pointerover":var h=o.pointerId;return ba.set(h,Sa(ba.get(h)||null,e,t,l,r,o)),!0;case"gotpointercapture":return h=o.pointerId,va.set(h,Sa(va.get(h)||null,e,t,l,r,o)),!0}return!1}function jm(e){var t=Ul(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,Xc(e.priority,function(){Cm(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,Xc(e.priority,function(){Cm(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 Jr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Co(e.nativeEvent);if(l===null){l=e.nativeEvent;var r=new l.constructor(l.type,l);Cu=r,l.target.dispatchEvent(r),Cu=null}else return t=Hl(l),t!==null&&wm(t),e.blockedOn=l,!1;t.shift()}return!0}function Mm(e,t,l){Jr(e)&&l.delete(t)}function Ay(){Ao=!1,rl!==null&&Jr(rl)&&(rl=null),ul!==null&&Jr(ul)&&(ul=null),sl!==null&&Jr(sl)&&(sl=null),ba.forEach(Mm),va.forEach(Mm)}function Ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Ao||(Ao=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Ay)))}var $r=null;function _m(e){$r!==e&&($r=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){$r===e&&($r=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(No(r||l)===null)continue;break}var h=Hl(l);h!==null&&(e.splice(t,3),t-=3,ws(h,{pending:!0,data:o,method:l.method,action:r},r,o))}}))}function vi(e){function t(w){return Ir(w,e)}rl!==null&&Ir(rl,e),ul!==null&&Ir(ul,e),sl!==null&&Ir(sl,e),ba.forEach(t),va.forEach(t);for(var l=0;l<ol.length;l++){var r=ol[l];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ol.length&&(l=ol[0],l.blockedOn===null);)jm(l),l.blockedOn===null&&ol.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[wt]||null;if(typeof h=="function")x||_m(l);else if(x){var z=null;if(h&&h.hasAttribute("formAction")){if(o=h,x=h[wt]||null)z=x.formAction;else if(No(o)!==null)continue}else z=x.action;typeof z=="function"?l[r+1]=z:(l.splice(r,3),r-=3),_m(l)}}}function Om(){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 jo(e){this._internalRoot=e}Wr.prototype.render=jo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,r=Xt();Em(l,r,e,t,null,null)},Wr.prototype.unmount=jo.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),_r(),t[Bl]=null}};function Wr(e){this._internalRoot=e}Wr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ol.length&&t!==0&&t<ol[l].priority;l++);ol.splice(l,0,e),l===0&&jm(e)}};var Dm=a.version;if(Dm!=="19.2.4")throw Error(u(527,Dm,"19.2.4"));Q.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 jy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pr.isDisabled&&Pr.supportsFiber)try{zt=Pr.inject(jy),ot=Pr}catch{}}return ka.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,r="",o=Yh,h=Vh,x=Xh;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=zm(e,1,!1,null,null,l,r,null,o,h,x,Om),e[Bl]=t.current,co(e),new jo(t)},ka.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var r=!1,o="",h=Yh,x=Vh,z=Xh,w=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&&(w=l.formState)),t=zm(e,1,!0,t,l??null,r,o,w,h,x,z,Om),t.context=km(null),l=t.current,r=Xt(),r=bu(r),o=Kn(r),o.callback=null,Jn(l,o,r),l=r,t.current.lanes=l,_i(t,l),mn(t),e[Bl]=t.current,co(e),new Wr(t)},ka.version="19.2.4",ka}var Gm;function Hy(){if(Gm)return Oo.exports;Gm=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(),Oo.exports=Uy(),Oo.exports}var qy=Hy();/**
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 Yy=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vy=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),Qm=n=>{const a=Vy(n);return a.charAt(0).toUpperCase()+a.slice(1)},Jp=(...n)=>n.filter((a,i,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===i).join(" ").trim(),Xy=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 Gy={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 Qy=P.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...d},p)=>P.createElement("svg",{ref:p,...Gy,width:a,height:a,stroke:n,strokeWidth:u?Number(i)*24/Number(a):i,className:Jp("lucide",s),...!c&&!Xy(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,y])=>P.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=P.forwardRef(({className:u,...s},c)=>P.createElement(Qy,{ref:c,iconNode:a,className:Jp(`lucide-${Yy(Qm(n))}`,`lucide-${n}`,u),...s}));return i.displayName=Qm(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 Fy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Zy=Oe("arrow-right",Fy);/**
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 Ky=[["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"}]],Ip=Oe("bot",Ky);/**
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 Jy=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Da=Oe("check",Jy);/**
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 Iy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$p=Oe("circle-check",Iy);/**
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 $y=[["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"}]],Wy=Oe("circle-question-mark",$y);/**
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 Py=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],e1=Oe("circle",Py);/**
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 t1=[["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"}]],gc=Oe("copy",t1);/**
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 n1=[["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"}]],l1=Oe("database",n1);/**
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 i1=[["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"}]],xc=Oe("download",i1);/**
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 a1=[["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"}]],Wp=Oe("file-code",a1);/**
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 r1=[["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"}]],u1=Oe("file-pen",r1);/**
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 s1=[["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"}]],Pp=Oe("file-plus-corner",s1);/**
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 o1=[["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"}]],e0=Oe("file-text",o1);/**
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 c1=[["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"}]],yc=Oe("folder-open",c1);/**
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 f1=[["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"}]],h1=Oe("git-branch",f1);/**
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 d1=[["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"}]],m1=Oe("globe",d1);/**
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 p1=[["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"}]],g1=Oe("hard-drive",p1);/**
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 x1=[["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"}]],y1=Oe("lightbulb",x1);/**
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 b1=[["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"}]],t0=Oe("list-todo",b1);/**
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 v1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],n0=Oe("loader-circle",v1);/**
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 S1=[["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"}]],z1=Oe("message-square",S1);/**
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 k1=[["path",{d:"M5 12h14",key:"1ays0h"}]],E1=Oe("minus",k1);/**
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 T1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],w1=Oe("panel-left",T1);/**
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 C1=[["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"}]],N1=Oe("pause",C1);/**
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 A1=[["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"}]],j1=Oe("pencil",A1);/**
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 M1=[["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"}]],l0=Oe("play",M1);/**
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 _1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],O1=Oe("plus",_1);/**
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 D1=[["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"}]],R1=Oe("refresh-cw",D1);/**
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 L1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],au=Oe("search",L1);/**
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 B1=[["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"}]],nc=Oe("square-check-big",B1);/**
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 U1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],i0=Oe("square",U1);/**
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 H1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],a0=Oe("terminal",H1);/**
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 q1=[["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"}]],Y1=Oe("triangle-alert",q1);/**
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 V1=[["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"}]],X1=Oe("wrench",V1);/**
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 G1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bc=Oe("x",G1);function r0(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()}const Q1=[/<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 Dt(n){if(!n)return"";let a=n;for(const i of Q1)a=a.replace(i,"");return a.trim()}var F1=Kp();function Si(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((T,_)=>u[_]!==T)))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 T=Math.round((Date.now()-y)*100)/100,_=Math.round((Date.now()-v)*100)/100,U=_/16,A=(q,B)=>{for(q=String(q);q.length<B;)q=" "+q;return q};console.info(`%c⏱ ${A(_,5)} /${A(T,5)} ms`,`
245
+ font-size: .6rem;
246
+ font-weight: bold;
247
+ color: hsl(${Math.max(0,Math.min(120-120*U,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 Fm(n,a){if(n===void 0)throw new Error("Unexpected undefined");return n}const Z1=(n,a)=>Math.abs(n-a)<1.01,K1=(n,a,i)=>{let u;return function(...s){n.clearTimeout(u),u=n.setTimeout(()=>a.apply(this,s),i)}},Zm=n=>{const{offsetWidth:a,offsetHeight:i}=n;return{width:a,height:i}},J1=n=>n,I1=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},$1=(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(Zm(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(Zm(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},Km={passive:!0},Jm=typeof window>"u"?!0:"onscrollend"in window,W1=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;let s=0;const c=n.options.useScrollendEvent&&Jm?()=>{}:K1(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,Km);const m=n.options.useScrollendEvent&&Jm;return m&&i.addEventListener("scrollend",p,Km),()=>{i.removeEventListener("scroll",d),m&&i.removeEventListener("scrollend",p)}},P1=(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"]},eb=(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 tb{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:J1,rangeExtractor:I1,onChange:()=>{},measureElement:P1,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=Si(()=>(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=Si(()=>[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=Si(()=>[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),T=this.laneAssignments.get(S);let _,U;if(T!==void 0&&this.options.lanes>1){_=T;const J=g[_],K=J!==void 0?y[J]:void 0;U=K?K.end+this.options.gap:u+s}else{const J=this.options.lanes===1?y[S-1]:this.getFurthestMeasurement(y,S);U=J?J.end+this.options.gap:u+s,_=J?J.lane:S%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(S,_)}const A=p.get(v),q=typeof A=="number"?A:this.options.estimateSize(S),B=U+q;y[S]={index:S,start:U,size:q,end:B,key:v,lane:_},g[_]=S}return this.measurementsCache=y,y},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Si(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,s,c)=>this.range=i.length>0&&u>0?nb({measurements:i,outerSize:u,scrollOffset:s,lanes:c}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Si(()=>{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=Si(()=>[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 Fm(u[u0(0,u.length-1,s=>Fm(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 T=this.getScrollOffset(),_=this.getOffsetForIndex(i,S);if(!_){console.warn("Failed to get offset for index:",i);return}Z1(_[0],T)||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 u0=(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 nb({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=u0(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 Im=typeof document<"u"?P.useLayoutEffect:P.useEffect;function lb({useFlushSync:n=!0,...a}){const i=P.useReducer(()=>({}),{})[1],u={...a,onChange:(c,f)=>{var d;n&&f?F1.flushSync(i):i(),(d=a.onChange)==null||d.call(a,c,f)}},[s]=P.useState(()=>new tb(u));return s.setOptions(u),Im(()=>s._didMount(),[]),Im(()=>s._willUpdate()),s}function ib(n){return lb({observeElementRect:$1,observeElementOffset:W1,scrollToFn:eb,...n})}const ab=P.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,batchMode:v,selectedSessions:T,onToggleBatchMode:_,onToggleSessionSelection:U,onSelectAll:A,onDeselectAll:q,onBatchExport:B}=a,[J,K]=P.useState(!1),[R,$]=P.useState(null),[ue,he]=P.useState(new Map),H=P.useRef(null);P.useEffect(()=>{if(!m||!d.trim()){K(!1),$(null),he(new Map);return}const j=new AbortController,Q=setTimeout(()=>{K(!0),$(null),fetch("/api/search",{method:"POST",headers:{"Content-Type":"application/json"},signal:j.signal,body:JSON.stringify({query:d,options:g,project:f??null})}).then(async ie=>{const ye=ie.headers.get("x-claude-run-rg-command");ye&&console.log("[claude-run]",ye);const E=await ie.json();if(!ie.ok)throw new Error(E.error||"Search failed");const C=new Map;for(const V of E.matches)C.set(V.sessionId,V.matchCount);he(C)}).catch(ie=>{(ie==null?void 0:ie.name)!=="AbortError"&&(he(new Map),$(ie instanceof Error?ie.message:"Search failed"))}).finally(()=>{K(!1)})},250);return()=>{j.abort(),clearTimeout(Q)}},[m,d,g,f]);const ee=P.useMemo(()=>{if(!d.trim())return i;if(m)return J||R?[]:ue.size===0?[]:i.filter(Q=>ue.has(Q.id));const j=d.toLowerCase();return i.filter(Q=>Q.display.toLowerCase().includes(j)||Q.projectName.toLowerCase().includes(j))},[i,d,m,J,R,ue]),ne=ib({count:ee.length,getScrollElement:()=>H.current,estimateSize:()=>76,overscan:10,measureElement:j=>j.getBoundingClientRect().height}),ve=P.useCallback((j,Q)=>{v?(Q.preventDefault(),U(j.id)):s(j.id)},[v,U,s]),re=T.size,W=re===ee.length&&ee.length>0;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:j=>p(j.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:j=>y(j.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"})})})]}),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:j=>S({...g,mode:j.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:j=>S({...g,caseSensitive:j.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:j=>S({...g,wordRegexp:j.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:j=>S({...g,maxMatchesPerFile:Number.parseInt(j.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"})]}),J&&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:_,className:`flex items-center gap-1.5 px-2 py-1 text-xs rounded transition-colors ${v?"bg-cyan-600/20 text-cyan-400 border border-cyan-600/40":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800"}`,title:v?"Exit batch mode":"Enter batch mode",children:v?b.jsxs(b.Fragment,{children:[b.jsx(bc,{className:"w-3 h-3"}),"Exit"]}):b.jsxs(b.Fragment,{children:[b.jsx(nc,{className:"w-3 h-3"}),"Select"]})}),v&&b.jsxs(b.Fragment,{children:[b.jsx("button",{onClick:W?q:A,className:"px-2 py-1 text-xs text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded transition-colors",children:W?"Deselect All":"Select All"}),re>0&&b.jsxs("button",{onClick:B,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(xc,{className:"w-3 h-3"}),"Export (",re,")"]})]})]}),b.jsx("div",{ref:H,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"})]})}):ee.length===0?b.jsx("p",{className:"py-8 text-center text-xs text-zinc-600",children:m&&d&&R?R:m&&d&&J?"Searching…":d?m?"No matches in conversation text":"No sessions match":"No sessions found"}):b.jsx("div",{style:{height:`${ne.getTotalSize()}px`,width:"100%",position:"relative"},children:ne.getVirtualItems().map(j=>{const Q=ee[j.index],ie=T.has(Q.id);return b.jsx("button",{"data-index":j.index,ref:ne.measureElement,onClick:ye=>ve(Q,ye),style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${j.start}px)`},className:`px-3 py-3.5 text-left transition-colors overflow-hidden border-b border-zinc-800/40 ${v&&ie||u===Q.id&&!v?"bg-cyan-700/30":"hover:bg-zinc-900/60"} ${j.index===0?"border-t border-t-zinc-800/40":""}`,children:b.jsxs("div",{className:"flex items-center gap-2",children:[v&&b.jsx("div",{className:"shrink-0",children:ie?b.jsx(nc,{className:"w-4 h-4 text-cyan-400"}):b.jsx(i0,{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",children:Q.projectName}),b.jsxs("div",{className:"flex items-center gap-2",children:[m&&d.trim()&&ue.has(Q.id)&&b.jsx("span",{className:"text-[10px] text-cyan-400",children:ue.get(Q.id)}),b.jsx("span",{className:"text-[10px] text-zinc-600",children:r0(Q.timestamp)})]})]}),b.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 wrap-break-word",children:Q.display})]})]})},Q.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:v&&re>0?`${re} of ${i.length} selected`:`${i.length} session${i.length!==1?"s":""}`})})]})});function rb(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const ub=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ob={};function $m(n,a){return(ob.jsx?sb:ub).test(n)}const cb=/[ \t\n\f\r]/g;function fb(n){return typeof n=="object"?n.type==="text"?Wm(n.value):!1:Wm(n)}function Wm(n){return n.replace(cb,"")===""}class Ra{constructor(a,i,u){this.normal=i,this.property=a,u&&(this.space=u)}}Ra.prototype.normal={};Ra.prototype.property={};Ra.prototype.space=void 0;function s0(n,a){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new Ra(i,u,a)}function lc(n){return n.toLowerCase()}class Rt{constructor(a,i){this.attribute=i,this.property=a}}Rt.prototype.attribute="";Rt.prototype.booleanish=!1;Rt.prototype.boolean=!1;Rt.prototype.commaOrSpaceSeparated=!1;Rt.prototype.commaSeparated=!1;Rt.prototype.defined=!1;Rt.prototype.mustUseProperty=!1;Rt.prototype.number=!1;Rt.prototype.overloadedBoolean=!1;Rt.prototype.property="";Rt.prototype.spaceSeparated=!1;Rt.prototype.space=void 0;let hb=0;const ke=Rl(),ut=Rl(),ic=Rl(),I=Rl(),Je=Rl(),Ti=Rl(),Gt=Rl();function Rl(){return 2**++hb}const ac=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:ut,commaOrSpaceSeparated:Gt,commaSeparated:Ti,number:I,overloadedBoolean:ic,spaceSeparated:Je},Symbol.toStringTag,{value:"Module"})),Bo=Object.keys(ac);class vc extends Rt{constructor(a,i,u,s){let c=-1;if(super(a,i),Pm(this,"space",s),typeof u=="number")for(;++c<Bo.length;){const f=Bo[c];Pm(this,Bo[c],(u&ac[f])===ac[f])}}}vc.prototype.defined=!0;function Pm(n,a,i){i&&(n[a]=i)}function Ci(n){const a={},i={};for(const[u,s]of Object.entries(n.properties)){const c=new vc(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,i[lc(u)]=u,i[lc(c.attribute)]=u}return new Ra(a,i,n.space)}const o0=Ci({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Je,ariaCurrent:null,ariaDescribedBy:Je,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Je,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Je,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Je,ariaLevel:I,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Je,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Je,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:ut,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function c0(n,a){return a in n?n[a]:a}function f0(n,a){return c0(n,a.toLowerCase())}const db=Ci({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ti,acceptCharset:Je,accessKey:Je,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:Je,autoFocus:ke,autoPlay:ke,blocking:Je,capture:null,charSet:null,checked:ke,cite:null,className:Je,cols:I,colSpan:null,content:null,contentEditable:ut,controls:ke,controlsList:Je,coords:I|Ti,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:ic,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:Je,height:I,hidden:ic,high:I,href:null,hrefLang:null,htmlFor:Je,httpEquiv:Je,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:Je,itemRef:Je,itemScope:ke,itemType:Je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,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:ke,optimum:I,pattern:null,ping:Je,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:Je,required:ke,reversed:ke,rows:I,rowSpan:I,sandbox:Je,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:ut,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Je,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:f0}),mb=Ci({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:Gt,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Je,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Ti,g2:Ti,glyphName:Ti,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:Gt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,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:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gt,rev:Gt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gt,requiredFeatures:Gt,requiredFonts:Gt,requiredFormats:Gt,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:Gt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gt,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:c0}),h0=Ci({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()}}),d0=Ci({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:f0}),m0=Ci({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),pb={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"},gb=/[A-Z]/g,ep=/-[a-z]/g,xb=/^data[-\w.:]+$/i;function yb(n,a){const i=lc(a);let u=a,s=Rt;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&xb.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(ep,vb);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!ep.test(c)){let f=c.replace(gb,bb);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=vc}return new s(u,a)}function bb(n){return"-"+n.toLowerCase()}function vb(n){return n.charAt(1).toUpperCase()}const Sb=s0([o0,db,h0,d0,m0],"html"),Sc=s0([o0,mb,h0,d0,m0],"svg");function zb(n){return n.join(" ").trim()}var zi={},Uo,tp;function kb(){if(tp)return Uo;tp=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 T(U,A){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];A=A||{};var q=1,B=1;function J(re){var W=re.match(a);W&&(q+=W.length);var j=re.lastIndexOf(p);B=~j?re.length-j:B+re.length}function K(){var re={line:q,column:B};return function(W){return W.position=new R(re),he(),W}}function R(re){this.start=re,this.end={line:q,column:B},this.source=A.source}R.prototype.content=U;function $(re){var W=new Error(A.source+":"+q+":"+B+": "+re);if(W.reason=re,W.filename=A.source,W.line=q,W.column=B,W.source=U,!A.silent)throw W}function ue(re){var W=re.exec(U);if(W){var j=W[0];return J(j),U=U.slice(j.length),W}}function he(){ue(i)}function H(re){var W;for(re=re||[];W=ee();)W!==!1&&re.push(W);return re}function ee(){var re=K();if(!(m!=U.charAt(0)||y!=U.charAt(1))){for(var W=2;g!=U.charAt(W)&&(y!=U.charAt(W)||m!=U.charAt(W+1));)++W;if(W+=2,g===U.charAt(W-1))return $("End of comment missing");var j=U.slice(2,W-2);return B+=2,J(j),U=U.slice(W),B+=2,re({type:S,comment:j})}}function ne(){var re=K(),W=ue(u);if(W){if(ee(),!ue(s))return $("property missing ':'");var j=ue(c),Q=re({type:v,property:_(W[0].replace(n,g)),value:j?_(j[0].replace(n,g)):g});return ue(f),Q}}function ve(){var re=[];H(re);for(var W;W=ne();)W!==!1&&(re.push(W),H(re));return re}return he(),ve()}function _(U){return U?U.replace(d,g):g}return Uo=T,Uo}var np;function Eb(){if(np)return zi;np=1;var n=zi&&zi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=i;const a=n(kb());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 zi}var Ea={},lp;function Tb(){if(lp)return Ea;lp=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.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 Ea.camelCase=p,Ea}var Ta,ip;function wb(){if(ip)return Ta;ip=1;var n=Ta&&Ta.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Eb()),i=Tb();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,Ta=u,Ta}var Cb=wb();const Nb=Zp(Cb),p0=g0("end"),zc=g0("start");function g0(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 Ab(n){const a=zc(n),i=p0(n);if(a&&i)return{start:a,end:i}}function Aa(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?ap(n.position):"start"in n||"end"in n?ap(n):"line"in n||"column"in n?rc(n):""}function rc(n){return rp(n&&n.line)+":"+rp(n&&n.column)}function ap(n){return rc(n&&n.start)+"-"+rc(n&&n.end)}function rp(n){return n&&typeof n=="number"?n:1}class vt 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=Aa(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}}vt.prototype.file="";vt.prototype.name="";vt.prototype.reason="";vt.prototype.message="";vt.prototype.stack="";vt.prototype.column=void 0;vt.prototype.line=void 0;vt.prototype.ancestors=void 0;vt.prototype.cause=void 0;vt.prototype.fatal=void 0;vt.prototype.place=void 0;vt.prototype.ruleId=void 0;vt.prototype.source=void 0;const kc={}.hasOwnProperty,jb=new Map,Mb=/[A-Z]/g,_b=new Set(["table","tbody","thead","tfoot","tr"]),Ob=new Set(["td","th"]),x0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Db(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=Vb(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=Yb(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"?Sc:Sb,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=y0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function y0(n,a,i){if(a.type==="element")return Rb(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Lb(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Ub(n,a,i);if(a.type==="mdxjsEsm")return Bb(n,a);if(a.type==="root")return Hb(n,a,i);if(a.type==="text")return qb(n,a)}function Rb(n,a,i){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=Sc,n.schema=s),n.ancestors.push(a);const c=v0(n,a.tagName,!1),f=Xb(n,a);let d=Tc(n,a);return _b.has(a.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!fb(p):!0})),b0(n,f,c,a),Ec(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Lb(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)}_a(n,a.position)}function Bb(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);_a(n,a.position)}function Ub(n,a,i){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=Sc,n.schema=s),n.ancestors.push(a);const c=a.name===null?n.Fragment:v0(n,a.name,!0),f=Gb(n,a),d=Tc(n,a);return b0(n,f,c,a),Ec(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Hb(n,a,i){const u={};return Ec(u,Tc(n,a)),n.create(a,n.Fragment,u,i)}function qb(n,a){return a.value}function b0(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 Yb(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 Vb(n,a){return i;function i(u,s,c,f){const d=Array.isArray(c.children),p=zc(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 Xb(n,a){const i={};let u,s;for(s in a.properties)if(s!=="children"&&kc.call(a.properties,s)){const c=Qb(n,s,a.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Ob.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 Gb(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 _a(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 _a(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:jb;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=y0(n,c,f);d!==void 0&&i.push(d)}return i}function Qb(n,a,i){const u=yb(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?rb(i):zb(i)),u.property==="style"){let s=typeof i=="object"?i:Fb(n,String(i));return n.stylePropertyNameCase==="css"&&(s=Zb(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?pb[u.property]||u.property:u.attribute,i]}}function Fb(n,a){try{return Nb(a,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const u=i,s=new vt("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=x0+"#cannot-parse-style-attribute",s}}function v0(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=$m(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=$m(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return kc.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);_a(n)}function _a(n,a){const i=new vt("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=x0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Zb(n){const a={};let i;for(i in n)kc.call(n,i)&&(a[Kb(i)]=n[i]);return a}function Kb(n){let a=n.replace(Mb,Jb);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function Jb(n){return"-"+n.toLowerCase()}const Ho={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"]},Ib={};function wc(n,a){const i=Ib,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return S0(n,u,s)}function S0(n,a,i){if($b(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 up(n.children,a,i)}return Array.isArray(n)?up(n,a,i):""}function up(n,a,i){const u=[];let s=-1;for(;++s<n.length;)u[s]=S0(n[s],a,i);return u.join("")}function $b(n){return!!(n&&typeof n=="object")}const sp=document.createElement("i");function Cc(n){const a="&"+n+";";sp.innerHTML=a;const i=sp.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}function Qt(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 nn(n,a){return n.length>0?(Qt(n,n.length,0,a),n):a}const op={}.hasOwnProperty;function z0(n){const a={};let i=-1;for(;++i<n.length;)Wb(a,n[i]);return a}function Wb(n,a){let i;for(i in a){const s=(op.call(n,i)?n[i]:void 0)||(n[i]={}),c=a[i];let f;if(c)for(f in c){op.call(s,f)||(s[f]=[]);const d=c[f];Pb(s[f],Array.isArray(d)?d:d?[d]:[])}}}function Pb(n,a){let i=-1;const u=[];for(;++i<a.length;)(a[i].add==="after"?n:u).push(a[i]);Qt(n,0,0,u)}function k0(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 on(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Et=hl(/[A-Za-z]/),bt=hl(/[\dA-Za-z]/),ev=hl(/[#-'*+\--9=?A-Z^-~]/);function ru(n){return n!==null&&(n<32||n===127)}const uc=hl(/\d/),tv=hl(/[\dA-Fa-f]/),nv=hl(/[!-/:-@[-`{-~]/);function me(n){return n!==null&&n<-2}function Ze(n){return n!==null&&(n<0||n===32)}function Ne(n){return n===-2||n===-1||n===32}const cu=hl(new RegExp("\\p{P}|\\p{S}","u")),Dl=hl(/\s/);function hl(n){return a;function a(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function Ni(n){const a=[];let i=-1,u=0,s=0;for(;++i<n.length;){const c=n.charCodeAt(i);let f="";if(c===37&&bt(n.charCodeAt(i+1))&&bt(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 De(n,a,i,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return Ne(p)?(n.enter(i),d(p)):a(p)}function d(p){return Ne(p)&&c++<s?(n.consume(p),d):(n.exit(i),a(p))}}const lv={tokenize:iv};function iv(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"),De(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 me(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const av={tokenize:rv},cp={tokenize:uv};function rv(n){const a=this,i=[];let u=0,s,c,f;return d;function d(B){if(u<i.length){const J=i[u];return a.containerState=J[1],n.attempt(J[0].continuation,p,m)(B)}return m(B)}function p(B){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&q();const J=a.events.length;let K=J,R;for(;K--;)if(a.events[K][0]==="exit"&&a.events[K][1].type==="chunkFlow"){R=a.events[K][1].end;break}A(u);let $=J;for(;$<a.events.length;)a.events[$][1].end={...R},$++;return Qt(a.events,K+1,0,a.events.slice(J)),a.events.length=$,m(B)}return d(B)}function m(B){if(u===i.length){if(!s)return S(B);if(s.currentConstruct&&s.currentConstruct.concrete)return T(B);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(cp,y,g)(B)}function y(B){return s&&q(),A(u),S(B)}function g(B){return a.parser.lazy[a.now().line]=u!==i.length,f=a.now().offset,T(B)}function S(B){return a.containerState={},n.attempt(cp,v,T)(B)}function v(B){return u++,i.push([a.currentConstruct,a.containerState]),S(B)}function T(B){if(B===null){s&&q(),A(0),n.consume(B);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),_(B)}function _(B){if(B===null){U(n.exit("chunkFlow"),!0),A(0),n.consume(B);return}return me(B)?(n.consume(B),U(n.exit("chunkFlow")),u=0,a.interrupt=void 0,d):(n.consume(B),_)}function U(B,J){const K=a.sliceStream(B);if(J&&K.push(null),B.previous=c,c&&(c.next=B),c=B,s.defineSkip(B.start),s.write(K),a.parser.lazy[B.start.line]){let R=s.events.length;for(;R--;)if(s.events[R][1].start.offset<f&&(!s.events[R][1].end||s.events[R][1].end.offset>f))return;const $=a.events.length;let ue=$,he,H;for(;ue--;)if(a.events[ue][0]==="exit"&&a.events[ue][1].type==="chunkFlow"){if(he){H=a.events[ue][1].end;break}he=!0}for(A(u),R=$;R<a.events.length;)a.events[R][1].end={...H},R++;Qt(a.events,ue+1,0,a.events.slice($)),a.events.length=R}}function A(B){let J=i.length;for(;J-- >B;){const K=i[J];a.containerState=K[1],K[0].exit.call(a,n)}i.length=B}function q(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function uv(n,a,i){return De(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function wi(n){if(n===null||Ze(n)||Dl(n))return 1;if(cu(n))return 2}function fu(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 sc={name:"attention",resolveAll:sv,tokenize:ov};function sv(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};fp(g,-p),fp(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=nn(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=nn(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",c,a]]),m=nn(m,fu(a.parser.constructs.insideSpan.null,n.slice(u+1,i),a)),m=nn(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=nn(m,[["enter",n[i][1],a],["exit",n[i][1],a]])):y=0,Qt(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 ov(n,a){const i=this.parser.constructs.attentionMarkers.null,u=this.previous,s=wi(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=wi(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 fp(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const cv={name:"autolink",tokenize:fv};function fv(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 Et(v)?(n.consume(v),f):v===64?i(v):m(v)}function f(v){return v===43||v===45||v===46||bt(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||bt(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||ru(v)?i(v):(n.consume(v),p)}function m(v){return v===64?(n.consume(v),y):ev(v)?(n.consume(v),m):i(v)}function y(v){return bt(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||bt(v))&&u++<63){const T=v===45?S:g;return n.consume(v),T}return i(v)}}const La={partial:!0,tokenize:hv};function hv(n,a,i){return u;function u(c){return Ne(c)?De(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||me(c)?a(c):i(c)}}const E0={continuation:{tokenize:mv},exit:pv,name:"blockQuote",tokenize:dv};function dv(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 Ne(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function mv(n,a,i){const u=this;return s;function s(f){return Ne(f)?De(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(E0,a,i)(f)}}function pv(n){n.exit("blockQuote")}const T0={name:"characterEscape",tokenize:gv};function gv(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 nv(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(c)}}const w0={name:"characterReference",tokenize:xv};function xv(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=bt,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=tv,y):(n.enter("characterReferenceValue"),c=7,f=uc,y(g))}function y(g){if(g===59&&s){const S=n.exit("characterReferenceValue");return f===bt&&!Cc(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 hp={partial:!0,tokenize:bv},dp={concrete:!0,name:"codeFenced",tokenize:yv};function yv(n,a,i){const u=this,s={partial:!0,tokenize:K};let c=0,f=0,d;return p;function p(R){return m(R)}function m(R){const $=u.events[u.events.length-1];return c=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,d=R,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),y(R)}function y(R){return R===d?(f++,n.consume(R),y):f<3?i(R):(n.exit("codeFencedFenceSequence"),Ne(R)?De(n,g,"whitespace")(R):g(R))}function g(R){return R===null||me(R)?(n.exit("codeFencedFence"),u.interrupt?a(R):n.check(hp,_,J)(R)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(R))}function S(R){return R===null||me(R)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(R)):Ne(R)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),De(n,v,"whitespace")(R)):R===96&&R===d?i(R):(n.consume(R),S)}function v(R){return R===null||me(R)?g(R):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),T(R))}function T(R){return R===null||me(R)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(R)):R===96&&R===d?i(R):(n.consume(R),T)}function _(R){return n.attempt(s,J,U)(R)}function U(R){return n.enter("lineEnding"),n.consume(R),n.exit("lineEnding"),A}function A(R){return c>0&&Ne(R)?De(n,q,"linePrefix",c+1)(R):q(R)}function q(R){return R===null||me(R)?n.check(hp,_,J)(R):(n.enter("codeFlowValue"),B(R))}function B(R){return R===null||me(R)?(n.exit("codeFlowValue"),q(R)):(n.consume(R),B)}function J(R){return n.exit("codeFenced"),a(R)}function K(R,$,ue){let he=0;return H;function H(W){return R.enter("lineEnding"),R.consume(W),R.exit("lineEnding"),ee}function ee(W){return R.enter("codeFencedFence"),Ne(W)?De(R,ne,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):ne(W)}function ne(W){return W===d?(R.enter("codeFencedFenceSequence"),ve(W)):ue(W)}function ve(W){return W===d?(he++,R.consume(W),ve):he>=f?(R.exit("codeFencedFenceSequence"),Ne(W)?De(R,re,"whitespace")(W):re(W)):ue(W)}function re(W){return W===null||me(W)?(R.exit("codeFencedFence"),$(W)):ue(W)}}}function bv(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 qo={name:"codeIndented",tokenize:Sv},vv={partial:!0,tokenize:zv};function Sv(n,a,i){const u=this;return s;function s(m){return n.enter("codeIndented"),De(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):me(m)?n.attempt(vv,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||me(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),a(m)}}function zv(n,a,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):me(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):De(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):me(f)?s(f):i(f)}}const kv={name:"codeText",previous:Tv,resolve:Ev,tokenize:wv};function Ev(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 Tv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wv(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)):me(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||me(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 Cv{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&&wa(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),wa(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),wa(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);wa(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);wa(this.left,i.reverse())}}}function wa(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 C0(n){const a={};let i=-1,u,s,c,f,d,p,m;const y=new Cv(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,Nv(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 Qt(n,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function Nv(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,T=0,_=0;const U=[_];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&&(_=S+1,U.push(_),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):U.pop(),S=U.length;S--;){const A=d.slice(U[S],U[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[T+p[S][0]]=T+p[S][1],T+=p[S][1]-p[S][0]-1;return m}const Av={resolve:Mv,tokenize:_v},jv={partial:!0,tokenize:Ov};function Mv(n){return C0(n),n}function _v(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):me(d)?n.check(jv,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 Ov(n,a,i){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),De(n,c,"linePrefix")}function c(f){if(f===null||me(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 N0(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||ru(A)?i(A):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),_(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||me(A)?i(A):(n.consume(A),A===92?T:v)}function T(A){return A===60||A===62||A===92?(n.consume(A),v):v(A)}function _(A){return!y&&(A===null||A===41||Ze(A))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(u),a(A)):y<m&&A===40?(n.consume(A),y++,_):A===41?(n.consume(A),y--,_):A===null||A===32||A===40||ru(A)?i(A):(n.consume(A),A===92?U:_)}function U(A){return A===40||A===41||A===92?(n.consume(A),_):_(A)}}function A0(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):me(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||me(v)||d++>999?(n.exit("chunkString"),y(v)):(n.consume(v),p||(p=!Ne(v)),v===92?S:g)}function S(v){return v===91||v===92||v===93?(n.consume(v),d++,g):g(v)}}function j0(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):me(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),De(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===f||S===null||me(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 ja(n,a){let i;return u;function u(s){return me(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,u):Ne(s)?De(n,u,i?"linePrefix":"lineSuffix")(s):a(s)}}const Dv={name:"definition",tokenize:Lv},Rv={partial:!0,tokenize:Bv};function Lv(n,a,i){const u=this;let s;return c;function c(v){return n.enter("definition"),f(v)}function f(v){return A0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return s=on(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 Ze(v)?ja(n,m)(v):m(v)}function m(v){return N0(n,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return n.attempt(Rv,g,g)(v)}function g(v){return Ne(v)?De(n,S,"whitespace")(v):S(v)}function S(v){return v===null||me(v)?(n.exit("definition"),u.parser.defined.push(s),a(v)):i(v)}}function Bv(n,a,i){return u;function u(d){return Ze(d)?ja(n,s)(d):i(d)}function s(d){return j0(n,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Ne(d)?De(n,f,"whitespace")(d):f(d)}function f(d){return d===null||me(d)?a(d):i(d)}}const Uv={name:"hardBreakEscape",tokenize:Hv};function Hv(n,a,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return me(c)?(n.exit("hardBreakEscape"),a(c)):i(c)}}const qv={name:"headingAtx",resolve:Yv,tokenize:Vv};function Yv(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"},Qt(n,u,i-u+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),n}function Vv(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||Ze(y)?(n.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(n.enter("atxHeadingSequence"),p(y)):y===null||me(y)?(n.exit("atxHeading"),a(y)):Ne(y)?De(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||Ze(y)?(n.exit("atxHeadingText"),d(y)):(n.consume(y),m)}}const Xv=["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"],mp=["pre","script","style","textarea"],Gv={concrete:!0,name:"htmlFlow",resolveTo:Zv,tokenize:Kv},Qv={partial:!0,tokenize:Iv},Fv={partial:!0,tokenize:Jv};function Zv(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 Kv(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,_):k===63?(n.consume(k),s=3,u.interrupt?a:E):Et(k)?(n.consume(k),f=String.fromCharCode(k),U):i(k)}function S(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,d=0,T):Et(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 T(k){const le="CDATA[";return k===le.charCodeAt(d++)?(n.consume(k),d===le.length?u.interrupt?a:ne:T):i(k)}function _(k){return Et(k)?(n.consume(k),f=String.fromCharCode(k),U):i(k)}function U(k){if(k===null||k===47||k===62||Ze(k)){const le=k===47,de=f.toLowerCase();return!le&&!c&&mp.includes(de)?(s=1,u.interrupt?a(k):ne(k)):Xv.includes(f.toLowerCase())?(s=6,le?(n.consume(k),A):u.interrupt?a(k):ne(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?i(k):c?q(k):B(k))}return k===45||bt(k)?(n.consume(k),f+=String.fromCharCode(k),U):i(k)}function A(k){return k===62?(n.consume(k),u.interrupt?a:ne):i(k)}function q(k){return Ne(k)?(n.consume(k),q):H(k)}function B(k){return k===47?(n.consume(k),H):k===58||k===95||Et(k)?(n.consume(k),J):Ne(k)?(n.consume(k),B):H(k)}function J(k){return k===45||k===46||k===58||k===95||bt(k)?(n.consume(k),J):K(k)}function K(k){return k===61?(n.consume(k),R):Ne(k)?(n.consume(k),K):B(k)}function R(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(n.consume(k),p=k,$):Ne(k)?(n.consume(k),R):ue(k)}function $(k){return k===p?(n.consume(k),p=null,he):k===null||me(k)?i(k):(n.consume(k),$)}function ue(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Ze(k)?K(k):(n.consume(k),ue)}function he(k){return k===47||k===62||Ne(k)?B(k):i(k)}function H(k){return k===62?(n.consume(k),ee):i(k)}function ee(k){return k===null||me(k)?ne(k):Ne(k)?(n.consume(k),ee):i(k)}function ne(k){return k===45&&s===2?(n.consume(k),j):k===60&&s===1?(n.consume(k),Q):k===62&&s===4?(n.consume(k),C):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),ye):me(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Qv,V,ve)(k)):k===null||me(k)?(n.exit("htmlFlowData"),ve(k)):(n.consume(k),ne)}function ve(k){return n.check(Fv,re,V)(k)}function re(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),W}function W(k){return k===null||me(k)?ve(k):(n.enter("htmlFlowData"),ne(k))}function j(k){return k===45?(n.consume(k),E):ne(k)}function Q(k){return k===47?(n.consume(k),f="",ie):ne(k)}function ie(k){if(k===62){const le=f.toLowerCase();return mp.includes(le)?(n.consume(k),C):ne(k)}return Et(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),ie):ne(k)}function ye(k){return k===93?(n.consume(k),E):ne(k)}function E(k){return k===62?(n.consume(k),C):k===45&&s===2?(n.consume(k),E):ne(k)}function C(k){return k===null||me(k)?(n.exit("htmlFlowData"),V(k)):(n.consume(k),C)}function V(k){return n.exit("htmlFlow"),a(k)}}function Jv(n,a,i){const u=this;return s;function s(f){return me(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 Iv(n,a,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(La,a,i)}}const $v={name:"htmlText",tokenize:Wv};function Wv(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),K):E===63?(n.consume(E),B):Et(E)?(n.consume(E),ue):i(E)}function m(E){return E===45?(n.consume(E),y):E===91?(n.consume(E),c=0,T):Et(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):me(E)?(f=g,Q(E)):(n.consume(E),g)}function S(E){return E===45?(n.consume(E),v):g(E)}function v(E){return E===62?j(E):E===45?S(E):g(E)}function T(E){const C="CDATA[";return E===C.charCodeAt(c++)?(n.consume(E),c===C.length?_:T):i(E)}function _(E){return E===null?i(E):E===93?(n.consume(E),U):me(E)?(f=_,Q(E)):(n.consume(E),_)}function U(E){return E===93?(n.consume(E),A):_(E)}function A(E){return E===62?j(E):E===93?(n.consume(E),A):_(E)}function q(E){return E===null||E===62?j(E):me(E)?(f=q,Q(E)):(n.consume(E),q)}function B(E){return E===null?i(E):E===63?(n.consume(E),J):me(E)?(f=B,Q(E)):(n.consume(E),B)}function J(E){return E===62?j(E):B(E)}function K(E){return Et(E)?(n.consume(E),R):i(E)}function R(E){return E===45||bt(E)?(n.consume(E),R):$(E)}function $(E){return me(E)?(f=$,Q(E)):Ne(E)?(n.consume(E),$):j(E)}function ue(E){return E===45||bt(E)?(n.consume(E),ue):E===47||E===62||Ze(E)?he(E):i(E)}function he(E){return E===47?(n.consume(E),j):E===58||E===95||Et(E)?(n.consume(E),H):me(E)?(f=he,Q(E)):Ne(E)?(n.consume(E),he):j(E)}function H(E){return E===45||E===46||E===58||E===95||bt(E)?(n.consume(E),H):ee(E)}function ee(E){return E===61?(n.consume(E),ne):me(E)?(f=ee,Q(E)):Ne(E)?(n.consume(E),ee):he(E)}function ne(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(n.consume(E),s=E,ve):me(E)?(f=ne,Q(E)):Ne(E)?(n.consume(E),ne):(n.consume(E),re)}function ve(E){return E===s?(n.consume(E),s=void 0,W):E===null?i(E):me(E)?(f=ve,Q(E)):(n.consume(E),ve)}function re(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||Ze(E)?he(E):(n.consume(E),re)}function W(E){return E===47||E===62||Ze(E)?he(E):i(E)}function j(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):i(E)}function Q(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),ie}function ie(E){return Ne(E)?De(n,ye,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):ye(E)}function ye(E){return n.enter("htmlTextData"),f(E)}}const Nc={name:"labelEnd",resolveAll:n2,resolveTo:l2,tokenize:i2},Pv={tokenize:a2},e2={tokenize:r2},t2={tokenize:u2};function n2(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&&Qt(n,0,n.length,i),n}function l2(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=nn(d,n.slice(c+1,c+u+3)),d=nn(d,[["enter",y,a]]),d=nn(d,fu(a.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),a)),d=nn(d,[["exit",y,a],n[f-2],n[f-1],["exit",m,a]]),d=nn(d,n.slice(f+1)),d=nn(d,[["exit",p,a]]),Qt(n,c,n.length,d),n}function i2(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(on(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(Pv,y,f?y:g)(S):S===91?n.attempt(e2,y,f?m:g)(S):f?y(S):g(S)}function m(S){return n.attempt(t2,y,g)(S)}function y(S){return a(S)}function g(S){return c._balanced=!0,i(S)}}function a2(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 Ze(g)?ja(n,c)(g):c(g)}function c(g){return g===41?y(g):N0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Ze(g)?ja(n,p)(g):y(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?j0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return Ze(g)?ja(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 r2(n,a,i){const u=this;return s;function s(d){return A0.call(u,n,c,f,"reference","referenceMarker","referenceString")(d)}function c(d){return u.parser.defined.includes(on(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function f(d){return i(d)}}function u2(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 s2={name:"labelStartImage",resolveAll:Nc.resolveAll,tokenize:o2};function o2(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 c2={name:"labelStartLink",resolveAll:Nc.resolveAll,tokenize:f2};function f2(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 Yo={name:"lineEnding",tokenize:h2};function h2(n,a){return i;function i(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),De(n,a,"linePrefix")}}const iu={name:"thematicBreak",tokenize:d2};function d2(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||me(m))?(n.exit("thematicBreak"),a(m)):i(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Ne(m)?De(n,d,"whitespace")(m):d(m))}}const Ot={continuation:{tokenize:x2},exit:b2,name:"list",tokenize:g2},m2={partial:!0,tokenize:v2},p2={partial:!0,tokenize:y2};function g2(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 T=u.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!u.containerState.marker||v===u.containerState.marker:uc(v)){if(u.containerState.type||(u.containerState.type=T,n.enter(T,{_container:!0})),T==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(iu,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 uc(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(La,u.interrupt?i:y,n.attempt(m2,S,g))}function y(v){return u.containerState.initialBlankLine=!0,c++,S(v)}function g(v){return Ne(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 x2(n,a,i){const u=this;return u.containerState._closeFlow=void 0,n.check(La,s,c);function s(d){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,De(n,a,"listItemIndent",u.containerState.size+1)(d)}function c(d){return u.containerState.furtherBlankLines||!Ne(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(p2,a,f)(d))}function f(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,De(n,n.attempt(Ot,a,i),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function y2(n,a,i){const u=this;return De(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 b2(n){n.exit(this.containerState.type)}function v2(n,a,i){const u=this;return De(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!Ne(c)&&f&&f[1].type==="listItemPrefixWhitespace"?a(c):i(c)}}const pp={name:"setextUnderline",resolveTo:S2,tokenize:z2};function S2(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 z2(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"),Ne(m)?De(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||me(m)?(n.exit("setextHeadingLine"),a(m)):i(m)}}const k2={tokenize:E2};function E2(n){const a=this,i=n.attempt(La,u,n.attempt(this.parser.constructs.flowInitial,s,De(n,n.attempt(this.parser.constructs.flow,s,n.attempt(Av,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 T2={resolveAll:_0()},w2=M0("string"),C2=M0("text");function M0(n){return{resolveAll:_0(n==="text"?N2: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 _0(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 N2(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 A2={42:Ot,43:Ot,45:Ot,48:Ot,49:Ot,50:Ot,51:Ot,52:Ot,53:Ot,54:Ot,55:Ot,56:Ot,57:Ot,62:E0},j2={91:Dv},M2={[-2]:qo,[-1]:qo,32:qo},_2={35:qv,42:iu,45:[pp,iu],60:Gv,61:pp,95:iu,96:dp,126:dp},O2={38:w0,92:T0},D2={[-5]:Yo,[-4]:Yo,[-3]:Yo,33:s2,38:w0,42:sc,60:[cv,$v],91:c2,92:[Uv,T0],93:Nc,95:sc,96:kv},R2={null:[sc,T2]},L2={null:[42,95]},B2={null:[]},U2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:L2,contentInitial:j2,disable:B2,document:A2,flow:_2,flowInitial:M2,insideSpan:R2,string:O2,text:D2},Symbol.toStringTag,{value:"Module"}));function H2(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:$(K),check:$(R),consume:q,enter:B,exit:J,interrupt:$(R,{interrupt:!0})},m={code:null,containerState:{},defineSkip:_,events:[],now:T,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(ee){return f=nn(f,ee),U(),f[f.length-1]!==null?[]:(ue(a,0),m.events=fu(c,m.events,m),m.events)}function S(ee,ne){return Y2(v(ee),ne)}function v(ee){return q2(f,ee)}function T(){const{_bufferIndex:ee,_index:ne,line:ve,column:re,offset:W}=u;return{_bufferIndex:ee,_index:ne,line:ve,column:re,offset:W}}function _(ee){s[ee.line]=ee.column,H()}function U(){let ee;for(;u._index<f.length;){const ne=f[u._index];if(typeof ne=="string")for(ee=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ee&&u._bufferIndex<ne.length;)A(ne.charCodeAt(u._bufferIndex));else A(ne)}}function A(ee){y=y(ee)}function q(ee){me(ee)?(u.line++,u.column=1,u.offset+=ee===-3?2:1,H()):ee!==-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=ee}function B(ee,ne){const ve=ne||{};return ve.type=ee,ve.start=T(),m.events.push(["enter",ve,m]),d.push(ve),ve}function J(ee){const ne=d.pop();return ne.end=T(),m.events.push(["exit",ne,m]),ne}function K(ee,ne){ue(ee,ne.from)}function R(ee,ne){ne.restore()}function $(ee,ne){return ve;function ve(re,W,j){let Q,ie,ye,E;return Array.isArray(re)?V(re):"tokenize"in re?V([re]):C(re);function C(ce){return Ee;function Ee(Ke){const Ue=Ke!==null&&ce[Ke],ae=Ke!==null&&ce.null,xe=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return V(xe)(Ke)}}function V(ce){return Q=ce,ie=0,ce.length===0?j:k(ce[ie])}function k(ce){return Ee;function Ee(Ke){return E=he(),ye=ce,ce.partial||(m.currentConstruct=ce),ce.name&&m.parser.constructs.disable.null.includes(ce.name)?de():ce.tokenize.call(ne?Object.assign(Object.create(m),ne):m,p,le,de)(Ke)}}function le(ce){return ee(ye,E),W}function de(ce){return E.restore(),++ie<Q.length?k(Q[ie]):j}}}function ue(ee,ne){ee.resolveAll&&!c.includes(ee)&&c.push(ee),ee.resolve&&Qt(m.events,ne,m.events.length-ne,ee.resolve(m.events.slice(ne),m)),ee.resolveTo&&(m.events=ee.resolveTo(m.events,m))}function he(){const ee=T(),ne=m.previous,ve=m.currentConstruct,re=m.events.length,W=Array.from(d);return{from:re,restore:j};function j(){u=ee,m.previous=ne,m.currentConstruct=ve,m.events.length=re,d=W,H()}}function H(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function q2(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 Y2(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 V2(n){const u={constructs:z0([U2,...(n||{}).extensions||[]]),content:s(lv),defined:[],document:s(av),flow:s(k2),lazy:{},string:s(w2),text:s(C2)};return u;function s(c){return f;function f(d){return H2(u,c,d)}}}function X2(n){for(;!C0(n););return n}const gp=/[\0\t\n\r]/g;function G2(){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(gp.lastIndex=g,m=gp.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 Q2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function F2(n){return n.replace(Q2,Z2)}function Z2(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return k0(i.slice(c?2:1),c?16:10)}return Cc(i)||n}const O0={}.hasOwnProperty;function K2(n,a,i){return typeof a!="string"&&(i=a,a=void 0),J2(i)(X2(V2(i).document().write(G2()(n,a,!0))))}function J2(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(xn),autolinkProtocol:he,autolinkEmail:he,atxHeading:c(cn),blockQuote:c(ae),characterEscape:he,characterReference:he,codeFenced:c(xe),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(xe,f),codeText:c(Ae,f),codeTextData:he,data:he,codeFlowValue:he,definition:c(ln),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(st),hardBreakEscape:c(dl),hardBreakTrailing:c(dl),htmlFlow:c(Hn,f),htmlFlowData:he,htmlText:c(Hn,f),htmlTextData:he,image:c(ml),label:f,link:c(xn),listItem:c(ji),listItemValue:S,listOrdered:c(Ll,g),listUnordered:c(Ll),paragraph:c(pu),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(cn),strong:c(gu),thematicBreak:c(xu)},exit:{atxHeading:p(),atxHeadingSequence:K,autolink:p(),autolinkEmail:Ue,autolinkProtocol:Ke,blockQuote:p(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:ce,characterReference:Ee,codeFenced:p(U),codeFencedFence:_,codeFencedFenceInfo:v,codeFencedFenceMeta:T,codeFlowValue:H,codeIndented:p(A),codeText:p(W),codeTextData:H,data:H,definition:p(),definitionDestinationString:J,definitionLabelString:q,definitionTitleString:B,emphasis:p(),hardBreakEscape:p(ne),hardBreakTrailing:p(ne),htmlFlow:p(ve),htmlFlowData:H,htmlText:p(re),htmlTextData:H,image:p(Q),label:ye,labelText:ie,lineEnding:ee,link:p(j),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:le,resourceDestinationString:E,resourceTitleString:C,resource:V,setextHeading:p(ue),setextHeadingLineSequence:$,setextHeadingText:R,strong:p(),thematicBreak:p()}};D0(a,(n||{}).mdastExtensions||[]);const i={};return u;function u(G){let te={type:"root",children:[]};const ge={stack:[te],tokenStack:[],config:a,enter:d,exit:m,buffer:f,resume:y,data:i},Te=[];let He=-1;for(;++He<G.length;)if(G[He][1].type==="listOrdered"||G[He][1].type==="listUnordered")if(G[He][0]==="enter")Te.push(He);else{const Lt=Te.pop();He=s(G,Lt,He)}for(He=-1;++He<G.length;){const Lt=a[G[He][0]];O0.call(Lt,G[He][1].type)&&Lt[G[He][1].type].call(Object.assign({sliceSerialize:G[He][2].sliceSerialize},ge),G[He][1])}if(ge.tokenStack.length>0){const Lt=ge.tokenStack[ge.tokenStack.length-1];(Lt[1]||xp).call(ge,void 0,Lt[0])}for(te.position={start:fl(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:fl(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},He=-1;++He<a.transforms.length;)te=a.transforms[He](te)||te;return te}function s(G,te,ge){let Te=te-1,He=-1,Lt=!1,yn,zt,ot,Tt;for(;++Te<=ge;){const Qe=G[Te];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?He++:He--,Tt=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(yn&&!Tt&&!He&&!ot&&(ot=Te),Tt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tt=void 0}if(!He&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||He===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(yn){let qn=Te;for(zt=void 0;qn--;){const an=G[qn];if(an[1].type==="lineEnding"||an[1].type==="lineEndingBlank"){if(an[0]==="exit")continue;zt&&(G[zt][1].type="lineEndingBlank",Lt=!0),an[1].type="lineEnding",zt=qn}else if(!(an[1].type==="linePrefix"||an[1].type==="blockQuotePrefix"||an[1].type==="blockQuotePrefixWhitespace"||an[1].type==="blockQuoteMarker"||an[1].type==="listItemIndent"))break}ot&&(!zt||ot<zt)&&(yn._spread=!0),yn.end=Object.assign({},zt?G[zt][1].start:Qe[1].end),G.splice(zt||Te,0,["exit",yn,Qe[2]]),Te++,ge++}if(Qe[1].type==="listItemPrefix"){const qn={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};yn=qn,G.splice(Te,0,["enter",qn,Qe[2]]),Te++,ge++,ot=void 0,Tt=!0}}}return G[te][1]._spread=Lt,ge}function c(G,te){return ge;function ge(Te){d.call(this,G(Te),Te),te&&te.call(this,Te)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(G,te,ge){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([te,ge||void 0]),G.position={start:fl(te.start),end:void 0}}function p(G){return te;function te(ge){G&&G.call(this,ge),m.call(this,ge)}}function m(G,te){const ge=this.stack.pop(),Te=this.tokenStack.pop();if(Te)Te[0].type!==G.type&&(te?te.call(this,G,Te[0]):(Te[1]||xp).call(this,G,Te[0]));else throw new Error("Cannot close `"+G.type+"` ("+Aa({start:G.start,end:G.end})+"): it’s not open");ge.position.end=fl(G.end)}function y(){return wc(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function S(G){if(this.data.expectingFirstListItemValue){const te=this.stack[this.stack.length-2];te.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function v(){const G=this.resume(),te=this.stack[this.stack.length-1];te.lang=G}function T(){const G=this.resume(),te=this.stack[this.stack.length-1];te.meta=G}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function U(){const G=this.resume(),te=this.stack[this.stack.length-1];te.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const G=this.resume(),te=this.stack[this.stack.length-1];te.value=G.replace(/(\r?\n|\r)$/g,"")}function q(G){const te=this.resume(),ge=this.stack[this.stack.length-1];ge.label=te,ge.identifier=on(this.sliceSerialize(G)).toLowerCase()}function B(){const G=this.resume(),te=this.stack[this.stack.length-1];te.title=G}function J(){const G=this.resume(),te=this.stack[this.stack.length-1];te.url=G}function K(G){const te=this.stack[this.stack.length-1];if(!te.depth){const ge=this.sliceSerialize(G).length;te.depth=ge}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function $(G){const te=this.stack[this.stack.length-1];te.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function he(G){const ge=this.stack[this.stack.length-1].children;let Te=ge[ge.length-1];(!Te||Te.type!=="text")&&(Te=St(),Te.position={start:fl(G.start),end:void 0},ge.push(Te)),this.stack.push(Te)}function H(G){const te=this.stack.pop();te.value+=this.sliceSerialize(G),te.position.end=fl(G.end)}function ee(G){const te=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ge=te.children[te.children.length-1];ge.position.end=fl(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(te.type)&&(he.call(this,G),H.call(this,G))}function ne(){this.data.atHardBreak=!0}function ve(){const G=this.resume(),te=this.stack[this.stack.length-1];te.value=G}function re(){const G=this.resume(),te=this.stack[this.stack.length-1];te.value=G}function W(){const G=this.resume(),te=this.stack[this.stack.length-1];te.value=G}function j(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=te,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function Q(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const te=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=te,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function ie(G){const te=this.sliceSerialize(G),ge=this.stack[this.stack.length-2];ge.label=F2(te),ge.identifier=on(te).toLowerCase()}function ye(){const G=this.stack[this.stack.length-1],te=this.resume(),ge=this.stack[this.stack.length-1];if(this.data.inReference=!0,ge.type==="link"){const Te=G.children;ge.children=Te}else ge.alt=te}function E(){const G=this.resume(),te=this.stack[this.stack.length-1];te.url=G}function C(){const G=this.resume(),te=this.stack[this.stack.length-1];te.title=G}function V(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function le(G){const te=this.resume(),ge=this.stack[this.stack.length-1];ge.label=te,ge.identifier=on(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function de(G){this.data.characterReferenceType=G.type}function ce(G){const te=this.sliceSerialize(G),ge=this.data.characterReferenceType;let Te;ge?(Te=k0(te,ge==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Te=Cc(te);const He=this.stack[this.stack.length-1];He.value+=Te}function Ee(G){const te=this.stack.pop();te.position.end=fl(G.end)}function Ke(G){H.call(this,G);const te=this.stack[this.stack.length-1];te.url=this.sliceSerialize(G)}function Ue(G){H.call(this,G);const te=this.stack[this.stack.length-1];te.url="mailto:"+this.sliceSerialize(G)}function ae(){return{type:"blockquote",children:[]}}function xe(){return{type:"code",lang:null,meta:null,value:""}}function Ae(){return{type:"inlineCode",value:""}}function ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function st(){return{type:"emphasis",children:[]}}function cn(){return{type:"heading",depth:0,children:[]}}function dl(){return{type:"break"}}function Hn(){return{type:"html",value:""}}function ml(){return{type:"image",title:null,url:"",alt:null}}function xn(){return{type:"link",title:null,url:"",children:[]}}function Ll(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function ji(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function pu(){return{type:"paragraph",children:[]}}function gu(){return{type:"strong",children:[]}}function St(){return{type:"text",value:""}}function xu(){return{type:"thematicBreak"}}}function fl(n){return{line:n.line,column:n.column,offset:n.offset}}function D0(n,a){let i=-1;for(;++i<a.length;){const u=a[i];Array.isArray(u)?D0(n,u):I2(n,u)}}function I2(n,a){let i;for(i in a)if(O0.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 xp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Aa({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Aa({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Aa({start:a.start,end:a.end})+") is still open")}function $2(n){const a=this;a.parser=i;function i(u){return K2(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function W2(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 P2(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
251
+ `}]}function eS(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 tS(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function nS(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function lS(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=Ni(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 iS(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 aS(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function R0(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 rS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return R0(n,a);const s={src:Ni(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 uS(n,a){const i={src:Ni(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 sS(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 oS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return R0(n,a);const s={href:Ni(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 cS(n,a){const i={href:Ni(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 fS(n,a,i){const u=n.all(a),s=i?hS(i):L0(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 hS(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=L0(i[u])}return a}function L0(n){const a=n.spread;return a??n.children.length>1}function dS(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 mS(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function pS(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function gS(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function xS(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=zc(a.children[1]),p=p0(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 yS(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 T={type:"element",tagName:c,properties:S,children:[]};g&&(T.children=n.all(g),n.patch(g,T),T=n.applyData(g,T)),m.push(T)}const y={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,y),n.applyData(a,y)}function bS(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const yp=9,bp=32;function vS(n){const a=String(n),i=/\r?\n|\r/g;let u=i.exec(a),s=0;const c=[];for(;u;)c.push(vp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=i.exec(a);return c.push(vp(a.slice(s),s>0,!1)),c.join("")}function vp(n,a,i){let u=0,s=n.length;if(a){let c=n.codePointAt(u);for(;c===yp||c===bp;)u++,c=n.codePointAt(u)}if(i){let c=n.codePointAt(s-1);for(;c===yp||c===bp;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function SS(n,a){const i={type:"text",value:vS(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function zS(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const kS={blockquote:W2,break:P2,code:eS,delete:tS,emphasis:nS,footnoteReference:lS,heading:iS,html:aS,imageReference:rS,image:uS,inlineCode:sS,linkReference:oS,link:cS,listItem:fS,list:dS,paragraph:mS,root:pS,strong:gS,table:xS,tableCell:bS,tableRow:yS,text:SS,thematicBreak:zS,toml:eu,yaml:eu,definition:eu,footnoteDefinition:eu};function eu(){}const B0=-1,hu=0,Ma=1,uu=2,Ac=3,jc=4,Mc=5,_c=6,U0=7,H0=8,Sp=typeof self=="object"?self:globalThis,ES=(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 hu:case B0:return i(f,s);case Ma:{const d=i([],s);for(const p of f)d.push(u(p));return d}case uu:{const d=i({},s);for(const[p,m]of f)d[u(p)]=u(m);return d}case Ac:return i(new Date(f),s);case jc:{const{source:d,flags:p}=f;return i(new RegExp(d,p),s)}case Mc:{const d=i(new Map,s);for(const[p,m]of f)d.set(u(p),u(m));return d}case _c:{const d=i(new Set,s);for(const p of f)d.add(u(p));return d}case U0:{const{name:d,message:p}=f;return i(new Sp[d](p),s)}case H0: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 Sp[c](f),s)};return u},zp=n=>ES(new Map,n)(0),ki="",{toString:TS}={},{keys:wS}=Object,Ca=n=>{const a=typeof n;if(a!=="object"||!n)return[hu,a];const i=TS.call(n).slice(8,-1);switch(i){case"Array":return[Ma,ki];case"Object":return[uu,ki];case"Date":return[Ac,ki];case"RegExp":return[jc,ki];case"Map":return[Mc,ki];case"Set":return[_c,ki];case"DataView":return[Ma,i]}return i.includes("Array")?[Ma,i]:i.includes("Error")?[U0,i]:[uu,i]},tu=([n,a])=>n===hu&&(a==="function"||a==="symbol"),CS=(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]=Ca(f);switch(d){case hu:{let y=f;switch(p){case"bigint":d=H0,y=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return s([B0],f)}return s([d,y],f)}case Ma:{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 uu:{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 wS(f))(n||!tu(Ca(f[S])))&&y.push([c(S),c(f[S])]);return g}case Ac:return s([d,f.toISOString()],f);case jc:{const{source:y,flags:g}=f;return s([d,{source:y,flags:g}],f)}case Mc:{const y=[],g=s([d,y],f);for(const[S,v]of f)(n||!(tu(Ca(S))||tu(Ca(v))))&&y.push([c(S),c(v)]);return g}case _c:{const y=[],g=s([d,y],f);for(const S of f)(n||!tu(Ca(S)))&&y.push(c(S));return g}}const{message:m}=f;return s([d,{name:p,message:m}],f)};return c},kp=(n,{json:a,lossy:i}={})=>{const u=[];return CS(!(a||i),!!a,new Map,u)(n),u},su=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?zp(kp(n,a)):structuredClone(n):(n,a)=>zp(kp(n,a));function NS(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 AS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function jS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||NS,u=n.options.footnoteBackLabel||AS,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=Ni(g.toLowerCase());let v=0;const T=[],_=n.footnoteCounts.get(g);for(;_!==void 0&&++v<=_;){T.length>0&&T.push({type:"text",value:" "});let q=typeof i=="string"?i:i(p,v);typeof q=="string"&&(q={type:"text",value:q}),T.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 U=y[y.length-1];if(U&&U.type==="element"&&U.tagName==="p"){const q=U.children[U.children.length-1];q&&q.type==="text"?q.value+=" ":U.children.push({type:"text",value:" "}),U.children.push(...T)}else y.push(...T);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:{...su(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 du=(function(n){if(n==null)return DS;if(typeof n=="function")return mu(n);if(typeof n=="object")return Array.isArray(n)?MS(n):_S(n);if(typeof n=="string")return OS(n);throw new Error("Expected function, string, or object as test")});function MS(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=du(n[i]);return mu(u);function u(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function _S(n){const a=n;return mu(i);function i(u){const s=u;let c;for(c in n)if(s[c]!==a[c])return!1;return!0}}function OS(n){return mu(a);function a(i){return i&&i.type===n}}function mu(n){return a;function a(i,u,s){return!!(RS(i)&&n.call(this,i,typeof u=="number"?u:void 0,s||void 0))}}function DS(){return!0}function RS(n){return n!==null&&typeof n=="object"&&"type"in n}const q0=[],LS=!0,oc=!1,BS="skip";function Y0(n,a,i,u){let s;typeof a=="function"&&typeof i!="function"?(u=i,i=a):s=a;const c=du(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=q0,T,_,U;if((!a||c(p,m,y[y.length-1]||void 0))&&(v=US(i(p,y)),v[0]===oc))return v;if("children"in p&&p.children){const A=p;if(A.children&&v[0]!==BS)for(_=(u?A.children.length:-1)+f,U=y.concat(A);_>-1&&_<A.children.length;){const q=A.children[_];if(T=d(q,_,U)(),T[0]===oc)return T;_=typeof T[1]=="number"?T[1]:_+f}}return v}}}function US(n){return Array.isArray(n)?n:typeof n=="number"?[LS,n]:n==null?q0:[n]}function Oc(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),Y0(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 cc={}.hasOwnProperty,HS={};function qS(n,a){const i=a||HS,u=new Map,s=new Map,c=new Map,f={...kS,...i.handlers},d={all:m,applyData:VS,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:i,patch:YS,wrap:GS};return Oc(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(cc.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:_,...U}=y,A=su(U);return A.children=d.all(y),A}return su(y)}return(d.options.unknownHandler||XS)(d,y,g)}function m(y){const g=[];if("children"in y){const S=y.children;let v=-1;for(;++v<S.length;){const T=d.one(S[v],y);if(T){if(v&&S[v-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=Ep(T.value)),!Array.isArray(T)&&T.type==="element")){const _=T.children[0];_&&_.type==="text"&&(_.value=Ep(_.value))}Array.isArray(T)?g.push(...T):g.push(T)}}}return g}}function YS(n,a){n.position&&(a.position=Ab(n))}function VS(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,su(c)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function XS(n,a){const i=a.data||{},u="value"in a&&!(cc.call(i,"hProperties")||cc.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 GS(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 Ep(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function Tp(n,a){const i=qS(n,a),u=i.one(n,void 0),s=jS(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 QS(n,a){return n&&"run"in n?async function(i,u){const s=Tp(i,{file:u,...a});await n.run(s,u)}:function(i,u){return Tp(i,{file:u,...n||a})}}function wp(n){if(n)throw n}var Vo,Cp;function FS(){if(Cp)return Vo;Cp=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 Vo=function p(){var m,y,g,S,v,T,_=arguments[0],U=1,A=arguments.length,q=!1;for(typeof _=="boolean"&&(q=_,_=arguments[1]||{},U=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});U<A;++U)if(m=arguments[U],m!=null)for(y in m)g=d(_,y),S=d(m,y),_!==S&&(q&&S&&(c(S)||(v=s(S)))?(v?(v=!1,T=g&&s(g)?g:[]):T=g&&c(g)?g:{},f(_,{name:y,newValue:p(q,T,S)})):typeof S<"u"&&f(_,{name:y,newValue:S}));return _},Vo}var ZS=FS();const Xo=Zp(ZS);function fc(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 KS(){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?JS(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 JS(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 pn={basename:IS,dirname:$S,extname:WS,join:PS,sep:"/"};function IS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Ba(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 $S(n){if(Ba(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 WS(n){Ba(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 PS(...n){let a=-1,i;for(;++a<n.length;)Ba(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":ez(i)}function ez(n){Ba(n);const a=n.codePointAt(0)===47;let i=tz(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function tz(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 Ba(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const nz={cwd:lz};function lz(){return"/"}function hc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function iz(n){if(typeof n=="string")n=new URL(n);else if(!hc(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 az(n)}function az(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 Go=["history","path","basename","stem","extname","dirname"];class V0{constructor(a){let i;a?hc(a)?i={path:a}:typeof a=="string"||rz(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":nz.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Go.length;){const c=Go[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)Go.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?pn.basename(this.path):void 0}set basename(a){Fo(a,"basename"),Qo(a,"basename"),this.path=pn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?pn.dirname(this.path):void 0}set dirname(a){Np(this.basename,"dirname"),this.path=pn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?pn.extname(this.path):void 0}set extname(a){if(Qo(a,"extname"),Np(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=pn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){hc(a)&&(a=iz(a)),Fo(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?pn.basename(this.path,this.extname):void 0}set stem(a){Fo(a,"stem"),Qo(a,"stem"),this.path=pn.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 vt(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 Qo(n,a){if(n&&n.includes(pn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+pn.sep+"`")}function Fo(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Np(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function rz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const uz=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),sz={}.hasOwnProperty;class Dc extends uz{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=KS()}copy(){const a=new Dc;let i=-1;for(;++i<this.attachers.length;){const u=this.attachers[i];a.use(...u)}return a.data(Xo(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(Jo("data",this.frozen),this.namespace[a]=i,this):sz.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Jo("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=nu(a),u=this.parser||this.Parser;return Zo("parse",u),u(String(i),i)}process(a,i){const u=this;return this.freeze(),Zo("process",this.parser||this.Parser),Ko("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(c,f){const d=nu(a),p=u.parse(d);u.run(p,d,function(y,g,S){if(y||!g||!S)return m(y);const v=g,T=u.stringify(v,S);fz(T)?S.value=T:S.result=T,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(),Zo("processSync",this.parser||this.Parser),Ko("processSync",this.compiler||this.Compiler),this.process(a,s),jp("processSync","process",i),u;function s(c,f){i=!0,wp(c),u=f}}run(a,i,u){Ap(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=nu(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),jp("runSync","run",u),s;function c(f,d){wp(f),s=d,u=!0}}stringify(a,i){this.freeze();const u=nu(i),s=this.compiler||this.Compiler;return Ko("stringify",s),Ap(a),s(a,u)}use(a,...i){const u=this.attachers,s=this.namespace;if(Jo("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=Xo(!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,...T]=y;const _=u[S][1];fc(_)&&fc(v)&&(v=Xo(!0,_,v)),u[S]=[m,v,...T]}}}}const oz=new Dc().freeze();function Zo(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Ko(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Jo(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 Ap(n){if(!fc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function jp(n,a,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function nu(n){return cz(n)?n:new V0(n)}function cz(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function fz(n){return typeof n=="string"||hz(n)}function hz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const dz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Mp=[],_p={allowDangerousHtml:!0},mz=/^(https?|ircs?|mailto|xmpp)$/i,pz=[{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 gz(n){const a=xz(n),i=yz(n);return bz(a.runSync(a.parse(i),i),n)}function xz(n){const a=n.rehypePlugins||Mp,i=n.remarkPlugins||Mp,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,..._p}:_p;return oz().use($2).use(i).use(QS,u).use(a)}function yz(n){const a=n.children||"",i=new V0;return typeof a=="string"&&(i.value=a),i}function bz(n,a){const i=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,d=a.unwrapDisallowed,p=a.urlTransform||vz;for(const y of pz)Object.hasOwn(a,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+dz+y.id,void 0);return Oc(n,m),Db(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 Ho)if(Object.hasOwn(Ho,v)&&Object.hasOwn(y.properties,v)){const T=y.properties[v],_=Ho[v];(_===null||_.includes(y.tagName))&&(y.properties[v]=p(String(T||""),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 vz(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||mz.test(n.slice(0,a))?n:""}function Op(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 Sz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function zz(n,a,i){const s=du((i||{}).ignore||[]),c=kz(a);let f=-1;for(;++f<c.length;)Y0(n,"text",d);function d(m,y){let g=-1,S;for(;++g<y.length;){const v=y[g],T=S?S.children:void 0;if(s(v,T?T.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 T=0;const U=g.children.indexOf(m);let A=!1,q=[];S.lastIndex=0;let B=S.exec(m.value);for(;B;){const J=B.index,K={index:B.index,input:B.input,stack:[...y,m]};let R=v(...B,K);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?S.lastIndex=J+1:(T!==J&&q.push({type:"text",value:m.value.slice(T,J)}),Array.isArray(R)?q.push(...R):R&&q.push(R),T=J+B[0].length,A=!0),!S.global)break;B=S.exec(m.value)}return A?(T<m.value.length&&q.push({type:"text",value:m.value.slice(T)}),g.children.splice(U,1,...q)):q=[m],U+q.length}}function kz(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([Ez(s[0]),Tz(s[1])])}return a}function Ez(n){return typeof n=="string"?new RegExp(Sz(n),"g"):n}function Tz(n){return typeof n=="function"?n:function(){return n}}const Io="phrasing",$o=["autolink","link","image","label"];function wz(){return{transforms:[Oz],enter:{literalAutolink:Nz,literalAutolinkEmail:Wo,literalAutolinkHttp:Wo,literalAutolinkWww:Wo},exit:{literalAutolink:_z,literalAutolinkEmail:Mz,literalAutolinkHttp:Az,literalAutolinkWww:jz}}}function Cz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Io,notInConstruct:$o},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Io,notInConstruct:$o},{character:":",before:"[ps]",after:"\\/",inConstruct:Io,notInConstruct:$o}]}}function Nz(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Wo(n){this.config.enter.autolinkProtocol.call(this,n)}function Az(n){this.config.exit.autolinkProtocol.call(this,n)}function jz(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 Mz(n){this.config.exit.autolinkEmail.call(this,n)}function _z(n){this.exit(n)}function Oz(n){zz(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Dz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Rz]],{ignore:["link","linkReference"]})}function Dz(n,a,i,u,s){let c="";if(!X0(s)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!Lz(i)))return!1;const f=Bz(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 Rz(n,a,i,u){return!X0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function Lz(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 Bz(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=Op(n,"(");let c=Op(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 X0(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Dl(i)||cu(i))&&(!a||i!==47)}G0.peek=Fz;function Uz(){this.buffer()}function Hz(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function qz(){this.buffer()}function Yz(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Vz(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=on(this.sliceSerialize(n)).toLowerCase(),i.label=a}function Xz(n){this.exit(n)}function Gz(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=on(this.sliceSerialize(n)).toLowerCase(),i.label=a}function Qz(n){this.exit(n)}function Fz(){return"["}function G0(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 Zz(){return{enter:{gfmFootnoteCallString:Uz,gfmFootnoteCall:Hz,gfmFootnoteDefinitionLabelString:qz,gfmFootnoteDefinition:Yz},exit:{gfmFootnoteCallString:Vz,gfmFootnoteCall:Xz,gfmFootnoteDefinitionLabelString:Gz,gfmFootnoteDefinition:Qz}}}function Kz(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:G0},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?Q0:Jz))),m(),p}}function Jz(n,a,i){return a===0?n:Q0(n,a,i)}function Q0(n,a,i){return(i?"":" ")+n}const Iz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];F0.peek=tk;function $z(){return{canContainEols:["delete"],enter:{strikethrough:Pz},exit:{strikethrough:ek}}}function Wz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Iz}],handlers:{delete:F0}}}function Pz(n){this.enter({type:"delete",children:[]},n)}function ek(n){this.exit(n)}function F0(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 tk(){return"~"}function nk(n){return n.length}function lk(n,a){const i=a||{},u=(i.align||[]).concat(),s=i.stringLength||nk,c=[],f=[],d=[],p=[];let m=0,y=-1;for(;++y<n.length;){const _=[],U=[];let A=-1;for(n[y].length>m&&(m=n[y].length);++A<n[y].length;){const q=ik(n[y][A]);if(i.alignDelimiters!==!1){const B=s(q);U[A]=B,(p[A]===void 0||B>p[A])&&(p[A]=B)}_.push(q)}f[y]=_,d[y]=U}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)c[g]=Dp(u[g]);else{const _=Dp(u);for(;++g<m;)c[g]=_}g=-1;const S=[],v=[];for(;++g<m;){const _=c[g];let U="",A="";_===99?(U=":",A=":"):_===108?U=":":_===114&&(A=":");let q=i.alignDelimiters===!1?1:Math.max(1,p[g]-U.length-A.length);const B=U+"-".repeat(q)+A;i.alignDelimiters!==!1&&(q=U.length+q+A.length,q>p[g]&&(p[g]=q),v[g]=q),S[g]=B}f.splice(1,0,S),d.splice(1,0,v),y=-1;const T=[];for(;++y<f.length;){const _=f[y],U=d[y];g=-1;const A=[];for(;++g<m;){const q=_[g]||"";let B="",J="";if(i.alignDelimiters!==!1){const K=p[g]-(U[g]||0),R=c[g];R===114?B=" ".repeat(K):R===99?K%2?(B=" ".repeat(K/2+.5),J=" ".repeat(K/2-.5)):(B=" ".repeat(K/2),J=B):J=" ".repeat(K)}i.delimiterStart!==!1&&!g&&A.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&q==="")&&(i.delimiterStart!==!1||g)&&A.push(" "),i.alignDelimiters!==!1&&A.push(B),A.push(q),i.alignDelimiters!==!1&&A.push(J),i.padding!==!1&&A.push(" "),(i.delimiterEnd!==!1||g!==m-1)&&A.push("|")}T.push(i.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return T.join(`
262
+ `)}function ik(n){return n==null?"":String(n)}function Dp(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 ak(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()),rk);return s(),f}function rk(n,a,i){return">"+(i?"":" ")+n}function uk(n,a){return Rp(n,a.inConstruct,!0)&&!Rp(n,a.notInConstruct,!1)}function Rp(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 Lp(n,a,i,u){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
263
+ `&&uk(i.stack,i.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
264
+ `}function sk(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 ok(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 ck(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 fk(n,a,i,u){const s=ck(i),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(ok(n,i)){const g=i.enter("codeIndented"),S=i.indentLines(c,hk);return g(),S}const d=i.createTracker(u),p=s.repeat(Math.max(sk(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 hk(n,a,i){return(i?"":" ")+n}function Rc(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 dk(n,a,i,u){const s=Rc(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 mk(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 Oa(n){return"&#x"+n.toString(16).toUpperCase()+";"}function ou(n,a,i){const u=wi(n),s=wi(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}}Z0.peek=pk;function Z0(n,a,i,u){const s=mk(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=ou(u.before.charCodeAt(u.before.length-1),m,s);y.inside&&(p=Oa(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=ou(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+Oa(g));const v=f.move(s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:y.outside},d+p+v}function pk(n,a,i){return i.options.emphasis||"*"}function gk(n,a){let i=!1;return Oc(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,oc}),!!((!n.depth||n.depth<3)&&wc(n)&&(a.options.setext||i))}function xk(n,a,i,u){const s=Math.max(Math.min(6,n.depth||1),1),c=i.createTracker(u);if(gk(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=Oa(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,i.options.closeAtx&&(m+=" "+f),p(),d(),m}K0.peek=yk;function K0(n){return n.value||""}function yk(){return"<"}J0.peek=bk;function J0(n,a,i,u){const s=Rc(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 bk(){return"!"}I0.peek=vk;function I0(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 vk(){return"!"}$0.peek=Sk;function $0(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 Sk(){return"`"}function W0(n,a){const i=wc(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))}P0.peek=zk;function P0(n,a,i,u){const s=Rc(i),c=s==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let d,p;if(W0(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 zk(n,a,i){return W0(n,i)?"<":"["}eg.peek=kk;function eg(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 kk(){return"["}function Lc(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 Ek(n){const a=Lc(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 Tk(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 tg(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 wk(n,a,i,u){const s=i.enter("list"),c=i.bulletCurrent;let f=n.ordered?Tk(i):Lc(i);const d=n.ordered?f==="."?")":".":Ek(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),tg(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 Ck(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 Nk(n,a,i,u){const s=Ck(i);let c=i.bulletCurrent||Lc(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 Ak(n,a,i,u){const s=i.enter("paragraph"),c=i.enter("phrasing"),f=i.containerPhrasing(n,u);return c(),s(),f}const jk=du(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Mk(n,a,i,u){return(n.children.some(function(f){return jk(f)})?i.containerPhrasing:i.containerFlow).call(i,n,u)}function _k(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}ng.peek=Ok;function ng(n,a,i,u){const s=_k(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=ou(u.before.charCodeAt(u.before.length-1),m,s);y.inside&&(p=Oa(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=ou(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+Oa(g));const v=f.move(s+s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:y.outside},d+p+v}function Ok(n,a,i){return i.options.strong||"*"}function Dk(n,a,i,u){return i.safe(n.value,u)}function Rk(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 Lk(n,a,i){const u=(tg(i)+(i.options.ruleSpaces?" ":"")).repeat(Rk(i));return i.options.ruleSpaces?u.slice(0,-1):u}const lg={blockquote:ak,break:Lp,code:fk,definition:dk,emphasis:Z0,hardBreak:Lp,heading:xk,html:K0,image:J0,imageReference:I0,inlineCode:$0,link:P0,linkReference:eg,list:wk,listItem:Nk,paragraph:Ak,root:Mk,strong:ng,text:Dk,thematicBreak:Lk};function Bk(){return{enter:{table:Uk,tableData:Bp,tableHeader:Bp,tableRow:qk},exit:{codeText:Yk,table:Hk,tableData:Po,tableHeader:Po,tableRow:Po}}}function Uk(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 Hk(n){this.exit(n),this.data.inTable=void 0}function qk(n){this.enter({type:"tableRow",children:[]},n)}function Po(n){this.exit(n)}function Bp(n){this.enter({type:"tableCell",children:[]},n)}function Yk(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,Vk));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function Vk(n,a){return a==="|"?a:n}function Xk(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,T,_,U){return m(y(v,_,U),v.align)}function d(v,T,_,U){const A=g(v,_,U),q=m([A]);return q.slice(0,q.indexOf(`
275
+ `))}function p(v,T,_,U){const A=_.enter("tableCell"),q=_.enter("phrasing"),B=_.containerPhrasing(v,{...U,before:c,after:c});return q(),A(),B}function m(v,T){return lk(v,{align:T,alignDelimiters:u,padding:i,stringLength:s})}function y(v,T,_){const U=v.children;let A=-1;const q=[],B=T.enter("table");for(;++A<U.length;)q[A]=g(U[A],T,_);return B(),q}function g(v,T,_){const U=v.children;let A=-1;const q=[],B=T.enter("tableRow");for(;++A<U.length;)q[A]=p(U[A],v,T,_);return B(),q}function S(v,T,_){let U=lg.inlineCode(v,T,_);return _.stack.includes("tableCell")&&(U=U.replace(/\|/g,"\\$&")),U}}function Gk(){return{exit:{taskListCheckValueChecked:Up,taskListCheckValueUnchecked:Up,paragraph:Fk}}}function Qk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Zk}}}function Up(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function Fk(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 Zk(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=lg.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 Kk(){return[wz(),Zz(),$z(),Bk(),Gk()]}function Jk(n){return{extensions:[Cz(),Kz(n),Wz(),Xk(n),Qk()]}}const Ik={tokenize:nE,partial:!0},ig={tokenize:lE,partial:!0},ag={tokenize:iE,partial:!0},rg={tokenize:aE,partial:!0},$k={tokenize:rE,partial:!0},ug={name:"wwwAutolink",tokenize:eE,previous:og},sg={name:"protocolAutolink",tokenize:tE,previous:cg},Un={name:"emailAutolink",tokenize:Pk,previous:fg},gn={};function Wk(){return{text:gn}}let Ol=48;for(;Ol<123;)gn[Ol]=Un,Ol++,Ol===58?Ol=65:Ol===91&&(Ol=97);gn[43]=Un;gn[45]=Un;gn[46]=Un;gn[95]=Un;gn[72]=[Un,sg];gn[104]=[Un,sg];gn[87]=[Un,ug];gn[119]=[Un,ug];function Pk(n,a,i){const u=this;let s,c;return f;function f(g){return!dc(g)||!fg.call(u,u.previous)||Bc(u.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(g))}function d(g){return dc(g)?(n.consume(g),d):g===64?(n.consume(g),p):i(g)}function p(g){return g===46?n.check($k,y,m)(g):g===45||g===95||bt(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&&Et(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(g)):i(g)}}function eE(n,a,i){const u=this;return s;function s(f){return f!==87&&f!==119||!og.call(u,u.previous)||Bc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Ik,n.attempt(ig,n.attempt(ag,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function tE(n,a,i){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&cg.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(Et(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||ru(g)||Ze(g)||Dl(g)||cu(g)?i(g):n.attempt(ig,n.attempt(ag,y),i)(g)}function y(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(g)}}function nE(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 lE(n,a,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(rg,p,d)(m):m===null||Ze(m)||Dl(m)||m!==45&&cu(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 iE(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(rg,a,c)(f):f===null||Ze(f)||Dl(f)?a(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function aE(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||Ze(d)||Dl(d)?a(d):i(d)}function s(d){return d===null||d===40||d===91||Ze(d)||Dl(d)?a(d):u(d)}function c(d){return Et(d)?f(d):i(d)}function f(d){return d===59?(n.consume(d),u):Et(d)?(n.consume(d),f):i(d)}}function rE(n,a,i){return u;function u(c){return n.consume(c),s}function s(c){return bt(c)?i(c):a(c)}}function og(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ze(n)}function cg(n){return!Et(n)}function fg(n){return!(n===47||dc(n))}function dc(n){return n===43||n===45||n===46||n===95||bt(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 uE={tokenize:pE,partial:!0};function sE(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:hE,continuation:{tokenize:dE},exit:mE}},text:{91:{name:"gfmFootnoteCall",tokenize:fE},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:oE,resolveTo:cE}}}}function oE(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=on(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 cE(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 fE(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||Ze(g))return i(g);if(g===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(on(u.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(g)}return Ze(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 hE(n,a,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c,f=0,d;return p;function p(T){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(T),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(T){return T===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(T),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",y):i(T)}function y(T){if(f>999||T===93&&!d||T===null||T===91||Ze(T))return i(T);if(T===93){n.exit("chunkString");const _=n.exit("gfmFootnoteDefinitionLabelString");return c=on(u.sliceSerialize(_)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(T),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Ze(T)||(d=!0),f++,n.consume(T),T===92?g:y}function g(T){return T===91||T===92||T===93?(n.consume(T),f++,y):y(T)}function S(T){return T===58?(n.enter("definitionMarker"),n.consume(T),n.exit("definitionMarker"),s.includes(c)||s.push(c),De(n,v,"gfmFootnoteDefinitionWhitespace")):i(T)}function v(T){return a(T)}}function dE(n,a,i){return n.check(La,a,n.attempt(uE,a,i))}function mE(n){n.exit("gfmFootnoteDefinition")}function pE(n,a,i){const u=this;return De(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 gE(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&&Qt(S,S.length,0,fu(v,f.slice(m+1,p),d)),Qt(S,S.length,0,[["exit",g,d],["enter",f[p][1],d],["exit",f[p][1],d],["exit",y,d]]),Qt(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(T){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(T):(f.enter("strikethroughSequenceTemporary"),v(T))}function v(T){const _=wi(m);if(T===126)return g>1?p(T):(f.consume(T),g++,v);if(g<2&&!i)return p(T);const U=f.exit("strikethroughSequenceTemporary"),A=wi(T);return U._open=!A||A===2&&!!_,U._close=!_||_===2&&!!A,d(T)}}}class xE{constructor(){this.map=[]}add(a,i,u){yE(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 yE(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 bE(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 vE(){return{flow:{null:{name:"table",tokenize:SE,resolveAll:zE}}}}function SE(n,a,i){const u=this;let s=0,c=0,f;return d;function d(H){let ee=u.events.length-1;for(;ee>-1;){const re=u.events[ee][1].type;if(re==="lineEnding"||re==="linePrefix")ee--;else break}const ne=ee>-1?u.events[ee][1].type:null,ve=ne==="tableHead"||ne==="tableRow"?R:p;return ve===R&&u.parser.lazy[u.now().line]?i(H):ve(H)}function p(H){return n.enter("tableHead"),n.enter("tableRow"),m(H)}function m(H){return H===124||(f=!0,c+=1),y(H)}function y(H){return H===null?i(H):me(H)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(H),n.exit("lineEnding"),v):i(H):Ne(H)?De(n,y,"whitespace")(H):(c+=1,f&&(f=!1,s+=1),H===124?(n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),f=!0,y):(n.enter("data"),g(H)))}function g(H){return H===null||H===124||Ze(H)?(n.exit("data"),y(H)):(n.consume(H),H===92?S:g)}function S(H){return H===92||H===124?(n.consume(H),g):g(H)}function v(H){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(H):(n.enter("tableDelimiterRow"),f=!1,Ne(H)?De(n,T,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):T(H))}function T(H){return H===45||H===58?U(H):H===124?(f=!0,n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),_):K(H)}function _(H){return Ne(H)?De(n,U,"whitespace")(H):U(H)}function U(H){return H===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(H),n.exit("tableDelimiterMarker"),A):H===45?(c+=1,A(H)):H===null||me(H)?J(H):K(H)}function A(H){return H===45?(n.enter("tableDelimiterFiller"),q(H)):K(H)}function q(H){return H===45?(n.consume(H),q):H===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(H),n.exit("tableDelimiterMarker"),B):(n.exit("tableDelimiterFiller"),B(H))}function B(H){return Ne(H)?De(n,J,"whitespace")(H):J(H)}function J(H){return H===124?T(H):H===null||me(H)?!f||s!==c?K(H):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(H)):K(H)}function K(H){return i(H)}function R(H){return n.enter("tableRow"),$(H)}function $(H){return H===124?(n.enter("tableCellDivider"),n.consume(H),n.exit("tableCellDivider"),$):H===null||me(H)?(n.exit("tableRow"),a(H)):Ne(H)?De(n,$,"whitespace")(H):(n.enter("data"),ue(H))}function ue(H){return H===null||H===124||Ze(H)?(n.exit("data"),$(H)):(n.consume(H),H===92?he:ue)}function he(H){return H===92||H===124?(n.consume(H),ue):ue(H)}}function zE(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 xE;for(;++i<n.length;){const v=n[i],T=v[1];v[0]==="enter"?T.type==="tableHead"?(d=!1,p!==0&&(Hp(S,a,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},S.add(i,0,[["enter",m,a]])):T.type==="tableRow"||T.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({},T.start),end:Object.assign({},T.end)},S.add(i,0,[["enter",y,a]])),s=T.type==="tableDelimiterRow"?2:y?3:1):s&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=lu(S,a,c,s,void 0,g),c=[0,0,0,0]),f[2]=i)):T.type==="tableCellDivider"&&(u?u=!1:(c[1]!==0&&(f[0]=f[1],g=lu(S,a,c,s,void 0,g)),c=f,f=[c[1],i,0,0])):T.type==="tableHead"?(d=!0,p=i):T.type==="tableRow"||T.type==="tableDelimiterRow"?(p=i,c[1]!==0?(f[0]=f[1],g=lu(S,a,c,s,i,g)):f[1]!==0&&(g=lu(S,a,f,s,i,g)),s=0):s&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(f[3]=i)}for(p!==0&&Hp(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=bE(a.events,i))}return n}function lu(n,a,i,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},Ei(a.events,i[0])),n.add(i[0],0,[["exit",c,a]]));const p=Ei(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=Ei(a.events,i[2]),y=Ei(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 T=i[2]+1,_=i[3]-i[2]-1;n.add(T,_,[])}}n.add(i[3]+1,0,[["exit",g,a]])}return s!==void 0&&(c.end=Object.assign({},Ei(a.events,s)),n.add(s,0,[["exit",c,a]]),c=void 0),c}function Hp(n,a,i,u,s){const c=[],f=Ei(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 Ei(n,a){const i=n[a],u=i[0]==="enter"?"start":"end";return i[1][u]}const kE={name:"tasklistCheck",tokenize:TE};function EE(){return{text:{91:kE}}}function TE(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 Ze(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 me(p)?a(p):Ne(p)?n.check({tokenize:wE},a,i)(p):i(p)}}function wE(n,a,i){return De(n,u,"whitespace");function u(s){return s===null?i(s):a(s)}}function CE(n){return z0([Wk(),sE(),gE(n),vE(),EE()])}const NE={};function AE(n){const a=this,i=n||NE,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(CE(i)),c.push(Kk()),f.push(Jk(i))}function jE(n){return n==="completed"?b.jsx($p,{size:14,className:"text-emerald-400"}):n==="in_progress"?b.jsx(n0,{size:14,className:"text-amber-400 animate-spin"}):b.jsx(e1,{size:14,className:"text-zinc-500"})}function ME(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function _E(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(t0,{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:jE(s.status)}),b.jsx("span",{className:`text-xs leading-relaxed ${ME(s.status)}`,children:s.content})]},c))})]})})}class OE{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 T=this.extractCommon(v[0],i,a,0,u);if(v[0].oldPos+1>=p&&T+1>=d)return f(this.buildValues(v[0].lastComponent,i,a));let _=-1/0,U=1/0;const A=()=>{for(let q=Math.max(_,-m);q<=Math.min(U,m);q+=2){let B;const J=v[q-1],K=v[q+1];J&&(v[q-1]=void 0);let R=!1;if(K){const ue=K.oldPos-q;R=K&&0<=ue&&ue<d}const $=J&&J.oldPos+1<p;if(!R&&!$){v[q]=void 0;continue}if(!$||R&&J.oldPos<K.oldPos?B=this.addToPath(K,!0,!1,0,u):B=this.addToPath(J,!1,!0,1,u),T=this.extractCommon(B,i,a,q,u),B.oldPos+1>=p&&T+1>=d)return f(this.buildValues(B.lastComponent,i,a))||!0;v[q]=B,B.oldPos+1>=p&&(U=Math.min(U,q-1)),T+1>=d&&(_=Math.max(_,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 T=u[m+v];return T.length>S.length?T: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 DE extends OE{constructor(){super(...arguments),this.tokenize=LE}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 RE=new DE;function qp(n,a,i){return RE.diff(n,a,i)}function LE(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 BE={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Yp(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;qp(i,u,Object.assign(Object.assign({},d),{callback:g=>{const S=m(g);y(S)}}))}else return m(qp(i,u,d));function m(y){if(!y)return;y.push({value:"",lines:[]});function g(q){return q.map(function(B){return" "+B})}const S=[];let v=0,T=0,_=[],U=1,A=1;for(let q=0;q<y.length;q++){const B=y[q],J=B.lines||HE(B.value);if(B.lines=J,B.added||B.removed){if(!v){const K=y[q-1];v=U,T=A,K&&(_=p>0?g(K.lines.slice(-p)):[],v-=_.length,T-=_.length)}for(const K of J)_.push((B.added?"+":"-")+K);B.added?A+=J.length:U+=J.length}else{if(v)if(J.length<=p*2&&q<y.length-2)for(const K of g(J))_.push(K);else{const K=Math.min(J.length,p);for(const $ of g(J.slice(0,K)))_.push($);const R={oldStart:v,oldLines:U-v+K,newStart:T,newLines:A-T+K,lines:_};S.push(R),v=0,T=0,_=[]}U+=J.length,A+=J.length}}for(const q of S)for(let B=0;B<q.lines.length;B++)q.lines[B].endsWith(`
281
+ `)?q.lines[B]=q.lines[B].slice(0,-1):(q.lines.splice(B+1,0,"\"),B++);return{oldFileName:n,newFileName:a,oldHeader:s,newHeader:c,hunks:S}}}function mc(n,a){if(a||(a=BE),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=>mc(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 UE(n,a,i,u,s,c,f){if(typeof f=="function"&&(f={callback:f}),f!=null&&f.callback){const{callback:d}=f;Yp(n,a,i,u,s,c,Object.assign(Object.assign({},f),{callback:p=>{d(p?mc(p,f.headerOptions):void 0)}}))}else{const d=Yp(n,a,i,u,s,c,f);return d?mc(d,f==null?void 0:f.headerOptions):void 0}}function HE(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 Ai(n){const{text:a,className:i="",title:u="Copy"}=n,[s,c]=P.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(Da,{size:12,className:"text-emerald-400"}):b.jsx(gc,{size:12,className:"text-zinc-500 hover:text-zinc-300"})})}function hg(n){return n.split("/").slice(-2).join("/")}function qE(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 YE(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.old_string||"",u=a.new_string||"",s=hg(a.file_path),c=UE("a/"+s,"b/"+s,i,u,"","",{context:3}),f=qE(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(u1,{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(O1,{size:12}),d]}),p>0&&b.jsxs("span",{className:"flex items-center gap-0.5 text-rose-400",children:[b.jsx(E1,{size:12}),p]}),b.jsx(Ai,{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 VE(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.content||"",u=hg(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(Pp,{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(Ai,{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 XE(n){const{input:a}=n,[i,u]=P.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(a0,{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(Da,{size:12,className:"text-green-400"}):b.jsx(gc,{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 GE(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($p,{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(Y1,{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(l0,{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 QE(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(au,{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 FE(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(yc,{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 Vp(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(au,{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(yc,{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(e0,{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(Ai,{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(au,{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 ZE(n){return n.split("/").slice(-2).join("/")}function dg(n){var i;const a=n.split(".");return a.length>1?(i=a.pop())==null?void 0:i.toLowerCase():""}function mg(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 KE(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=ZE(a.file_path),u=dg(a.file_path),s=u?mg(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(Wp,{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(Ai,{text:a.file_path})]})]})})})}function JE(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?dg(i):"",p=d?mg(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(e0,{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 IE(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(Wy,{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?nc:i0;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 $E(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 WE(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 PE(n){const{input:a}=n;if(!a)return null;const i=$E(a.subagent_type),u=WE(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(Ip,{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(Zy,{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(R1,{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(N1,{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(l0,{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 pg=P.memo(function(a){const{content:i,className:u=""}=a;return b.jsx("div",{className:`break-words ${u}`,children:b.jsx(gz,{remarkPlugins:[AE],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(_=>_.startsWith("language-")),v=(S==null?void 0:S.replace("language-",""))||"code",T=((y=f.children)==null?void 0:y.map(_=>_.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(Ai,{text:T})]}),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:T})})]})}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 e3(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 t3(n){var i;const a=(i=n.message)==null?void 0:i.content;return a?typeof a=="string"?Dt(a):a.filter(u=>u.type==="text"&&u.text).map(u=>Dt(u.text)).join(`
295
+ `):""}const n3=P.memo(function(a){var _;const{message:i}=a,u=i.type==="user",s=(_=i.message)==null?void 0:_.content,c=()=>!s||typeof s=="string"?[]:s.filter(U=>U.type==="text"),f=()=>!s||typeof s=="string"?[]:s.filter(U=>U.type==="tool_use"||U.type==="tool_result"||U.type==="thinking"),d=()=>c().filter(U=>U.text&&Dt(U.text).length>0),p=()=>typeof s=="string"?Dt(s).length>0:d().length>0,m=f(),y=d(),g=p(),S=m.length>0,v=Array.isArray(s)?e3(s):new Map;if(!g&&S)return b.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((U,A)=>b.jsx(tc,{block:U,toolMap:v},A))});if(!g&&!S)return null;const T=t3(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:[T&&b.jsx(Ai,{text:T,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:T?"pr-10":"",children:typeof s=="string"?u?b.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:Dt(s)}):b.jsx(pg,{content:Dt(s)}):b.jsx("div",{className:"flex flex-col gap-1",children:y.map((U,A)=>b.jsx(tc,{block:U,isUser:u,toolMap:v},A))})})]}),S&&b.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((U,A)=>b.jsx(tc,{block:U,toolMap:v},A))})]})})}),Xp={todowrite:t0,read:Wp,bash:a0,grep:au,edit:j1,write:Pp,glob:yc,task:Ip},l3=[{patterns:["web","fetch","url"],icon:m1},{patterns:["ask","question"],icon:z1},{patterns:["git","commit"],icon:h1},{patterns:["sql","database","query"],icon:l1},{patterns:["file","disk"],icon:g1}];function i3(n){const a=n.toLowerCase();if(Xp[a])return Xp[a];for(const{patterns:i,icon:u}of l3)if(i.some(s=>a.includes(s)))return u;return X1}function ec(n){return n.split("/").slice(-2).join("/")}const a3={read:n=>n.file_path?ec(String(n.file_path)):null,edit:n=>n.file_path?ec(String(n.file_path)):null,write:n=>n.file_path?ec(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 r3(n,a){if(!a)return null;const i=n.toLowerCase(),u=a3[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 u3(n){const{toolName:a,input:i}=n,u=a.toLowerCase();return u==="todowrite"&&i.todos?b.jsx(_E,{todos:i.todos}):u==="edit"&&i.file_path?b.jsx(YE,{input:i}):u==="write"&&i.file_path?b.jsx(VE,{input:i}):u==="bash"&&i.command?b.jsx(XE,{input:i}):u==="grep"&&i.pattern?b.jsx(QE,{input:i}):u==="glob"&&i.pattern?b.jsx(FE,{input:i}):u==="read"&&i.file_path?b.jsx(KE,{input:i}):u==="askuserquestion"&&i.questions?b.jsx(IE,{input:i}):u==="task"&&i.prompt?b.jsx(PE,{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 s3(n){const{toolName:a,content:i,isError:u}=n,s=a.toLowerCase();if(s==="bash")return b.jsx(GE,{content:i,isError:u});if(s==="glob")return b.jsx(Vp,{content:i,isFileList:!0});if(s==="grep")return b.jsx(Vp,{content:i});if(s==="read")return b.jsx(JE,{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(Da,{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 tc(n){var f;const{block:a,isUser:i,toolMap:u}=n,[s,c]=P.useState(!1);if(a.type==="text"&&a.text){const d=Dt(a.text);return d?i?b.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:d}):b.jsx(pg,{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(y1,{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=i3(a.name||""),y=r3(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",T=s||v;return b.jsxs("div",{className:T?"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-[200px]",children:y}),p&&!v&&b.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),T&&p&&S?b.jsx(u3,{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=Dt(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(bc,{size:12,className:"opacity-70"}):b.jsx(Da,{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-[200px] ${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(s3,{toolName:v,content:m,isError:d})]})}return null}function o3({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 c3=10,f3=1e3,h3=3e4,d3=100;function m3(n){const{sessionId:a}=n,[i,u]=P.useState([]),[s,c]=P.useState(!0),[f,d]=P.useState(!0),p=P.useRef(null),m=P.useRef(null),y=P.useRef(0),g=P.useRef(!1),S=P.useRef(0),v=P.useRef(null),T=P.useRef(null),_=P.useRef(!0),U=P.useCallback(()=>{if(!_.current)return;v.current&&v.current.close();const K=new EventSource(`/api/conversation/${a}/stream?offset=${y.current}`);v.current=K,K.addEventListener("messages",R=>{S.current=0;const $=JSON.parse(R.data);c(!1),u(ue=>{const he=new Set(ue.map(ee=>ee.uuid).filter(Boolean)),H=$.filter(ee=>!he.has(ee.uuid));return H.length===0?ue:(y.current+=H.length,[...ue,...H])})}),K.onerror=()=>{if(K.close(),c(!1),!!_.current&&S.current<c3){const R=Math.min(f3*Math.pow(2,S.current),h3);S.current++,T.current=setTimeout(()=>U(),R)}}},[a]);P.useEffect(()=>(_.current=!0,c(!0),u([]),y.current=0,S.current=0,U(),()=>{_.current=!1,T.current&&clearTimeout(T.current),v.current&&v.current.close()}),[U]);const A=P.useCallback(()=>{m.current&&(g.current=!0,m.current.scrollIntoView({behavior:"instant"}),requestAnimationFrame(()=>{g.current=!1}))},[]);P.useEffect(()=>{f&&A()},[i,f,A]);const q=()=>{if(!p.current||g.current)return;const{scrollTop:K,scrollHeight:R,clientHeight:$}=p.current,ue=R-K-$<d3;d(ue)},B=i.find(K=>K.type==="summary"),J=i.filter(K=>K.type==="user"||K.type==="assistant");return s?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:p,onScroll:q,className:"h-full overflow-y-auto bg-zinc-950",children:b.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-4",children:[B&&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:B.summary}),b.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[J.length," messages"]})]}),b.jsx("div",{className:"flex flex-col gap-2",children:J.map((K,R)=>b.jsx("div",{ref:R===J.length-1?m:void 0,children:b.jsx(n3,{message:K})},K.uuid||R))})]})}),!f&&b.jsx(o3,{onClick:()=>{d(!0),A()}})]})}function p3(n,a){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=a,f=P.useRef(null),d=P.useRef(0),p=P.useRef(null),m=P.useRef(!0),y=P.useRef(i);y.current=i;const g=P.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,T=>{d.current=0,v.onMessage(T)});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]);P.useEffect(()=>(m.current=!0,g(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[g])}const g3={mode:"full",includeTools:!0,includeThoughts:!0,truncateToolResults:!0,truncationMode:"lines",maxToolResultLength:30};function x3(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 y3(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 b3(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=y3(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=Dt(u);return d?`${s}
298
+ \`\`\`
299
+ ${d}
300
+ ...
301
+ (truncated)
302
+ \`\`\``:i?"**Error** (empty)":"**Result:** Success"}}const c=Dt(u);return c?`${s}
303
+ \`\`\`
304
+ ${c}
305
+ \`\`\``:i?"**Error** (empty)":"**Result:** Success"}function v3(n){const a=n.thinking||"";return a?`<details>
306
+ <summary>💡 Thinking</summary>
307
+
308
+ ${a}
309
+
310
+ </details>`:""}function S3(n,a,i){if(typeof n=="string")return a.mode==="tools-only"?"":Dt(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=Dt(c.text);f&&u.push(f)}else if(c.type==="thinking"&&c.thinking&&a.includeThoughts){const f=v3(c);f&&u.push(f)}else c.type==="tool_use"?(s||a.includeTools)&&u.push(x3(c)):c.type==="tool_result"&&(s||a.includeTools)&&u.push(b3(c,a));return u.join(`
311
+
312
+ `)}function z3(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:Dt(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&&Dt(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 k3(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"||!z3(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=S3(i,a);if(s&&u)return c.trim()?c:"";const f=u?"**User:**":"**Assistant:**";return c.trim()?`${f}
315
+
316
+ ${c}`:""}function gg(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=k3(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 Gp(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 E3(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 xg(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 T3(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 xg(c.id),d=gg(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 w3(n){const{sessions:a,messages:i,onClose:u}=n,s=a.length>1,[c,f]=P.useState({...g3}),[d,p]=P.useState(!1),[m,y]=P.useState(null),g=P.useCallback(async()=>{console.log("=== EXPORT STARTED ==="),p(!0);try{if(s){const S=await T3(a,c,(T,_)=>y({current:T,total:_})),v=new Date().toISOString().split("T")[0];Gp(S,`${v}-conversations-export.md`)}else{const S=a[0];console.log("Fetching session:",S.id);const v=i??await xg(S.id);console.log("Fetched",v.length,"messages"),await new Promise(_=>setTimeout(_,0)),console.log("Starting markdown conversion...");const T=gg(v,c,S);console.log("Generated",T.length,"chars"),Gp(T,E3(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(bc,{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(n0,{className:"w-4 h-4 animate-spin"}),"Exporting..."]}):b.jsxs(b.Fragment,{children:[b.jsx(xc,{className:"w-4 h-4"}),"Export Markdown"]})})]})]})})}const Bn={mode:"literal",caseSensitive:!1,wordRegexp:!1,maxMatchesPerFile:200,maxSessions:500,timeoutMs:8e3};function Na(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 C3(n){if(n===null)return;const a=Number.parseInt(n,10);return Number.isFinite(a)?a:void 0}function Qp(n){const a=new URLSearchParams(n.startsWith("?")?n:`?${n}`),i=a.get("project"),u=a.get("session"),s=a.get("q"),c=Na(a.get("ft")),f=Na(a.get("sidebar")),d=Na(a.get("batch")),p=a.get("ftMode"),m=Na(a.get("cs")),y=Na(a.get("ww")),g=C3(a.get("mm")),S={};i!==null&&(S.project=i||null),u!==null&&(S.session=u||null),s!==null&&(S.search=s),typeof c=="boolean"&&(S.fullTextEnabled=c),typeof f=="boolean"&&(S.sidebarCollapsed=f),typeof d=="boolean"&&(S.batchMode=d);const v={};return(p==="literal"||p==="regex")&&(v.mode=p),typeof m=="boolean"&&(v.caseSensitive=m),typeof y=="boolean"&&(v.wordRegexp=y),typeof g=="number"&&(v.maxMatchesPerFile=Math.max(1,Math.min(2e3,g))),Object.keys(v).length>0&&(S.fullTextOptions={...Bn,...v}),S}function Fp(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");const i=a.toString();return i?`?${i}`:""}function N3(n){const{session:a,copied:i,onCopyResumeCommand:u,onExport:s}=n;return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1",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:a.projectName}),b.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:r0(a.timestamp)})]}),b.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[b.jsxs("button",{onClick:s,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(xc,{className:"w-3.5 h-3.5"}),b.jsx("span",{children:"Export"})]}),b.jsx("button",{onClick:()=>u(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:i?b.jsxs(b.Fragment,{children:[b.jsx(Da,{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(gc,{className:"w-3.5 h-3.5"}),b.jsx("span",{children:"Copy Resume Command"})]})})]})]})}function A3(){const n=P.useMemo(()=>{const ae=Qp(window.location.search);return{selectedProject:ae.project??null,selectedSession:ae.session??null,search:ae.search??"",fullTextEnabled:ae.fullTextEnabled??!1,fullTextOptions:ae.fullTextOptions??Bn,sidebarCollapsed:ae.sidebarCollapsed??!1,batchMode:ae.batchMode??!1}},[]),[a,i]=P.useState([]),[u,s]=P.useState([]),[c,f]=P.useState(n.selectedProject),[d,p]=P.useState(n.selectedSession),[m,y]=P.useState(!0),[g,S]=P.useState(n.sidebarCollapsed),[v,T]=P.useState(!1),[_,U]=P.useState(n.search),[A,q]=P.useState(n.fullTextEnabled),[B,J]=P.useState(n.fullTextOptions),[K,R]=P.useState(n.batchMode),[$,ue]=P.useState(new Set),he=P.useRef({didInit:!1,prev:null,searchTimer:null,lastCommittedSearch:""}),[H,ee]=P.useState(!1),[ne,ve]=P.useState([]),[re,W]=P.useState(void 0),j=P.useCallback((ae,xe)=>{const Ae=`cd ${xe} && claude --resume ${ae}`;navigator.clipboard.writeText(Ae).then(()=>{T(!0),setTimeout(()=>T(!1),2e3)})},[]),Q=P.useMemo(()=>d&&a.find(ae=>ae.id===d)||null,[a,d]);P.useEffect(()=>{fetch("/api/projects").then(ae=>ae.json()).then(s).catch(console.error)},[]);const ie=P.useCallback(ae=>{const xe=JSON.parse(ae.data);i(xe),y(!1)},[]),ye=P.useCallback(ae=>{const xe=JSON.parse(ae.data);i(Ae=>{const ln=new Map(Ae.map(st=>[st.id,st]));for(const st of xe)ln.set(st.id,st);return Array.from(ln.values()).sort((st,cn)=>cn.timestamp-st.timestamp)})},[]),E=P.useCallback(()=>{y(!1)},[]);p3("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:ie},{eventName:"sessionsUpdate",onMessage:ye}],onError:E});const C=P.useMemo(()=>c?a.filter(ae=>ae.project===c):a,[a,c]),V=P.useCallback(ae=>{p(ae)},[]);P.useEffect(()=>{const ae=()=>{const xe=Qp(window.location.search),Ae={project:xe.project??null,session:xe.session??null,search:xe.search??"",fullTextEnabled:xe.fullTextEnabled??!1,fullTextOptions:xe.fullTextOptions??Bn,sidebarCollapsed:xe.sidebarCollapsed??!1,batchMode:xe.batchMode??!1};f(Ae.project),p(Ae.session),U(Ae.search),q(Ae.fullTextEnabled),J(Ae.fullTextOptions),S(Ae.sidebarCollapsed),R(Ae.batchMode),ue(new Set)};return window.addEventListener("popstate",ae),()=>{window.removeEventListener("popstate",ae)}},[]),P.useEffect(()=>()=>{const{searchTimer:ae}=he.current;ae&&clearTimeout(ae)},[]),P.useEffect(()=>{const ae=he.current,xe={project:c,session:d,search:_,fullTextEnabled:A,fullTextOptions:B,sidebarCollapsed:g,batchMode:K};if(!ae.didInit){ae.didInit=!0,ae.prev=xe,ae.lastCommittedSearch=xe.search;return}const Ae=ae.prev;ae.prev=xe;const ln=Fp(xe);if(window.location.search===ln)return;const st=!!Ae&&(Ae.fullTextOptions.mode!==xe.fullTextOptions.mode||Ae.fullTextOptions.caseSensitive!==xe.fullTextOptions.caseSensitive||Ae.fullTextOptions.wordRegexp!==xe.fullTextOptions.wordRegexp||(Ae.fullTextOptions.maxMatchesPerFile??200)!==(xe.fullTextOptions.maxMatchesPerFile??200)),cn=!!Ae&&(Ae.project!==xe.project||Ae.session!==xe.session||Ae.fullTextEnabled!==xe.fullTextEnabled||st||Ae.sidebarCollapsed!==xe.sidebarCollapsed||Ae.batchMode!==xe.batchMode);if(!!Ae&&Ae.search!==xe.search&&!cn){history.replaceState(null,"",ln),ae.searchTimer&&clearTimeout(ae.searchTimer);const Hn=xe.search;ae.searchTimer=setTimeout(()=>{if(ae.lastCommittedSearch===Hn)return;const ml={project:c,session:d,search:_,fullTextEnabled:A,fullTextOptions:B,sidebarCollapsed:g,batchMode:K};if(ml.search!==Hn)return;const xn=Fp(ml);window.location.search===xn&&(history.pushState(null,"",xn),ae.lastCommittedSearch=Hn)},600);return}ae.searchTimer&&(clearTimeout(ae.searchTimer),ae.searchTimer=null),history.pushState(null,"",ln),ae.lastCommittedSearch=xe.search},[c,d,_,A,B,g,K]);const k=P.useCallback(()=>{R(ae=>!ae),ue(new Set)},[]),le=P.useCallback(ae=>{ue(xe=>{const Ae=new Set(xe);return Ae.has(ae)?Ae.delete(ae):Ae.add(ae),Ae})},[]),de=P.useCallback(()=>{ue(new Set(C.map(ae=>ae.id)))},[C]),ce=P.useCallback(()=>{ue(new Set)},[]),Ee=P.useCallback(()=>{Q&&(ve([Q]),W(void 0),ee(!0))},[Q]),Ke=P.useCallback(()=>{const ae=C.filter(xe=>$.has(xe.id));ve(ae),W(void 0),ee(!0)},[C,$]),Ue=P.useCallback(()=>{ee(!1),ve([]),W(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:ae=>f(ae.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(ae=>{const xe=ae.split("/").pop()||ae;return b.jsx("option",{value:ae,children:xe},ae)})]})})}),b.jsx(ab,{sessions:C,selectedSession:d,onSelectSession:V,loading:m,selectedProject:c,search:_,onSearchChange:U,fullTextEnabled:A,onFullTextEnabledChange:q,fullTextOptions:B,onFullTextOptionsChange:J,batchMode:K,selectedSessions:$,onToggleBatchMode:k,onToggleSessionSelection:le,onSelectAll:de,onDeselectAll:ce,onBatchExport:Ke})]}),b.jsxs("main",{className:"flex-1 overflow-hidden bg-zinc-950 flex flex-col",children:[b.jsxs("div",{className:"h-12.5 border-b border-zinc-800/60 flex items-center px-4 gap-4",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(w1,{className:"w-4 h-4 text-zinc-400"})}),Q&&b.jsx(N3,{session:Q,copied:v,onCopyResumeCommand:j,onExport:Ee})]}),b.jsx("div",{className:"flex-1 overflow-hidden",children:d?b.jsx(m3,{sessionId:d}):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"})]})})})]}),H&&b.jsx(w3,{sessions:ne,messages:re,onClose:Ue})]})}qy.createRoot(document.getElementById("root")).render(b.jsx(P.StrictMode,{children:b.jsx(A3,{})}));