@teddysc/claude-run 0.4.1 → 0.6.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.
- package/README.md +17 -1
- package/dist/index.js +160 -13
- package/dist/web/assets/index-C7A43d4K.js +318 -0
- package/dist/web/assets/index-DE3Rh4xE.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +5 -5
- package/dist/web/assets/index-BwDrDzT-.js +0 -290
- package/dist/web/assets/index-C3tLRDzJ.css +0 -1
|
@@ -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 Xp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ao={exports:{}},xa={};/**
|
|
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 Om;function Nx(){if(Om)return xa;Om=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 xa.Fragment=a,xa.jsx=i,xa.jsxs=i,xa}var Dm;function Ax(){return Dm||(Dm=1,Ao.exports=Nx()),Ao.exports}var b=Ax(),jo={exports:{}},xe={};/**
|
|
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 Rm;function jx(){if(Rm)return xe;Rm=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"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function S(C){return C===null||typeof C!="object"?null:(C=v&&C[v]||C["@@iterator"],typeof C=="function"?C:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,R={};function A(C,L,k){this.props=C,this.context=L,this.refs=R,this.updater=k||E}A.prototype.isReactComponent={},A.prototype.setState=function(C,L){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,L,"setState")},A.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function Y(){}Y.prototype=A.prototype;function U(C,L,k){this.props=C,this.context=L,this.refs=R,this.updater=k||E}var I=U.prototype=new Y;I.constructor=U,_(I,A.prototype),I.isPureReactComponent=!0;var K=Array.isArray;function H(){}var $={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function ce(C,L,k){var P=k.ref;return{$$typeof:n,type:C,key:L,ref:P!==void 0?P:null,props:k}}function q(C,L){return ce(C.type,L,C.props)}function te(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function le(C){var L={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(k){return L[k]})}var ge=/\/+/g;function ae(C,L){return typeof C=="object"&&C!==null&&C.key!=null?le(""+C.key):L.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(H,H):(C.status="pending",C.then(function(L){C.status==="pending"&&(C.status="fulfilled",C.value=L)},function(L){C.status==="pending"&&(C.status="rejected",C.reason=L)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function j(C,L,k,P,he){var se=typeof C;(se==="undefined"||se==="boolean")&&(C=null);var ze=!1;if(C===null)ze=!0;else switch(se){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(C.$$typeof){case n:case a:ze=!0;break;case x:return ze=C._init,j(ze(C._payload),L,k,P,he)}}if(ze)return he=he(C),ze=P===""?"."+ae(C,0):P,K(he)?(k="",ze!=null&&(k=ze.replace(ge,"$&/")+"/"),j(he,L,k,"",function(Vt){return Vt})):he!=null&&(te(he)&&(he=q(he,k+(he.key==null||C&&C.key===he.key?"":(""+he.key).replace(ge,"$&/")+"/")+ze)),L.push(he)),1;ze=0;var Ke=P===""?".":P+":";if(K(C))for(var Ue=0;Ue<C.length;Ue++)P=C[Ue],se=Ke+ae(P,Ue),ze+=j(P,L,k,se,he);else if(Ue=S(C),typeof Ue=="function")for(C=Ue.call(C),Ue=0;!(P=C.next()).done;)P=P.value,se=Ke+ae(P,Ue++),ze+=j(P,L,k,se,he);else if(se==="object"){if(typeof C.then=="function")return j(W(C),L,k,P,he);throw L=String(C),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ze}function G(C,L,k){if(C==null)return C;var P=[],he=0;return j(C,P,"","",function(se){return L.call(k,se,he++)}),P}function ie(C){if(C._status===-1){var L=C._result;L=L(),L.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=L)}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 L=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(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},w={map:G,forEach:function(C,L,k){G(C,function(){L.apply(this,arguments)},k)},count:function(C){var L=0;return G(C,function(){L++}),L},toArray:function(C){return G(C,function(L){return L})||[]},only:function(C){if(!te(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return xe.Activity=g,xe.Children=w,xe.Component=A,xe.Fragment=i,xe.Profiler=s,xe.PureComponent=U,xe.StrictMode=u,xe.Suspense=p,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,xe.__COMPILER_RUNTIME={__proto__:null,c:function(C){return $.H.useMemoCache(C)}},xe.cache=function(C){return function(){return C.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(C,L,k){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var P=_({},C.props),he=C.key;if(L!=null)for(se in L.key!==void 0&&(he=""+L.key),L)!ue.call(L,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&L.ref===void 0||(P[se]=L[se]);var se=arguments.length-2;if(se===1)P.children=k;else if(1<se){for(var ze=Array(se),Ke=0;Ke<se;Ke++)ze[Ke]=arguments[Ke+2];P.children=ze}return ce(C.type,he,P)},xe.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},xe.createElement=function(C,L,k){var P,he={},se=null;if(L!=null)for(P in L.key!==void 0&&(se=""+L.key),L)ue.call(L,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(he[P]=L[P]);var ze=arguments.length-2;if(ze===1)he.children=k;else if(1<ze){for(var Ke=Array(ze),Ue=0;Ue<ze;Ue++)Ke[Ue]=arguments[Ue+2];he.children=Ke}if(C&&C.defaultProps)for(P in ze=C.defaultProps,ze)he[P]===void 0&&(he[P]=ze[P]);return ce(C,se,he)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(C){return{$$typeof:d,render:C}},xe.isValidElement=te,xe.lazy=function(C){return{$$typeof:x,_payload:{_status:-1,_result:C},_init:ie}},xe.memo=function(C,L){return{$$typeof:m,type:C,compare:L===void 0?null:L}},xe.startTransition=function(C){var L=$.T,k={};$.T=k;try{var P=C(),he=$.S;he!==null&&he(k,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(H,ye)}catch(se){ye(se)}finally{L!==null&&k.types!==null&&(L.types=k.types),$.T=L}},xe.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},xe.use=function(C){return $.H.use(C)},xe.useActionState=function(C,L,k){return $.H.useActionState(C,L,k)},xe.useCallback=function(C,L){return $.H.useCallback(C,L)},xe.useContext=function(C){return $.H.useContext(C)},xe.useDebugValue=function(){},xe.useDeferredValue=function(C,L){return $.H.useDeferredValue(C,L)},xe.useEffect=function(C,L){return $.H.useEffect(C,L)},xe.useEffectEvent=function(C){return $.H.useEffectEvent(C)},xe.useId=function(){return $.H.useId()},xe.useImperativeHandle=function(C,L,k){return $.H.useImperativeHandle(C,L,k)},xe.useInsertionEffect=function(C,L){return $.H.useInsertionEffect(C,L)},xe.useLayoutEffect=function(C,L){return $.H.useLayoutEffect(C,L)},xe.useMemo=function(C,L){return $.H.useMemo(C,L)},xe.useOptimistic=function(C,L){return $.H.useOptimistic(C,L)},xe.useReducer=function(C,L,k){return $.H.useReducer(C,L,k)},xe.useRef=function(C){return $.H.useRef(C)},xe.useState=function(C){return $.H.useState(C)},xe.useSyncExternalStore=function(C,L,k){return $.H.useSyncExternalStore(C,L,k)},xe.useTransition=function(){return $.H.useTransition()},xe.version="19.2.4",xe}var Lm;function dc(){return Lm||(Lm=1,jo.exports=jx()),jo.exports}var ne=dc(),Mo={exports:{}},ba={},_o={exports:{}},Oo={};/**
|
|
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 Bm;function Mx(){return Bm||(Bm=1,(function(n){function a(j,G){var ie=j.length;j.push(G);e:for(;0<ie;){var ye=ie-1>>>1,w=j[ye];if(0<s(w,G))j[ye]=G,j[ie]=w,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 G=j[0],ie=j.pop();if(ie!==G){j[0]=ie;e:for(var ye=0,w=j.length,C=w>>>1;ye<C;){var L=2*(ye+1)-1,k=j[L],P=L+1,he=j[P];if(0>s(k,ie))P<w&&0>s(he,k)?(j[ye]=he,j[P]=ie,ye=P):(j[ye]=k,j[L]=ie,ye=L);else if(P<w&&0>s(he,ie))j[ye]=he,j[P]=ie,ye=P;else break e}}return G}function s(j,G){var ie=j.sortIndex-G.sortIndex;return ie!==0?ie:j.id-G.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=[],x=1,g=null,v=3,S=!1,E=!1,_=!1,R=!1,A=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function I(j){for(var G=i(m);G!==null;){if(G.callback===null)u(m);else if(G.startTime<=j)u(m),G.sortIndex=G.expirationTime,a(p,G);else break;G=i(m)}}function K(j){if(_=!1,I(j),!E)if(i(p)!==null)E=!0,H||(H=!0,le());else{var G=i(m);G!==null&&W(K,G.startTime-j)}}var H=!1,$=-1,ue=5,ce=-1;function q(){return R?!0:!(n.unstable_now()-ce<ue)}function te(){if(R=!1,H){var j=n.unstable_now();ce=j;var G=!0;try{e:{E=!1,_&&(_=!1,Y($),$=-1),S=!0;var ie=v;try{t:{for(I(j),g=i(p);g!==null&&!(g.expirationTime>j&&q());){var ye=g.callback;if(typeof ye=="function"){g.callback=null,v=g.priorityLevel;var w=ye(g.expirationTime<=j);if(j=n.unstable_now(),typeof w=="function"){g.callback=w,I(j),G=!0;break t}g===i(p)&&u(p),I(j)}else u(p);g=i(p)}if(g!==null)G=!0;else{var C=i(m);C!==null&&W(K,C.startTime-j),G=!1}}break e}finally{g=null,v=ie,S=!1}G=void 0}}finally{G?le():H=!1}}}var le;if(typeof U=="function")le=function(){U(te)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,ae=ge.port2;ge.port1.onmessage=te,le=function(){ae.postMessage(null)}}else le=function(){A(te,0)};function W(j,G){$=A(function(){j(n.unstable_now())},G)}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 v},n.unstable_next=function(j){switch(v){case 1:case 2:case 3:var G=3;break;default:G=v}var ie=v;v=G;try{return j()}finally{v=ie}},n.unstable_requestPaint=function(){R=!0},n.unstable_runWithPriority=function(j,G){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var ie=v;v=j;try{return G()}finally{v=ie}},n.unstable_scheduleCallback=function(j,G,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 w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=ie+w,j={id:x++,callback:G,priorityLevel:j,startTime:ie,expirationTime:w,sortIndex:-1},ie>ye?(j.sortIndex=ie,a(m,j),i(p)===null&&j===i(m)&&(_?(Y($),$=-1):_=!0,W(K,ie-ye))):(j.sortIndex=w,a(p,j),E||S||(E=!0,H||(H=!0,le()))),j},n.unstable_shouldYield=q,n.unstable_wrapCallback=function(j){var G=v;return function(){var ie=v;v=G;try{return j.apply(this,arguments)}finally{v=ie}}}})(Oo)),Oo}var Um;function _x(){return Um||(Um=1,_o.exports=Mx()),_o.exports}var Do={exports:{}},mt={};/**
|
|
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 Hm;function Ox(){if(Hm)return mt;Hm=1;var n=dc();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)m+="&args[]="+encodeURIComponent(arguments[x])}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,x){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:x}}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 mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,mt.createPortal=function(p,m){var x=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,x)},mt.flushSync=function(p){var m=f.T,x=u.p;try{if(f.T=null,u.p=2,p)return p()}finally{f.T=m,u.p=x,u.d.f()}},mt.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))},mt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},mt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var x=m.as,g=d(x,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;x==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:S}):x==="script"&&u.d.X(p,{crossOrigin:g,integrity:v,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},mt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var x=d(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:x,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)},mt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var x=m.as,g=d(x,m.crossOrigin);u.d.L(p,x,{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})}},mt.preloadModule=function(p,m){if(typeof p=="string")if(m){var x=d(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},mt.requestFormReset=function(p){u.d.r(p)},mt.unstable_batchedUpdates=function(p,m){return p(m)},mt.useFormState=function(p,m,x){return f.H.useFormState(p,m,x)},mt.useFormStatus=function(){return f.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var qm;function Gp(){if(qm)return Do.exports;qm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Do.exports=Ox(),Do.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 Ym;function Dx(){if(Ym)return ba;Ym=1;var n=_x(),a=dc(),i=Gp();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 y=!1,z=o.child;z;){if(z===l){y=!0,l=o,r=h;break}if(z===r){y=!0,r=o,l=h;break}z=z.sibling}if(!y){for(z=h.child;z;){if(z===l){y=!0,l=h,r=o;break}if(z===r){y=!0,r=h,l=o;break}z=z.sibling}if(!y)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 x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),U=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case A:return"Profiler";case R:return"StrictMode";case K:return"Suspense";case H:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case U:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case I: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:ae(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var W=Array.isArray,j=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},ye=[],w=-1;function C(e){return{current:e}}function L(e){0>w||(e.current=ye[w],ye[w]=null,w--)}function k(e,t){w++,ye[w]=e.current,e.current=t}var P=C(null),he=C(null),se=C(null),ze=C(null);function Ke(e,t){switch(k(se,t),k(he,e),k(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nm(t),e=lm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(P),k(P,e)}function Ue(){L(P),L(he),L(se)}function Vt(e){e.memoizedState!==null&&k(ze,e);var t=P.current,l=lm(t,e.type);t!==l&&(k(he,e),k(P,l))}function hn(e){he.current===e&&(L(P),L(he)),ze.current===e&&(L(ze),ma._currentValue=ie)}var wi,Oa;function dn(e){if(wi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);wi=t&&t[1]||"",Oa=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+wi+e+Oa}var Nl=!1;function Al(e,t){if(!e||Nl)return"";Nl=!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(V){var B=V}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(V){B=V}e.call(Z.prototype)}}else{try{throw Error()}catch(V){B=V}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(V){if(V&&B&&typeof V.stack=="string")return[V.stack,B.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(),y=h[0],z=h[1];if(y&&z){var T=y.split(`
|
|
44
|
+
`),D=z.split(`
|
|
45
|
+
`);for(o=r=0;r<T.length&&!T[r].includes("DetermineComponentFrameRoot");)r++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(r===T.length||o===D.length)for(r=T.length-1,o=D.length-1;1<=r&&0<=o&&T[r]!==D[o];)o--;for(;1<=r&&0<=o;r--,o--)if(T[r]!==D[o]){if(r!==1||o!==1)do if(r--,o--,0>o||T[r]!==D[o]){var X=`
|
|
46
|
+
`+T[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{Nl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?dn(l):""}function Da(e,t){switch(e.tag){case 26:case 27:case 5:return dn(e.type);case 16:return dn("Lazy");case 13:return e.child!==t&&t!==null?dn("Suspense Fallback"):dn("Suspense");case 19:return dn("SuspenseList");case 0:case 15:return Al(e.type,!1);case 11:return Al(e.type.render,!1);case 1:return Al(e.type,!0);case 31:return dn("Activity");default:return""}}function Ra(e){try{var t="",l=null;do t+=Da(e,l),l=e,e=e.return;while(e);return t}catch(r){return`
|
|
47
|
+
Error generating stack: `+r.message+`
|
|
48
|
+
`+r.stack}}var jl=Object.prototype.hasOwnProperty,Ml=n.unstable_scheduleCallback,Ti=n.unstable_cancelCallback,du=n.unstable_shouldYield,mu=n.unstable_requestPaint,yt=n.unstable_now,pu=n.unstable_getCurrentPriorityLevel,Q=n.unstable_ImmediatePriority,ee=n.unstable_UserBlockingPriority,pe=n.unstable_NormalPriority,ke=n.unstable_LowPriority,Re=n.unstable_IdlePriority,_t=n.log,mn=n.unstable_setDisableYieldValue,xt=null,at=null;function St(e){if(typeof _t=="function"&&mn(e),at&&typeof at.setStrictMode=="function")try{at.setStrictMode(xt,e)}catch{}}var Ve=Math.clz32?Math.clz32:mg,Dn=Math.log,en=Math.LN2;function mg(e){return e>>>=0,e===0?32:31-(Dn(e)/en|0)|0}var La=256,Ba=262144,Ua=4194304;function ul(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 Ha(e,t,l){var r=e.pendingLanes;if(r===0)return 0;var o=0,h=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var z=r&134217727;return z!==0?(r=z&~h,r!==0?o=ul(r):(y&=z,y!==0?o=ul(y):l||(l=z&~e,l!==0&&(o=ul(l))))):(z=r&~h,z!==0?o=ul(z):y!==0?o=ul(y):l||(l=r&~e,l!==0&&(o=ul(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 Ci(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pg(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 Lc(){var e=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),e}function gu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ni(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function gg(e,t,l,r,o,h){var y=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var z=e.entanglements,T=e.expirationTimes,D=e.hiddenUpdates;for(l=y&~l;0<l;){var X=31-Ve(l),Z=1<<X;z[X]=0,T[X]=-1;var B=D[X];if(B!==null)for(D[X]=null,X=0;X<B.length;X++){var V=B[X];V!==null&&(V.lane&=-536870913)}l&=~Z}r!==0&&Bc(e,r,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~t))}function Bc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ve(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|l&261930}function Uc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var r=31-Ve(l),o=1<<r;o&t|e[r]&t&&(e[r]|=t),l&=~o}}function Hc(e,t){var l=t&-t;return l=(l&42)!==0?1:yu(l),(l&(e.suspendedLanes|t))!==0?0:l}function yu(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 xu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qc(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Tm(e.type))}function Yc(e,t){var l=G.p;try{return G.p=e,t()}finally{G.p=l}}var Rn=Math.random().toString(36).slice(2),ot="__reactFiber$"+Rn,zt="__reactProps$"+Rn,_l="__reactContainer$"+Rn,bu="__reactEvents$"+Rn,yg="__reactListeners$"+Rn,xg="__reactHandles$"+Rn,Vc="__reactResources$"+Rn,Ai="__reactMarker$"+Rn;function vu(e){delete e[ot],delete e[zt],delete e[bu],delete e[yg],delete e[xg]}function Ol(e){var t=e[ot];if(t)return t;for(var l=e.parentNode;l;){if(t=l[_l]||l[ot]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=cm(e);e!==null;){if(l=e[ot])return l;e=cm(e)}return t}e=l,l=e.parentNode}return null}function Dl(e){if(e=e[ot]||e[_l]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ji(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Rl(e){var t=e[Vc];return t||(t=e[Vc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ut(e){e[Ai]=!0}var Xc=new Set,Gc={};function sl(e,t){Ll(e,t),Ll(e+"Capture",t)}function Ll(e,t){for(Gc[e]=t,e=0;e<t.length;e++)Xc.add(t[e])}var bg=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]*$"),Qc={},Fc={};function vg(e){return jl.call(Fc,e)?!0:jl.call(Qc,e)?!1:bg.test(e)?Fc[e]=!0:(Qc[e]=!0,!1)}function qa(e,t,l){if(vg(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 Ya(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 pn(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 Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sg(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(y){l=""+y,h.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Su(e){if(!e._valueTracker){var t=Zc(e)?"checked":"value";e._valueTracker=Sg(e,t,""+e[t])}}function Kc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),r="";return e&&(r=Zc(e)?e.checked?"true":"false":e.value),e=r,e!==l?(t.setValue(e),!0):!1}function Va(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 zg=/[\n"\\]/g;function Gt(e){return e.replace(zg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zu(e,t,l,r,o,h,y,z){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?ku(e,y,Xt(t)):l!=null?ku(e,y,Xt(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=""+Xt(z):e.removeAttribute("name")}function Jc(e,t,l,r,o,h,y,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)){Su(e);return}l=l!=null?""+Xt(l):"",t=t!=null?""+Xt(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,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Su(e)}function ku(e,t,l){t==="number"&&Va(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Bl(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=""+Xt(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 Ic(e,t,l){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Xt(l):""}function $c(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=Xt(t),e.defaultValue=l,r=e.textContent,r===l&&r!==""&&r!==null&&(e.value=r),Su(e)}function Ul(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var kg=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 Wc(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||kg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Pc(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&&Wc(e,o,r)}else for(var h in t)t.hasOwnProperty(h)&&Wc(e,h,t[h])}function Eu(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 Eg=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"]]),wg=/^[\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 Xa(e){return wg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function gn(){}var wu=null;function Tu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,ql=null;function ef(e){var t=Dl(e);if(t&&(e=t.stateNode)){var l=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(zu(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="'+Gt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var r=l[t];if(r!==e&&r.form===e.form){var o=r[zt]||null;if(!o)throw Error(u(90));zu(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&&Kc(r)}break e;case"textarea":Ic(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Bl(e,!!l.multiple,t,!1)}}}var Cu=!1;function tf(e,t,l){if(Cu)return e(t,l);Cu=!0;try{var r=e(t);return r}finally{if(Cu=!1,(Hl!==null||ql!==null)&&(jr(),Hl&&(t=Hl,e=ql,ql=Hl=null,ef(t),e)))for(t=0;t<e.length;t++)ef(e[t])}}function Mi(e,t){var l=e.stateNode;if(l===null)return null;var r=l[zt]||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 yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nu=!1;if(yn)try{var _i={};Object.defineProperty(_i,"passive",{get:function(){Nu=!0}}),window.addEventListener("test",_i,_i),window.removeEventListener("test",_i,_i)}catch{Nu=!1}var Ln=null,Au=null,Ga=null;function nf(){if(Ga)return Ga;var e,t=Au,l=t.length,r,o="value"in Ln?Ln.value:Ln.textContent,h=o.length;for(e=0;e<l&&t[e]===o[e];e++);var y=l-e;for(r=1;r<=y&&t[l-r]===o[h-r];r++);return Ga=o.slice(e,1<r?1-r:void 0)}function Qa(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 Fa(){return!0}function lf(){return!1}function kt(e){function t(l,r,o,h,y){this._reactName=l,this._targetInst=o,this.type=r,this.nativeEvent=h,this.target=y,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)?Fa:lf,this.isPropagationStopped=lf,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=Fa)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Fa)},persist:function(){},isPersistent:Fa}),t}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Za=kt(ol),Oi=g({},ol,{view:0,detail:0}),Tg=kt(Oi),ju,Mu,Di,Ka=g({},Oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ou,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!==Di&&(Di&&e.type==="mousemove"?(ju=e.screenX-Di.screenX,Mu=e.screenY-Di.screenY):Mu=ju=0,Di=e),ju)},movementY:function(e){return"movementY"in e?e.movementY:Mu}}),af=kt(Ka),Cg=g({},Ka,{dataTransfer:0}),Ng=kt(Cg),Ag=g({},Oi,{relatedTarget:0}),_u=kt(Ag),jg=g({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),Mg=kt(jg),_g=g({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Og=kt(_g),Dg=g({},ol,{data:0}),rf=kt(Dg),Rg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lg={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"},Bg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ug(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bg[e])?!!t[e]:!1}function Ou(){return Ug}var Hg=g({},Oi,{key:function(e){if(e.key){var t=Rg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ou,charCode:function(e){return e.type==="keypress"?Qa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qg=kt(Hg),Yg=g({},Ka,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uf=kt(Yg),Vg=g({},Oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ou}),Xg=kt(Vg),Gg=g({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qg=kt(Gg),Fg=g({},Ka,{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}),Zg=kt(Fg),Kg=g({},ol,{newState:0,oldState:0}),Jg=kt(Kg),Ig=[9,13,27,32],Du=yn&&"CompositionEvent"in window,Ri=null;yn&&"documentMode"in document&&(Ri=document.documentMode);var $g=yn&&"TextEvent"in window&&!Ri,sf=yn&&(!Du||Ri&&8<Ri&&11>=Ri),of=" ",cf=!1;function ff(e,t){switch(e){case"keyup":return Ig.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function Wg(e,t){switch(e){case"compositionend":return hf(t);case"keypress":return t.which!==32?null:(cf=!0,of);case"textInput":return e=t.data,e===of&&cf?null:e;default:return null}}function Pg(e,t){if(Yl)return e==="compositionend"||!Du&&ff(e,t)?(e=nf(),Ga=Au=Ln=null,Yl=!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 sf&&t.locale!=="ko"?null:t.data;default:return null}}var ey={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 df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ey[e.type]:t==="textarea"}function mf(e,t,l,r){Hl?ql?ql.push(r):ql=[r]:Hl=r,t=Br(t,"onChange"),0<t.length&&(l=new Za("onChange","change",null,l,r),e.push({event:l,listeners:t}))}var Li=null,Bi=null;function ty(e){Id(e,0)}function Ja(e){var t=ji(e);if(Kc(t))return e}function pf(e,t){if(e==="change")return t}var gf=!1;if(yn){var Ru;if(yn){var Lu="oninput"in document;if(!Lu){var yf=document.createElement("div");yf.setAttribute("oninput","return;"),Lu=typeof yf.oninput=="function"}Ru=Lu}else Ru=!1;gf=Ru&&(!document.documentMode||9<document.documentMode)}function xf(){Li&&(Li.detachEvent("onpropertychange",bf),Bi=Li=null)}function bf(e){if(e.propertyName==="value"&&Ja(Bi)){var t=[];mf(t,Bi,e,Tu(e)),tf(ty,t)}}function ny(e,t,l){e==="focusin"?(xf(),Li=t,Bi=l,Li.attachEvent("onpropertychange",bf)):e==="focusout"&&xf()}function ly(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ja(Bi)}function iy(e,t){if(e==="click")return Ja(t)}function ay(e,t){if(e==="input"||e==="change")return Ja(t)}function ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:ry;function Ui(e,t){if(Ot(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(!jl.call(t,o)||!Ot(e[o],t[o]))return!1}return!0}function vf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sf(e,t){var l=vf(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=vf(l)}}function zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Va(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=Va(e.document)}return t}function Bu(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 uy=yn&&"documentMode"in document&&11>=document.documentMode,Vl=null,Uu=null,Hi=null,Hu=!1;function Ef(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hu||Vl==null||Vl!==Va(r)||(r=Vl,"selectionStart"in r&&Bu(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}),Hi&&Ui(Hi,r)||(Hi=r,r=Br(Uu,"onSelect"),0<r.length&&(t=new Za("onSelect","select",null,t,l),e.push({event:t,listeners:r}),t.target=Vl)))}function cl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Xl={animationend:cl("Animation","AnimationEnd"),animationiteration:cl("Animation","AnimationIteration"),animationstart:cl("Animation","AnimationStart"),transitionrun:cl("Transition","TransitionRun"),transitionstart:cl("Transition","TransitionStart"),transitioncancel:cl("Transition","TransitionCancel"),transitionend:cl("Transition","TransitionEnd")},qu={},wf={};yn&&(wf=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function fl(e){if(qu[e])return qu[e];if(!Xl[e])return e;var t=Xl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in wf)return qu[e]=t[l];return e}var Tf=fl("animationend"),Cf=fl("animationiteration"),Nf=fl("animationstart"),sy=fl("transitionrun"),oy=fl("transitionstart"),cy=fl("transitioncancel"),Af=fl("transitionend"),jf=new Map,Yu="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(" ");Yu.push("scrollEnd");function tn(e,t){jf.set(e,t),sl(t,[e])}var Ia=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)},Qt=[],Gl=0,Vu=0;function $a(){for(var e=Gl,t=Vu=Gl=0;t<e;){var l=Qt[t];Qt[t++]=null;var r=Qt[t];Qt[t++]=null;var o=Qt[t];Qt[t++]=null;var h=Qt[t];if(Qt[t++]=null,r!==null&&o!==null){var y=r.pending;y===null?o.next=o:(o.next=y.next,y.next=o),r.pending=o}h!==0&&Mf(l,o,h)}}function Wa(e,t,l,r){Qt[Gl++]=e,Qt[Gl++]=t,Qt[Gl++]=l,Qt[Gl++]=r,Vu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Xu(e,t,l,r){return Wa(e,t,l,r),Pa(e)}function hl(e,t){return Wa(e,null,null,t),Pa(e)}function Mf(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-Ve(l),e=h.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=l|536870912),h):null}function Pa(e){if(50<ua)throw ua=0,Ws=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function fy(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 Dt(e,t,l,r){return new fy(e,t,l,r)}function Gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xn(e,t){var l=e.alternate;return l===null?(l=Dt(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 _f(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 er(e,t,l,r,o,h){var y=0;if(r=e,typeof e=="function")Gu(e)&&(y=1);else if(typeof e=="string")y=gx(e,l,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Dt(31,l,t,o),e.elementType=ce,e.lanes=h,e;case _:return dl(l.children,o,h,t);case R:y=8,o|=24;break;case A:return e=Dt(12,l,t,o|2),e.elementType=A,e.lanes=h,e;case K:return e=Dt(13,l,t,o),e.elementType=K,e.lanes=h,e;case H:return e=Dt(19,l,t,o),e.elementType=H,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:y=10;break e;case Y:y=9;break e;case I:y=11;break e;case $:y=14;break e;case ue:y=16,r=null;break e}y=29,l=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Dt(y,l,t,o),t.elementType=e,t.type=r,t.lanes=h,t}function dl(e,t,l,r){return e=Dt(7,e,r,t),e.lanes=l,e}function Qu(e,t,l){return e=Dt(6,e,null,t),e.lanes=l,e}function Of(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Fu(e,t,l){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Df=new WeakMap;function Ft(e,t){if(typeof e=="object"&&e!==null){var l=Df.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ra(t)},Df.set(e,t),t)}return{value:e,source:t,stack:Ra(t)}}var Fl=[],Zl=0,tr=null,qi=0,Zt=[],Kt=0,Bn=null,rn=1,un="";function bn(e,t){Fl[Zl++]=qi,Fl[Zl++]=tr,tr=e,qi=t}function Rf(e,t,l){Zt[Kt++]=rn,Zt[Kt++]=un,Zt[Kt++]=Bn,Bn=e;var r=rn;e=un;var o=32-Ve(r)-1;r&=~(1<<o),l+=1;var h=32-Ve(t)+o;if(30<h){var y=o-o%5;h=(r&(1<<y)-1).toString(32),r>>=y,o-=y,rn=1<<32-Ve(t)+o|l<<o|r,un=h+e}else rn=1<<h|l<<o|r,un=e}function Zu(e){e.return!==null&&(bn(e,1),Rf(e,1,0))}function Ku(e){for(;e===tr;)tr=Fl[--Zl],Fl[Zl]=null,qi=Fl[--Zl],Fl[Zl]=null;for(;e===Bn;)Bn=Zt[--Kt],Zt[Kt]=null,un=Zt[--Kt],Zt[Kt]=null,rn=Zt[--Kt],Zt[Kt]=null}function Lf(e,t){Zt[Kt++]=rn,Zt[Kt++]=un,Zt[Kt++]=Bn,rn=t.id,un=t.overflow,Bn=e}var ct=null,Fe=null,Ae=!1,Un=null,Jt=!1,Ju=Error(u(519));function Hn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Yi(Ft(t,e)),Ju}function Bf(e){var t=e.stateNode,l=e.type,r=e.memoizedProps;switch(t[ot]=e,t[zt]=r,l){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(l=0;l<oa.length;l++)we(oa[l],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Jc(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),$c(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||em(t.textContent,l)?(r.popover!=null&&(we("beforetoggle",t),we("toggle",t)),r.onScroll!=null&&we("scroll",t),r.onScrollEnd!=null&&we("scrollend",t),r.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||Hn(e,!0)}function Uf(e){for(ct=e.return;ct;)switch(ct.tag){case 5:case 31:case 13:Jt=!1;return;case 27:case 3:Jt=!0;return;default:ct=ct.return}}function Kl(e){if(e!==ct)return!1;if(!Ae)return Uf(e),Ae=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||mo(e.type,e.memoizedProps)),l=!l),l&&Fe&&Hn(e),Uf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=om(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Fe=om(e)}else t===27?(t=Fe,Pn(e.type)?(e=bo,bo=null,Fe=e):Fe=t):Fe=ct?$t(e.stateNode.nextSibling):null;return!0}function ml(){Fe=ct=null,Ae=!1}function Iu(){var e=Un;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),Un=null),e}function Yi(e){Un===null?Un=[e]:Un.push(e)}var $u=C(null),pl=null,vn=null;function qn(e,t,l){k($u,t._currentValue),t._currentValue=l}function Sn(e){e._currentValue=$u.current,L($u)}function Wu(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 Pu(e,t,l,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var h=o.dependencies;if(h!==null){var y=o.child;h=h.firstContext;e:for(;h!==null;){var z=h;h=o;for(var T=0;T<t.length;T++)if(z.context===t[T]){h.lanes|=l,z=h.alternate,z!==null&&(z.lanes|=l),Wu(h.return,l,e),r||(y=null);break e}h=z.next}}else if(o.tag===18){if(y=o.return,y===null)throw Error(u(341));y.lanes|=l,h=y.alternate,h!==null&&(h.lanes|=l),Wu(y,l,e),y=null}else y=o.child;if(y!==null)y.return=o;else for(y=o;y!==null;){if(y===e){y=null;break}if(o=y.sibling,o!==null){o.return=y.return,y=o;break}y=y.return}o=y}}function Jl(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 y=o.alternate;if(y===null)throw Error(u(387));if(y=y.memoizedProps,y!==null){var z=o.type;Ot(o.pendingProps.value,y.value)||(e!==null?e.push(z):e=[z])}}else if(o===ze.current){if(y=o.alternate,y===null)throw Error(u(387));y.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ma):e=[ma])}o=o.return}e!==null&&Pu(t,e,l,r),t.flags|=262144}function nr(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){pl=e,vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ft(e){return Hf(pl,e)}function lr(e,t){return pl===null&&gl(e),Hf(e,t)}function Hf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},vn===null){if(e===null)throw Error(u(308));vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vn=vn.next=t;return l}var hy=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()})}},dy=n.unstable_scheduleCallback,my=n.unstable_NormalPriority,et={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function es(){return{controller:new hy,data:new Map,refCount:0}}function Vi(e){e.refCount--,e.refCount===0&&dy(my,function(){e.controller.abort()})}var Xi=null,ts=0,Il=0,$l=null;function py(e,t){if(Xi===null){var l=Xi=[];ts=0,Il=io(),$l={status:"pending",value:void 0,then:function(r){l.push(r)}}}return ts++,t.then(qf,qf),t}function qf(){if(--ts===0&&Xi!==null){$l!==null&&($l.status="fulfilled");var e=Xi;Xi=null,Il=0,$l=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function gy(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 Yf=j.S;j.S=function(e,t){Ed=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&py(e,t),Yf!==null&&Yf(e,t)};var yl=C(null);function ns(){var e=yl.current;return e!==null?e:Xe.pooledCache}function ir(e,t){t===null?k(yl,yl.current):k(yl,t.pool)}function Vf(){var e=ns();return e===null?null:{parent:et._currentValue,pool:e}}var Wl=Error(u(460)),ls=Error(u(474)),ar=Error(u(542)),rr={then:function(){}};function Xf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Gf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(gn,gn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ff(e),e;default:if(typeof t.status=="string")t.then(gn,gn);else{if(e=Xe,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,Ff(e),e}throw bl=t,Wl}}function xl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(bl=l,Wl):l}}var bl=null;function Qf(){if(bl===null)throw Error(u(459));var e=bl;return bl=null,e}function Ff(e){if(e===Wl||e===ar)throw Error(u(483))}var Pl=null,Gi=0;function ur(e){var t=Gi;return Gi+=1,Pl===null&&(Pl=[]),Gf(Pl,e,t)}function Qi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sr(e,t){throw t.$$typeof===v?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zf(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=xn(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 y(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function z(M,N,O,F){return N===null||N.tag!==6?(N=Qu(O,M.mode,F),N.return=M,N):(N=o(N,O),N.return=M,N)}function T(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&&xl(fe)===N.type)?(N=o(N,O.props),Qi(N,O),N.return=M,N):(N=er(O.type,O.key,O.props,null,M.mode,F),Qi(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=Fu(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=dl(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=Qu(""+N,M.mode,O),N.return=M,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case S:return O=er(N.type,N.key,N.props,null,M.mode,O),Qi(O,N),O.return=M,O;case E:return N=Fu(N,M.mode,O),N.return=M,N;case ue:return N=xl(N),Z(M,N,O)}if(W(N)||le(N))return N=dl(N,M.mode,O,null),N.return=M,N;if(typeof N.then=="function")return Z(M,ur(N),O);if(N.$$typeof===U)return Z(M,lr(M,N),O);sr(M,N)}return null}function B(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 S:return O.key===fe?T(M,N,O,F):null;case E:return O.key===fe?D(M,N,O,F):null;case ue:return O=xl(O),B(M,N,O,F)}if(W(O)||le(O))return fe!==null?null:X(M,N,O,F,null);if(typeof O.then=="function")return B(M,N,ur(O),F);if(O.$$typeof===U)return B(M,N,lr(M,O),F);sr(M,O)}return null}function V(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 S:return M=M.get(F.key===null?O:F.key)||null,T(N,M,F,fe);case E:return M=M.get(F.key===null?O:F.key)||null,D(N,M,F,fe);case ue:return F=xl(F),V(M,N,O,F,fe)}if(W(F)||le(F))return M=M.get(O)||null,X(N,M,F,fe,null);if(typeof F.then=="function")return V(M,N,O,ur(F),fe);if(F.$$typeof===U)return V(M,N,O,lr(N,F),fe);sr(N,F)}return null}function re(M,N,O,F){for(var fe=null,_e=null,oe=N,ve=N=0,Ne=null;oe!==null&&ve<O.length;ve++){oe.index>ve?(Ne=oe,oe=null):Ne=oe.sibling;var Oe=B(M,oe,O[ve],F);if(Oe===null){oe===null&&(oe=Ne);break}e&&oe&&Oe.alternate===null&&t(M,oe),N=h(Oe,N,ve),_e===null?fe=Oe:_e.sibling=Oe,_e=Oe,oe=Ne}if(ve===O.length)return l(M,oe),Ae&&bn(M,ve),fe;if(oe===null){for(;ve<O.length;ve++)oe=Z(M,O[ve],F),oe!==null&&(N=h(oe,N,ve),_e===null?fe=oe:_e.sibling=oe,_e=oe);return Ae&&bn(M,ve),fe}for(oe=r(oe);ve<O.length;ve++)Ne=V(oe,M,ve,O[ve],F),Ne!==null&&(e&&Ne.alternate!==null&&oe.delete(Ne.key===null?ve:Ne.key),N=h(Ne,N,ve),_e===null?fe=Ne:_e.sibling=Ne,_e=Ne);return e&&oe.forEach(function(il){return t(M,il)}),Ae&&bn(M,ve),fe}function me(M,N,O,F){if(O==null)throw Error(u(151));for(var fe=null,_e=null,oe=N,ve=N=0,Ne=null,Oe=O.next();oe!==null&&!Oe.done;ve++,Oe=O.next()){oe.index>ve?(Ne=oe,oe=null):Ne=oe.sibling;var il=B(M,oe,Oe.value,F);if(il===null){oe===null&&(oe=Ne);break}e&&oe&&il.alternate===null&&t(M,oe),N=h(il,N,ve),_e===null?fe=il:_e.sibling=il,_e=il,oe=Ne}if(Oe.done)return l(M,oe),Ae&&bn(M,ve),fe;if(oe===null){for(;!Oe.done;ve++,Oe=O.next())Oe=Z(M,Oe.value,F),Oe!==null&&(N=h(Oe,N,ve),_e===null?fe=Oe:_e.sibling=Oe,_e=Oe);return Ae&&bn(M,ve),fe}for(oe=r(oe);!Oe.done;ve++,Oe=O.next())Oe=V(oe,M,ve,Oe.value,F),Oe!==null&&(e&&Oe.alternate!==null&&oe.delete(Oe.key===null?ve:Oe.key),N=h(Oe,N,ve),_e===null?fe=Oe:_e.sibling=Oe,_e=Oe);return e&&oe.forEach(function(Cx){return t(M,Cx)}),Ae&&bn(M,ve),fe}function Ye(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 S: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&&xl(fe)===N.type){l(M,N.sibling),F=o(N,O.props),Qi(F,O),F.return=M,M=F;break e}l(M,N);break}else t(M,N);N=N.sibling}O.type===_?(F=dl(O.props.children,M.mode,F,O.key),F.return=M,M=F):(F=er(O.type,O.key,O.props,null,M.mode,F),Qi(F,O),F.return=M,M=F)}return y(M);case E: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=Fu(O,M.mode,F),F.return=M,M=F}return y(M);case ue:return O=xl(O),Ye(M,N,O,F)}if(W(O))return re(M,N,O,F);if(le(O)){if(fe=le(O),typeof fe!="function")throw Error(u(150));return O=fe.call(O),me(M,N,O,F)}if(typeof O.then=="function")return Ye(M,N,ur(O),F);if(O.$$typeof===U)return Ye(M,N,lr(M,O),F);sr(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=Qu(O,M.mode,F),F.return=M,M=F),y(M)):l(M,N)}return function(M,N,O,F){try{Gi=0;var fe=Ye(M,N,O,F);return Pl=null,fe}catch(oe){if(oe===Wl||oe===ar)throw oe;var _e=Dt(29,oe,null,M.mode);return _e.lanes=F,_e.return=M,_e}finally{}}}var vl=Zf(!0),Kf=Zf(!1),Yn=!1;function is(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function as(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 Vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,l){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(De&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Pa(e),Mf(e,null,l),t}return Wa(e,r,t,l),Pa(e)}function Fi(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,Uc(e,l)}}function rs(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 y={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?o=h=y:h=h.next=y,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 us=!1;function Zi(){if(us){var e=$l;if(e!==null)throw e}}function Ki(e,t,l,r){us=!1;var o=e.updateQueue;Yn=!1;var h=o.firstBaseUpdate,y=o.lastBaseUpdate,z=o.shared.pending;if(z!==null){o.shared.pending=null;var T=z,D=T.next;T.next=null,y===null?h=D:y.next=D,y=T;var X=e.alternate;X!==null&&(X=X.updateQueue,z=X.lastBaseUpdate,z!==y&&(z===null?X.firstBaseUpdate=D:z.next=D,X.lastBaseUpdate=T))}if(h!==null){var Z=o.baseState;y=0,X=D=T=null,z=h;do{var B=z.lane&-536870913,V=B!==z.lane;if(V?(Ce&B)===B:(r&B)===B){B!==0&&B===Il&&(us=!0),X!==null&&(X=X.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var re=e,me=z;B=t;var Ye=l;switch(me.tag){case 1:if(re=me.payload,typeof re=="function"){Z=re.call(Ye,Z,B);break e}Z=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=me.payload,B=typeof re=="function"?re.call(Ye,Z,B):re,B==null)break e;Z=g({},Z,B);break e;case 2:Yn=!0}}B=z.callback,B!==null&&(e.flags|=64,V&&(e.flags|=8192),V=o.callbacks,V===null?o.callbacks=[B]:V.push(B))}else V={lane:B,tag:z.tag,payload:z.payload,callback:z.callback,next:null},X===null?(D=X=V,T=Z):X=X.next=V,y|=B;if(z=z.next,z===null){if(z=o.shared.pending,z===null)break;V=z,z=V.next,V.next=null,o.lastBaseUpdate=V,o.shared.pending=null}}while(!0);X===null&&(T=Z),o.baseState=T,o.firstBaseUpdate=D,o.lastBaseUpdate=X,h===null&&(o.shared.lanes=0),Kn|=y,e.lanes=y,e.memoizedState=Z}}function Jf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function If(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Jf(l[e],t)}var ei=C(null),or=C(0);function $f(e,t){e=jn,k(or,e),k(ei,t),jn=e|t.baseLanes}function ss(){k(or,jn),k(ei,ei.current)}function os(){jn=or.current,L(ei),L(or)}var Rt=C(null),It=null;function Gn(e){var t=e.alternate;k(We,We.current&1),k(Rt,e),It===null&&(t===null||ei.current!==null||t.memoizedState!==null)&&(It=e)}function cs(e){k(We,We.current),k(Rt,e),It===null&&(It=e)}function Wf(e){e.tag===22?(k(We,We.current),k(Rt,e),It===null&&(It=e)):Qn()}function Qn(){k(We,We.current),k(Rt,Rt.current)}function Lt(e){L(Rt),It===e&&(It=null),L(We)}var We=C(0);function cr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yo(l)||xo(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 zn=0,be=null,He=null,tt=null,fr=!1,ti=!1,Sl=!1,hr=0,Ji=0,ni=null,yy=0;function Ie(){throw Error(u(321))}function fs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ot(e[l],t[l]))return!1;return!0}function hs(e,t,l,r,o,h){return zn=h,be=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Rh:Cs,Sl=!1,h=l(r,o),Sl=!1,ti&&(h=eh(t,l,r,o)),Pf(e),h}function Pf(e){j.H=Wi;var t=He!==null&&He.next!==null;if(zn=0,tt=He=be=null,fr=!1,Ji=0,ni=null,t)throw Error(u(300));e===null||nt||(e=e.dependencies,e!==null&&nr(e)&&(nt=!0))}function eh(e,t,l,r){be=e;var o=0;do{if(ti&&(ni=null),Ji=0,ti=!1,25<=o)throw Error(u(301));if(o+=1,tt=He=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=Lh,h=t(l,r)}while(ti);return h}function xy(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?Ii(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(be.flags|=1024),t}function ds(){var e=hr!==0;return hr=0,e}function ms(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ps(e){if(fr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fr=!1}zn=0,tt=He=be=null,ti=!1,Ji=hr=0,ni=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?be.memoizedState=tt=e:tt=tt.next=e,tt}function Pe(){if(He===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=tt===null?be.memoizedState:tt.next;if(t!==null)tt=t,He=e;else{if(e===null)throw be.alternate===null?Error(u(467)):Error(u(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},tt===null?be.memoizedState=tt=e:tt=tt.next=e}return tt}function dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(e){var t=Ji;return Ji+=1,ni===null&&(ni=[]),e=Gf(ni,e,t),t=be,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Rh:Cs),e}function mr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ii(e);if(e.$$typeof===U)return ft(e)}throw Error(u(438,String(e)))}function gs(e){var t=null,l=be.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var r=be.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=dr(),be.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]=q;return t.index++,l}function kn(e,t){return typeof t=="function"?t(e):t}function pr(e){var t=Pe();return ys(t,He,e)}function ys(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 y=o.next;o.next=h.next,h.next=y}t.baseQueue=o=h,r.pending=null}if(h=e.baseState,o===null)e.memoizedState=h;else{t=o.next;var z=y=null,T=null,D=t,X=!1;do{var Z=D.lane&-536870913;if(Z!==D.lane?(Ce&Z)===Z:(zn&Z)===Z){var B=D.revertLane;if(B===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Z===Il&&(X=!0);else if((zn&B)===B){D=D.next,B===Il&&(X=!0);continue}else Z={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(z=T=Z,y=h):T=T.next=Z,be.lanes|=B,Kn|=B;Z=D.action,Sl&&l(h,Z),h=D.hasEagerState?D.eagerState:l(h,Z)}else B={lane:Z,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},T===null?(z=T=B,y=h):T=T.next=B,be.lanes|=Z,Kn|=Z;D=D.next}while(D!==null&&D!==t);if(T===null?y=h:T.next=z,!Ot(h,e.memoizedState)&&(nt=!0,X&&(l=$l,l!==null)))throw l;e.memoizedState=h,e.baseState=y,e.baseQueue=T,r.lastRenderedState=h}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function xs(e){var t=Pe(),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 y=o=o.next;do h=e(h,y.action),y=y.next;while(y!==o);Ot(h,t.memoizedState)||(nt=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),l.lastRenderedState=h}return[h,r]}function th(e,t,l){var r=be,o=Pe(),h=Ae;if(h){if(l===void 0)throw Error(u(407));l=l()}else l=t();var y=!Ot((He||o).memoizedState,l);if(y&&(o.memoizedState=l,nt=!0),o=o.queue,Ss(ih.bind(null,r,o,e),[e]),o.getSnapshot!==t||y||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,li(9,{destroy:void 0},lh.bind(null,r,o,l,t),null),Xe===null)throw Error(u(349));h||(zn&127)!==0||nh(r,t,l)}return l}function nh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=be.updateQueue,t===null?(t=dr(),be.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function lh(e,t,l,r){t.value=l,t.getSnapshot=r,ah(t)&&rh(e)}function ih(e,t,l){return l(function(){ah(t)&&rh(e)})}function ah(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ot(e,l)}catch{return!0}}function rh(e){var t=hl(e,2);t!==null&&Nt(t,e,2)}function bs(e){var t=bt();if(typeof e=="function"){var l=e;if(e=l(),Sl){St(!0);try{l()}finally{St(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:e},t}function uh(e,t,l,r){return e.baseState=l,ys(e,He,typeof r=="function"?r:kn)}function by(e,t,l,r,o){if(xr(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(y){h.listeners.push(y)}};j.T!==null?l(!0):h.isTransition=!1,r(h),l=t.pending,l===null?(h.next=t.pending=h,sh(t,h)):(h.next=l.next,t.pending=l.next=h)}}function sh(e,t){var l=t.action,r=t.payload,o=e.state;if(t.isTransition){var h=j.T,y={};j.T=y;try{var z=l(o,r),T=j.S;T!==null&&T(y,z),oh(e,t,z)}catch(D){vs(e,t,D)}finally{h!==null&&y.types!==null&&(h.types=y.types),j.T=h}}else try{h=l(o,r),oh(e,t,h)}catch(D){vs(e,t,D)}}function oh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(r){ch(e,t,r)},function(r){return vs(e,t,r)}):ch(e,t,l)}function ch(e,t,l){t.status="fulfilled",t.value=l,fh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,sh(e,l)))}function vs(e,t,l){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=l,fh(t),t=t.next;while(t!==r)}e.action=null}function fh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hh(e,t){return t}function dh(e,t){if(Ae){var l=Xe.formState;if(l!==null){e:{var r=be;if(Ae){if(Fe){t:{for(var o=Fe,h=Jt;o.nodeType!==8;){if(!h){o=null;break t}if(o=$t(o.nextSibling),o===null){o=null;break t}}h=o.data,o=h==="F!"||h==="F"?o:null}if(o){Fe=$t(o.nextSibling),r=o.data==="F!";break e}}Hn(r)}r=!1}r&&(t=l[0])}}return l=bt(),l.memoizedState=l.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hh,lastRenderedState:t},l.queue=r,l=_h.bind(null,be,r),r.dispatch=l,r=bs(!1),h=Ts.bind(null,be,!1,r.queue),r=bt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,l=by.bind(null,be,o,h,l),o.dispatch=l,r.memoizedState=e,[t,l,!1]}function mh(e){var t=Pe();return ph(t,He,e)}function ph(e,t,l){if(t=ys(e,t,hh)[0],e=pr(kn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ii(t)}catch(y){throw y===Wl?ar:y}else r=t;t=Pe();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(be.flags|=2048,li(9,{destroy:void 0},vy.bind(null,o,l),null)),[r,h,e]}function vy(e,t){e.action=t}function gh(e){var t=Pe(),l=He;if(l!==null)return ph(t,l,e);Pe(),t=t.memoizedState,l=Pe();var r=l.queue.dispatch;return l.memoizedState=e,[t,r,!1]}function li(e,t,l,r){return e={tag:e,create:l,deps:r,inst:t,next:null},t=be.updateQueue,t===null&&(t=dr(),be.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 yh(){return Pe().memoizedState}function gr(e,t,l,r){var o=bt();be.flags|=e,o.memoizedState=li(1|t,{destroy:void 0},l,r===void 0?null:r)}function yr(e,t,l,r){var o=Pe();r=r===void 0?null:r;var h=o.memoizedState.inst;He!==null&&r!==null&&fs(r,He.memoizedState.deps)?o.memoizedState=li(t,h,l,r):(be.flags|=e,o.memoizedState=li(1|t,h,l,r))}function xh(e,t){gr(8390656,8,e,t)}function Ss(e,t){yr(2048,8,e,t)}function Sy(e){be.flags|=4;var t=be.updateQueue;if(t===null)t=dr(),be.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function bh(e){var t=Pe().memoizedState;return Sy({ref:t,nextImpl:e}),function(){if((De&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function vh(e,t){return yr(4,2,e,t)}function Sh(e,t){return yr(4,4,e,t)}function zh(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 kh(e,t,l){l=l!=null?l.concat([e]):null,yr(4,4,zh.bind(null,t,e),l)}function zs(){}function Eh(e,t){var l=Pe();t=t===void 0?null:t;var r=l.memoizedState;return t!==null&&fs(t,r[1])?r[0]:(l.memoizedState=[e,t],e)}function wh(e,t){var l=Pe();t=t===void 0?null:t;var r=l.memoizedState;if(t!==null&&fs(t,r[1]))return r[0];if(r=e(),Sl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[r,t],r}function ks(e,t,l){return l===void 0||(zn&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Td(),be.lanes|=e,Kn|=e,l)}function Th(e,t,l,r){return Ot(l,t)?l:ei.current!==null?(e=ks(e,l,r),Ot(e,t)||(nt=!0),e):(zn&42)===0||(zn&1073741824)!==0&&(Ce&261930)===0?(nt=!0,e.memoizedState=l):(e=Td(),be.lanes|=e,Kn|=e,t)}function Ch(e,t,l,r,o){var h=G.p;G.p=h!==0&&8>h?h:8;var y=j.T,z={};j.T=z,Ts(e,!1,t,l);try{var T=o(),D=j.S;if(D!==null&&D(z,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var X=gy(T,r);$i(e,t,X,Ht(e))}else $i(e,t,r,Ht(e))}catch(Z){$i(e,t,{then:function(){},status:"rejected",reason:Z},Ht())}finally{G.p=h,y!==null&&z.types!==null&&(y.types=z.types),j.T=y}}function zy(){}function Es(e,t,l,r){if(e.tag!==5)throw Error(u(476));var o=Nh(e).queue;Ch(e,o,t,ie,l===null?zy:function(){return Ah(e),l(r)})}function Nh(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:kn,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=Nh(e);t.next===null&&(t=e.alternate.memoizedState),$i(e,t.next.queue,{},Ht())}function ws(){return ft(ma)}function jh(){return Pe().memoizedState}function Mh(){return Pe().memoizedState}function ky(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Vn(l);var r=Xn(t,e,l);r!==null&&(Nt(r,t,l),Fi(r,t,l)),t={cache:es()},e.payload=t;return}t=t.return}}function Ey(e,t,l){var r=Ht();l={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},xr(e)?Oh(t,l):(l=Xu(e,t,l,r),l!==null&&(Nt(l,e,r),Dh(l,t,r)))}function _h(e,t,l){var r=Ht();$i(e,t,l,r)}function $i(e,t,l,r){var o={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(xr(e))Oh(t,o);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var y=t.lastRenderedState,z=h(y,l);if(o.hasEagerState=!0,o.eagerState=z,Ot(z,y))return Wa(e,t,o,0),Xe===null&&$a(),!1}catch{}finally{}if(l=Xu(e,t,o,r),l!==null)return Nt(l,e,r),Dh(l,t,r),!0}return!1}function Ts(e,t,l,r){if(r={lane:2,revertLane:io(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},xr(e)){if(t)throw Error(u(479))}else t=Xu(e,l,r,2),t!==null&&Nt(t,e,2)}function xr(e){var t=e.alternate;return e===be||t!==null&&t===be}function Oh(e,t){ti=fr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Dh(e,t,l){if((l&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Uc(e,l)}}var Wi={readContext:ft,use:mr,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};Wi.useEffectEvent=Ie;var Rh={readContext:ft,use:mr,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:xh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,gr(4194308,4,zh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return gr(4194308,4,e,t)},useInsertionEffect:function(e,t){gr(4,2,e,t)},useMemo:function(e,t){var l=bt();t=t===void 0?null:t;var r=e();if(Sl){St(!0);try{e()}finally{St(!1)}}return l.memoizedState=[r,t],r},useReducer:function(e,t,l){var r=bt();if(l!==void 0){var o=l(t);if(Sl){St(!0);try{l(t)}finally{St(!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=Ey.bind(null,be,e),[r.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,l=_h.bind(null,be,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:zs,useDeferredValue:function(e,t){var l=bt();return ks(l,e,t)},useTransition:function(){var e=bs(!1);return e=Ch.bind(null,be,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var r=be,o=bt();if(Ae){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Xe===null)throw Error(u(349));(Ce&127)!==0||nh(r,t,l)}o.memoizedState=l;var h={value:l,getSnapshot:t};return o.queue=h,xh(ih.bind(null,r,h,e),[e]),r.flags|=2048,li(9,{destroy:void 0},lh.bind(null,r,h,l,t),null),l},useId:function(){var e=bt(),t=Xe.identifierPrefix;if(Ae){var l=un,r=rn;l=(r&~(1<<32-Ve(r)-1)).toString(32)+l,t="_"+t+"R_"+l,l=hr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=yy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ws,useFormState:dh,useActionState:dh,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ts.bind(null,be,!0,l),l.dispatch=t,[e,t]},useMemoCache:gs,useCacheRefresh:function(){return bt().memoizedState=ky.bind(null,be)},useEffectEvent:function(e){var t=bt(),l={impl:e};return t.memoizedState=l,function(){if((De&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},Cs={readContext:ft,use:mr,useCallback:Eh,useContext:ft,useEffect:Ss,useImperativeHandle:kh,useInsertionEffect:vh,useLayoutEffect:Sh,useMemo:wh,useReducer:pr,useRef:yh,useState:function(){return pr(kn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return Th(l,He.memoizedState,e,t)},useTransition:function(){var e=pr(kn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ii(e),t]},useSyncExternalStore:th,useId:jh,useHostTransitionStatus:ws,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var l=Pe();return uh(l,He,e,t)},useMemoCache:gs,useCacheRefresh:Mh};Cs.useEffectEvent=bh;var Lh={readContext:ft,use:mr,useCallback:Eh,useContext:ft,useEffect:Ss,useImperativeHandle:kh,useInsertionEffect:vh,useLayoutEffect:Sh,useMemo:wh,useReducer:xs,useRef:yh,useState:function(){return xs(kn)},useDebugValue:zs,useDeferredValue:function(e,t){var l=Pe();return He===null?ks(l,e,t):Th(l,He.memoizedState,e,t)},useTransition:function(){var e=xs(kn)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Ii(e),t]},useSyncExternalStore:th,useId:jh,useHostTransitionStatus:ws,useFormState:gh,useActionState:gh,useOptimistic:function(e,t){var l=Pe();return He!==null?uh(l,He,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:gs,useCacheRefresh:Mh};Lh.useEffectEvent=bh;function Ns(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 As={enqueueSetState:function(e,t,l){e=e._reactInternals;var r=Ht(),o=Vn(r);o.payload=t,l!=null&&(o.callback=l),t=Xn(e,o,r),t!==null&&(Nt(t,e,r),Fi(t,e,r))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var r=Ht(),o=Vn(r);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Xn(e,o,r),t!==null&&(Nt(t,e,r),Fi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ht(),r=Vn(l);r.tag=2,t!=null&&(r.callback=t),t=Xn(e,r,l),t!==null&&(Nt(t,e,l),Fi(t,e,l))}};function Bh(e,t,l,r,o,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,h,y):t.prototype&&t.prototype.isPureReactComponent?!Ui(l,r)||!Ui(o,h):!0}function Uh(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&&As.enqueueReplaceState(t,t.state,null)}function zl(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 Hh(e){Ia(e)}function qh(e){console.error(e)}function Yh(e){Ia(e)}function br(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Vh(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 js(e,t,l){return l=Vn(l),l.tag=3,l.payload={element:null},l.callback=function(){br(e,t)},l}function Xh(e){return e=Vn(e),e.tag=3,e}function Gh(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(){Vh(t,l,r)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Vh(t,l,r),typeof o!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var z=r.stack;this.componentDidCatch(r.value,{componentStack:z!==null?z:""})})}function wy(e,t,l,r,o){if(l.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=l.alternate,t!==null&&Jl(t,l,o,!0),l=Rt.current,l!==null){switch(l.tag){case 31:case 13:return It===null?Mr():l.alternate===null&&$e===0&&($e=3),l.flags&=-257,l.flags|=65536,l.lanes=o,r===rr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([r]):t.add(r),to(e,r,o)),!1;case 22:return l.flags|=65536,r===rr?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)),to(e,r,o)),!1}throw Error(u(435,l.tag))}return to(e,r,o),Mr(),!1}if(Ae)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==Ju&&(e=Error(u(422),{cause:r}),Yi(Ft(e,l)))):(r!==Ju&&(t=Error(u(423),{cause:r}),Yi(Ft(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Ft(r,l),o=js(e.stateNode,r,o),rs(e,o),$e!==4&&($e=2)),!1;var h=Error(u(520),{cause:r});if(h=Ft(h,l),ra===null?ra=[h]:ra.push(h),$e!==4&&($e=2),t===null)return!0;r=Ft(r,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=js(l.stateNode,r,e),rs(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"&&(Jn===null||!Jn.has(h))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Xh(o),Gh(o,e,l,r),rs(l,o),!1}l=l.return}while(l!==null);return!1}var Ms=Error(u(461)),nt=!1;function ht(e,t,l,r){t.child=e===null?Kf(t,null,l,r):vl(t,e.child,l,r)}function Qh(e,t,l,r,o){l=l.render;var h=t.ref;if("ref"in r){var y={};for(var z in r)z!=="ref"&&(y[z]=r[z])}else y=r;return gl(t),r=hs(e,t,l,y,h,o),z=ds(),e!==null&&!nt?(ms(e,t,o),En(e,t,o)):(Ae&&z&&Zu(t),t.flags|=1,ht(e,t,r,o),t.child)}function Fh(e,t,l,r,o){if(e===null){var h=l.type;return typeof h=="function"&&!Gu(h)&&h.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=h,Zh(e,t,h,r,o)):(e=er(l.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Hs(e,o)){var y=h.memoizedProps;if(l=l.compare,l=l!==null?l:Ui,l(y,r)&&e.ref===t.ref)return En(e,t,o)}return t.flags|=1,e=xn(h,r),e.ref=t.ref,e.return=t,t.child=e}function Zh(e,t,l,r,o){if(e!==null){var h=e.memoizedProps;if(Ui(h,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=h,Hs(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,En(e,t,o)}return _s(e,t,l,r,o)}function Kh(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 Jh(e,t,h,l,r)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ir(t,h!==null?h.cachePool:null),h!==null?$f(t,h):ss(),Wf(t);else return r=t.lanes=536870912,Jh(e,t,h!==null?h.baseLanes|l:l,l,r)}else h!==null?(ir(t,h.cachePool),$f(t,h),Qn(),t.memoizedState=null):(e!==null&&ir(t,null),ss(),Qn());return ht(e,t,o,l),t.child}function Pi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jh(e,t,l,r,o){var h=ns();return h=h===null?null:{parent:et._currentValue,pool:h},t.memoizedState={baseLanes:l,cachePool:h},e!==null&&ir(t,null),ss(),Wf(t),e!==null&&Jl(e,t,r,!0),t.childLanes=o,null}function vr(e,t){return t=zr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ih(e,t,l){return vl(t,e.child,null,l),e=vr(t,t.pendingProps),e.flags|=2,Lt(t),t.memoizedState=null,e}function Ty(e,t,l){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(r.mode==="hidden")return e=vr(t,r),t.lanes=536870912,Pi(null,e);if(cs(t),(e=Fe)?(e=sm(e,Jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:rn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},l=Of(e),l.return=t,t.child=l,ct=t,Fe=null)):e=null,e===null)throw Hn(t);return t.lanes=536870912,null}return vr(t,r)}var h=e.memoizedState;if(h!==null){var y=h.dehydrated;if(cs(t),o)if(t.flags&256)t.flags&=-257,t=Ih(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(nt||Jl(e,t,l,!1),o=(l&e.childLanes)!==0,nt||o){if(r=Xe,r!==null&&(y=Hc(r,l),y!==0&&y!==h.retryLane))throw h.retryLane=y,hl(e,y),Nt(r,e,y),Ms;Mr(),t=Ih(e,t,l)}else e=h.treeContext,Fe=$t(y.nextSibling),ct=t,Ae=!0,Un=null,Jt=!1,e!==null&&Lf(t,e),t=vr(t,r),t.flags|=4096;return t}return e=xn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Sr(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 _s(e,t,l,r,o){return gl(t),l=hs(e,t,l,r,void 0,o),r=ds(),e!==null&&!nt?(ms(e,t,o),En(e,t,o)):(Ae&&r&&Zu(t),t.flags|=1,ht(e,t,l,o),t.child)}function $h(e,t,l,r,o,h){return gl(t),t.updateQueue=null,l=eh(t,r,l,o),Pf(e),r=ds(),e!==null&&!nt?(ms(e,t,h),En(e,t,h)):(Ae&&r&&Zu(t),t.flags|=1,ht(e,t,l,h),t.child)}function Wh(e,t,l,r,o){if(gl(t),t.stateNode===null){var h=Ql,y=l.contextType;typeof y=="object"&&y!==null&&(h=ft(y)),h=new l(r,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=As,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=r,h.state=t.memoizedState,h.refs={},is(t),y=l.contextType,h.context=typeof y=="object"&&y!==null?ft(y):Ql,h.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(Ns(t,l,y,r),h.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(y=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),y!==h.state&&As.enqueueReplaceState(h,h.state,null),Ki(t,r,h,o),Zi(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){h=t.stateNode;var z=t.memoizedProps,T=zl(l,z);h.props=T;var D=h.context,X=l.contextType;y=Ql,typeof X=="object"&&X!==null&&(y=ft(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!==y)&&Uh(t,h,r,y),Yn=!1;var B=t.memoizedState;h.state=B,Ki(t,r,h,o),Zi(),D=t.memoizedState,z||B!==D||Yn?(typeof Z=="function"&&(Ns(t,l,Z,r),D=t.memoizedState),(T=Yn||Bh(t,l,T,r,B,D,y))?(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=y,r=T):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{h=t.stateNode,as(e,t),y=t.memoizedProps,X=zl(l,y),h.props=X,Z=t.pendingProps,B=h.context,D=l.contextType,T=Ql,typeof D=="object"&&D!==null&&(T=ft(D)),z=l.getDerivedStateFromProps,(D=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==Z||B!==T)&&Uh(t,h,r,T),Yn=!1,B=t.memoizedState,h.state=B,Ki(t,r,h,o),Zi();var V=t.memoizedState;y!==Z||B!==V||Yn||e!==null&&e.dependencies!==null&&nr(e.dependencies)?(typeof z=="function"&&(Ns(t,l,z,r),V=t.memoizedState),(X=Yn||Bh(t,l,X,r,B,V,T)||e!==null&&e.dependencies!==null&&nr(e.dependencies))?(D||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(r,V,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(r,V,T)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=V),h.props=r,h.state=V,h.context=T,r=X):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),r=!1)}return h=r,Sr(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=vl(t,e.child,null,o),t.child=vl(t,null,l,o)):ht(e,t,l,o),t.memoizedState=h.state,e=t.child):e=En(e,t,o),e}function Ph(e,t,l,r){return ml(),t.flags|=256,ht(e,t,l,r),t.child}var Os={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ds(e){return{baseLanes:e,cachePool:Vf()}}function Rs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ut),e}function ed(e,t,l){var r=t.pendingProps,o=!1,h=(t.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(We.current&2)!==0),y&&(o=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(o?Gn(t):Qn(),(e=Fe)?(e=sm(e,Jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Bn!==null?{id:rn,overflow:un}:null,retryLane:536870912,hydrationErrors:null},l=Of(e),l.return=t,t.child=l,ct=t,Fe=null)):e=null,e===null)throw Hn(t);return xo(e)?t.lanes=32:t.lanes=536870912,null}var z=r.children;return r=r.fallback,o?(Qn(),o=t.mode,z=zr({mode:"hidden",children:z},o),r=dl(r,o,l,null),z.return=t,r.return=t,z.sibling=r,t.child=z,r=t.child,r.memoizedState=Ds(l),r.childLanes=Rs(e,y,l),t.memoizedState=Os,Pi(null,r)):(Gn(t),Ls(t,z))}var T=e.memoizedState;if(T!==null&&(z=T.dehydrated,z!==null)){if(h)t.flags&256?(Gn(t),t.flags&=-257,t=Bs(e,t,l)):t.memoizedState!==null?(Qn(),t.child=e.child,t.flags|=128,t=null):(Qn(),z=r.fallback,o=t.mode,r=zr({mode:"visible",children:r.children},o),z=dl(z,o,l,null),z.flags|=2,r.return=t,z.return=t,r.sibling=z,t.child=r,vl(t,e.child,null,l),r=t.child,r.memoizedState=Ds(l),r.childLanes=Rs(e,y,l),t.memoizedState=Os,t=Pi(null,r));else if(Gn(t),xo(z)){if(y=z.nextSibling&&z.nextSibling.dataset,y)var D=y.dgst;y=D,r=Error(u(419)),r.stack="",r.digest=y,Yi({value:r,source:null,stack:null}),t=Bs(e,t,l)}else if(nt||Jl(e,t,l,!1),y=(l&e.childLanes)!==0,nt||y){if(y=Xe,y!==null&&(r=Hc(y,l),r!==0&&r!==T.retryLane))throw T.retryLane=r,hl(e,r),Nt(y,e,r),Ms;yo(z)||Mr(),t=Bs(e,t,l)}else yo(z)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Fe=$t(z.nextSibling),ct=t,Ae=!0,Un=null,Jt=!1,e!==null&&Lf(t,e),t=Ls(t,r.children),t.flags|=4096);return t}return o?(Qn(),z=r.fallback,o=t.mode,T=e.child,D=T.sibling,r=xn(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,D!==null?z=xn(D,z):(z=dl(z,o,l,null),z.flags|=2),z.return=t,r.return=t,r.sibling=z,t.child=r,Pi(null,r),r=t.child,z=e.child.memoizedState,z===null?z=Ds(l):(o=z.cachePool,o!==null?(T=et._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Vf(),z={baseLanes:z.baseLanes|l,cachePool:o}),r.memoizedState=z,r.childLanes=Rs(e,y,l),t.memoizedState=Os,Pi(e.child,r)):(Gn(t),l=e.child,e=l.sibling,l=xn(l,{mode:"visible",children:r.children}),l.return=t,l.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=l,t.memoizedState=null,l)}function Ls(e,t){return t=zr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function zr(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function Bs(e,t,l){return vl(t,e.child,null,l),e=Ls(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function td(e,t,l){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wu(e.return,t,l)}function Us(e,t,l,r,o,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:l,tailMode:o,treeForkCount:h}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=r,y.tail=l,y.tailMode=o,y.treeForkCount=h)}function nd(e,t,l){var r=t.pendingProps,o=r.revealOrder,h=r.tail;r=r.children;var y=We.current,z=(y&2)!==0;if(z?(y=y&1|2,t.flags|=128):y&=1,k(We,y),ht(e,t,r,l),r=Ae?qi:0,!z&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&td(e,l,t);else if(e.tag===19)td(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&&cr(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Us(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&&cr(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Us(t,!0,l,null,h,r);break;case"together":Us(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function En(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Kn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Jl(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=xn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=xn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Hs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&nr(e)))}function Cy(e,t,l){switch(t.tag){case 3:Ke(t,t.stateNode.containerInfo),qn(t,et,e.memoizedState.cache),ml();break;case 27:case 5:Vt(t);break;case 4:Ke(t,t.stateNode.containerInfo);break;case 10:qn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cs(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Gn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ed(e,t,l):(Gn(t),e=En(e,t,l),e!==null?e.sibling:null);Gn(t);break;case 19:var o=(e.flags&128)!==0;if(r=(l&t.childLanes)!==0,r||(Jl(e,t,l,!1),r=(l&t.childLanes)!==0),o){if(r)return nd(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(We,We.current),r)break;return null;case 22:return t.lanes=0,Kh(e,t,l,t.pendingProps);case 24:qn(t,et,e.memoizedState.cache)}return En(e,t,l)}function ld(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Hs(e,l)&&(t.flags&128)===0)return nt=!1,Cy(e,t,l);nt=(e.flags&131072)!==0}else nt=!1,Ae&&(t.flags&1048576)!==0&&Rf(t,qi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=xl(t.elementType),t.type=e,typeof e=="function")Gu(e)?(r=zl(e,r),t.tag=1,t=Wh(null,t,e,r,l)):(t.tag=0,t=_s(null,t,e,r,l));else{if(e!=null){var o=e.$$typeof;if(o===I){t.tag=11,t=Qh(null,t,e,r,l);break e}else if(o===$){t.tag=14,t=Fh(null,t,e,r,l);break e}}throw t=ae(e)||e,Error(u(306,t,""))}}return t;case 0:return _s(e,t,t.type,t.pendingProps,l);case 1:return r=t.type,o=zl(r,t.pendingProps),Wh(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,as(e,t),Ki(t,r,null,l);var y=t.memoizedState;if(r=y.cache,qn(t,et,r),r!==h.cache&&Pu(t,[et],l,!0),Zi(),r=y.element,h.isDehydrated)if(h={element:r,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=Ph(e,t,r,l);break e}else if(r!==o){o=Ft(Error(u(424)),t),Yi(o),t=Ph(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(Fe=$t(e.firstChild),ct=t,Ae=!0,Un=null,Jt=!0,l=Kf(t,null,r,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ml(),r===o){t=En(e,t,l);break e}ht(e,t,r,l)}t=t.child}return t;case 26:return Sr(e,t),e===null?(l=mm(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ae||(l=t.type,e=t.pendingProps,r=Ur(se.current).createElement(l),r[ot]=t,r[zt]=e,dt(r,l,e),ut(r),t.stateNode=r):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vt(t),e===null&&Ae&&(r=t.stateNode=fm(t.type,t.pendingProps,se.current),ct=t,Jt=!0,o=Fe,Pn(t.type)?(bo=o,Fe=$t(r.firstChild)):Fe=o),ht(e,t,t.pendingProps.children,l),Sr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((o=r=Fe)&&(r=lx(r,t.type,t.pendingProps,Jt),r!==null?(t.stateNode=r,ct=t,Fe=$t(r.firstChild),Jt=!1,o=!0):o=!1),o||Hn(t)),Vt(t),o=t.type,h=t.pendingProps,y=e!==null?e.memoizedProps:null,r=h.children,mo(o,h)?r=null:y!==null&&mo(o,y)&&(t.flags|=32),t.memoizedState!==null&&(o=hs(e,t,xy,null,null,l),ma._currentValue=o),Sr(e,t),ht(e,t,r,l),t.child;case 6:return e===null&&Ae&&((e=l=Fe)&&(l=ix(l,t.pendingProps,Jt),l!==null?(t.stateNode=l,ct=t,Fe=null,e=!0):e=!1),e||Hn(t)),null;case 13:return ed(e,t,l);case 4:return Ke(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vl(t,null,r,l):ht(e,t,r,l),t.child;case 11:return Qh(e,t,t.type,t.pendingProps,l);case 7:return ht(e,t,t.pendingProps,l),t.child;case 8:return ht(e,t,t.pendingProps.children,l),t.child;case 12:return ht(e,t,t.pendingProps.children,l),t.child;case 10:return r=t.pendingProps,qn(t,t.type,r.value),ht(e,t,r.children,l),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,gl(t),o=ft(o),r=r(o),t.flags|=1,ht(e,t,r,l),t.child;case 14:return Fh(e,t,t.type,t.pendingProps,l);case 15:return Zh(e,t,t.type,t.pendingProps,l);case 19:return nd(e,t,l);case 31:return Ty(e,t,l);case 22:return Kh(e,t,l,t.pendingProps);case 24:return gl(t),r=ft(et),e===null?(o=ns(),o===null&&(o=Xe,h=es(),o.pooledCache=h,h.refCount++,h!==null&&(o.pooledCacheLanes|=l),o=h),t.memoizedState={parent:r,cache:o},is(t),qn(t,et,o)):((e.lanes&l)!==0&&(as(e,t),Ki(t,null,null,l),Zi()),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),qn(t,et,r)):(r=h.cache,qn(t,et,r),r!==o.cache&&Pu(t,[et],l,!0))),ht(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function wn(e){e.flags|=4}function qs(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(jd())e.flags|=8192;else throw bl=rr,ls}else e.flags&=-16777217}function id(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bm(t))if(jd())e.flags|=8192;else throw bl=rr,ls}function kr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Lc():536870912,e.lanes|=t,ui|=t)}function ea(e,t){if(!Ae)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 Ze(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 Ny(e,t,l){var r=t.pendingProps;switch(Ku(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return l=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Sn(et),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?wn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Iu())),Ze(t),null;case 26:var o=t.type,h=t.memoizedState;return e===null?(wn(t),h!==null?(Ze(t),id(t,h)):(Ze(t),qs(t,o,null,r,l))):h?h!==e.memoizedState?(wn(t),Ze(t),id(t,h)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&wn(t),Ze(t),qs(t,o,e,r,l)),null;case 27:if(hn(t),l=se.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Ze(t),null}e=P.current,Kl(t)?Bf(t):(e=fm(o,r,l),t.stateNode=e,wn(t))}return Ze(t),null;case 5:if(hn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Ze(t),null}if(h=P.current,Kl(t))Bf(t);else{var y=Ur(se.current);switch(h){case 1:h=y.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:h=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":h=y.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":h=y.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":h=y.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof r.is=="string"?y.createElement("select",{is:r.is}):y.createElement("select"),r.multiple?h.multiple=!0:r.size&&(h.size=r.size);break;default:h=typeof r.is=="string"?y.createElement(o,{is:r.is}):y.createElement(o)}}h[ot]=t,h[zt]=r;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)h.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=h;e:switch(dt(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&&wn(t)}}return Ze(t),qs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&wn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=se.current,Kl(t)){if(e=t.stateNode,l=t.memoizedProps,r=null,o=ct,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ot]=t,e=!!(e.nodeValue===l||r!==null&&r.suppressHydrationWarning===!0||em(e.nodeValue,l)),e||Hn(t,!0)}else e=Ur(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(r=Kl(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[ot]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else l=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Lt(t),t):(Lt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ze(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Kl(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[ot]=t}else ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),o=!1}else o=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Lt(t),t):(Lt(t),null)}return Lt(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),kr(t,t.updateQueue),Ze(t),null);case 4:return Ue(),e===null&&so(t.stateNode.containerInfo),Ze(t),null;case 10:return Sn(t.type),Ze(t),null;case 19:if(L(We),r=t.memoizedState,r===null)return Ze(t),null;if(o=(t.flags&128)!==0,h=r.rendering,h===null)if(o)ea(r,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=cr(e),h!==null){for(t.flags|=128,ea(r,!1),e=h.updateQueue,t.updateQueue=e,kr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)_f(l,e),l=l.sibling;return k(We,We.current&1|2),Ae&&bn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&yt()>Nr&&(t.flags|=128,o=!0,ea(r,!1),t.lanes=4194304)}else{if(!o)if(e=cr(h),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,kr(t,e),ea(r,!0),r.tail===null&&r.tailMode==="hidden"&&!h.alternate&&!Ae)return Ze(t),null}else 2*yt()-r.renderingStartTime>Nr&&l!==536870912&&(t.flags|=128,o=!0,ea(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=yt(),e.sibling=null,l=We.current,k(We,o?l&1|2:l&1),Ae&&bn(t,r.treeForkCount),e):(Ze(t),null);case 22:case 23:return Lt(t),os(),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&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),l=t.updateQueue,l!==null&&kr(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&&L(yl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Sn(et),Ze(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ay(e,t){switch(Ku(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(et),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hn(t),null;case 31:if(t.memoizedState!==null){if(Lt(t),t.alternate===null)throw Error(u(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(We),null;case 4:return Ue(),null;case 10:return Sn(t.type),null;case 22:case 23:return Lt(t),os(),e!==null&&L(yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sn(et),null;case 25:return null;default:return null}}function ad(e,t){switch(Ku(t),t.tag){case 3:Sn(et),Ue();break;case 26:case 27:case 5:hn(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&Lt(t);break;case 13:Lt(t);break;case 19:L(We);break;case 10:Sn(t.type);break;case 22:case 23:Lt(t),os(),e!==null&&L(yl);break;case 24:Sn(et)}}function ta(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,y=l.inst;r=h(),y.destroy=r}l=l.next}while(l!==o)}}catch(z){Be(t,t.return,z)}}function Fn(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 y=r.inst,z=y.destroy;if(z!==void 0){y.destroy=void 0,o=t;var T=l,D=z;try{D()}catch(X){Be(o,T,X)}}}r=r.next}while(r!==h)}}catch(X){Be(t,t.return,X)}}function rd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{If(t,l)}catch(r){Be(e,e.return,r)}}}function ud(e,t,l){l.props=zl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(r){Be(e,t,r)}}function na(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){Be(e,t,o)}}function sn(e,t){var l=e.ref,r=e.refCleanup;if(l!==null)if(typeof r=="function")try{r()}catch(o){Be(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){Be(e,t,o)}else l.current=null}function sd(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){Be(e,e.return,o)}}function Ys(e,t,l){try{var r=e.stateNode;$y(r,e.type,l,t),r[zt]=t}catch(o){Be(e,e.return,o)}}function od(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pn(e.type)||e.tag===4}function Vs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||od(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&&Pn(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 Xs(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=gn));else if(r!==4&&(r===27&&Pn(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Xs(e,t,l),e=e.sibling;e!==null;)Xs(e,t,l),e=e.sibling}function Er(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&&Pn(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Er(e,t,l),e=e.sibling;e!==null;)Er(e,t,l),e=e.sibling}function cd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);dt(t,r,l),t[ot]=e,t[zt]=l}catch(h){Be(e,e.return,h)}}var Tn=!1,lt=!1,Gs=!1,fd=typeof WeakSet=="function"?WeakSet:Set,st=null;function jy(e,t){if(e=e.containerInfo,fo=Qr,e=kf(e),Bu(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 y=0,z=-1,T=-1,D=0,X=0,Z=e,B=null;t:for(;;){for(var V;Z!==l||o!==0&&Z.nodeType!==3||(z=y+o),Z!==h||r!==0&&Z.nodeType!==3||(T=y+r),Z.nodeType===3&&(y+=Z.nodeValue.length),(V=Z.firstChild)!==null;)B=Z,Z=V;for(;;){if(Z===e)break t;if(B===l&&++D===o&&(z=y),B===h&&++X===r&&(T=y),(V=Z.nextSibling)!==null)break;Z=B,B=Z.parentNode}Z=V}l=z===-1||T===-1?null:{start:z,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(ho={focusedElem:e,selectionRange:l},Qr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,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 re=zl(l.type,o);e=r.getSnapshotBeforeUpdate(re,h),r.__reactInternalSnapshotBeforeUpdate=e}catch(me){Be(l,l.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)go(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":go(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,st=e;break}st=t.return}}function hd(e,t,l){var r=l.flags;switch(l.tag){case 0:case 11:case 15:Nn(e,l),r&4&&ta(5,l);break;case 1:if(Nn(e,l),r&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(y){Be(l,l.return,y)}else{var o=zl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Be(l,l.return,y)}}r&64&&rd(l),r&512&&na(l,l.return);break;case 3:if(Nn(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{If(e,t)}catch(y){Be(l,l.return,y)}}break;case 27:t===null&&r&4&&cd(l);case 26:case 5:Nn(e,l),t===null&&r&4&&sd(l),r&512&&na(l,l.return);break;case 12:Nn(e,l);break;case 31:Nn(e,l),r&4&&pd(e,l);break;case 13:Nn(e,l),r&4&&gd(e,l),r&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Hy.bind(null,l),ax(e,l))));break;case 22:if(r=l.memoizedState!==null||Tn,!r){t=t!==null&&t.memoizedState!==null||lt,o=Tn;var h=lt;Tn=r,(lt=t)&&!h?An(e,l,(l.subtreeFlags&8772)!==0):Nn(e,l),Tn=o,lt=h}break;case 30:break;default:Nn(e,l)}}function dd(e){var t=e.alternate;t!==null&&(e.alternate=null,dd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vu(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 Je=null,Et=!1;function Cn(e,t,l){for(l=l.child;l!==null;)md(e,t,l),l=l.sibling}function md(e,t,l){if(at&&typeof at.onCommitFiberUnmount=="function")try{at.onCommitFiberUnmount(xt,l)}catch{}switch(l.tag){case 26:lt||sn(l,t),Cn(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||sn(l,t);var r=Je,o=Et;Pn(l.type)&&(Je=l.stateNode,Et=!1),Cn(e,t,l),fa(l.stateNode),Je=r,Et=o;break;case 5:lt||sn(l,t);case 6:if(r=Je,o=Et,Je=null,Cn(e,t,l),Je=r,Et=o,Je!==null)if(Et)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(l.stateNode)}catch(h){Be(l,t,h)}else try{Je.removeChild(l.stateNode)}catch(h){Be(l,t,h)}break;case 18:Je!==null&&(Et?(e=Je,rm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),pi(e)):rm(Je,l.stateNode));break;case 4:r=Je,o=Et,Je=l.stateNode.containerInfo,Et=!0,Cn(e,t,l),Je=r,Et=o;break;case 0:case 11:case 14:case 15:Fn(2,l,t),lt||Fn(4,l,t),Cn(e,t,l);break;case 1:lt||(sn(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"&&ud(l,t,r)),Cn(e,t,l);break;case 21:Cn(e,t,l);break;case 22:lt=(r=lt)||l.memoizedState!==null,Cn(e,t,l),lt=r;break;default:Cn(e,t,l)}}function pd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pi(e)}catch(l){Be(t,t.return,l)}}}function gd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pi(e)}catch(l){Be(t,t.return,l)}}function My(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fd),t;default:throw Error(u(435,e.tag))}}function wr(e,t){var l=My(e);t.forEach(function(r){if(!l.has(r)){l.add(r);var o=qy.bind(null,e,r);r.then(o,o)}})}function wt(e,t){var l=t.deletions;if(l!==null)for(var r=0;r<l.length;r++){var o=l[r],h=e,y=t,z=y;e:for(;z!==null;){switch(z.tag){case 27:if(Pn(z.type)){Je=z.stateNode,Et=!1;break e}break;case 5:Je=z.stateNode,Et=!1;break e;case 3:case 4:Je=z.stateNode.containerInfo,Et=!0;break e}z=z.return}if(Je===null)throw Error(u(160));md(h,y,o),Je=null,Et=!1,h=o.alternate,h!==null&&(h.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yd(t,e),t=t.sibling}var nn=null;function yd(e,t){var l=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),Tt(e),r&4&&(Fn(3,e,e.return),ta(3,e),Fn(5,e,e.return));break;case 1:wt(t,e),Tt(e),r&512&&(lt||l===null||sn(l,l.return)),r&64&&Tn&&(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=nn;if(wt(t,e),Tt(e),r&512&&(lt||l===null||sn(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[Ai]||h[ot]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=o.createElement(r),o.head.insertBefore(h,o.querySelector("head > title"))),dt(h,r,l),h[ot]=e,ut(h),r=h;break e;case"link":var y=ym("link","href",o).get(r+(l.href||""));if(y){for(var z=0;z<y.length;z++)if(h=y[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)){y.splice(z,1);break t}}h=o.createElement(r),dt(h,r,l),o.head.appendChild(h);break;case"meta":if(y=ym("meta","content",o).get(r+(l.content||""))){for(z=0;z<y.length;z++)if(h=y[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)){y.splice(z,1);break t}}h=o.createElement(r),dt(h,r,l),o.head.appendChild(h);break;default:throw Error(u(468,r))}h[ot]=e,ut(h),r=h}e.stateNode=r}else xm(o,e.type,e.stateNode);else e.stateNode=gm(o,r,e.memoizedProps);else h!==r?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,r===null?xm(o,e.type,e.stateNode):gm(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Ys(e,e.memoizedProps,l.memoizedProps)}break;case 27:wt(t,e),Tt(e),r&512&&(lt||l===null||sn(l,l.return)),l!==null&&r&4&&Ys(e,e.memoizedProps,l.memoizedProps);break;case 5:if(wt(t,e),Tt(e),r&512&&(lt||l===null||sn(l,l.return)),e.flags&32){o=e.stateNode;try{Ul(o,"")}catch(re){Be(e,e.return,re)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Ys(e,o,l!==null?l.memoizedProps:o)),r&1024&&(Gs=!0);break;case 6:if(wt(t,e),Tt(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,l=e.stateNode;try{l.nodeValue=r}catch(re){Be(e,e.return,re)}}break;case 3:if(Yr=null,o=nn,nn=Hr(t.containerInfo),wt(t,e),nn=o,Tt(e),r&4&&l!==null&&l.memoizedState.isDehydrated)try{pi(t.containerInfo)}catch(re){Be(e,e.return,re)}Gs&&(Gs=!1,xd(e));break;case 4:r=nn,nn=Hr(e.stateNode.containerInfo),wt(t,e),Tt(e),nn=r;break;case 12:wt(t,e),Tt(e);break;case 31:wt(t,e),Tt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,wr(e,r)));break;case 13:wt(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Cr=yt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,wr(e,r)));break;case 22:o=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,D=Tn,X=lt;if(Tn=D||o,lt=X||T,wt(t,e),lt=X,Tn=D,Tt(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||T||Tn||lt||kl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(h=T.stateNode,o)y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{z=T.stateNode;var Z=T.memoizedProps.style,B=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;z.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(re){Be(T,T.return,re)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(re){Be(T,T.return,re)}}}else if(t.tag===18){if(l===null){T=t;try{var V=T.stateNode;o?um(V,!0):um(T.stateNode,!1)}catch(re){Be(T,T.return,re)}}}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,wr(e,l))));break;case 19:wt(t,e),Tt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,wr(e,r)));break;case 30:break;case 21:break;default:wt(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var l,r=e.return;r!==null;){if(od(r)){l=r;break}r=r.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,h=Vs(e);Er(e,h,o);break;case 5:var y=l.stateNode;l.flags&32&&(Ul(y,""),l.flags&=-33);var z=Vs(e);Er(e,z,y);break;case 3:case 4:var T=l.stateNode.containerInfo,D=Vs(e);Xs(e,D,T);break;default:throw Error(u(161))}}catch(X){Be(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Nn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hd(e,t.alternate,t),t=t.sibling}function kl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Fn(4,t,t.return),kl(t);break;case 1:sn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ud(t,t.return,l),kl(t);break;case 27:fa(t.stateNode);case 26:case 5:sn(t,t.return),kl(t);break;case 22:t.memoizedState===null&&kl(t);break;case 30:kl(t);break;default:kl(t)}e=e.sibling}}function An(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,h=t,y=h.flags;switch(h.tag){case 0:case 11:case 15:An(o,h,l),ta(4,h);break;case 1:if(An(o,h,l),r=h,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Be(r,r.return,D)}if(r=h,o=r.updateQueue,o!==null){var z=r.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Jf(T[o],z)}catch(D){Be(r,r.return,D)}}l&&y&64&&rd(h),na(h,h.return);break;case 27:cd(h);case 26:case 5:An(o,h,l),l&&r===null&&y&4&&sd(h),na(h,h.return);break;case 12:An(o,h,l);break;case 31:An(o,h,l),l&&y&4&&pd(o,h);break;case 13:An(o,h,l),l&&y&4&&gd(o,h);break;case 22:h.memoizedState===null&&An(o,h,l),na(h,h.return);break;case 30:break;default:An(o,h,l)}t=t.sibling}}function Qs(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&&Vi(l))}function Fs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vi(e))}function ln(e,t,l,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bd(e,t,l,r),t=t.sibling}function bd(e,t,l,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:ln(e,t,l,r),o&2048&&ta(9,t);break;case 1:ln(e,t,l,r);break;case 3:ln(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&&Vi(e)));break;case 12:if(o&2048){ln(e,t,l,r),e=t.stateNode;try{var h=t.memoizedProps,y=h.id,z=h.onPostCommit;typeof z=="function"&&z(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Be(t,t.return,T)}}else ln(e,t,l,r);break;case 31:ln(e,t,l,r);break;case 13:ln(e,t,l,r);break;case 23:break;case 22:h=t.stateNode,y=t.alternate,t.memoizedState!==null?h._visibility&2?ln(e,t,l,r):la(e,t):h._visibility&2?ln(e,t,l,r):(h._visibility|=2,ii(e,t,l,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Qs(y,t);break;case 24:ln(e,t,l,r),o&2048&&Fs(t.alternate,t);break;default:ln(e,t,l,r)}}function ii(e,t,l,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,y=t,z=l,T=r,D=y.flags;switch(y.tag){case 0:case 11:case 15:ii(h,y,z,T,o),ta(8,y);break;case 23:break;case 22:var X=y.stateNode;y.memoizedState!==null?X._visibility&2?ii(h,y,z,T,o):la(h,y):(X._visibility|=2,ii(h,y,z,T,o)),o&&D&2048&&Qs(y.alternate,y);break;case 24:ii(h,y,z,T,o),o&&D&2048&&Fs(y.alternate,y);break;default:ii(h,y,z,T,o)}t=t.sibling}}function la(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:la(l,r),o&2048&&Qs(r.alternate,r);break;case 24:la(l,r),o&2048&&Fs(r.alternate,r);break;default:la(l,r)}t=t.sibling}}var ia=8192;function ai(e,t,l){if(e.subtreeFlags&ia)for(e=e.child;e!==null;)vd(e,t,l),e=e.sibling}function vd(e,t,l){switch(e.tag){case 26:ai(e,t,l),e.flags&ia&&e.memoizedState!==null&&yx(l,nn,e.memoizedState,e.memoizedProps);break;case 5:ai(e,t,l);break;case 3:case 4:var r=nn;nn=Hr(e.stateNode.containerInfo),ai(e,t,l),nn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ia,ia=16777216,ai(e,t,l),ia=r):ai(e,t,l));break;default:ai(e,t,l)}}function Sd(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 aa(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];st=r,kd(r,e)}Sd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zd(e),e=e.sibling}function zd(e){switch(e.tag){case 0:case 11:case 15:aa(e),e.flags&2048&&Fn(9,e,e.return);break;case 3:aa(e);break;case 12:aa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Tr(e)):aa(e);break;default:aa(e)}}function Tr(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];st=r,kd(r,e)}Sd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Fn(8,t,t.return),Tr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Tr(t));break;default:Tr(t)}e=e.sibling}}function kd(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:Fn(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:Vi(l.memoizedState.cache)}if(r=l.child,r!==null)r.return=l,st=r;else e:for(l=e;st!==null;){r=st;var o=r.sibling,h=r.return;if(dd(r),r===l){st=null;break e}if(o!==null){o.return=h,st=o;break e}st=h}}}var _y={getCacheForType:function(e){var t=ft(et),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ft(et).controller.signal}},Oy=typeof WeakMap=="function"?WeakMap:Map,De=0,Xe=null,Ee=null,Ce=0,Le=0,Bt=null,Zn=!1,ri=!1,Zs=!1,jn=0,$e=0,Kn=0,El=0,Ks=0,Ut=0,ui=0,ra=null,Ct=null,Js=!1,Cr=0,Ed=0,Nr=1/0,Ar=null,Jn=null,rt=0,In=null,si=null,Mn=0,Is=0,$s=null,wd=null,ua=0,Ws=null;function Ht(){return(De&2)!==0&&Ce!==0?Ce&-Ce:j.T!==null?io():qc()}function Td(){if(Ut===0)if((Ce&536870912)===0||Ae){var e=Ba;Ba<<=1,(Ba&3932160)===0&&(Ba=262144),Ut=e}else Ut=536870912;return e=Rt.current,e!==null&&(e.flags|=32),Ut}function Nt(e,t,l){(e===Xe&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(oi(e,0),$n(e,Ce,Ut,!1)),Ni(e,l),((De&2)===0||e!==Xe)&&(e===Xe&&((De&2)===0&&(El|=l),$e===4&&$n(e,Ce,Ut,!1)),on(e))}function Cd(e,t,l){if((De&6)!==0)throw Error(u(327));var r=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ci(e,t),o=r?Ly(e,t):eo(e,t,!0),h=r;do{if(o===0){ri&&!r&&$n(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!Dy(l)){o=eo(e,t,!1),h=!1;continue}if(o===2){if(h=t,e.errorRecoveryDisabledLanes&h)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var z=e;o=ra;var T=z.current.memoizedState.isDehydrated;if(T&&(oi(z,y).flags|=256),y=eo(z,y,!1),y!==2){if(Zs&&!T){z.errorRecoveryDisabledLanes|=h,El|=h,o=4;break e}h=Ct,Ct=o,h!==null&&(Ct===null?Ct=h:Ct.push.apply(Ct,h))}o=y}if(h=!1,o!==2)continue}}if(o===1){oi(e,0),$n(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:$n(r,t,Ut,!Zn);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=Cr+300-yt(),10<o)){if($n(r,t,Ut,!Zn),Ha(r,0,!0)!==0)break e;Mn=t,r.timeoutHandle=im(Nd.bind(null,r,l,Ct,Ar,Js,t,Ut,El,ui,Zn,h,"Throttled",-0,0),o);break e}Nd(r,l,Ct,Ar,Js,t,Ut,El,ui,Zn,h,null,-0,0)}}break}while(!0);on(e)}function Nd(e,t,l,r,o,h,y,z,T,D,X,Z,B,V){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:gn},vd(t,h,Z);var re=(h&62914560)===h?Cr-yt():(h&4194048)===h?Ed-yt():0;if(re=xx(Z,re),re!==null){Mn=h,e.cancelPendingCommit=re(Ld.bind(null,e,t,h,l,r,o,y,z,T,X,Z,null,B,V)),$n(e,h,y,!D);return}}Ld(e,t,h,l,r,o,y,z,T)}function Dy(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(!Ot(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 $n(e,t,l,r){t&=~Ks,t&=~El,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var h=31-Ve(o),y=1<<h;r[h]=-1,o&=~y}l!==0&&Bc(e,l,t)}function jr(){return(De&6)===0?(sa(0),!1):!0}function Ps(){if(Ee!==null){if(Le===0)var e=Ee.return;else e=Ee,vn=pl=null,ps(e),Pl=null,Gi=0,e=Ee;for(;e!==null;)ad(e.alternate,e),e=e.return;Ee=null}}function oi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,ex(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Mn=0,Ps(),Xe=e,Ee=l=xn(e.current,null),Ce=t,Le=0,Bt=null,Zn=!1,ri=Ci(e,t),Zs=!1,ui=Ut=Ks=El=Kn=$e=0,Ct=ra=null,Js=!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-Ve(r),h=1<<o;t|=e[o],r&=~h}return jn=t,$a(),l}function Ad(e,t){be=null,j.H=Wi,t===Wl||t===ar?(t=Qf(),Le=3):t===ls?(t=Qf(),Le=4):Le=t===Ms?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,Ee===null&&($e=1,br(e,Ft(t,e.current)))}function jd(){var e=Rt.current;return e===null?!0:(Ce&4194048)===Ce?It===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===It:!1}function Md(){var e=j.H;return j.H=Wi,e===null?Wi:e}function _d(){var e=j.A;return j.A=_y,e}function Mr(){$e=4,Zn||(Ce&4194048)!==Ce&&Rt.current!==null||(ri=!0),(Kn&134217727)===0&&(El&134217727)===0||Xe===null||$n(Xe,Ce,Ut,!1)}function eo(e,t,l){var r=De;De|=2;var o=Md(),h=_d();(Xe!==e||Ce!==t)&&(Ar=null,oi(e,t)),t=!1;var y=$e;e:do try{if(Le!==0&&Ee!==null){var z=Ee,T=Bt;switch(Le){case 8:Ps(),y=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var D=Le;if(Le=0,Bt=null,ci(e,z,T,D),l&&ri){y=0;break e}break;default:D=Le,Le=0,Bt=null,ci(e,z,T,D)}}Ry(),y=$e;break}catch(X){Ad(e,X)}while(!0);return t&&e.shellSuspendCounter++,vn=pl=null,De=r,j.H=o,j.A=h,Ee===null&&(Xe=null,Ce=0,$a()),y}function Ry(){for(;Ee!==null;)Od(Ee)}function Ly(e,t){var l=De;De|=2;var r=Md(),o=_d();Xe!==e||Ce!==t?(Ar=null,Nr=yt()+500,oi(e,t)):ri=Ci(e,t);e:do try{if(Le!==0&&Ee!==null){t=Ee;var h=Bt;t:switch(Le){case 1:Le=0,Bt=null,ci(e,t,h,1);break;case 2:case 9:if(Xf(h)){Le=0,Bt=null,Dd(t);break}t=function(){Le!==2&&Le!==9||Xe!==e||(Le=7),on(e)},h.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:Xf(h)?(Le=0,Bt=null,Dd(t)):(Le=0,Bt=null,ci(e,t,h,7));break;case 5:var y=null;switch(Ee.tag){case 26:y=Ee.memoizedState;case 5:case 27:var z=Ee;if(y?bm(y):z.stateNode.complete){Le=0,Bt=null;var T=z.sibling;if(T!==null)Ee=T;else{var D=z.return;D!==null?(Ee=D,_r(D)):Ee=null}break t}}Le=0,Bt=null,ci(e,t,h,5);break;case 6:Le=0,Bt=null,ci(e,t,h,6);break;case 8:Ps(),$e=6;break e;default:throw Error(u(462))}}By();break}catch(X){Ad(e,X)}while(!0);return vn=pl=null,j.H=r,j.A=o,De=l,Ee!==null?0:(Xe=null,Ce=0,$a(),$e)}function By(){for(;Ee!==null&&!du();)Od(Ee)}function Od(e){var t=ld(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?_r(e):Ee=t}function Dd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=$h(l,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=$h(l,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:ps(t);default:ad(l,t),t=Ee=_f(t,jn),t=ld(l,t,jn)}e.memoizedProps=e.pendingProps,t===null?_r(e):Ee=t}function ci(e,t,l,r){vn=pl=null,ps(t),Pl=null,Gi=0;var o=t.return;try{if(wy(e,o,t,l,Ce)){$e=1,br(e,Ft(l,e.current)),Ee=null;return}}catch(h){if(o!==null)throw Ee=o,h;$e=1,br(e,Ft(l,e.current)),Ee=null;return}t.flags&32768?(Ae||r===1?e=!0:ri||(Ce&536870912)!==0?e=!1:(Zn=e=!0,(r===2||r===9||r===3||r===6)&&(r=Rt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Rd(t,e)):_r(t)}function _r(e){var t=e;do{if((t.flags&32768)!==0){Rd(t,Zn);return}e=t.return;var l=Ny(t.alternate,t,jn);if(l!==null){Ee=l;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);$e===0&&($e=5)}function Rd(e,t){do{var l=Ay(e.alternate,e);if(l!==null){l.flags&=32767,Ee=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ee=e;return}Ee=e=l}while(e!==null);$e=6,Ee=null}function Ld(e,t,l,r,o,h,y,z,T){e.cancelPendingCommit=null;do Or();while(rt!==0);if((De&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(h=t.lanes|t.childLanes,h|=Vu,gg(e,l,h,y,z,T),e===Xe&&(Ee=Xe=null,Ce=0),si=t,In=e,Mn=l,Is=h,$s=o,wd=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Yy(pe,function(){return Yd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=j.T,j.T=null,o=G.p,G.p=2,y=De,De|=4;try{jy(e,t,l)}finally{De=y,G.p=o,j.T=r}}rt=1,Bd(),Ud(),Hd()}}function Bd(){if(rt===1){rt=0;var e=In,t=si,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=j.T,j.T=null;var r=G.p;G.p=2;var o=De;De|=4;try{yd(t,e);var h=ho,y=kf(e.containerInfo),z=h.focusedElem,T=h.selectionRange;if(y!==z&&z&&z.ownerDocument&&zf(z.ownerDocument.documentElement,z)){if(T!==null&&Bu(z)){var D=T.start,X=T.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,B=Z&&Z.defaultView||window;if(B.getSelection){var V=B.getSelection(),re=z.textContent.length,me=Math.min(T.start,re),Ye=T.end===void 0?me:Math.min(T.end,re);!V.extend&&me>Ye&&(y=Ye,Ye=me,me=y);var M=Sf(z,me),N=Sf(z,Ye);if(M&&N&&(V.rangeCount!==1||V.anchorNode!==M.node||V.anchorOffset!==M.offset||V.focusNode!==N.node||V.focusOffset!==N.offset)){var O=Z.createRange();O.setStart(M.node,M.offset),V.removeAllRanges(),me>Ye?(V.addRange(O),V.extend(N.node,N.offset)):(O.setEnd(N.node,N.offset),V.addRange(O))}}}}for(Z=[],V=z;V=V.parentNode;)V.nodeType===1&&Z.push({element:V,left:V.scrollLeft,top:V.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}}Qr=!!fo,ho=fo=null}finally{De=o,G.p=r,j.T=l}}e.current=t,rt=2}}function Ud(){if(rt===2){rt=0;var e=In,t=si,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=j.T,j.T=null;var r=G.p;G.p=2;var o=De;De|=4;try{hd(e,t.alternate,t)}finally{De=o,G.p=r,j.T=l}}rt=3}}function Hd(){if(rt===4||rt===3){rt=0,mu();var e=In,t=si,l=Mn,r=wd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,si=In=null,qd(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Jn=null),xu(l),t=t.stateNode,at&&typeof at.onCommitFiberRoot=="function")try{at.onCommitFiberRoot(xt,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=j.T,o=G.p,G.p=2,j.T=null;try{for(var h=e.onRecoverableError,y=0;y<r.length;y++){var z=r[y];h(z.value,{componentStack:z.stack})}}finally{j.T=t,G.p=o}}(Mn&3)!==0&&Or(),on(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===Ws?ua++:(ua=0,Ws=e):ua=0,sa(0)}}function qd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vi(t)))}function Or(){return Bd(),Ud(),Hd(),Yd()}function Yd(){if(rt!==5)return!1;var e=In,t=Is;Is=0;var l=xu(Mn),r=j.T,o=G.p;try{G.p=32>l?32:l,j.T=null,l=$s,$s=null;var h=In,y=Mn;if(rt=0,si=In=null,Mn=0,(De&6)!==0)throw Error(u(331));var z=De;if(De|=4,zd(h.current),bd(h,h.current,y,l),De=z,sa(0,!1),at&&typeof at.onPostCommitFiberRoot=="function")try{at.onPostCommitFiberRoot(xt,h)}catch{}return!0}finally{G.p=o,j.T=r,qd(e,t)}}function Vd(e,t,l){t=Ft(l,t),t=js(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(Ni(e,2),on(e))}function Be(e,t,l){if(e.tag===3)Vd(e,e,l);else for(;t!==null;){if(t.tag===3){Vd(t,e,l);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Jn===null||!Jn.has(r))){e=Ft(l,e),l=Xh(2),r=Xn(t,l,2),r!==null&&(Gh(l,r,t,e),Ni(r,2),on(r));break}}t=t.return}}function to(e,t,l){var r=e.pingCache;if(r===null){r=e.pingCache=new Oy;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)||(Zs=!0,o.add(l),e=Uy.bind(null,e,t,l),t.then(e,e))}function Uy(e,t,l){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Xe===e&&(Ce&l)===l&&($e===4||$e===3&&(Ce&62914560)===Ce&&300>yt()-Cr?(De&2)===0&&oi(e,0):Ks|=l,ui===Ce&&(ui=0)),on(e)}function Xd(e,t){t===0&&(t=Lc()),e=hl(e,t),e!==null&&(Ni(e,t),on(e))}function Hy(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Xd(e,l)}function qy(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),Xd(e,l)}function Yy(e,t){return Ml(e,t)}var Dr=null,fi=null,no=!1,Rr=!1,lo=!1,Wn=0;function on(e){e!==fi&&e.next===null&&(fi===null?Dr=fi=e:fi=fi.next=e),Rr=!0,no||(no=!0,Xy())}function sa(e,t){if(!lo&&Rr){lo=!0;do for(var l=!1,r=Dr;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var h=0;else{var y=r.suspendedLanes,z=r.pingedLanes;h=(1<<31-Ve(42|e)+1)-1,h&=o&~(y&~z),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,Zd(r,h))}else h=Ce,h=Ha(r,r===Xe?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(h&3)===0||Ci(r,h)||(l=!0,Zd(r,h));r=r.next}while(l);lo=!1}}function Vy(){Gd()}function Gd(){Rr=no=!1;var e=0;Wn!==0&&Py()&&(e=Wn);for(var t=yt(),l=null,r=Dr;r!==null;){var o=r.next,h=Qd(r,t);h===0?(r.next=null,l===null?Dr=o:l.next=o,o===null&&(fi=l)):(l=r,(e!==0||(h&3)!==0)&&(Rr=!0)),r=o}rt!==0&&rt!==5||sa(e),Wn!==0&&(Wn=0)}function Qd(e,t){for(var l=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var y=31-Ve(h),z=1<<y,T=o[y];T===-1?((z&l)===0||(z&r)!==0)&&(o[y]=pg(z,t)):T<=t&&(e.expiredLanes|=z),h&=~z}if(t=Xe,l=Ce,l=Ha(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,l===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ti(r),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ci(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(r!==null&&Ti(r),xu(l)){case 2:case 8:l=ee;break;case 32:l=pe;break;case 268435456:l=Re;break;default:l=pe}return r=Fd.bind(null,e),l=Ml(l,r),e.callbackPriority=t,e.callbackNode=l,t}return r!==null&&r!==null&&Ti(r),e.callbackPriority=2,e.callbackNode=null,2}function Fd(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Or()&&e.callbackNode!==l)return null;var r=Ce;return r=Ha(e,e===Xe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Cd(e,r,t),Qd(e,yt()),e.callbackNode!=null&&e.callbackNode===l?Fd.bind(null,e):null)}function Zd(e,t){if(Or())return null;Cd(e,t,!0)}function Xy(){tx(function(){(De&6)!==0?Ml(Q,Vy):Gd()})}function io(){if(Wn===0){var e=Il;e===0&&(e=La,La<<=1,(La&261888)===0&&(La=256)),Wn=e}return Wn}function Kd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xa(""+e)}function Jd(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 Gy(e,t,l,r,o){if(t==="submit"&&l&&l.stateNode===o){var h=Kd((o[zt]||null).action),y=r.submitter;y&&(t=(t=y[zt]||null)?Kd(t.formAction):y.getAttribute("formAction"),t!==null&&(h=t,y=null));var z=new Za("action","action",null,r,o);e.push({event:z,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Wn!==0){var T=y?Jd(o,y):new FormData(o);Es(l,{pending:!0,data:T,method:o.method,action:h},null,T)}}else typeof h=="function"&&(z.preventDefault(),T=y?Jd(o,y):new FormData(o),Es(l,{pending:!0,data:T,method:o.method,action:h},h,T))},currentTarget:o}]})}}for(var ao=0;ao<Yu.length;ao++){var ro=Yu[ao],Qy=ro.toLowerCase(),Fy=ro[0].toUpperCase()+ro.slice(1);tn(Qy,"on"+Fy)}tn(Tf,"onAnimationEnd"),tn(Cf,"onAnimationIteration"),tn(Nf,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(sy,"onTransitionRun"),tn(oy,"onTransitionStart"),tn(cy,"onTransitionCancel"),tn(Af,"onTransitionEnd"),Ll("onMouseEnter",["mouseout","mouseover"]),Ll("onMouseLeave",["mouseout","mouseover"]),Ll("onPointerEnter",["pointerout","pointerover"]),Ll("onPointerLeave",["pointerout","pointerover"]),sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sl("onBeforeInput",["compositionend","keypress","textInput","paste"]),sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oa="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(" "),Zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oa));function Id(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 y=r.length-1;0<=y;y--){var z=r[y],T=z.instance,D=z.currentTarget;if(z=z.listener,T!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=D;try{h(o)}catch(X){Ia(X)}o.currentTarget=null,h=T}else for(y=0;y<r.length;y++){if(z=r[y],T=z.instance,D=z.currentTarget,z=z.listener,T!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=D;try{h(o)}catch(X){Ia(X)}o.currentTarget=null,h=T}}}}function we(e,t){var l=t[bu];l===void 0&&(l=t[bu]=new Set);var r=e+"__bubble";l.has(r)||($d(t,e,2,!1),l.add(r))}function uo(e,t,l){var r=0;t&&(r|=4),$d(l,e,r,t)}var Lr="_reactListening"+Math.random().toString(36).slice(2);function so(e){if(!e[Lr]){e[Lr]=!0,Xc.forEach(function(l){l!=="selectionchange"&&(Zy.has(l)||uo(l,!1,e),uo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Lr]||(t[Lr]=!0,uo("selectionchange",!1,t))}}function $d(e,t,l,r){switch(Tm(t)){case 2:var o=Sx;break;case 8:o=zx;break;default:o=Eo}l=o.bind(null,t,l,e),o=void 0,!Nu||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 oo(e,t,l,r,o){var h=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var y=r.tag;if(y===3||y===4){var z=r.stateNode.containerInfo;if(z===o)break;if(y===4)for(y=r.return;y!==null;){var T=y.tag;if((T===3||T===4)&&y.stateNode.containerInfo===o)return;y=y.return}for(;z!==null;){if(y=Ol(z),y===null)return;if(T=y.tag,T===5||T===6||T===26||T===27){r=h=y;continue e}z=z.parentNode}}r=r.return}tf(function(){var D=h,X=Tu(l),Z=[];e:{var B=jf.get(e);if(B!==void 0){var V=Za,re=e;switch(e){case"keypress":if(Qa(l)===0)break e;case"keydown":case"keyup":V=qg;break;case"focusin":re="focus",V=_u;break;case"focusout":re="blur",V=_u;break;case"beforeblur":case"afterblur":V=_u;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":V=af;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=Ng;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=Xg;break;case Tf:case Cf:case Nf:V=Mg;break;case Af:V=Qg;break;case"scroll":case"scrollend":V=Tg;break;case"wheel":V=Zg;break;case"copy":case"cut":case"paste":V=Og;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=uf;break;case"toggle":case"beforetoggle":V=Jg}var me=(t&4)!==0,Ye=!me&&(e==="scroll"||e==="scrollend"),M=me?B!==null?B+"Capture":null:B;me=[];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=Mi(N,M),F!=null&&me.push(ca(N,F,O))),Ye)break;N=N.return}0<me.length&&(B=new V(B,re,null,l,X),Z.push({event:B,listeners:me}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",B&&l!==wu&&(re=l.relatedTarget||l.fromElement)&&(Ol(re)||re[_l]))break e;if((V||B)&&(B=X.window===X?X:(B=X.ownerDocument)?B.defaultView||B.parentWindow:window,V?(re=l.relatedTarget||l.toElement,V=D,re=re?Ol(re):null,re!==null&&(Ye=c(re),me=re.tag,re!==Ye||me!==5&&me!==27&&me!==6)&&(re=null)):(V=null,re=D),V!==re)){if(me=af,F="onMouseLeave",M="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(me=uf,F="onPointerLeave",M="onPointerEnter",N="pointer"),Ye=V==null?B:ji(V),O=re==null?B:ji(re),B=new me(F,N+"leave",V,l,X),B.target=Ye,B.relatedTarget=O,F=null,Ol(X)===D&&(me=new me(M,N+"enter",re,l,X),me.target=O,me.relatedTarget=Ye,F=me),Ye=F,V&&re)t:{for(me=Ky,M=V,N=re,O=0,F=M;F;F=me(F))O++;F=0;for(var fe=N;fe;fe=me(fe))F++;for(;0<O-F;)M=me(M),O--;for(;0<F-O;)N=me(N),F--;for(;O--;){if(M===N||N!==null&&M===N.alternate){me=M;break t}M=me(M),N=me(N)}me=null}else me=null;V!==null&&Wd(Z,B,V,me,!1),re!==null&&Ye!==null&&Wd(Z,Ye,re,me,!0)}}e:{if(B=D?ji(D):window,V=B.nodeName&&B.nodeName.toLowerCase(),V==="select"||V==="input"&&B.type==="file")var _e=pf;else if(df(B))if(gf)_e=ay;else{_e=ly;var oe=ny}else V=B.nodeName,!V||V.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?D&&Eu(D.elementType)&&(_e=pf):_e=iy;if(_e&&(_e=_e(e,D))){mf(Z,_e,l,X);break e}oe&&oe(e,B,D),e==="focusout"&&D&&B.type==="number"&&D.memoizedProps.value!=null&&ku(B,"number",B.value)}switch(oe=D?ji(D):window,e){case"focusin":(df(oe)||oe.contentEditable==="true")&&(Vl=oe,Uu=D,Hi=null);break;case"focusout":Hi=Uu=Vl=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,Ef(Z,l,X);break;case"selectionchange":if(uy)break;case"keydown":case"keyup":Ef(Z,l,X)}var ve;if(Du)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Yl?ff(e,l)&&(Ne="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ne="onCompositionStart");Ne&&(sf&&l.locale!=="ko"&&(Yl||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Yl&&(ve=nf()):(Ln=X,Au="value"in Ln?Ln.value:Ln.textContent,Yl=!0)),oe=Br(D,Ne),0<oe.length&&(Ne=new rf(Ne,e,null,l,X),Z.push({event:Ne,listeners:oe}),ve?Ne.data=ve:(ve=hf(l),ve!==null&&(Ne.data=ve)))),(ve=$g?Wg(e,l):Pg(e,l))&&(Ne=Br(D,"onBeforeInput"),0<Ne.length&&(oe=new rf("onBeforeInput","beforeinput",null,l,X),Z.push({event:oe,listeners:Ne}),oe.data=ve)),Gy(Z,e,D,l,X)}Id(Z,t)})}function ca(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Br(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=Mi(e,l),o!=null&&r.unshift(ca(e,o,h)),o=Mi(e,t),o!=null&&r.push(ca(e,o,h))),e.tag===3)return r;e=e.return}return[]}function Ky(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wd(e,t,l,r,o){for(var h=t._reactName,y=[];l!==null&&l!==r;){var z=l,T=z.alternate,D=z.stateNode;if(z=z.tag,T!==null&&T===r)break;z!==5&&z!==26&&z!==27||D===null||(T=D,o?(D=Mi(l,h),D!=null&&y.unshift(ca(l,D,T))):o||(D=Mi(l,h),D!=null&&y.push(ca(l,D,T)))),l=l.return}y.length!==0&&e.push({event:t,listeners:y})}var Jy=/\r\n?/g,Iy=/\u0000|\uFFFD/g;function Pd(e){return(typeof e=="string"?e:""+e).replace(Jy,`
|
|
49
|
+
`).replace(Iy,"")}function em(e,t){return t=Pd(t),Pd(e)===t}function qe(e,t,l,r,o,h){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ul(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ul(e,""+r);break;case"className":Ya(e,"class",r);break;case"tabIndex":Ya(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Ya(e,l,r);break;case"style":Pc(e,r,h);break;case"data":if(t!=="object"){Ya(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=Xa(""+r),e.setAttribute(l,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(l==="formAction"?(t!=="input"&&qe(e,t,"name",o.name,o,null),qe(e,t,"formEncType",o.formEncType,o,null),qe(e,t,"formMethod",o.formMethod,o,null),qe(e,t,"formTarget",o.formTarget,o,null)):(qe(e,t,"encType",o.encType,o,null),qe(e,t,"method",o.method,o,null),qe(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Xa(""+r),e.setAttribute(l,r);break;case"onClick":r!=null&&(e.onclick=gn);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("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=Xa(""+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":we("beforetoggle",e),we("toggle",e),qa(e,"popover",r);break;case"xlinkActuate":pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":pn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":pn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":pn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":pn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":qa(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Eg.get(l)||l,qa(e,l,r))}}function co(e,t,l,r,o,h){switch(l){case"style":Pc(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"?Ul(e,r):(typeof r=="number"||typeof r=="bigint")&&Ul(e,""+r);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("scrollend",e);break;case"onClick":r!=null&&(e.onclick=gn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gc.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[zt]||null,h=h!=null?h[l]:null,typeof h=="function"&&e.removeEventListener(t,h,o),typeof r=="function")){typeof h!="function"&&h!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,r,o);break e}l in e?e[l]=r:r===!0?e.setAttribute(l,""):qa(e,l,r)}}}function dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var r=!1,o=!1,h;for(h in l)if(l.hasOwnProperty(h)){var y=l[h];if(y!=null)switch(h){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:qe(e,t,h,y,l,null)}}o&&qe(e,t,"srcSet",l.srcSet,l,null),r&&qe(e,t,"src",l.src,l,null);return;case"input":we("invalid",e);var z=h=y=o=null,T=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":y=X;break;case"checked":T=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:qe(e,t,r,X,l,null)}}Jc(e,h,z,T,D,y,o,!1);return;case"select":we("invalid",e),r=y=h=null;for(o in l)if(l.hasOwnProperty(o)&&(z=l[o],z!=null))switch(o){case"value":h=z;break;case"defaultValue":y=z;break;case"multiple":r=z;default:qe(e,t,o,z,l,null)}t=h,l=y,e.multiple=!!r,t!=null?Bl(e,!!r,t,!1):l!=null&&Bl(e,!!r,l,!0);return;case"textarea":we("invalid",e),h=o=r=null;for(y in l)if(l.hasOwnProperty(y)&&(z=l[y],z!=null))switch(y){case"value":r=z;break;case"defaultValue":o=z;break;case"children":h=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(u(91));break;default:qe(e,t,y,z,l,null)}$c(e,r,o,h);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(r=l[T],r!=null))switch(T){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:qe(e,t,T,r,l,null)}return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(r=0;r<oa.length;r++)we(oa[r],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("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:qe(e,t,D,r,l,null)}return;default:if(Eu(t)){for(X in l)l.hasOwnProperty(X)&&(r=l[X],r!==void 0&&co(e,t,X,r,l,void 0));return}}for(z in l)l.hasOwnProperty(z)&&(r=l[z],r!=null&&qe(e,t,z,r,l,null))}function $y(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,y=null,z=null,T=null,D=null,X=null;for(V in l){var Z=l[V];if(l.hasOwnProperty(V)&&Z!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":T=Z;default:r.hasOwnProperty(V)||qe(e,t,V,null,r,Z)}}for(var B in r){var V=r[B];if(Z=l[B],r.hasOwnProperty(B)&&(V!=null||Z!=null))switch(B){case"type":h=V;break;case"name":o=V;break;case"checked":D=V;break;case"defaultChecked":X=V;break;case"value":y=V;break;case"defaultValue":z=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,t));break;default:V!==Z&&qe(e,t,B,V,r,Z)}}zu(e,y,z,T,D,X,h,o);return;case"select":V=y=z=B=null;for(h in l)if(T=l[h],l.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":V=T;default:r.hasOwnProperty(h)||qe(e,t,h,null,r,T)}for(o in r)if(h=r[o],T=l[o],r.hasOwnProperty(o)&&(h!=null||T!=null))switch(o){case"value":B=h;break;case"defaultValue":z=h;break;case"multiple":y=h;default:h!==T&&qe(e,t,o,h,r,T)}t=z,l=y,r=V,B!=null?Bl(e,!!l,B,!1):!!r!=!!l&&(t!=null?Bl(e,!!l,t,!0):Bl(e,!!l,l?[]:"",!1));return;case"textarea":V=B=null;for(z in l)if(o=l[z],l.hasOwnProperty(z)&&o!=null&&!r.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:qe(e,t,z,null,r,o)}for(y in r)if(o=r[y],h=l[y],r.hasOwnProperty(y)&&(o!=null||h!=null))switch(y){case"value":B=o;break;case"defaultValue":V=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==h&&qe(e,t,y,o,r,h)}Ic(e,B,V);return;case"option":for(var re in l)if(B=l[re],l.hasOwnProperty(re)&&B!=null&&!r.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:qe(e,t,re,null,r,B)}for(T in r)if(B=r[T],V=l[T],r.hasOwnProperty(T)&&B!==V&&(B!=null||V!=null))switch(T){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:qe(e,t,T,B,r,V)}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 me in l)B=l[me],l.hasOwnProperty(me)&&B!=null&&!r.hasOwnProperty(me)&&qe(e,t,me,null,r,B);for(D in r)if(B=r[D],V=l[D],r.hasOwnProperty(D)&&B!==V&&(B!=null||V!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:qe(e,t,D,B,r,V)}return;default:if(Eu(t)){for(var Ye in l)B=l[Ye],l.hasOwnProperty(Ye)&&B!==void 0&&!r.hasOwnProperty(Ye)&&co(e,t,Ye,void 0,r,B);for(X in r)B=r[X],V=l[X],!r.hasOwnProperty(X)||B===V||B===void 0&&V===void 0||co(e,t,X,B,r,V);return}}for(var M in l)B=l[M],l.hasOwnProperty(M)&&B!=null&&!r.hasOwnProperty(M)&&qe(e,t,M,null,r,B);for(Z in r)B=r[Z],V=l[Z],!r.hasOwnProperty(Z)||B===V||B==null&&V==null||qe(e,t,Z,B,r,V)}function tm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Wy(){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,y=o.initiatorType,z=o.duration;if(h&&z&&tm(y)){for(y=0,z=o.responseEnd,r+=1;r<l.length;r++){var T=l[r],D=T.startTime;if(D>z)break;var X=T.transferSize,Z=T.initiatorType;X&&tm(Z)&&(T=T.responseEnd,y+=X*(T<z?1:(z-D)/(T-D)))}if(--r,t+=8*(h+y)/(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 fo=null,ho=null;function Ur(e){return e.nodeType===9?e:e.ownerDocument}function nm(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 lm(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 mo(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 po=null;function Py(){var e=window.event;return e&&e.type==="popstate"?e===po?!1:(po=e,!0):(po=null,!1)}var im=typeof setTimeout=="function"?setTimeout:void 0,ex=typeof clearTimeout=="function"?clearTimeout:void 0,am=typeof Promise=="function"?Promise:void 0,tx=typeof queueMicrotask=="function"?queueMicrotask:typeof am<"u"?function(e){return am.resolve(null).then(e).catch(nx)}:im;function nx(e){setTimeout(function(){throw e})}function Pn(e){return e==="head"}function rm(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),pi(t);return}r--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")r++;else if(l==="html")fa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,fa(l);for(var h=l.firstChild;h;){var y=h.nextSibling,z=h.nodeName;h[Ai]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=y}}else l==="body"&&fa(e.ownerDocument.body);l=o}while(l);pi(t)}function um(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 go(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":go(l),vu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function lx(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[Ai])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=$t(e.nextSibling),e===null)break}return null}function ix(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=$t(e.nextSibling),e===null))return null;return e}function sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function yo(e){return e.data==="$?"||e.data==="$~"}function xo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ax(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 $t(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 bo=null;function om(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return $t(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function cm(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 fm(e,t,l){switch(t=Ur(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 fa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vu(e)}var Wt=new Map,hm=new Set;function Hr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _n=G.d;G.d={f:rx,r:ux,D:sx,C:ox,L:cx,m:fx,X:dx,S:hx,M:mx};function rx(){var e=_n.f(),t=jr();return e||t}function ux(e){var t=Dl(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):_n.r(e)}var hi=typeof document>"u"?null:document;function dm(e,t,l){var r=hi;if(r&&typeof t=="string"&&t){var o=Gt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),hm.has(o)||(hm.add(o),e={rel:e,crossOrigin:l,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),dt(t,"link",e),ut(t),r.head.appendChild(t)))}}function sx(e){_n.D(e),dm("dns-prefetch",e,null)}function ox(e,t){_n.C(e,t),dm("preconnect",e,t)}function cx(e,t,l){_n.L(e,t,l);var r=hi;if(r&&e&&t){var o='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Gt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Gt(l.imageSizes)+'"]')):o+='[href="'+Gt(e)+'"]';var h=o;switch(t){case"style":h=di(e);break;case"script":h=mi(e)}Wt.has(h)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Wt.set(h,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(ha(h))||t==="script"&&r.querySelector(da(h))||(t=r.createElement("link"),dt(t,"link",e),ut(t),r.head.appendChild(t)))}}function fx(e,t){_n.m(e,t);var l=hi;if(l&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Gt(r)+'"][href="'+Gt(e)+'"]',h=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=mi(e)}if(!Wt.has(h)&&(e=g({rel:"modulepreload",href:e},t),Wt.set(h,e),l.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(da(h)))return}r=l.createElement("link"),dt(r,"link",e),ut(r),l.head.appendChild(r)}}}function hx(e,t,l){_n.S(e,t,l);var r=hi;if(r&&e){var o=Rl(r).hoistableStyles,h=di(e);t=t||"default";var y=o.get(h);if(!y){var z={loading:0,preload:null};if(y=r.querySelector(ha(h)))z.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Wt.get(h))&&vo(e,l);var T=y=r.createElement("link");ut(T),dt(T,"link",e),T._p=new Promise(function(D,X){T.onload=D,T.onerror=X}),T.addEventListener("load",function(){z.loading|=1}),T.addEventListener("error",function(){z.loading|=2}),z.loading|=4,qr(y,t,r)}y={type:"stylesheet",instance:y,count:1,state:z},o.set(h,y)}}}function dx(e,t){_n.X(e,t);var l=hi;if(l&&e){var r=Rl(l).hoistableScripts,o=mi(e),h=r.get(o);h||(h=l.querySelector(da(o)),h||(e=g({src:e,async:!0},t),(t=Wt.get(o))&&So(e,t),h=l.createElement("script"),ut(h),dt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function mx(e,t){_n.M(e,t);var l=hi;if(l&&e){var r=Rl(l).hoistableScripts,o=mi(e),h=r.get(o);h||(h=l.querySelector(da(o)),h||(e=g({src:e,async:!0,type:"module"},t),(t=Wt.get(o))&&So(e,t),h=l.createElement("script"),ut(h),dt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function mm(e,t,l,r){var o=(o=se.current)?Hr(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=di(l.href),l=Rl(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=di(l.href);var h=Rl(o).hoistableStyles,y=h.get(e);if(y||(o=o.ownerDocument||o,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,y),(h=o.querySelector(ha(e)))&&!h._p&&(y.instance=h,y.state.loading=5),Wt.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},Wt.set(e,l),h||px(o,e,l,y.state))),t&&r===null)throw Error(u(528,""));return y}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=mi(l),l=Rl(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 di(e){return'href="'+Gt(e)+'"'}function ha(e){return'link[rel="stylesheet"]['+e+"]"}function pm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function px(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}),dt(t,"link",l),ut(t),e.head.appendChild(t))}function mi(e){return'[src="'+Gt(e)+'"]'}function da(e){return"script[async]"+e}function gm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Gt(l.href)+'"]');if(r)return t.instance=r,ut(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"),ut(r),dt(r,"style",o),qr(r,l.precedence,e),t.instance=r;case"stylesheet":o=di(l.href);var h=e.querySelector(ha(o));if(h)return t.state.loading|=4,t.instance=h,ut(h),h;r=pm(l),(o=Wt.get(o))&&vo(r,o),h=(e.ownerDocument||e).createElement("link"),ut(h);var y=h;return y._p=new Promise(function(z,T){y.onload=z,y.onerror=T}),dt(h,"link",r),t.state.loading|=4,qr(h,l.precedence,e),t.instance=h;case"script":return h=mi(l.src),(o=e.querySelector(da(h)))?(t.instance=o,ut(o),o):(r=l,(o=Wt.get(h))&&(r=g({},l),So(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ut(o),dt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,qr(r,l.precedence,e));return t.instance}function qr(e,t,l){for(var r=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,h=o,y=0;y<r.length;y++){var z=r[y];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 vo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function So(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yr=null;function ym(e,t,l){if(Yr===null){var r=new Map,o=Yr=new Map;o.set(l,r)}else o=Yr,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[Ai]||h[ot]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var y=h.getAttribute(t)||"";y=e+y;var z=r.get(y);z?z.push(h):r.set(y,[h])}}return r}function xm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function gx(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 bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yx(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=di(r.href),h=t.querySelector(ha(o));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=h,ut(h);return}h=t.ownerDocument||t,r=pm(r),(o=Wt.get(o))&&vo(r,o),h=h.createElement("link"),ut(h);var y=h;y._p=new Promise(function(z,T){y.onload=z,y.onerror=T}),dt(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=Vr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var zo=0;function xx(e,t){return e.stylesheets&&e.count===0&&Gr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var r=setTimeout(function(){if(e.stylesheets&&Gr(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&zo===0&&(zo=62500*Wy());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gr(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>zo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Vr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xr=null;function Gr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xr=new Map,t.forEach(bx,e),Xr=null,Vr.call(e))}function bx(e,t){if(!(t.state.loading&4)){var l=Xr.get(e);if(l)var r=l.get(null);else{l=new Map,Xr.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<o.length;h++){var y=o[h];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(l.set(y.dataset.precedence,y),r=y)}r&&l.set(null,r)}o=t.instance,y=o.getAttribute("data-precedence"),h=l.get(y)||r,h===r&&l.set(null,o),l.set(y,o),this.count++,r=Vr.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 ma={$$typeof:U,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function vx(e,t,l,r,o,h,y,z,T){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gu(0),this.hiddenUpdates=gu(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=h,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function vm(e,t,l,r,o,h,y,z,T,D,X,Z){return e=new vx(e,t,l,y,T,D,X,Z,z),t=1,h===!0&&(t|=24),h=Dt(3,null,null,t),e.current=h,h.stateNode=e,t=es(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:r,isDehydrated:l,cache:t},is(h),e}function Sm(e){return e?(e=Ql,e):Ql}function zm(e,t,l,r,o,h){o=Sm(o),r.context===null?r.context=o:r.pendingContext=o,r=Vn(t),r.payload={element:l},h=h===void 0?null:h,h!==null&&(r.callback=h),l=Xn(e,r,t),l!==null&&(Nt(l,e,t),Fi(l,e,t))}function km(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ko(e,t){km(e,t),(e=e.alternate)&&km(e,t)}function Em(e){if(e.tag===13||e.tag===31){var t=hl(e,67108864);t!==null&&Nt(t,e,67108864),ko(e,67108864)}}function wm(e){if(e.tag===13||e.tag===31){var t=Ht();t=yu(t);var l=hl(e,t);l!==null&&Nt(l,e,t),ko(e,t)}}var Qr=!0;function Sx(e,t,l,r){var o=j.T;j.T=null;var h=G.p;try{G.p=2,Eo(e,t,l,r)}finally{G.p=h,j.T=o}}function zx(e,t,l,r){var o=j.T;j.T=null;var h=G.p;try{G.p=8,Eo(e,t,l,r)}finally{G.p=h,j.T=o}}function Eo(e,t,l,r){if(Qr){var o=wo(r);if(o===null)oo(e,t,r,Fr,l),Cm(e,r);else if(Ex(o,e,t,l,r))r.stopPropagation();else if(Cm(e,r),t&4&&-1<kx.indexOf(e)){for(;o!==null;){var h=Dl(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var y=ul(h.pendingLanes);if(y!==0){var z=h;for(z.pendingLanes|=2,z.entangledLanes|=2;y;){var T=1<<31-Ve(y);z.entanglements[1]|=T,y&=~T}on(h),(De&6)===0&&(Nr=yt()+500,sa(0))}}break;case 31:case 13:z=hl(h,2),z!==null&&Nt(z,h,2),jr(),ko(h,2)}if(h=wo(r),h===null&&oo(e,t,r,Fr,l),h===o)break;o=h}o!==null&&r.stopPropagation()}else oo(e,t,r,null,l)}}function wo(e){return e=Tu(e),To(e)}var Fr=null;function To(e){if(Fr=null,e=Ol(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 Fr=e,null}function Tm(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(pu()){case Q:return 2;case ee:return 8;case pe:case ke:return 32;case Re:return 268435456;default:return 32}default:return 32}}var Co=!1,el=null,tl=null,nl=null,pa=new Map,ga=new Map,ll=[],kx="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 Cm(e,t){switch(e){case"focusin":case"focusout":el=null;break;case"dragenter":case"dragleave":tl=null;break;case"mouseover":case"mouseout":nl=null;break;case"pointerover":case"pointerout":pa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ga.delete(t.pointerId)}}function ya(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=Dl(t),t!==null&&Em(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Ex(e,t,l,r,o){switch(t){case"focusin":return el=ya(el,e,t,l,r,o),!0;case"dragenter":return tl=ya(tl,e,t,l,r,o),!0;case"mouseover":return nl=ya(nl,e,t,l,r,o),!0;case"pointerover":var h=o.pointerId;return pa.set(h,ya(pa.get(h)||null,e,t,l,r,o)),!0;case"gotpointercapture":return h=o.pointerId,ga.set(h,ya(ga.get(h)||null,e,t,l,r,o)),!0}return!1}function Nm(e){var t=Ol(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,Yc(e.priority,function(){wm(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,Yc(e.priority,function(){wm(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 Zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=wo(e.nativeEvent);if(l===null){l=e.nativeEvent;var r=new l.constructor(l.type,l);wu=r,l.target.dispatchEvent(r),wu=null}else return t=Dl(l),t!==null&&Em(t),e.blockedOn=l,!1;t.shift()}return!0}function Am(e,t,l){Zr(e)&&l.delete(t)}function wx(){Co=!1,el!==null&&Zr(el)&&(el=null),tl!==null&&Zr(tl)&&(tl=null),nl!==null&&Zr(nl)&&(nl=null),pa.forEach(Am),ga.forEach(Am)}function Kr(e,t){e.blockedOn===t&&(e.blockedOn=null,Co||(Co=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,wx)))}var Jr=null;function jm(e){Jr!==e&&(Jr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Jr===e&&(Jr=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(To(r||l)===null)continue;break}var h=Dl(l);h!==null&&(e.splice(t,3),t-=3,Es(h,{pending:!0,data:o,method:l.method,action:r},r,o))}}))}function pi(e){function t(T){return Kr(T,e)}el!==null&&Kr(el,e),tl!==null&&Kr(tl,e),nl!==null&&Kr(nl,e),pa.forEach(t),ga.forEach(t);for(var l=0;l<ll.length;l++){var r=ll[l];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ll.length&&(l=ll[0],l.blockedOn===null);)Nm(l),l.blockedOn===null&&ll.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],y=o[zt]||null;if(typeof h=="function")y||jm(l);else if(y){var z=null;if(h&&h.hasAttribute("formAction")){if(o=h,y=h[zt]||null)z=y.formAction;else if(To(o)!==null)continue}else z=y.action;typeof z=="function"?l[r+1]=z:(l.splice(r,3),r-=3),jm(l)}}}function Mm(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(y){return o=y})},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 No(e){this._internalRoot=e}Ir.prototype.render=No.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,r=Ht();zm(l,r,e,t,null,null)},Ir.prototype.unmount=No.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zm(e.current,2,null,e,null,null),jr(),t[_l]=null}};function Ir(e){this._internalRoot=e}Ir.prototype.unstable_scheduleHydration=function(e){if(e){var t=qc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ll.length&&t!==0&&t<ll[l].priority;l++);ll.splice(l,0,e),l===0&&Nm(e)}};var _m=a.version;if(_m!=="19.2.4")throw Error(u(527,_m,"19.2.4"));G.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?x(e):null,e=e===null?null:e.stateNode,e};var Tx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$r.isDisabled&&$r.supportsFiber)try{xt=$r.inject(Tx),at=$r}catch{}}return ba.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,r="",o=Hh,h=qh,y=Yh;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&&(y=t.onRecoverableError)),t=vm(e,1,!1,null,null,l,r,null,o,h,y,Mm),e[_l]=t.current,so(e),new No(t)},ba.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var r=!1,o="",h=Hh,y=qh,z=Yh,T=null;return l!=null&&(l.unstable_strictMode===!0&&(r=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(y=l.onCaughtError),l.onRecoverableError!==void 0&&(z=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=vm(e,1,!0,t,l??null,r,o,T,h,y,z,Mm),t.context=Sm(null),l=t.current,r=Ht(),r=yu(r),o=Vn(r),o.callback=null,Xn(l,o,r),l=r,t.current.lanes=l,Ni(t,l),on(t),e[_l]=t.current,so(e),new Ir(t)},ba.version="19.2.4",ba}var Vm;function Rx(){if(Vm)return Mo.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(),Mo.exports=Dx(),Mo.exports}var Lx=Rx();/**
|
|
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 Bx=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ux=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),Xm=n=>{const a=Ux(n);return a.charAt(0).toUpperCase()+a.slice(1)},Qp=(...n)=>n.filter((a,i,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===i).join(" ").trim(),Hx=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 qx={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 Yx=ne.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...d},p)=>ne.createElement("svg",{ref:p,...qx,width:a,height:a,stroke:n,strokeWidth:u?Number(i)*24/Number(a):i,className:Qp("lucide",s),...!c&&!Hx(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,x])=>ne.createElement(m,x)),...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 je=(n,a)=>{const i=ne.forwardRef(({className:u,...s},c)=>ne.createElement(Yx,{ref:c,iconNode:a,className:Qp(`lucide-${Bx(Xm(n))}`,`lucide-${n}`,u),...s}));return i.displayName=Xm(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 Vx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Xx=je("arrow-right",Vx);/**
|
|
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 Gx=[["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"}]],Fp=je("bot",Gx);/**
|
|
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 Qx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Aa=je("check",Qx);/**
|
|
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 Fx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Zp=je("circle-check",Fx);/**
|
|
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 Zx=[["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"}]],Kx=je("circle-question-mark",Zx);/**
|
|
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 Jx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ix=je("circle",Jx);/**
|
|
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 $x=[["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"}]],mc=je("copy",$x);/**
|
|
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 Wx=[["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"}]],Px=je("database",Wx);/**
|
|
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 e1=[["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"}]],pc=je("download",e1);/**
|
|
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 t1=[["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"}]],Kp=je("file-code",t1);/**
|
|
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 n1=[["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"}]],l1=je("file-pen",n1);/**
|
|
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 i1=[["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"}]],Jp=je("file-plus-corner",i1);/**
|
|
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 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 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ip=je("file-text",a1);/**
|
|
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 r1=[["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"}]],gc=je("folder-open",r1);/**
|
|
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 u1=[["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"}]],s1=je("git-branch",u1);/**
|
|
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 o1=[["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"}]],c1=je("globe",o1);/**
|
|
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 f1=[["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"}]],h1=je("hard-drive",f1);/**
|
|
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 d1=[["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"}]],m1=je("lightbulb",d1);/**
|
|
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 p1=[["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"}]],$p=je("list-todo",p1);/**
|
|
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 g1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Wp=je("loader-circle",g1);/**
|
|
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 y1=[["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"}]],x1=je("message-square",y1);/**
|
|
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 b1=[["path",{d:"M5 12h14",key:"1ays0h"}]],v1=je("minus",b1);/**
|
|
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 S1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],z1=je("panel-left",S1);/**
|
|
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 k1=[["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"}]],E1=je("pause",k1);/**
|
|
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 w1=[["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"}]],T1=je("pencil",w1);/**
|
|
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 C1=[["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"}]],Pp=je("play",C1);/**
|
|
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 N1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],A1=je("plus",N1);/**
|
|
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 j1=[["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"}]],M1=je("refresh-cw",j1);/**
|
|
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 _1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],lu=je("search",_1);/**
|
|
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 O1=[["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"}]],ec=je("square-check-big",O1);/**
|
|
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 D1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],e0=je("square",D1);/**
|
|
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 R1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],t0=je("terminal",R1);/**
|
|
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 L1=[["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"}]],B1=je("triangle-alert",L1);/**
|
|
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 U1=[["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"}]],H1=je("wrench",U1);/**
|
|
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 q1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yc=je("x",q1);function n0(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 Y1=[/<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 jt(n){if(!n)return"";let a=n;for(const i of Y1)a=a.replace(i,"");return a.trim()}var V1=Gp();function gi(n,a,i){let u=i.initialDeps??[],s,c=!0;function f(){var d,p,m;let x;i.key&&((d=i.debug)!=null&&d.call(i))&&(x=Date.now());const g=n();if(!(g.length!==u.length||g.some((E,_)=>u[_]!==E)))return s;u=g;let S;if(i.key&&((p=i.debug)!=null&&p.call(i))&&(S=Date.now()),s=a(...g),i.key&&((m=i.debug)!=null&&m.call(i))){const E=Math.round((Date.now()-x)*100)/100,_=Math.round((Date.now()-S)*100)/100,R=_/16,A=(Y,U)=>{for(Y=String(Y);Y.length<U;)Y=" "+Y;return Y};console.info(`%c⏱ ${A(_,5)} /${A(E,5)} ms`,`
|
|
245
|
+
font-size: .6rem;
|
|
246
|
+
font-weight: bold;
|
|
247
|
+
color: hsl(${Math.max(0,Math.min(120-120*R,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 Gm(n,a){if(n===void 0)throw new Error("Unexpected undefined");return n}const X1=(n,a)=>Math.abs(n-a)<1.01,G1=(n,a,i)=>{let u;return function(...s){n.clearTimeout(u),u=n.setTimeout(()=>a.apply(this,s),i)}},Qm=n=>{const{offsetWidth:a,offsetHeight:i}=n;return{width:a,height:i}},Q1=n=>n,F1=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},Z1=(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(Qm(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(Qm(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},Fm={passive:!0},Zm=typeof window>"u"?!0:"onscrollend"in window,K1=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;let s=0;const c=n.options.useScrollendEvent&&Zm?()=>{}:G1(u,()=>{a(s,!1)},n.options.isScrollingResetDelay),f=x=>()=>{const{horizontal:g,isRtl:v}=n.options;s=g?i.scrollLeft*(v&&-1||1):i.scrollTop,c(),a(s,x)},d=f(!0),p=f(!1);i.addEventListener("scroll",d,Fm);const m=n.options.useScrollendEvent&&Zm;return m&&i.addEventListener("scrollend",p,Fm),()=>{i.removeEventListener("scroll",d),m&&i.removeEventListener("scrollend",p)}},J1=(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"]},I1=(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 $1{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:Q1,rangeExtractor:F1,onChange:()=>{},measureElement:J1,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=gi(()=>(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=gi(()=>[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=gi(()=>[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 v of this.laneAssignments.keys())v>=i&&this.laneAssignments.delete(v);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(v=>{this.itemSizeCache.set(v.key,v.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 x=this.measurementsCache.slice(0,m),g=new Array(d).fill(void 0);for(let v=0;v<m;v++){const S=x[v];S&&(g[S.lane]=v)}for(let v=m;v<i;v++){const S=c(v),E=this.laneAssignments.get(v);let _,R;if(E!==void 0&&this.options.lanes>1){_=E;const I=g[_],K=I!==void 0?x[I]:void 0;R=K?K.end+this.options.gap:u+s}else{const I=this.options.lanes===1?x[v-1]:this.getFurthestMeasurement(x,v);R=I?I.end+this.options.gap:u+s,_=I?I.lane:v%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(v,_)}const A=p.get(S),Y=typeof A=="number"?A:this.options.estimateSize(v),U=R+Y;x[v]={index:v,start:R,size:Y,end:U,key:S,lane:_},g[_]=v}return this.measurementsCache=x,x},{key:!1,debug:()=>this.options.debug}),this.calculateRange=gi(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,s,c)=>this.range=i.length>0&&u>0?W1({measurements:i,outerSize:u,scrollOffset:s,lanes:c}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=gi(()=>{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=gi(()=>[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 Gm(u[l0(0,u.length-1,s=>Gm(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 x=this.getOffsetForIndex(i,m);if(!x){console.warn("Failed to get offset for index:",i);return}const[g,v]=x;this._scrollToOffset(g,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const S=()=>{if(this.currentScrollToIndex!==i)return;const E=this.getScrollOffset(),_=this.getOffsetForIndex(i,v);if(!_){console.warn("Failed to get offset for index:",i);return}X1(_[0],E)||p(v)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(S):S()})},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 l0=(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 W1({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=l0(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(x=>x<i+a);){const x=n[d];p[x.lane]=x.end,d++}const m=Array(u).fill(i+a);for(;f>=0&&m.some(x=>x>=i);){const x=n[f];m[x.lane]=x.start,f--}f=Math.max(0,f-f%u),d=Math.min(s,d+(u-1-d%u))}return{startIndex:f,endIndex:d}}const Km=typeof document<"u"?ne.useLayoutEffect:ne.useEffect;function P1({useFlushSync:n=!0,...a}){const i=ne.useReducer(()=>({}),{})[1],u={...a,onChange:(c,f)=>{var d;n&&f?V1.flushSync(i):i(),(d=a.onChange)==null||d.call(a,c,f)}},[s]=ne.useState(()=>new $1(u));return s.setOptions(u),Km(()=>s._didMount(),[]),Km(()=>s._willUpdate()),s}function eb(n){return P1({observeElementRect:Z1,observeElementOffset:K1,scrollToFn:I1,...n})}const tb=ne.memo(function(a){const{sessions:i,selectedSession:u,onSelectSession:s,loading:c,selectedProject:f,batchMode:d,selectedSessions:p,onToggleBatchMode:m,onToggleSessionSelection:x,onSelectAll:g,onDeselectAll:v,onBatchExport:S}=a,[E,_]=ne.useState(""),[R,A]=ne.useState(!1),[Y,U]=ne.useState({mode:"literal",caseSensitive:!1,wordRegexp:!1,maxMatchesPerFile:200,maxSessions:500,timeoutMs:8e3}),[I,K]=ne.useState(!1),[H,$]=ne.useState(null),[ue,ce]=ne.useState(new Map),q=ne.useRef(null);ne.useEffect(()=>{if(!R||!E.trim()){K(!1),$(null),ce(new Map);return}const j=new AbortController,G=setTimeout(()=>{K(!0),$(null),fetch("/api/search",{method:"POST",headers:{"Content-Type":"application/json"},signal:j.signal,body:JSON.stringify({query:E,options:Y,project:f??null})}).then(async ie=>{const ye=ie.headers.get("x-claude-run-rg-command");ye&&console.log("[claude-run]",ye);const w=await ie.json();if(!ie.ok)throw new Error(w.error||"Search failed");const C=new Map;for(const L of w.matches)C.set(L.sessionId,L.matchCount);ce(C)}).catch(ie=>{(ie==null?void 0:ie.name)!=="AbortError"&&(ce(new Map),$(ie instanceof Error?ie.message:"Search failed"))}).finally(()=>{K(!1)})},250);return()=>{j.abort(),clearTimeout(G)}},[R,E,Y,f]);const te=ne.useMemo(()=>{if(!E.trim())return i;if(R)return I||H?[]:ue.size===0?[]:i.filter(G=>ue.has(G.id));const j=E.toLowerCase();return i.filter(G=>G.display.toLowerCase().includes(j)||G.projectName.toLowerCase().includes(j))},[i,E,R,I,H,ue]),le=eb({count:te.length,getScrollElement:()=>q.current,estimateSize:()=>76,overscan:10,measureElement:j=>j.getBoundingClientRect().height}),ge=ne.useCallback((j,G)=>{d?(G.preventDefault(),x(j.id)):s(j.id)},[d,x,s]),ae=p.size,W=ae===te.length&&te.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:E,onChange:j=>_(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:R,onChange:j=>A(j.target.checked),className:"accent-cyan-500",title:"Full text search (ripgrep)"}),"Full text"]}),E&&b.jsx("button",{onClick:()=>_(""),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"})})})]}),R&&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:Y.mode,onChange:j=>U(G=>({...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:Y.caseSensitive,onChange:j=>U(G=>({...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:Y.wordRegexp,onChange:j=>U(G=>({...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:Y.maxMatchesPerFile??200,onChange:j=>U(G=>({...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"})]}),I&&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:m,className:`flex items-center gap-1.5 px-2 py-1 text-xs rounded transition-colors ${d?"bg-cyan-600/20 text-cyan-400 border border-cyan-600/40":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800"}`,title:d?"Exit batch mode":"Enter batch mode",children:d?b.jsxs(b.Fragment,{children:[b.jsx(yc,{className:"w-3 h-3"}),"Exit"]}):b.jsxs(b.Fragment,{children:[b.jsx(ec,{className:"w-3 h-3"}),"Select"]})}),d&&b.jsxs(b.Fragment,{children:[b.jsx("button",{onClick:W?v:g,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"}),ae>0&&b.jsxs("button",{onClick:S,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(pc,{className:"w-3 h-3"}),"Export (",ae,")"]})]})]}),b.jsx("div",{ref:q,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"})]})}):te.length===0?b.jsx("p",{className:"py-8 text-center text-xs text-zinc-600",children:R&&E&&H?H:R&&E&&I?"Searching…":E?R?"No matches in conversation text":"No sessions match":"No sessions found"}):b.jsx("div",{style:{height:`${le.getTotalSize()}px`,width:"100%",position:"relative"},children:le.getVirtualItems().map(j=>{const G=te[j.index],ie=p.has(G.id);return b.jsx("button",{"data-index":j.index,ref:le.measureElement,onClick:ye=>ge(G,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 ${d&&ie||u===G.id&&!d?"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:[d&&b.jsx("div",{className:"shrink-0",children:ie?b.jsx(ec,{className:"w-4 h-4 text-cyan-400"}):b.jsx(e0,{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:G.projectName}),b.jsxs("div",{className:"flex items-center gap-2",children:[R&&E.trim()&&ue.has(G.id)&&b.jsx("span",{className:"text-[10px] text-cyan-400",children:ue.get(G.id)}),b.jsx("span",{className:"text-[10px] text-zinc-600",children:n0(G.timestamp)})]})]}),b.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 wrap-break-word",children:G.display})]})]})},G.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:d&&ae>0?`${ae} of ${i.length} selected`:`${i.length} session${i.length!==1?"s":""}`})})]})});function nb(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const lb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ib=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ab={};function Jm(n,a){return(ab.jsx?ib:lb).test(n)}const rb=/[ \t\n\f\r]/g;function ub(n){return typeof n=="object"?n.type==="text"?Im(n.value):!1:Im(n)}function Im(n){return n.replace(rb,"")===""}class ja{constructor(a,i,u){this.normal=i,this.property=a,u&&(this.space=u)}}ja.prototype.normal={};ja.prototype.property={};ja.prototype.space=void 0;function i0(n,a){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new ja(i,u,a)}function tc(n){return n.toLowerCase()}class Mt{constructor(a,i){this.attribute=i,this.property=a}}Mt.prototype.attribute="";Mt.prototype.booleanish=!1;Mt.prototype.boolean=!1;Mt.prototype.commaOrSpaceSeparated=!1;Mt.prototype.commaSeparated=!1;Mt.prototype.defined=!1;Mt.prototype.mustUseProperty=!1;Mt.prototype.number=!1;Mt.prototype.overloadedBoolean=!1;Mt.prototype.property="";Mt.prototype.spaceSeparated=!1;Mt.prototype.space=void 0;let sb=0;const Se=Cl(),it=Cl(),nc=Cl(),J=Cl(),Qe=Cl(),vi=Cl(),qt=Cl();function Cl(){return 2**++sb}const lc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:it,commaOrSpaceSeparated:qt,commaSeparated:vi,number:J,overloadedBoolean:nc,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),Ro=Object.keys(lc);class xc extends Mt{constructor(a,i,u,s){let c=-1;if(super(a,i),$m(this,"space",s),typeof u=="number")for(;++c<Ro.length;){const f=Ro[c];$m(this,Ro[c],(u&lc[f])===lc[f])}}}xc.prototype.defined=!0;function $m(n,a,i){i&&(n[a]=i)}function zi(n){const a={},i={};for(const[u,s]of Object.entries(n.properties)){const c=new xc(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,i[tc(u)]=u,i[tc(c.attribute)]=u}return new ja(a,i,n.space)}const a0=zi({properties:{ariaActiveDescendant:null,ariaAtomic:it,ariaAutoComplete:null,ariaBusy:it,ariaChecked:it,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:it,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:it,ariaFlowTo:Qe,ariaGrabbed:it,ariaHasPopup:null,ariaHidden:it,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:J,ariaLive:null,ariaModal:it,ariaMultiLine:it,ariaMultiSelectable:it,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:it,ariaReadOnly:it,ariaRelevant:null,ariaRequired:it,ariaRoleDescription:Qe,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:it,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function r0(n,a){return a in n?n[a]:a}function u0(n,a){return r0(n,a.toLowerCase())}const ob=zi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vi,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:Qe,autoFocus:Se,autoPlay:Se,blocking:Qe,capture:null,charSet:null,checked:Se,cite:null,className:Qe,cols:J,colSpan:null,content:null,contentEditable:it,controls:Se,controlsList:Qe,coords:J|vi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:nc,draggable:it,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:Qe,height:J,hidden:nc,high:J,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:Se,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,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:Se,optimum:J,pattern:null,ping:Qe,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:Qe,required:Se,reversed:Se,rows:J,rowSpan:J,sandbox:Qe,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:it,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:it,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:it,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:u0}),cb=zi({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:qt,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Qe,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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:vi,g2:vi,glyphName:vi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,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:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qt,rev:qt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qt,requiredFeatures:qt,requiredFonts:qt,requiredFormats:qt,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qt,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:r0}),s0=zi({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()}}),o0=zi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:u0}),c0=zi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),fb={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"},hb=/[A-Z]/g,Wm=/-[a-z]/g,db=/^data[-\w.:]+$/i;function mb(n,a){const i=tc(a);let u=a,s=Mt;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&db.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(Wm,gb);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!Wm.test(c)){let f=c.replace(hb,pb);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=xc}return new s(u,a)}function pb(n){return"-"+n.toLowerCase()}function gb(n){return n.charAt(1).toUpperCase()}const yb=i0([a0,ob,s0,o0,c0],"html"),bc=i0([a0,cb,s0,o0,c0],"svg");function xb(n){return n.join(" ").trim()}var yi={},Lo,Pm;function bb(){if(Pm)return Lo;Pm=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="/",x="*",g="",v="comment",S="declaration";function E(R,A){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];A=A||{};var Y=1,U=1;function I(ae){var W=ae.match(a);W&&(Y+=W.length);var j=ae.lastIndexOf(p);U=~j?ae.length-j:U+ae.length}function K(){var ae={line:Y,column:U};return function(W){return W.position=new H(ae),ce(),W}}function H(ae){this.start=ae,this.end={line:Y,column:U},this.source=A.source}H.prototype.content=R;function $(ae){var W=new Error(A.source+":"+Y+":"+U+": "+ae);if(W.reason=ae,W.filename=A.source,W.line=Y,W.column=U,W.source=R,!A.silent)throw W}function ue(ae){var W=ae.exec(R);if(W){var j=W[0];return I(j),R=R.slice(j.length),W}}function ce(){ue(i)}function q(ae){var W;for(ae=ae||[];W=te();)W!==!1&&ae.push(W);return ae}function te(){var ae=K();if(!(m!=R.charAt(0)||x!=R.charAt(1))){for(var W=2;g!=R.charAt(W)&&(x!=R.charAt(W)||m!=R.charAt(W+1));)++W;if(W+=2,g===R.charAt(W-1))return $("End of comment missing");var j=R.slice(2,W-2);return U+=2,I(j),R=R.slice(W),U+=2,ae({type:v,comment:j})}}function le(){var ae=K(),W=ue(u);if(W){if(te(),!ue(s))return $("property missing ':'");var j=ue(c),G=ae({type:S,property:_(W[0].replace(n,g)),value:j?_(j[0].replace(n,g)):g});return ue(f),G}}function ge(){var ae=[];q(ae);for(var W;W=le();)W!==!1&&(ae.push(W),q(ae));return ae}return ce(),ge()}function _(R){return R?R.replace(d,g):g}return Lo=E,Lo}var ep;function vb(){if(ep)return yi;ep=1;var n=yi&&yi.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=i;const a=n(bb());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:x}=p;d?s(m,x,p):x&&(c=c||{},c[m]=x)}),c}return yi}var va={},tp;function Sb(){if(tp)return va;tp=1,Object.defineProperty(va,"__esModule",{value:!0}),va.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,x){return x.toUpperCase()},d=function(m,x){return"".concat(x,"-")},p=function(m,x){return x===void 0&&(x={}),c(m)?m:(m=m.toLowerCase(),x.reactCompat?m=m.replace(s,d):m=m.replace(u,d),m.replace(a,f))};return va.camelCase=p,va}var Sa,np;function zb(){if(np)return Sa;np=1;var n=Sa&&Sa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(vb()),i=Sb();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,Sa=u,Sa}var kb=zb();const Eb=Xp(kb),f0=h0("end"),vc=h0("start");function h0(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 wb(n){const a=vc(n),i=f0(n);if(a&&i)return{start:a,end:i}}function Ea(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?lp(n.position):"start"in n||"end"in n?lp(n):"line"in n||"column"in n?ic(n):""}function ic(n){return ip(n&&n.line)+":"+ip(n&&n.column)}function lp(n){return ic(n&&n.start)+"-"+ic(n&&n.end)}function ip(n){return n&&typeof n=="number"?n:1}class gt 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=Ea(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}}gt.prototype.file="";gt.prototype.name="";gt.prototype.reason="";gt.prototype.message="";gt.prototype.stack="";gt.prototype.column=void 0;gt.prototype.line=void 0;gt.prototype.ancestors=void 0;gt.prototype.cause=void 0;gt.prototype.fatal=void 0;gt.prototype.place=void 0;gt.prototype.ruleId=void 0;gt.prototype.source=void 0;const Sc={}.hasOwnProperty,Tb=new Map,Cb=/[A-Z]/g,Nb=new Set(["table","tbody","thead","tfoot","tr"]),Ab=new Set(["td","th"]),d0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jb(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=Ub(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=Bb(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"?bc:yb,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=m0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function m0(n,a,i){if(a.type==="element")return Mb(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return _b(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Db(n,a,i);if(a.type==="mdxjsEsm")return Ob(n,a);if(a.type==="root")return Rb(n,a,i);if(a.type==="text")return Lb(n,a)}function Mb(n,a,i){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=bc,n.schema=s),n.ancestors.push(a);const c=g0(n,a.tagName,!1),f=Hb(n,a);let d=kc(n,a);return Nb.has(a.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!ub(p):!0})),p0(n,f,c,a),zc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function _b(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)}Ca(n,a.position)}function Ob(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Ca(n,a.position)}function Db(n,a,i){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=bc,n.schema=s),n.ancestors.push(a);const c=a.name===null?n.Fragment:g0(n,a.name,!0),f=qb(n,a),d=kc(n,a);return p0(n,f,c,a),zc(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Rb(n,a,i){const u={};return zc(u,kc(n,a)),n.create(a,n.Fragment,u,i)}function Lb(n,a){return a.value}function p0(n,a,i,u){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(a.node=u)}function zc(n,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(n.children=i)}}function Bb(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 Ub(n,a){return i;function i(u,s,c,f){const d=Array.isArray(c.children),p=vc(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 Hb(n,a){const i={};let u,s;for(s in a.properties)if(s!=="children"&&Sc.call(a.properties,s)){const c=Yb(n,s,a.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Ab.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 qb(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 Ca(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 Ca(n,a.position);else c=u.value===null?!0:u.value;i[s]=c}return i}function kc(n,a){const i=[];let u=-1;const s=n.passKeys?new Map:Tb;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=m0(n,c,f);d!==void 0&&i.push(d)}return i}function Yb(n,a,i){const u=mb(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?nb(i):xb(i)),u.property==="style"){let s=typeof i=="object"?i:Vb(n,String(i));return n.stylePropertyNameCase==="css"&&(s=Xb(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?fb[u.property]||u.property:u.attribute,i]}}function Vb(n,a){try{return Eb(a,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const u=i,s=new gt("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=d0+"#cannot-parse-style-attribute",s}}function g0(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=Jm(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=Jm(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return Sc.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);Ca(n)}function Ca(n,a){const i=new gt("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=d0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Xb(n){const a={};let i;for(i in n)Sc.call(n,i)&&(a[Gb(i)]=n[i]);return a}function Gb(n){let a=n.replace(Cb,Qb);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function Qb(n){return"-"+n.toLowerCase()}const Bo={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"]},Fb={};function Ec(n,a){const i=Fb,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return y0(n,u,s)}function y0(n,a,i){if(Zb(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 ap(n.children,a,i)}return Array.isArray(n)?ap(n,a,i):""}function ap(n,a,i){const u=[];let s=-1;for(;++s<n.length;)u[s]=y0(n[s],a,i);return u.join("")}function Zb(n){return!!(n&&typeof n=="object")}const rp=document.createElement("i");function wc(n){const a="&"+n+";";rp.innerHTML=a;const i=rp.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}function Yt(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 Pt(n,a){return n.length>0?(Yt(n,n.length,0,a),n):a}const up={}.hasOwnProperty;function x0(n){const a={};let i=-1;for(;++i<n.length;)Kb(a,n[i]);return a}function Kb(n,a){let i;for(i in a){const s=(up.call(n,i)?n[i]:void 0)||(n[i]={}),c=a[i];let f;if(c)for(f in c){up.call(s,f)||(s[f]=[]);const d=c[f];Jb(s[f],Array.isArray(d)?d:d?[d]:[])}}}function Jb(n,a){let i=-1;const u=[];for(;++i<a.length;)(a[i].add==="after"?n:u).push(a[i]);Yt(n,0,0,u)}function b0(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 an(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=rl(/[A-Za-z]/),pt=rl(/[\dA-Za-z]/),Ib=rl(/[#-'*+\--9=?A-Z^-~]/);function iu(n){return n!==null&&(n<32||n===127)}const ac=rl(/\d/),$b=rl(/[\dA-Fa-f]/),Wb=rl(/[!-/:-@[-`{-~]/);function de(n){return n!==null&&n<-2}function Ge(n){return n!==null&&(n<0||n===32)}function Te(n){return n===-2||n===-1||n===32}const su=rl(new RegExp("\\p{P}|\\p{S}","u")),Tl=rl(/\s/);function rl(n){return a;function a(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function ki(n){const a=[];let i=-1,u=0,s=0;for(;++i<n.length;){const c=n.charCodeAt(i);let f="";if(c===37&&pt(n.charCodeAt(i+1))&&pt(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 Me(n,a,i,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return Te(p)?(n.enter(i),d(p)):a(p)}function d(p){return Te(p)&&c++<s?(n.consume(p),d):(n.exit(i),a(p))}}const Pb={tokenize:ev};function ev(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"),Me(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 de(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const tv={tokenize:nv},sp={tokenize:lv};function nv(n){const a=this,i=[];let u=0,s,c,f;return d;function d(U){if(u<i.length){const I=i[u];return a.containerState=I[1],n.attempt(I[0].continuation,p,m)(U)}return m(U)}function p(U){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&Y();const I=a.events.length;let K=I,H;for(;K--;)if(a.events[K][0]==="exit"&&a.events[K][1].type==="chunkFlow"){H=a.events[K][1].end;break}A(u);let $=I;for(;$<a.events.length;)a.events[$][1].end={...H},$++;return Yt(a.events,K+1,0,a.events.slice(I)),a.events.length=$,m(U)}return d(U)}function m(U){if(u===i.length){if(!s)return v(U);if(s.currentConstruct&&s.currentConstruct.concrete)return E(U);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(sp,x,g)(U)}function x(U){return s&&Y(),A(u),v(U)}function g(U){return a.parser.lazy[a.now().line]=u!==i.length,f=a.now().offset,E(U)}function v(U){return a.containerState={},n.attempt(sp,S,E)(U)}function S(U){return u++,i.push([a.currentConstruct,a.containerState]),v(U)}function E(U){if(U===null){s&&Y(),A(0),n.consume(U);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),_(U)}function _(U){if(U===null){R(n.exit("chunkFlow"),!0),A(0),n.consume(U);return}return de(U)?(n.consume(U),R(n.exit("chunkFlow")),u=0,a.interrupt=void 0,d):(n.consume(U),_)}function R(U,I){const K=a.sliceStream(U);if(I&&K.push(null),U.previous=c,c&&(c.next=U),c=U,s.defineSkip(U.start),s.write(K),a.parser.lazy[U.start.line]){let H=s.events.length;for(;H--;)if(s.events[H][1].start.offset<f&&(!s.events[H][1].end||s.events[H][1].end.offset>f))return;const $=a.events.length;let ue=$,ce,q;for(;ue--;)if(a.events[ue][0]==="exit"&&a.events[ue][1].type==="chunkFlow"){if(ce){q=a.events[ue][1].end;break}ce=!0}for(A(u),H=$;H<a.events.length;)a.events[H][1].end={...q},H++;Yt(a.events,ue+1,0,a.events.slice($)),a.events.length=H}}function A(U){let I=i.length;for(;I-- >U;){const K=i[I];a.containerState=K[1],K[0].exit.call(a,n)}i.length=U}function Y(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function lv(n,a,i){return Me(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Si(n){if(n===null||Ge(n)||Tl(n))return 1;if(su(n))return 2}function ou(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 rc={name:"attention",resolveAll:iv,tokenize:av};function iv(n,a){let i=-1,u,s,c,f,d,p,m,x;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},v={...n[i][1].start};op(g,-p),op(v,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:v},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=Pt(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=Pt(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",c,a]]),m=Pt(m,ou(a.parser.constructs.insideSpan.null,n.slice(u+1,i),a)),m=Pt(m,[["exit",c,a],["enter",d,a],["exit",d,a],["exit",s,a]]),n[i][1].end.offset-n[i][1].start.offset?(x=2,m=Pt(m,[["enter",n[i][1],a],["exit",n[i][1],a]])):x=0,Yt(n,u-1,i-u+3,m),i=u+m.length-x-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function av(n,a){const i=this.parser.constructs.attentionMarkers.null,u=this.previous,s=Si(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"),x=Si(p),g=!x||x===2&&s||i.includes(p),v=!s||s===2&&x||i.includes(u);return m._open=!!(c===42?g:g&&(s||!v)),m._close=!!(c===42?v:v&&(x||!g)),a(p)}}function op(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const rv={name:"autolink",tokenize:uv};function uv(n,a,i){let u=0;return s;function s(S){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(S){return vt(S)?(n.consume(S),f):S===64?i(S):m(S)}function f(S){return S===43||S===45||S===46||pt(S)?(u=1,d(S)):m(S)}function d(S){return S===58?(n.consume(S),u=0,p):(S===43||S===45||S===46||pt(S))&&u++<32?(n.consume(S),d):(u=0,m(S))}function p(S){return S===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):S===null||S===32||S===60||iu(S)?i(S):(n.consume(S),p)}function m(S){return S===64?(n.consume(S),x):Ib(S)?(n.consume(S),m):i(S)}function x(S){return pt(S)?g(S):i(S)}function g(S){return S===46?(n.consume(S),u=0,x):S===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):v(S)}function v(S){if((S===45||pt(S))&&u++<63){const E=S===45?v:g;return n.consume(S),E}return i(S)}}const Ma={partial:!0,tokenize:sv};function sv(n,a,i){return u;function u(c){return Te(c)?Me(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||de(c)?a(c):i(c)}}const v0={continuation:{tokenize:cv},exit:fv,name:"blockQuote",tokenize:ov};function ov(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 Te(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function cv(n,a,i){const u=this;return s;function s(f){return Te(f)?Me(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(v0,a,i)(f)}}function fv(n){n.exit("blockQuote")}const S0={name:"characterEscape",tokenize:hv};function hv(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 Wb(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(c)}}const z0={name:"characterReference",tokenize:dv};function dv(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=pt,x(g))}function m(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=$b,x):(n.enter("characterReferenceValue"),c=7,f=ac,x(g))}function x(g){if(g===59&&s){const v=n.exit("characterReferenceValue");return f===pt&&!wc(u.sliceSerialize(v))?i(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(g)&&s++<c?(n.consume(g),x):i(g)}}const cp={partial:!0,tokenize:pv},fp={concrete:!0,name:"codeFenced",tokenize:mv};function mv(n,a,i){const u=this,s={partial:!0,tokenize:K};let c=0,f=0,d;return p;function p(H){return m(H)}function m(H){const $=u.events[u.events.length-1];return c=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,d=H,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(H)}function x(H){return H===d?(f++,n.consume(H),x):f<3?i(H):(n.exit("codeFencedFenceSequence"),Te(H)?Me(n,g,"whitespace")(H):g(H))}function g(H){return H===null||de(H)?(n.exit("codeFencedFence"),u.interrupt?a(H):n.check(cp,_,I)(H)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),v(H))}function v(H){return H===null||de(H)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(H)):Te(H)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Me(n,S,"whitespace")(H)):H===96&&H===d?i(H):(n.consume(H),v)}function S(H){return H===null||de(H)?g(H):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),E(H))}function E(H){return H===null||de(H)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(H)):H===96&&H===d?i(H):(n.consume(H),E)}function _(H){return n.attempt(s,I,R)(H)}function R(H){return n.enter("lineEnding"),n.consume(H),n.exit("lineEnding"),A}function A(H){return c>0&&Te(H)?Me(n,Y,"linePrefix",c+1)(H):Y(H)}function Y(H){return H===null||de(H)?n.check(cp,_,I)(H):(n.enter("codeFlowValue"),U(H))}function U(H){return H===null||de(H)?(n.exit("codeFlowValue"),Y(H)):(n.consume(H),U)}function I(H){return n.exit("codeFenced"),a(H)}function K(H,$,ue){let ce=0;return q;function q(W){return H.enter("lineEnding"),H.consume(W),H.exit("lineEnding"),te}function te(W){return H.enter("codeFencedFence"),Te(W)?Me(H,le,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):le(W)}function le(W){return W===d?(H.enter("codeFencedFenceSequence"),ge(W)):ue(W)}function ge(W){return W===d?(ce++,H.consume(W),ge):ce>=f?(H.exit("codeFencedFenceSequence"),Te(W)?Me(H,ae,"whitespace")(W):ae(W)):ue(W)}function ae(W){return W===null||de(W)?(H.exit("codeFencedFence"),$(W)):ue(W)}}}function pv(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 Uo={name:"codeIndented",tokenize:yv},gv={partial:!0,tokenize:xv};function yv(n,a,i){const u=this;return s;function s(m){return n.enter("codeIndented"),Me(n,c,"linePrefix",5)(m)}function c(m){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?f(m):i(m)}function f(m){return m===null?p(m):de(m)?n.attempt(gv,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||de(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),a(m)}}function xv(n,a,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):de(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):Me(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):de(f)?s(f):i(f)}}const bv={name:"codeText",previous:Sv,resolve:vv,tokenize:zv};function vv(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 Sv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function zv(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,x(g)):de(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||de(g)?(n.exit("codeTextData"),p(g)):(n.consume(g),m)}function x(g){return g===96?(n.consume(g),s++,x):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(g)):(c.type="codeTextData",m(g))}}class kv{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&&za(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),za(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),za(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);za(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);za(this.left,i.reverse())}}}function za(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 k0(n){const a={};let i=-1,u,s,c,f,d,p,m;const x=new kv(n);for(;++i<x.length;){for(;i in a;)i=a[i];if(u=x.get(i),i&&u[1].type==="chunkFlow"&&x.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,Ev(x,i)),i=a[i],m=!0);else if(u[1]._container){for(c=i,s=void 0;c--;)if(f=x.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(x.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={...x.get(s)[1].start},d=x.slice(s,i),d.unshift(u),x.splice(s,i-s+1,d))}}return Yt(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!m}function Ev(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 x,g,v=-1,S=i,E=0,_=0;const R=[_];for(;S;){for(;n.get(++s)[1]!==S;);c.push(s),S._tokenizer||(x=u.sliceStream(S),S.next||x.push(null),g&&f.defineSkip(S.start),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(x),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=S,S=S.next}for(S=i;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(_=v+1,R.push(_),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(f.events=[],S?(S._tokenizer=void 0,S.previous=void 0):R.pop(),v=R.length;v--;){const A=d.slice(R[v],R[v+1]),Y=c.pop();p.push([Y,Y+A.length-1]),n.splice(Y,2,A)}for(p.reverse(),v=-1;++v<p.length;)m[E+p[v][0]]=E+p[v][1],E+=p[v][1]-p[v][0]-1;return m}const wv={resolve:Cv,tokenize:Nv},Tv={partial:!0,tokenize:Av};function Cv(n){return k0(n),n}function Nv(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):de(d)?n.check(Tv,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 Av(n,a,i){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Me(n,c,"linePrefix")}function c(f){if(f===null||de(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 E0(n,a,i,u,s,c,f,d,p){const m=p||Number.POSITIVE_INFINITY;let x=0;return g;function g(A){return A===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(A),n.exit(c),v):A===null||A===32||A===41||iu(A)?i(A):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),_(A))}function v(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"}),S(A))}function S(A){return A===62?(n.exit("chunkString"),n.exit(d),v(A)):A===null||A===60||de(A)?i(A):(n.consume(A),A===92?E:S)}function E(A){return A===60||A===62||A===92?(n.consume(A),S):S(A)}function _(A){return!x&&(A===null||A===41||Ge(A))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(u),a(A)):x<m&&A===40?(n.consume(A),x++,_):A===41?(n.consume(A),x--,_):A===null||A===32||A===40||iu(A)?i(A):(n.consume(A),A===92?R:_)}function R(A){return A===40||A===41||A===92?(n.consume(A),_):_(A)}}function w0(n,a,i,u,s,c){const f=this;let d=0,p;return m;function m(S){return n.enter(u),n.enter(s),n.consume(S),n.exit(s),n.enter(c),x}function x(S){return d>999||S===null||S===91||S===93&&!p||S===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?i(S):S===93?(n.exit(c),n.enter(s),n.consume(S),n.exit(s),n.exit(u),a):de(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||S===91||S===93||de(S)||d++>999?(n.exit("chunkString"),x(S)):(n.consume(S),p||(p=!Te(S)),S===92?v:g)}function v(S){return S===91||S===92||S===93?(n.consume(S),d++,g):g(S)}}function T0(n,a,i,u,s,c){let f;return d;function d(v){return v===34||v===39||v===40?(n.enter(u),n.enter(s),n.consume(v),n.exit(s),f=v===40?41:v,p):i(v)}function p(v){return v===f?(n.enter(s),n.consume(v),n.exit(s),n.exit(u),a):(n.enter(c),m(v))}function m(v){return v===f?(n.exit(c),p(f)):v===null?i(v):de(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),Me(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(v))}function x(v){return v===f||v===null||de(v)?(n.exit("chunkString"),m(v)):(n.consume(v),v===92?g:x)}function g(v){return v===f||v===92?(n.consume(v),x):x(v)}}function wa(n,a){let i;return u;function u(s){return de(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,u):Te(s)?Me(n,u,i?"linePrefix":"lineSuffix")(s):a(s)}}const jv={name:"definition",tokenize:_v},Mv={partial:!0,tokenize:Ov};function _v(n,a,i){const u=this;let s;return c;function c(S){return n.enter("definition"),f(S)}function f(S){return w0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return s=an(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),S===58?(n.enter("definitionMarker"),n.consume(S),n.exit("definitionMarker"),p):i(S)}function p(S){return Ge(S)?wa(n,m)(S):m(S)}function m(S){return E0(n,x,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function x(S){return n.attempt(Mv,g,g)(S)}function g(S){return Te(S)?Me(n,v,"whitespace")(S):v(S)}function v(S){return S===null||de(S)?(n.exit("definition"),u.parser.defined.push(s),a(S)):i(S)}}function Ov(n,a,i){return u;function u(d){return Ge(d)?wa(n,s)(d):i(d)}function s(d){return T0(n,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Te(d)?Me(n,f,"whitespace")(d):f(d)}function f(d){return d===null||de(d)?a(d):i(d)}}const Dv={name:"hardBreakEscape",tokenize:Rv};function Rv(n,a,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return de(c)?(n.exit("hardBreakEscape"),a(c)):i(c)}}const Lv={name:"headingAtx",resolve:Bv,tokenize:Uv};function Bv(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"},Yt(n,u,i-u+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),n}function Uv(n,a,i){let u=0;return s;function s(x){return n.enter("atxHeading"),c(x)}function c(x){return n.enter("atxHeadingSequence"),f(x)}function f(x){return x===35&&u++<6?(n.consume(x),f):x===null||Ge(x)?(n.exit("atxHeadingSequence"),d(x)):i(x)}function d(x){return x===35?(n.enter("atxHeadingSequence"),p(x)):x===null||de(x)?(n.exit("atxHeading"),a(x)):Te(x)?Me(n,d,"whitespace")(x):(n.enter("atxHeadingText"),m(x))}function p(x){return x===35?(n.consume(x),p):(n.exit("atxHeadingSequence"),d(x))}function m(x){return x===null||x===35||Ge(x)?(n.exit("atxHeadingText"),d(x)):(n.consume(x),m)}}const Hv=["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"],hp=["pre","script","style","textarea"],qv={concrete:!0,name:"htmlFlow",resolveTo:Xv,tokenize:Gv},Yv={partial:!0,tokenize:Fv},Vv={partial:!0,tokenize:Qv};function Xv(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 Gv(n,a,i){const u=this;let s,c,f,d,p;return m;function m(k){return x(k)}function x(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),g}function g(k){return k===33?(n.consume(k),v):k===47?(n.consume(k),c=!0,_):k===63?(n.consume(k),s=3,u.interrupt?a:w):vt(k)?(n.consume(k),f=String.fromCharCode(k),R):i(k)}function v(k){return k===45?(n.consume(k),s=2,S):k===91?(n.consume(k),s=5,d=0,E):vt(k)?(n.consume(k),s=4,u.interrupt?a:w):i(k)}function S(k){return k===45?(n.consume(k),u.interrupt?a:w):i(k)}function E(k){const P="CDATA[";return k===P.charCodeAt(d++)?(n.consume(k),d===P.length?u.interrupt?a:le:E):i(k)}function _(k){return vt(k)?(n.consume(k),f=String.fromCharCode(k),R):i(k)}function R(k){if(k===null||k===47||k===62||Ge(k)){const P=k===47,he=f.toLowerCase();return!P&&!c&&hp.includes(he)?(s=1,u.interrupt?a(k):le(k)):Hv.includes(f.toLowerCase())?(s=6,P?(n.consume(k),A):u.interrupt?a(k):le(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?i(k):c?Y(k):U(k))}return k===45||pt(k)?(n.consume(k),f+=String.fromCharCode(k),R):i(k)}function A(k){return k===62?(n.consume(k),u.interrupt?a:le):i(k)}function Y(k){return Te(k)?(n.consume(k),Y):q(k)}function U(k){return k===47?(n.consume(k),q):k===58||k===95||vt(k)?(n.consume(k),I):Te(k)?(n.consume(k),U):q(k)}function I(k){return k===45||k===46||k===58||k===95||pt(k)?(n.consume(k),I):K(k)}function K(k){return k===61?(n.consume(k),H):Te(k)?(n.consume(k),K):U(k)}function H(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(n.consume(k),p=k,$):Te(k)?(n.consume(k),H):ue(k)}function $(k){return k===p?(n.consume(k),p=null,ce):k===null||de(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||Ge(k)?K(k):(n.consume(k),ue)}function ce(k){return k===47||k===62||Te(k)?U(k):i(k)}function q(k){return k===62?(n.consume(k),te):i(k)}function te(k){return k===null||de(k)?le(k):Te(k)?(n.consume(k),te):i(k)}function le(k){return k===45&&s===2?(n.consume(k),j):k===60&&s===1?(n.consume(k),G):k===62&&s===4?(n.consume(k),C):k===63&&s===3?(n.consume(k),w):k===93&&s===5?(n.consume(k),ye):de(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Yv,L,ge)(k)):k===null||de(k)?(n.exit("htmlFlowData"),ge(k)):(n.consume(k),le)}function ge(k){return n.check(Vv,ae,L)(k)}function ae(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),W}function W(k){return k===null||de(k)?ge(k):(n.enter("htmlFlowData"),le(k))}function j(k){return k===45?(n.consume(k),w):le(k)}function G(k){return k===47?(n.consume(k),f="",ie):le(k)}function ie(k){if(k===62){const P=f.toLowerCase();return hp.includes(P)?(n.consume(k),C):le(k)}return vt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),ie):le(k)}function ye(k){return k===93?(n.consume(k),w):le(k)}function w(k){return k===62?(n.consume(k),C):k===45&&s===2?(n.consume(k),w):le(k)}function C(k){return k===null||de(k)?(n.exit("htmlFlowData"),L(k)):(n.consume(k),C)}function L(k){return n.exit("htmlFlow"),a(k)}}function Qv(n,a,i){const u=this;return s;function s(f){return de(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 Fv(n,a,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(Ma,a,i)}}const Zv={name:"htmlText",tokenize:Kv};function Kv(n,a,i){const u=this;let s,c,f;return d;function d(w){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(w),p}function p(w){return w===33?(n.consume(w),m):w===47?(n.consume(w),K):w===63?(n.consume(w),U):vt(w)?(n.consume(w),ue):i(w)}function m(w){return w===45?(n.consume(w),x):w===91?(n.consume(w),c=0,E):vt(w)?(n.consume(w),Y):i(w)}function x(w){return w===45?(n.consume(w),S):i(w)}function g(w){return w===null?i(w):w===45?(n.consume(w),v):de(w)?(f=g,G(w)):(n.consume(w),g)}function v(w){return w===45?(n.consume(w),S):g(w)}function S(w){return w===62?j(w):w===45?v(w):g(w)}function E(w){const C="CDATA[";return w===C.charCodeAt(c++)?(n.consume(w),c===C.length?_:E):i(w)}function _(w){return w===null?i(w):w===93?(n.consume(w),R):de(w)?(f=_,G(w)):(n.consume(w),_)}function R(w){return w===93?(n.consume(w),A):_(w)}function A(w){return w===62?j(w):w===93?(n.consume(w),A):_(w)}function Y(w){return w===null||w===62?j(w):de(w)?(f=Y,G(w)):(n.consume(w),Y)}function U(w){return w===null?i(w):w===63?(n.consume(w),I):de(w)?(f=U,G(w)):(n.consume(w),U)}function I(w){return w===62?j(w):U(w)}function K(w){return vt(w)?(n.consume(w),H):i(w)}function H(w){return w===45||pt(w)?(n.consume(w),H):$(w)}function $(w){return de(w)?(f=$,G(w)):Te(w)?(n.consume(w),$):j(w)}function ue(w){return w===45||pt(w)?(n.consume(w),ue):w===47||w===62||Ge(w)?ce(w):i(w)}function ce(w){return w===47?(n.consume(w),j):w===58||w===95||vt(w)?(n.consume(w),q):de(w)?(f=ce,G(w)):Te(w)?(n.consume(w),ce):j(w)}function q(w){return w===45||w===46||w===58||w===95||pt(w)?(n.consume(w),q):te(w)}function te(w){return w===61?(n.consume(w),le):de(w)?(f=te,G(w)):Te(w)?(n.consume(w),te):ce(w)}function le(w){return w===null||w===60||w===61||w===62||w===96?i(w):w===34||w===39?(n.consume(w),s=w,ge):de(w)?(f=le,G(w)):Te(w)?(n.consume(w),le):(n.consume(w),ae)}function ge(w){return w===s?(n.consume(w),s=void 0,W):w===null?i(w):de(w)?(f=ge,G(w)):(n.consume(w),ge)}function ae(w){return w===null||w===34||w===39||w===60||w===61||w===96?i(w):w===47||w===62||Ge(w)?ce(w):(n.consume(w),ae)}function W(w){return w===47||w===62||Ge(w)?ce(w):i(w)}function j(w){return w===62?(n.consume(w),n.exit("htmlTextData"),n.exit("htmlText"),a):i(w)}function G(w){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),ie}function ie(w){return Te(w)?Me(n,ye,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ye(w)}function ye(w){return n.enter("htmlTextData"),f(w)}}const Tc={name:"labelEnd",resolveAll:Wv,resolveTo:Pv,tokenize:e2},Jv={tokenize:t2},Iv={tokenize:n2},$v={tokenize:l2};function Wv(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&&Yt(n,0,n.length,i),n}function Pv(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}},x={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[f-2][1].start}};return d=[["enter",p,a],["enter",m,a]],d=Pt(d,n.slice(c+1,c+u+3)),d=Pt(d,[["enter",x,a]]),d=Pt(d,ou(a.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),a)),d=Pt(d,[["exit",x,a],n[f-2],n[f-1],["exit",m,a]]),d=Pt(d,n.slice(f+1)),d=Pt(d,[["exit",p,a]]),Yt(n,c,n.length,d),n}function e2(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(v){return c?c._inactive?g(v):(f=u.parser.defined.includes(an(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(v),n.exit("labelMarker"),n.exit("labelEnd"),p):i(v)}function p(v){return v===40?n.attempt(Jv,x,f?x:g)(v):v===91?n.attempt(Iv,x,f?m:g)(v):f?x(v):g(v)}function m(v){return n.attempt($v,x,g)(v)}function x(v){return a(v)}function g(v){return c._balanced=!0,i(v)}}function t2(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 Ge(g)?wa(n,c)(g):c(g)}function c(g){return g===41?x(g):E0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Ge(g)?wa(n,p)(g):x(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?T0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):x(g)}function m(g){return Ge(g)?wa(n,x)(g):x(g)}function x(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),a):i(g)}}function n2(n,a,i){const u=this;return s;function s(d){return w0.call(u,n,c,f,"reference","referenceMarker","referenceString")(d)}function c(d){return u.parser.defined.includes(an(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function f(d){return i(d)}}function l2(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 i2={name:"labelStartImage",resolveAll:Tc.resolveAll,tokenize:a2};function a2(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 r2={name:"labelStartLink",resolveAll:Tc.resolveAll,tokenize:u2};function u2(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 Ho={name:"lineEnding",tokenize:s2};function s2(n,a){return i;function i(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Me(n,a,"linePrefix")}}const nu={name:"thematicBreak",tokenize:o2};function o2(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||de(m))?(n.exit("thematicBreak"),a(m)):i(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Te(m)?Me(n,d,"whitespace")(m):d(m))}}const At={continuation:{tokenize:d2},exit:p2,name:"list",tokenize:h2},c2={partial:!0,tokenize:g2},f2={partial:!0,tokenize:m2};function h2(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(S){const E=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:ac(S)){if(u.containerState.type||(u.containerState.type=E,n.enter(E,{_container:!0})),E==="listUnordered")return n.enter("listItemPrefix"),S===42||S===45?n.check(nu,i,m)(S):m(S);if(!u.interrupt||S===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(S)}return i(S)}function p(S){return ac(S)&&++f<10?(n.consume(S),p):(!u.interrupt||f<2)&&(u.containerState.marker?S===u.containerState.marker:S===41||S===46)?(n.exit("listItemValue"),m(S)):i(S)}function m(S){return n.enter("listItemMarker"),n.consume(S),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||S,n.check(Ma,u.interrupt?i:x,n.attempt(c2,v,g))}function x(S){return u.containerState.initialBlankLine=!0,c++,v(S)}function g(S){return Te(S)?(n.enter("listItemPrefixWhitespace"),n.consume(S),n.exit("listItemPrefixWhitespace"),v):i(S)}function v(S){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(S)}}function d2(n,a,i){const u=this;return u.containerState._closeFlow=void 0,n.check(Ma,s,c);function s(d){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Me(n,a,"listItemIndent",u.containerState.size+1)(d)}function c(d){return u.containerState.furtherBlankLines||!Te(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(f2,a,f)(d))}function f(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,Me(n,n.attempt(At,a,i),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function m2(n,a,i){const u=this;return Me(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 p2(n){n.exit(this.containerState.type)}function g2(n,a,i){const u=this;return Me(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!Te(c)&&f&&f[1].type==="listItemPrefixWhitespace"?a(c):i(c)}}const dp={name:"setextUnderline",resolveTo:y2,tokenize:x2};function y2(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 x2(n,a,i){const u=this;let s;return c;function c(m){let x=u.events.length,g;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){g=u.events[x][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"),Te(m)?Me(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||de(m)?(n.exit("setextHeadingLine"),a(m)):i(m)}}const b2={tokenize:v2};function v2(n){const a=this,i=n.attempt(Ma,u,n.attempt(this.parser.constructs.flowInitial,s,Me(n,n.attempt(this.parser.constructs.flow,s,n.attempt(wv,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 S2={resolveAll:N0()},z2=C0("string"),k2=C0("text");function C0(n){return{resolveAll:N0(n==="text"?E2: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(x){return m(x)?c(x):d(x)}function d(x){if(x===null){i.consume(x);return}return i.enter("data"),i.consume(x),p}function p(x){return m(x)?(i.exit("data"),c(x)):(i.consume(x),p)}function m(x){if(x===null)return!0;const g=s[x];let v=-1;if(g)for(;++v<g.length;){const S=g[v];if(!S.previous||S.previous.call(u,u.previous))return!0}return!1}}}function N0(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 E2(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 w2={42:At,43:At,45:At,48:At,49:At,50:At,51:At,52:At,53:At,54:At,55:At,56:At,57:At,62:v0},T2={91:jv},C2={[-2]:Uo,[-1]:Uo,32:Uo},N2={35:Lv,42:nu,45:[dp,nu],60:qv,61:dp,95:nu,96:fp,126:fp},A2={38:z0,92:S0},j2={[-5]:Ho,[-4]:Ho,[-3]:Ho,33:i2,38:z0,42:rc,60:[rv,Zv],91:r2,92:[Dv,S0],93:Tc,95:rc,96:bv},M2={null:[rc,S2]},_2={null:[42,95]},O2={null:[]},D2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:_2,contentInitial:T2,disable:O2,document:w2,flow:N2,flowInitial:C2,insideSpan:M2,string:A2,text:j2},Symbol.toStringTag,{value:"Module"}));function R2(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:$(H),consume:Y,enter:U,exit:I,interrupt:$(H,{interrupt:!0})},m={code:null,containerState:{},defineSkip:_,events:[],now:E,parser:n,previous:null,sliceSerialize:v,sliceStream:S,write:g};let x=a.tokenize.call(m,p);return a.resolveAll&&c.push(a),m;function g(te){return f=Pt(f,te),R(),f[f.length-1]!==null?[]:(ue(a,0),m.events=ou(c,m.events,m),m.events)}function v(te,le){return B2(S(te),le)}function S(te){return L2(f,te)}function E(){const{_bufferIndex:te,_index:le,line:ge,column:ae,offset:W}=u;return{_bufferIndex:te,_index:le,line:ge,column:ae,offset:W}}function _(te){s[te.line]=te.column,q()}function R(){let te;for(;u._index<f.length;){const le=f[u._index];if(typeof le=="string")for(te=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===te&&u._bufferIndex<le.length;)A(le.charCodeAt(u._bufferIndex));else A(le)}}function A(te){x=x(te)}function Y(te){de(te)?(u.line++,u.column=1,u.offset+=te===-3?2:1,q()):te!==-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=te}function U(te,le){const ge=le||{};return ge.type=te,ge.start=E(),m.events.push(["enter",ge,m]),d.push(ge),ge}function I(te){const le=d.pop();return le.end=E(),m.events.push(["exit",le,m]),le}function K(te,le){ue(te,le.from)}function H(te,le){le.restore()}function $(te,le){return ge;function ge(ae,W,j){let G,ie,ye,w;return Array.isArray(ae)?L(ae):"tokenize"in ae?L([ae]):C(ae);function C(se){return ze;function ze(Ke){const Ue=Ke!==null&&se[Ke],Vt=Ke!==null&&se.null,hn=[...Array.isArray(Ue)?Ue:Ue?[Ue]:[],...Array.isArray(Vt)?Vt:Vt?[Vt]:[]];return L(hn)(Ke)}}function L(se){return G=se,ie=0,se.length===0?j:k(se[ie])}function k(se){return ze;function ze(Ke){return w=ce(),ye=se,se.partial||(m.currentConstruct=se),se.name&&m.parser.constructs.disable.null.includes(se.name)?he():se.tokenize.call(le?Object.assign(Object.create(m),le):m,p,P,he)(Ke)}}function P(se){return te(ye,w),W}function he(se){return w.restore(),++ie<G.length?k(G[ie]):j}}}function ue(te,le){te.resolveAll&&!c.includes(te)&&c.push(te),te.resolve&&Yt(m.events,le,m.events.length-le,te.resolve(m.events.slice(le),m)),te.resolveTo&&(m.events=te.resolveTo(m.events,m))}function ce(){const te=E(),le=m.previous,ge=m.currentConstruct,ae=m.events.length,W=Array.from(d);return{from:ae,restore:j};function j(){u=te,m.previous=le,m.currentConstruct=ge,m.events.length=ae,d=W,q()}}function q(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function L2(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 B2(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 U2(n){const u={constructs:x0([D2,...(n||{}).extensions||[]]),content:s(Pb),defined:[],document:s(tv),flow:s(b2),lazy:{},string:s(z2),text:s(k2)};return u;function s(c){return f;function f(d){return R2(u,c,d)}}}function H2(n){for(;!k0(n););return n}const mp=/[\0\t\n\r]/g;function q2(){let n=1,a="",i=!0,u;return s;function s(c,f,d){const p=[];let m,x,g,v,S;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(mp.lastIndex=g,m=mp.exec(c),v=m&&m.index!==void 0?m.index:c.length,S=c.charCodeAt(v),!m){a=c.slice(g);break}if(S===10&&g===v&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<v&&(p.push(c.slice(g,v)),n+=v-g),S){case 0:{p.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,p.push(-2);n++<x;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}g=v+1}return d&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const Y2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function V2(n){return n.replace(Y2,X2)}function X2(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return b0(i.slice(c?2:1),c?16:10)}return wc(i)||n}const A0={}.hasOwnProperty;function G2(n,a,i){return typeof a!="string"&&(i=a,a=void 0),Q2(i)(H2(U2(i).document().write(q2()(n,a,!0))))}function Q2(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(jl),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:c(Nl),blockQuote:c(Vt),characterEscape:ce,characterReference:ce,codeFenced:c(hn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(hn,f),codeText:c(wi,f),codeTextData:ce,data:ce,codeFlowValue:ce,definition:c(Oa),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(dn),hardBreakEscape:c(Al),hardBreakTrailing:c(Al),htmlFlow:c(Da,f),htmlFlowData:ce,htmlText:c(Da,f),htmlTextData:ce,image:c(Ra),label:f,link:c(jl),listItem:c(Ti),listItemValue:v,listOrdered:c(Ml,g),listUnordered:c(Ml),paragraph:c(du),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(Nl),strong:c(mu),thematicBreak:c(pu)},exit:{atxHeading:p(),atxHeadingSequence:K,autolink:p(),autolinkEmail:Ue,autolinkProtocol:Ke,blockQuote:p(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:se,characterReference:ze,codeFenced:p(R),codeFencedFence:_,codeFencedFenceInfo:S,codeFencedFenceMeta:E,codeFlowValue:q,codeIndented:p(A),codeText:p(W),codeTextData:q,data:q,definition:p(),definitionDestinationString:I,definitionLabelString:Y,definitionTitleString:U,emphasis:p(),hardBreakEscape:p(le),hardBreakTrailing:p(le),htmlFlow:p(ge),htmlFlowData:q,htmlText:p(ae),htmlTextData:q,image:p(G),label:ye,labelText:ie,lineEnding:te,link:p(j),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:P,resourceDestinationString:w,resourceTitleString:C,resource:L,setextHeading:p(ue),setextHeadingLineSequence:$,setextHeadingText:H,strong:p(),thematicBreak:p()}};j0(a,(n||{}).mdastExtensions||[]);const i={};return u;function u(Q){let ee={type:"root",children:[]};const pe={stack:[ee],tokenStack:[],config:a,enter:d,exit:m,buffer:f,resume:x,data:i},ke=[];let Re=-1;for(;++Re<Q.length;)if(Q[Re][1].type==="listOrdered"||Q[Re][1].type==="listUnordered")if(Q[Re][0]==="enter")ke.push(Re);else{const _t=ke.pop();Re=s(Q,_t,Re)}for(Re=-1;++Re<Q.length;){const _t=a[Q[Re][0]];A0.call(_t,Q[Re][1].type)&&_t[Q[Re][1].type].call(Object.assign({sliceSerialize:Q[Re][2].sliceSerialize},pe),Q[Re][1])}if(pe.tokenStack.length>0){const _t=pe.tokenStack[pe.tokenStack.length-1];(_t[1]||pp).call(pe,void 0,_t[0])}for(ee.position={start:al(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:al(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},Re=-1;++Re<a.transforms.length;)ee=a.transforms[Re](ee)||ee;return ee}function s(Q,ee,pe){let ke=ee-1,Re=-1,_t=!1,mn,xt,at,St;for(;++ke<=pe;){const Ve=Q[ke];switch(Ve[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ve[0]==="enter"?Re++:Re--,St=void 0;break}case"lineEndingBlank":{Ve[0]==="enter"&&(mn&&!St&&!Re&&!at&&(at=ke),St=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:St=void 0}if(!Re&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Re===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(mn){let Dn=ke;for(xt=void 0;Dn--;){const en=Q[Dn];if(en[1].type==="lineEnding"||en[1].type==="lineEndingBlank"){if(en[0]==="exit")continue;xt&&(Q[xt][1].type="lineEndingBlank",_t=!0),en[1].type="lineEnding",xt=Dn}else if(!(en[1].type==="linePrefix"||en[1].type==="blockQuotePrefix"||en[1].type==="blockQuotePrefixWhitespace"||en[1].type==="blockQuoteMarker"||en[1].type==="listItemIndent"))break}at&&(!xt||at<xt)&&(mn._spread=!0),mn.end=Object.assign({},xt?Q[xt][1].start:Ve[1].end),Q.splice(xt||ke,0,["exit",mn,Ve[2]]),ke++,pe++}if(Ve[1].type==="listItemPrefix"){const Dn={type:"listItem",_spread:!1,start:Object.assign({},Ve[1].start),end:void 0};mn=Dn,Q.splice(ke,0,["enter",Dn,Ve[2]]),ke++,pe++,at=void 0,St=!0}}}return Q[ee][1]._spread=_t,pe}function c(Q,ee){return pe;function pe(ke){d.call(this,Q(ke),ke),ee&&ee.call(this,ke)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(Q,ee,pe){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([ee,pe||void 0]),Q.position={start:al(ee.start),end:void 0}}function p(Q){return ee;function ee(pe){Q&&Q.call(this,pe),m.call(this,pe)}}function m(Q,ee){const pe=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==Q.type&&(ee?ee.call(this,Q,ke[0]):(ke[1]||pp).call(this,Q,ke[0]));else throw new Error("Cannot close `"+Q.type+"` ("+Ea({start:Q.start,end:Q.end})+"): it’s not open");pe.position.end=al(Q.end)}function x(){return Ec(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(Q){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function S(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=Q}function E(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=Q}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q.replace(/(\r?\n|\r)$/g,"")}function Y(Q){const ee=this.resume(),pe=this.stack[this.stack.length-1];pe.label=ee,pe.identifier=an(this.sliceSerialize(Q)).toLowerCase()}function U(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function I(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function K(Q){const ee=this.stack[this.stack.length-1];if(!ee.depth){const pe=this.sliceSerialize(Q).length;ee.depth=pe}}function H(){this.data.setextHeadingSlurpLineEnding=!0}function $(Q){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(Q){const pe=this.stack[this.stack.length-1].children;let ke=pe[pe.length-1];(!ke||ke.type!=="text")&&(ke=yt(),ke.position={start:al(Q.start),end:void 0},pe.push(ke)),this.stack.push(ke)}function q(Q){const ee=this.stack.pop();ee.value+=this.sliceSerialize(Q),ee.position.end=al(Q.end)}function te(Q){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const pe=ee.children[ee.children.length-1];pe.position.end=al(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ee.type)&&(ce.call(this,Q),q.call(this,Q))}function le(){this.data.atHardBreak=!0}function ge(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function ae(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function W(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.value=Q}function j(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function G(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ee,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ie(Q){const ee=this.sliceSerialize(Q),pe=this.stack[this.stack.length-2];pe.label=V2(ee),pe.identifier=an(ee).toLowerCase()}function ye(){const Q=this.stack[this.stack.length-1],ee=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const ke=Q.children;pe.children=ke}else pe.alt=ee}function w(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.url=Q}function C(){const Q=this.resume(),ee=this.stack[this.stack.length-1];ee.title=Q}function L(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function P(Q){const ee=this.resume(),pe=this.stack[this.stack.length-1];pe.label=ee,pe.identifier=an(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function he(Q){this.data.characterReferenceType=Q.type}function se(Q){const ee=this.sliceSerialize(Q),pe=this.data.characterReferenceType;let ke;pe?(ke=b0(ee,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=wc(ee);const Re=this.stack[this.stack.length-1];Re.value+=ke}function ze(Q){const ee=this.stack.pop();ee.position.end=al(Q.end)}function Ke(Q){q.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(Q)}function Ue(Q){q.call(this,Q);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(Q)}function Vt(){return{type:"blockquote",children:[]}}function hn(){return{type:"code",lang:null,meta:null,value:""}}function wi(){return{type:"inlineCode",value:""}}function Oa(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dn(){return{type:"emphasis",children:[]}}function Nl(){return{type:"heading",depth:0,children:[]}}function Al(){return{type:"break"}}function Da(){return{type:"html",value:""}}function Ra(){return{type:"image",title:null,url:"",alt:null}}function jl(){return{type:"link",title:null,url:"",children:[]}}function Ml(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Ti(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function du(){return{type:"paragraph",children:[]}}function mu(){return{type:"strong",children:[]}}function yt(){return{type:"text",value:""}}function pu(){return{type:"thematicBreak"}}}function al(n){return{line:n.line,column:n.column,offset:n.offset}}function j0(n,a){let i=-1;for(;++i<a.length;){const u=a[i];Array.isArray(u)?j0(n,u):F2(n,u)}}function F2(n,a){let i;for(i in a)if(A0.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 pp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Ea({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Ea({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Ea({start:a.start,end:a.end})+") is still open")}function Z2(n){const a=this;a.parser=i;function i(u){return G2(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function K2(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 J2(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
|
|
251
|
+
`}]}function I2(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 $2(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function W2(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function P2(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=ki(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 eS(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 tS(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function M0(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 nS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return M0(n,a);const s={src:ki(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 lS(n,a){const i={src:ki(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 iS(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 aS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return M0(n,a);const s={href:ki(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 rS(n,a){const i={href:ki(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 uS(n,a,i){const u=n.all(a),s=i?sS(i):_0(a),c={},f=[];if(typeof a.checked=="boolean"){const x=u[0];let g;x&&x.type==="element"&&x.tagName==="p"?g=x:(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 x=u[d];(s||d!==0||x.type!=="element"||x.tagName!=="p")&&f.push({type:"text",value:`
|
|
253
|
+
`}),x.type==="element"&&x.tagName==="p"&&!s?f.push(...x.children):f.push(x)}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 sS(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=_0(i[u])}return a}function _0(n){const a=n.spread;return a??n.children.length>1}function oS(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 cS(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function fS(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function hS(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function dS(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=vc(a.children[1]),p=f0(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 mS(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],v={},S=f?f[p]:void 0;S&&(v.align=S);let E={type:"element",tagName:c,properties:v,children:[]};g&&(E.children=n.all(g),n.patch(g,E),E=n.applyData(g,E)),m.push(E)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,x),n.applyData(a,x)}function pS(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const gp=9,yp=32;function gS(n){const a=String(n),i=/\r?\n|\r/g;let u=i.exec(a),s=0;const c=[];for(;u;)c.push(xp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=i.exec(a);return c.push(xp(a.slice(s),s>0,!1)),c.join("")}function xp(n,a,i){let u=0,s=n.length;if(a){let c=n.codePointAt(u);for(;c===gp||c===yp;)u++,c=n.codePointAt(u)}if(i){let c=n.codePointAt(s-1);for(;c===gp||c===yp;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function yS(n,a){const i={type:"text",value:gS(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function xS(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const bS={blockquote:K2,break:J2,code:I2,delete:$2,emphasis:W2,footnoteReference:P2,heading:eS,html:tS,imageReference:nS,image:lS,inlineCode:iS,linkReference:aS,link:rS,listItem:uS,list:oS,paragraph:cS,root:fS,strong:hS,table:dS,tableCell:pS,tableRow:mS,text:yS,thematicBreak:xS,toml:Wr,yaml:Wr,definition:Wr,footnoteDefinition:Wr};function Wr(){}const O0=-1,cu=0,Ta=1,au=2,Cc=3,Nc=4,Ac=5,jc=6,D0=7,R0=8,bp=typeof self=="object"?self:globalThis,vS=(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 cu:case O0:return i(f,s);case Ta:{const d=i([],s);for(const p of f)d.push(u(p));return d}case au:{const d=i({},s);for(const[p,m]of f)d[u(p)]=u(m);return d}case Cc:return i(new Date(f),s);case Nc:{const{source:d,flags:p}=f;return i(new RegExp(d,p),s)}case Ac:{const d=i(new Map,s);for(const[p,m]of f)d.set(u(p),u(m));return d}case jc:{const d=i(new Set,s);for(const p of f)d.add(u(p));return d}case D0:{const{name:d,message:p}=f;return i(new bp[d](p),s)}case R0: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 bp[c](f),s)};return u},vp=n=>vS(new Map,n)(0),xi="",{toString:SS}={},{keys:zS}=Object,ka=n=>{const a=typeof n;if(a!=="object"||!n)return[cu,a];const i=SS.call(n).slice(8,-1);switch(i){case"Array":return[Ta,xi];case"Object":return[au,xi];case"Date":return[Cc,xi];case"RegExp":return[Nc,xi];case"Map":return[Ac,xi];case"Set":return[jc,xi];case"DataView":return[Ta,i]}return i.includes("Array")?[Ta,i]:i.includes("Error")?[D0,i]:[au,i]},Pr=([n,a])=>n===cu&&(a==="function"||a==="symbol"),kS=(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]=ka(f);switch(d){case cu:{let x=f;switch(p){case"bigint":d=R0,x=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);x=null;break;case"undefined":return s([O0],f)}return s([d,x],f)}case Ta:{if(p){let v=f;return p==="DataView"?v=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(f)),s([p,[...v]],f)}const x=[],g=s([d,x],f);for(const v of f)x.push(c(v));return g}case au:{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 x=[],g=s([d,x],f);for(const v of zS(f))(n||!Pr(ka(f[v])))&&x.push([c(v),c(f[v])]);return g}case Cc:return s([d,f.toISOString()],f);case Nc:{const{source:x,flags:g}=f;return s([d,{source:x,flags:g}],f)}case Ac:{const x=[],g=s([d,x],f);for(const[v,S]of f)(n||!(Pr(ka(v))||Pr(ka(S))))&&x.push([c(v),c(S)]);return g}case jc:{const x=[],g=s([d,x],f);for(const v of f)(n||!Pr(ka(v)))&&x.push(c(v));return g}}const{message:m}=f;return s([d,{name:p,message:m}],f)};return c},Sp=(n,{json:a,lossy:i}={})=>{const u=[];return kS(!(a||i),!!a,new Map,u)(n),u},ru=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?vp(Sp(n,a)):structuredClone(n):(n,a)=>vp(Sp(n,a));function ES(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 wS(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function TS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||ES,u=n.options.footnoteBackLabel||wS,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 x=n.all(m),g=String(m.identifier).toUpperCase(),v=ki(g.toLowerCase());let S=0;const E=[],_=n.footnoteCounts.get(g);for(;_!==void 0&&++S<=_;){E.length>0&&E.push({type:"text",value:" "});let Y=typeof i=="string"?i:i(p,S);typeof Y=="string"&&(Y={type:"text",value:Y}),E.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,S),className:["data-footnote-backref"]},children:Array.isArray(Y)?Y:[Y]})}const R=x[x.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const Y=R.children[R.children.length-1];Y&&Y.type==="text"?Y.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...E)}else x.push(...E);const A={type:"element",tagName:"li",properties:{id:a+"fn-"+v},children:n.wrap(x,!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:{...ru(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 fu=(function(n){if(n==null)return jS;if(typeof n=="function")return hu(n);if(typeof n=="object")return Array.isArray(n)?CS(n):NS(n);if(typeof n=="string")return AS(n);throw new Error("Expected function, string, or object as test")});function CS(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=fu(n[i]);return hu(u);function u(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function NS(n){const a=n;return hu(i);function i(u){const s=u;let c;for(c in n)if(s[c]!==a[c])return!1;return!0}}function AS(n){return hu(a);function a(i){return i&&i.type===n}}function hu(n){return a;function a(i,u,s){return!!(MS(i)&&n.call(this,i,typeof u=="number"?u:void 0,s||void 0))}}function jS(){return!0}function MS(n){return n!==null&&typeof n=="object"&&"type"in n}const L0=[],_S=!0,uc=!1,OS="skip";function B0(n,a,i,u){let s;typeof a=="function"&&typeof i!="function"?(u=i,i=a):s=a;const c=fu(s),f=u?-1:1;d(n,void 0,[])();function d(p,m,x){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const S=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=L0,E,_,R;if((!a||c(p,m,x[x.length-1]||void 0))&&(S=DS(i(p,x)),S[0]===uc))return S;if("children"in p&&p.children){const A=p;if(A.children&&S[0]!==OS)for(_=(u?A.children.length:-1)+f,R=x.concat(A);_>-1&&_<A.children.length;){const Y=A.children[_];if(E=d(Y,_,R)(),E[0]===uc)return E;_=typeof E[1]=="number"?E[1]:_+f}}return S}}}function DS(n){return Array.isArray(n)?n:typeof n=="number"?[_S,n]:n==null?L0:[n]}function Mc(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),B0(n,c,d,s);function d(p,m){const x=m[m.length-1],g=x?x.children.indexOf(p):void 0;return f(p,g,x)}}const sc={}.hasOwnProperty,RS={};function LS(n,a){const i=a||RS,u=new Map,s=new Map,c=new Map,f={...bS,...i.handlers},d={all:m,applyData:US,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:i,patch:BS,wrap:qS};return Mc(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const g=x.type==="definition"?u:s,v=String(x.identifier).toUpperCase();g.has(v)||g.set(v,x)}}),d;function p(x,g){const v=x.type,S=d.handlers[v];if(sc.call(d.handlers,v)&&S)return S(d,x,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in x){const{children:_,...R}=x,A=ru(R);return A.children=d.all(x),A}return ru(x)}return(d.options.unknownHandler||HS)(d,x,g)}function m(x){const g=[];if("children"in x){const v=x.children;let S=-1;for(;++S<v.length;){const E=d.one(v[S],x);if(E){if(S&&v[S-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=zp(E.value)),!Array.isArray(E)&&E.type==="element")){const _=E.children[0];_&&_.type==="text"&&(_.value=zp(_.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function BS(n,a){n.position&&(a.position=wb(n))}function US(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,ru(c)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function HS(n,a){const i=a.data||{},u="value"in a&&!(sc.call(i,"hProperties")||sc.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 qS(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 zp(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function kp(n,a){const i=LS(n,a),u=i.one(n,void 0),s=TS(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 YS(n,a){return n&&"run"in n?async function(i,u){const s=kp(i,{file:u,...a});await n.run(s,u)}:function(i,u){return kp(i,{file:u,...n||a})}}function Ep(n){if(n)throw n}var qo,wp;function VS(){if(wp)return qo;wp=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 x=n.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!x&&!g)return!1;var v;for(v in m);return typeof v>"u"||n.call(m,v)},f=function(m,x){i&&x.name==="__proto__"?i(m,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):m[x.name]=x.newValue},d=function(m,x){if(x==="__proto__")if(n.call(m,x)){if(u)return u(m,x).value}else return;return m[x]};return qo=function p(){var m,x,g,v,S,E,_=arguments[0],R=1,A=arguments.length,Y=!1;for(typeof _=="boolean"&&(Y=_,_=arguments[1]||{},R=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});R<A;++R)if(m=arguments[R],m!=null)for(x in m)g=d(_,x),v=d(m,x),_!==v&&(Y&&v&&(c(v)||(S=s(v)))?(S?(S=!1,E=g&&s(g)?g:[]):E=g&&c(g)?g:{},f(_,{name:x,newValue:p(Y,E,v)})):typeof v<"u"&&f(_,{name:x,newValue:v}));return _},qo}var XS=VS();const Yo=Xp(XS);function oc(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 GS(){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 x=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,x?QS(x,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 QS(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 x=m;if(d&&i)throw x;return s(x)}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 cn={basename:FS,dirname:ZS,extname:KS,join:JS,sep:"/"};function FS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');_a(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 ZS(n){if(_a(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 KS(n){_a(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 JS(...n){let a=-1,i;for(;++a<n.length;)_a(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":IS(i)}function IS(n){_a(n);const a=n.codePointAt(0)===47;let i=$S(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function $S(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 _a(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const WS={cwd:PS};function PS(){return"/"}function cc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function ez(n){if(typeof n=="string")n=new URL(n);else if(!cc(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 tz(n)}function tz(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 Vo=["history","path","basename","stem","extname","dirname"];class U0{constructor(a){let i;a?cc(a)?i={path:a}:typeof a=="string"||nz(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":WS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Vo.length;){const c=Vo[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)Vo.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?cn.basename(this.path):void 0}set basename(a){Go(a,"basename"),Xo(a,"basename"),this.path=cn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?cn.dirname(this.path):void 0}set dirname(a){Tp(this.basename,"dirname"),this.path=cn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?cn.extname(this.path):void 0}set extname(a){if(Xo(a,"extname"),Tp(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=cn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){cc(a)&&(a=ez(a)),Go(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?cn.basename(this.path,this.extname):void 0}set stem(a){Go(a,"stem"),Xo(a,"stem"),this.path=cn.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 gt(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 Xo(n,a){if(n&&n.includes(cn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+cn.sep+"`")}function Go(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Tp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function nz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const lz=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),iz={}.hasOwnProperty;class _c extends lz{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=GS()}copy(){const a=new _c;let i=-1;for(;++i<this.attachers.length;){const u=this.attachers[i];a.use(...u)}return a.data(Yo(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(Zo("data",this.frozen),this.namespace[a]=i,this):iz.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Zo("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=eu(a),u=this.parser||this.Parser;return Qo("parse",u),u(String(i),i)}process(a,i){const u=this;return this.freeze(),Qo("process",this.parser||this.Parser),Fo("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(c,f){const d=eu(a),p=u.parse(d);u.run(p,d,function(x,g,v){if(x||!g||!v)return m(x);const S=g,E=u.stringify(S,v);uz(E)?v.value=E:v.result=E,m(x,v)});function m(x,g){x||!g?f(x):c?c(g):i(void 0,g)}}}processSync(a){let i=!1,u;return this.freeze(),Qo("processSync",this.parser||this.Parser),Fo("processSync",this.compiler||this.Compiler),this.process(a,s),Np("processSync","process",i),u;function s(c,f){i=!0,Ep(c),u=f}}run(a,i,u){Cp(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=eu(i);s.run(a,p,m);function m(x,g,v){const S=g||a;x?d(x):f?f(S):u(void 0,S,v)}}}runSync(a,i){let u=!1,s;return this.run(a,i,c),Np("runSync","run",u),s;function c(f,d){Ep(f),s=d,u=!0}}stringify(a,i){this.freeze();const u=eu(i),s=this.compiler||this.Compiler;return Fo("stringify",s),Cp(a),s(a,u)}use(a,...i){const u=this.attachers,s=this.namespace;if(Zo("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[x,...g]=m;p(x,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=Yo(!0,s.settings,m.settings))}function d(m){let x=-1;if(m!=null)if(Array.isArray(m))for(;++x<m.length;){const g=m[x];c(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,x){let g=-1,v=-1;for(;++g<u.length;)if(u[g][0]===m){v=g;break}if(v===-1)u.push([m,...x]);else if(x.length>0){let[S,...E]=x;const _=u[v][1];oc(_)&&oc(S)&&(S=Yo(!0,_,S)),u[v]=[m,S,...E]}}}}const az=new _c().freeze();function Qo(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Fo(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Zo(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 Cp(n){if(!oc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Np(n,a,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function eu(n){return rz(n)?n:new U0(n)}function rz(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function uz(n){return typeof n=="string"||sz(n)}function sz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const oz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ap=[],jp={allowDangerousHtml:!0},cz=/^(https?|ircs?|mailto|xmpp)$/i,fz=[{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 hz(n){const a=dz(n),i=mz(n);return pz(a.runSync(a.parse(i),i),n)}function dz(n){const a=n.rehypePlugins||Ap,i=n.remarkPlugins||Ap,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...jp}:jp;return az().use(Z2).use(i).use(YS,u).use(a)}function mz(n){const a=n.children||"",i=new U0;return typeof a=="string"&&(i.value=a),i}function pz(n,a){const i=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,d=a.unwrapDisallowed,p=a.urlTransform||gz;for(const x of fz)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+oz+x.id,void 0);return Mc(n,m),jb(n,{Fragment:b.Fragment,components:s,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function m(x,g,v){if(x.type==="raw"&&v&&typeof g=="number")return f?v.children.splice(g,1):v.children[g]={type:"text",value:x.value},g;if(x.type==="element"){let S;for(S in Bo)if(Object.hasOwn(Bo,S)&&Object.hasOwn(x.properties,S)){const E=x.properties[S],_=Bo[S];(_===null||_.includes(x.tagName))&&(x.properties[S]=p(String(E||""),S,x))}}if(x.type==="element"){let S=i?!i.includes(x.tagName):c?c.includes(x.tagName):!1;if(!S&&u&&typeof g=="number"&&(S=!u(x,g,v)),S&&v&&typeof g=="number")return d&&x.children?v.children.splice(g,1,...x.children):v.children.splice(g,1),g}}}function gz(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||cz.test(n.slice(0,a))?n:""}function Mp(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 yz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function xz(n,a,i){const s=fu((i||{}).ignore||[]),c=bz(a);let f=-1;for(;++f<c.length;)B0(n,"text",d);function d(m,x){let g=-1,v;for(;++g<x.length;){const S=x[g],E=v?v.children:void 0;if(s(S,E?E.indexOf(S):void 0,v))return;v=S}if(v)return p(m,x)}function p(m,x){const g=x[x.length-1],v=c[f][0],S=c[f][1];let E=0;const R=g.children.indexOf(m);let A=!1,Y=[];v.lastIndex=0;let U=v.exec(m.value);for(;U;){const I=U.index,K={index:U.index,input:U.input,stack:[...x,m]};let H=S(...U,K);if(typeof H=="string"&&(H=H.length>0?{type:"text",value:H}:void 0),H===!1?v.lastIndex=I+1:(E!==I&&Y.push({type:"text",value:m.value.slice(E,I)}),Array.isArray(H)?Y.push(...H):H&&Y.push(H),E=I+U[0].length,A=!0),!v.global)break;U=v.exec(m.value)}return A?(E<m.value.length&&Y.push({type:"text",value:m.value.slice(E)}),g.children.splice(R,1,...Y)):Y=[m],R+Y.length}}function bz(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([vz(s[0]),Sz(s[1])])}return a}function vz(n){return typeof n=="string"?new RegExp(yz(n),"g"):n}function Sz(n){return typeof n=="function"?n:function(){return n}}const Ko="phrasing",Jo=["autolink","link","image","label"];function zz(){return{transforms:[Az],enter:{literalAutolink:Ez,literalAutolinkEmail:Io,literalAutolinkHttp:Io,literalAutolinkWww:Io},exit:{literalAutolink:Nz,literalAutolinkEmail:Cz,literalAutolinkHttp:wz,literalAutolinkWww:Tz}}}function kz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ko,notInConstruct:Jo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ko,notInConstruct:Jo},{character:":",before:"[ps]",after:"\\/",inConstruct:Ko,notInConstruct:Jo}]}}function Ez(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Io(n){this.config.enter.autolinkProtocol.call(this,n)}function wz(n){this.config.exit.autolinkProtocol.call(this,n)}function Tz(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 Cz(n){this.config.exit.autolinkEmail.call(this,n)}function Nz(n){this.exit(n)}function Az(n){xz(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,jz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Mz]],{ignore:["link","linkReference"]})}function jz(n,a,i,u,s){let c="";if(!H0(s)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!_z(i)))return!1;const f=Oz(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 Mz(n,a,i,u){return!H0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function _z(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 Oz(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=Mp(n,"(");let c=Mp(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 H0(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Tl(i)||su(i))&&(!a||i!==47)}q0.peek=Vz;function Dz(){this.buffer()}function Rz(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Lz(){this.buffer()}function Bz(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Uz(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=an(this.sliceSerialize(n)).toLowerCase(),i.label=a}function Hz(n){this.exit(n)}function qz(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=an(this.sliceSerialize(n)).toLowerCase(),i.label=a}function Yz(n){this.exit(n)}function Vz(){return"["}function q0(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 Xz(){return{enter:{gfmFootnoteCallString:Dz,gfmFootnoteCall:Rz,gfmFootnoteDefinitionLabelString:Lz,gfmFootnoteDefinition:Bz},exit:{gfmFootnoteCallString:Uz,gfmFootnoteCall:Hz,gfmFootnoteDefinitionLabelString:qz,gfmFootnoteDefinition:Yz}}}function Gz(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:q0},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"),x=c.enter("label");return p+=d.move(c.safe(c.associationId(u),{before:p,after:"]"})),x(),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?Y0:Qz))),m(),p}}function Qz(n,a,i){return a===0?n:Y0(n,a,i)}function Y0(n,a,i){return(i?"":" ")+n}const Fz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];V0.peek=$z;function Zz(){return{canContainEols:["delete"],enter:{strikethrough:Jz},exit:{strikethrough:Iz}}}function Kz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Fz}],handlers:{delete:V0}}}function Jz(n){this.enter({type:"delete",children:[]},n)}function Iz(n){this.exit(n)}function V0(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 $z(){return"~"}function Wz(n){return n.length}function Pz(n,a){const i=a||{},u=(i.align||[]).concat(),s=i.stringLength||Wz,c=[],f=[],d=[],p=[];let m=0,x=-1;for(;++x<n.length;){const _=[],R=[];let A=-1;for(n[x].length>m&&(m=n[x].length);++A<n[x].length;){const Y=ek(n[x][A]);if(i.alignDelimiters!==!1){const U=s(Y);R[A]=U,(p[A]===void 0||U>p[A])&&(p[A]=U)}_.push(Y)}f[x]=_,d[x]=R}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)c[g]=_p(u[g]);else{const _=_p(u);for(;++g<m;)c[g]=_}g=-1;const v=[],S=[];for(;++g<m;){const _=c[g];let R="",A="";_===99?(R=":",A=":"):_===108?R=":":_===114&&(A=":");let Y=i.alignDelimiters===!1?1:Math.max(1,p[g]-R.length-A.length);const U=R+"-".repeat(Y)+A;i.alignDelimiters!==!1&&(Y=R.length+Y+A.length,Y>p[g]&&(p[g]=Y),S[g]=Y),v[g]=U}f.splice(1,0,v),d.splice(1,0,S),x=-1;const E=[];for(;++x<f.length;){const _=f[x],R=d[x];g=-1;const A=[];for(;++g<m;){const Y=_[g]||"";let U="",I="";if(i.alignDelimiters!==!1){const K=p[g]-(R[g]||0),H=c[g];H===114?U=" ".repeat(K):H===99?K%2?(U=" ".repeat(K/2+.5),I=" ".repeat(K/2-.5)):(U=" ".repeat(K/2),I=U):I=" ".repeat(K)}i.delimiterStart!==!1&&!g&&A.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&Y==="")&&(i.delimiterStart!==!1||g)&&A.push(" "),i.alignDelimiters!==!1&&A.push(U),A.push(Y),i.alignDelimiters!==!1&&A.push(I),i.padding!==!1&&A.push(" "),(i.delimiterEnd!==!1||g!==m-1)&&A.push("|")}E.push(i.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return E.join(`
|
|
262
|
+
`)}function ek(n){return n==null?"":String(n)}function _p(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 tk(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()),nk);return s(),f}function nk(n,a,i){return">"+(i?"":" ")+n}function lk(n,a){return Op(n,a.inConstruct,!0)&&!Op(n,a.notInConstruct,!1)}function Op(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 Dp(n,a,i,u){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
|
|
263
|
+
`&&lk(i.stack,i.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
|
|
264
|
+
`}function ik(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 ak(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 rk(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 uk(n,a,i,u){const s=rk(i),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(ak(n,i)){const g=i.enter("codeIndented"),v=i.indentLines(c,sk);return g(),v}const d=i.createTracker(u),p=s.repeat(Math.max(ik(c,s)+1,3)),m=i.enter("codeFenced");let x=d.move(p);if(n.lang){const g=i.enter(`codeFencedLang${f}`);x+=d.move(i.safe(n.lang,{before:x,after:" ",encode:["`"],...d.current()})),g()}if(n.lang&&n.meta){const g=i.enter(`codeFencedMeta${f}`);x+=d.move(" "),x+=d.move(i.safe(n.meta,{before:x,after:`
|
|
265
|
+
`,encode:["`"],...d.current()})),g()}return x+=d.move(`
|
|
266
|
+
`),c&&(x+=d.move(c+`
|
|
267
|
+
`)),x+=d.move(p),m(),x}function sk(n,a,i){return(i?"":" ")+n}function Oc(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 ok(n,a,i,u){const s=Oc(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 ck(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 Na(n){return"&#x"+n.toString(16).toUpperCase()+";"}function uu(n,a,i){const u=Si(n),s=Si(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}}X0.peek=fk;function X0(n,a,i,u){const s=ck(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),x=uu(u.before.charCodeAt(u.before.length-1),m,s);x.inside&&(p=Na(m)+p.slice(1));const g=p.charCodeAt(p.length-1),v=uu(u.after.charCodeAt(0),g,s);v.inside&&(p=p.slice(0,-1)+Na(g));const S=f.move(s);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:x.outside},d+p+S}function fk(n,a,i){return i.options.emphasis||"*"}function hk(n,a){let i=!1;return Mc(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,uc}),!!((!n.depth||n.depth<3)&&Ec(n)&&(a.options.setext||i))}function dk(n,a,i,u){const s=Math.max(Math.min(6,n.depth||1),1),c=i.createTracker(u);if(hk(n,i)){const x=i.enter("headingSetext"),g=i.enter("phrasing"),v=i.containerPhrasing(n,{...c.current(),before:`
|
|
269
|
+
`,after:`
|
|
270
|
+
`});return g(),x(),v+`
|
|
271
|
+
`+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.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=Na(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,i.options.closeAtx&&(m+=" "+f),p(),d(),m}G0.peek=mk;function G0(n){return n.value||""}function mk(){return"<"}Q0.peek=pk;function Q0(n,a,i,u){const s=Oc(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 pk(){return"!"}F0.peek=gk;function F0(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 x=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=x,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function gk(){return"!"}Z0.peek=yk;function Z0(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 yk(){return"`"}function K0(n,a){const i=Ec(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))}J0.peek=xk;function J0(n,a,i,u){const s=Oc(i),c=s==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let d,p;if(K0(n,i)){const x=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=x,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 xk(n,a,i){return K0(n,i)?"<":"["}I0.peek=bk;function I0(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 x=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=x,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function bk(){return"["}function Dc(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 vk(n){const a=Dc(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 Sk(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 $0(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 zk(n,a,i,u){const s=i.enter("list"),c=i.bulletCurrent;let f=n.ordered?Sk(i):Dc(i);const d=n.ordered?f==="."?")":".":vk(i);let p=a&&i.bulletLastUsed?f===i.bulletLastUsed:!1;if(!n.ordered){const x=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&x&&(!x.children||!x.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),$0(i)===f&&x){let g=-1;for(;++g<n.children.length;){const v=n.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.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 kk(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 Ek(n,a,i,u){const s=kk(i);let c=i.bulletCurrent||Dc(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()),x);return p(),m;function x(g,v,S){return v?(S?"":" ".repeat(f))+g:(S?c:c+" ".repeat(f-c.length))+g}}function wk(n,a,i,u){const s=i.enter("paragraph"),c=i.enter("phrasing"),f=i.containerPhrasing(n,u);return c(),s(),f}const Tk=fu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Ck(n,a,i,u){return(n.children.some(function(f){return Tk(f)})?i.containerPhrasing:i.containerFlow).call(i,n,u)}function Nk(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}W0.peek=Ak;function W0(n,a,i,u){const s=Nk(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),x=uu(u.before.charCodeAt(u.before.length-1),m,s);x.inside&&(p=Na(m)+p.slice(1));const g=p.charCodeAt(p.length-1),v=uu(u.after.charCodeAt(0),g,s);v.inside&&(p=p.slice(0,-1)+Na(g));const S=f.move(s+s);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:x.outside},d+p+S}function Ak(n,a,i){return i.options.strong||"*"}function jk(n,a,i,u){return i.safe(n.value,u)}function Mk(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 _k(n,a,i){const u=($0(i)+(i.options.ruleSpaces?" ":"")).repeat(Mk(i));return i.options.ruleSpaces?u.slice(0,-1):u}const P0={blockquote:tk,break:Dp,code:uk,definition:ok,emphasis:X0,hardBreak:Dp,heading:dk,html:G0,image:Q0,imageReference:F0,inlineCode:Z0,link:J0,linkReference:I0,list:zk,listItem:Ek,paragraph:wk,root:Ck,strong:W0,text:jk,thematicBreak:_k};function Ok(){return{enter:{table:Dk,tableData:Rp,tableHeader:Rp,tableRow:Lk},exit:{codeText:Bk,table:Rk,tableData:$o,tableHeader:$o,tableRow:$o}}}function Dk(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 Rk(n){this.exit(n),this.data.inTable=void 0}function Lk(n){this.enter({type:"tableRow",children:[]},n)}function $o(n){this.exit(n)}function Rp(n){this.enter({type:"tableCell",children:[]},n)}function Bk(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,Uk));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function Uk(n,a){return a==="|"?a:n}function Hk(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:v,table:f,tableCell:p,tableRow:d}};function f(S,E,_,R){return m(x(S,_,R),S.align)}function d(S,E,_,R){const A=g(S,_,R),Y=m([A]);return Y.slice(0,Y.indexOf(`
|
|
275
|
+
`))}function p(S,E,_,R){const A=_.enter("tableCell"),Y=_.enter("phrasing"),U=_.containerPhrasing(S,{...R,before:c,after:c});return Y(),A(),U}function m(S,E){return Pz(S,{align:E,alignDelimiters:u,padding:i,stringLength:s})}function x(S,E,_){const R=S.children;let A=-1;const Y=[],U=E.enter("table");for(;++A<R.length;)Y[A]=g(R[A],E,_);return U(),Y}function g(S,E,_){const R=S.children;let A=-1;const Y=[],U=E.enter("tableRow");for(;++A<R.length;)Y[A]=p(R[A],S,E,_);return U(),Y}function v(S,E,_){let R=P0.inlineCode(S,E,_);return _.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function qk(){return{exit:{taskListCheckValueChecked:Lp,taskListCheckValueUnchecked:Lp,paragraph:Vk}}}function Yk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Xk}}}function Lp(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function Vk(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 Xk(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=P0.listItem(n,a,i,{...u,...d.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(x){return x+f}}function Gk(){return[zz(),Xz(),Zz(),Ok(),qk()]}function Qk(n){return{extensions:[kz(),Gz(n),Kz(),Hk(n),Yk()]}}const Fk={tokenize:Wk,partial:!0},eg={tokenize:Pk,partial:!0},tg={tokenize:e3,partial:!0},ng={tokenize:t3,partial:!0},Zk={tokenize:n3,partial:!0},lg={name:"wwwAutolink",tokenize:Ik,previous:ag},ig={name:"protocolAutolink",tokenize:$k,previous:rg},On={name:"emailAutolink",tokenize:Jk,previous:ug},fn={};function Kk(){return{text:fn}}let wl=48;for(;wl<123;)fn[wl]=On,wl++,wl===58?wl=65:wl===91&&(wl=97);fn[43]=On;fn[45]=On;fn[46]=On;fn[95]=On;fn[72]=[On,ig];fn[104]=[On,ig];fn[87]=[On,lg];fn[119]=[On,lg];function Jk(n,a,i){const u=this;let s,c;return f;function f(g){return!fc(g)||!ug.call(u,u.previous)||Rc(u.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(g))}function d(g){return fc(g)?(n.consume(g),d):g===64?(n.consume(g),p):i(g)}function p(g){return g===46?n.check(Zk,x,m)(g):g===45||g===95||pt(g)?(c=!0,n.consume(g),p):x(g)}function m(g){return n.consume(g),s=!0,p}function x(g){return c&&s&&vt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(g)):i(g)}}function Ik(n,a,i){const u=this;return s;function s(f){return f!==87&&f!==119||!ag.call(u,u.previous)||Rc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Fk,n.attempt(eg,n.attempt(tg,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function $k(n,a,i){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&rg.call(u,u.previous)&&!Rc(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),n.consume(g),d):i(g)}function d(g){if(vt(g)&&s.length<5)return s+=String.fromCodePoint(g),n.consume(g),d;if(g===58){const v=s.toLowerCase();if(v==="http"||v==="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||iu(g)||Ge(g)||Tl(g)||su(g)?i(g):n.attempt(eg,n.attempt(tg,x),i)(g)}function x(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(g)}}function Wk(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 Pk(n,a,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(ng,p,d)(m):m===null||Ge(m)||Tl(m)||m!==45&&su(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 e3(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(ng,a,c)(f):f===null||Ge(f)||Tl(f)?a(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function t3(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||Ge(d)||Tl(d)?a(d):i(d)}function s(d){return d===null||d===40||d===91||Ge(d)||Tl(d)?a(d):u(d)}function c(d){return vt(d)?f(d):i(d)}function f(d){return d===59?(n.consume(d),u):vt(d)?(n.consume(d),f):i(d)}}function n3(n,a,i){return u;function u(c){return n.consume(c),s}function s(c){return pt(c)?i(c):a(c)}}function ag(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Ge(n)}function rg(n){return!vt(n)}function ug(n){return!(n===47||fc(n))}function fc(n){return n===43||n===45||n===46||n===95||pt(n)}function Rc(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 l3={tokenize:f3,partial:!0};function i3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:s3,continuation:{tokenize:o3},exit:c3}},text:{91:{name:"gfmFootnoteCall",tokenize:u3},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:a3,resolveTo:r3}}}}function a3(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=an(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 r3(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 u3(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||Ge(g))return i(g);if(g===93){n.exit("chunkString");const v=n.exit("gfmFootnoteCallString");return s.includes(an(u.sliceSerialize(v)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(g)}return Ge(g)||(f=!0),c++,n.consume(g),g===92?x:m}function x(g){return g===91||g===92||g===93?(n.consume(g),c++,m):m(g)}}function s3(n,a,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c,f=0,d;return p;function p(E){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(E),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(E){return E===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(E),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",x):i(E)}function x(E){if(f>999||E===93&&!d||E===null||E===91||Ge(E))return i(E);if(E===93){n.exit("chunkString");const _=n.exit("gfmFootnoteDefinitionLabelString");return c=an(u.sliceSerialize(_)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(E),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),v}return Ge(E)||(d=!0),f++,n.consume(E),E===92?g:x}function g(E){return E===91||E===92||E===93?(n.consume(E),f++,x):x(E)}function v(E){return E===58?(n.enter("definitionMarker"),n.consume(E),n.exit("definitionMarker"),s.includes(c)||s.push(c),Me(n,S,"gfmFootnoteDefinitionWhitespace")):i(E)}function S(E){return a(E)}}function o3(n,a,i){return n.check(Ma,a,n.attempt(l3,a,i))}function c3(n){n.exit("gfmFootnoteDefinition")}function f3(n,a,i){const u=this;return Me(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 h3(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 x={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)},v=[["enter",x,d],["enter",f[m][1],d],["exit",f[m][1],d],["enter",g,d]],S=d.parser.constructs.insideSpan.null;S&&Yt(v,v.length,0,ou(S,f.slice(m+1,p),d)),Yt(v,v.length,0,[["exit",g,d],["enter",f[p][1],d],["exit",f[p][1],d],["exit",x,d]]),Yt(f,m-1,p-m+3,v),p=m+v.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,x=this.events;let g=0;return v;function v(E){return m===126&&x[x.length-1][1].type!=="characterEscape"?p(E):(f.enter("strikethroughSequenceTemporary"),S(E))}function S(E){const _=Si(m);if(E===126)return g>1?p(E):(f.consume(E),g++,S);if(g<2&&!i)return p(E);const R=f.exit("strikethroughSequenceTemporary"),A=Si(E);return R._open=!A||A===2&&!!_,R._close=!_||_===2&&!!A,d(E)}}}class d3{constructor(){this.map=[]}add(a,i,u){m3(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 m3(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 p3(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 g3(){return{flow:{null:{name:"table",tokenize:y3,resolveAll:x3}}}}function y3(n,a,i){const u=this;let s=0,c=0,f;return d;function d(q){let te=u.events.length-1;for(;te>-1;){const ae=u.events[te][1].type;if(ae==="lineEnding"||ae==="linePrefix")te--;else break}const le=te>-1?u.events[te][1].type:null,ge=le==="tableHead"||le==="tableRow"?H:p;return ge===H&&u.parser.lazy[u.now().line]?i(q):ge(q)}function p(q){return n.enter("tableHead"),n.enter("tableRow"),m(q)}function m(q){return q===124||(f=!0,c+=1),x(q)}function x(q){return q===null?i(q):de(q)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(q),n.exit("lineEnding"),S):i(q):Te(q)?Me(n,x,"whitespace")(q):(c+=1,f&&(f=!1,s+=1),q===124?(n.enter("tableCellDivider"),n.consume(q),n.exit("tableCellDivider"),f=!0,x):(n.enter("data"),g(q)))}function g(q){return q===null||q===124||Ge(q)?(n.exit("data"),x(q)):(n.consume(q),q===92?v:g)}function v(q){return q===92||q===124?(n.consume(q),g):g(q)}function S(q){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(q):(n.enter("tableDelimiterRow"),f=!1,Te(q)?Me(n,E,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):E(q))}function E(q){return q===45||q===58?R(q):q===124?(f=!0,n.enter("tableCellDivider"),n.consume(q),n.exit("tableCellDivider"),_):K(q)}function _(q){return Te(q)?Me(n,R,"whitespace")(q):R(q)}function R(q){return q===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(q),n.exit("tableDelimiterMarker"),A):q===45?(c+=1,A(q)):q===null||de(q)?I(q):K(q)}function A(q){return q===45?(n.enter("tableDelimiterFiller"),Y(q)):K(q)}function Y(q){return q===45?(n.consume(q),Y):q===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(q),n.exit("tableDelimiterMarker"),U):(n.exit("tableDelimiterFiller"),U(q))}function U(q){return Te(q)?Me(n,I,"whitespace")(q):I(q)}function I(q){return q===124?E(q):q===null||de(q)?!f||s!==c?K(q):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(q)):K(q)}function K(q){return i(q)}function H(q){return n.enter("tableRow"),$(q)}function $(q){return q===124?(n.enter("tableCellDivider"),n.consume(q),n.exit("tableCellDivider"),$):q===null||de(q)?(n.exit("tableRow"),a(q)):Te(q)?Me(n,$,"whitespace")(q):(n.enter("data"),ue(q))}function ue(q){return q===null||q===124||Ge(q)?(n.exit("data"),$(q)):(n.consume(q),q===92?ce:ue)}function ce(q){return q===92||q===124?(n.consume(q),ue):ue(q)}}function x3(n,a){let i=-1,u=!0,s=0,c=[0,0,0,0],f=[0,0,0,0],d=!1,p=0,m,x,g;const v=new d3;for(;++i<n.length;){const S=n[i],E=S[1];S[0]==="enter"?E.type==="tableHead"?(d=!1,p!==0&&(Bp(v,a,p,m,x),x=void 0,p=0),m={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",m,a]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(u=!0,g=void 0,c=[0,0,0,0],f=[0,i+1,0,0],d&&(d=!1,x={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",x,a]])),s=E.type==="tableDelimiterRow"?2:x?3:1):s&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=tu(v,a,c,s,void 0,g),c=[0,0,0,0]),f[2]=i)):E.type==="tableCellDivider"&&(u?u=!1:(c[1]!==0&&(f[0]=f[1],g=tu(v,a,c,s,void 0,g)),c=f,f=[c[1],i,0,0])):E.type==="tableHead"?(d=!0,p=i):E.type==="tableRow"||E.type==="tableDelimiterRow"?(p=i,c[1]!==0?(f[0]=f[1],g=tu(v,a,c,s,i,g)):f[1]!==0&&(g=tu(v,a,f,s,i,g)),s=0):s&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(f[3]=i)}for(p!==0&&Bp(v,a,p,m,x),v.consume(a.events),i=-1;++i<a.events.length;){const S=a.events[i];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=p3(a.events,i))}return n}function tu(n,a,i,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},bi(a.events,i[0])),n.add(i[0],0,[["exit",c,a]]));const p=bi(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=bi(a.events,i[2]),x=bi(a.events,i[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},x)};if(n.add(i[2],0,[["enter",g,a]]),u!==2){const v=a.events[i[2]],S=a.events[i[3]];if(v[1].end=Object.assign({},S[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const E=i[2]+1,_=i[3]-i[2]-1;n.add(E,_,[])}}n.add(i[3]+1,0,[["exit",g,a]])}return s!==void 0&&(c.end=Object.assign({},bi(a.events,s)),n.add(s,0,[["exit",c,a]]),c=void 0),c}function Bp(n,a,i,u,s){const c=[],f=bi(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 bi(n,a){const i=n[a],u=i[0]==="enter"?"start":"end";return i[1][u]}const b3={name:"tasklistCheck",tokenize:S3};function v3(){return{text:{91:b3}}}function S3(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 Ge(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 de(p)?a(p):Te(p)?n.check({tokenize:z3},a,i)(p):i(p)}}function z3(n,a,i){return Me(n,u,"whitespace");function u(s){return s===null?i(s):a(s)}}function k3(n){return x0([Kk(),i3(),h3(n),g3(),v3()])}const E3={};function w3(n){const a=this,i=n||E3,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(k3(i)),c.push(Gk()),f.push(Qk(i))}function T3(n){return n==="completed"?b.jsx(Zp,{size:14,className:"text-emerald-400"}):n==="in_progress"?b.jsx(Wp,{size:14,className:"text-amber-400 animate-spin"}):b.jsx(Ix,{size:14,className:"text-zinc-500"})}function C3(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function N3(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($p,{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:T3(s.status)}),b.jsx("span",{className:`text-xs leading-relaxed ${C3(s.status)}`,children:s.content})]},c))})]})})}class A3{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=Y=>{if(Y=this.postProcess(Y,u),s){setTimeout(function(){s(Y)},0);return}else return Y},d=i.length,p=a.length;let m=1,x=d+p;u.maxEditLength!=null&&(x=Math.min(x,u.maxEditLength));const g=(c=u.timeout)!==null&&c!==void 0?c:1/0,v=Date.now()+g,S=[{oldPos:-1,lastComponent:void 0}];let E=this.extractCommon(S[0],i,a,0,u);if(S[0].oldPos+1>=p&&E+1>=d)return f(this.buildValues(S[0].lastComponent,i,a));let _=-1/0,R=1/0;const A=()=>{for(let Y=Math.max(_,-m);Y<=Math.min(R,m);Y+=2){let U;const I=S[Y-1],K=S[Y+1];I&&(S[Y-1]=void 0);let H=!1;if(K){const ue=K.oldPos-Y;H=K&&0<=ue&&ue<d}const $=I&&I.oldPos+1<p;if(!H&&!$){S[Y]=void 0;continue}if(!$||H&&I.oldPos<K.oldPos?U=this.addToPath(K,!0,!1,0,u):U=this.addToPath(I,!1,!0,1,u),E=this.extractCommon(U,i,a,Y,u),U.oldPos+1>=p&&E+1>=d)return f(this.buildValues(U.lastComponent,i,a))||!0;S[Y]=U,U.oldPos+1>=p&&(R=Math.min(R,Y-1)),E+1>=d&&(_=Math.max(_,Y+1))}m++};if(s)(function Y(){setTimeout(function(){if(m>x||Date.now()>v)return s(void 0);A()||Y()},0)})();else for(;m<=x&&Date.now()<=v;){const Y=A();if(Y)return Y}}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,x=0;for(;m+1<f&&p+1<d&&this.equals(u[p+1],i[m+1],c);)m++,p++,x++,c.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return x&&!c.oneChangePerToken&&(a.lastComponent={count:x,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 x=s[d];if(x.removed)x.value=this.join(u.slice(m,m+x.count)),m+=x.count;else{if(!x.added&&this.useLongestToken){let g=i.slice(p,p+x.count);g=g.map(function(v,S){const E=u[m+S];return E.length>v.length?E:v}),x.value=this.join(g)}else x.value=this.join(i.slice(p,p+x.count));p+=x.count,x.added||(m+=x.count)}}return s}}class j3 extends A3{constructor(){super(...arguments),this.tokenize=_3}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 M3=new j3;function Up(n,a,i){return M3.diff(n,a,i)}function _3(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 O3={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Hp(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:x}=d;Up(i,u,Object.assign(Object.assign({},d),{callback:g=>{const v=m(g);x(v)}}))}else return m(Up(i,u,d));function m(x){if(!x)return;x.push({value:"",lines:[]});function g(Y){return Y.map(function(U){return" "+U})}const v=[];let S=0,E=0,_=[],R=1,A=1;for(let Y=0;Y<x.length;Y++){const U=x[Y],I=U.lines||R3(U.value);if(U.lines=I,U.added||U.removed){if(!S){const K=x[Y-1];S=R,E=A,K&&(_=p>0?g(K.lines.slice(-p)):[],S-=_.length,E-=_.length)}for(const K of I)_.push((U.added?"+":"-")+K);U.added?A+=I.length:R+=I.length}else{if(S)if(I.length<=p*2&&Y<x.length-2)for(const K of g(I))_.push(K);else{const K=Math.min(I.length,p);for(const $ of g(I.slice(0,K)))_.push($);const H={oldStart:S,oldLines:R-S+K,newStart:E,newLines:A-E+K,lines:_};v.push(H),S=0,E=0,_=[]}R+=I.length,A+=I.length}}for(const Y of v)for(let U=0;U<Y.lines.length;U++)Y.lines[U].endsWith(`
|
|
281
|
+
`)?Y.lines[U]=Y.lines[U].slice(0,-1):(Y.lines.splice(U+1,0,"\"),U++);return{oldFileName:n,newFileName:a,oldHeader:s,newHeader:c,hunks:v}}}function hc(n,a){if(a||(a=O3),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=>hc(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 D3(n,a,i,u,s,c,f){if(typeof f=="function"&&(f={callback:f}),f!=null&&f.callback){const{callback:d}=f;Hp(n,a,i,u,s,c,Object.assign(Object.assign({},f),{callback:p=>{d(p?hc(p,f.headerOptions):void 0)}}))}else{const d=Hp(n,a,i,u,s,c,f);return d?hc(d,f==null?void 0:f.headerOptions):void 0}}function R3(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 Ei(n){const{text:a,className:i="",title:u="Copy"}=n,[s,c]=ne.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(Aa,{size:12,className:"text-emerald-400"}):b.jsx(mc,{size:12,className:"text-zinc-500 hover:text-zinc-300"})})}function sg(n){return n.split("/").slice(-2).join("/")}function L3(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 B3(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.old_string||"",u=a.new_string||"",s=sg(a.file_path),c=D3("a/"+s,"b/"+s,i,u,"","",{context:3}),f=L3(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(l1,{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(A1,{size:12}),d]}),p>0&&b.jsxs("span",{className:"flex items-center gap-0.5 text-rose-400",children:[b.jsx(v1,{size:12}),p]}),b.jsx(Ei,{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,x)=>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},x):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||" "]},x):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||" "]},x):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||" "]},x))})})]})})}function U3(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.content||"",u=sg(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(Jp,{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(Ei,{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 H3(n){const{input:a}=n,[i,u]=ne.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(t0,{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(Aa,{size:12,className:"text-green-400"}):b.jsx(mc,{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 q3(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(Zp,{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(B1,{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(Pp,{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 Y3(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(lu,{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 V3(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(gc,{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 qp(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(lu,{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(gc,{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(Ip,{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(Ei,{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(lu,{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 X3(n){return n.split("/").slice(-2).join("/")}function og(n){var i;const a=n.split(".");return a.length>1?(i=a.pop())==null?void 0:i.toLowerCase():""}function cg(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 G3(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=X3(a.file_path),u=og(a.file_path),s=u?cg(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(Kp,{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(Ei,{text:a.file_path})]})]})})})}function Q3(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?og(i):"",p=d?cg(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(Ip,{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,x)=>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:x+1}),b.jsx("td",{className:"pl-3 pr-3 py-0.5 text-zinc-300 whitespace-pre",children:m||" "})]},x))})}),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 F3(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(Kx,{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?ec:e0;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 Z3(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 K3(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 J3(n){const{input:a}=n;if(!a)return null;const i=Z3(a.subagent_type),u=K3(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(Fp,{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(Xx,{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(M1,{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(E1,{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(Pp,{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 fg=ne.memo(function(a){const{content:i,className:u=""}=a;return b.jsx("div",{className:`break-words ${u}`,children:b.jsx(hz,{remarkPlugins:[w3],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,x;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 v=(((m=f.properties)==null?void 0:m.className)||[]).find(_=>_.startsWith("language-")),S=(v==null?void 0:v.replace("language-",""))||"code",E=((x=f.children)==null?void 0:x.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:S}),b.jsx(Ei,{text:E})]}),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:E})})]})}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 I3(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 $3(n){var i;const a=(i=n.message)==null?void 0:i.content;return a?typeof a=="string"?jt(a):a.filter(u=>u.type==="text"&&u.text).map(u=>jt(u.text)).join(`
|
|
295
|
+
`):""}const W3=ne.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(R=>R.type==="text"),f=()=>!s||typeof s=="string"?[]:s.filter(R=>R.type==="tool_use"||R.type==="tool_result"||R.type==="thinking"),d=()=>c().filter(R=>R.text&&jt(R.text).length>0),p=()=>typeof s=="string"?jt(s).length>0:d().length>0,m=f(),x=d(),g=p(),v=m.length>0,S=Array.isArray(s)?I3(s):new Map;if(!g&&v)return b.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((R,A)=>b.jsx(Po,{block:R,toolMap:S},A))});if(!g&&!v)return null;const E=$3(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:[E&&b.jsx(Ei,{text:E,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:E?"pr-10":"",children:typeof s=="string"?u?b.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:jt(s)}):b.jsx(fg,{content:jt(s)}):b.jsx("div",{className:"flex flex-col gap-1",children:x.map((R,A)=>b.jsx(Po,{block:R,isUser:u,toolMap:S},A))})})]}),v&&b.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((R,A)=>b.jsx(Po,{block:R,toolMap:S},A))})]})})}),Yp={todowrite:$p,read:Kp,bash:t0,grep:lu,edit:T1,write:Jp,glob:gc,task:Fp},P3=[{patterns:["web","fetch","url"],icon:c1},{patterns:["ask","question"],icon:x1},{patterns:["git","commit"],icon:s1},{patterns:["sql","database","query"],icon:Px},{patterns:["file","disk"],icon:h1}];function eE(n){const a=n.toLowerCase();if(Yp[a])return Yp[a];for(const{patterns:i,icon:u}of P3)if(i.some(s=>a.includes(s)))return u;return H1}function Wo(n){return n.split("/").slice(-2).join("/")}const tE={read:n=>n.file_path?Wo(String(n.file_path)):null,edit:n=>n.file_path?Wo(String(n.file_path)):null,write:n=>n.file_path?Wo(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 nE(n,a){if(!a)return null;const i=n.toLowerCase(),u=tE[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 lE(n){const{toolName:a,input:i}=n,u=a.toLowerCase();return u==="todowrite"&&i.todos?b.jsx(N3,{todos:i.todos}):u==="edit"&&i.file_path?b.jsx(B3,{input:i}):u==="write"&&i.file_path?b.jsx(U3,{input:i}):u==="bash"&&i.command?b.jsx(H3,{input:i}):u==="grep"&&i.pattern?b.jsx(Y3,{input:i}):u==="glob"&&i.pattern?b.jsx(V3,{input:i}):u==="read"&&i.file_path?b.jsx(G3,{input:i}):u==="askuserquestion"&&i.questions?b.jsx(F3,{input:i}):u==="task"&&i.prompt?b.jsx(J3,{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 iE(n){const{toolName:a,content:i,isError:u}=n,s=a.toLowerCase();if(s==="bash")return b.jsx(q3,{content:i,isError:u});if(s==="glob")return b.jsx(qp,{content:i,isFileList:!0});if(s==="grep")return b.jsx(qp,{content:i});if(s==="read")return b.jsx(Q3,{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(Aa,{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 Po(n){var f;const{block:a,isUser:i,toolMap:u}=n,[s,c]=ne.useState(!1);if(a.type==="text"&&a.text){const d=jt(a.text);return d?i?b.jsx("div",{className:"whitespace-pre-wrap break-words text-[13px] leading-relaxed",children:d}):b.jsx(fg,{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(m1,{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=eE(a.name||""),x=nE(a.name||"",d),g=((f=a.name)==null?void 0:f.toLowerCase())||"",v=g==="todowrite"||g==="edit"||g==="write"||g==="bash"||g==="grep"||g==="glob"||g==="read"||g==="askuserquestion"||g==="task",S=g==="todowrite"||g==="askuserquestion"||g==="task",E=s||S;return b.jsxs("div",{className:E?"w-full":"",children:[b.jsxs("button",{onClick:()=>p&&!S&&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}),x&&b.jsx("span",{className:"text-slate-500 font-normal truncate max-w-[200px]",children:x}),p&&!S&&b.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),E&&p&&v?b.jsx(lE,{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=jt(p),x=m.length>0,g=60,v=x&&!s?m.slice(0,g)+(m.length>g?"...":""):null,S=a.tool_use_id&&u&&u.get(a.tool_use_id)||"";return b.jsxs("div",{className:s?"w-full":"",children:[b.jsxs("button",{onClick:()=>x&&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(yc,{size:12,className:"opacity-70"}):b.jsx(Aa,{size:12,className:"opacity-70"}),b.jsx("span",{className:"font-medium",children:d?"error":"result"}),v&&!s&&b.jsx("span",{className:`font-normal truncate max-w-[200px] ${d?"text-rose-500/70":"text-teal-500/70"}`,children:v}),x&&b.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),s&&x&&b.jsx(iE,{toolName:S,content:m,isError:d})]})}return null}function aE({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 rE=10,uE=1e3,sE=3e4,oE=100;function cE(n){const{sessionId:a}=n,[i,u]=ne.useState([]),[s,c]=ne.useState(!0),[f,d]=ne.useState(!0),p=ne.useRef(null),m=ne.useRef(null),x=ne.useRef(0),g=ne.useRef(!1),v=ne.useRef(0),S=ne.useRef(null),E=ne.useRef(null),_=ne.useRef(!0),R=ne.useCallback(()=>{if(!_.current)return;S.current&&S.current.close();const K=new EventSource(`/api/conversation/${a}/stream?offset=${x.current}`);S.current=K,K.addEventListener("messages",H=>{v.current=0;const $=JSON.parse(H.data);c(!1),u(ue=>{const ce=new Set(ue.map(te=>te.uuid).filter(Boolean)),q=$.filter(te=>!ce.has(te.uuid));return q.length===0?ue:(x.current+=q.length,[...ue,...q])})}),K.onerror=()=>{if(K.close(),c(!1),!!_.current&&v.current<rE){const H=Math.min(uE*Math.pow(2,v.current),sE);v.current++,E.current=setTimeout(()=>R(),H)}}},[a]);ne.useEffect(()=>(_.current=!0,c(!0),u([]),x.current=0,v.current=0,R(),()=>{_.current=!1,E.current&&clearTimeout(E.current),S.current&&S.current.close()}),[R]);const A=ne.useCallback(()=>{m.current&&(g.current=!0,m.current.scrollIntoView({behavior:"instant"}),requestAnimationFrame(()=>{g.current=!1}))},[]);ne.useEffect(()=>{f&&A()},[i,f,A]);const Y=()=>{if(!p.current||g.current)return;const{scrollTop:K,scrollHeight:H,clientHeight:$}=p.current,ue=H-K-$<oE;d(ue)},U=i.find(K=>K.type==="summary"),I=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:Y,className:"h-full overflow-y-auto bg-zinc-950",children:b.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-4",children:[U&&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:U.summary}),b.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[I.length," messages"]})]}),b.jsx("div",{className:"flex flex-col gap-2",children:I.map((K,H)=>b.jsx("div",{ref:H===I.length-1?m:void 0,children:b.jsx(W3,{message:K})},K.uuid||H))})]})}),!f&&b.jsx(aE,{onClick:()=>{d(!0),A()}})]})}function fE(n,a){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=a,f=ne.useRef(null),d=ne.useRef(0),p=ne.useRef(null),m=ne.useRef(!0),x=ne.useRef(i);x.current=i;const g=ne.useCallback(()=>{if(!m.current)return;f.current&&f.current.close();const v=new EventSource(n);f.current=v;for(const S of x.current)v.addEventListener(S.eventName,E=>{d.current=0,S.onMessage(E)});v.onerror=()=>{if(v.close(),!!m.current)if(d.current<s){const S=Math.min(c*Math.pow(2,d.current),3e4);d.current++,p.current=setTimeout(()=>{g()},S)}else u==null||u()}},[n,u,s,c]);ne.useEffect(()=>(m.current=!0,g(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[g])}const hE={mode:"full",includeTools:!0,includeThoughts:!0,truncateToolResults:!0,truncationMode:"lines",maxToolResultLength:30};function dE(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 mE(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 pE(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=mE(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=jt(u);return d?`${s}
|
|
298
|
+
\`\`\`
|
|
299
|
+
${d}
|
|
300
|
+
...
|
|
301
|
+
(truncated)
|
|
302
|
+
\`\`\``:i?"**Error** (empty)":"**Result:** Success"}}const c=jt(u);return c?`${s}
|
|
303
|
+
\`\`\`
|
|
304
|
+
${c}
|
|
305
|
+
\`\`\``:i?"**Error** (empty)":"**Result:** Success"}function gE(n){const a=n.thinking||"";return a?`<details>
|
|
306
|
+
<summary>💡 Thinking</summary>
|
|
307
|
+
|
|
308
|
+
${a}
|
|
309
|
+
|
|
310
|
+
</details>`:""}function yE(n,a,i){if(typeof n=="string")return a.mode==="tools-only"?"":jt(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=jt(c.text);f&&u.push(f)}else if(c.type==="thinking"&&c.thinking&&a.includeThoughts){const f=gE(c);f&&u.push(f)}else c.type==="tool_use"?(s||a.includeTools)&&u.push(dE(c)):c.type==="tool_result"&&(s||a.includeTools)&&u.push(pE(c,a));return u.join(`
|
|
311
|
+
|
|
312
|
+
`)}function xE(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:jt(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&&jt(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 bE(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"||!xE(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=yE(i,a);if(s&&u)return c.trim()?c:"";const f=u?"**User:**":"**Assistant:**";return c.trim()?`${f}
|
|
315
|
+
|
|
316
|
+
${c}`:""}function hg(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=bE(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 Vp(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 vE(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 dg(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 SE(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 dg(c.id),d=hg(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 zE(n){const{sessions:a,messages:i,onClose:u}=n,s=a.length>1,[c,f]=ne.useState({...hE}),[d,p]=ne.useState(!1),[m,x]=ne.useState(null),g=ne.useCallback(async()=>{console.log("=== EXPORT STARTED ==="),p(!0);try{if(s){const v=await SE(a,c,(E,_)=>x({current:E,total:_})),S=new Date().toISOString().split("T")[0];Vp(v,`${S}-conversations-export.md`)}else{const v=a[0];console.log("Fetching session:",v.id);const S=i??await dg(v.id);console.log("Fetched",S.length,"messages"),await new Promise(_=>setTimeout(_,0)),console.log("Starting markdown conversion...");const E=hg(S,c,v);console.log("Generated",E.length,"chars"),Vp(E,vE(v)),console.log("Download triggered")}u()}catch(v){console.error("Export failed:",v)}finally{p(!1),x(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(yc,{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(v=>({...v,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(v=>({...v,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:v=>f(S=>({...S,includeTools:v.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:v=>f(S=>({...S,includeThoughts:v.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:v=>f(S=>({...S,truncateToolResults:v.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(v=>({...v,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(v=>({...v,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:v=>f(S=>({...S,maxToolResultLength:Math.max(c.truncationMode==="lines"?1:100,parseInt(v.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(Wp,{className:"w-4 h-4 animate-spin"}),"Exporting..."]}):b.jsxs(b.Fragment,{children:[b.jsx(pc,{className:"w-4 h-4"}),"Export Markdown"]})})]})]})})}function kE(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:n0(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(pc,{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(Aa,{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(mc,{className:"w-3.5 h-3.5"}),b.jsx("span",{children:"Copy Resume Command"})]})})]})]})}function EE(){const[n,a]=ne.useState([]),[i,u]=ne.useState([]),[s,c]=ne.useState(null),[f,d]=ne.useState(null),[p,m]=ne.useState(!0),[x,g]=ne.useState(!1),[v,S]=ne.useState(!1),[E,_]=ne.useState(!1),[R,A]=ne.useState(new Set),[Y,U]=ne.useState(!1),[I,K]=ne.useState([]),[H,$]=ne.useState(void 0),ue=ne.useCallback((L,k)=>{const P=`cd ${k} && claude --resume ${L}`;navigator.clipboard.writeText(P).then(()=>{S(!0),setTimeout(()=>S(!1),2e3)})},[]),ce=ne.useMemo(()=>f&&n.find(L=>L.id===f)||null,[n,f]);ne.useEffect(()=>{fetch("/api/projects").then(L=>L.json()).then(u).catch(console.error)},[]);const q=ne.useCallback(L=>{const k=JSON.parse(L.data);a(k),m(!1)},[]),te=ne.useCallback(L=>{const k=JSON.parse(L.data);a(P=>{const he=new Map(P.map(se=>[se.id,se]));for(const se of k)he.set(se.id,se);return Array.from(he.values()).sort((se,ze)=>ze.timestamp-se.timestamp)})},[]),le=ne.useCallback(()=>{m(!1)},[]);fE("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:q},{eventName:"sessionsUpdate",onMessage:te}],onError:le});const ge=ne.useMemo(()=>s?n.filter(L=>L.project===s):n,[n,s]),ae=ne.useCallback(L=>{d(L)},[]),W=ne.useCallback(()=>{_(L=>!L),A(new Set)},[]),j=ne.useCallback(L=>{A(k=>{const P=new Set(k);return P.has(L)?P.delete(L):P.add(L),P})},[]),G=ne.useCallback(()=>{A(new Set(ge.map(L=>L.id)))},[ge]),ie=ne.useCallback(()=>{A(new Set)},[]),ye=ne.useCallback(()=>{ce&&(K([ce]),$(void 0),U(!0))},[ce]),w=ne.useCallback(()=>{const L=ge.filter(k=>R.has(k.id));K(L),$(void 0),U(!0)},[ge,R]),C=ne.useCallback(()=>{U(!1),K([]),$(void 0)},[]);return b.jsxs("div",{className:"flex h-screen bg-zinc-950 text-zinc-100",children:[!x&&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:s||"",onChange:L=>c(L.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"}),i.map(L=>{const k=L.split("/").pop()||L;return b.jsx("option",{value:L,children:k},L)})]})})}),b.jsx(tb,{sessions:ge,selectedSession:f,onSelectSession:ae,loading:p,selectedProject:s,batchMode:E,selectedSessions:R,onToggleBatchMode:W,onToggleSessionSelection:j,onSelectAll:G,onDeselectAll:ie,onBatchExport:w})]}),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:()=>g(!x),className:"p-1.5 hover:bg-zinc-800 rounded transition-colors cursor-pointer","aria-label":x?"Expand sidebar":"Collapse sidebar",children:b.jsx(z1,{className:"w-4 h-4 text-zinc-400"})}),ce&&b.jsx(kE,{session:ce,copied:v,onCopyResumeCommand:ue,onExport:ye})]}),b.jsx("div",{className:"flex-1 overflow-hidden",children:f?b.jsx(cE,{sessionId:f}):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"})]})})})]}),Y&&b.jsx(zE,{sessions:I,messages:H,onClose:C})]})}Lx.createRoot(document.getElementById("root")).render(b.jsx(ne.StrictMode,{children:b.jsx(EE,{})}));
|