kanna-code 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,418 @@
1
+ var k2=Object.defineProperty;var C2=(e,r,l)=>r in e?k2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l;var cr=(e,r,l)=>C2(e,typeof r!="symbol"?r+"":r,l);function E2(e,r){for(var l=0;l<r.length;l++){const i=r[l];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const u=Object.getOwnPropertyDescriptor(i,o);u&&Object.defineProperty(e,o,u.get?u:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function l(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(o){if(o.ep)return;o.ep=!0;const u=l(o);fetch(o.href,u)}})();function pu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ed={exports:{}},La={};/**
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 dx;function N2(){if(dx)return La;dx=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(i,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:u}}return La.Fragment=r,La.jsx=l,La.jsxs=l,La}var hx;function A2(){return hx||(hx=1,ed.exports=N2()),ed.exports}var x=A2(),td={exports:{}},Ne={};/**
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 mx;function j2(){if(mx)return Ne;mx=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function v(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,A={};function N(R,G,T){this.props=R,this.context=G,this.refs=A,this.updater=T||k}N.prototype.isReactComponent={},N.prototype.setState=function(R,G){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,G,"setState")},N.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function O(){}O.prototype=N.prototype;function _(R,G,T){this.props=R,this.context=G,this.refs=A,this.updater=T||k}var U=_.prototype=new O;U.constructor=_,C(U,N.prototype),U.isPureReactComponent=!0;var F=Array.isArray;function z(){}var B={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function ae(R,G,T){var ue=T.ref;return{$$typeof:e,type:R,key:G,ref:ue!==void 0?ue:null,props:T}}function P(R,G){return ae(R.type,G,R.props)}function re(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function le(R){var G={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(T){return G[T]})}var se=/\/+/g;function J(R,G){return typeof R=="object"&&R!==null&&R.key!=null?le(""+R.key):G.toString(36)}function Z(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(z,z):(R.status="pending",R.then(function(G){R.status==="pending"&&(R.status="fulfilled",R.value=G)},function(G){R.status==="pending"&&(R.status="rejected",R.reason=G)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function D(R,G,T,ue,de){var ce=typeof R;(ce==="undefined"||ce==="boolean")&&(R=null);var Ce=!1;if(R===null)Ce=!0;else switch(ce){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(R.$$typeof){case e:case r:Ce=!0;break;case g:return Ce=R._init,D(Ce(R._payload),G,T,ue,de)}}if(Ce)return de=de(R),Ce=ue===""?"."+J(R,0):ue,F(de)?(T="",Ce!=null&&(T=Ce.replace(se,"$&/")+"/"),D(de,G,T,"",function(at){return at})):de!=null&&(re(de)&&(de=P(de,T+(de.key==null||R&&R.key===de.key?"":(""+de.key).replace(se,"$&/")+"/")+Ce)),G.push(de)),1;Ce=0;var Ue=ue===""?".":ue+":";if(F(R))for(var ve=0;ve<R.length;ve++)ue=R[ve],ce=Ue+J(ue,ve),Ce+=D(ue,G,T,ce,de);else if(ve=v(R),typeof ve=="function")for(R=ve.call(R),ve=0;!(ue=R.next()).done;)ue=ue.value,ce=Ue+J(ue,ve++),Ce+=D(ue,G,T,ce,de);else if(ce==="object"){if(typeof R.then=="function")return D(Z(R),G,T,ue,de);throw G=String(R),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function X(R,G,T){if(R==null)return R;var ue=[],de=0;return D(R,ue,"","",function(ce){return G.call(T,ce,de++)}),ue}function ne(R){if(R._status===-1){var G=R._result;G=G(),G.then(function(T){(R._status===0||R._status===-1)&&(R._status=1,R._result=T)},function(T){(R._status===0||R._status===-1)&&(R._status=2,R._result=T)}),R._status===-1&&(R._status=0,R._result=G)}if(R._status===1)return R._result.default;throw R._result}var ie=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},j={map:X,forEach:function(R,G,T){X(R,function(){G.apply(this,arguments)},T)},count:function(R){var G=0;return X(R,function(){G++}),G},toArray:function(R){return X(R,function(G){return G})||[]},only:function(R){if(!re(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Ne.Activity=y,Ne.Children=j,Ne.Component=N,Ne.Fragment=l,Ne.Profiler=o,Ne.PureComponent=_,Ne.StrictMode=i,Ne.Suspense=d,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(R){return B.H.useMemoCache(R)}},Ne.cache=function(R){return function(){return R.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(R,G,T){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var ue=C({},R.props),de=R.key;if(G!=null)for(ce in G.key!==void 0&&(de=""+G.key),G)!$.call(G,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&G.ref===void 0||(ue[ce]=G[ce]);var ce=arguments.length-2;if(ce===1)ue.children=T;else if(1<ce){for(var Ce=Array(ce),Ue=0;Ue<ce;Ue++)Ce[Ue]=arguments[Ue+2];ue.children=Ce}return ae(R.type,de,ue)},Ne.createContext=function(R){return R={$$typeof:c,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:u,_context:R},R},Ne.createElement=function(R,G,T){var ue,de={},ce=null;if(G!=null)for(ue in G.key!==void 0&&(ce=""+G.key),G)$.call(G,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(de[ue]=G[ue]);var Ce=arguments.length-2;if(Ce===1)de.children=T;else if(1<Ce){for(var Ue=Array(Ce),ve=0;ve<Ce;ve++)Ue[ve]=arguments[ve+2];de.children=Ue}if(R&&R.defaultProps)for(ue in Ce=R.defaultProps,Ce)de[ue]===void 0&&(de[ue]=Ce[ue]);return ae(R,ce,de)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(R){return{$$typeof:f,render:R}},Ne.isValidElement=re,Ne.lazy=function(R){return{$$typeof:g,_payload:{_status:-1,_result:R},_init:ne}},Ne.memo=function(R,G){return{$$typeof:m,type:R,compare:G===void 0?null:G}},Ne.startTransition=function(R){var G=B.T,T={};B.T=T;try{var ue=R(),de=B.S;de!==null&&de(T,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(z,ie)}catch(ce){ie(ce)}finally{G!==null&&T.types!==null&&(G.types=T.types),B.T=G}},Ne.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},Ne.use=function(R){return B.H.use(R)},Ne.useActionState=function(R,G,T){return B.H.useActionState(R,G,T)},Ne.useCallback=function(R,G){return B.H.useCallback(R,G)},Ne.useContext=function(R){return B.H.useContext(R)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(R,G){return B.H.useDeferredValue(R,G)},Ne.useEffect=function(R,G){return B.H.useEffect(R,G)},Ne.useEffectEvent=function(R){return B.H.useEffectEvent(R)},Ne.useId=function(){return B.H.useId()},Ne.useImperativeHandle=function(R,G,T){return B.H.useImperativeHandle(R,G,T)},Ne.useInsertionEffect=function(R,G){return B.H.useInsertionEffect(R,G)},Ne.useLayoutEffect=function(R,G){return B.H.useLayoutEffect(R,G)},Ne.useMemo=function(R,G){return B.H.useMemo(R,G)},Ne.useOptimistic=function(R,G){return B.H.useOptimistic(R,G)},Ne.useReducer=function(R,G,T){return B.H.useReducer(R,G,T)},Ne.useRef=function(R){return B.H.useRef(R)},Ne.useState=function(R){return B.H.useState(R)},Ne.useSyncExternalStore=function(R,G,T){return B.H.useSyncExternalStore(R,G,T)},Ne.useTransition=function(){return B.H.useTransition()},Ne.version="19.2.1",Ne}var px;function ph(){return px||(px=1,td.exports=j2()),td.exports}var S=ph();const Ya=pu(S),hv=E2({__proto__:null,default:Ya},[S]);var nd={exports:{}},Ba={},rd={exports:{}},ld={};/**
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 gx;function T2(){return gx||(gx=1,(function(e){function r(D,X){var ne=D.length;D.push(X);e:for(;0<ne;){var ie=ne-1>>>1,j=D[ie];if(0<o(j,X))D[ie]=X,D[ne]=j,ne=ie;else break e}}function l(D){return D.length===0?null:D[0]}function i(D){if(D.length===0)return null;var X=D[0],ne=D.pop();if(ne!==X){D[0]=ne;e:for(var ie=0,j=D.length,R=j>>>1;ie<R;){var G=2*(ie+1)-1,T=D[G],ue=G+1,de=D[ue];if(0>o(T,ne))ue<j&&0>o(de,T)?(D[ie]=de,D[ue]=ne,ie=ue):(D[ie]=T,D[G]=ne,ie=G);else if(ue<j&&0>o(de,ne))D[ie]=de,D[ue]=ne,ie=ue;else break e}}return X}function o(D,X){var ne=D.sortIndex-X.sortIndex;return ne!==0?ne:D.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],m=[],g=1,y=null,b=3,v=!1,k=!1,C=!1,A=!1,N=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function U(D){for(var X=l(m);X!==null;){if(X.callback===null)i(m);else if(X.startTime<=D)i(m),X.sortIndex=X.expirationTime,r(d,X);else break;X=l(m)}}function F(D){if(C=!1,U(D),!k)if(l(d)!==null)k=!0,z||(z=!0,le());else{var X=l(m);X!==null&&Z(F,X.startTime-D)}}var z=!1,B=-1,$=5,ae=-1;function P(){return A?!0:!(e.unstable_now()-ae<$)}function re(){if(A=!1,z){var D=e.unstable_now();ae=D;var X=!0;try{e:{k=!1,C&&(C=!1,O(B),B=-1),v=!0;var ne=b;try{t:{for(U(D),y=l(d);y!==null&&!(y.expirationTime>D&&P());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,b=y.priorityLevel;var j=ie(y.expirationTime<=D);if(D=e.unstable_now(),typeof j=="function"){y.callback=j,U(D),X=!0;break t}y===l(d)&&i(d),U(D)}else i(d);y=l(d)}if(y!==null)X=!0;else{var R=l(m);R!==null&&Z(F,R.startTime-D),X=!1}}break e}finally{y=null,b=ne,v=!1}X=void 0}}finally{X?le():z=!1}}}var le;if(typeof _=="function")le=function(){_(re)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,J=se.port2;se.port1.onmessage=re,le=function(){J.postMessage(null)}}else le=function(){N(re,0)};function Z(D,X){B=N(function(){D(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(D){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var ne=b;b=X;try{return D()}finally{b=ne}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(D,X){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ne=b;b=D;try{return X()}finally{b=ne}},e.unstable_scheduleCallback=function(D,X,ne){var ie=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?ie+ne:ie):ne=ie,D){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=ne+j,D={id:g++,callback:X,priorityLevel:D,startTime:ne,expirationTime:j,sortIndex:-1},ne>ie?(D.sortIndex=ne,r(m,D),l(d)===null&&D===l(m)&&(C?(O(B),B=-1):C=!0,Z(F,ne-ie))):(D.sortIndex=j,r(d,D),k||v||(k=!0,z||(z=!0,le()))),D},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(D){var X=b;return function(){var ne=b;b=X;try{return D.apply(this,arguments)}finally{b=ne}}}})(ld)),ld}var yx;function _2(){return yx||(yx=1,rd.exports=T2()),rd.exports}var id={exports:{}},jt={};/**
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 xx;function R2(){if(xx)return jt;xx=1;var e=ph();function r(d){var m="https://react.dev/errors/"+d;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+d+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var i={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(d,m,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:d,containerInfo:m,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,m){if(d==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,jt.createPortal=function(d,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return u(d,m,null,g)},jt.flushSync=function(d){var m=c.T,g=i.p;try{if(c.T=null,i.p=2,d)return d()}finally{c.T=m,i.p=g,i.d.f()}},jt.preconnect=function(d,m){typeof d=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(d,m))},jt.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},jt.preinit=function(d,m){if(typeof d=="string"&&m&&typeof m.as=="string"){var g=m.as,y=f(g,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?i.d.S(d,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:v}):g==="script"&&i.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},jt.preinitModule=function(d,m){if(typeof d=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=f(m.as,m.crossOrigin);i.d.M(d,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(d)},jt.preload=function(d,m){if(typeof d=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,y=f(g,m.crossOrigin);i.d.L(d,g,{crossOrigin:y,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})}},jt.preloadModule=function(d,m){if(typeof d=="string")if(m){var g=f(m.as,m.crossOrigin);i.d.m(d,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(d)},jt.requestFormReset=function(d){i.d.r(d)},jt.unstable_batchedUpdates=function(d,m){return d(m)},jt.useFormState=function(d,m,g){return c.H.useFormState(d,m,g)},jt.useFormStatus=function(){return c.H.useHostTransitionStatus()},jt.version="19.2.1",jt}var bx;function mv(){if(bx)return id.exports;bx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),id.exports=R2(),id.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 vx;function M2(){if(vx)return Ba;vx=1;var e=_2(),r=ph(),l=mv();function i(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var n=t,a=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(a=n.return),t=n.return;while(t)}return n.tag===3?a:null}function c(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function f(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function d(t){if(u(t)!==t)throw Error(i(188))}function m(t){var n=t.alternate;if(!n){if(n=u(t),n===null)throw Error(i(188));return n!==t?null:t}for(var a=t,s=n;;){var h=a.return;if(h===null)break;var p=h.alternate;if(p===null){if(s=h.return,s!==null){a=s;continue}break}if(h.child===p.child){for(p=h.child;p;){if(p===a)return d(h),t;if(p===s)return d(h),n;p=p.sibling}throw Error(i(188))}if(a.return!==s.return)a=h,s=p;else{for(var w=!1,E=h.child;E;){if(E===a){w=!0,a=h,s=p;break}if(E===s){w=!0,s=h,a=p;break}E=E.sibling}if(!w){for(E=p.child;E;){if(E===a){w=!0,a=p,s=h;break}if(E===s){w=!0,s=p,a=h;break}E=E.sibling}if(!w)throw Error(i(189))}}if(a.alternate!==s)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?t:n}function g(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=g(t),n!==null)return n;t=t.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),_=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function le(t){return t===null||typeof t!="object"?null:(t=re&&t[re]||t["@@iterator"],typeof t=="function"?t:null)}var se=Symbol.for("react.client.reference");function J(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===se?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case N:return"Profiler";case A:return"StrictMode";case F:return"Suspense";case z:return"SuspenseList";case ae:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case k:return"Portal";case _:return t.displayName||"Context";case O:return(t._context.displayName||"Context")+".Consumer";case U:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case B:return n=t.displayName||null,n!==null?n:J(t.type)||"Memo";case $:n=t._payload,t=t._init;try{return J(t(n))}catch{}}return null}var Z=Array.isArray,D=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},ie=[],j=-1;function R(t){return{current:t}}function G(t){0>j||(t.current=ie[j],ie[j]=null,j--)}function T(t,n){j++,ie[j]=t.current,t.current=n}var ue=R(null),de=R(null),ce=R(null),Ce=R(null);function Ue(t,n){switch(T(ce,n),T(de,t),T(ue,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?Dy(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=Dy(n),t=Ly(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(ue),T(ue,t)}function ve(){G(ue),G(de),G(ce)}function at(t){t.memoizedState!==null&&T(Ce,t);var n=ue.current,a=Ly(n,t.type);n!==a&&(T(de,t),T(ue,a))}function dt(t){de.current===t&&(G(ue),G(de)),Ce.current===t&&(G(Ce),Ma._currentValue=ne)}var At,wt;function ht(t){if(At===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);At=n&&n[1]||"",wt=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+At+t+wt}var jn=!1;function Tn(t,n){if(!t||jn)return"";jn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(Q){var Y=Q}Reflect.construct(t,[],te)}else{try{te.call()}catch(Q){Y=Q}t.call(te.prototype)}}else{try{throw Error()}catch(Q){Y=Q}(te=t())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(Q){if(Q&&Y&&typeof Q.stack=="string")return[Q.stack,Y.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=s.DetermineComponentFrameRoot(),w=p[0],E=p[1];if(w&&E){var M=w.split(`
44
+ `),I=E.split(`
45
+ `);for(h=s=0;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;for(;h<I.length&&!I[h].includes("DetermineComponentFrameRoot");)h++;if(s===M.length||h===I.length)for(s=M.length-1,h=I.length-1;1<=s&&0<=h&&M[s]!==I[h];)h--;for(;1<=s&&0<=h;s--,h--)if(M[s]!==I[h]){if(s!==1||h!==1)do if(s--,h--,0>h||M[s]!==I[h]){var W=`
46
+ `+M[s].replace(" at new "," at ");return t.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",t.displayName)),W}while(1<=s&&0<=h);break}}}finally{jn=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?ht(a):""}function xr(t,n){switch(t.tag){case 26:case 27:case 5:return ht(t.type);case 16:return ht("Lazy");case 13:return t.child!==n&&n!==null?ht("Suspense Fallback"):ht("Suspense");case 19:return ht("SuspenseList");case 0:case 15:return Tn(t.type,!1);case 11:return Tn(t.type.render,!1);case 1:return Tn(t.type,!0);case 31:return ht("Activity");default:return""}}function br(t){try{var n="",a=null;do n+=xr(t,a),a=t,t=t.return;while(t);return n}catch(s){return`
47
+ Error generating stack: `+s.message+`
48
+ `+s.stack}}var $t=Object.prototype.hasOwnProperty,vr=e.unstable_scheduleCallback,al=e.unstable_cancelCallback,Ii=e.unstable_shouldYield,Ll=e.unstable_requestPaint,xt=e.unstable_now,Bl=e.unstable_getCurrentPriorityLevel,H=e.unstable_ImmediatePriority,K=e.unstable_UserBlockingPriority,fe=e.unstable_NormalPriority,ge=e.unstable_LowPriority,Ee=e.unstable_IdlePriority,Lt=e.log,Gn=e.unstable_setDisableYieldValue,Mt=null,mt=null;function Bt(t){if(typeof Lt=="function"&&Gn(t),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(Mt,t)}catch{}}var Xe=Math.clz32?Math.clz32:uS,wr=Math.log,bn=Math.LN2;function uS(t){return t>>>=0,t===0?32:31-(wr(t)/bn|0)|0}var go=256,yo=262144,xo=4194304;function ol(t){var n=t&42;if(n!==0)return n;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function bo(t,n,a){var s=t.pendingLanes;if(s===0)return 0;var h=0,p=t.suspendedLanes,w=t.pingedLanes;t=t.warmLanes;var E=s&134217727;return E!==0?(s=E&~p,s!==0?h=ol(s):(w&=E,w!==0?h=ol(w):a||(a=E&~t,a!==0&&(h=ol(a))))):(E=s&~p,E!==0?h=ol(E):w!==0?h=ol(w):a||(a=s&~t,a!==0&&(h=ol(a)))),h===0?0:n!==0&&n!==h&&(n&p)===0&&(p=h&-h,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:h}function Gi(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function cS(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gm(){var t=xo;return xo<<=1,(xo&62914560)===0&&(xo=4194304),t}function qu(t){for(var n=[],a=0;31>a;a++)n.push(t);return n}function Yi(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function fS(t,n,a,s,h,p){var w=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var E=t.entanglements,M=t.expirationTimes,I=t.hiddenUpdates;for(a=w&~a;0<a;){var W=31-Xe(a),te=1<<W;E[W]=0,M[W]=-1;var Y=I[W];if(Y!==null)for(I[W]=null,W=0;W<Y.length;W++){var Q=Y[W];Q!==null&&(Q.lane&=-536870913)}a&=~te}s!==0&&ym(t,s,0),p!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=p&~(w&~n))}function ym(t,n,a){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-Xe(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function xm(t,n){var a=t.entangledLanes|=n;for(t=t.entanglements;a;){var s=31-Xe(a),h=1<<s;h&n|t[s]&n&&(t[s]|=n),a&=~h}}function bm(t,n){var a=n&-n;return a=(a&42)!==0?1:Fu(a),(a&(t.suspendedLanes|n))!==0?0:a}function Fu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Vu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function vm(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:ix(t.type))}function wm(t,n){var a=X.p;try{return X.p=t,n()}finally{X.p=a}}var Sr=Math.random().toString(36).slice(2),St="__reactFiber$"+Sr,Ut="__reactProps$"+Sr,Ul="__reactContainer$"+Sr,Iu="__reactEvents$"+Sr,dS="__reactListeners$"+Sr,hS="__reactHandles$"+Sr,Sm="__reactResources$"+Sr,$i="__reactMarker$"+Sr;function Gu(t){delete t[St],delete t[Ut],delete t[Iu],delete t[dS],delete t[hS]}function Hl(t){var n=t[St];if(n)return n;for(var a=t.parentNode;a;){if(n=a[Ul]||a[St]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(t=Vy(t);t!==null;){if(a=t[St])return a;t=Vy(t)}return n}t=a,a=t.parentNode}return null}function Pl(t){if(t=t[St]||t[Ul]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function Xi(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(i(33))}function ql(t){var n=t[Sm];return n||(n=t[Sm]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function bt(t){t[$i]=!0}var km=new Set,Cm={};function sl(t,n){Fl(t,n),Fl(t+"Capture",n)}function Fl(t,n){for(Cm[t]=n,t=0;t<n.length;t++)km.add(n[t])}var mS=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]*$"),Em={},Nm={};function pS(t){return $t.call(Nm,t)?!0:$t.call(Em,t)?!1:mS.test(t)?Nm[t]=!0:(Em[t]=!0,!1)}function vo(t,n,a){if(pS(n))if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+a)}}function wo(t,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+a)}}function Yn(t,n,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(n,a,""+s)}}function on(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Am(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function gS(t,n,a){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,p=s.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return h.call(this)},set:function(w){a=""+w,p.call(this,w)}}),Object.defineProperty(t,n,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(w){a=""+w},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Yu(t){if(!t._valueTracker){var n=Am(t)?"checked":"value";t._valueTracker=gS(t,n,""+t[n])}}function jm(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var a=n.getValue(),s="";return t&&(s=Am(t)?t.checked?"true":"false":t.value),t=s,t!==a?(n.setValue(t),!0):!1}function So(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var yS=/[\n"\\]/g;function sn(t){return t.replace(yS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function $u(t,n,a,s,h,p,w,E){t.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.type=w:t.removeAttribute("type"),n!=null?w==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+on(n)):t.value!==""+on(n)&&(t.value=""+on(n)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),n!=null?Xu(t,w,on(n)):a!=null?Xu(t,w,on(a)):s!=null&&t.removeAttribute("value"),h==null&&p!=null&&(t.defaultChecked=!!p),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?t.name=""+on(E):t.removeAttribute("name")}function Tm(t,n,a,s,h,p,w,E){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null)){Yu(t);return}a=a!=null?""+on(a):"",n=n!=null?""+on(n):a,E||n===t.value||(t.value=n),t.defaultValue=n}s=s??h,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=E?t.checked:!!s,t.defaultChecked=!!s,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(t.name=w),Yu(t)}function Xu(t,n,a){n==="number"&&So(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Vl(t,n,a,s){if(t=t.options,n){n={};for(var h=0;h<a.length;h++)n["$"+a[h]]=!0;for(a=0;a<t.length;a++)h=n.hasOwnProperty("$"+t[a].value),t[a].selected!==h&&(t[a].selected=h),h&&s&&(t[a].defaultSelected=!0)}else{for(a=""+on(a),n=null,h=0;h<t.length;h++){if(t[h].value===a){t[h].selected=!0,s&&(t[h].defaultSelected=!0);return}n!==null||t[h].disabled||(n=t[h])}n!==null&&(n.selected=!0)}}function _m(t,n,a){if(n!=null&&(n=""+on(n),n!==t.value&&(t.value=n),a==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=a!=null?""+on(a):""}function Rm(t,n,a,s){if(n==null){if(s!=null){if(a!=null)throw Error(i(92));if(Z(s)){if(1<s.length)throw Error(i(93));s=s[0]}a=s}a==null&&(a=""),n=a}a=on(n),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),Yu(t)}function Il(t,n){if(n){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=n;return}}t.textContent=n}var xS=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 Mm(t,n,a){var s=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":s?t.setProperty(n,a):typeof a!="number"||a===0||xS.has(n)?n==="float"?t.cssFloat=a:t[n]=(""+a).trim():t[n]=a+"px"}function Om(t,n,a){if(n!=null&&typeof n!="object")throw Error(i(62));if(t=t.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var h in n)s=n[h],n.hasOwnProperty(h)&&a[h]!==s&&Mm(t,h,s)}else for(var p in n)n.hasOwnProperty(p)&&Mm(t,p,n[p])}function Qu(t){if(t.indexOf("-")===-1)return!1;switch(t){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 bS=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"]]),vS=/^[\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 ko(t){return vS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function $n(){}var Zu=null;function Ku(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Gl=null,Yl=null;function zm(t){var n=Pl(t);if(n&&(t=n.stateNode)){var a=t[Ut]||null;e:switch(t=n.stateNode,n.type){case"input":if($u(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+sn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var s=a[n];if(s!==t&&s.form===t.form){var h=s[Ut]||null;if(!h)throw Error(i(90));$u(s,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(n=0;n<a.length;n++)s=a[n],s.form===t.form&&jm(s)}break e;case"textarea":_m(t,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Vl(t,!!a.multiple,n,!1)}}}var Ju=!1;function Dm(t,n,a){if(Ju)return t(n,a);Ju=!0;try{var s=t(n);return s}finally{if(Ju=!1,(Gl!==null||Yl!==null)&&(cs(),Gl&&(n=Gl,t=Yl,Yl=Gl=null,zm(n),t)))for(n=0;n<t.length;n++)zm(t[n])}}function Qi(t,n){var a=t.stateNode;if(a===null)return null;var s=a[Ut]||null;if(s===null)return null;a=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(i(231,n,typeof a));return a}var Xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(Xn)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Wu=!1}var kr=null,ec=null,Co=null;function Lm(){if(Co)return Co;var t,n=ec,a=n.length,s,h="value"in kr?kr.value:kr.textContent,p=h.length;for(t=0;t<a&&n[t]===h[t];t++);var w=a-t;for(s=1;s<=w&&n[a-s]===h[p-s];s++);return Co=h.slice(t,1<s?1-s:void 0)}function Eo(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function No(){return!0}function Bm(){return!1}function Ht(t){function n(a,s,h,p,w){this._reactName=a,this._targetInst=h,this.type=s,this.nativeEvent=p,this.target=w,this.currentTarget=null;for(var E in t)t.hasOwnProperty(E)&&(a=t[E],this[E]=a?a(p):p[E]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?No:Bm,this.isPropagationStopped=Bm,this}return y(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=No)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=No)},persist:function(){},isPersistent:No}),n}var ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ao=Ht(ul),Ki=y({},ul,{view:0,detail:0}),wS=Ht(Ki),tc,nc,Ji,jo=y({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ji&&(Ji&&t.type==="mousemove"?(tc=t.screenX-Ji.screenX,nc=t.screenY-Ji.screenY):nc=tc=0,Ji=t),tc)},movementY:function(t){return"movementY"in t?t.movementY:nc}}),Um=Ht(jo),SS=y({},jo,{dataTransfer:0}),kS=Ht(SS),CS=y({},Ki,{relatedTarget:0}),rc=Ht(CS),ES=y({},ul,{animationName:0,elapsedTime:0,pseudoElement:0}),NS=Ht(ES),AS=y({},ul,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),jS=Ht(AS),TS=y({},ul,{data:0}),Hm=Ht(TS),_S={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RS={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"},MS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OS(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=MS[t])?!!n[t]:!1}function lc(){return OS}var zS=y({},Ki,{key:function(t){if(t.key){var n=_S[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Eo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?RS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lc,charCode:function(t){return t.type==="keypress"?Eo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Eo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),DS=Ht(zS),LS=y({},jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pm=Ht(LS),BS=y({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lc}),US=Ht(BS),HS=y({},ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),PS=Ht(HS),qS=y({},jo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),FS=Ht(qS),VS=y({},ul,{newState:0,oldState:0}),IS=Ht(VS),GS=[9,13,27,32],ic=Xn&&"CompositionEvent"in window,Wi=null;Xn&&"documentMode"in document&&(Wi=document.documentMode);var YS=Xn&&"TextEvent"in window&&!Wi,qm=Xn&&(!ic||Wi&&8<Wi&&11>=Wi),Fm=" ",Vm=!1;function Im(t,n){switch(t){case"keyup":return GS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var $l=!1;function $S(t,n){switch(t){case"compositionend":return Gm(n);case"keypress":return n.which!==32?null:(Vm=!0,Fm);case"textInput":return t=n.data,t===Fm&&Vm?null:t;default:return null}}function XS(t,n){if($l)return t==="compositionend"||!ic&&Im(t,n)?(t=Lm(),Co=ec=kr=null,$l=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return qm&&n.locale!=="ko"?null:n.data;default:return null}}var QS={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 Ym(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!QS[t.type]:n==="textarea"}function $m(t,n,a,s){Gl?Yl?Yl.push(s):Yl=[s]:Gl=s,n=ys(n,"onChange"),0<n.length&&(a=new Ao("onChange","change",null,a,s),t.push({event:a,listeners:n}))}var ea=null,ta=null;function ZS(t){Ty(t,0)}function To(t){var n=Xi(t);if(jm(n))return t}function Xm(t,n){if(t==="change")return n}var Qm=!1;if(Xn){var ac;if(Xn){var oc="oninput"in document;if(!oc){var Zm=document.createElement("div");Zm.setAttribute("oninput","return;"),oc=typeof Zm.oninput=="function"}ac=oc}else ac=!1;Qm=ac&&(!document.documentMode||9<document.documentMode)}function Km(){ea&&(ea.detachEvent("onpropertychange",Jm),ta=ea=null)}function Jm(t){if(t.propertyName==="value"&&To(ta)){var n=[];$m(n,ta,t,Ku(t)),Dm(ZS,n)}}function KS(t,n,a){t==="focusin"?(Km(),ea=n,ta=a,ea.attachEvent("onpropertychange",Jm)):t==="focusout"&&Km()}function JS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return To(ta)}function WS(t,n){if(t==="click")return To(n)}function ek(t,n){if(t==="input"||t==="change")return To(n)}function tk(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Xt=typeof Object.is=="function"?Object.is:tk;function na(t,n){if(Xt(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var h=a[s];if(!$t.call(n,h)||!Xt(t[h],n[h]))return!1}return!0}function Wm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ep(t,n){var a=Wm(t);t=0;for(var s;a;){if(a.nodeType===3){if(s=t+a.textContent.length,t<=n&&s>=n)return{node:a,offset:n-t};t=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Wm(a)}}function tp(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?tp(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function np(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=So(t.document);n instanceof t.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)t=n.contentWindow;else break;n=So(t.document)}return n}function sc(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var nk=Xn&&"documentMode"in document&&11>=document.documentMode,Xl=null,uc=null,ra=null,cc=!1;function rp(t,n,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cc||Xl==null||Xl!==So(s)||(s=Xl,"selectionStart"in s&&sc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ra&&na(ra,s)||(ra=s,s=ys(uc,"onSelect"),0<s.length&&(n=new Ao("onSelect","select",null,n,a),t.push({event:n,listeners:s}),n.target=Xl)))}function cl(t,n){var a={};return a[t.toLowerCase()]=n.toLowerCase(),a["Webkit"+t]="webkit"+n,a["Moz"+t]="moz"+n,a}var Ql={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")},fc={},lp={};Xn&&(lp=document.createElement("div").style,"AnimationEvent"in window||(delete Ql.animationend.animation,delete Ql.animationiteration.animation,delete Ql.animationstart.animation),"TransitionEvent"in window||delete Ql.transitionend.transition);function fl(t){if(fc[t])return fc[t];if(!Ql[t])return t;var n=Ql[t],a;for(a in n)if(n.hasOwnProperty(a)&&a in lp)return fc[t]=n[a];return t}var ip=fl("animationend"),ap=fl("animationiteration"),op=fl("animationstart"),rk=fl("transitionrun"),lk=fl("transitionstart"),ik=fl("transitioncancel"),sp=fl("transitionend"),up=new Map,dc="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(" ");dc.push("scrollEnd");function vn(t,n){up.set(t,n),sl(n,[t])}var _o=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},un=[],Zl=0,hc=0;function Ro(){for(var t=Zl,n=hc=Zl=0;n<t;){var a=un[n];un[n++]=null;var s=un[n];un[n++]=null;var h=un[n];un[n++]=null;var p=un[n];if(un[n++]=null,s!==null&&h!==null){var w=s.pending;w===null?h.next=h:(h.next=w.next,w.next=h),s.pending=h}p!==0&&cp(a,h,p)}}function Mo(t,n,a,s){un[Zl++]=t,un[Zl++]=n,un[Zl++]=a,un[Zl++]=s,hc|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function mc(t,n,a,s){return Mo(t,n,a,s),Oo(t)}function dl(t,n){return Mo(t,null,null,n),Oo(t)}function cp(t,n,a){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a);for(var h=!1,p=t.return;p!==null;)p.childLanes|=a,s=p.alternate,s!==null&&(s.childLanes|=a),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(h=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,h&&n!==null&&(h=31-Xe(a),t=p.hiddenUpdates,s=t[h],s===null?t[h]=[n]:s.push(n),n.lane=a|536870912),p):null}function Oo(t){if(50<Ea)throw Ea=0,Cf=null,Error(i(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Kl={};function ak(t,n,a,s){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(t,n,a,s){return new ak(t,n,a,s)}function pc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Qn(t,n){var a=t.alternate;return a===null?(a=Qt(t.tag,n,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=n,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,n=t.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function fp(t,n){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,n=a.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function zo(t,n,a,s,h,p){var w=0;if(s=t,typeof t=="function")pc(t)&&(w=1);else if(typeof t=="string")w=f2(t,a,ue.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ae:return t=Qt(31,a,n,h),t.elementType=ae,t.lanes=p,t;case C:return hl(a.children,h,p,n);case A:w=8,h|=24;break;case N:return t=Qt(12,a,n,h|2),t.elementType=N,t.lanes=p,t;case F:return t=Qt(13,a,n,h),t.elementType=F,t.lanes=p,t;case z:return t=Qt(19,a,n,h),t.elementType=z,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _:w=10;break e;case O:w=9;break e;case U:w=11;break e;case B:w=14;break e;case $:w=16,s=null;break e}w=29,a=Error(i(130,t===null?"null":typeof t,"")),s=null}return n=Qt(w,a,n,h),n.elementType=t,n.type=s,n.lanes=p,n}function hl(t,n,a,s){return t=Qt(7,t,s,n),t.lanes=a,t}function gc(t,n,a){return t=Qt(6,t,null,n),t.lanes=a,t}function dp(t){var n=Qt(18,null,null,0);return n.stateNode=t,n}function yc(t,n,a){return n=Qt(4,t.children!==null?t.children:[],t.key,n),n.lanes=a,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var hp=new WeakMap;function cn(t,n){if(typeof t=="object"&&t!==null){var a=hp.get(t);return a!==void 0?a:(n={value:t,source:n,stack:br(n)},hp.set(t,n),n)}return{value:t,source:n,stack:br(n)}}var Jl=[],Wl=0,Do=null,la=0,fn=[],dn=0,Cr=null,_n=1,Rn="";function Zn(t,n){Jl[Wl++]=la,Jl[Wl++]=Do,Do=t,la=n}function mp(t,n,a){fn[dn++]=_n,fn[dn++]=Rn,fn[dn++]=Cr,Cr=t;var s=_n;t=Rn;var h=32-Xe(s)-1;s&=~(1<<h),a+=1;var p=32-Xe(n)+h;if(30<p){var w=h-h%5;p=(s&(1<<w)-1).toString(32),s>>=w,h-=w,_n=1<<32-Xe(n)+h|a<<h|s,Rn=p+t}else _n=1<<p|a<<h|s,Rn=t}function xc(t){t.return!==null&&(Zn(t,1),mp(t,1,0))}function bc(t){for(;t===Do;)Do=Jl[--Wl],Jl[Wl]=null,la=Jl[--Wl],Jl[Wl]=null;for(;t===Cr;)Cr=fn[--dn],fn[dn]=null,Rn=fn[--dn],fn[dn]=null,_n=fn[--dn],fn[dn]=null}function pp(t,n){fn[dn++]=_n,fn[dn++]=Rn,fn[dn++]=Cr,_n=n.id,Rn=n.overflow,Cr=t}var kt=null,Je=null,Le=!1,Er=null,hn=!1,vc=Error(i(519));function Nr(t){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ia(cn(n,t)),vc}function gp(t){var n=t.stateNode,a=t.type,s=t.memoizedProps;switch(n[St]=t,n[Ut]=s,a){case"dialog":Me("cancel",n),Me("close",n);break;case"iframe":case"object":case"embed":Me("load",n);break;case"video":case"audio":for(a=0;a<Aa.length;a++)Me(Aa[a],n);break;case"source":Me("error",n);break;case"img":case"image":case"link":Me("error",n),Me("load",n);break;case"details":Me("toggle",n);break;case"input":Me("invalid",n),Tm(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Me("invalid",n);break;case"textarea":Me("invalid",n),Rm(n,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||s.suppressHydrationWarning===!0||Oy(n.textContent,a)?(s.popover!=null&&(Me("beforetoggle",n),Me("toggle",n)),s.onScroll!=null&&Me("scroll",n),s.onScrollEnd!=null&&Me("scrollend",n),s.onClick!=null&&(n.onclick=$n),n=!0):n=!1,n||Nr(t,!0)}function yp(t){for(kt=t.return;kt;)switch(kt.tag){case 5:case 31:case 13:hn=!1;return;case 27:case 3:hn=!0;return;default:kt=kt.return}}function ei(t){if(t!==kt)return!1;if(!Le)return yp(t),Le=!0,!1;var n=t.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Hf(t.type,t.memoizedProps)),a=!a),a&&Je&&Nr(t),yp(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));Je=Fy(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));Je=Fy(t)}else n===27?(n=Je,Pr(t.type)?(t=If,If=null,Je=t):Je=n):Je=kt?pn(t.stateNode.nextSibling):null;return!0}function ml(){Je=kt=null,Le=!1}function wc(){var t=Er;return t!==null&&(Vt===null?Vt=t:Vt.push.apply(Vt,t),Er=null),t}function ia(t){Er===null?Er=[t]:Er.push(t)}var Sc=R(null),pl=null,Kn=null;function Ar(t,n,a){T(Sc,n._currentValue),n._currentValue=a}function Jn(t){t._currentValue=Sc.current,G(Sc)}function kc(t,n,a){for(;t!==null;){var s=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),t===a)break;t=t.return}}function Cc(t,n,a,s){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var p=h.dependencies;if(p!==null){var w=h.child;p=p.firstContext;e:for(;p!==null;){var E=p;p=h;for(var M=0;M<n.length;M++)if(E.context===n[M]){p.lanes|=a,E=p.alternate,E!==null&&(E.lanes|=a),kc(p.return,a,t),s||(w=null);break e}p=E.next}}else if(h.tag===18){if(w=h.return,w===null)throw Error(i(341));w.lanes|=a,p=w.alternate,p!==null&&(p.lanes|=a),kc(w,a,t),w=null}else w=h.child;if(w!==null)w.return=h;else for(w=h;w!==null;){if(w===t){w=null;break}if(h=w.sibling,h!==null){h.return=w.return,w=h;break}w=w.return}h=w}}function ti(t,n,a,s){t=null;for(var h=n,p=!1;h!==null;){if(!p){if((h.flags&524288)!==0)p=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var w=h.alternate;if(w===null)throw Error(i(387));if(w=w.memoizedProps,w!==null){var E=h.type;Xt(h.pendingProps.value,w.value)||(t!==null?t.push(E):t=[E])}}else if(h===Ce.current){if(w=h.alternate,w===null)throw Error(i(387));w.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(Ma):t=[Ma])}h=h.return}t!==null&&Cc(n,t,a,s),n.flags|=262144}function Lo(t){for(t=t.firstContext;t!==null;){if(!Xt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function gl(t){pl=t,Kn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ct(t){return xp(pl,t)}function Bo(t,n){return pl===null&&gl(t),xp(t,n)}function xp(t,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Kn===null){if(t===null)throw Error(i(308));Kn=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Kn=Kn.next=n;return a}var ok=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(a,s){t.push(s)}};this.abort=function(){n.aborted=!0,t.forEach(function(a){return a()})}},sk=e.unstable_scheduleCallback,uk=e.unstable_NormalPriority,ot={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ec(){return{controller:new ok,data:new Map,refCount:0}}function aa(t){t.refCount--,t.refCount===0&&sk(uk,function(){t.controller.abort()})}var oa=null,Nc=0,ni=0,ri=null;function ck(t,n){if(oa===null){var a=oa=[];Nc=0,ni=_f(),ri={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Nc++,n.then(bp,bp),n}function bp(){if(--Nc===0&&oa!==null){ri!==null&&(ri.status="fulfilled");var t=oa;oa=null,ni=0,ri=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function fk(t,n){var a=[],s={status:"pending",value:null,reason:null,then:function(h){a.push(h)}};return t.then(function(){s.status="fulfilled",s.value=n;for(var h=0;h<a.length;h++)(0,a[h])(n)},function(h){for(s.status="rejected",s.reason=h,h=0;h<a.length;h++)(0,a[h])(void 0)}),s}var vp=D.S;D.S=function(t,n){ry=xt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&ck(t,n),vp!==null&&vp(t,n)};var yl=R(null);function Ac(){var t=yl.current;return t!==null?t:Qe.pooledCache}function Uo(t,n){n===null?T(yl,yl.current):T(yl,n.pool)}function wp(){var t=Ac();return t===null?null:{parent:ot._currentValue,pool:t}}var li=Error(i(460)),jc=Error(i(474)),Ho=Error(i(542)),Po={then:function(){}};function Sp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function kp(t,n,a){switch(a=t[a],a===void 0?t.push(n):a!==n&&(n.then($n,$n),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Ep(t),t;default:if(typeof n.status=="string")n.then($n,$n);else{if(t=Qe,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=n,t.status="pending",t.then(function(s){if(n.status==="pending"){var h=n;h.status="fulfilled",h.value=s}},function(s){if(n.status==="pending"){var h=n;h.status="rejected",h.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Ep(t),t}throw bl=n,li}}function xl(t){try{var n=t._init;return n(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(bl=a,li):a}}var bl=null;function Cp(){if(bl===null)throw Error(i(459));var t=bl;return bl=null,t}function Ep(t){if(t===li||t===Ho)throw Error(i(483))}var ii=null,sa=0;function qo(t){var n=sa;return sa+=1,ii===null&&(ii=[]),kp(ii,t,n)}function ua(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Fo(t,n){throw n.$$typeof===b?Error(i(525)):(t=Object.prototype.toString.call(n),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function Np(t){function n(q,L){if(t){var V=q.deletions;V===null?(q.deletions=[L],q.flags|=16):V.push(L)}}function a(q,L){if(!t)return null;for(;L!==null;)n(q,L),L=L.sibling;return null}function s(q){for(var L=new Map;q!==null;)q.key!==null?L.set(q.key,q):L.set(q.index,q),q=q.sibling;return L}function h(q,L){return q=Qn(q,L),q.index=0,q.sibling=null,q}function p(q,L,V){return q.index=V,t?(V=q.alternate,V!==null?(V=V.index,V<L?(q.flags|=67108866,L):V):(q.flags|=67108866,L)):(q.flags|=1048576,L)}function w(q){return t&&q.alternate===null&&(q.flags|=67108866),q}function E(q,L,V,ee){return L===null||L.tag!==6?(L=gc(V,q.mode,ee),L.return=q,L):(L=h(L,V),L.return=q,L)}function M(q,L,V,ee){var be=V.type;return be===C?W(q,L,V.props.children,ee,V.key):L!==null&&(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===$&&xl(be)===L.type)?(L=h(L,V.props),ua(L,V),L.return=q,L):(L=zo(V.type,V.key,V.props,null,q.mode,ee),ua(L,V),L.return=q,L)}function I(q,L,V,ee){return L===null||L.tag!==4||L.stateNode.containerInfo!==V.containerInfo||L.stateNode.implementation!==V.implementation?(L=yc(V,q.mode,ee),L.return=q,L):(L=h(L,V.children||[]),L.return=q,L)}function W(q,L,V,ee,be){return L===null||L.tag!==7?(L=hl(V,q.mode,ee,be),L.return=q,L):(L=h(L,V),L.return=q,L)}function te(q,L,V){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=gc(""+L,q.mode,V),L.return=q,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case v:return V=zo(L.type,L.key,L.props,null,q.mode,V),ua(V,L),V.return=q,V;case k:return L=yc(L,q.mode,V),L.return=q,L;case $:return L=xl(L),te(q,L,V)}if(Z(L)||le(L))return L=hl(L,q.mode,V,null),L.return=q,L;if(typeof L.then=="function")return te(q,qo(L),V);if(L.$$typeof===_)return te(q,Bo(q,L),V);Fo(q,L)}return null}function Y(q,L,V,ee){var be=L!==null?L.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return be!==null?null:E(q,L,""+V,ee);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case v:return V.key===be?M(q,L,V,ee):null;case k:return V.key===be?I(q,L,V,ee):null;case $:return V=xl(V),Y(q,L,V,ee)}if(Z(V)||le(V))return be!==null?null:W(q,L,V,ee,null);if(typeof V.then=="function")return Y(q,L,qo(V),ee);if(V.$$typeof===_)return Y(q,L,Bo(q,V),ee);Fo(q,V)}return null}function Q(q,L,V,ee,be){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return q=q.get(V)||null,E(L,q,""+ee,be);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case v:return q=q.get(ee.key===null?V:ee.key)||null,M(L,q,ee,be);case k:return q=q.get(ee.key===null?V:ee.key)||null,I(L,q,ee,be);case $:return ee=xl(ee),Q(q,L,V,ee,be)}if(Z(ee)||le(ee))return q=q.get(V)||null,W(L,q,ee,be,null);if(typeof ee.then=="function")return Q(q,L,V,qo(ee),be);if(ee.$$typeof===_)return Q(q,L,V,Bo(L,ee),be);Fo(L,ee)}return null}function he(q,L,V,ee){for(var be=null,He=null,ye=L,je=L=0,De=null;ye!==null&&je<V.length;je++){ye.index>je?(De=ye,ye=null):De=ye.sibling;var Pe=Y(q,ye,V[je],ee);if(Pe===null){ye===null&&(ye=De);break}t&&ye&&Pe.alternate===null&&n(q,ye),L=p(Pe,L,je),He===null?be=Pe:He.sibling=Pe,He=Pe,ye=De}if(je===V.length)return a(q,ye),Le&&Zn(q,je),be;if(ye===null){for(;je<V.length;je++)ye=te(q,V[je],ee),ye!==null&&(L=p(ye,L,je),He===null?be=ye:He.sibling=ye,He=ye);return Le&&Zn(q,je),be}for(ye=s(ye);je<V.length;je++)De=Q(ye,q,je,V[je],ee),De!==null&&(t&&De.alternate!==null&&ye.delete(De.key===null?je:De.key),L=p(De,L,je),He===null?be=De:He.sibling=De,He=De);return t&&ye.forEach(function(Gr){return n(q,Gr)}),Le&&Zn(q,je),be}function ke(q,L,V,ee){if(V==null)throw Error(i(151));for(var be=null,He=null,ye=L,je=L=0,De=null,Pe=V.next();ye!==null&&!Pe.done;je++,Pe=V.next()){ye.index>je?(De=ye,ye=null):De=ye.sibling;var Gr=Y(q,ye,Pe.value,ee);if(Gr===null){ye===null&&(ye=De);break}t&&ye&&Gr.alternate===null&&n(q,ye),L=p(Gr,L,je),He===null?be=Gr:He.sibling=Gr,He=Gr,ye=De}if(Pe.done)return a(q,ye),Le&&Zn(q,je),be;if(ye===null){for(;!Pe.done;je++,Pe=V.next())Pe=te(q,Pe.value,ee),Pe!==null&&(L=p(Pe,L,je),He===null?be=Pe:He.sibling=Pe,He=Pe);return Le&&Zn(q,je),be}for(ye=s(ye);!Pe.done;je++,Pe=V.next())Pe=Q(ye,q,je,Pe.value,ee),Pe!==null&&(t&&Pe.alternate!==null&&ye.delete(Pe.key===null?je:Pe.key),L=p(Pe,L,je),He===null?be=Pe:He.sibling=Pe,He=Pe);return t&&ye.forEach(function(S2){return n(q,S2)}),Le&&Zn(q,je),be}function $e(q,L,V,ee){if(typeof V=="object"&&V!==null&&V.type===C&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case v:e:{for(var be=V.key;L!==null;){if(L.key===be){if(be=V.type,be===C){if(L.tag===7){a(q,L.sibling),ee=h(L,V.props.children),ee.return=q,q=ee;break e}}else if(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===$&&xl(be)===L.type){a(q,L.sibling),ee=h(L,V.props),ua(ee,V),ee.return=q,q=ee;break e}a(q,L);break}else n(q,L);L=L.sibling}V.type===C?(ee=hl(V.props.children,q.mode,ee,V.key),ee.return=q,q=ee):(ee=zo(V.type,V.key,V.props,null,q.mode,ee),ua(ee,V),ee.return=q,q=ee)}return w(q);case k:e:{for(be=V.key;L!==null;){if(L.key===be)if(L.tag===4&&L.stateNode.containerInfo===V.containerInfo&&L.stateNode.implementation===V.implementation){a(q,L.sibling),ee=h(L,V.children||[]),ee.return=q,q=ee;break e}else{a(q,L);break}else n(q,L);L=L.sibling}ee=yc(V,q.mode,ee),ee.return=q,q=ee}return w(q);case $:return V=xl(V),$e(q,L,V,ee)}if(Z(V))return he(q,L,V,ee);if(le(V)){if(be=le(V),typeof be!="function")throw Error(i(150));return V=be.call(V),ke(q,L,V,ee)}if(typeof V.then=="function")return $e(q,L,qo(V),ee);if(V.$$typeof===_)return $e(q,L,Bo(q,V),ee);Fo(q,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,L!==null&&L.tag===6?(a(q,L.sibling),ee=h(L,V),ee.return=q,q=ee):(a(q,L),ee=gc(V,q.mode,ee),ee.return=q,q=ee),w(q)):a(q,L)}return function(q,L,V,ee){try{sa=0;var be=$e(q,L,V,ee);return ii=null,be}catch(ye){if(ye===li||ye===Ho)throw ye;var He=Qt(29,ye,null,q.mode);return He.lanes=ee,He.return=q,He}finally{}}}var vl=Np(!0),Ap=Np(!1),jr=!1;function Tc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Tr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function _r(t,n,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Fe&2)!==0){var h=s.pending;return h===null?n.next=n:(n.next=h.next,h.next=n),s.pending=n,n=Oo(t),cp(t,null,a),n}return Mo(t,s,n,a),Oo(t)}function ca(t,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var s=n.lanes;s&=t.pendingLanes,a|=s,n.lanes=a,xm(t,a)}}function Rc(t,n){var a=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var h=null,p=null;if(a=a.firstBaseUpdate,a!==null){do{var w={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};p===null?h=p=w:p=p.next=w,a=a.next}while(a!==null);p===null?h=p=n:p=p.next=n}else h=p=n;a={baseState:s.baseState,firstBaseUpdate:h,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=n:t.next=n,a.lastBaseUpdate=n}var Mc=!1;function fa(){if(Mc){var t=ri;if(t!==null)throw t}}function da(t,n,a,s){Mc=!1;var h=t.updateQueue;jr=!1;var p=h.firstBaseUpdate,w=h.lastBaseUpdate,E=h.shared.pending;if(E!==null){h.shared.pending=null;var M=E,I=M.next;M.next=null,w===null?p=I:w.next=I,w=M;var W=t.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==w&&(E===null?W.firstBaseUpdate=I:E.next=I,W.lastBaseUpdate=M))}if(p!==null){var te=h.baseState;w=0,W=I=M=null,E=p;do{var Y=E.lane&-536870913,Q=Y!==E.lane;if(Q?(ze&Y)===Y:(s&Y)===Y){Y!==0&&Y===ni&&(Mc=!0),W!==null&&(W=W.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var he=t,ke=E;Y=n;var $e=a;switch(ke.tag){case 1:if(he=ke.payload,typeof he=="function"){te=he.call($e,te,Y);break e}te=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ke.payload,Y=typeof he=="function"?he.call($e,te,Y):he,Y==null)break e;te=y({},te,Y);break e;case 2:jr=!0}}Y=E.callback,Y!==null&&(t.flags|=64,Q&&(t.flags|=8192),Q=h.callbacks,Q===null?h.callbacks=[Y]:Q.push(Y))}else Q={lane:Y,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(I=W=Q,M=te):W=W.next=Q,w|=Y;if(E=E.next,E===null){if(E=h.shared.pending,E===null)break;Q=E,E=Q.next,Q.next=null,h.lastBaseUpdate=Q,h.shared.pending=null}}while(!0);W===null&&(M=te),h.baseState=M,h.firstBaseUpdate=I,h.lastBaseUpdate=W,p===null&&(h.shared.lanes=0),Dr|=w,t.lanes=w,t.memoizedState=te}}function jp(t,n){if(typeof t!="function")throw Error(i(191,t));t.call(n)}function Tp(t,n){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)jp(a[t],n)}var ai=R(null),Vo=R(0);function _p(t,n){t=or,T(Vo,t),T(ai,n),or=t|n.baseLanes}function Oc(){T(Vo,or),T(ai,ai.current)}function zc(){or=Vo.current,G(ai),G(Vo)}var Zt=R(null),mn=null;function Rr(t){var n=t.alternate;T(lt,lt.current&1),T(Zt,t),mn===null&&(n===null||ai.current!==null||n.memoizedState!==null)&&(mn=t)}function Dc(t){T(lt,lt.current),T(Zt,t),mn===null&&(mn=t)}function Rp(t){t.tag===22?(T(lt,lt.current),T(Zt,t),mn===null&&(mn=t)):Mr()}function Mr(){T(lt,lt.current),T(Zt,Zt.current)}function Kt(t){G(Zt),mn===t&&(mn=null),G(lt)}var lt=R(0);function Io(t){for(var n=t;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ff(a)||Vf(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Wn=0,Ae=null,Ge=null,st=null,Go=!1,oi=!1,wl=!1,Yo=0,ha=0,si=null,dk=0;function nt(){throw Error(i(321))}function Lc(t,n){if(n===null)return!1;for(var a=0;a<n.length&&a<t.length;a++)if(!Xt(t[a],n[a]))return!1;return!0}function Bc(t,n,a,s,h,p){return Wn=p,Ae=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=t===null||t.memoizedState===null?mg:Jc,wl=!1,p=a(s,h),wl=!1,oi&&(p=Op(n,a,s,h)),Mp(t),p}function Mp(t){D.H=ga;var n=Ge!==null&&Ge.next!==null;if(Wn=0,st=Ge=Ae=null,Go=!1,ha=0,si=null,n)throw Error(i(300));t===null||ut||(t=t.dependencies,t!==null&&Lo(t)&&(ut=!0))}function Op(t,n,a,s){Ae=t;var h=0;do{if(oi&&(si=null),ha=0,oi=!1,25<=h)throw Error(i(301));if(h+=1,st=Ge=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}D.H=pg,p=n(a,s)}while(oi);return p}function hk(){var t=D.H,n=t.useState()[0];return n=typeof n.then=="function"?ma(n):n,t=t.useState()[0],(Ge!==null?Ge.memoizedState:null)!==t&&(Ae.flags|=1024),n}function Uc(){var t=Yo!==0;return Yo=0,t}function Hc(t,n,a){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~a}function Pc(t){if(Go){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Go=!1}Wn=0,st=Ge=Ae=null,oi=!1,ha=Yo=0,si=null}function Ot(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?Ae.memoizedState=st=t:st=st.next=t,st}function it(){if(Ge===null){var t=Ae.alternate;t=t!==null?t.memoizedState:null}else t=Ge.next;var n=st===null?Ae.memoizedState:st.next;if(n!==null)st=n,Ge=t;else{if(t===null)throw Ae.alternate===null?Error(i(467)):Error(i(310));Ge=t,t={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},st===null?Ae.memoizedState=st=t:st=st.next=t}return st}function $o(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ma(t){var n=ha;return ha+=1,si===null&&(si=[]),t=kp(si,t,n),n=Ae,(st===null?n.memoizedState:st.next)===null&&(n=n.alternate,D.H=n===null||n.memoizedState===null?mg:Jc),t}function Xo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ma(t);if(t.$$typeof===_)return Ct(t)}throw Error(i(438,String(t)))}function qc(t){var n=null,a=Ae.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var s=Ae.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(h){return h.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=$o(),Ae.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(t),s=0;s<t;s++)a[s]=P;return n.index++,a}function er(t,n){return typeof n=="function"?n(t):n}function Qo(t){var n=it();return Fc(n,Ge,t)}function Fc(t,n,a){var s=t.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=a;var h=t.baseQueue,p=s.pending;if(p!==null){if(h!==null){var w=h.next;h.next=p.next,p.next=w}n.baseQueue=h=p,s.pending=null}if(p=t.baseState,h===null)t.memoizedState=p;else{n=h.next;var E=w=null,M=null,I=n,W=!1;do{var te=I.lane&-536870913;if(te!==I.lane?(ze&te)===te:(Wn&te)===te){var Y=I.revertLane;if(Y===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),te===ni&&(W=!0);else if((Wn&Y)===Y){I=I.next,Y===ni&&(W=!0);continue}else te={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(E=M=te,w=p):M=M.next=te,Ae.lanes|=Y,Dr|=Y;te=I.action,wl&&a(p,te),p=I.hasEagerState?I.eagerState:a(p,te)}else Y={lane:te,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(E=M=Y,w=p):M=M.next=Y,Ae.lanes|=te,Dr|=te;I=I.next}while(I!==null&&I!==n);if(M===null?w=p:M.next=E,!Xt(p,t.memoizedState)&&(ut=!0,W&&(a=ri,a!==null)))throw a;t.memoizedState=p,t.baseState=w,t.baseQueue=M,s.lastRenderedState=p}return h===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Vc(t){var n=it(),a=n.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=t;var s=a.dispatch,h=a.pending,p=n.memoizedState;if(h!==null){a.pending=null;var w=h=h.next;do p=t(p,w.action),w=w.next;while(w!==h);Xt(p,n.memoizedState)||(ut=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,s]}function zp(t,n,a){var s=Ae,h=it(),p=Le;if(p){if(a===void 0)throw Error(i(407));a=a()}else a=n();var w=!Xt((Ge||h).memoizedState,a);if(w&&(h.memoizedState=a,ut=!0),h=h.queue,Yc(Bp.bind(null,s,h,t),[t]),h.getSnapshot!==n||w||st!==null&&st.memoizedState.tag&1){if(s.flags|=2048,ui(9,{destroy:void 0},Lp.bind(null,s,h,a,n),null),Qe===null)throw Error(i(349));p||(Wn&127)!==0||Dp(s,n,a)}return a}function Dp(t,n,a){t.flags|=16384,t={getSnapshot:n,value:a},n=Ae.updateQueue,n===null?(n=$o(),Ae.updateQueue=n,n.stores=[t]):(a=n.stores,a===null?n.stores=[t]:a.push(t))}function Lp(t,n,a,s){n.value=a,n.getSnapshot=s,Up(n)&&Hp(t)}function Bp(t,n,a){return a(function(){Up(n)&&Hp(t)})}function Up(t){var n=t.getSnapshot;t=t.value;try{var a=n();return!Xt(t,a)}catch{return!0}}function Hp(t){var n=dl(t,2);n!==null&&It(n,t,2)}function Ic(t){var n=Ot();if(typeof t=="function"){var a=t;if(t=a(),wl){Bt(!0);try{a()}finally{Bt(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:er,lastRenderedState:t},n}function Pp(t,n,a,s){return t.baseState=a,Fc(t,Ge,typeof s=="function"?s:er)}function mk(t,n,a,s,h){if(Jo(t))throw Error(i(485));if(t=n.action,t!==null){var p={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){p.listeners.push(w)}};D.T!==null?a(!0):p.isTransition=!1,s(p),a=n.pending,a===null?(p.next=n.pending=p,qp(n,p)):(p.next=a.next,n.pending=a.next=p)}}function qp(t,n){var a=n.action,s=n.payload,h=t.state;if(n.isTransition){var p=D.T,w={};D.T=w;try{var E=a(h,s),M=D.S;M!==null&&M(w,E),Fp(t,n,E)}catch(I){Gc(t,n,I)}finally{p!==null&&w.types!==null&&(p.types=w.types),D.T=p}}else try{p=a(h,s),Fp(t,n,p)}catch(I){Gc(t,n,I)}}function Fp(t,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Vp(t,n,s)},function(s){return Gc(t,n,s)}):Vp(t,n,a)}function Vp(t,n,a){n.status="fulfilled",n.value=a,Ip(n),t.state=a,n=t.pending,n!==null&&(a=n.next,a===n?t.pending=null:(a=a.next,n.next=a,qp(t,a)))}function Gc(t,n,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=a,Ip(n),n=n.next;while(n!==s)}t.action=null}function Ip(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Gp(t,n){return n}function Yp(t,n){if(Le){var a=Qe.formState;if(a!==null){e:{var s=Ae;if(Le){if(Je){t:{for(var h=Je,p=hn;h.nodeType!==8;){if(!p){h=null;break t}if(h=pn(h.nextSibling),h===null){h=null;break t}}p=h.data,h=p==="F!"||p==="F"?h:null}if(h){Je=pn(h.nextSibling),s=h.data==="F!";break e}}Nr(s)}s=!1}s&&(n=a[0])}}return a=Ot(),a.memoizedState=a.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gp,lastRenderedState:n},a.queue=s,a=fg.bind(null,Ae,s),s.dispatch=a,s=Ic(!1),p=Kc.bind(null,Ae,!1,s.queue),s=Ot(),h={state:n,dispatch:null,action:t,pending:null},s.queue=h,a=mk.bind(null,Ae,h,p,a),h.dispatch=a,s.memoizedState=t,[n,a,!1]}function $p(t){var n=it();return Xp(n,Ge,t)}function Xp(t,n,a){if(n=Fc(t,n,Gp)[0],t=Qo(er)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=ma(n)}catch(w){throw w===li?Ho:w}else s=n;n=it();var h=n.queue,p=h.dispatch;return a!==n.memoizedState&&(Ae.flags|=2048,ui(9,{destroy:void 0},pk.bind(null,h,a),null)),[s,p,t]}function pk(t,n){t.action=n}function Qp(t){var n=it(),a=Ge;if(a!==null)return Xp(n,a,t);it(),n=n.memoizedState,a=it();var s=a.queue.dispatch;return a.memoizedState=t,[n,s,!1]}function ui(t,n,a,s){return t={tag:t,create:a,deps:s,inst:n,next:null},n=Ae.updateQueue,n===null&&(n=$o(),Ae.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=t.next=t:(s=a.next,a.next=t,t.next=s,n.lastEffect=t),t}function Zp(){return it().memoizedState}function Zo(t,n,a,s){var h=Ot();Ae.flags|=t,h.memoizedState=ui(1|n,{destroy:void 0},a,s===void 0?null:s)}function Ko(t,n,a,s){var h=it();s=s===void 0?null:s;var p=h.memoizedState.inst;Ge!==null&&s!==null&&Lc(s,Ge.memoizedState.deps)?h.memoizedState=ui(n,p,a,s):(Ae.flags|=t,h.memoizedState=ui(1|n,p,a,s))}function Kp(t,n){Zo(8390656,8,t,n)}function Yc(t,n){Ko(2048,8,t,n)}function gk(t){Ae.flags|=4;var n=Ae.updateQueue;if(n===null)n=$o(),Ae.updateQueue=n,n.events=[t];else{var a=n.events;a===null?n.events=[t]:a.push(t)}}function Jp(t){var n=it().memoizedState;return gk({ref:n,nextImpl:t}),function(){if((Fe&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function Wp(t,n){return Ko(4,2,t,n)}function eg(t,n){return Ko(4,4,t,n)}function tg(t,n){if(typeof n=="function"){t=t();var a=n(t);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function ng(t,n,a){a=a!=null?a.concat([t]):null,Ko(4,4,tg.bind(null,n,t),a)}function $c(){}function rg(t,n){var a=it();n=n===void 0?null:n;var s=a.memoizedState;return n!==null&&Lc(n,s[1])?s[0]:(a.memoizedState=[t,n],t)}function lg(t,n){var a=it();n=n===void 0?null:n;var s=a.memoizedState;if(n!==null&&Lc(n,s[1]))return s[0];if(s=t(),wl){Bt(!0);try{t()}finally{Bt(!1)}}return a.memoizedState=[s,n],s}function Xc(t,n,a){return a===void 0||(Wn&1073741824)!==0&&(ze&261930)===0?t.memoizedState=n:(t.memoizedState=a,t=iy(),Ae.lanes|=t,Dr|=t,a)}function ig(t,n,a,s){return Xt(a,n)?a:ai.current!==null?(t=Xc(t,a,s),Xt(t,n)||(ut=!0),t):(Wn&42)===0||(Wn&1073741824)!==0&&(ze&261930)===0?(ut=!0,t.memoizedState=a):(t=iy(),Ae.lanes|=t,Dr|=t,n)}function ag(t,n,a,s,h){var p=X.p;X.p=p!==0&&8>p?p:8;var w=D.T,E={};D.T=E,Kc(t,!1,n,a);try{var M=h(),I=D.S;if(I!==null&&I(E,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var W=fk(M,s);pa(t,n,W,en(t))}else pa(t,n,s,en(t))}catch(te){pa(t,n,{then:function(){},status:"rejected",reason:te},en())}finally{X.p=p,w!==null&&E.types!==null&&(w.types=E.types),D.T=w}}function yk(){}function Qc(t,n,a,s){if(t.tag!==5)throw Error(i(476));var h=og(t).queue;ag(t,h,n,ne,a===null?yk:function(){return sg(t),a(s)})}function og(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:er,lastRenderedState:ne},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:er,lastRenderedState:a},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function sg(t){var n=og(t);n.next===null&&(n=t.alternate.memoizedState),pa(t,n.next.queue,{},en())}function Zc(){return Ct(Ma)}function ug(){return it().memoizedState}function cg(){return it().memoizedState}function xk(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var a=en();t=Tr(a);var s=_r(n,t,a);s!==null&&(It(s,n,a),ca(s,n,a)),n={cache:Ec()},t.payload=n;return}n=n.return}}function bk(t,n,a){var s=en();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Jo(t)?dg(n,a):(a=mc(t,n,a,s),a!==null&&(It(a,t,s),hg(a,n,s)))}function fg(t,n,a){var s=en();pa(t,n,a,s)}function pa(t,n,a,s){var h={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Jo(t))dg(n,h);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var w=n.lastRenderedState,E=p(w,a);if(h.hasEagerState=!0,h.eagerState=E,Xt(E,w))return Mo(t,n,h,0),Qe===null&&Ro(),!1}catch{}finally{}if(a=mc(t,n,h,s),a!==null)return It(a,t,s),hg(a,n,s),!0}return!1}function Kc(t,n,a,s){if(s={lane:2,revertLane:_f(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Jo(t)){if(n)throw Error(i(479))}else n=mc(t,a,s,2),n!==null&&It(n,t,2)}function Jo(t){var n=t.alternate;return t===Ae||n!==null&&n===Ae}function dg(t,n){oi=Go=!0;var a=t.pending;a===null?n.next=n:(n.next=a.next,a.next=n),t.pending=n}function hg(t,n,a){if((a&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,a|=s,n.lanes=a,xm(t,a)}}var ga={readContext:Ct,use:Xo,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};ga.useEffectEvent=nt;var mg={readContext:Ct,use:Xo,useCallback:function(t,n){return Ot().memoizedState=[t,n===void 0?null:n],t},useContext:Ct,useEffect:Kp,useImperativeHandle:function(t,n,a){a=a!=null?a.concat([t]):null,Zo(4194308,4,tg.bind(null,n,t),a)},useLayoutEffect:function(t,n){return Zo(4194308,4,t,n)},useInsertionEffect:function(t,n){Zo(4,2,t,n)},useMemo:function(t,n){var a=Ot();n=n===void 0?null:n;var s=t();if(wl){Bt(!0);try{t()}finally{Bt(!1)}}return a.memoizedState=[s,n],s},useReducer:function(t,n,a){var s=Ot();if(a!==void 0){var h=a(n);if(wl){Bt(!0);try{a(n)}finally{Bt(!1)}}}else h=n;return s.memoizedState=s.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},s.queue=t,t=t.dispatch=bk.bind(null,Ae,t),[s.memoizedState,t]},useRef:function(t){var n=Ot();return t={current:t},n.memoizedState=t},useState:function(t){t=Ic(t);var n=t.queue,a=fg.bind(null,Ae,n);return n.dispatch=a,[t.memoizedState,a]},useDebugValue:$c,useDeferredValue:function(t,n){var a=Ot();return Xc(a,t,n)},useTransition:function(){var t=Ic(!1);return t=ag.bind(null,Ae,t.queue,!0,!1),Ot().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,a){var s=Ae,h=Ot();if(Le){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),Qe===null)throw Error(i(349));(ze&127)!==0||Dp(s,n,a)}h.memoizedState=a;var p={value:a,getSnapshot:n};return h.queue=p,Kp(Bp.bind(null,s,p,t),[t]),s.flags|=2048,ui(9,{destroy:void 0},Lp.bind(null,s,p,a,n),null),a},useId:function(){var t=Ot(),n=Qe.identifierPrefix;if(Le){var a=Rn,s=_n;a=(s&~(1<<32-Xe(s)-1)).toString(32)+a,n="_"+n+"R_"+a,a=Yo++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=dk++,n="_"+n+"r_"+a.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:Zc,useFormState:Yp,useActionState:Yp,useOptimistic:function(t){var n=Ot();n.memoizedState=n.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Kc.bind(null,Ae,!0,a),a.dispatch=n,[t,n]},useMemoCache:qc,useCacheRefresh:function(){return Ot().memoizedState=xk.bind(null,Ae)},useEffectEvent:function(t){var n=Ot(),a={impl:t};return n.memoizedState=a,function(){if((Fe&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Jc={readContext:Ct,use:Xo,useCallback:rg,useContext:Ct,useEffect:Yc,useImperativeHandle:ng,useInsertionEffect:Wp,useLayoutEffect:eg,useMemo:lg,useReducer:Qo,useRef:Zp,useState:function(){return Qo(er)},useDebugValue:$c,useDeferredValue:function(t,n){var a=it();return ig(a,Ge.memoizedState,t,n)},useTransition:function(){var t=Qo(er)[0],n=it().memoizedState;return[typeof t=="boolean"?t:ma(t),n]},useSyncExternalStore:zp,useId:ug,useHostTransitionStatus:Zc,useFormState:$p,useActionState:$p,useOptimistic:function(t,n){var a=it();return Pp(a,Ge,t,n)},useMemoCache:qc,useCacheRefresh:cg};Jc.useEffectEvent=Jp;var pg={readContext:Ct,use:Xo,useCallback:rg,useContext:Ct,useEffect:Yc,useImperativeHandle:ng,useInsertionEffect:Wp,useLayoutEffect:eg,useMemo:lg,useReducer:Vc,useRef:Zp,useState:function(){return Vc(er)},useDebugValue:$c,useDeferredValue:function(t,n){var a=it();return Ge===null?Xc(a,t,n):ig(a,Ge.memoizedState,t,n)},useTransition:function(){var t=Vc(er)[0],n=it().memoizedState;return[typeof t=="boolean"?t:ma(t),n]},useSyncExternalStore:zp,useId:ug,useHostTransitionStatus:Zc,useFormState:Qp,useActionState:Qp,useOptimistic:function(t,n){var a=it();return Ge!==null?Pp(a,Ge,t,n):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:qc,useCacheRefresh:cg};pg.useEffectEvent=Jp;function Wc(t,n,a,s){n=t.memoizedState,a=a(s,n),a=a==null?n:y({},n,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var ef={enqueueSetState:function(t,n,a){t=t._reactInternals;var s=en(),h=Tr(s);h.payload=n,a!=null&&(h.callback=a),n=_r(t,h,s),n!==null&&(It(n,t,s),ca(n,t,s))},enqueueReplaceState:function(t,n,a){t=t._reactInternals;var s=en(),h=Tr(s);h.tag=1,h.payload=n,a!=null&&(h.callback=a),n=_r(t,h,s),n!==null&&(It(n,t,s),ca(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var a=en(),s=Tr(a);s.tag=2,n!=null&&(s.callback=n),n=_r(t,s,a),n!==null&&(It(n,t,a),ca(n,t,a))}};function gg(t,n,a,s,h,p,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,p,w):n.prototype&&n.prototype.isPureReactComponent?!na(a,s)||!na(h,p):!0}function yg(t,n,a,s){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,s),n.state!==t&&ef.enqueueReplaceState(n,n.state,null)}function Sl(t,n){var a=n;if("ref"in n){a={};for(var s in n)s!=="ref"&&(a[s]=n[s])}if(t=t.defaultProps){a===n&&(a=y({},a));for(var h in t)a[h]===void 0&&(a[h]=t[h])}return a}function xg(t){_o(t)}function bg(t){console.error(t)}function vg(t){_o(t)}function Wo(t,n){try{var a=t.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function wg(t,n,a){try{var s=t.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function tf(t,n,a){return a=Tr(a),a.tag=3,a.payload={element:null},a.callback=function(){Wo(t,n)},a}function Sg(t){return t=Tr(t),t.tag=3,t}function kg(t,n,a,s){var h=a.type.getDerivedStateFromError;if(typeof h=="function"){var p=s.value;t.payload=function(){return h(p)},t.callback=function(){wg(n,a,s)}}var w=a.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(t.callback=function(){wg(n,a,s),typeof h!="function"&&(Lr===null?Lr=new Set([this]):Lr.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})})}function vk(t,n,a,s,h){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=a.alternate,n!==null&&ti(n,a,h,!0),a=Zt.current,a!==null){switch(a.tag){case 31:case 13:return mn===null?fs():a.alternate===null&&rt===0&&(rt=3),a.flags&=-257,a.flags|=65536,a.lanes=h,s===Po?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([s]):n.add(s),Af(t,s,h)),!1;case 22:return a.flags|=65536,s===Po?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([s]):a.add(s)),Af(t,s,h)),!1}throw Error(i(435,a.tag))}return Af(t,s,h),fs(),!1}if(Le)return n=Zt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=h,s!==vc&&(t=Error(i(422),{cause:s}),ia(cn(t,a)))):(s!==vc&&(n=Error(i(423),{cause:s}),ia(cn(n,a))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,s=cn(s,a),h=tf(t.stateNode,s,h),Rc(t,h),rt!==4&&(rt=2)),!1;var p=Error(i(520),{cause:s});if(p=cn(p,a),Ca===null?Ca=[p]:Ca.push(p),rt!==4&&(rt=2),n===null)return!0;s=cn(s,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,t=h&-h,a.lanes|=t,t=tf(a.stateNode,s,t),Rc(a,t),!1;case 1:if(n=a.type,p=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Lr===null||!Lr.has(p))))return a.flags|=65536,h&=-h,a.lanes|=h,h=Sg(h),kg(h,t,a,s),Rc(a,h),!1}a=a.return}while(a!==null);return!1}var nf=Error(i(461)),ut=!1;function Et(t,n,a,s){n.child=t===null?Ap(n,null,a,s):vl(n,t.child,a,s)}function Cg(t,n,a,s,h){a=a.render;var p=n.ref;if("ref"in s){var w={};for(var E in s)E!=="ref"&&(w[E]=s[E])}else w=s;return gl(n),s=Bc(t,n,a,w,p,h),E=Uc(),t!==null&&!ut?(Hc(t,n,h),tr(t,n,h)):(Le&&E&&xc(n),n.flags|=1,Et(t,n,s,h),n.child)}function Eg(t,n,a,s,h){if(t===null){var p=a.type;return typeof p=="function"&&!pc(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,Ng(t,n,p,s,h)):(t=zo(a.type,null,s,n,n.mode,h),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!ff(t,h)){var w=p.memoizedProps;if(a=a.compare,a=a!==null?a:na,a(w,s)&&t.ref===n.ref)return tr(t,n,h)}return n.flags|=1,t=Qn(p,s),t.ref=n.ref,t.return=n,n.child=t}function Ng(t,n,a,s,h){if(t!==null){var p=t.memoizedProps;if(na(p,s)&&t.ref===n.ref)if(ut=!1,n.pendingProps=s=p,ff(t,h))(t.flags&131072)!==0&&(ut=!0);else return n.lanes=t.lanes,tr(t,n,h)}return rf(t,n,a,s,h)}function Ag(t,n,a,s){var h=s.children,p=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(p=p!==null?p.baseLanes|a:a,t!==null){for(s=n.child=t.child,h=0;s!==null;)h=h|s.lanes|s.childLanes,s=s.sibling;s=h&~p}else s=0,n.child=null;return jg(t,n,p,a,s)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Uo(n,p!==null?p.cachePool:null),p!==null?_p(n,p):Oc(),Rp(n);else return s=n.lanes=536870912,jg(t,n,p!==null?p.baseLanes|a:a,a,s)}else p!==null?(Uo(n,p.cachePool),_p(n,p),Mr(),n.memoizedState=null):(t!==null&&Uo(n,null),Oc(),Mr());return Et(t,n,h,a),n.child}function ya(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function jg(t,n,a,s,h){var p=Ac();return p=p===null?null:{parent:ot._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},t!==null&&Uo(n,null),Oc(),Rp(n),t!==null&&ti(t,n,s,!0),n.childLanes=h,null}function es(t,n){return n=ns({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function Tg(t,n,a){return vl(n,t.child,null,a),t=es(n,n.pendingProps),t.flags|=2,Kt(n),n.memoizedState=null,t}function wk(t,n,a){var s=n.pendingProps,h=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Le){if(s.mode==="hidden")return t=es(n,s),n.lanes=536870912,ya(null,t);if(Dc(n),(t=Je)?(t=qy(t,hn),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Cr!==null?{id:_n,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=dp(t),a.return=n,n.child=a,kt=n,Je=null)):t=null,t===null)throw Nr(n);return n.lanes=536870912,null}return es(n,s)}var p=t.memoizedState;if(p!==null){var w=p.dehydrated;if(Dc(n),h)if(n.flags&256)n.flags&=-257,n=Tg(t,n,a);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(i(558));else if(ut||ti(t,n,a,!1),h=(a&t.childLanes)!==0,ut||h){if(s=Qe,s!==null&&(w=bm(s,a),w!==0&&w!==p.retryLane))throw p.retryLane=w,dl(t,w),It(s,t,w),nf;fs(),n=Tg(t,n,a)}else t=p.treeContext,Je=pn(w.nextSibling),kt=n,Le=!0,Er=null,hn=!1,t!==null&&pp(n,t),n=es(n,s),n.flags|=4096;return n}return t=Qn(t.child,{mode:s.mode,children:s.children}),t.ref=n.ref,n.child=t,t.return=n,t}function ts(t,n){var a=n.ref;if(a===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(t===null||t.ref!==a)&&(n.flags|=4194816)}}function rf(t,n,a,s,h){return gl(n),a=Bc(t,n,a,s,void 0,h),s=Uc(),t!==null&&!ut?(Hc(t,n,h),tr(t,n,h)):(Le&&s&&xc(n),n.flags|=1,Et(t,n,a,h),n.child)}function _g(t,n,a,s,h,p){return gl(n),n.updateQueue=null,a=Op(n,s,a,h),Mp(t),s=Uc(),t!==null&&!ut?(Hc(t,n,p),tr(t,n,p)):(Le&&s&&xc(n),n.flags|=1,Et(t,n,a,p),n.child)}function Rg(t,n,a,s,h){if(gl(n),n.stateNode===null){var p=Kl,w=a.contextType;typeof w=="object"&&w!==null&&(p=Ct(w)),p=new a(s,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=ef,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=s,p.state=n.memoizedState,p.refs={},Tc(n),w=a.contextType,p.context=typeof w=="object"&&w!==null?Ct(w):Kl,p.state=n.memoizedState,w=a.getDerivedStateFromProps,typeof w=="function"&&(Wc(n,a,w,s),p.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(w=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),w!==p.state&&ef.enqueueReplaceState(p,p.state,null),da(n,s,p,h),fa(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(t===null){p=n.stateNode;var E=n.memoizedProps,M=Sl(a,E);p.props=M;var I=p.context,W=a.contextType;w=Kl,typeof W=="object"&&W!==null&&(w=Ct(W));var te=a.getDerivedStateFromProps;W=typeof te=="function"||typeof p.getSnapshotBeforeUpdate=="function",E=n.pendingProps!==E,W||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(E||I!==w)&&yg(n,p,s,w),jr=!1;var Y=n.memoizedState;p.state=Y,da(n,s,p,h),fa(),I=n.memoizedState,E||Y!==I||jr?(typeof te=="function"&&(Wc(n,a,te,s),I=n.memoizedState),(M=jr||gg(n,a,M,s,Y,I,w))?(W||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=I),p.props=s,p.state=I,p.context=w,s=M):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{p=n.stateNode,_c(t,n),w=n.memoizedProps,W=Sl(a,w),p.props=W,te=n.pendingProps,Y=p.context,I=a.contextType,M=Kl,typeof I=="object"&&I!==null&&(M=Ct(I)),E=a.getDerivedStateFromProps,(I=typeof E=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==te||Y!==M)&&yg(n,p,s,M),jr=!1,Y=n.memoizedState,p.state=Y,da(n,s,p,h),fa();var Q=n.memoizedState;w!==te||Y!==Q||jr||t!==null&&t.dependencies!==null&&Lo(t.dependencies)?(typeof E=="function"&&(Wc(n,a,E,s),Q=n.memoizedState),(W=jr||gg(n,a,W,s,Y,Q,M)||t!==null&&t.dependencies!==null&&Lo(t.dependencies))?(I||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,Q,M),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,Q,M)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===t.memoizedProps&&Y===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&Y===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Q),p.props=s,p.state=Q,p.context=M,s=W):(typeof p.componentDidUpdate!="function"||w===t.memoizedProps&&Y===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&Y===t.memoizedState||(n.flags|=1024),s=!1)}return p=s,ts(t,n),s=(n.flags&128)!==0,p||s?(p=n.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,t!==null&&s?(n.child=vl(n,t.child,null,h),n.child=vl(n,null,a,h)):Et(t,n,a,h),n.memoizedState=p.state,t=n.child):t=tr(t,n,h),t}function Mg(t,n,a,s){return ml(),n.flags|=256,Et(t,n,a,s),n.child}var lf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function af(t){return{baseLanes:t,cachePool:wp()}}function of(t,n,a){return t=t!==null?t.childLanes&~a:0,n&&(t|=Wt),t}function Og(t,n,a){var s=n.pendingProps,h=!1,p=(n.flags&128)!==0,w;if((w=p)||(w=t!==null&&t.memoizedState===null?!1:(lt.current&2)!==0),w&&(h=!0,n.flags&=-129),w=(n.flags&32)!==0,n.flags&=-33,t===null){if(Le){if(h?Rr(n):Mr(),(t=Je)?(t=qy(t,hn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:Cr!==null?{id:_n,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=dp(t),a.return=n,n.child=a,kt=n,Je=null)):t=null,t===null)throw Nr(n);return Vf(t)?n.lanes=32:n.lanes=536870912,null}var E=s.children;return s=s.fallback,h?(Mr(),h=n.mode,E=ns({mode:"hidden",children:E},h),s=hl(s,h,a,null),E.return=n,s.return=n,E.sibling=s,n.child=E,s=n.child,s.memoizedState=af(a),s.childLanes=of(t,w,a),n.memoizedState=lf,ya(null,s)):(Rr(n),sf(n,E))}var M=t.memoizedState;if(M!==null&&(E=M.dehydrated,E!==null)){if(p)n.flags&256?(Rr(n),n.flags&=-257,n=uf(t,n,a)):n.memoizedState!==null?(Mr(),n.child=t.child,n.flags|=128,n=null):(Mr(),E=s.fallback,h=n.mode,s=ns({mode:"visible",children:s.children},h),E=hl(E,h,a,null),E.flags|=2,s.return=n,E.return=n,s.sibling=E,n.child=s,vl(n,t.child,null,a),s=n.child,s.memoizedState=af(a),s.childLanes=of(t,w,a),n.memoizedState=lf,n=ya(null,s));else if(Rr(n),Vf(E)){if(w=E.nextSibling&&E.nextSibling.dataset,w)var I=w.dgst;w=I,s=Error(i(419)),s.stack="",s.digest=w,ia({value:s,source:null,stack:null}),n=uf(t,n,a)}else if(ut||ti(t,n,a,!1),w=(a&t.childLanes)!==0,ut||w){if(w=Qe,w!==null&&(s=bm(w,a),s!==0&&s!==M.retryLane))throw M.retryLane=s,dl(t,s),It(w,t,s),nf;Ff(E)||fs(),n=uf(t,n,a)}else Ff(E)?(n.flags|=192,n.child=t.child,n=null):(t=M.treeContext,Je=pn(E.nextSibling),kt=n,Le=!0,Er=null,hn=!1,t!==null&&pp(n,t),n=sf(n,s.children),n.flags|=4096);return n}return h?(Mr(),E=s.fallback,h=n.mode,M=t.child,I=M.sibling,s=Qn(M,{mode:"hidden",children:s.children}),s.subtreeFlags=M.subtreeFlags&65011712,I!==null?E=Qn(I,E):(E=hl(E,h,a,null),E.flags|=2),E.return=n,s.return=n,s.sibling=E,n.child=s,ya(null,s),s=n.child,E=t.child.memoizedState,E===null?E=af(a):(h=E.cachePool,h!==null?(M=ot._currentValue,h=h.parent!==M?{parent:M,pool:M}:h):h=wp(),E={baseLanes:E.baseLanes|a,cachePool:h}),s.memoizedState=E,s.childLanes=of(t,w,a),n.memoizedState=lf,ya(t.child,s)):(Rr(n),a=t.child,t=a.sibling,a=Qn(a,{mode:"visible",children:s.children}),a.return=n,a.sibling=null,t!==null&&(w=n.deletions,w===null?(n.deletions=[t],n.flags|=16):w.push(t)),n.child=a,n.memoizedState=null,a)}function sf(t,n){return n=ns({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function ns(t,n){return t=Qt(22,t,null,n),t.lanes=0,t}function uf(t,n,a){return vl(n,t.child,null,a),t=sf(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function zg(t,n,a){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),kc(t.return,n,a)}function cf(t,n,a,s,h,p){var w=t.memoizedState;w===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:h,treeForkCount:p}:(w.isBackwards=n,w.rendering=null,w.renderingStartTime=0,w.last=s,w.tail=a,w.tailMode=h,w.treeForkCount=p)}function Dg(t,n,a){var s=n.pendingProps,h=s.revealOrder,p=s.tail;s=s.children;var w=lt.current,E=(w&2)!==0;if(E?(w=w&1|2,n.flags|=128):w&=1,T(lt,w),Et(t,n,s,a),s=Le?la:0,!E&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&zg(t,a,n);else if(t.tag===19)zg(t,a,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(h){case"forwards":for(a=n.child,h=null;a!==null;)t=a.alternate,t!==null&&Io(t)===null&&(h=a),a=a.sibling;a=h,a===null?(h=n.child,n.child=null):(h=a.sibling,a.sibling=null),cf(n,!1,h,a,p,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,h=n.child,n.child=null;h!==null;){if(t=h.alternate,t!==null&&Io(t)===null){n.child=h;break}t=h.sibling,h.sibling=a,a=h,h=t}cf(n,!0,a,null,p,s);break;case"together":cf(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function tr(t,n,a){if(t!==null&&(n.dependencies=t.dependencies),Dr|=n.lanes,(a&n.childLanes)===0)if(t!==null){if(ti(t,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(i(153));if(n.child!==null){for(t=n.child,a=Qn(t,t.pendingProps),n.child=a,a.return=n;t.sibling!==null;)t=t.sibling,a=a.sibling=Qn(t,t.pendingProps),a.return=n;a.sibling=null}return n.child}function ff(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&Lo(t)))}function Sk(t,n,a){switch(n.tag){case 3:Ue(n,n.stateNode.containerInfo),Ar(n,ot,t.memoizedState.cache),ml();break;case 27:case 5:at(n);break;case 4:Ue(n,n.stateNode.containerInfo);break;case 10:Ar(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Dc(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Rr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Og(t,n,a):(Rr(n),t=tr(t,n,a),t!==null?t.sibling:null);Rr(n);break;case 19:var h=(t.flags&128)!==0;if(s=(a&n.childLanes)!==0,s||(ti(t,n,a,!1),s=(a&n.childLanes)!==0),h){if(s)return Dg(t,n,a);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),T(lt,lt.current),s)break;return null;case 22:return n.lanes=0,Ag(t,n,a,n.pendingProps);case 24:Ar(n,ot,t.memoizedState.cache)}return tr(t,n,a)}function Lg(t,n,a){if(t!==null)if(t.memoizedProps!==n.pendingProps)ut=!0;else{if(!ff(t,a)&&(n.flags&128)===0)return ut=!1,Sk(t,n,a);ut=(t.flags&131072)!==0}else ut=!1,Le&&(n.flags&1048576)!==0&&mp(n,la,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=xl(n.elementType),n.type=t,typeof t=="function")pc(t)?(s=Sl(t,s),n.tag=1,n=Rg(null,n,t,s,a)):(n.tag=0,n=rf(null,n,t,s,a));else{if(t!=null){var h=t.$$typeof;if(h===U){n.tag=11,n=Cg(null,n,t,s,a);break e}else if(h===B){n.tag=14,n=Eg(null,n,t,s,a);break e}}throw n=J(t)||t,Error(i(306,n,""))}}return n;case 0:return rf(t,n,n.type,n.pendingProps,a);case 1:return s=n.type,h=Sl(s,n.pendingProps),Rg(t,n,s,h,a);case 3:e:{if(Ue(n,n.stateNode.containerInfo),t===null)throw Error(i(387));s=n.pendingProps;var p=n.memoizedState;h=p.element,_c(t,n),da(n,s,null,a);var w=n.memoizedState;if(s=w.cache,Ar(n,ot,s),s!==p.cache&&Cc(n,[ot],a,!0),fa(),s=w.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:w.cache},n.updateQueue.baseState=p,n.memoizedState=p,n.flags&256){n=Mg(t,n,s,a);break e}else if(s!==h){h=cn(Error(i(424)),n),ia(h),n=Mg(t,n,s,a);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Je=pn(t.firstChild),kt=n,Le=!0,Er=null,hn=!0,a=Ap(n,null,s,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ml(),s===h){n=tr(t,n,a);break e}Et(t,n,s,a)}n=n.child}return n;case 26:return ts(t,n),t===null?(a=$y(n.type,null,n.pendingProps,null))?n.memoizedState=a:Le||(a=n.type,t=n.pendingProps,s=xs(ce.current).createElement(a),s[St]=n,s[Ut]=t,Nt(s,a,t),bt(s),n.stateNode=s):n.memoizedState=$y(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return at(n),t===null&&Le&&(s=n.stateNode=Iy(n.type,n.pendingProps,ce.current),kt=n,hn=!0,h=Je,Pr(n.type)?(If=h,Je=pn(s.firstChild)):Je=h),Et(t,n,n.pendingProps.children,a),ts(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Le&&((h=s=Je)&&(s=Jk(s,n.type,n.pendingProps,hn),s!==null?(n.stateNode=s,kt=n,Je=pn(s.firstChild),hn=!1,h=!0):h=!1),h||Nr(n)),at(n),h=n.type,p=n.pendingProps,w=t!==null?t.memoizedProps:null,s=p.children,Hf(h,p)?s=null:w!==null&&Hf(h,w)&&(n.flags|=32),n.memoizedState!==null&&(h=Bc(t,n,hk,null,null,a),Ma._currentValue=h),ts(t,n),Et(t,n,s,a),n.child;case 6:return t===null&&Le&&((t=a=Je)&&(a=Wk(a,n.pendingProps,hn),a!==null?(n.stateNode=a,kt=n,Je=null,t=!0):t=!1),t||Nr(n)),null;case 13:return Og(t,n,a);case 4:return Ue(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=vl(n,null,s,a):Et(t,n,s,a),n.child;case 11:return Cg(t,n,n.type,n.pendingProps,a);case 7:return Et(t,n,n.pendingProps,a),n.child;case 8:return Et(t,n,n.pendingProps.children,a),n.child;case 12:return Et(t,n,n.pendingProps.children,a),n.child;case 10:return s=n.pendingProps,Ar(n,n.type,s.value),Et(t,n,s.children,a),n.child;case 9:return h=n.type._context,s=n.pendingProps.children,gl(n),h=Ct(h),s=s(h),n.flags|=1,Et(t,n,s,a),n.child;case 14:return Eg(t,n,n.type,n.pendingProps,a);case 15:return Ng(t,n,n.type,n.pendingProps,a);case 19:return Dg(t,n,a);case 31:return wk(t,n,a);case 22:return Ag(t,n,a,n.pendingProps);case 24:return gl(n),s=Ct(ot),t===null?(h=Ac(),h===null&&(h=Qe,p=Ec(),h.pooledCache=p,p.refCount++,p!==null&&(h.pooledCacheLanes|=a),h=p),n.memoizedState={parent:s,cache:h},Tc(n),Ar(n,ot,h)):((t.lanes&a)!==0&&(_c(t,n),da(n,null,null,a),fa()),h=t.memoizedState,p=n.memoizedState,h.parent!==s?(h={parent:s,cache:s},n.memoizedState=h,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=h),Ar(n,ot,s)):(s=p.cache,Ar(n,ot,s),s!==h.cache&&Cc(n,[ot],a,!0))),Et(t,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function nr(t){t.flags|=4}function df(t,n,a,s,h){if((n=(t.mode&32)!==0)&&(n=!1),n){if(t.flags|=16777216,(h&335544128)===h)if(t.stateNode.complete)t.flags|=8192;else if(uy())t.flags|=8192;else throw bl=Po,jc}else t.flags&=-16777217}function Bg(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Jy(n))if(uy())t.flags|=8192;else throw bl=Po,jc}function rs(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?gm():536870912,t.lanes|=n,hi|=n)}function xa(t,n){if(!Le)switch(t.tailMode){case"hidden":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function We(t){var n=t.alternate!==null&&t.alternate.child===t.child,a=0,s=0;if(n)for(var h=t.child;h!==null;)a|=h.lanes|h.childLanes,s|=h.subtreeFlags&65011712,s|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)a|=h.lanes|h.childLanes,s|=h.subtreeFlags,s|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=s,t.childLanes=a,n}function kk(t,n,a){var s=n.pendingProps;switch(bc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(n),null;case 1:return We(n),null;case 3:return a=n.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Jn(ot),ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(ei(n)?nr(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,wc())),We(n),null;case 26:var h=n.type,p=n.memoizedState;return t===null?(nr(n),p!==null?(We(n),Bg(n,p)):(We(n),df(n,h,null,s,a))):p?p!==t.memoizedState?(nr(n),We(n),Bg(n,p)):(We(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&nr(n),We(n),df(n,h,t,s,a)),null;case 27:if(dt(n),a=ce.current,h=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&nr(n);else{if(!s){if(n.stateNode===null)throw Error(i(166));return We(n),null}t=ue.current,ei(n)?gp(n):(t=Iy(h,s,a),n.stateNode=t,nr(n))}return We(n),null;case 5:if(dt(n),h=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==s&&nr(n);else{if(!s){if(n.stateNode===null)throw Error(i(166));return We(n),null}if(p=ue.current,ei(n))gp(n);else{var w=xs(ce.current);switch(p){case 1:p=w.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:p=w.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":p=w.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":p=w.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":p=w.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?w.createElement("select",{is:s.is}):w.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?w.createElement(h,{is:s.is}):w.createElement(h)}}p[St]=n,p[Ut]=s;e:for(w=n.child;w!==null;){if(w.tag===5||w.tag===6)p.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===n)break e;for(;w.sibling===null;){if(w.return===null||w.return===n)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}n.stateNode=p;e:switch(Nt(p,h,s),h){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&nr(n)}}return We(n),df(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,a),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==s&&nr(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(i(166));if(t=ce.current,ei(n)){if(t=n.stateNode,a=n.memoizedProps,s=null,h=kt,h!==null)switch(h.tag){case 27:case 5:s=h.memoizedProps}t[St]=n,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||Oy(t.nodeValue,a)),t||Nr(n,!0)}else t=xs(t).createTextNode(s),t[St]=n,n.stateNode=t}return We(n),null;case 31:if(a=n.memoizedState,t===null||t.memoizedState!==null){if(s=ei(n),a!==null){if(t===null){if(!s)throw Error(i(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[St]=n}else ml(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),t=!1}else a=wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return n.flags&256?(Kt(n),n):(Kt(n),null);if((n.flags&128)!==0)throw Error(i(558))}return We(n),null;case 13:if(s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=ei(n),s!==null&&s.dehydrated!==null){if(t===null){if(!h)throw Error(i(318));if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));h[St]=n}else ml(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),h=!1}else h=wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return n.flags&256?(Kt(n),n):(Kt(n),null)}return Kt(n),(n.flags&128)!==0?(n.lanes=a,n):(a=s!==null,t=t!==null&&t.memoizedState!==null,a&&(s=n.child,h=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(h=s.alternate.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==h&&(s.flags|=2048)),a!==t&&a&&(n.child.flags|=8192),rs(n,n.updateQueue),We(n),null);case 4:return ve(),t===null&&zf(n.stateNode.containerInfo),We(n),null;case 10:return Jn(n.type),We(n),null;case 19:if(G(lt),s=n.memoizedState,s===null)return We(n),null;if(h=(n.flags&128)!==0,p=s.rendering,p===null)if(h)xa(s,!1);else{if(rt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(p=Io(t),p!==null){for(n.flags|=128,xa(s,!1),t=p.updateQueue,n.updateQueue=t,rs(n,t),n.subtreeFlags=0,t=a,a=n.child;a!==null;)fp(a,t),a=a.sibling;return T(lt,lt.current&1|2),Le&&Zn(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&xt()>ss&&(n.flags|=128,h=!0,xa(s,!1),n.lanes=4194304)}else{if(!h)if(t=Io(p),t!==null){if(n.flags|=128,h=!0,t=t.updateQueue,n.updateQueue=t,rs(n,t),xa(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!Le)return We(n),null}else 2*xt()-s.renderingStartTime>ss&&a!==536870912&&(n.flags|=128,h=!0,xa(s,!1),n.lanes=4194304);s.isBackwards?(p.sibling=n.child,n.child=p):(t=s.last,t!==null?t.sibling=p:n.child=p,s.last=p)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xt(),t.sibling=null,a=lt.current,T(lt,h?a&1|2:a&1),Le&&Zn(n,s.treeForkCount),t):(We(n),null);case 22:case 23:return Kt(n),zc(),s=n.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(a&536870912)!==0&&(n.flags&128)===0&&(We(n),n.subtreeFlags&6&&(n.flags|=8192)):We(n),a=n.updateQueue,a!==null&&rs(n,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==a&&(n.flags|=2048),t!==null&&G(yl),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Jn(ot),We(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function Ck(t,n){switch(bc(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Jn(ot),ve(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return dt(n),null;case 31:if(n.memoizedState!==null){if(Kt(n),n.alternate===null)throw Error(i(340));ml()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Kt(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(i(340));ml()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return G(lt),null;case 4:return ve(),null;case 10:return Jn(n.type),null;case 22:case 23:return Kt(n),zc(),t!==null&&G(yl),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Jn(ot),null;case 25:return null;default:return null}}function Ug(t,n){switch(bc(n),n.tag){case 3:Jn(ot),ve();break;case 26:case 27:case 5:dt(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&Kt(n);break;case 13:Kt(n);break;case 19:G(lt);break;case 10:Jn(n.type);break;case 22:case 23:Kt(n),zc(),t!==null&&G(yl);break;case 24:Jn(ot)}}function ba(t,n){try{var a=n.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var h=s.next;a=h;do{if((a.tag&t)===t){s=void 0;var p=a.create,w=a.inst;s=p(),w.destroy=s}a=a.next}while(a!==h)}}catch(E){Ie(n,n.return,E)}}function Or(t,n,a){try{var s=n.updateQueue,h=s!==null?s.lastEffect:null;if(h!==null){var p=h.next;s=p;do{if((s.tag&t)===t){var w=s.inst,E=w.destroy;if(E!==void 0){w.destroy=void 0,h=n;var M=a,I=E;try{I()}catch(W){Ie(h,M,W)}}}s=s.next}while(s!==p)}}catch(W){Ie(n,n.return,W)}}function Hg(t){var n=t.updateQueue;if(n!==null){var a=t.stateNode;try{Tp(n,a)}catch(s){Ie(t,t.return,s)}}}function Pg(t,n,a){a.props=Sl(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){Ie(t,n,s)}}function va(t,n){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof a=="function"?t.refCleanup=a(s):a.current=s}}catch(h){Ie(t,n,h)}}function Mn(t,n){var a=t.ref,s=t.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(h){Ie(t,n,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(h){Ie(t,n,h)}else a.current=null}function qg(t){var n=t.type,a=t.memoizedProps,s=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(h){Ie(t,t.return,h)}}function hf(t,n,a){try{var s=t.stateNode;Yk(s,t.type,a,n),s[Ut]=n}catch(h){Ie(t,t.return,h)}}function Fg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Pr(t.type)||t.tag===4}function mf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Fg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Pr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function pf(t,n,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(t),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=$n));else if(s!==4&&(s===27&&Pr(t.type)&&(a=t.stateNode,n=null),t=t.child,t!==null))for(pf(t,n,a),t=t.sibling;t!==null;)pf(t,n,a),t=t.sibling}function ls(t,n,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,n?a.insertBefore(t,n):a.appendChild(t);else if(s!==4&&(s===27&&Pr(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(ls(t,n,a),t=t.sibling;t!==null;)ls(t,n,a),t=t.sibling}function Vg(t){var n=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,h=n.attributes;h.length;)n.removeAttributeNode(h[0]);Nt(n,s,a),n[St]=t,n[Ut]=a}catch(p){Ie(t,t.return,p)}}var rr=!1,ct=!1,gf=!1,Ig=typeof WeakSet=="function"?WeakSet:Set,vt=null;function Ek(t,n){if(t=t.containerInfo,Bf=Es,t=np(t),sc(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var h=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{a.nodeType,p.nodeType}catch{a=null;break e}var w=0,E=-1,M=-1,I=0,W=0,te=t,Y=null;t:for(;;){for(var Q;te!==a||h!==0&&te.nodeType!==3||(E=w+h),te!==p||s!==0&&te.nodeType!==3||(M=w+s),te.nodeType===3&&(w+=te.nodeValue.length),(Q=te.firstChild)!==null;)Y=te,te=Q;for(;;){if(te===t)break t;if(Y===a&&++I===h&&(E=w),Y===p&&++W===s&&(M=w),(Q=te.nextSibling)!==null)break;te=Y,Y=te.parentNode}te=Q}a=E===-1||M===-1?null:{start:E,end:M}}else a=null}a=a||{start:0,end:0}}else a=null;for(Uf={focusedElem:t,selectionRange:a},Es=!1,vt=n;vt!==null;)if(n=vt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,vt=t;else for(;vt!==null;){switch(n=vt,p=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)h=t[a],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&p!==null){t=void 0,a=n,h=p.memoizedProps,p=p.memoizedState,s=a.stateNode;try{var he=Sl(a.type,h);t=s.getSnapshotBeforeUpdate(he,p),s.__reactInternalSnapshotBeforeUpdate=t}catch(ke){Ie(a,a.return,ke)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,a=t.nodeType,a===9)qf(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":qf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=n.sibling,t!==null){t.return=n.return,vt=t;break}vt=n.return}}function Gg(t,n,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:ir(t,a),s&4&&ba(5,a);break;case 1:if(ir(t,a),s&4)if(t=a.stateNode,n===null)try{t.componentDidMount()}catch(w){Ie(a,a.return,w)}else{var h=Sl(a.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(h,n,t.__reactInternalSnapshotBeforeUpdate)}catch(w){Ie(a,a.return,w)}}s&64&&Hg(a),s&512&&va(a,a.return);break;case 3:if(ir(t,a),s&64&&(t=a.updateQueue,t!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Tp(t,n)}catch(w){Ie(a,a.return,w)}}break;case 27:n===null&&s&4&&Vg(a);case 26:case 5:ir(t,a),n===null&&s&4&&qg(a),s&512&&va(a,a.return);break;case 12:ir(t,a);break;case 31:ir(t,a),s&4&&Xg(t,a);break;case 13:ir(t,a),s&4&&Qg(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=zk.bind(null,a),e2(t,a))));break;case 22:if(s=a.memoizedState!==null||rr,!s){n=n!==null&&n.memoizedState!==null||ct,h=rr;var p=ct;rr=s,(ct=n)&&!p?ar(t,a,(a.subtreeFlags&8772)!==0):ir(t,a),rr=h,ct=p}break;case 30:break;default:ir(t,a)}}function Yg(t){var n=t.alternate;n!==null&&(t.alternate=null,Yg(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Gu(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var et=null,Pt=!1;function lr(t,n,a){for(a=a.child;a!==null;)$g(t,n,a),a=a.sibling}function $g(t,n,a){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Mt,a)}catch{}switch(a.tag){case 26:ct||Mn(a,n),lr(t,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||Mn(a,n);var s=et,h=Pt;Pr(a.type)&&(et=a.stateNode,Pt=!1),lr(t,n,a),Ta(a.stateNode),et=s,Pt=h;break;case 5:ct||Mn(a,n);case 6:if(s=et,h=Pt,et=null,lr(t,n,a),et=s,Pt=h,et!==null)if(Pt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(p){Ie(a,n,p)}else try{et.removeChild(a.stateNode)}catch(p){Ie(a,n,p)}break;case 18:et!==null&&(Pt?(t=et,Hy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),wi(t)):Hy(et,a.stateNode));break;case 4:s=et,h=Pt,et=a.stateNode.containerInfo,Pt=!0,lr(t,n,a),et=s,Pt=h;break;case 0:case 11:case 14:case 15:Or(2,a,n),ct||Or(4,a,n),lr(t,n,a);break;case 1:ct||(Mn(a,n),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Pg(a,n,s)),lr(t,n,a);break;case 21:lr(t,n,a);break;case 22:ct=(s=ct)||a.memoizedState!==null,lr(t,n,a),ct=s;break;default:lr(t,n,a)}}function Xg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{wi(t)}catch(a){Ie(n,n.return,a)}}}function Qg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{wi(t)}catch(a){Ie(n,n.return,a)}}function Nk(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Ig),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Ig),n;default:throw Error(i(435,t.tag))}}function is(t,n){var a=Nk(t);n.forEach(function(s){if(!a.has(s)){a.add(s);var h=Dk.bind(null,t,s);s.then(h,h)}})}function qt(t,n){var a=n.deletions;if(a!==null)for(var s=0;s<a.length;s++){var h=a[s],p=t,w=n,E=w;e:for(;E!==null;){switch(E.tag){case 27:if(Pr(E.type)){et=E.stateNode,Pt=!1;break e}break;case 5:et=E.stateNode,Pt=!1;break e;case 3:case 4:et=E.stateNode.containerInfo,Pt=!0;break e}E=E.return}if(et===null)throw Error(i(160));$g(p,w,h),et=null,Pt=!1,p=h.alternate,p!==null&&(p.return=null),h.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Zg(n,t),n=n.sibling}var wn=null;function Zg(t,n){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:qt(n,t),Ft(t),s&4&&(Or(3,t,t.return),ba(3,t),Or(5,t,t.return));break;case 1:qt(n,t),Ft(t),s&512&&(ct||a===null||Mn(a,a.return)),s&64&&rr&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var h=wn;if(qt(n,t),Ft(t),s&512&&(ct||a===null||Mn(a,a.return)),s&4){var p=a!==null?a.memoizedState:null;if(s=t.memoizedState,a===null)if(s===null)if(t.stateNode===null){e:{s=t.type,a=t.memoizedProps,h=h.ownerDocument||h;t:switch(s){case"title":p=h.getElementsByTagName("title")[0],(!p||p[$i]||p[St]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=h.createElement(s),h.head.insertBefore(p,h.querySelector("head > title"))),Nt(p,s,a),p[St]=t,bt(p),s=p;break e;case"link":var w=Zy("link","href",h).get(s+(a.href||""));if(w){for(var E=0;E<w.length;E++)if(p=w[E],p.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&p.getAttribute("rel")===(a.rel==null?null:a.rel)&&p.getAttribute("title")===(a.title==null?null:a.title)&&p.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){w.splice(E,1);break t}}p=h.createElement(s),Nt(p,s,a),h.head.appendChild(p);break;case"meta":if(w=Zy("meta","content",h).get(s+(a.content||""))){for(E=0;E<w.length;E++)if(p=w[E],p.getAttribute("content")===(a.content==null?null:""+a.content)&&p.getAttribute("name")===(a.name==null?null:a.name)&&p.getAttribute("property")===(a.property==null?null:a.property)&&p.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&p.getAttribute("charset")===(a.charSet==null?null:a.charSet)){w.splice(E,1);break t}}p=h.createElement(s),Nt(p,s,a),h.head.appendChild(p);break;default:throw Error(i(468,s))}p[St]=t,bt(p),s=p}t.stateNode=s}else Ky(h,t.type,t.stateNode);else t.stateNode=Qy(h,s,t.memoizedProps);else p!==s?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,s===null?Ky(h,t.type,t.stateNode):Qy(h,s,t.memoizedProps)):s===null&&t.stateNode!==null&&hf(t,t.memoizedProps,a.memoizedProps)}break;case 27:qt(n,t),Ft(t),s&512&&(ct||a===null||Mn(a,a.return)),a!==null&&s&4&&hf(t,t.memoizedProps,a.memoizedProps);break;case 5:if(qt(n,t),Ft(t),s&512&&(ct||a===null||Mn(a,a.return)),t.flags&32){h=t.stateNode;try{Il(h,"")}catch(he){Ie(t,t.return,he)}}s&4&&t.stateNode!=null&&(h=t.memoizedProps,hf(t,h,a!==null?a.memoizedProps:h)),s&1024&&(gf=!0);break;case 6:if(qt(n,t),Ft(t),s&4){if(t.stateNode===null)throw Error(i(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(he){Ie(t,t.return,he)}}break;case 3:if(ws=null,h=wn,wn=bs(n.containerInfo),qt(n,t),wn=h,Ft(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{wi(n.containerInfo)}catch(he){Ie(t,t.return,he)}gf&&(gf=!1,Kg(t));break;case 4:s=wn,wn=bs(t.stateNode.containerInfo),qt(n,t),Ft(t),wn=s;break;case 12:qt(n,t),Ft(t);break;case 31:qt(n,t),Ft(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,is(t,s)));break;case 13:qt(n,t),Ft(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(os=xt()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,is(t,s)));break;case 22:h=t.memoizedState!==null;var M=a!==null&&a.memoizedState!==null,I=rr,W=ct;if(rr=I||h,ct=W||M,qt(n,t),ct=W,rr=I,Ft(t),s&8192)e:for(n=t.stateNode,n._visibility=h?n._visibility&-2:n._visibility|1,h&&(a===null||M||rr||ct||kl(t)),a=null,n=t;;){if(n.tag===5||n.tag===26){if(a===null){M=a=n;try{if(p=M.stateNode,h)w=p.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{E=M.stateNode;var te=M.memoizedProps.style,Y=te!=null&&te.hasOwnProperty("display")?te.display:null;E.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(he){Ie(M,M.return,he)}}}else if(n.tag===6){if(a===null){M=n;try{M.stateNode.nodeValue=h?"":M.memoizedProps}catch(he){Ie(M,M.return,he)}}}else if(n.tag===18){if(a===null){M=n;try{var Q=M.stateNode;h?Py(Q,!0):Py(M.stateNode,!1)}catch(he){Ie(M,M.return,he)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=t.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,is(t,a))));break;case 19:qt(n,t),Ft(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,is(t,s)));break;case 30:break;case 21:break;default:qt(n,t),Ft(t)}}function Ft(t){var n=t.flags;if(n&2){try{for(var a,s=t.return;s!==null;){if(Fg(s)){a=s;break}s=s.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var h=a.stateNode,p=mf(t);ls(t,p,h);break;case 5:var w=a.stateNode;a.flags&32&&(Il(w,""),a.flags&=-33);var E=mf(t);ls(t,E,w);break;case 3:case 4:var M=a.stateNode.containerInfo,I=mf(t);pf(t,I,M);break;default:throw Error(i(161))}}catch(W){Ie(t,t.return,W)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function Kg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Kg(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function ir(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Gg(t,n.alternate,n),n=n.sibling}function kl(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Or(4,n,n.return),kl(n);break;case 1:Mn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Pg(n,n.return,a),kl(n);break;case 27:Ta(n.stateNode);case 26:case 5:Mn(n,n.return),kl(n);break;case 22:n.memoizedState===null&&kl(n);break;case 30:kl(n);break;default:kl(n)}t=t.sibling}}function ar(t,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,h=t,p=n,w=p.flags;switch(p.tag){case 0:case 11:case 15:ar(h,p,a),ba(4,p);break;case 1:if(ar(h,p,a),s=p,h=s.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(I){Ie(s,s.return,I)}if(s=p,h=s.updateQueue,h!==null){var E=s.stateNode;try{var M=h.shared.hiddenCallbacks;if(M!==null)for(h.shared.hiddenCallbacks=null,h=0;h<M.length;h++)jp(M[h],E)}catch(I){Ie(s,s.return,I)}}a&&w&64&&Hg(p),va(p,p.return);break;case 27:Vg(p);case 26:case 5:ar(h,p,a),a&&s===null&&w&4&&qg(p),va(p,p.return);break;case 12:ar(h,p,a);break;case 31:ar(h,p,a),a&&w&4&&Xg(h,p);break;case 13:ar(h,p,a),a&&w&4&&Qg(h,p);break;case 22:p.memoizedState===null&&ar(h,p,a),va(p,p.return);break;case 30:break;default:ar(h,p,a)}n=n.sibling}}function yf(t,n){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&aa(a))}function xf(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&aa(t))}function Sn(t,n,a,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Jg(t,n,a,s),n=n.sibling}function Jg(t,n,a,s){var h=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(t,n,a,s),h&2048&&ba(9,n);break;case 1:Sn(t,n,a,s);break;case 3:Sn(t,n,a,s),h&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&aa(t)));break;case 12:if(h&2048){Sn(t,n,a,s),t=n.stateNode;try{var p=n.memoizedProps,w=p.id,E=p.onPostCommit;typeof E=="function"&&E(w,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(M){Ie(n,n.return,M)}}else Sn(t,n,a,s);break;case 31:Sn(t,n,a,s);break;case 13:Sn(t,n,a,s);break;case 23:break;case 22:p=n.stateNode,w=n.alternate,n.memoizedState!==null?p._visibility&2?Sn(t,n,a,s):wa(t,n):p._visibility&2?Sn(t,n,a,s):(p._visibility|=2,ci(t,n,a,s,(n.subtreeFlags&10256)!==0||!1)),h&2048&&yf(w,n);break;case 24:Sn(t,n,a,s),h&2048&&xf(n.alternate,n);break;default:Sn(t,n,a,s)}}function ci(t,n,a,s,h){for(h=h&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var p=t,w=n,E=a,M=s,I=w.flags;switch(w.tag){case 0:case 11:case 15:ci(p,w,E,M,h),ba(8,w);break;case 23:break;case 22:var W=w.stateNode;w.memoizedState!==null?W._visibility&2?ci(p,w,E,M,h):wa(p,w):(W._visibility|=2,ci(p,w,E,M,h)),h&&I&2048&&yf(w.alternate,w);break;case 24:ci(p,w,E,M,h),h&&I&2048&&xf(w.alternate,w);break;default:ci(p,w,E,M,h)}n=n.sibling}}function wa(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=t,s=n,h=s.flags;switch(s.tag){case 22:wa(a,s),h&2048&&yf(s.alternate,s);break;case 24:wa(a,s),h&2048&&xf(s.alternate,s);break;default:wa(a,s)}n=n.sibling}}var Sa=8192;function fi(t,n,a){if(t.subtreeFlags&Sa)for(t=t.child;t!==null;)Wg(t,n,a),t=t.sibling}function Wg(t,n,a){switch(t.tag){case 26:fi(t,n,a),t.flags&Sa&&t.memoizedState!==null&&d2(a,wn,t.memoizedState,t.memoizedProps);break;case 5:fi(t,n,a);break;case 3:case 4:var s=wn;wn=bs(t.stateNode.containerInfo),fi(t,n,a),wn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Sa,Sa=16777216,fi(t,n,a),Sa=s):fi(t,n,a));break;default:fi(t,n,a)}}function ey(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function ka(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];vt=s,ny(s,t)}ey(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ty(t),t=t.sibling}function ty(t){switch(t.tag){case 0:case 11:case 15:ka(t),t.flags&2048&&Or(9,t,t.return);break;case 3:ka(t);break;case 12:ka(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,as(t)):ka(t);break;default:ka(t)}}function as(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];vt=s,ny(s,t)}ey(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Or(8,n,n.return),as(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,as(n));break;default:as(n)}t=t.sibling}}function ny(t,n){for(;vt!==null;){var a=vt;switch(a.tag){case 0:case 11:case 15:Or(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:aa(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,vt=s;else e:for(a=t;vt!==null;){s=vt;var h=s.sibling,p=s.return;if(Yg(s),s===a){vt=null;break e}if(h!==null){h.return=p,vt=h;break e}vt=p}}}var Ak={getCacheForType:function(t){var n=Ct(ot),a=n.data.get(t);return a===void 0&&(a=t(),n.data.set(t,a)),a},cacheSignal:function(){return Ct(ot).controller.signal}},jk=typeof WeakMap=="function"?WeakMap:Map,Fe=0,Qe=null,Re=null,ze=0,Ve=0,Jt=null,zr=!1,di=!1,bf=!1,or=0,rt=0,Dr=0,Cl=0,vf=0,Wt=0,hi=0,Ca=null,Vt=null,wf=!1,os=0,ry=0,ss=1/0,us=null,Lr=null,pt=0,Br=null,mi=null,sr=0,Sf=0,kf=null,ly=null,Ea=0,Cf=null;function en(){return(Fe&2)!==0&&ze!==0?ze&-ze:D.T!==null?_f():vm()}function iy(){if(Wt===0)if((ze&536870912)===0||Le){var t=yo;yo<<=1,(yo&3932160)===0&&(yo=262144),Wt=t}else Wt=536870912;return t=Zt.current,t!==null&&(t.flags|=32),Wt}function It(t,n,a){(t===Qe&&(Ve===2||Ve===9)||t.cancelPendingCommit!==null)&&(pi(t,0),Ur(t,ze,Wt,!1)),Yi(t,a),((Fe&2)===0||t!==Qe)&&(t===Qe&&((Fe&2)===0&&(Cl|=a),rt===4&&Ur(t,ze,Wt,!1)),On(t))}function ay(t,n,a){if((Fe&6)!==0)throw Error(i(327));var s=!a&&(n&127)===0&&(n&t.expiredLanes)===0||Gi(t,n),h=s?Rk(t,n):Nf(t,n,!0),p=s;do{if(h===0){di&&!s&&Ur(t,n,0,!1);break}else{if(a=t.current.alternate,p&&!Tk(a)){h=Nf(t,n,!1),p=!1;continue}if(h===2){if(p=n,t.errorRecoveryDisabledLanes&p)var w=0;else w=t.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){n=w;e:{var E=t;h=Ca;var M=E.current.memoizedState.isDehydrated;if(M&&(pi(E,w).flags|=256),w=Nf(E,w,!1),w!==2){if(bf&&!M){E.errorRecoveryDisabledLanes|=p,Cl|=p,h=4;break e}p=Vt,Vt=h,p!==null&&(Vt===null?Vt=p:Vt.push.apply(Vt,p))}h=w}if(p=!1,h!==2)continue}}if(h===1){pi(t,0),Ur(t,n,0,!0);break}e:{switch(s=t,p=h,p){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:Ur(s,n,Wt,!zr);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(h=os+300-xt(),10<h)){if(Ur(s,n,Wt,!zr),bo(s,0,!0)!==0)break e;sr=n,s.timeoutHandle=By(oy.bind(null,s,a,Vt,us,wf,n,Wt,Cl,hi,zr,p,"Throttled",-0,0),h);break e}oy(s,a,Vt,us,wf,n,Wt,Cl,hi,zr,p,null,-0,0)}}break}while(!0);On(t)}function oy(t,n,a,s,h,p,w,E,M,I,W,te,Y,Q){if(t.timeoutHandle=-1,te=n.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$n},Wg(n,p,te);var he=(p&62914560)===p?os-xt():(p&4194048)===p?ry-xt():0;if(he=h2(te,he),he!==null){sr=p,t.cancelPendingCommit=he(py.bind(null,t,n,p,a,s,h,w,E,M,W,te,null,Y,Q)),Ur(t,p,w,!I);return}}py(t,n,p,a,s,h,w,E,M)}function Tk(t){for(var n=t;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var h=a[s],p=h.getSnapshot;h=h.value;try{if(!Xt(p(),h))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ur(t,n,a,s){n&=~vf,n&=~Cl,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var h=n;0<h;){var p=31-Xe(h),w=1<<p;s[p]=-1,h&=~w}a!==0&&ym(t,a,n)}function cs(){return(Fe&6)===0?(Na(0),!1):!0}function Ef(){if(Re!==null){if(Ve===0)var t=Re.return;else t=Re,Kn=pl=null,Pc(t),ii=null,sa=0,t=Re;for(;t!==null;)Ug(t.alternate,t),t=t.return;Re=null}}function pi(t,n){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Qk(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),sr=0,Ef(),Qe=t,Re=a=Qn(t.current,null),ze=n,Ve=0,Jt=null,zr=!1,di=Gi(t,n),bf=!1,hi=Wt=vf=Cl=Dr=rt=0,Vt=Ca=null,wf=!1,(n&8)!==0&&(n|=n&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=n;0<s;){var h=31-Xe(s),p=1<<h;n|=t[h],s&=~p}return or=n,Ro(),a}function sy(t,n){Ae=null,D.H=ga,n===li||n===Ho?(n=Cp(),Ve=3):n===jc?(n=Cp(),Ve=4):Ve=n===nf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Jt=n,Re===null&&(rt=1,Wo(t,cn(n,t.current)))}function uy(){var t=Zt.current;return t===null?!0:(ze&4194048)===ze?mn===null:(ze&62914560)===ze||(ze&536870912)!==0?t===mn:!1}function cy(){var t=D.H;return D.H=ga,t===null?ga:t}function fy(){var t=D.A;return D.A=Ak,t}function fs(){rt=4,zr||(ze&4194048)!==ze&&Zt.current!==null||(di=!0),(Dr&134217727)===0&&(Cl&134217727)===0||Qe===null||Ur(Qe,ze,Wt,!1)}function Nf(t,n,a){var s=Fe;Fe|=2;var h=cy(),p=fy();(Qe!==t||ze!==n)&&(us=null,pi(t,n)),n=!1;var w=rt;e:do try{if(Ve!==0&&Re!==null){var E=Re,M=Jt;switch(Ve){case 8:Ef(),w=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(n=!0);var I=Ve;if(Ve=0,Jt=null,gi(t,E,M,I),a&&di){w=0;break e}break;default:I=Ve,Ve=0,Jt=null,gi(t,E,M,I)}}_k(),w=rt;break}catch(W){sy(t,W)}while(!0);return n&&t.shellSuspendCounter++,Kn=pl=null,Fe=s,D.H=h,D.A=p,Re===null&&(Qe=null,ze=0,Ro()),w}function _k(){for(;Re!==null;)dy(Re)}function Rk(t,n){var a=Fe;Fe|=2;var s=cy(),h=fy();Qe!==t||ze!==n?(us=null,ss=xt()+500,pi(t,n)):di=Gi(t,n);e:do try{if(Ve!==0&&Re!==null){n=Re;var p=Jt;t:switch(Ve){case 1:Ve=0,Jt=null,gi(t,n,p,1);break;case 2:case 9:if(Sp(p)){Ve=0,Jt=null,hy(n);break}n=function(){Ve!==2&&Ve!==9||Qe!==t||(Ve=7),On(t)},p.then(n,n);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:Sp(p)?(Ve=0,Jt=null,hy(n)):(Ve=0,Jt=null,gi(t,n,p,7));break;case 5:var w=null;switch(Re.tag){case 26:w=Re.memoizedState;case 5:case 27:var E=Re;if(w?Jy(w):E.stateNode.complete){Ve=0,Jt=null;var M=E.sibling;if(M!==null)Re=M;else{var I=E.return;I!==null?(Re=I,ds(I)):Re=null}break t}}Ve=0,Jt=null,gi(t,n,p,5);break;case 6:Ve=0,Jt=null,gi(t,n,p,6);break;case 8:Ef(),rt=6;break e;default:throw Error(i(462))}}Mk();break}catch(W){sy(t,W)}while(!0);return Kn=pl=null,D.H=s,D.A=h,Fe=a,Re!==null?0:(Qe=null,ze=0,Ro(),rt)}function Mk(){for(;Re!==null&&!Ii();)dy(Re)}function dy(t){var n=Lg(t.alternate,t,or);t.memoizedProps=t.pendingProps,n===null?ds(t):Re=n}function hy(t){var n=t,a=n.alternate;switch(n.tag){case 15:case 0:n=_g(a,n,n.pendingProps,n.type,void 0,ze);break;case 11:n=_g(a,n,n.pendingProps,n.type.render,n.ref,ze);break;case 5:Pc(n);default:Ug(a,n),n=Re=fp(n,or),n=Lg(a,n,or)}t.memoizedProps=t.pendingProps,n===null?ds(t):Re=n}function gi(t,n,a,s){Kn=pl=null,Pc(n),ii=null,sa=0;var h=n.return;try{if(vk(t,h,n,a,ze)){rt=1,Wo(t,cn(a,t.current)),Re=null;return}}catch(p){if(h!==null)throw Re=h,p;rt=1,Wo(t,cn(a,t.current)),Re=null;return}n.flags&32768?(Le||s===1?t=!0:di||(ze&536870912)!==0?t=!1:(zr=t=!0,(s===2||s===9||s===3||s===6)&&(s=Zt.current,s!==null&&s.tag===13&&(s.flags|=16384))),my(n,t)):ds(n)}function ds(t){var n=t;do{if((n.flags&32768)!==0){my(n,zr);return}t=n.return;var a=kk(n.alternate,n,or);if(a!==null){Re=a;return}if(n=n.sibling,n!==null){Re=n;return}Re=n=t}while(n!==null);rt===0&&(rt=5)}function my(t,n){do{var a=Ck(t.alternate,t);if(a!==null){a.flags&=32767,Re=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(t=t.sibling,t!==null)){Re=t;return}Re=t=a}while(t!==null);rt=6,Re=null}function py(t,n,a,s,h,p,w,E,M){t.cancelPendingCommit=null;do hs();while(pt!==0);if((Fe&6)!==0)throw Error(i(327));if(n!==null){if(n===t.current)throw Error(i(177));if(p=n.lanes|n.childLanes,p|=hc,fS(t,a,p,w,E,M),t===Qe&&(Re=Qe=null,ze=0),mi=n,Br=t,sr=a,Sf=p,kf=h,ly=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Lk(fe,function(){return vy(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=D.T,D.T=null,h=X.p,X.p=2,w=Fe,Fe|=4;try{Ek(t,n,a)}finally{Fe=w,X.p=h,D.T=s}}pt=1,gy(),yy(),xy()}}function gy(){if(pt===1){pt=0;var t=Br,n=mi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var s=X.p;X.p=2;var h=Fe;Fe|=4;try{Zg(n,t);var p=Uf,w=np(t.containerInfo),E=p.focusedElem,M=p.selectionRange;if(w!==E&&E&&E.ownerDocument&&tp(E.ownerDocument.documentElement,E)){if(M!==null&&sc(E)){var I=M.start,W=M.end;if(W===void 0&&(W=I),"selectionStart"in E)E.selectionStart=I,E.selectionEnd=Math.min(W,E.value.length);else{var te=E.ownerDocument||document,Y=te&&te.defaultView||window;if(Y.getSelection){var Q=Y.getSelection(),he=E.textContent.length,ke=Math.min(M.start,he),$e=M.end===void 0?ke:Math.min(M.end,he);!Q.extend&&ke>$e&&(w=$e,$e=ke,ke=w);var q=ep(E,ke),L=ep(E,$e);if(q&&L&&(Q.rangeCount!==1||Q.anchorNode!==q.node||Q.anchorOffset!==q.offset||Q.focusNode!==L.node||Q.focusOffset!==L.offset)){var V=te.createRange();V.setStart(q.node,q.offset),Q.removeAllRanges(),ke>$e?(Q.addRange(V),Q.extend(L.node,L.offset)):(V.setEnd(L.node,L.offset),Q.addRange(V))}}}}for(te=[],Q=E;Q=Q.parentNode;)Q.nodeType===1&&te.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<te.length;E++){var ee=te[E];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}Es=!!Bf,Uf=Bf=null}finally{Fe=h,X.p=s,D.T=a}}t.current=n,pt=2}}function yy(){if(pt===2){pt=0;var t=Br,n=mi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var s=X.p;X.p=2;var h=Fe;Fe|=4;try{Gg(t,n.alternate,n)}finally{Fe=h,X.p=s,D.T=a}}pt=3}}function xy(){if(pt===4||pt===3){pt=0,Ll();var t=Br,n=mi,a=sr,s=ly;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?pt=5:(pt=0,mi=Br=null,by(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(Lr=null),Vu(a),n=n.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Mt,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=D.T,h=X.p,X.p=2,D.T=null;try{for(var p=t.onRecoverableError,w=0;w<s.length;w++){var E=s[w];p(E.value,{componentStack:E.stack})}}finally{D.T=n,X.p=h}}(sr&3)!==0&&hs(),On(t),h=t.pendingLanes,(a&261930)!==0&&(h&42)!==0?t===Cf?Ea++:(Ea=0,Cf=t):Ea=0,Na(0)}}function by(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,aa(n)))}function hs(){return gy(),yy(),xy(),vy()}function vy(){if(pt!==5)return!1;var t=Br,n=Sf;Sf=0;var a=Vu(sr),s=D.T,h=X.p;try{X.p=32>a?32:a,D.T=null,a=kf,kf=null;var p=Br,w=sr;if(pt=0,mi=Br=null,sr=0,(Fe&6)!==0)throw Error(i(331));var E=Fe;if(Fe|=4,ty(p.current),Jg(p,p.current,w,a),Fe=E,Na(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Mt,p)}catch{}return!0}finally{X.p=h,D.T=s,by(t,n)}}function wy(t,n,a){n=cn(a,n),n=tf(t.stateNode,n,2),t=_r(t,n,2),t!==null&&(Yi(t,2),On(t))}function Ie(t,n,a){if(t.tag===3)wy(t,t,a);else for(;n!==null;){if(n.tag===3){wy(n,t,a);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Lr===null||!Lr.has(s))){t=cn(a,t),a=Sg(2),s=_r(n,a,2),s!==null&&(kg(a,s,n,t),Yi(s,2),On(s));break}}n=n.return}}function Af(t,n,a){var s=t.pingCache;if(s===null){s=t.pingCache=new jk;var h=new Set;s.set(n,h)}else h=s.get(n),h===void 0&&(h=new Set,s.set(n,h));h.has(a)||(bf=!0,h.add(a),t=Ok.bind(null,t,n,a),n.then(t,t))}function Ok(t,n,a){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Qe===t&&(ze&a)===a&&(rt===4||rt===3&&(ze&62914560)===ze&&300>xt()-os?(Fe&2)===0&&pi(t,0):vf|=a,hi===ze&&(hi=0)),On(t)}function Sy(t,n){n===0&&(n=gm()),t=dl(t,n),t!==null&&(Yi(t,n),On(t))}function zk(t){var n=t.memoizedState,a=0;n!==null&&(a=n.retryLane),Sy(t,a)}function Dk(t,n){var a=0;switch(t.tag){case 31:case 13:var s=t.stateNode,h=t.memoizedState;h!==null&&(a=h.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(n),Sy(t,a)}function Lk(t,n){return vr(t,n)}var ms=null,yi=null,jf=!1,ps=!1,Tf=!1,Hr=0;function On(t){t!==yi&&t.next===null&&(yi===null?ms=yi=t:yi=yi.next=t),ps=!0,jf||(jf=!0,Uk())}function Na(t,n){if(!Tf&&ps){Tf=!0;do for(var a=!1,s=ms;s!==null;){if(t!==0){var h=s.pendingLanes;if(h===0)var p=0;else{var w=s.suspendedLanes,E=s.pingedLanes;p=(1<<31-Xe(42|t)+1)-1,p&=h&~(w&~E),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,Ny(s,p))}else p=ze,p=bo(s,s===Qe?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||Gi(s,p)||(a=!0,Ny(s,p));s=s.next}while(a);Tf=!1}}function Bk(){ky()}function ky(){ps=jf=!1;var t=0;Hr!==0&&Xk()&&(t=Hr);for(var n=xt(),a=null,s=ms;s!==null;){var h=s.next,p=Cy(s,n);p===0?(s.next=null,a===null?ms=h:a.next=h,h===null&&(yi=a)):(a=s,(t!==0||(p&3)!==0)&&(ps=!0)),s=h}pt!==0&&pt!==5||Na(t),Hr!==0&&(Hr=0)}function Cy(t,n){for(var a=t.suspendedLanes,s=t.pingedLanes,h=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var w=31-Xe(p),E=1<<w,M=h[w];M===-1?((E&a)===0||(E&s)!==0)&&(h[w]=cS(E,n)):M<=n&&(t.expiredLanes|=E),p&=~E}if(n=Qe,a=ze,a=bo(t,t===n?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===n&&(Ve===2||Ve===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&al(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Gi(t,a)){if(n=a&-a,n===t.callbackPriority)return n;switch(s!==null&&al(s),Vu(a)){case 2:case 8:a=K;break;case 32:a=fe;break;case 268435456:a=Ee;break;default:a=fe}return s=Ey.bind(null,t),a=vr(a,s),t.callbackPriority=n,t.callbackNode=a,n}return s!==null&&s!==null&&al(s),t.callbackPriority=2,t.callbackNode=null,2}function Ey(t,n){if(pt!==0&&pt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(hs()&&t.callbackNode!==a)return null;var s=ze;return s=bo(t,t===Qe?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(ay(t,s,n),Cy(t,xt()),t.callbackNode!=null&&t.callbackNode===a?Ey.bind(null,t):null)}function Ny(t,n){if(hs())return null;ay(t,n,!0)}function Uk(){Zk(function(){(Fe&6)!==0?vr(H,Bk):ky()})}function _f(){if(Hr===0){var t=ni;t===0&&(t=go,go<<=1,(go&261888)===0&&(go=256)),Hr=t}return Hr}function Ay(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ko(""+t)}function jy(t,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,t.id&&a.setAttribute("form",t.id),n.parentNode.insertBefore(a,n),t=new FormData(t),a.parentNode.removeChild(a),t}function Hk(t,n,a,s,h){if(n==="submit"&&a&&a.stateNode===h){var p=Ay((h[Ut]||null).action),w=s.submitter;w&&(n=(n=w[Ut]||null)?Ay(n.formAction):w.getAttribute("formAction"),n!==null&&(p=n,w=null));var E=new Ao("action","action",null,s,h);t.push({event:E,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Hr!==0){var M=w?jy(h,w):new FormData(h);Qc(a,{pending:!0,data:M,method:h.method,action:p},null,M)}}else typeof p=="function"&&(E.preventDefault(),M=w?jy(h,w):new FormData(h),Qc(a,{pending:!0,data:M,method:h.method,action:p},p,M))},currentTarget:h}]})}}for(var Rf=0;Rf<dc.length;Rf++){var Mf=dc[Rf],Pk=Mf.toLowerCase(),qk=Mf[0].toUpperCase()+Mf.slice(1);vn(Pk,"on"+qk)}vn(ip,"onAnimationEnd"),vn(ap,"onAnimationIteration"),vn(op,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(rk,"onTransitionRun"),vn(lk,"onTransitionStart"),vn(ik,"onTransitionCancel"),vn(sp,"onTransitionEnd"),Fl("onMouseEnter",["mouseout","mouseover"]),Fl("onMouseLeave",["mouseout","mouseover"]),Fl("onPointerEnter",["pointerout","pointerover"]),Fl("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 Aa="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(" "),Fk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Aa));function Ty(t,n){n=(n&4)!==0;for(var a=0;a<t.length;a++){var s=t[a],h=s.event;s=s.listeners;e:{var p=void 0;if(n)for(var w=s.length-1;0<=w;w--){var E=s[w],M=E.instance,I=E.currentTarget;if(E=E.listener,M!==p&&h.isPropagationStopped())break e;p=E,h.currentTarget=I;try{p(h)}catch(W){_o(W)}h.currentTarget=null,p=M}else for(w=0;w<s.length;w++){if(E=s[w],M=E.instance,I=E.currentTarget,E=E.listener,M!==p&&h.isPropagationStopped())break e;p=E,h.currentTarget=I;try{p(h)}catch(W){_o(W)}h.currentTarget=null,p=M}}}}function Me(t,n){var a=n[Iu];a===void 0&&(a=n[Iu]=new Set);var s=t+"__bubble";a.has(s)||(_y(n,t,2,!1),a.add(s))}function Of(t,n,a){var s=0;n&&(s|=4),_y(a,t,s,n)}var gs="_reactListening"+Math.random().toString(36).slice(2);function zf(t){if(!t[gs]){t[gs]=!0,km.forEach(function(a){a!=="selectionchange"&&(Fk.has(a)||Of(a,!1,t),Of(a,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[gs]||(n[gs]=!0,Of("selectionchange",!1,n))}}function _y(t,n,a,s){switch(ix(n)){case 2:var h=g2;break;case 8:h=y2;break;default:h=Qf}a=h.bind(null,n,a,t),h=void 0,!Wu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(h=!0),s?h!==void 0?t.addEventListener(n,a,{capture:!0,passive:h}):t.addEventListener(n,a,!0):h!==void 0?t.addEventListener(n,a,{passive:h}):t.addEventListener(n,a,!1)}function Df(t,n,a,s,h){var p=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var w=s.tag;if(w===3||w===4){var E=s.stateNode.containerInfo;if(E===h)break;if(w===4)for(w=s.return;w!==null;){var M=w.tag;if((M===3||M===4)&&w.stateNode.containerInfo===h)return;w=w.return}for(;E!==null;){if(w=Hl(E),w===null)return;if(M=w.tag,M===5||M===6||M===26||M===27){s=p=w;continue e}E=E.parentNode}}s=s.return}Dm(function(){var I=p,W=Ku(a),te=[];e:{var Y=up.get(t);if(Y!==void 0){var Q=Ao,he=t;switch(t){case"keypress":if(Eo(a)===0)break e;case"keydown":case"keyup":Q=DS;break;case"focusin":he="focus",Q=rc;break;case"focusout":he="blur",Q=rc;break;case"beforeblur":case"afterblur":Q=rc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Um;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=kS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=US;break;case ip:case ap:case op:Q=NS;break;case sp:Q=PS;break;case"scroll":case"scrollend":Q=wS;break;case"wheel":Q=FS;break;case"copy":case"cut":case"paste":Q=jS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Pm;break;case"toggle":case"beforetoggle":Q=IS}var ke=(n&4)!==0,$e=!ke&&(t==="scroll"||t==="scrollend"),q=ke?Y!==null?Y+"Capture":null:Y;ke=[];for(var L=I,V;L!==null;){var ee=L;if(V=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||V===null||q===null||(ee=Qi(L,q),ee!=null&&ke.push(ja(L,ee,V))),$e)break;L=L.return}0<ke.length&&(Y=new Q(Y,he,null,a,W),te.push({event:Y,listeners:ke}))}}if((n&7)===0){e:{if(Y=t==="mouseover"||t==="pointerover",Q=t==="mouseout"||t==="pointerout",Y&&a!==Zu&&(he=a.relatedTarget||a.fromElement)&&(Hl(he)||he[Ul]))break e;if((Q||Y)&&(Y=W.window===W?W:(Y=W.ownerDocument)?Y.defaultView||Y.parentWindow:window,Q?(he=a.relatedTarget||a.toElement,Q=I,he=he?Hl(he):null,he!==null&&($e=u(he),ke=he.tag,he!==$e||ke!==5&&ke!==27&&ke!==6)&&(he=null)):(Q=null,he=I),Q!==he)){if(ke=Um,ee="onMouseLeave",q="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(ke=Pm,ee="onPointerLeave",q="onPointerEnter",L="pointer"),$e=Q==null?Y:Xi(Q),V=he==null?Y:Xi(he),Y=new ke(ee,L+"leave",Q,a,W),Y.target=$e,Y.relatedTarget=V,ee=null,Hl(W)===I&&(ke=new ke(q,L+"enter",he,a,W),ke.target=V,ke.relatedTarget=$e,ee=ke),$e=ee,Q&&he)t:{for(ke=Vk,q=Q,L=he,V=0,ee=q;ee;ee=ke(ee))V++;ee=0;for(var be=L;be;be=ke(be))ee++;for(;0<V-ee;)q=ke(q),V--;for(;0<ee-V;)L=ke(L),ee--;for(;V--;){if(q===L||L!==null&&q===L.alternate){ke=q;break t}q=ke(q),L=ke(L)}ke=null}else ke=null;Q!==null&&Ry(te,Y,Q,ke,!1),he!==null&&$e!==null&&Ry(te,$e,he,ke,!0)}}e:{if(Y=I?Xi(I):window,Q=Y.nodeName&&Y.nodeName.toLowerCase(),Q==="select"||Q==="input"&&Y.type==="file")var He=Xm;else if(Ym(Y))if(Qm)He=ek;else{He=JS;var ye=KS}else Q=Y.nodeName,!Q||Q.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?I&&Qu(I.elementType)&&(He=Xm):He=WS;if(He&&(He=He(t,I))){$m(te,He,a,W);break e}ye&&ye(t,Y,I),t==="focusout"&&I&&Y.type==="number"&&I.memoizedProps.value!=null&&Xu(Y,"number",Y.value)}switch(ye=I?Xi(I):window,t){case"focusin":(Ym(ye)||ye.contentEditable==="true")&&(Xl=ye,uc=I,ra=null);break;case"focusout":ra=uc=Xl=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,rp(te,a,W);break;case"selectionchange":if(nk)break;case"keydown":case"keyup":rp(te,a,W)}var je;if(ic)e:{switch(t){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else $l?Im(t,a)&&(De="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(De="onCompositionStart");De&&(qm&&a.locale!=="ko"&&($l||De!=="onCompositionStart"?De==="onCompositionEnd"&&$l&&(je=Lm()):(kr=W,ec="value"in kr?kr.value:kr.textContent,$l=!0)),ye=ys(I,De),0<ye.length&&(De=new Hm(De,t,null,a,W),te.push({event:De,listeners:ye}),je?De.data=je:(je=Gm(a),je!==null&&(De.data=je)))),(je=YS?$S(t,a):XS(t,a))&&(De=ys(I,"onBeforeInput"),0<De.length&&(ye=new Hm("onBeforeInput","beforeinput",null,a,W),te.push({event:ye,listeners:De}),ye.data=je)),Hk(te,t,I,a,W)}Ty(te,n)})}function ja(t,n,a){return{instance:t,listener:n,currentTarget:a}}function ys(t,n){for(var a=n+"Capture",s=[];t!==null;){var h=t,p=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||p===null||(h=Qi(t,a),h!=null&&s.unshift(ja(t,h,p)),h=Qi(t,n),h!=null&&s.push(ja(t,h,p))),t.tag===3)return s;t=t.return}return[]}function Vk(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ry(t,n,a,s,h){for(var p=n._reactName,w=[];a!==null&&a!==s;){var E=a,M=E.alternate,I=E.stateNode;if(E=E.tag,M!==null&&M===s)break;E!==5&&E!==26&&E!==27||I===null||(M=I,h?(I=Qi(a,p),I!=null&&w.unshift(ja(a,I,M))):h||(I=Qi(a,p),I!=null&&w.push(ja(a,I,M)))),a=a.return}w.length!==0&&t.push({event:n,listeners:w})}var Ik=/\r\n?/g,Gk=/\u0000|\uFFFD/g;function My(t){return(typeof t=="string"?t:""+t).replace(Ik,`
49
+ `).replace(Gk,"")}function Oy(t,n){return n=My(n),My(t)===n}function Ye(t,n,a,s,h,p){switch(a){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Il(t,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Il(t,""+s);break;case"className":wo(t,"class",s);break;case"tabIndex":wo(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":wo(t,a,s);break;case"style":Om(t,s,p);break;case"data":if(n!=="object"){wo(t,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||a!=="href")){t.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=ko(""+s),t.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(a,"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 p=="function"&&(a==="formAction"?(n!=="input"&&Ye(t,n,"name",h.name,h,null),Ye(t,n,"formEncType",h.formEncType,h,null),Ye(t,n,"formMethod",h.formMethod,h,null),Ye(t,n,"formTarget",h.formTarget,h,null)):(Ye(t,n,"encType",h.encType,h,null),Ye(t,n,"method",h.method,h,null),Ye(t,n,"target",h.target,h,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=ko(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=$n);break;case"onScroll":s!=null&&Me("scroll",t);break;case"onScrollEnd":s!=null&&Me("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(a=s.__html,a!=null){if(h.children!=null)throw Error(i(60));t.innerHTML=a}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}a=ko(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""+s):t.removeAttribute(a);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":s===!0?t.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,s):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(a,s):t.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(a):t.setAttribute(a,s);break;case"popover":Me("beforetoggle",t),Me("toggle",t),vo(t,"popover",s);break;case"xlinkActuate":Yn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Yn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Yn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Yn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Yn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Yn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Yn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Yn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Yn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":vo(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=bS.get(a)||a,vo(t,a,s))}}function Lf(t,n,a,s,h,p){switch(a){case"style":Om(t,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(a=s.__html,a!=null){if(h.children!=null)throw Error(i(60));t.innerHTML=a}}break;case"children":typeof s=="string"?Il(t,s):(typeof s=="number"||typeof s=="bigint")&&Il(t,""+s);break;case"onScroll":s!=null&&Me("scroll",t);break;case"onScrollEnd":s!=null&&Me("scrollend",t);break;case"onClick":s!=null&&(t.onclick=$n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(h=a.endsWith("Capture"),n=a.slice(2,h?a.length-7:void 0),p=t[Ut]||null,p=p!=null?p[a]:null,typeof p=="function"&&t.removeEventListener(n,p,h),typeof s=="function")){typeof p!="function"&&p!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(n,s,h);break e}a in t?t[a]=s:s===!0?t.setAttribute(a,""):vo(t,a,s)}}}function Nt(t,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",t),Me("load",t);var s=!1,h=!1,p;for(p in a)if(a.hasOwnProperty(p)){var w=a[p];if(w!=null)switch(p){case"src":s=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ye(t,n,p,w,a,null)}}h&&Ye(t,n,"srcSet",a.srcSet,a,null),s&&Ye(t,n,"src",a.src,a,null);return;case"input":Me("invalid",t);var E=p=w=h=null,M=null,I=null;for(s in a)if(a.hasOwnProperty(s)){var W=a[s];if(W!=null)switch(s){case"name":h=W;break;case"type":w=W;break;case"checked":M=W;break;case"defaultChecked":I=W;break;case"value":p=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,n));break;default:Ye(t,n,s,W,a,null)}}Tm(t,p,E,M,I,w,h,!1);return;case"select":Me("invalid",t),s=w=p=null;for(h in a)if(a.hasOwnProperty(h)&&(E=a[h],E!=null))switch(h){case"value":p=E;break;case"defaultValue":w=E;break;case"multiple":s=E;default:Ye(t,n,h,E,a,null)}n=p,a=w,t.multiple=!!s,n!=null?Vl(t,!!s,n,!1):a!=null&&Vl(t,!!s,a,!0);return;case"textarea":Me("invalid",t),p=h=s=null;for(w in a)if(a.hasOwnProperty(w)&&(E=a[w],E!=null))switch(w){case"value":s=E;break;case"defaultValue":h=E;break;case"children":p=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(i(91));break;default:Ye(t,n,w,E,a,null)}Rm(t,s,h,p);return;case"option":for(M in a)if(a.hasOwnProperty(M)&&(s=a[M],s!=null))switch(M){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ye(t,n,M,s,a,null)}return;case"dialog":Me("beforetoggle",t),Me("toggle",t),Me("cancel",t),Me("close",t);break;case"iframe":case"object":Me("load",t);break;case"video":case"audio":for(s=0;s<Aa.length;s++)Me(Aa[s],t);break;case"image":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"embed":case"source":case"link":Me("error",t),Me("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in a)if(a.hasOwnProperty(I)&&(s=a[I],s!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:Ye(t,n,I,s,a,null)}return;default:if(Qu(n)){for(W in a)a.hasOwnProperty(W)&&(s=a[W],s!==void 0&&Lf(t,n,W,s,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(s=a[E],s!=null&&Ye(t,n,E,s,a,null))}function Yk(t,n,a,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,p=null,w=null,E=null,M=null,I=null,W=null;for(Q in a){var te=a[Q];if(a.hasOwnProperty(Q)&&te!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":M=te;default:s.hasOwnProperty(Q)||Ye(t,n,Q,null,s,te)}}for(var Y in s){var Q=s[Y];if(te=a[Y],s.hasOwnProperty(Y)&&(Q!=null||te!=null))switch(Y){case"type":p=Q;break;case"name":h=Q;break;case"checked":I=Q;break;case"defaultChecked":W=Q;break;case"value":w=Q;break;case"defaultValue":E=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,n));break;default:Q!==te&&Ye(t,n,Y,Q,s,te)}}$u(t,w,E,M,I,W,p,h);return;case"select":Q=w=E=Y=null;for(p in a)if(M=a[p],a.hasOwnProperty(p)&&M!=null)switch(p){case"value":break;case"multiple":Q=M;default:s.hasOwnProperty(p)||Ye(t,n,p,null,s,M)}for(h in s)if(p=s[h],M=a[h],s.hasOwnProperty(h)&&(p!=null||M!=null))switch(h){case"value":Y=p;break;case"defaultValue":E=p;break;case"multiple":w=p;default:p!==M&&Ye(t,n,h,p,s,M)}n=E,a=w,s=Q,Y!=null?Vl(t,!!a,Y,!1):!!s!=!!a&&(n!=null?Vl(t,!!a,n,!0):Vl(t,!!a,a?[]:"",!1));return;case"textarea":Q=Y=null;for(E in a)if(h=a[E],a.hasOwnProperty(E)&&h!=null&&!s.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Ye(t,n,E,null,s,h)}for(w in s)if(h=s[w],p=a[w],s.hasOwnProperty(w)&&(h!=null||p!=null))switch(w){case"value":Y=h;break;case"defaultValue":Q=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(i(91));break;default:h!==p&&Ye(t,n,w,h,s,p)}_m(t,Y,Q);return;case"option":for(var he in a)if(Y=a[he],a.hasOwnProperty(he)&&Y!=null&&!s.hasOwnProperty(he))switch(he){case"selected":t.selected=!1;break;default:Ye(t,n,he,null,s,Y)}for(M in s)if(Y=s[M],Q=a[M],s.hasOwnProperty(M)&&Y!==Q&&(Y!=null||Q!=null))switch(M){case"selected":t.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Ye(t,n,M,Y,s,Q)}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 ke in a)Y=a[ke],a.hasOwnProperty(ke)&&Y!=null&&!s.hasOwnProperty(ke)&&Ye(t,n,ke,null,s,Y);for(I in s)if(Y=s[I],Q=a[I],s.hasOwnProperty(I)&&Y!==Q&&(Y!=null||Q!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,n));break;default:Ye(t,n,I,Y,s,Q)}return;default:if(Qu(n)){for(var $e in a)Y=a[$e],a.hasOwnProperty($e)&&Y!==void 0&&!s.hasOwnProperty($e)&&Lf(t,n,$e,void 0,s,Y);for(W in s)Y=s[W],Q=a[W],!s.hasOwnProperty(W)||Y===Q||Y===void 0&&Q===void 0||Lf(t,n,W,Y,s,Q);return}}for(var q in a)Y=a[q],a.hasOwnProperty(q)&&Y!=null&&!s.hasOwnProperty(q)&&Ye(t,n,q,null,s,Y);for(te in s)Y=s[te],Q=a[te],!s.hasOwnProperty(te)||Y===Q||Y==null&&Q==null||Ye(t,n,te,Y,s,Q)}function zy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $k(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var h=a[s],p=h.transferSize,w=h.initiatorType,E=h.duration;if(p&&E&&zy(w)){for(w=0,E=h.responseEnd,s+=1;s<a.length;s++){var M=a[s],I=M.startTime;if(I>E)break;var W=M.transferSize,te=M.initiatorType;W&&zy(te)&&(M=M.responseEnd,w+=W*(M<E?1:(E-I)/(M-I)))}if(--s,n+=8*(p+w)/(h.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Bf=null,Uf=null;function xs(t){return t.nodeType===9?t:t.ownerDocument}function Dy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ly(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Hf(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Pf=null;function Xk(){var t=window.event;return t&&t.type==="popstate"?t===Pf?!1:(Pf=t,!0):(Pf=null,!1)}var By=typeof setTimeout=="function"?setTimeout:void 0,Qk=typeof clearTimeout=="function"?clearTimeout:void 0,Uy=typeof Promise=="function"?Promise:void 0,Zk=typeof queueMicrotask=="function"?queueMicrotask:typeof Uy<"u"?function(t){return Uy.resolve(null).then(t).catch(Kk)}:By;function Kk(t){setTimeout(function(){throw t})}function Pr(t){return t==="head"}function Hy(t,n){var a=n,s=0;do{var h=a.nextSibling;if(t.removeChild(a),h&&h.nodeType===8)if(a=h.data,a==="/$"||a==="/&"){if(s===0){t.removeChild(h),wi(n);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")Ta(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Ta(a);for(var p=a.firstChild;p;){var w=p.nextSibling,E=p.nodeName;p[$i]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&p.rel.toLowerCase()==="stylesheet"||a.removeChild(p),p=w}}else a==="body"&&Ta(t.ownerDocument.body);a=h}while(a);wi(n)}function Py(t,n){var a=t;t=0;do{var s=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=s}while(a)}function qf(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":qf(a),Gu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Jk(t,n,a,s){for(;t.nodeType===1;){var h=a;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[$i])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var p=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=pn(t.nextSibling),t===null)break}return null}function Wk(t,n,a){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=pn(t.nextSibling),t===null))return null;return t}function qy(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=pn(t.nextSibling),t===null))return null;return t}function Ff(t){return t.data==="$?"||t.data==="$~"}function Vf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function e2(t,n){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=n;else if(t.data!=="$?"||a.readyState!=="loading")n();else{var s=function(){n(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function pn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return t}var If=null;function Fy(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(n===0)return pn(t.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}t=t.nextSibling}return null}function Vy(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return t;n--}else a!=="/$"&&a!=="/&"||n++}t=t.previousSibling}return null}function Iy(t,n,a){switch(n=xs(a),t){case"html":if(t=n.documentElement,!t)throw Error(i(452));return t;case"head":if(t=n.head,!t)throw Error(i(453));return t;case"body":if(t=n.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function Ta(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Gu(t)}var gn=new Map,Gy=new Set;function bs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ur=X.d;X.d={f:t2,r:n2,D:r2,C:l2,L:i2,m:a2,X:s2,S:o2,M:u2};function t2(){var t=ur.f(),n=cs();return t||n}function n2(t){var n=Pl(t);n!==null&&n.tag===5&&n.type==="form"?sg(n):ur.r(t)}var xi=typeof document>"u"?null:document;function Yy(t,n,a){var s=xi;if(s&&typeof n=="string"&&n){var h=sn(n);h='link[rel="'+t+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),Gy.has(h)||(Gy.add(h),t={rel:t,crossOrigin:a,href:n},s.querySelector(h)===null&&(n=s.createElement("link"),Nt(n,"link",t),bt(n),s.head.appendChild(n)))}}function r2(t){ur.D(t),Yy("dns-prefetch",t,null)}function l2(t,n){ur.C(t,n),Yy("preconnect",t,n)}function i2(t,n,a){ur.L(t,n,a);var s=xi;if(s&&t&&n){var h='link[rel="preload"][as="'+sn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+sn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+sn(a.imageSizes)+'"]')):h+='[href="'+sn(t)+'"]';var p=h;switch(n){case"style":p=bi(t);break;case"script":p=vi(t)}gn.has(p)||(t=y({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:t,as:n},a),gn.set(p,t),s.querySelector(h)!==null||n==="style"&&s.querySelector(_a(p))||n==="script"&&s.querySelector(Ra(p))||(n=s.createElement("link"),Nt(n,"link",t),bt(n),s.head.appendChild(n)))}}function a2(t,n){ur.m(t,n);var a=xi;if(a&&t){var s=n&&typeof n.as=="string"?n.as:"script",h='link[rel="modulepreload"][as="'+sn(s)+'"][href="'+sn(t)+'"]',p=h;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=vi(t)}if(!gn.has(p)&&(t=y({rel:"modulepreload",href:t},n),gn.set(p,t),a.querySelector(h)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ra(p)))return}s=a.createElement("link"),Nt(s,"link",t),bt(s),a.head.appendChild(s)}}}function o2(t,n,a){ur.S(t,n,a);var s=xi;if(s&&t){var h=ql(s).hoistableStyles,p=bi(t);n=n||"default";var w=h.get(p);if(!w){var E={loading:0,preload:null};if(w=s.querySelector(_a(p)))E.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":n},a),(a=gn.get(p))&&Gf(t,a);var M=w=s.createElement("link");bt(M),Nt(M,"link",t),M._p=new Promise(function(I,W){M.onload=I,M.onerror=W}),M.addEventListener("load",function(){E.loading|=1}),M.addEventListener("error",function(){E.loading|=2}),E.loading|=4,vs(w,n,s)}w={type:"stylesheet",instance:w,count:1,state:E},h.set(p,w)}}}function s2(t,n){ur.X(t,n);var a=xi;if(a&&t){var s=ql(a).hoistableScripts,h=vi(t),p=s.get(h);p||(p=a.querySelector(Ra(h)),p||(t=y({src:t,async:!0},n),(n=gn.get(h))&&Yf(t,n),p=a.createElement("script"),bt(p),Nt(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(h,p))}}function u2(t,n){ur.M(t,n);var a=xi;if(a&&t){var s=ql(a).hoistableScripts,h=vi(t),p=s.get(h);p||(p=a.querySelector(Ra(h)),p||(t=y({src:t,async:!0,type:"module"},n),(n=gn.get(h))&&Yf(t,n),p=a.createElement("script"),bt(p),Nt(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(h,p))}}function $y(t,n,a,s){var h=(h=ce.current)?bs(h):null;if(!h)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=bi(a.href),a=ql(h).hoistableStyles,s=a.get(n),s||(s={type:"style",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=bi(a.href);var p=ql(h).hoistableStyles,w=p.get(t);if(w||(h=h.ownerDocument||h,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,w),(p=h.querySelector(_a(t)))&&!p._p&&(w.instance=p,w.state.loading=5),gn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},gn.set(t,a),p||c2(h,t,a,w.state))),n&&s===null)throw Error(i(528,""));return w}if(n&&s!==null)throw Error(i(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=vi(a),a=ql(h).hoistableScripts,s=a.get(n),s||(s={type:"script",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function bi(t){return'href="'+sn(t)+'"'}function _a(t){return'link[rel="stylesheet"]['+t+"]"}function Xy(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function c2(t,n,a,s){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=t.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Nt(n,"link",a),bt(n),t.head.appendChild(n))}function vi(t){return'[src="'+sn(t)+'"]'}function Ra(t){return"script[async]"+t}function Qy(t,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+sn(a.href)+'"]');if(s)return n.instance=s,bt(s),s;var h=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),bt(s),Nt(s,"style",h),vs(s,a.precedence,t),n.instance=s;case"stylesheet":h=bi(a.href);var p=t.querySelector(_a(h));if(p)return n.state.loading|=4,n.instance=p,bt(p),p;s=Xy(a),(h=gn.get(h))&&Gf(s,h),p=(t.ownerDocument||t).createElement("link"),bt(p);var w=p;return w._p=new Promise(function(E,M){w.onload=E,w.onerror=M}),Nt(p,"link",s),n.state.loading|=4,vs(p,a.precedence,t),n.instance=p;case"script":return p=vi(a.src),(h=t.querySelector(Ra(p)))?(n.instance=h,bt(h),h):(s=a,(h=gn.get(p))&&(s=y({},a),Yf(s,h)),t=t.ownerDocument||t,h=t.createElement("script"),bt(h),Nt(h,"link",s),t.head.appendChild(h),n.instance=h);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,vs(s,a.precedence,t));return n.instance}function vs(t,n,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=s.length?s[s.length-1]:null,p=h,w=0;w<s.length;w++){var E=s[w];if(E.dataset.precedence===n)p=E;else if(p!==h)break}p?p.parentNode.insertBefore(t,p.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(t,n.firstChild))}function Gf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Yf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var ws=null;function Zy(t,n,a){if(ws===null){var s=new Map,h=ws=new Map;h.set(a,s)}else h=ws,s=h.get(a),s||(s=new Map,h.set(a,s));if(s.has(t))return s;for(s.set(t,null),a=a.getElementsByTagName(t),h=0;h<a.length;h++){var p=a[h];if(!(p[$i]||p[St]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var w=p.getAttribute(n)||"";w=t+w;var E=s.get(w);E?E.push(p):s.set(w,[p])}}return s}function Ky(t,n,a){t=t.ownerDocument||t,t.head.insertBefore(a,n==="title"?t.querySelector("head > title"):null)}function f2(t,n,a){if(a===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Jy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function d2(t,n,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var h=bi(s.href),p=n.querySelector(_a(h));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=Ss.bind(t),n.then(t,t)),a.state.loading|=4,a.instance=p,bt(p);return}p=n.ownerDocument||n,s=Xy(s),(h=gn.get(h))&&Gf(s,h),p=p.createElement("link"),bt(p);var w=p;w._p=new Promise(function(E,M){w.onload=E,w.onerror=M}),Nt(p,"link",s),a.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Ss.bind(t),n.addEventListener("load",a),n.addEventListener("error",a))}}var $f=0;function h2(t,n){return t.stylesheets&&t.count===0&&Cs(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&Cs(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+n);0<t.imgBytes&&$f===0&&($f=62500*$k());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Cs(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>$f?50:800)+n);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(h)}}:null}function Ss(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ks=null;function Cs(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ks=new Map,n.forEach(m2,t),ks=null,Ss.call(t))}function m2(t,n){if(!(n.state.loading&4)){var a=ks.get(t);if(a)var s=a.get(null);else{a=new Map,ks.set(t,a);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<h.length;p++){var w=h[p];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(a.set(w.dataset.precedence,w),s=w)}s&&a.set(null,s)}h=n.instance,w=h.getAttribute("data-precedence"),p=a.get(w)||s,p===s&&a.set(null,h),a.set(w,h),this.count++,s=Ss.bind(this),h.addEventListener("load",s),h.addEventListener("error",s),p?p.parentNode.insertBefore(h,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),n.state.loading|=4}}var Ma={$$typeof:_,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function p2(t,n,a,s,h,p,w,E,M){this.tag=1,this.containerInfo=t,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=qu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qu(0),this.hiddenUpdates=qu(null),this.identifierPrefix=s,this.onUncaughtError=h,this.onCaughtError=p,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function Wy(t,n,a,s,h,p,w,E,M,I,W,te){return t=new p2(t,n,a,w,M,I,W,te,E),n=1,p===!0&&(n|=24),p=Qt(3,null,null,n),t.current=p,p.stateNode=t,n=Ec(),n.refCount++,t.pooledCache=n,n.refCount++,p.memoizedState={element:s,isDehydrated:a,cache:n},Tc(p),t}function ex(t){return t?(t=Kl,t):Kl}function tx(t,n,a,s,h,p){h=ex(h),s.context===null?s.context=h:s.pendingContext=h,s=Tr(n),s.payload={element:a},p=p===void 0?null:p,p!==null&&(s.callback=p),a=_r(t,s,n),a!==null&&(It(a,t,n),ca(a,t,n))}function nx(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<n?a:n}}function Xf(t,n){nx(t,n),(t=t.alternate)&&nx(t,n)}function rx(t){if(t.tag===13||t.tag===31){var n=dl(t,67108864);n!==null&&It(n,t,67108864),Xf(t,67108864)}}function lx(t){if(t.tag===13||t.tag===31){var n=en();n=Fu(n);var a=dl(t,n);a!==null&&It(a,t,n),Xf(t,n)}}var Es=!0;function g2(t,n,a,s){var h=D.T;D.T=null;var p=X.p;try{X.p=2,Qf(t,n,a,s)}finally{X.p=p,D.T=h}}function y2(t,n,a,s){var h=D.T;D.T=null;var p=X.p;try{X.p=8,Qf(t,n,a,s)}finally{X.p=p,D.T=h}}function Qf(t,n,a,s){if(Es){var h=Zf(s);if(h===null)Df(t,n,s,Ns,a),ax(t,s);else if(b2(h,t,n,a,s))s.stopPropagation();else if(ax(t,s),n&4&&-1<x2.indexOf(t)){for(;h!==null;){var p=Pl(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var w=ol(p.pendingLanes);if(w!==0){var E=p;for(E.pendingLanes|=2,E.entangledLanes|=2;w;){var M=1<<31-Xe(w);E.entanglements[1]|=M,w&=~M}On(p),(Fe&6)===0&&(ss=xt()+500,Na(0))}}break;case 31:case 13:E=dl(p,2),E!==null&&It(E,p,2),cs(),Xf(p,2)}if(p=Zf(s),p===null&&Df(t,n,s,Ns,a),p===h)break;h=p}h!==null&&s.stopPropagation()}else Df(t,n,s,null,a)}}function Zf(t){return t=Ku(t),Kf(t)}var Ns=null;function Kf(t){if(Ns=null,t=Hl(t),t!==null){var n=u(t);if(n===null)t=null;else{var a=n.tag;if(a===13){if(t=c(n),t!==null)return t;t=null}else if(a===31){if(t=f(n),t!==null)return t;t=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return Ns=t,null}function ix(t){switch(t){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(Bl()){case H:return 2;case K:return 8;case fe:case ge:return 32;case Ee:return 268435456;default:return 32}default:return 32}}var Jf=!1,qr=null,Fr=null,Vr=null,Oa=new Map,za=new Map,Ir=[],x2="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 ax(t,n){switch(t){case"focusin":case"focusout":qr=null;break;case"dragenter":case"dragleave":Fr=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Oa.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":za.delete(n.pointerId)}}function Da(t,n,a,s,h,p){return t===null||t.nativeEvent!==p?(t={blockedOn:n,domEventName:a,eventSystemFlags:s,nativeEvent:p,targetContainers:[h]},n!==null&&(n=Pl(n),n!==null&&rx(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),t)}function b2(t,n,a,s,h){switch(n){case"focusin":return qr=Da(qr,t,n,a,s,h),!0;case"dragenter":return Fr=Da(Fr,t,n,a,s,h),!0;case"mouseover":return Vr=Da(Vr,t,n,a,s,h),!0;case"pointerover":var p=h.pointerId;return Oa.set(p,Da(Oa.get(p)||null,t,n,a,s,h)),!0;case"gotpointercapture":return p=h.pointerId,za.set(p,Da(za.get(p)||null,t,n,a,s,h)),!0}return!1}function ox(t){var n=Hl(t.target);if(n!==null){var a=u(n);if(a!==null){if(n=a.tag,n===13){if(n=c(a),n!==null){t.blockedOn=n,wm(t.priority,function(){lx(a)});return}}else if(n===31){if(n=f(a),n!==null){t.blockedOn=n,wm(t.priority,function(){lx(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function As(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var a=Zf(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Zu=s,a.target.dispatchEvent(s),Zu=null}else return n=Pl(a),n!==null&&rx(n),t.blockedOn=a,!1;n.shift()}return!0}function sx(t,n,a){As(t)&&a.delete(n)}function v2(){Jf=!1,qr!==null&&As(qr)&&(qr=null),Fr!==null&&As(Fr)&&(Fr=null),Vr!==null&&As(Vr)&&(Vr=null),Oa.forEach(sx),za.forEach(sx)}function js(t,n){t.blockedOn===n&&(t.blockedOn=null,Jf||(Jf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,v2)))}var Ts=null;function ux(t){Ts!==t&&(Ts=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ts===t&&(Ts=null);for(var n=0;n<t.length;n+=3){var a=t[n],s=t[n+1],h=t[n+2];if(typeof s!="function"){if(Kf(s||a)===null)continue;break}var p=Pl(a);p!==null&&(t.splice(n,3),n-=3,Qc(p,{pending:!0,data:h,method:a.method,action:s},s,h))}}))}function wi(t){function n(M){return js(M,t)}qr!==null&&js(qr,t),Fr!==null&&js(Fr,t),Vr!==null&&js(Vr,t),Oa.forEach(n),za.forEach(n);for(var a=0;a<Ir.length;a++){var s=Ir[a];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Ir.length&&(a=Ir[0],a.blockedOn===null);)ox(a),a.blockedOn===null&&Ir.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var h=a[s],p=a[s+1],w=h[Ut]||null;if(typeof p=="function")w||ux(a);else if(w){var E=null;if(p&&p.hasAttribute("formAction")){if(h=p,w=p[Ut]||null)E=w.formAction;else if(Kf(h)!==null)continue}else E=w.action;typeof E=="function"?a[s+1]=E:(a.splice(s,3),s-=3),ux(a)}}}function cx(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(w){return h=w})},focusReset:"manual",scroll:"manual"})}function n(){h!==null&&(h(),h=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,h=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),h!==null&&(h(),h=null)}}}function Wf(t){this._internalRoot=t}_s.prototype.render=Wf.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(i(409));var a=n.current,s=en();tx(a,s,t,n,null,null)},_s.prototype.unmount=Wf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;tx(t.current,2,null,t,null,null),cs(),n[Ul]=null}};function _s(t){this._internalRoot=t}_s.prototype.unstable_scheduleHydration=function(t){if(t){var n=vm();t={blockedOn:null,target:t,priority:n};for(var a=0;a<Ir.length&&n!==0&&n<Ir[a].priority;a++);Ir.splice(a,0,t),a===0&&ox(t)}};var fx=r.version;if(fx!=="19.2.1")throw Error(i(527,fx,"19.2.1"));X.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=m(n),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var w2={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rs.isDisabled&&Rs.supportsFiber)try{Mt=Rs.inject(w2),mt=Rs}catch{}}return Ba.createRoot=function(t,n){if(!o(t))throw Error(i(299));var a=!1,s="",h=xg,p=bg,w=vg;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(h=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(w=n.onRecoverableError)),n=Wy(t,1,!1,null,null,a,s,null,h,p,w,cx),t[Ul]=n.current,zf(t),new Wf(n)},Ba.hydrateRoot=function(t,n,a){if(!o(t))throw Error(i(299));var s=!1,h="",p=xg,w=bg,E=vg,M=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(w=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(M=a.formState)),n=Wy(t,1,!0,n,a??null,s,h,M,p,w,E,cx),n.context=ex(null),a=n.current,s=en(),s=Fu(s),h=Tr(s),h.callback=null,_r(a,h,s),a=s,n.current.lanes=a,Yi(n,a),On(n),t[Ul]=n.current,zf(t),new _s(n)},Ba.version="19.2.1",Ba}var wx;function O2(){if(wx)return nd.exports;wx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),nd.exports=M2(),nd.exports}var z2=O2();/**
50
+ * react-router v7.13.1
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var Sx="popstate";function kx(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function D2(e={}){function r(i,o){var m;let u=(m=o.state)==null?void 0:m.masked,{pathname:c,search:f,hash:d}=u||i.location;return Id("",{pathname:c,search:f,hash:d},o.state&&o.state.usr||null,o.state&&o.state.key||"default",u?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function l(i,o){return typeof o=="string"?o:Wa(o)}return B2(r,l,null,e)}function tt(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function qn(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function L2(){return Math.random().toString(36).substring(2,10)}function Cx(e,r){return{usr:e.state,key:e.key,idx:r,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Id(e,r,l=null,i,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof r=="string"?Ui(r):r,state:l,key:r&&r.key||i||L2(),unstable_mask:o}}function Wa({pathname:e="/",search:r="",hash:l=""}){return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),l&&l!=="#"&&(e+=l.charAt(0)==="#"?l:"#"+l),e}function Ui(e){let r={};if(e){let l=e.indexOf("#");l>=0&&(r.hash=e.substring(l),e=e.substring(0,l));let i=e.indexOf("?");i>=0&&(r.search=e.substring(i),e=e.substring(0,i)),e&&(r.pathname=e)}return r}function B2(e,r,l,i={}){let{window:o=document.defaultView,v5Compat:u=!1}=i,c=o.history,f="POP",d=null,m=g();m==null&&(m=0,c.replaceState({...c.state,idx:m},""));function g(){return(c.state||{idx:null}).idx}function y(){f="POP";let A=g(),N=A==null?null:A-m;m=A,d&&d({action:f,location:C.location,delta:N})}function b(A,N){f="PUSH";let O=kx(A)?A:Id(C.location,A,N);m=g()+1;let _=Cx(O,m),U=C.createHref(O.unstable_mask||O);try{c.pushState(_,"",U)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;o.location.assign(U)}u&&d&&d({action:f,location:C.location,delta:1})}function v(A,N){f="REPLACE";let O=kx(A)?A:Id(C.location,A,N);m=g();let _=Cx(O,m),U=C.createHref(O.unstable_mask||O);c.replaceState(_,"",U),u&&d&&d({action:f,location:C.location,delta:0})}function k(A){return U2(A)}let C={get action(){return f},get location(){return e(o,c)},listen(A){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(Sx,y),d=A,()=>{o.removeEventListener(Sx,y),d=null}},createHref(A){return r(o,A)},createURL:k,encodeLocation(A){let N=k(A);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:b,replace:v,go(A){return c.go(A)}};return C}function U2(e,r=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),tt(l,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Wa(e);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=l+i),new URL(i,l)}function pv(e,r,l="/"){return H2(e,r,l,!1)}function H2(e,r,l,i){let o=typeof r=="string"?Ui(r):r,u=hr(o.pathname||"/",l);if(u==null)return null;let c=gv(e);P2(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let m=K2(u);f=Q2(c[d],m,i)}return f}function gv(e,r=[],l=[],i="",o=!1){let u=(c,f,d=o,m)=>{let g={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&d)return;tt(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let y=Hn([i,g.relativePath]),b=l.concat(g);c.children&&c.children.length>0&&(tt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),gv(c.children,r,b,y,d)),!(c.path==null&&!c.index)&&r.push({path:y,score:$2(y,c.index),routesMeta:b})};return e.forEach((c,f)=>{var d;if(c.path===""||!((d=c.path)!=null&&d.includes("?")))u(c,f);else for(let m of yv(c.path))u(c,f,!0,m)}),r}function yv(e){let r=e.split("/");if(r.length===0)return[];let[l,...i]=r,o=l.endsWith("?"),u=l.replace(/\?$/,"");if(i.length===0)return o?[u,""]:[u];let c=yv(i.join("/")),f=[];return f.push(...c.map(d=>d===""?u:[u,d].join("/"))),o&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function P2(e){e.sort((r,l)=>r.score!==l.score?l.score-r.score:X2(r.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var q2=/^:[\w-]+$/,F2=3,V2=2,I2=1,G2=10,Y2=-2,Ex=e=>e==="*";function $2(e,r){let l=e.split("/"),i=l.length;return l.some(Ex)&&(i+=Y2),r&&(i+=V2),l.filter(o=>!Ex(o)).reduce((o,u)=>o+(q2.test(u)?F2:u===""?I2:G2),i)}function X2(e,r){return e.length===r.length&&e.slice(0,-1).every((i,o)=>i===r[o])?e[e.length-1]-r[r.length-1]:0}function Q2(e,r,l=!1){let{routesMeta:i}=e,o={},u="/",c=[];for(let f=0;f<i.length;++f){let d=i[f],m=f===i.length-1,g=u==="/"?r:r.slice(u.length)||"/",y=Ws({path:d.relativePath,caseSensitive:d.caseSensitive,end:m},g),b=d.route;if(!y&&m&&l&&!i[i.length-1].route.index&&(y=Ws({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},g)),!y)return null;Object.assign(o,y.params),c.push({params:o,pathname:Hn([u,y.pathname]),pathnameBase:tC(Hn([u,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(u=Hn([u,y.pathnameBase]))}return c}function Ws(e,r){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[l,i]=Z2(e.path,e.caseSensitive,e.end),o=r.match(l);if(!o)return null;let u=o[0],c=u.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:i.reduce((m,{paramName:g,isOptional:y},b)=>{if(g==="*"){let k=f[b]||"";c=u.slice(0,u.length-k.length).replace(/(.)\/+$/,"$1")}const v=f[b];return y&&!v?m[g]=void 0:m[g]=(v||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:c,pattern:e}}function Z2(e,r=!1,l=!0){qn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d,m,g)=>{if(i.push({paramName:f,isOptional:d!=null}),d){let y=g.charAt(m+c.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,r?void 0:"i"),i]}function K2(e){try{return e.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return qn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}function hr(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let l=r.endsWith("/")?r.length-1:r.length,i=e.charAt(l);return i&&i!=="/"?null:e.slice(l)||"/"}var J2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function W2(e,r="/"){let{pathname:l,search:i="",hash:o=""}=typeof e=="string"?Ui(e):e,u;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?u=Nx(l.substring(1),"/"):u=Nx(l,r)):u=r,{pathname:u,search:nC(i),hash:rC(o)}}function Nx(e,r){let l=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?l.length>1&&l.pop():o!=="."&&l.push(o)}),l.length>1?l.join("/"):"/"}function ad(e,r,l,i){return`Cannot include a '${e}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function eC(e){return e.filter((r,l)=>l===0||r.route.path&&r.route.path.length>0)}function xv(e){let r=eC(e);return r.map((l,i)=>i===r.length-1?l.pathname:l.pathnameBase)}function gh(e,r,l,i=!1){let o;typeof e=="string"?o=Ui(e):(o={...e},tt(!o.pathname||!o.pathname.includes("?"),ad("?","pathname","search",o)),tt(!o.pathname||!o.pathname.includes("#"),ad("#","pathname","hash",o)),tt(!o.search||!o.search.includes("#"),ad("#","search","hash",o)));let u=e===""||o.pathname==="",c=u?"/":o.pathname,f;if(c==null)f=l;else{let y=r.length-1;if(!i&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;o.pathname=b.join("/")}f=y>=0?r[y]:"/"}let d=W2(o,f),m=c&&c!=="/"&&c.endsWith("/"),g=(u||c===".")&&l.endsWith("/");return!d.pathname.endsWith("/")&&(m||g)&&(d.pathname+="/"),d}var Hn=e=>e.join("/").replace(/\/\/+/g,"/"),tC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,lC=class{constructor(e,r,l,i=!1){this.status=e,this.statusText=r||"",this.internal=i,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function iC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function aC(e){return e.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var bv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vv(e,r){let l=e;if(typeof l!="string"||!J2.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let i=l,o=!1;if(bv)try{let u=new URL(window.location.href),c=l.startsWith("//")?new URL(u.protocol+l):new URL(l),f=hr(c.pathname,r);c.origin===u.origin&&f!=null?l=f+c.search+c.hash:o=!0}catch{qn(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:o,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wv=["POST","PUT","PATCH","DELETE"];new Set(wv);var oC=["GET",...wv];new Set(oC);var Hi=S.createContext(null);Hi.displayName="DataRouter";var gu=S.createContext(null);gu.displayName="DataRouterState";var sC=S.createContext(!1),Sv=S.createContext({isTransitioning:!1});Sv.displayName="ViewTransition";var uC=S.createContext(new Map);uC.displayName="Fetchers";var cC=S.createContext(null);cC.displayName="Await";var xn=S.createContext(null);xn.displayName="Navigation";var io=S.createContext(null);io.displayName="Location";var Nn=S.createContext({outlet:null,matches:[],isDataRoute:!1});Nn.displayName="Route";var yh=S.createContext(null);yh.displayName="RouteError";var kv="REACT_ROUTER_ERROR",fC="REDIRECT",dC="ROUTE_ERROR_RESPONSE";function hC(e){if(e.startsWith(`${kv}:${fC}:{`))try{let r=JSON.parse(e.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function mC(e){if(e.startsWith(`${kv}:${dC}:{`))try{let r=JSON.parse(e.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new lC(r.status,r.statusText,r.data)}catch{}}function pC(e,{relative:r}={}){tt(ao(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:i}=S.useContext(xn),{hash:o,pathname:u,search:c}=oo(e,{relative:r}),f=u;return l!=="/"&&(f=u==="/"?l:Hn([l,u])),i.createHref({pathname:f,search:c,hash:o})}function ao(){return S.useContext(io)!=null}function Fn(){return tt(ao(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(io).location}var Cv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ev(e){S.useContext(xn).static||S.useLayoutEffect(e)}function xh(){let{isDataRoute:e}=S.useContext(Nn);return e?_C():gC()}function gC(){tt(ao(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Hi),{basename:r,navigator:l}=S.useContext(xn),{matches:i}=S.useContext(Nn),{pathname:o}=Fn(),u=JSON.stringify(xv(i)),c=S.useRef(!1);return Ev(()=>{c.current=!0}),S.useCallback((d,m={})=>{if(qn(c.current,Cv),!c.current)return;if(typeof d=="number"){l.go(d);return}let g=gh(d,JSON.parse(u),o,m.relative==="path");e==null&&r!=="/"&&(g.pathname=g.pathname==="/"?r:Hn([r,g.pathname])),(m.replace?l.replace:l.push)(g,m.state,m)},[r,l,u,o,e])}var Nv=S.createContext(null);function Av(){return S.useContext(Nv)}function yC(e){let r=S.useContext(Nn).outlet;return S.useMemo(()=>r&&S.createElement(Nv.Provider,{value:e},r),[r,e])}function xC(){let{matches:e}=S.useContext(Nn),r=e[e.length-1];return r?r.params:{}}function oo(e,{relative:r}={}){let{matches:l}=S.useContext(Nn),{pathname:i}=Fn(),o=JSON.stringify(xv(l));return S.useMemo(()=>gh(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function bC(e,r){return jv(e,r)}function jv(e,r,l){var A;tt(ao(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(xn),{matches:o}=S.useContext(Nn),u=o[o.length-1],c=u?u.params:{},f=u?u.pathname:"/",d=u?u.pathnameBase:"/",m=u&&u.route;{let N=m&&m.path||"";_v(f,!m||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let g=Fn(),y;if(r){let N=typeof r=="string"?Ui(r):r;tt(d==="/"||((A=N.pathname)==null?void 0:A.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${N.pathname}" was given in the \`location\` prop.`),y=N}else y=g;let b=y.pathname||"/",v=b;if(d!=="/"){let N=d.replace(/^\//,"").split("/");v="/"+b.replace(/^\//,"").split("/").slice(N.length).join("/")}let k=pv(e,{pathname:v});qn(m||k!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),qn(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=CC(k&&k.map(N=>Object.assign({},N,{params:Object.assign({},c,N.params),pathname:Hn([d,i.encodeLocation?i.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?d:Hn([d,i.encodeLocation?i.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),o,l);return r&&C?S.createElement(io.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},C):C}function vC(){let e=TC(),r=iC(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),l=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},u={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:u},"ErrorBoundary")," or"," ",S.createElement("code",{style:u},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},r),l?S.createElement("pre",{style:o},l):null,c)}var wC=S.createElement(vC,null),Tv=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){this.props.onError?this.props.onError(e,r):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const l=mC(e.digest);l&&(e=l)}let r=e!==void 0?S.createElement(Nn.Provider,{value:this.props.routeContext},S.createElement(yh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(SC,{error:e},r):r}};Tv.contextType=sC;var od=new WeakMap;function SC({children:e,error:r}){let{basename:l}=S.useContext(xn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=hC(r.digest);if(i){let o=od.get(r);if(o)throw o;let u=vv(i.location,l);if(bv&&!od.get(r))if(u.isExternal||i.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:i.replace}));throw od.set(r,c),c}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function kC({routeContext:e,match:r,children:l}){let i=S.useContext(Hi);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(Nn.Provider,{value:e},l)}function CC(e,r=[],l){let i=l==null?void 0:l.state;if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(r.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let o=e,u=i==null?void 0:i.errors;if(u!=null){let g=o.findIndex(y=>y.route.id&&(u==null?void 0:u[y.route.id])!==void 0);tt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,g+1))}let c=!1,f=-1;if(l&&i){c=i.renderFallback;for(let g=0;g<o.length;g++){let y=o[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(f=g),y.route.id){let{loaderData:b,errors:v}=i,k=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!v||v[y.route.id]===void 0);if(y.route.lazy||k){l.isStatic&&(c=!0),f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}}let d=l==null?void 0:l.onError,m=i&&d?(g,y)=>{var b,v;d(g,{location:i.location,params:((v=(b=i.matches)==null?void 0:b[0])==null?void 0:v.params)??{},unstable_pattern:aC(i.matches),errorInfo:y})}:void 0;return o.reduceRight((g,y,b)=>{let v,k=!1,C=null,A=null;i&&(v=u&&y.route.id?u[y.route.id]:void 0,C=y.route.errorElement||wC,c&&(f<0&&b===0?(_v("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,A=null):f===b&&(k=!0,A=y.route.hydrateFallbackElement||null)));let N=r.concat(o.slice(0,b+1)),O=()=>{let _;return v?_=C:k?_=A:y.route.Component?_=S.createElement(y.route.Component,null):y.route.element?_=y.route.element:_=g,S.createElement(kC,{match:y,routeContext:{outlet:g,matches:N,isDataRoute:i!=null},children:_})};return i&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?S.createElement(Tv,{location:i.location,revalidation:i.revalidation,component:C,error:v,children:O(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:m}):O()},null)}function bh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function EC(e){let r=S.useContext(Hi);return tt(r,bh(e)),r}function NC(e){let r=S.useContext(gu);return tt(r,bh(e)),r}function AC(e){let r=S.useContext(Nn);return tt(r,bh(e)),r}function vh(e){let r=AC(e),l=r.matches[r.matches.length-1];return tt(l.route.id,`${e} can only be used on routes that contain a unique "id"`),l.route.id}function jC(){return vh("useRouteId")}function TC(){var i;let e=S.useContext(yh),r=NC("useRouteError"),l=vh("useRouteError");return e!==void 0?e:(i=r.errors)==null?void 0:i[l]}function _C(){let{router:e}=EC("useNavigate"),r=vh("useNavigate"),l=S.useRef(!1);return Ev(()=>{l.current=!0}),S.useCallback(async(o,u={})=>{qn(l.current,Cv),l.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:r,...u}))},[e,r])}var Ax={};function _v(e,r,l){!r&&!Ax[e]&&(Ax[e]=!0,qn(!1,l))}S.memo(RC);function RC({routes:e,future:r,state:l,isStatic:i,onError:o}){return jv(e,void 0,{state:l,isStatic:i,onError:o})}function MC(e){return yC(e.context)}function $a(e){tt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function OC({basename:e="/",children:r=null,location:l,navigationType:i="POP",navigator:o,static:u=!1,unstable_useTransitions:c}){tt(!ao(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=S.useMemo(()=>({basename:f,navigator:o,static:u,unstable_useTransitions:c,future:{}}),[f,o,u,c]);typeof l=="string"&&(l=Ui(l));let{pathname:m="/",search:g="",hash:y="",state:b=null,key:v="default",unstable_mask:k}=l,C=S.useMemo(()=>{let A=hr(m,f);return A==null?null:{location:{pathname:A,search:g,hash:y,state:b,key:v,unstable_mask:k},navigationType:i}},[f,m,g,y,b,v,i,k]);return qn(C!=null,`<Router basename="${f}"> is not able to match the URL "${m}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:S.createElement(xn.Provider,{value:d},S.createElement(io.Provider,{children:r,value:C}))}function zC({children:e,location:r}){return bC(Gd(e),r)}function Gd(e,r=[]){let l=[];return S.Children.forEach(e,(i,o)=>{if(!S.isValidElement(i))return;let u=[...r,o];if(i.type===S.Fragment){l.push.apply(l,Gd(i.props.children,u));return}tt(i.type===$a,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),tt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||u.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=Gd(i.props.children,u)),l.push(c)}),l}var $s="get",Xs="application/x-www-form-urlencoded";function yu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function DC(e){return yu(e)&&e.tagName.toLowerCase()==="button"}function LC(e){return yu(e)&&e.tagName.toLowerCase()==="form"}function BC(e){return yu(e)&&e.tagName.toLowerCase()==="input"}function UC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function HC(e,r){return e.button===0&&(!r||r==="_self")&&!UC(e)}var Ms=null;function PC(){if(Ms===null)try{new FormData(document.createElement("form"),0),Ms=!1}catch{Ms=!0}return Ms}var qC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sd(e){return e!=null&&!qC.has(e)?(qn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xs}"`),null):e}function FC(e,r){let l,i,o,u,c;if(LC(e)){let f=e.getAttribute("action");i=f?hr(f,r):null,l=e.getAttribute("method")||$s,o=sd(e.getAttribute("enctype"))||Xs,u=new FormData(e)}else if(DC(e)||BC(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(i=d?hr(d,r):null,l=e.getAttribute("formmethod")||f.getAttribute("method")||$s,o=sd(e.getAttribute("formenctype"))||sd(f.getAttribute("enctype"))||Xs,u=new FormData(f,e),!PC()){let{name:m,type:g,value:y}=e;if(g==="image"){let b=m?`${m}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else m&&u.append(m,y)}}else{if(yu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=$s,i=null,o=Xs,c=e}return u&&o==="text/plain"&&(c=u,u=void 0),{action:i,method:l.toLowerCase(),encType:o,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function wh(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function VC(e,r,l,i){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${i}`:o.pathname=`${o.pathname}.${i}`:o.pathname==="/"?o.pathname=`_root.${i}`:r&&hr(o.pathname,r)==="/"?o.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${i}`,o}async function IC(e,r){if(e.id in r)return r[e.id];try{let l=await import(e.module);return r[e.id]=l,l}catch(l){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function GC(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function YC(e,r,l){let i=await Promise.all(e.map(async o=>{let u=r.routes[o.route.id];if(u){let c=await IC(u,l);return c.links?c.links():[]}return[]}));return ZC(i.flat(1).filter(GC).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function jx(e,r,l,i,o,u){let c=(d,m)=>l[m]?d.route.id!==l[m].route.id:!0,f=(d,m)=>{var g;return l[m].pathname!==d.pathname||((g=l[m].route.path)==null?void 0:g.endsWith("*"))&&l[m].params["*"]!==d.params["*"]};return u==="assets"?r.filter((d,m)=>c(d,m)||f(d,m)):u==="data"?r.filter((d,m)=>{var y;let g=i.routes[d.route.id];if(!g||!g.hasLoader)return!1;if(c(d,m)||f(d,m))return!0;if(d.route.shouldRevalidate){let b=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((y=l[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function $C(e,r,{includeHydrateFallback:l}={}){return XC(e.map(i=>{let o=r.routes[i.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),l&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function XC(e){return[...new Set(e)]}function QC(e){let r={},l=Object.keys(e).sort();for(let i of l)r[i]=e[i];return r}function ZC(e,r){let l=new Set;return new Set(r),e.reduce((i,o)=>{let u=JSON.stringify(QC(o));return l.has(u)||(l.add(u),i.push({key:u,link:o})),i},[])}function Rv(){let e=S.useContext(Hi);return wh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function KC(){let e=S.useContext(gu);return wh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Sh=S.createContext(void 0);Sh.displayName="FrameworkContext";function Mv(){let e=S.useContext(Sh);return wh(e,"You must render this element inside a <HydratedRouter> element"),e}function JC(e,r){let l=S.useContext(Sh),[i,o]=S.useState(!1),[u,c]=S.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:m,onMouseLeave:g,onTouchStart:y}=r,b=S.useRef(null);S.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let C=N=>{N.forEach(O=>{c(O.isIntersecting)})},A=new IntersectionObserver(C,{threshold:.5});return b.current&&A.observe(b.current),()=>{A.disconnect()}}},[e]),S.useEffect(()=>{if(i){let C=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(C)}}},[i]);let v=()=>{o(!0)},k=()=>{o(!1),c(!1)};return l?e!=="intent"?[u,b,{}]:[u,b,{onFocus:Ua(f,v),onBlur:Ua(d,k),onMouseEnter:Ua(m,v),onMouseLeave:Ua(g,k),onTouchStart:Ua(y,v)}]:[!1,b,{}]}function Ua(e,r){return l=>{e&&e(l),l.defaultPrevented||r(l)}}function WC({page:e,...r}){let{router:l}=Rv(),i=S.useMemo(()=>pv(l.routes,e,l.basename),[l.routes,e,l.basename]);return i?S.createElement(tE,{page:e,matches:i,...r}):null}function eE(e){let{manifest:r,routeModules:l}=Mv(),[i,o]=S.useState([]);return S.useEffect(()=>{let u=!1;return YC(e,r,l).then(c=>{u||o(c)}),()=>{u=!0}},[e,r,l]),i}function tE({page:e,matches:r,...l}){let i=Fn(),{future:o,manifest:u,routeModules:c}=Mv(),{basename:f}=Rv(),{loaderData:d,matches:m}=KC(),g=S.useMemo(()=>jx(e,r,m,u,i,"data"),[e,r,m,u,i]),y=S.useMemo(()=>jx(e,r,m,u,i,"assets"),[e,r,m,u,i]),b=S.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let C=new Set,A=!1;if(r.forEach(O=>{var U;let _=u.routes[O.route.id];!_||!_.hasLoader||(!g.some(F=>F.route.id===O.route.id)&&O.route.id in d&&((U=c[O.route.id])!=null&&U.shouldRevalidate)||_.hasClientLoader?A=!0:C.add(O.route.id))}),C.size===0)return[];let N=VC(e,f,o.unstable_trailingSlashAwareDataRequests,"data");return A&&C.size>0&&N.searchParams.set("_routes",r.filter(O=>C.has(O.route.id)).map(O=>O.route.id).join(",")),[N.pathname+N.search]},[f,o.unstable_trailingSlashAwareDataRequests,d,i,u,g,r,e,c]),v=S.useMemo(()=>$C(y,u),[y,u]),k=eE(y);return S.createElement(S.Fragment,null,b.map(C=>S.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...l})),v.map(C=>S.createElement("link",{key:C,rel:"modulepreload",href:C,...l})),k.map(({key:C,link:A})=>S.createElement("link",{key:C,nonce:l.nonce,...A,crossOrigin:A.crossOrigin??l.crossOrigin})))}function nE(...e){return r=>{e.forEach(l=>{typeof l=="function"?l(r):l!=null&&(l.current=r)})}}var rE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{rE&&(window.__reactRouterVersion="7.13.1")}catch{}function lE({basename:e,children:r,unstable_useTransitions:l,window:i}){let o=S.useRef();o.current==null&&(o.current=D2({window:i,v5Compat:!0}));let u=o.current,[c,f]=S.useState({action:u.action,location:u.location}),d=S.useCallback(m=>{l===!1?f(m):S.startTransition(()=>f(m))},[l]);return S.useLayoutEffect(()=>u.listen(d),[u,d]),S.createElement(OC,{basename:e,children:r,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:l})}var Ov=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zv=S.forwardRef(function({onClick:r,discover:l="render",prefetch:i="none",relative:o,reloadDocument:u,replace:c,unstable_mask:f,state:d,target:m,to:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:v,...k},C){let{basename:A,navigator:N,unstable_useTransitions:O}=S.useContext(xn),_=typeof g=="string"&&Ov.test(g),U=vv(g,A);g=U.to;let F=pC(g,{relative:o}),z=Fn(),B=null;if(f){let Z=gh(f,[],z.unstable_mask?z.unstable_mask.pathname:"/",!0);A!=="/"&&(Z.pathname=Z.pathname==="/"?A:Hn([A,Z.pathname])),B=N.createHref(Z)}let[$,ae,P]=JC(i,k),re=sE(g,{replace:c,unstable_mask:f,state:d,target:m,preventScrollReset:y,relative:o,viewTransition:b,unstable_defaultShouldRevalidate:v,unstable_useTransitions:O});function le(Z){r&&r(Z),Z.defaultPrevented||re(Z)}let se=!(U.isExternal||u),J=S.createElement("a",{...k,...P,href:(se?B:void 0)||U.absoluteURL||F,onClick:se?le:r,ref:nE(C,ae),target:m,"data-discover":!_&&l==="render"?"true":void 0});return $&&!_?S.createElement(S.Fragment,null,J,S.createElement(WC,{page:F})):J});zv.displayName="Link";var iE=S.forwardRef(function({"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:u,to:c,viewTransition:f,children:d,...m},g){let y=oo(c,{relative:m.relative}),b=Fn(),v=S.useContext(gu),{navigator:k,basename:C}=S.useContext(xn),A=v!=null&&hE(y)&&f===!0,N=k.encodeLocation?k.encodeLocation(y).pathname:y.pathname,O=b.pathname,_=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;l||(O=O.toLowerCase(),_=_?_.toLowerCase():null,N=N.toLowerCase()),_&&C&&(_=hr(_,C)||_);const U=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let F=O===N||!o&&O.startsWith(N)&&O.charAt(U)==="/",z=_!=null&&(_===N||!o&&_.startsWith(N)&&_.charAt(N.length)==="/"),B={isActive:F,isPending:z,isTransitioning:A},$=F?r:void 0,ae;typeof i=="function"?ae=i(B):ae=[i,F?"active":null,z?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let P=typeof u=="function"?u(B):u;return S.createElement(zv,{...m,"aria-current":$,className:ae,ref:g,style:P,to:c,viewTransition:f},typeof d=="function"?d(B):d)});iE.displayName="NavLink";var aE=S.forwardRef(({discover:e="render",fetcherKey:r,navigate:l,reloadDocument:i,replace:o,state:u,method:c=$s,action:f,onSubmit:d,relative:m,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:b,...v},k)=>{let{unstable_useTransitions:C}=S.useContext(xn),A=fE(),N=dE(f,{relative:m}),O=c.toLowerCase()==="get"?"get":"post",_=typeof f=="string"&&Ov.test(f),U=F=>{if(d&&d(F),F.defaultPrevented)return;F.preventDefault();let z=F.nativeEvent.submitter,B=(z==null?void 0:z.getAttribute("formmethod"))||c,$=()=>A(z||F.currentTarget,{fetcherKey:r,method:B,navigate:l,replace:o,state:u,relative:m,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:b});C&&l!==!1?S.startTransition(()=>$()):$()};return S.createElement("form",{ref:k,method:O,action:N,onSubmit:i?d:U,...v,"data-discover":!_&&e==="render"?"true":void 0})});aE.displayName="Form";function oE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dv(e){let r=S.useContext(Hi);return tt(r,oE(e)),r}function sE(e,{target:r,replace:l,unstable_mask:i,state:o,preventScrollReset:u,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:m}={}){let g=xh(),y=Fn(),b=oo(e,{relative:c});return S.useCallback(v=>{if(HC(v,r)){v.preventDefault();let k=l!==void 0?l:Wa(y)===Wa(b),C=()=>g(e,{replace:k,unstable_mask:i,state:o,preventScrollReset:u,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d});m?S.startTransition(()=>C()):C()}},[y,g,b,l,i,o,r,e,u,c,f,d,m])}var uE=0,cE=()=>`__${String(++uE)}__`;function fE(){let{router:e}=Dv("useSubmit"),{basename:r}=S.useContext(xn),l=jC(),i=e.fetch,o=e.navigate;return S.useCallback(async(u,c={})=>{let{action:f,method:d,encType:m,formData:g,body:y}=FC(u,r);if(c.navigate===!1){let b=c.fetcherKey||cE();await i(b,l,c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:y,formMethod:c.method||d,formEncType:c.encType||m,flushSync:c.flushSync})}else await o(c.action||f,{unstable_defaultShouldRevalidate:c.unstable_defaultShouldRevalidate,preventScrollReset:c.preventScrollReset,formData:g,body:y,formMethod:c.method||d,formEncType:c.encType||m,replace:c.replace,state:c.state,fromRouteId:l,flushSync:c.flushSync,viewTransition:c.viewTransition})},[i,o,r,l])}function dE(e,{relative:r}={}){let{basename:l}=S.useContext(xn),i=S.useContext(Nn);tt(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),u={...oo(e||".",{relative:r})},c=Fn();if(e==null){u.search=c.search;let f=new URLSearchParams(u.search),d=f.getAll("index");if(d.some(g=>g==="")){f.delete("index"),d.filter(y=>y).forEach(y=>f.append("index",y));let g=f.toString();u.search=g?`?${g}`:""}}return(!e||e===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:Hn([l,u.pathname])),Wa(u)}function hE(e,{relative:r}={}){let l=S.useContext(Sv);tt(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Dv("useViewTransitionState"),o=oo(e,{relative:r});if(!l.isTransitioning)return!1;let u=hr(l.currentLocation.pathname,i)||l.currentLocation.pathname,c=hr(l.nextLocation.pathname,i)||l.nextLocation.pathname;return Ws(o.pathname,c)!=null||Ws(o.pathname,u)!=null}var kh=mv();const mE=pu(kh);function Lv(e){var r,l,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(l=Lv(e[r]))&&(i&&(i+=" "),i+=l)}else for(l in e)e[l]&&(i&&(i+=" "),i+=l);return i}function Bv(){for(var e,r,l=0,i="",o=arguments.length;l<o;l++)(e=arguments[l])&&(r=Lv(e))&&(i&&(i+=" "),i+=r);return i}const Tx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_x=Bv,pE=(e,r)=>l=>{var i;if((r==null?void 0:r.variants)==null)return _x(e,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:o,defaultVariants:u}=r,c=Object.keys(o).map(m=>{const g=l==null?void 0:l[m],y=u==null?void 0:u[m];if(g===null)return null;const b=Tx(g)||Tx(y);return o[m][b]}),f=l&&Object.entries(l).reduce((m,g)=>{let[y,b]=g;return b===void 0||(m[y]=b),m},{}),d=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((m,g)=>{let{class:y,className:b,...v}=g;return Object.entries(v).every(k=>{let[C,A]=k;return Array.isArray(A)?A.includes({...u,...f}[C]):{...u,...f}[C]===A})?[...m,y,b]:m},[]);return _x(e,c,d,l==null?void 0:l.class,l==null?void 0:l.className)},gE=(e,r)=>{const l=new Array(e.length+r.length);for(let i=0;i<e.length;i++)l[i]=e[i];for(let i=0;i<r.length;i++)l[e.length+i]=r[i];return l},yE=(e,r)=>({classGroupId:e,validator:r}),Uv=(e=new Map,r=null,l)=>({nextPart:e,validators:r,classGroupId:l}),eu="-",Rx=[],xE="arbitrary..",bE=e=>{const r=wE(e),{conflictingClassGroups:l,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return vE(c);const f=c.split(eu),d=f[0]===""&&f.length>1?1:0;return Hv(f,d,r)},getConflictingClassGroupIds:(c,f)=>{if(f){const d=i[c],m=l[c];return d?m?gE(m,d):d:m||Rx}return l[c]||Rx}}},Hv=(e,r,l)=>{if(e.length-r===0)return l.classGroupId;const o=e[r],u=l.nextPart.get(o);if(u){const m=Hv(e,r+1,u);if(m)return m}const c=l.validators;if(c===null)return;const f=r===0?e.join(eu):e.slice(r).join(eu),d=c.length;for(let m=0;m<d;m++){const g=c[m];if(g.validator(f))return g.classGroupId}},vE=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),l=r.indexOf(":"),i=r.slice(0,l);return i?xE+i:void 0})(),wE=e=>{const{theme:r,classGroups:l}=e;return SE(l,r)},SE=(e,r)=>{const l=Uv();for(const i in e){const o=e[i];Ch(o,l,i,r)}return l},Ch=(e,r,l,i)=>{const o=e.length;for(let u=0;u<o;u++){const c=e[u];kE(c,r,l,i)}},kE=(e,r,l,i)=>{if(typeof e=="string"){CE(e,r,l);return}if(typeof e=="function"){EE(e,r,l,i);return}NE(e,r,l,i)},CE=(e,r,l)=>{const i=e===""?r:Pv(r,e);i.classGroupId=l},EE=(e,r,l,i)=>{if(AE(e)){Ch(e(i),r,l,i);return}r.validators===null&&(r.validators=[]),r.validators.push(yE(l,e))},NE=(e,r,l,i)=>{const o=Object.entries(e),u=o.length;for(let c=0;c<u;c++){const[f,d]=o[c];Ch(d,Pv(r,f),l,i)}},Pv=(e,r)=>{let l=e;const i=r.split(eu),o=i.length;for(let u=0;u<o;u++){const c=i[u];let f=l.nextPart.get(c);f||(f=Uv(),l.nextPart.set(c,f)),l=f}return l},AE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,jE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,l=Object.create(null),i=Object.create(null);const o=(u,c)=>{l[u]=c,r++,r>e&&(r=0,i=l,l=Object.create(null))};return{get(u){let c=l[u];if(c!==void 0)return c;if((c=i[u])!==void 0)return o(u,c),c},set(u,c){u in l?l[u]=c:o(u,c)}}},Yd="!",Mx=":",TE=[],Ox=(e,r,l,i,o)=>({modifiers:e,hasImportantModifier:r,baseClassName:l,maybePostfixModifierPosition:i,isExternal:o}),_E=e=>{const{prefix:r,experimentalParseClassName:l}=e;let i=o=>{const u=[];let c=0,f=0,d=0,m;const g=o.length;for(let C=0;C<g;C++){const A=o[C];if(c===0&&f===0){if(A===Mx){u.push(o.slice(d,C)),d=C+1;continue}if(A==="/"){m=C;continue}}A==="["?c++:A==="]"?c--:A==="("?f++:A===")"&&f--}const y=u.length===0?o:o.slice(d);let b=y,v=!1;y.endsWith(Yd)?(b=y.slice(0,-1),v=!0):y.startsWith(Yd)&&(b=y.slice(1),v=!0);const k=m&&m>d?m-d:void 0;return Ox(u,v,b,k)};if(r){const o=r+Mx,u=i;i=c=>c.startsWith(o)?u(c.slice(o.length)):Ox(TE,!1,c,void 0,!0)}if(l){const o=i;i=u=>l({className:u,parseClassName:o})}return i},RE=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((l,i)=>{r.set(l,1e6+i)}),l=>{const i=[];let o=[];for(let u=0;u<l.length;u++){const c=l[u],f=c[0]==="[",d=r.has(c);f||d?(o.length>0&&(o.sort(),i.push(...o),o=[]),i.push(c)):o.push(c)}return o.length>0&&(o.sort(),i.push(...o)),i}},ME=e=>({cache:jE(e.cacheSize),parseClassName:_E(e),sortModifiers:RE(e),...bE(e)}),OE=/\s+/,zE=(e,r)=>{const{parseClassName:l,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:u}=r,c=[],f=e.trim().split(OE);let d="";for(let m=f.length-1;m>=0;m-=1){const g=f[m],{isExternal:y,modifiers:b,hasImportantModifier:v,baseClassName:k,maybePostfixModifierPosition:C}=l(g);if(y){d=g+(d.length>0?" "+d:d);continue}let A=!!C,N=i(A?k.substring(0,C):k);if(!N){if(!A){d=g+(d.length>0?" "+d:d);continue}if(N=i(k),!N){d=g+(d.length>0?" "+d:d);continue}A=!1}const O=b.length===0?"":b.length===1?b[0]:u(b).join(":"),_=v?O+Yd:O,U=_+N;if(c.indexOf(U)>-1)continue;c.push(U);const F=o(N,A);for(let z=0;z<F.length;++z){const B=F[z];c.push(_+B)}d=g+(d.length>0?" "+d:d)}return d},DE=(...e)=>{let r=0,l,i,o="";for(;r<e.length;)(l=e[r++])&&(i=qv(l))&&(o&&(o+=" "),o+=i);return o},qv=e=>{if(typeof e=="string")return e;let r,l="";for(let i=0;i<e.length;i++)e[i]&&(r=qv(e[i]))&&(l&&(l+=" "),l+=r);return l},LE=(e,...r)=>{let l,i,o,u;const c=d=>{const m=r.reduce((g,y)=>y(g),e());return l=ME(m),i=l.cache.get,o=l.cache.set,u=f,f(d)},f=d=>{const m=i(d);if(m)return m;const g=zE(d,l);return o(d,g),g};return u=c,(...d)=>u(DE(...d))},BE=[],gt=e=>{const r=l=>l[e]||BE;return r.isThemeGetter=!0,r},Fv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,UE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,HE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,PE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,FE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yr=e=>UE.test(e),_e=e=>!!e&&!Number.isNaN(Number(e)),$r=e=>!!e&&Number.isInteger(Number(e)),ud=e=>e.endsWith("%")&&_e(e.slice(0,-1)),fr=e=>HE.test(e),Iv=()=>!0,IE=e=>PE.test(e)&&!qE.test(e),Eh=()=>!1,GE=e=>FE.test(e),YE=e=>VE.test(e),$E=e=>!me(e)&&!pe(e),XE=e=>tl(e,$v,Eh),me=e=>Fv.test(e),El=e=>tl(e,Xv,IE),zx=e=>tl(e,nN,_e),QE=e=>tl(e,Zv,Iv),ZE=e=>tl(e,Qv,Eh),Dx=e=>tl(e,Gv,Eh),KE=e=>tl(e,Yv,YE),Os=e=>tl(e,Kv,GE),pe=e=>Vv.test(e),Ha=e=>Ol(e,Xv),JE=e=>Ol(e,Qv),Lx=e=>Ol(e,Gv),WE=e=>Ol(e,$v),eN=e=>Ol(e,Yv),zs=e=>Ol(e,Kv,!0),tN=e=>Ol(e,Zv,!0),tl=(e,r,l)=>{const i=Fv.exec(e);return i?i[1]?r(i[1]):l(i[2]):!1},Ol=(e,r,l=!1)=>{const i=Vv.exec(e);return i?i[1]?r(i[1]):l:!1},Gv=e=>e==="position"||e==="percentage",Yv=e=>e==="image"||e==="url",$v=e=>e==="length"||e==="size"||e==="bg-size",Xv=e=>e==="length",nN=e=>e==="number",Qv=e=>e==="family-name",Zv=e=>e==="number"||e==="weight",Kv=e=>e==="shadow",rN=()=>{const e=gt("color"),r=gt("font"),l=gt("text"),i=gt("font-weight"),o=gt("tracking"),u=gt("leading"),c=gt("breakpoint"),f=gt("container"),d=gt("spacing"),m=gt("radius"),g=gt("shadow"),y=gt("inset-shadow"),b=gt("text-shadow"),v=gt("drop-shadow"),k=gt("blur"),C=gt("perspective"),A=gt("aspect"),N=gt("ease"),O=gt("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...U(),pe,me],z=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],$=()=>[pe,me,d],ae=()=>[Yr,"full","auto",...$()],P=()=>[$r,"none","subgrid",pe,me],re=()=>["auto",{span:["full",$r,pe,me]},$r,pe,me],le=()=>[$r,"auto",pe,me],se=()=>["auto","min","max","fr",pe,me],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...$()],X=()=>[Yr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],ne=()=>[Yr,"screen","full","dvw","lvw","svw","min","max","fit",...$()],ie=()=>[Yr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],j=()=>[e,pe,me],R=()=>[...U(),Lx,Dx,{position:[pe,me]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",WE,XE,{size:[pe,me]}],ue=()=>[ud,Ha,El],de=()=>["","none","full",m,pe,me],ce=()=>["",_e,Ha,El],Ce=()=>["solid","dashed","dotted","double"],Ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[_e,ud,Lx,Dx],at=()=>["","none",k,pe,me],dt=()=>["none",_e,pe,me],At=()=>["none",_e,pe,me],wt=()=>[_e,pe,me],ht=()=>[Yr,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fr],breakpoint:[fr],color:[Iv],container:[fr],"drop-shadow":[fr],ease:["in","out","in-out"],font:[$E],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fr],shadow:[fr],spacing:["px",_e],text:[fr],"text-shadow":[fr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yr,me,pe,A]}],container:["container"],columns:[{columns:[_e,me,pe,f]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[$r,"auto",pe,me]}],basis:[{basis:[Yr,"full","auto",f,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Yr,"auto","initial","none",me]}],grow:[{grow:["",_e,pe,me]}],shrink:[{shrink:["",_e,pe,me]}],order:[{order:[$r,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...ne()]}],"min-inline-size":[{"min-inline":["auto",...ne()]}],"max-inline-size":[{"max-inline":["none",...ne()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[f,"screen",...X()]}],"min-w":[{"min-w":[f,"screen","none",...X()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",l,Ha,El]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,tN,QE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ud,me]}],"font-family":[{font:[JE,ZE,r]}],"font-features":[{"font-features":[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,me]}],"line-clamp":[{"line-clamp":[_e,"none",pe,zx]}],leading:[{leading:[u,...$()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",pe,El]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[_e,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$r,pe,me],radial:["",pe,me],conic:[$r,pe,me]},eN,KE]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:de()}],"rounded-s":[{"rounded-s":de()}],"rounded-e":[{"rounded-e":de()}],"rounded-t":[{"rounded-t":de()}],"rounded-r":[{"rounded-r":de()}],"rounded-b":[{"rounded-b":de()}],"rounded-l":[{"rounded-l":de()}],"rounded-ss":[{"rounded-ss":de()}],"rounded-se":[{"rounded-se":de()}],"rounded-ee":[{"rounded-ee":de()}],"rounded-es":[{"rounded-es":de()}],"rounded-tl":[{"rounded-tl":de()}],"rounded-tr":[{"rounded-tr":de()}],"rounded-br":[{"rounded-br":de()}],"rounded-bl":[{"rounded-bl":de()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-bs":[{"border-bs":ce()}],"border-w-be":[{"border-be":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,pe,me]}],"outline-w":[{outline:["",_e,Ha,El]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",g,zs,Os]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",y,zs,Os]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[_e,El]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",b,zs,Os]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[_e,pe,me]}],"mix-blend":[{"mix-blend":[...Ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:at()}],brightness:[{brightness:[_e,pe,me]}],contrast:[{contrast:[_e,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",v,zs,Os]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",_e,pe,me]}],"hue-rotate":[{"hue-rotate":[_e,pe,me]}],invert:[{invert:["",_e,pe,me]}],saturate:[{saturate:[_e,pe,me]}],sepia:[{sepia:["",_e,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":at()}],"backdrop-brightness":[{"backdrop-brightness":[_e,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[_e,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",_e,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[_e,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[_e,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",pe,me]}],ease:[{ease:["linear","initial",N,pe,me]}],delay:[{delay:[_e,pe,me]}],animate:[{animate:["none",O,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,pe,me]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:dt()}],"rotate-x":[{"rotate-x":dt()}],"rotate-y":[{"rotate-y":dt()}],"rotate-z":[{"rotate-z":dt()}],scale:[{scale:At()}],"scale-x":[{"scale-x":At()}],"scale-y":[{"scale-y":At()}],"scale-z":[{"scale-z":At()}],"scale-3d":["scale-3d"],skew:[{skew:wt()}],"skew-x":[{"skew-x":wt()}],"skew-y":[{"skew-y":wt()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ht()}],"translate-x":[{"translate-x":ht()}],"translate-y":[{"translate-y":ht()}],"translate-z":[{"translate-z":ht()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,me]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[_e,Ha,El,zx]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lN=LE(rN);function xe(...e){return lN(Bv(e))}function zn(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}function Bx(e){return e.startsWith("chatId:")?e.slice(7):e}const iN=pE("touch-manipulation inline-flex items-center justify-center whitespace-nowrap cursor-pointer rounded-md text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none",{variants:{variant:{default:"bg-primary text-primary-foreground disabled:bg-primary/50 disabled:text-primary-foreground/90 hover:bg-primary/90",juicy:"bg-logo text-primary-foreground disabled:text-primary-foreground/50 hover:bg-logo/90",destructive:"bg-destructive dark:text-background",outline:"border disabled:bg-transparent disabled:text-foreground/50 border-inpu disabled:border-input/90 bg-card hover:bg-muted hover:text-accent-foreground",secondary:"bg-transparent border border-border text-secondary-foreground hover:text-secondary-foreground/60 disabled:text-secondary-foreground/50",ghost:"hover:bg-accent dark:hover:bg-card hover:text-accent-foreground text-muted-foreground disabled:text-muted-foreground/50 border border-border/0 hover:border-border",link:"text-primary disabled:text-primary/50 underline-offset-4 hover:underline",none:""},size:{default:"h-10 px-4 rounded-full py-2",sm:"h-9 rounded-full px-3",lg:"h-11 rounded-full px-8",icon:"h-10 w-10 rounded-lg","icon-sm":"h-5.5 w-5.5 rounded-lg"}},defaultVariants:{variant:"default",size:"default"}}),qe=S.forwardRef(({className:e,variant:r,size:l,...i},o)=>x.jsx("button",{className:xe(iN({variant:r,size:l,className:e})),ref:o,...i}));qe.displayName="Button";function yt(e,r,{checkForDefaultPrevented:l=!0}={}){return function(o){if(e==null||e(o),l===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}function Ux(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Jv(...e){return r=>{let l=!1;const i=e.map(o=>{const u=Ux(o,r);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let o=0;o<i.length;o++){const u=i[o];typeof u=="function"?u():Ux(e[o],null)}}}}function an(...e){return S.useCallback(Jv(...e),e)}function aN(e,r){const l=S.createContext(r),i=u=>{const{children:c,...f}=u,d=S.useMemo(()=>f,Object.values(f));return x.jsx(l.Provider,{value:d,children:c})};i.displayName=e+"Provider";function o(u){const c=S.useContext(l);if(c)return c;if(r!==void 0)return r;throw new Error(`\`${u}\` must be used within \`${e}\``)}return[i,o]}function xu(e,r=[]){let l=[];function i(u,c){const f=S.createContext(c),d=l.length;l=[...l,c];const m=y=>{var N;const{scope:b,children:v,...k}=y,C=((N=b==null?void 0:b[e])==null?void 0:N[d])||f,A=S.useMemo(()=>k,Object.values(k));return x.jsx(C.Provider,{value:A,children:v})};m.displayName=u+"Provider";function g(y,b){var C;const v=((C=b==null?void 0:b[e])==null?void 0:C[d])||f,k=S.useContext(v);if(k)return k;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${u}\``)}return[m,g]}const o=()=>{const u=l.map(c=>S.createContext(c));return function(f){const d=(f==null?void 0:f[e])||u;return S.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return o.scopeName=e,[i,oN(o,...r)]}function oN(...e){const r=e[0];if(e.length===1)return r;const l=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const c=i.reduce((f,{useScope:d,scopeName:m})=>{const y=d(u)[`__scope${m}`];return{...f,...y}},{});return S.useMemo(()=>({[`__scope${r.scopeName}`]:c}),[c])}};return l.scopeName=r.scopeName,l}var Zr=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},sN=hv[" useId ".trim().toString()]||(()=>{}),uN=0;function Xa(e){const[r,l]=S.useState(sN());return Zr(()=>{l(i=>i??String(uN++))},[e]),e||(r?`radix-${r}`:"")}var cN=hv[" useInsertionEffect ".trim().toString()]||Zr;function Nh({prop:e,defaultProp:r,onChange:l=()=>{},caller:i}){const[o,u,c]=fN({defaultProp:r,onChange:l}),f=e!==void 0,d=f?e:o;{const g=S.useRef(e!==void 0);S.useEffect(()=>{const y=g.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=f},[f,i])}const m=S.useCallback(g=>{var y;if(f){const b=dN(g)?g(e):g;b!==e&&((y=c.current)==null||y.call(c,b))}else u(g)},[f,e,u,c]);return[d,m]}function fN({defaultProp:e,onChange:r}){const[l,i]=S.useState(e),o=S.useRef(l),u=S.useRef(r);return cN(()=>{u.current=r},[r]),S.useEffect(()=>{var c;o.current!==l&&((c=u.current)==null||c.call(u,l),o.current=l)},[l,o]),[l,i,u]}function dN(e){return typeof e=="function"}function Ah(e){const r=hN(e),l=S.forwardRef((i,o)=>{const{children:u,...c}=i,f=S.Children.toArray(u),d=f.find(pN);if(d){const m=d.props.children,g=f.map(y=>y===d?S.Children.count(m)>1?S.Children.only(null):S.isValidElement(m)?m.props.children:null:y);return x.jsx(r,{...c,ref:o,children:S.isValidElement(m)?S.cloneElement(m,void 0,g):null})}return x.jsx(r,{...c,ref:o,children:u})});return l.displayName=`${e}.Slot`,l}function hN(e){const r=S.forwardRef((l,i)=>{const{children:o,...u}=l;if(S.isValidElement(o)){const c=yN(o),f=gN(u,o.props);return o.type!==S.Fragment&&(f.ref=i?Jv(i,c):c),S.cloneElement(o,f)}return S.Children.count(o)>1?S.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Wv=Symbol("radix.slottable");function mN(e){const r=({children:l})=>x.jsx(x.Fragment,{children:l});return r.displayName=`${e}.Slottable`,r.__radixId=Wv,r}function pN(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wv}function gN(e,r){const l={...r};for(const i in r){const o=e[i],u=r[i];/^on[A-Z]/.test(i)?o&&u?l[i]=(...f)=>{const d=u(...f);return o(...f),d}:o&&(l[i]=o):i==="style"?l[i]={...o,...u}:i==="className"&&(l[i]=[o,u].filter(Boolean).join(" "))}return{...e,...l}}function yN(e){var i,o;let r=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?e.props.ref:e.props.ref||e.ref)}var xN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_t=xN.reduce((e,r)=>{const l=Ah(`Primitive.${r}`),i=S.forwardRef((o,u)=>{const{asChild:c,...f}=o,d=c?l:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(d,{...f,ref:u})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{});function bN(e,r){e&&kh.flushSync(()=>e.dispatchEvent(r))}function Ri(e){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useMemo(()=>(...l)=>{var i;return(i=r.current)==null?void 0:i.call(r,...l)},[])}function vN(e,r=globalThis==null?void 0:globalThis.document){const l=Ri(e);S.useEffect(()=>{const i=o=>{o.key==="Escape"&&l(o)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[l,r])}var wN="DismissableLayer",$d="dismissableLayer.update",SN="dismissableLayer.pointerDownOutside",kN="dismissableLayer.focusOutside",Hx,e0=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bu=S.forwardRef((e,r)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...d}=e,m=S.useContext(e0),[g,y]=S.useState(null),b=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=S.useState({}),k=an(r,B=>y(B)),C=Array.from(m.layers),[A]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),N=C.indexOf(A),O=g?C.indexOf(g):-1,_=m.layersWithOutsidePointerEventsDisabled.size>0,U=O>=N,F=NN(B=>{const $=B.target,ae=[...m.branches].some(P=>P.contains($));!U||ae||(o==null||o(B),c==null||c(B),B.defaultPrevented||f==null||f())},b),z=AN(B=>{const $=B.target;[...m.branches].some(P=>P.contains($))||(u==null||u(B),c==null||c(B),B.defaultPrevented||f==null||f())},b);return vN(B=>{O===m.layers.size-1&&(i==null||i(B),!B.defaultPrevented&&f&&(B.preventDefault(),f()))},b),S.useEffect(()=>{if(g)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Hx=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),Px(),()=>{l&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Hx)}},[g,b,l,m]),S.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Px())},[g,m]),S.useEffect(()=>{const B=()=>v({});return document.addEventListener($d,B),()=>document.removeEventListener($d,B)},[]),x.jsx(_t.div,{...d,ref:k,style:{pointerEvents:_?U?"auto":"none":void 0,...e.style},onFocusCapture:yt(e.onFocusCapture,z.onFocusCapture),onBlurCapture:yt(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:yt(e.onPointerDownCapture,F.onPointerDownCapture)})});bu.displayName=wN;var CN="DismissableLayerBranch",EN=S.forwardRef((e,r)=>{const l=S.useContext(e0),i=S.useRef(null),o=an(r,i);return S.useEffect(()=>{const u=i.current;if(u)return l.branches.add(u),()=>{l.branches.delete(u)}},[l.branches]),x.jsx(_t.div,{...e,ref:o})});EN.displayName=CN;function NN(e,r=globalThis==null?void 0:globalThis.document){const l=Ri(e),i=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const u=f=>{if(f.target&&!i.current){let d=function(){t0(SN,l,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(r.removeEventListener("click",o.current),o.current=d,r.addEventListener("click",o.current,{once:!0})):d()}else r.removeEventListener("click",o.current);i.current=!1},c=window.setTimeout(()=>{r.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),r.removeEventListener("pointerdown",u),r.removeEventListener("click",o.current)}},[r,l]),{onPointerDownCapture:()=>i.current=!0}}function AN(e,r=globalThis==null?void 0:globalThis.document){const l=Ri(e),i=S.useRef(!1);return S.useEffect(()=>{const o=u=>{u.target&&!i.current&&t0(kN,l,{originalEvent:u},{discrete:!1})};return r.addEventListener("focusin",o),()=>r.removeEventListener("focusin",o)},[r,l]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Px(){const e=new CustomEvent($d);document.dispatchEvent(e)}function t0(e,r,l,{discrete:i}){const o=l.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:l});r&&o.addEventListener(e,r,{once:!0}),i?bN(o,u):o.dispatchEvent(u)}var cd="focusScope.autoFocusOnMount",fd="focusScope.autoFocusOnUnmount",qx={bubbles:!1,cancelable:!0},jN="FocusScope",jh=S.forwardRef((e,r)=>{const{loop:l=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...c}=e,[f,d]=S.useState(null),m=Ri(o),g=Ri(u),y=S.useRef(null),b=an(r,C=>d(C)),v=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(i){let C=function(_){if(v.paused||!f)return;const U=_.target;f.contains(U)?y.current=U:Qr(y.current,{select:!0})},A=function(_){if(v.paused||!f)return;const U=_.relatedTarget;U!==null&&(f.contains(U)||Qr(y.current,{select:!0}))},N=function(_){if(document.activeElement===document.body)for(const F of _)F.removedNodes.length>0&&Qr(f)};document.addEventListener("focusin",C),document.addEventListener("focusout",A);const O=new MutationObserver(N);return f&&O.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",A),O.disconnect()}}},[i,f,v.paused]),S.useEffect(()=>{if(f){Vx.add(v);const C=document.activeElement;if(!f.contains(C)){const N=new CustomEvent(cd,qx);f.addEventListener(cd,m),f.dispatchEvent(N),N.defaultPrevented||(TN(zN(n0(f)),{select:!0}),document.activeElement===C&&Qr(f))}return()=>{f.removeEventListener(cd,m),setTimeout(()=>{const N=new CustomEvent(fd,qx);f.addEventListener(fd,g),f.dispatchEvent(N),N.defaultPrevented||Qr(C??document.body,{select:!0}),f.removeEventListener(fd,g),Vx.remove(v)},0)}}},[f,m,g,v]);const k=S.useCallback(C=>{if(!l&&!i||v.paused)return;const A=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,N=document.activeElement;if(A&&N){const O=C.currentTarget,[_,U]=_N(O);_&&U?!C.shiftKey&&N===U?(C.preventDefault(),l&&Qr(_,{select:!0})):C.shiftKey&&N===_&&(C.preventDefault(),l&&Qr(U,{select:!0})):N===O&&C.preventDefault()}},[l,i,v.paused]);return x.jsx(_t.div,{tabIndex:-1,...c,ref:b,onKeyDown:k})});jh.displayName=jN;function TN(e,{select:r=!1}={}){const l=document.activeElement;for(const i of e)if(Qr(i,{select:r}),document.activeElement!==l)return}function _N(e){const r=n0(e),l=Fx(r,e),i=Fx(r.reverse(),e);return[l,i]}function n0(e){const r=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)r.push(l.currentNode);return r}function Fx(e,r){for(const l of e)if(!RN(l,{upTo:r}))return l}function RN(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function MN(e){return e instanceof HTMLInputElement&&"select"in e}function Qr(e,{select:r=!1}={}){if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),e!==l&&MN(e)&&r&&e.select()}}var Vx=ON();function ON(){let e=[];return{add(r){const l=e[0];r!==l&&(l==null||l.pause()),e=Ix(e,r),e.unshift(r)},remove(r){var l;e=Ix(e,r),(l=e[0])==null||l.resume()}}}function Ix(e,r){const l=[...e],i=l.indexOf(r);return i!==-1&&l.splice(i,1),l}function zN(e){return e.filter(r=>r.tagName!=="A")}var DN="Portal",vu=S.forwardRef((e,r)=>{var f;const{container:l,...i}=e,[o,u]=S.useState(!1);Zr(()=>u(!0),[]);const c=l||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?mE.createPortal(x.jsx(_t.div,{...i,ref:r}),c):null});vu.displayName=DN;function LN(e,r){return S.useReducer((l,i)=>r[l][i]??l,e)}var nl=e=>{const{present:r,children:l}=e,i=BN(r),o=typeof l=="function"?l({present:i.isPresent}):S.Children.only(l),u=an(i.ref,UN(o));return typeof l=="function"||i.isPresent?S.cloneElement(o,{ref:u}):null};nl.displayName="Presence";function BN(e){const[r,l]=S.useState(),i=S.useRef(null),o=S.useRef(e),u=S.useRef("none"),c=e?"mounted":"unmounted",[f,d]=LN(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=Ds(i.current);u.current=f==="mounted"?m:"none"},[f]),Zr(()=>{const m=i.current,g=o.current;if(g!==e){const b=u.current,v=Ds(m);e?d("MOUNT"):v==="none"||(m==null?void 0:m.display)==="none"?d("UNMOUNT"):d(g&&b!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),Zr(()=>{if(r){let m;const g=r.ownerDocument.defaultView??window,y=v=>{const C=Ds(i.current).includes(CSS.escape(v.animationName));if(v.target===r&&C&&(d("ANIMATION_END"),!o.current)){const A=r.style.animationFillMode;r.style.animationFillMode="forwards",m=g.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=A)})}},b=v=>{v.target===r&&(u.current=Ds(i.current))};return r.addEventListener("animationstart",b),r.addEventListener("animationcancel",y),r.addEventListener("animationend",y),()=>{g.clearTimeout(m),r.removeEventListener("animationstart",b),r.removeEventListener("animationcancel",y),r.removeEventListener("animationend",y)}}else d("ANIMATION_END")},[r,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:S.useCallback(m=>{i.current=m?getComputedStyle(m):null,l(m)},[])}}function Ds(e){return(e==null?void 0:e.animationName)||"none"}function UN(e){var i,o;let r=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?e.ref:(r=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?e.props.ref:e.props.ref||e.ref)}var dd=0;function r0(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gx()),document.body.insertAdjacentElement("beforeend",e[1]??Gx()),dd++,()=>{dd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),dd--}},[])}function Gx(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Bn=function(){return Bn=Object.assign||function(r){for(var l,i=1,o=arguments.length;i<o;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(r[u]=l[u])}return r},Bn.apply(this,arguments)};function l0(e,r){var l={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(l[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(l[i[o]]=e[i[o]]);return l}function HN(e,r,l){if(l||arguments.length===2)for(var i=0,o=r.length,u;i<o;i++)(u||!(i in r))&&(u||(u=Array.prototype.slice.call(r,0,i)),u[i]=r[i]);return e.concat(u||Array.prototype.slice.call(r))}var Qs="right-scroll-bar-position",Zs="width-before-scroll-bar",PN="with-scroll-bars-hidden",qN="--removed-body-scroll-bar-size";function hd(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function FN(e,r){var l=S.useState(function(){return{value:e,callback:r,facade:{get current(){return l.value},set current(i){var o=l.value;o!==i&&(l.value=i,l.callback(i,o))}}}})[0];return l.callback=r,l.facade}var VN=typeof window<"u"?S.useLayoutEffect:S.useEffect,Yx=new WeakMap;function IN(e,r){var l=FN(null,function(i){return e.forEach(function(o){return hd(o,i)})});return VN(function(){var i=Yx.get(l);if(i){var o=new Set(i),u=new Set(e),c=l.current;o.forEach(function(f){u.has(f)||hd(f,null)}),u.forEach(function(f){o.has(f)||hd(f,c)})}Yx.set(l,e)},[e]),l}function GN(e){return e}function YN(e,r){r===void 0&&(r=GN);var l=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:e},useMedium:function(u){var c=r(u,i);return l.push(c),function(){l=l.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(i=!0;l.length;){var c=l;l=[],c.forEach(u)}l={push:function(f){return u(f)},filter:function(){return l}}},assignMedium:function(u){i=!0;var c=[];if(l.length){var f=l;l=[],f.forEach(u),c=l}var d=function(){var g=c;c=[],g.forEach(u)},m=function(){return Promise.resolve().then(d)};m(),l={push:function(g){c.push(g),m()},filter:function(g){return c=c.filter(g),l}}}};return o}function $N(e){e===void 0&&(e={});var r=YN(null);return r.options=Bn({async:!0,ssr:!1},e),r}var i0=function(e){var r=e.sideCar,l=l0(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return S.createElement(i,Bn({},l))};i0.isSideCarExport=!0;function XN(e,r){return e.useMedium(r),i0}var a0=$N(),md=function(){},wu=S.forwardRef(function(e,r){var l=S.useRef(null),i=S.useState({onScrollCapture:md,onWheelCapture:md,onTouchMoveCapture:md}),o=i[0],u=i[1],c=e.forwardProps,f=e.children,d=e.className,m=e.removeScrollBar,g=e.enabled,y=e.shards,b=e.sideCar,v=e.noRelative,k=e.noIsolation,C=e.inert,A=e.allowPinchZoom,N=e.as,O=N===void 0?"div":N,_=e.gapMode,U=l0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=b,z=IN([l,r]),B=Bn(Bn({},U),o);return S.createElement(S.Fragment,null,g&&S.createElement(F,{sideCar:a0,removeScrollBar:m,shards:y,noRelative:v,noIsolation:k,inert:C,setCallbacks:u,allowPinchZoom:!!A,lockRef:l,gapMode:_}),c?S.cloneElement(S.Children.only(f),Bn(Bn({},B),{ref:z})):S.createElement(O,Bn({},B,{className:d,ref:z}),f))});wu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wu.classNames={fullWidth:Zs,zeroRight:Qs};var QN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ZN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=QN();return r&&e.setAttribute("nonce",r),e}function KN(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function JN(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var WN=function(){var e=0,r=null;return{add:function(l){e==0&&(r=ZN())&&(KN(r,l),JN(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},eA=function(){var e=WN();return function(r,l){S.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&l])}},o0=function(){var e=eA(),r=function(l){var i=l.styles,o=l.dynamic;return e(i,o),null};return r},tA={left:0,top:0,right:0,gap:0},pd=function(e){return parseInt(e||"",10)||0},nA=function(e){var r=window.getComputedStyle(document.body),l=r[e==="padding"?"paddingLeft":"marginLeft"],i=r[e==="padding"?"paddingTop":"marginTop"],o=r[e==="padding"?"paddingRight":"marginRight"];return[pd(l),pd(i),pd(o)]},rA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tA;var r=nA(e),l=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-l+r[2]-r[0])}},lA=o0(),ji="data-scroll-locked",iA=function(e,r,l,i){var o=e.left,u=e.top,c=e.right,f=e.gap;return l===void 0&&(l="margin"),`
61
+ .`.concat(PN,` {
62
+ overflow: hidden `).concat(i,`;
63
+ padding-right: `).concat(f,"px ").concat(i,`;
64
+ }
65
+ body[`).concat(ji,`] {
66
+ overflow: hidden `).concat(i,`;
67
+ overscroll-behavior: contain;
68
+ `).concat([r&&"position: relative ".concat(i,";"),l==="margin"&&`
69
+ padding-left: `.concat(o,`px;
70
+ padding-top: `).concat(u,`px;
71
+ padding-right: `).concat(c,`px;
72
+ margin-left:0;
73
+ margin-top:0;
74
+ margin-right: `).concat(f,"px ").concat(i,`;
75
+ `),l==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
76
+ }
77
+
78
+ .`).concat(Qs,` {
79
+ right: `).concat(f,"px ").concat(i,`;
80
+ }
81
+
82
+ .`).concat(Zs,` {
83
+ margin-right: `).concat(f,"px ").concat(i,`;
84
+ }
85
+
86
+ .`).concat(Qs," .").concat(Qs,` {
87
+ right: 0 `).concat(i,`;
88
+ }
89
+
90
+ .`).concat(Zs," .").concat(Zs,` {
91
+ margin-right: 0 `).concat(i,`;
92
+ }
93
+
94
+ body[`).concat(ji,`] {
95
+ `).concat(qN,": ").concat(f,`px;
96
+ }
97
+ `)},$x=function(){var e=parseInt(document.body.getAttribute(ji)||"0",10);return isFinite(e)?e:0},aA=function(){S.useEffect(function(){return document.body.setAttribute(ji,($x()+1).toString()),function(){var e=$x()-1;e<=0?document.body.removeAttribute(ji):document.body.setAttribute(ji,e.toString())}},[])},oA=function(e){var r=e.noRelative,l=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;aA();var u=S.useMemo(function(){return rA(o)},[o]);return S.createElement(lA,{styles:iA(u,!r,o,l?"":"!important")})},Xd=!1;if(typeof window<"u")try{var Ls=Object.defineProperty({},"passive",{get:function(){return Xd=!0,!0}});window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch{Xd=!1}var Si=Xd?{passive:!1}:!1,sA=function(e){return e.tagName==="TEXTAREA"},s0=function(e,r){if(!(e instanceof Element))return!1;var l=window.getComputedStyle(e);return l[r]!=="hidden"&&!(l.overflowY===l.overflowX&&!sA(e)&&l[r]==="visible")},uA=function(e){return s0(e,"overflowY")},cA=function(e){return s0(e,"overflowX")},Xx=function(e,r){var l=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=u0(e,i);if(o){var u=c0(e,i),c=u[1],f=u[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==l.body);return!1},fA=function(e){var r=e.scrollTop,l=e.scrollHeight,i=e.clientHeight;return[r,l,i]},dA=function(e){var r=e.scrollLeft,l=e.scrollWidth,i=e.clientWidth;return[r,l,i]},u0=function(e,r){return e==="v"?uA(r):cA(r)},c0=function(e,r){return e==="v"?fA(r):dA(r)},hA=function(e,r){return e==="h"&&r==="rtl"?-1:1},mA=function(e,r,l,i,o){var u=hA(e,window.getComputedStyle(r).direction),c=u*i,f=l.target,d=r.contains(f),m=!1,g=c>0,y=0,b=0;do{if(!f)break;var v=c0(e,f),k=v[0],C=v[1],A=v[2],N=C-A-u*k;(k||N)&&u0(e,f)&&(y+=N,b+=k);var O=f.parentNode;f=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!d&&f!==document.body||d&&(r.contains(f)||r===f));return(g&&Math.abs(y)<1||!g&&Math.abs(b)<1)&&(m=!0),m},Bs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qx=function(e){return[e.deltaX,e.deltaY]},Zx=function(e){return e&&"current"in e?e.current:e},pA=function(e,r){return e[0]===r[0]&&e[1]===r[1]},gA=function(e){return`
98
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
99
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
100
+ `)},yA=0,ki=[];function xA(e){var r=S.useRef([]),l=S.useRef([0,0]),i=S.useRef(),o=S.useState(yA++)[0],u=S.useState(o0)[0],c=S.useRef(e);S.useEffect(function(){c.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var C=HN([e.lockRef.current],(e.shards||[]).map(Zx),!0).filter(Boolean);return C.forEach(function(A){return A.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),C.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=S.useCallback(function(C,A){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!c.current.allowPinchZoom;var N=Bs(C),O=l.current,_="deltaX"in C?C.deltaX:O[0]-N[0],U="deltaY"in C?C.deltaY:O[1]-N[1],F,z=C.target,B=Math.abs(_)>Math.abs(U)?"h":"v";if("touches"in C&&B==="h"&&z.type==="range")return!1;var $=window.getSelection(),ae=$&&$.anchorNode,P=ae?ae===z||ae.contains(z):!1;if(P)return!1;var re=Xx(B,z);if(!re)return!0;if(re?F=B:(F=B==="v"?"h":"v",re=Xx(B,z)),!re)return!1;if(!i.current&&"changedTouches"in C&&(_||U)&&(i.current=F),!F)return!0;var le=i.current||F;return mA(le,A,C,le==="h"?_:U)},[]),d=S.useCallback(function(C){var A=C;if(!(!ki.length||ki[ki.length-1]!==u)){var N="deltaY"in A?Qx(A):Bs(A),O=r.current.filter(function(F){return F.name===A.type&&(F.target===A.target||A.target===F.shadowParent)&&pA(F.delta,N)})[0];if(O&&O.should){A.cancelable&&A.preventDefault();return}if(!O){var _=(c.current.shards||[]).map(Zx).filter(Boolean).filter(function(F){return F.contains(A.target)}),U=_.length>0?f(A,_[0]):!c.current.noIsolation;U&&A.cancelable&&A.preventDefault()}}},[]),m=S.useCallback(function(C,A,N,O){var _={name:C,delta:A,target:N,should:O,shadowParent:bA(N)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(U){return U!==_})},1)},[]),g=S.useCallback(function(C){l.current=Bs(C),i.current=void 0},[]),y=S.useCallback(function(C){m(C.type,Qx(C),C.target,f(C,e.lockRef.current))},[]),b=S.useCallback(function(C){m(C.type,Bs(C),C.target,f(C,e.lockRef.current))},[]);S.useEffect(function(){return ki.push(u),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",d,Si),document.addEventListener("touchmove",d,Si),document.addEventListener("touchstart",g,Si),function(){ki=ki.filter(function(C){return C!==u}),document.removeEventListener("wheel",d,Si),document.removeEventListener("touchmove",d,Si),document.removeEventListener("touchstart",g,Si)}},[]);var v=e.removeScrollBar,k=e.inert;return S.createElement(S.Fragment,null,k?S.createElement(u,{styles:gA(o)}):null,v?S.createElement(oA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bA(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const vA=XN(a0,xA);var Th=S.forwardRef(function(e,r){return S.createElement(wu,Bn({},e,{ref:r,sideCar:vA}))});Th.classNames=wu.classNames;var wA=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},Ci=new WeakMap,Us=new WeakMap,Hs={},gd=0,f0=function(e){return e&&(e.host||f0(e.parentNode))},SA=function(e,r){return r.map(function(l){if(e.contains(l))return l;var i=f0(l);return i&&e.contains(i)?i:(console.error("aria-hidden",l,"in not contained inside",e,". Doing nothing"),null)}).filter(function(l){return!!l})},kA=function(e,r,l,i){var o=SA(r,Array.isArray(e)?e:[e]);Hs[l]||(Hs[l]=new WeakMap);var u=Hs[l],c=[],f=new Set,d=new Set(o),m=function(y){!y||f.has(y)||(f.add(y),m(y.parentNode))};o.forEach(m);var g=function(y){!y||d.has(y)||Array.prototype.forEach.call(y.children,function(b){if(f.has(b))g(b);else try{var v=b.getAttribute(i),k=v!==null&&v!=="false",C=(Ci.get(b)||0)+1,A=(u.get(b)||0)+1;Ci.set(b,C),u.set(b,A),c.push(b),C===1&&k&&Us.set(b,!0),A===1&&b.setAttribute(l,"true"),k||b.setAttribute(i,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return g(r),f.clear(),gd++,function(){c.forEach(function(y){var b=Ci.get(y)-1,v=u.get(y)-1;Ci.set(y,b),u.set(y,v),b||(Us.has(y)||y.removeAttribute(i),Us.delete(y)),v||y.removeAttribute(l)}),gd--,gd||(Ci=new WeakMap,Ci=new WeakMap,Us=new WeakMap,Hs={})}},d0=function(e,r,l){l===void 0&&(l="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=wA(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),kA(i,o,l,"aria-hidden")):function(){return null}},Su="Dialog",[h0]=xu(Su),[CA,An]=h0(Su),m0=e=>{const{__scopeDialog:r,children:l,open:i,defaultOpen:o,onOpenChange:u,modal:c=!0}=e,f=S.useRef(null),d=S.useRef(null),[m,g]=Nh({prop:i,defaultProp:o??!1,onChange:u,caller:Su});return x.jsx(CA,{scope:r,triggerRef:f,contentRef:d,contentId:Xa(),titleId:Xa(),descriptionId:Xa(),open:m,onOpenChange:g,onOpenToggle:S.useCallback(()=>g(y=>!y),[g]),modal:c,children:l})};m0.displayName=Su;var p0="DialogTrigger",EA=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=An(p0,l),u=an(r,o.triggerRef);return x.jsx(_t.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Mh(o.open),...i,ref:u,onClick:yt(e.onClick,o.onOpenToggle)})});EA.displayName=p0;var _h="DialogPortal",[NA,g0]=h0(_h,{forceMount:void 0}),y0=e=>{const{__scopeDialog:r,forceMount:l,children:i,container:o}=e,u=An(_h,r);return x.jsx(NA,{scope:r,forceMount:l,children:S.Children.map(i,c=>x.jsx(nl,{present:l||u.open,children:x.jsx(vu,{asChild:!0,container:o,children:c})}))})};y0.displayName=_h;var tu="DialogOverlay",x0=S.forwardRef((e,r)=>{const l=g0(tu,e.__scopeDialog),{forceMount:i=l.forceMount,...o}=e,u=An(tu,e.__scopeDialog);return u.modal?x.jsx(nl,{present:i||u.open,children:x.jsx(jA,{...o,ref:r})}):null});x0.displayName=tu;var AA=Ah("DialogOverlay.RemoveScroll"),jA=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=An(tu,l);return x.jsx(Th,{as:AA,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(_t.div,{"data-state":Mh(o.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),Tl="DialogContent",b0=S.forwardRef((e,r)=>{const l=g0(Tl,e.__scopeDialog),{forceMount:i=l.forceMount,...o}=e,u=An(Tl,e.__scopeDialog);return x.jsx(nl,{present:i||u.open,children:u.modal?x.jsx(TA,{...o,ref:r}):x.jsx(_A,{...o,ref:r})})});b0.displayName=Tl;var TA=S.forwardRef((e,r)=>{const l=An(Tl,e.__scopeDialog),i=S.useRef(null),o=an(r,l.contentRef,i);return S.useEffect(()=>{const u=i.current;if(u)return d0(u)},[]),x.jsx(v0,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yt(e.onCloseAutoFocus,u=>{var c;u.preventDefault(),(c=l.triggerRef.current)==null||c.focus()}),onPointerDownOutside:yt(e.onPointerDownOutside,u=>{const c=u.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&u.preventDefault()}),onFocusOutside:yt(e.onFocusOutside,u=>u.preventDefault())})}),_A=S.forwardRef((e,r)=>{const l=An(Tl,e.__scopeDialog),i=S.useRef(!1),o=S.useRef(!1);return x.jsx(v0,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var c,f;(c=e.onCloseAutoFocus)==null||c.call(e,u),u.defaultPrevented||(i.current||(f=l.triggerRef.current)==null||f.focus(),u.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:u=>{var d,m;(d=e.onInteractOutside)==null||d.call(e,u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=u.target;((m=l.triggerRef.current)==null?void 0:m.contains(c))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),v0=S.forwardRef((e,r)=>{const{__scopeDialog:l,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:u,...c}=e,f=An(Tl,l),d=S.useRef(null),m=an(r,d);return r0(),x.jsxs(x.Fragment,{children:[x.jsx(jh,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:u,children:x.jsx(bu,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Mh(f.open),...c,ref:m,onDismiss:()=>f.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(RA,{titleId:f.titleId}),x.jsx(OA,{contentRef:d,descriptionId:f.descriptionId})]})]})}),Rh="DialogTitle",w0=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=An(Rh,l);return x.jsx(_t.h2,{id:o.titleId,...i,ref:r})});w0.displayName=Rh;var S0="DialogDescription",k0=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=An(S0,l);return x.jsx(_t.p,{id:o.descriptionId,...i,ref:r})});k0.displayName=S0;var C0="DialogClose",E0=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=An(C0,l);return x.jsx(_t.button,{type:"button",...i,ref:r,onClick:yt(e.onClick,()=>o.onOpenChange(!1))})});E0.displayName=C0;function Mh(e){return e?"open":"closed"}var N0="DialogTitleWarning",[S6,A0]=aN(N0,{contentName:Tl,titleName:Rh,docsSlug:"dialog"}),RA=({titleId:e})=>{const r=A0(N0),l=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
101
+
102
+ If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
103
+
104
+ For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(l))},[l,e]),null},MA="DialogDescriptionWarning",OA=({contentRef:e,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${A0(MA).contentName}}.`;return S.useEffect(()=>{var u;const o=(u=e.current)==null?void 0:u.getAttribute("aria-describedby");r&&o&&(document.getElementById(r)||console.warn(i))},[i,e,r]),null},zA=m0,DA=y0,j0=x0,T0=b0,LA=w0,BA=k0,UA=E0;/**
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 HA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),PA=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,i)=>i?i.toUpperCase():l.toLowerCase()),Kx=e=>{const r=PA(e);return r.charAt(0).toUpperCase()+r.slice(1)},_0=(...e)=>e.filter((r,l,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===l).join(" ").trim(),qA=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
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
+ */var FA={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"};/**
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 VA=S.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:o="",children:u,iconNode:c,...f},d)=>S.createElement("svg",{ref:d,...FA,width:r,height:r,stroke:e,strokeWidth:i?Number(l)*24/Number(r):l,className:_0("lucide",o),...!u&&!qA(f)&&{"aria-hidden":"true"},...f},[...c.map(([m,g])=>S.createElement(m,g)),...Array.isArray(u)?u:[u]]));/**
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 Se=(e,r)=>{const l=S.forwardRef(({className:i,...o},u)=>S.createElement(VA,{ref:u,iconNode:r,className:_0(`lucide-${HA(Kx(e))}`,`lucide-${e}`,i),...o}));return l.displayName=Kx(e),l};/**
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 IA=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],GA=Se("arrow-down-to-line",IA);/**
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 YA=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],$A=Se("arrow-down",YA);/**
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 XA=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],QA=Se("arrow-left-right",XA);/**
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 ZA=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],KA=Se("arrow-up",ZA);/**
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 JA=[["path",{d:"M12 6v12",key:"1vza4d"}],["path",{d:"M17.196 9 6.804 15",key:"1ah31z"}],["path",{d:"m6.804 9 10.392 6",key:"1b6pxd"}]],WA=Se("asterisk",JA);/**
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 ej=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],R0=Se("brain",ej);/**
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 tj=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],nj=Se("chart-column",tj);/**
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 rj=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],lj=Se("check-check",rj);/**
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 ij=[["path",{d:"M20 4L9 15",key:"1qkx8z"}],["path",{d:"M21 19L3 19",key:"100sma"}],["path",{d:"M9 15L4 10",key:"9zxff7"}]],aj=Se("check-line",ij);/**
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 oj=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],_l=Se("check",oj);/**
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 sj=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],uj=Se("chevron-down",sj);/**
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 cj=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],fj=Se("chevron-left",cj);/**
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 dj=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Kr=Se("chevron-right",dj);/**
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 hj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],mj=Se("circle-slash",hj);/**
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 pj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],gj=Se("circle",pj);/**
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 yj=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Jx=Se("code-xml",yj);/**
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 xj=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],bj=Se("code",xj);/**
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 vj=[["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"}]],ku=Se("copy",vj);/**
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 wj=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Sj=Se("corner-down-left",wj);/**
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 kj=[["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"}]],Cj=Se("database",kj);/**
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 Ej=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Nj=Se("ellipsis",Ej);/**
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 Aj=[["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"}]],jj=Se("file-pen",Aj);/**
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 Tj=[["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"}]],_j=Se("file-plus-corner",Tj);/**
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 Rj=[["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"}]],Mj=Se("file",Rj);/**
245
+ * @license lucide-react v0.562.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const Oj=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5",key:"14wa3c"}],["path",{d:"M12 7.5V9",key:"1oy5b0"}],["path",{d:"M7.5 12H9",key:"eltsq1"}],["path",{d:"M16.5 12H15",key:"vk5kw4"}],["path",{d:"M12 16.5V15",key:"k7eayi"}],["path",{d:"m8 8 1.88 1.88",key:"nxy4qf"}],["path",{d:"M14.12 9.88 16 8",key:"1lst6k"}],["path",{d:"m8 16 1.88-1.88",key:"h2eex1"}],["path",{d:"M14.12 14.12 16 16",key:"uqkrx3"}]],Qa=Se("flower",Oj);/**
250
+ * @license lucide-react v0.562.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const zj=[["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"}]],M0=Se("folder-open",zj);/**
255
+ * @license lucide-react v0.562.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const Dj=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],O0=Se("folder",Dj);/**
260
+ * @license lucide-react v0.562.0 - ISC
261
+ *
262
+ * This source code is licensed under the ISC license.
263
+ * See the LICENSE file in the root directory of this source tree.
264
+ */const Lj=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Pa=Se("gauge",Lj);/**
265
+ * @license lucide-react v0.562.0 - ISC
266
+ *
267
+ * This source code is licensed under the ISC license.
268
+ * See the LICENSE file in the root directory of this source tree.
269
+ */const Bj=[["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"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Uj=Se("list-checks",Bj);/**
270
+ * @license lucide-react v0.562.0 - ISC
271
+ *
272
+ * This source code is licensed under the ISC license.
273
+ * See the LICENSE file in the root directory of this source tree.
274
+ */const Hj=[["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"}]],nu=Se("list-todo",Hj);/**
275
+ * @license lucide-react v0.562.0 - ISC
276
+ *
277
+ * This source code is licensed under the ISC license.
278
+ * See the LICENSE file in the root directory of this source tree.
279
+ */const Pj=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],zl=Se("loader-circle",Pj);/**
280
+ * @license lucide-react v0.562.0 - ISC
281
+ *
282
+ * This source code is licensed under the ISC license.
283
+ * See the LICENSE file in the root directory of this source tree.
284
+ */const qj=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],Wx=Se("lock-open",qj);/**
285
+ * @license lucide-react v0.562.0 - ISC
286
+ *
287
+ * This source code is licensed under the ISC license.
288
+ * See the LICENSE file in the root directory of this source tree.
289
+ */const Fj=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],eb=Se("map",Fj);/**
290
+ * @license lucide-react v0.562.0 - ISC
291
+ *
292
+ * This source code is licensed under the ISC license.
293
+ * See the LICENSE file in the root directory of this source tree.
294
+ */const Vj=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],z0=Se("menu",Vj);/**
295
+ * @license lucide-react v0.562.0 - ISC
296
+ *
297
+ * This source code is licensed under the ISC license.
298
+ * See the LICENSE file in the root directory of this source tree.
299
+ */const Ij=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["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"}]],D0=Se("message-circle-question-mark",Ij);/**
300
+ * @license lucide-react v0.562.0 - ISC
301
+ *
302
+ * This source code is licensed under the ISC license.
303
+ * See the LICENSE file in the root directory of this source tree.
304
+ */const Gj=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],L0=Se("minimize",Gj);/**
305
+ * @license lucide-react v0.562.0 - ISC
306
+ *
307
+ * This source code is licensed under the ISC license.
308
+ * See the LICENSE file in the root directory of this source tree.
309
+ */const Yj=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Oh=Se("monitor",Yj);/**
310
+ * @license lucide-react v0.562.0 - ISC
311
+ *
312
+ * This source code is licensed under the ISC license.
313
+ * See the LICENSE file in the root directory of this source tree.
314
+ */const $j=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Qd=Se("panel-left",$j);/**
315
+ * @license lucide-react v0.562.0 - ISC
316
+ *
317
+ * This source code is licensed under the ISC license.
318
+ * See the LICENSE file in the root directory of this source tree.
319
+ */const Xj=[["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"}]],B0=Se("pencil",Xj);/**
320
+ * @license lucide-react v0.562.0 - ISC
321
+ *
322
+ * This source code is licensed under the ISC license.
323
+ * See the LICENSE file in the root directory of this source tree.
324
+ */const Qj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],U0=Se("plus",Qj);/**
325
+ * @license lucide-react v0.562.0 - ISC
326
+ *
327
+ * This source code is licensed under the ISC license.
328
+ * See the LICENSE file in the root directory of this source tree.
329
+ */const Zj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yd=Se("search",Zj);/**
330
+ * @license lucide-react v0.562.0 - ISC
331
+ *
332
+ * This source code is licensed under the ISC license.
333
+ * See the LICENSE file in the root directory of this source tree.
334
+ */const Kj=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Jj=Se("send",Kj);/**
335
+ * @license lucide-react v0.562.0 - ISC
336
+ *
337
+ * This source code is licensed under the ISC license.
338
+ * See the LICENSE file in the root directory of this source tree.
339
+ */const Wj=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],eT=Se("slash",Wj);/**
340
+ * @license lucide-react v0.562.0 - ISC
341
+ *
342
+ * This source code is licensed under the ISC license.
343
+ * See the LICENSE file in the root directory of this source tree.
344
+ */const tT=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],zh=Se("sparkles",tT);/**
345
+ * @license lucide-react v0.562.0 - ISC
346
+ *
347
+ * This source code is licensed under the ISC license.
348
+ * See the LICENSE file in the root directory of this source tree.
349
+ */const nT=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Dh=Se("square-pen",nT);/**
350
+ * @license lucide-react v0.562.0 - ISC
351
+ *
352
+ * This source code is licensed under the ISC license.
353
+ * See the LICENSE file in the root directory of this source tree.
354
+ */const rT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],lT=Se("square-x",rT);/**
355
+ * @license lucide-react v0.562.0 - ISC
356
+ *
357
+ * This source code is licensed under the ISC license.
358
+ * See the LICENSE file in the root directory of this source tree.
359
+ */const iT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Lh=Se("terminal",iT);/**
360
+ * @license lucide-react v0.562.0 - ISC
361
+ *
362
+ * This source code is licensed under the ISC license.
363
+ * See the LICENSE file in the root directory of this source tree.
364
+ */const aT=[["rect",{width:"18",height:"12",x:"3",y:"8",rx:"1",key:"158fvp"}],["path",{d:"M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3",key:"s0042v"}],["path",{d:"M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3",key:"9wmeh2"}]],oT=Se("toy-brick",aT);/**
365
+ * @license lucide-react v0.562.0 - ISC
366
+ *
367
+ * This source code is licensed under the ISC license.
368
+ * See the LICENSE file in the root directory of this source tree.
369
+ */const sT=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],uT=Se("trash-2",sT);/**
370
+ * @license lucide-react v0.562.0 - ISC
371
+ *
372
+ * This source code is licensed under the ISC license.
373
+ * See the LICENSE file in the root directory of this source tree.
374
+ */const cT=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Bh=Se("user-round",cT);/**
375
+ * @license lucide-react v0.562.0 - ISC
376
+ *
377
+ * This source code is licensed under the ISC license.
378
+ * See the LICENSE file in the root directory of this source tree.
379
+ */const fT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],so=Se("x",fT);/**
380
+ * @license lucide-react v0.562.0 - ISC
381
+ *
382
+ * This source code is licensed under the ISC license.
383
+ * See the LICENSE file in the root directory of this source tree.
384
+ */const dT=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],H0=Se("zap",dT),P0=zA,hT=DA,q0=S.forwardRef(({className:e,...r},l)=>x.jsx(j0,{ref:l,className:xe("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...r}));q0.displayName=j0.displayName;const mT={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg"},Uh=S.forwardRef(({className:e,children:r,size:l="md",...i},o)=>x.jsxs(hT,{children:[x.jsx(q0,{}),x.jsxs(T0,{ref:o,className:xe("fixed left-1/2 top-1/2 z-50 w-full -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border bg-background shadow-xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","max-h-[85vh] flex flex-col",mT[l],e),...i,children:[r,x.jsxs(UA,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[x.jsx(so,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Uh.displayName=T0.displayName;function F0({className:e,...r}){return x.jsx(LA,{className:xe("text-lg font-medium leading-none tracking-tight",e),...r})}function pT({className:e,...r}){return x.jsx(BA,{className:xe("text-sm text-muted-foreground",e),...r})}function V0({className:e,...r}){return x.jsx("div",{className:xe("flex-1 min-h-0 overflow-y-auto px-4 pb-4 pt-3.5",e),...r})}function I0({className:e,...r}){return x.jsx("div",{className:xe("shrink-0 flex justify-end gap-2 border-t border-border bg-background p-2 rounded-b-xl",e),...r})}const G0=S.createContext(null);function gT({children:e}){const[r,l]=S.useState(null),[i,o]=S.useState(""),u=S.useRef(null);S.useEffect(()=>{(r==null?void 0:r.kind)==="prompt"&&(o(r.options.initialValue??""),setTimeout(()=>{var g,y;(g=u.current)==null||g.focus(),(y=u.current)==null||y.select()},0))},[r]);const c=S.useCallback(()=>{l(null),o("")},[]),f=S.useCallback(g=>new Promise(y=>{l({kind:"confirm",options:g,resolve:y})}),[]),d=S.useCallback(g=>new Promise(y=>{l({kind:"prompt",options:g,resolve:y})}),[]),m=S.useMemo(()=>({confirm:f,prompt:d}),[f,d]);return x.jsxs(G0.Provider,{value:m,children:[e,x.jsx(P0,{open:r!==null,onOpenChange:g=>{g||!r||(r.kind==="confirm"?r.resolve(!1):r.resolve(null),c())},children:x.jsx(Uh,{size:"sm",children:r?x.jsxs(x.Fragment,{children:[x.jsxs(V0,{className:"space-y-4",children:[x.jsx(F0,{children:r.options.title}),r.options.description?x.jsx(pT,{children:r.options.description}):null,r.kind==="prompt"?x.jsx("input",{ref:u,type:"text",value:i,onChange:g=>o(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r.resolve(i.trim()||null),c())},className:"w-full px-3 py-2 text-sm border border-border rounded-md bg-background outline-none",placeholder:r.options.placeholder}):null]}),x.jsxs(I0,{children:[x.jsx(qe,{variant:"ghost",size:"sm",onClick:()=>{r.kind==="confirm"?r.resolve(!1):r.resolve(null),c()},children:r.options.cancelLabel??"Cancel"}),x.jsx(qe,{variant:r.kind==="confirm"?r.options.confirmVariant??"default":"secondary",size:"sm",onClick:()=>{r.kind==="confirm"?r.resolve(!0):r.resolve(i.trim()||null),c()},disabled:r.kind==="prompt"&&!i.trim(),children:r.options.confirmLabel??"Confirm"})]})]}):null})})]})}function yT(){const e=S.useContext(G0);if(!e)throw new Error("useAppDialog must be used within AppDialogProvider");return e}const xT=["top","right","bottom","left"],Jr=Math.min,nn=Math.max,ru=Math.round,Ps=Math.floor,Pn=e=>({x:e,y:e}),bT={left:"right",right:"left",bottom:"top",top:"bottom"};function Zd(e,r,l){return nn(e,Jr(r,l))}function mr(e,r){return typeof e=="function"?e(r):e}function pr(e){return e.split("-")[0]}function Pi(e){return e.split("-")[1]}function Hh(e){return e==="x"?"y":"x"}function Ph(e){return e==="y"?"height":"width"}function Un(e){const r=e[0];return r==="t"||r==="b"?"y":"x"}function qh(e){return Hh(Un(e))}function vT(e,r,l){l===void 0&&(l=!1);const i=Pi(e),o=qh(e),u=Ph(o);let c=o==="x"?i===(l?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(c=lu(c)),[c,lu(c)]}function wT(e){const r=lu(e);return[Kd(e),r,Kd(r)]}function Kd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const tb=["left","right"],nb=["right","left"],ST=["top","bottom"],kT=["bottom","top"];function CT(e,r,l){switch(e){case"top":case"bottom":return l?r?nb:tb:r?tb:nb;case"left":case"right":return r?ST:kT;default:return[]}}function ET(e,r,l,i){const o=Pi(e);let u=CT(pr(e),l==="start",i);return o&&(u=u.map(c=>c+"-"+o),r&&(u=u.concat(u.map(Kd)))),u}function lu(e){const r=pr(e);return bT[r]+e.slice(r.length)}function NT(e){return{top:0,right:0,bottom:0,left:0,...e}}function Y0(e){return typeof e!="number"?NT(e):{top:e,right:e,bottom:e,left:e}}function iu(e){const{x:r,y:l,width:i,height:o}=e;return{width:i,height:o,top:l,left:r,right:r+i,bottom:l+o,x:r,y:l}}function rb(e,r,l){let{reference:i,floating:o}=e;const u=Un(r),c=qh(r),f=Ph(c),d=pr(r),m=u==="y",g=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,b=i[f]/2-o[f]/2;let v;switch(d){case"top":v={x:g,y:i.y-o.height};break;case"bottom":v={x:g,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y};break;case"left":v={x:i.x-o.width,y};break;default:v={x:i.x,y:i.y}}switch(Pi(r)){case"start":v[c]-=b*(l&&m?-1:1);break;case"end":v[c]+=b*(l&&m?-1:1);break}return v}async function AT(e,r){var l;r===void 0&&(r={});const{x:i,y:o,platform:u,rects:c,elements:f,strategy:d}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:y="floating",altBoundary:b=!1,padding:v=0}=mr(r,e),k=Y0(v),A=f[b?y==="floating"?"reference":"floating":y],N=iu(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(A)))==null||l?A:A.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:m,rootBoundary:g,strategy:d})),O=y==="floating"?{x:i,y:o,width:c.floating.width,height:c.floating.height}:c.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),U=await(u.isElement==null?void 0:u.isElement(_))?await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1}:{x:1,y:1},F=iu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:_,strategy:d}):O);return{top:(N.top-F.top+k.top)/U.y,bottom:(F.bottom-N.bottom+k.bottom)/U.y,left:(N.left-F.left+k.left)/U.x,right:(F.right-N.right+k.right)/U.x}}const jT=50,TT=async(e,r,l)=>{const{placement:i="bottom",strategy:o="absolute",middleware:u=[],platform:c}=l,f=c.detectOverflow?c:{...c,detectOverflow:AT},d=await(c.isRTL==null?void 0:c.isRTL(r));let m=await c.getElementRects({reference:e,floating:r,strategy:o}),{x:g,y}=rb(m,i,d),b=i,v=0;const k={};for(let C=0;C<u.length;C++){const A=u[C];if(!A)continue;const{name:N,fn:O}=A,{x:_,y:U,data:F,reset:z}=await O({x:g,y,initialPlacement:i,placement:b,strategy:o,middlewareData:k,rects:m,platform:f,elements:{reference:e,floating:r}});g=_??g,y=U??y,k[N]={...k[N],...F},z&&v<jT&&(v++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(m=z.rects===!0?await c.getElementRects({reference:e,floating:r,strategy:o}):z.rects),{x:g,y}=rb(m,b,d)),C=-1)}return{x:g,y,placement:b,strategy:o,middlewareData:k}},_T=e=>({name:"arrow",options:e,async fn(r){const{x:l,y:i,placement:o,rects:u,platform:c,elements:f,middlewareData:d}=r,{element:m,padding:g=0}=mr(e,r)||{};if(m==null)return{};const y=Y0(g),b={x:l,y:i},v=qh(o),k=Ph(v),C=await c.getDimensions(m),A=v==="y",N=A?"top":"left",O=A?"bottom":"right",_=A?"clientHeight":"clientWidth",U=u.reference[k]+u.reference[v]-b[v]-u.floating[k],F=b[v]-u.reference[v],z=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let B=z?z[_]:0;(!B||!await(c.isElement==null?void 0:c.isElement(z)))&&(B=f.floating[_]||u.floating[k]);const $=U/2-F/2,ae=B/2-C[k]/2-1,P=Jr(y[N],ae),re=Jr(y[O],ae),le=P,se=B-C[k]-re,J=B/2-C[k]/2+$,Z=Zd(le,J,se),D=!d.arrow&&Pi(o)!=null&&J!==Z&&u.reference[k]/2-(J<le?P:re)-C[k]/2<0,X=D?J<le?J-le:J-se:0;return{[v]:b[v]+X,data:{[v]:Z,centerOffset:J-Z-X,...D&&{alignmentOffset:X}},reset:D}}}),RT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var l,i;const{placement:o,middlewareData:u,rects:c,initialPlacement:f,platform:d,elements:m}=r,{mainAxis:g=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:C=!0,...A}=mr(e,r);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const N=pr(o),O=Un(f),_=pr(f)===f,U=await(d.isRTL==null?void 0:d.isRTL(m.floating)),F=b||(_||!C?[lu(f)]:wT(f)),z=k!=="none";!b&&z&&F.push(...ET(f,C,k,U));const B=[f,...F],$=await d.detectOverflow(r,A),ae=[];let P=((i=u.flip)==null?void 0:i.overflows)||[];if(g&&ae.push($[N]),y){const J=vT(o,c,U);ae.push($[J[0]],$[J[1]])}if(P=[...P,{placement:o,overflows:ae}],!ae.every(J=>J<=0)){var re,le;const J=(((re=u.flip)==null?void 0:re.index)||0)+1,Z=B[J];if(Z&&(!(y==="alignment"?O!==Un(Z):!1)||P.every(ne=>Un(ne.placement)===O?ne.overflows[0]>0:!0)))return{data:{index:J,overflows:P},reset:{placement:Z}};let D=(le=P.filter(X=>X.overflows[0]<=0).sort((X,ne)=>X.overflows[1]-ne.overflows[1])[0])==null?void 0:le.placement;if(!D)switch(v){case"bestFit":{var se;const X=(se=P.filter(ne=>{if(z){const ie=Un(ne.placement);return ie===O||ie==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(ie=>ie>0).reduce((ie,j)=>ie+j,0)]).sort((ne,ie)=>ne[1]-ie[1])[0])==null?void 0:se[0];X&&(D=X);break}case"initialPlacement":D=f;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function lb(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function ib(e){return xT.some(r=>e[r]>=0)}const MT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:l,platform:i}=r,{strategy:o="referenceHidden",...u}=mr(e,r);switch(o){case"referenceHidden":{const c=await i.detectOverflow(r,{...u,elementContext:"reference"}),f=lb(c,l.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:ib(f)}}}case"escaped":{const c=await i.detectOverflow(r,{...u,altBoundary:!0}),f=lb(c,l.floating);return{data:{escapedOffsets:f,escaped:ib(f)}}}default:return{}}}}},$0=new Set(["left","top"]);async function OT(e,r){const{placement:l,platform:i,elements:o}=e,u=await(i.isRTL==null?void 0:i.isRTL(o.floating)),c=pr(l),f=Pi(l),d=Un(l)==="y",m=$0.has(c)?-1:1,g=u&&d?-1:1,y=mr(r,e);let{mainAxis:b,crossAxis:v,alignmentAxis:k}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof k=="number"&&(v=f==="end"?k*-1:k),d?{x:v*g,y:b*m}:{x:b*m,y:v*g}}const zT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var l,i;const{x:o,y:u,placement:c,middlewareData:f}=r,d=await OT(r,e);return c===((l=f.offset)==null?void 0:l.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+d.x,y:u+d.y,data:{...d,placement:c}}}}},DT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:l,y:i,placement:o,platform:u}=r,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:N=>{let{x:O,y:_}=N;return{x:O,y:_}}},...m}=mr(e,r),g={x:l,y:i},y=await u.detectOverflow(r,m),b=Un(pr(o)),v=Hh(b);let k=g[v],C=g[b];if(c){const N=v==="y"?"top":"left",O=v==="y"?"bottom":"right",_=k+y[N],U=k-y[O];k=Zd(_,k,U)}if(f){const N=b==="y"?"top":"left",O=b==="y"?"bottom":"right",_=C+y[N],U=C-y[O];C=Zd(_,C,U)}const A=d.fn({...r,[v]:k,[b]:C});return{...A,data:{x:A.x-l,y:A.y-i,enabled:{[v]:c,[b]:f}}}}}},LT=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:l,y:i,placement:o,rects:u,middlewareData:c}=r,{offset:f=0,mainAxis:d=!0,crossAxis:m=!0}=mr(e,r),g={x:l,y:i},y=Un(o),b=Hh(y);let v=g[b],k=g[y];const C=mr(f,r),A=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(d){const _=b==="y"?"height":"width",U=u.reference[b]-u.floating[_]+A.mainAxis,F=u.reference[b]+u.reference[_]-A.mainAxis;v<U?v=U:v>F&&(v=F)}if(m){var N,O;const _=b==="y"?"width":"height",U=$0.has(pr(o)),F=u.reference[y]-u.floating[_]+(U&&((N=c.offset)==null?void 0:N[y])||0)+(U?0:A.crossAxis),z=u.reference[y]+u.reference[_]+(U?0:((O=c.offset)==null?void 0:O[y])||0)-(U?A.crossAxis:0);k<F?k=F:k>z&&(k=z)}return{[b]:v,[y]:k}}}},BT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var l,i;const{placement:o,rects:u,platform:c,elements:f}=r,{apply:d=()=>{},...m}=mr(e,r),g=await c.detectOverflow(r,m),y=pr(o),b=Pi(o),v=Un(o)==="y",{width:k,height:C}=u.floating;let A,N;y==="top"||y==="bottom"?(A=y,N=b===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(N=y,A=b==="end"?"top":"bottom");const O=C-g.top-g.bottom,_=k-g.left-g.right,U=Jr(C-g[A],O),F=Jr(k-g[N],_),z=!r.middlewareData.shift;let B=U,$=F;if((l=r.middlewareData.shift)!=null&&l.enabled.x&&($=_),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(B=O),z&&!b){const P=nn(g.left,0),re=nn(g.right,0),le=nn(g.top,0),se=nn(g.bottom,0);v?$=k-2*(P!==0||re!==0?P+re:nn(g.left,g.right)):B=C-2*(le!==0||se!==0?le+se:nn(g.top,g.bottom))}await d({...r,availableWidth:$,availableHeight:B});const ae=await c.getDimensions(f.floating);return k!==ae.width||C!==ae.height?{reset:{rects:!0}}:{}}}};function Cu(){return typeof window<"u"}function qi(e){return X0(e)?(e.nodeName||"").toLowerCase():"#document"}function rn(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Vn(e){var r;return(r=(X0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function X0(e){return Cu()?e instanceof Node||e instanceof rn(e).Node:!1}function Cn(e){return Cu()?e instanceof Element||e instanceof rn(e).Element:!1}function gr(e){return Cu()?e instanceof HTMLElement||e instanceof rn(e).HTMLElement:!1}function ab(e){return!Cu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rn(e).ShadowRoot}function uo(e){const{overflow:r,overflowX:l,overflowY:i,display:o}=En(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+l)&&o!=="inline"&&o!=="contents"}function UT(e){return/^(table|td|th)$/.test(qi(e))}function Eu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const HT=/transform|translate|scale|rotate|perspective|filter/,PT=/paint|layout|strict|content/,Nl=e=>!!e&&e!=="none";let xd;function Fh(e){const r=Cn(e)?En(e):e;return Nl(r.transform)||Nl(r.translate)||Nl(r.scale)||Nl(r.rotate)||Nl(r.perspective)||!Vh()&&(Nl(r.backdropFilter)||Nl(r.filter))||HT.test(r.willChange||"")||PT.test(r.contain||"")}function qT(e){let r=Wr(e);for(;gr(r)&&!Mi(r);){if(Fh(r))return r;if(Eu(r))return null;r=Wr(r)}return null}function Vh(){return xd==null&&(xd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xd}function Mi(e){return/^(html|body|#document)$/.test(qi(e))}function En(e){return rn(e).getComputedStyle(e)}function Nu(e){return Cn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wr(e){if(qi(e)==="html")return e;const r=e.assignedSlot||e.parentNode||ab(e)&&e.host||Vn(e);return ab(r)?r.host:r}function Q0(e){const r=Wr(e);return Mi(r)?e.ownerDocument?e.ownerDocument.body:e.body:gr(r)&&uo(r)?r:Q0(r)}function eo(e,r,l){var i;r===void 0&&(r=[]),l===void 0&&(l=!0);const o=Q0(e),u=o===((i=e.ownerDocument)==null?void 0:i.body),c=rn(o);if(u){const f=Jd(c);return r.concat(c,c.visualViewport||[],uo(o)?o:[],f&&l?eo(f):[])}else return r.concat(o,eo(o,[],l))}function Jd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Z0(e){const r=En(e);let l=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const o=gr(e),u=o?e.offsetWidth:l,c=o?e.offsetHeight:i,f=ru(l)!==u||ru(i)!==c;return f&&(l=u,i=c),{width:l,height:i,$:f}}function Ih(e){return Cn(e)?e:e.contextElement}function Ti(e){const r=Ih(e);if(!gr(r))return Pn(1);const l=r.getBoundingClientRect(),{width:i,height:o,$:u}=Z0(r);let c=(u?ru(l.width):l.width)/i,f=(u?ru(l.height):l.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const FT=Pn(0);function K0(e){const r=rn(e);return!Vh()||!r.visualViewport?FT:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function VT(e,r,l){return r===void 0&&(r=!1),!l||r&&l!==rn(e)?!1:r}function Rl(e,r,l,i){r===void 0&&(r=!1),l===void 0&&(l=!1);const o=e.getBoundingClientRect(),u=Ih(e);let c=Pn(1);r&&(i?Cn(i)&&(c=Ti(i)):c=Ti(e));const f=VT(u,l,i)?K0(u):Pn(0);let d=(o.left+f.x)/c.x,m=(o.top+f.y)/c.y,g=o.width/c.x,y=o.height/c.y;if(u){const b=rn(u),v=i&&Cn(i)?rn(i):i;let k=b,C=Jd(k);for(;C&&i&&v!==k;){const A=Ti(C),N=C.getBoundingClientRect(),O=En(C),_=N.left+(C.clientLeft+parseFloat(O.paddingLeft))*A.x,U=N.top+(C.clientTop+parseFloat(O.paddingTop))*A.y;d*=A.x,m*=A.y,g*=A.x,y*=A.y,d+=_,m+=U,k=rn(C),C=Jd(k)}}return iu({width:g,height:y,x:d,y:m})}function Au(e,r){const l=Nu(e).scrollLeft;return r?r.left+l:Rl(Vn(e)).left+l}function J0(e,r){const l=e.getBoundingClientRect(),i=l.left+r.scrollLeft-Au(e,l),o=l.top+r.scrollTop;return{x:i,y:o}}function IT(e){let{elements:r,rect:l,offsetParent:i,strategy:o}=e;const u=o==="fixed",c=Vn(i),f=r?Eu(r.floating):!1;if(i===c||f&&u)return l;let d={scrollLeft:0,scrollTop:0},m=Pn(1);const g=Pn(0),y=gr(i);if((y||!y&&!u)&&((qi(i)!=="body"||uo(c))&&(d=Nu(i)),y)){const v=Rl(i);m=Ti(i),g.x=v.x+i.clientLeft,g.y=v.y+i.clientTop}const b=c&&!y&&!u?J0(c,d):Pn(0);return{width:l.width*m.x,height:l.height*m.y,x:l.x*m.x-d.scrollLeft*m.x+g.x+b.x,y:l.y*m.y-d.scrollTop*m.y+g.y+b.y}}function GT(e){return Array.from(e.getClientRects())}function YT(e){const r=Vn(e),l=Nu(e),i=e.ownerDocument.body,o=nn(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),u=nn(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let c=-l.scrollLeft+Au(e);const f=-l.scrollTop;return En(i).direction==="rtl"&&(c+=nn(r.clientWidth,i.clientWidth)-o),{width:o,height:u,x:c,y:f}}const ob=25;function $T(e,r){const l=rn(e),i=Vn(e),o=l.visualViewport;let u=i.clientWidth,c=i.clientHeight,f=0,d=0;if(o){u=o.width,c=o.height;const g=Vh();(!g||g&&r==="fixed")&&(f=o.offsetLeft,d=o.offsetTop)}const m=Au(i);if(m<=0){const g=i.ownerDocument,y=g.body,b=getComputedStyle(y),v=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,k=Math.abs(i.clientWidth-y.clientWidth-v);k<=ob&&(u-=k)}else m<=ob&&(u+=m);return{width:u,height:c,x:f,y:d}}function XT(e,r){const l=Rl(e,!0,r==="fixed"),i=l.top+e.clientTop,o=l.left+e.clientLeft,u=gr(e)?Ti(e):Pn(1),c=e.clientWidth*u.x,f=e.clientHeight*u.y,d=o*u.x,m=i*u.y;return{width:c,height:f,x:d,y:m}}function sb(e,r,l){let i;if(r==="viewport")i=$T(e,l);else if(r==="document")i=YT(Vn(e));else if(Cn(r))i=XT(r,l);else{const o=K0(e);i={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return iu(i)}function W0(e,r){const l=Wr(e);return l===r||!Cn(l)||Mi(l)?!1:En(l).position==="fixed"||W0(l,r)}function QT(e,r){const l=r.get(e);if(l)return l;let i=eo(e,[],!1).filter(f=>Cn(f)&&qi(f)!=="body"),o=null;const u=En(e).position==="fixed";let c=u?Wr(e):e;for(;Cn(c)&&!Mi(c);){const f=En(c),d=Fh(c);!d&&f.position==="fixed"&&(o=null),(u?!d&&!o:!d&&f.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||uo(c)&&!d&&W0(e,c))?i=i.filter(g=>g!==c):o=f,c=Wr(c)}return r.set(e,i),i}function ZT(e){let{element:r,boundary:l,rootBoundary:i,strategy:o}=e;const c=[...l==="clippingAncestors"?Eu(r)?[]:QT(r,this._c):[].concat(l),i],f=sb(r,c[0],o);let d=f.top,m=f.right,g=f.bottom,y=f.left;for(let b=1;b<c.length;b++){const v=sb(r,c[b],o);d=nn(v.top,d),m=Jr(v.right,m),g=Jr(v.bottom,g),y=nn(v.left,y)}return{width:m-y,height:g-d,x:y,y:d}}function KT(e){const{width:r,height:l}=Z0(e);return{width:r,height:l}}function JT(e,r,l){const i=gr(r),o=Vn(r),u=l==="fixed",c=Rl(e,!0,u,r);let f={scrollLeft:0,scrollTop:0};const d=Pn(0);function m(){d.x=Au(o)}if(i||!i&&!u)if((qi(r)!=="body"||uo(o))&&(f=Nu(r)),i){const v=Rl(r,!0,u,r);d.x=v.x+r.clientLeft,d.y=v.y+r.clientTop}else o&&m();u&&!i&&o&&m();const g=o&&!i&&!u?J0(o,f):Pn(0),y=c.left+f.scrollLeft-d.x-g.x,b=c.top+f.scrollTop-d.y-g.y;return{x:y,y:b,width:c.width,height:c.height}}function bd(e){return En(e).position==="static"}function ub(e,r){if(!gr(e)||En(e).position==="fixed")return null;if(r)return r(e);let l=e.offsetParent;return Vn(e)===l&&(l=l.ownerDocument.body),l}function e1(e,r){const l=rn(e);if(Eu(e))return l;if(!gr(e)){let o=Wr(e);for(;o&&!Mi(o);){if(Cn(o)&&!bd(o))return o;o=Wr(o)}return l}let i=ub(e,r);for(;i&&UT(i)&&bd(i);)i=ub(i,r);return i&&Mi(i)&&bd(i)&&!Fh(i)?l:i||qT(e)||l}const WT=async function(e){const r=this.getOffsetParent||e1,l=this.getDimensions,i=await l(e.floating);return{reference:JT(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function e_(e){return En(e).direction==="rtl"}const t_={convertOffsetParentRelativeRectToViewportRelativeRect:IT,getDocumentElement:Vn,getClippingRect:ZT,getOffsetParent:e1,getElementRects:WT,getClientRects:GT,getDimensions:KT,getScale:Ti,isElement:Cn,isRTL:e_};function t1(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function n_(e,r){let l=null,i;const o=Vn(e);function u(){var f;clearTimeout(i),(f=l)==null||f.disconnect(),l=null}function c(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),u();const m=e.getBoundingClientRect(),{left:g,top:y,width:b,height:v}=m;if(f||r(),!b||!v)return;const k=Ps(y),C=Ps(o.clientWidth-(g+b)),A=Ps(o.clientHeight-(y+v)),N=Ps(g),_={rootMargin:-k+"px "+-C+"px "+-A+"px "+-N+"px",threshold:nn(0,Jr(1,d))||1};let U=!0;function F(z){const B=z[0].intersectionRatio;if(B!==d){if(!U)return c();B?c(!1,B):i=setTimeout(()=>{c(!1,1e-7)},1e3)}B===1&&!t1(m,e.getBoundingClientRect())&&c(),U=!1}try{l=new IntersectionObserver(F,{..._,root:o.ownerDocument})}catch{l=new IntersectionObserver(F,_)}l.observe(e)}return c(!0),u}function r_(e,r,l,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,m=Ih(e),g=o||u?[...m?eo(m):[],...r?eo(r):[]]:[];g.forEach(N=>{o&&N.addEventListener("scroll",l,{passive:!0}),u&&N.addEventListener("resize",l)});const y=m&&f?n_(m,l):null;let b=-1,v=null;c&&(v=new ResizeObserver(N=>{let[O]=N;O&&O.target===m&&v&&r&&(v.unobserve(r),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var _;(_=v)==null||_.observe(r)})),l()}),m&&!d&&v.observe(m),r&&v.observe(r));let k,C=d?Rl(e):null;d&&A();function A(){const N=Rl(e);C&&!t1(C,N)&&l(),C=N,k=requestAnimationFrame(A)}return l(),()=>{var N;g.forEach(O=>{o&&O.removeEventListener("scroll",l),u&&O.removeEventListener("resize",l)}),y==null||y(),(N=v)==null||N.disconnect(),v=null,d&&cancelAnimationFrame(k)}}const l_=zT,i_=DT,a_=RT,o_=BT,s_=MT,cb=_T,u_=LT,c_=(e,r,l)=>{const i=new Map,o={platform:t_,...l},u={...o.platform,_c:i};return TT(e,r,{...o,platform:u})};var f_=typeof document<"u",d_=function(){},Ks=f_?S.useLayoutEffect:d_;function au(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let l,i,o;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(l=e.length,l!==r.length)return!1;for(i=l;i--!==0;)if(!au(e[i],r[i]))return!1;return!0}if(o=Object.keys(e),l=o.length,l!==Object.keys(r).length)return!1;for(i=l;i--!==0;)if(!{}.hasOwnProperty.call(r,o[i]))return!1;for(i=l;i--!==0;){const u=o[i];if(!(u==="_owner"&&e.$$typeof)&&!au(e[u],r[u]))return!1}return!0}return e!==e&&r!==r}function n1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fb(e,r){const l=n1(e);return Math.round(r*l)/l}function vd(e){const r=S.useRef(e);return Ks(()=>{r.current=e}),r}function h_(e){e===void 0&&(e={});const{placement:r="bottom",strategy:l="absolute",middleware:i=[],platform:o,elements:{reference:u,floating:c}={},transform:f=!0,whileElementsMounted:d,open:m}=e,[g,y]=S.useState({x:0,y:0,strategy:l,placement:r,middlewareData:{},isPositioned:!1}),[b,v]=S.useState(i);au(b,i)||v(i);const[k,C]=S.useState(null),[A,N]=S.useState(null),O=S.useCallback(ne=>{ne!==z.current&&(z.current=ne,C(ne))},[]),_=S.useCallback(ne=>{ne!==B.current&&(B.current=ne,N(ne))},[]),U=u||k,F=c||A,z=S.useRef(null),B=S.useRef(null),$=S.useRef(g),ae=d!=null,P=vd(d),re=vd(o),le=vd(m),se=S.useCallback(()=>{if(!z.current||!B.current)return;const ne={placement:r,strategy:l,middleware:b};re.current&&(ne.platform=re.current),c_(z.current,B.current,ne).then(ie=>{const j={...ie,isPositioned:le.current!==!1};J.current&&!au($.current,j)&&($.current=j,kh.flushSync(()=>{y(j)}))})},[b,r,l,re,le]);Ks(()=>{m===!1&&$.current.isPositioned&&($.current.isPositioned=!1,y(ne=>({...ne,isPositioned:!1})))},[m]);const J=S.useRef(!1);Ks(()=>(J.current=!0,()=>{J.current=!1}),[]),Ks(()=>{if(U&&(z.current=U),F&&(B.current=F),U&&F){if(P.current)return P.current(U,F,se);se()}},[U,F,se,P,ae]);const Z=S.useMemo(()=>({reference:z,floating:B,setReference:O,setFloating:_}),[O,_]),D=S.useMemo(()=>({reference:U,floating:F}),[U,F]),X=S.useMemo(()=>{const ne={position:l,left:0,top:0};if(!D.floating)return ne;const ie=fb(D.floating,g.x),j=fb(D.floating,g.y);return f?{...ne,transform:"translate("+ie+"px, "+j+"px)",...n1(D.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ie,top:j}},[l,f,D.floating,g.x,g.y]);return S.useMemo(()=>({...g,update:se,refs:Z,elements:D,floatingStyles:X}),[g,se,Z,D,X])}const m_=e=>{function r(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:e,fn(l){const{element:i,padding:o}=typeof e=="function"?e(l):e;return i&&r(i)?i.current!=null?cb({element:i.current,padding:o}).fn(l):{}:i?cb({element:i,padding:o}).fn(l):{}}}},p_=(e,r)=>{const l=l_(e);return{name:l.name,fn:l.fn,options:[e,r]}},g_=(e,r)=>{const l=i_(e);return{name:l.name,fn:l.fn,options:[e,r]}},y_=(e,r)=>({fn:u_(e).fn,options:[e,r]}),x_=(e,r)=>{const l=a_(e);return{name:l.name,fn:l.fn,options:[e,r]}},b_=(e,r)=>{const l=o_(e);return{name:l.name,fn:l.fn,options:[e,r]}},v_=(e,r)=>{const l=s_(e);return{name:l.name,fn:l.fn,options:[e,r]}},w_=(e,r)=>{const l=m_(e);return{name:l.name,fn:l.fn,options:[e,r]}};var S_="Arrow",r1=S.forwardRef((e,r)=>{const{children:l,width:i=10,height:o=5,...u}=e;return x.jsx(_t.svg,{...u,ref:r,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?l:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});r1.displayName=S_;var k_=r1;function C_(e){const[r,l]=S.useState(void 0);return Zr(()=>{if(e){l({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let c,f;if("borderBoxSize"in u){const d=u.borderBoxSize,m=Array.isArray(d)?d[0]:d;c=m.inlineSize,f=m.blockSize}else c=e.offsetWidth,f=e.offsetHeight;l({width:c,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else l(void 0)},[e]),r}var Gh="Popper",[l1,ju]=xu(Gh),[E_,i1]=l1(Gh),a1=e=>{const{__scopePopper:r,children:l}=e,[i,o]=S.useState(null);return x.jsx(E_,{scope:r,anchor:i,onAnchorChange:o,children:l})};a1.displayName=Gh;var o1="PopperAnchor",s1=S.forwardRef((e,r)=>{const{__scopePopper:l,virtualRef:i,...o}=e,u=i1(o1,l),c=S.useRef(null),f=an(r,c),d=S.useRef(null);return S.useEffect(()=>{const m=d.current;d.current=(i==null?void 0:i.current)||c.current,m!==d.current&&u.onAnchorChange(d.current)}),i?null:x.jsx(_t.div,{...o,ref:f})});s1.displayName=o1;var Yh="PopperContent",[N_,A_]=l1(Yh),u1=S.forwardRef((e,r)=>{var Ce,Ue,ve,at,dt,At;const{__scopePopper:l,side:i="bottom",sideOffset:o=0,align:u="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:k,...C}=e,A=i1(Yh,l),[N,O]=S.useState(null),_=an(r,wt=>O(wt)),[U,F]=S.useState(null),z=C_(U),B=(z==null?void 0:z.width)??0,$=(z==null?void 0:z.height)??0,ae=i+(u!=="center"?"-"+u:""),P=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},re=Array.isArray(m)?m:[m],le=re.length>0,se={padding:P,boundary:re.filter(T_),altBoundary:le},{refs:J,floatingStyles:Z,placement:D,isPositioned:X,middlewareData:ne}=h_({strategy:"fixed",placement:ae,whileElementsMounted:(...wt)=>r_(...wt,{animationFrame:v==="always"}),elements:{reference:A.anchor},middleware:[p_({mainAxis:o+$,alignmentAxis:c}),d&&g_({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?y_():void 0,...se}),d&&x_({...se}),b_({...se,apply:({elements:wt,rects:ht,availableWidth:jn,availableHeight:Tn})=>{const{width:xr,height:br}=ht.reference,$t=wt.floating.style;$t.setProperty("--radix-popper-available-width",`${jn}px`),$t.setProperty("--radix-popper-available-height",`${Tn}px`),$t.setProperty("--radix-popper-anchor-width",`${xr}px`),$t.setProperty("--radix-popper-anchor-height",`${br}px`)}}),U&&w_({element:U,padding:f}),__({arrowWidth:B,arrowHeight:$}),b&&v_({strategy:"referenceHidden",...se})]}),[ie,j]=d1(D),R=Ri(k);Zr(()=>{X&&(R==null||R())},[X,R]);const G=(Ce=ne.arrow)==null?void 0:Ce.x,T=(Ue=ne.arrow)==null?void 0:Ue.y,ue=((ve=ne.arrow)==null?void 0:ve.centerOffset)!==0,[de,ce]=S.useState();return Zr(()=>{N&&ce(window.getComputedStyle(N).zIndex)},[N]),x.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:X?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(at=ne.transformOrigin)==null?void 0:at.x,(dt=ne.transformOrigin)==null?void 0:dt.y].join(" "),...((At=ne.hide)==null?void 0:At.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(N_,{scope:l,placedSide:ie,onArrowChange:F,arrowX:G,arrowY:T,shouldHideArrow:ue,children:x.jsx(_t.div,{"data-side":ie,"data-align":j,...C,ref:_,style:{...C.style,animation:X?void 0:"none"}})})})});u1.displayName=Yh;var c1="PopperArrow",j_={top:"bottom",right:"left",bottom:"top",left:"right"},f1=S.forwardRef(function(r,l){const{__scopePopper:i,...o}=r,u=A_(c1,i),c=j_[u.placedSide];return x.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:x.jsx(k_,{...o,ref:l,style:{...o.style,display:"block"}})})});f1.displayName=c1;function T_(e){return e!==null}var __=e=>({name:"transformOrigin",options:e,fn(r){var A,N,O;const{placement:l,rects:i,middlewareData:o}=r,c=((A=o.arrow)==null?void 0:A.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[m,g]=d1(l),y={start:"0%",center:"50%",end:"100%"}[g],b=(((N=o.arrow)==null?void 0:N.x)??0)+f/2,v=(((O=o.arrow)==null?void 0:O.y)??0)+d/2;let k="",C="";return m==="bottom"?(k=c?y:`${b}px`,C=`${-d}px`):m==="top"?(k=c?y:`${b}px`,C=`${i.floating.height+d}px`):m==="right"?(k=`${-d}px`,C=c?y:`${v}px`):m==="left"&&(k=`${i.floating.width+d}px`,C=c?y:`${v}px`),{data:{x:k,y:C}}}});function d1(e){const[r,l="center"]=e.split("-");return[r,l]}var h1=a1,$h=s1,m1=u1,p1=f1,R_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),M_="VisuallyHidden",g1=S.forwardRef((e,r)=>x.jsx(_t.span,{...e,ref:r,style:{...R_,...e.style}}));g1.displayName=M_;var O_=g1,[Tu]=xu("Tooltip",[ju]),_u=ju(),y1="TooltipProvider",z_=700,Wd="tooltip.open",[D_,Xh]=Tu(y1),x1=e=>{const{__scopeTooltip:r,delayDuration:l=z_,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:u}=e,c=S.useRef(!0),f=S.useRef(!1),d=S.useRef(0);return S.useEffect(()=>{const m=d.current;return()=>window.clearTimeout(m)},[]),x.jsx(D_,{scope:r,isOpenDelayedRef:c,delayDuration:l,onOpen:S.useCallback(()=>{window.clearTimeout(d.current),c.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:S.useCallback(m=>{f.current=m},[]),disableHoverableContent:o,children:u})};x1.displayName=y1;var to="Tooltip",[L_,co]=Tu(to),b1=e=>{const{__scopeTooltip:r,children:l,open:i,defaultOpen:o,onOpenChange:u,disableHoverableContent:c,delayDuration:f}=e,d=Xh(to,e.__scopeTooltip),m=_u(r),[g,y]=S.useState(null),b=Xa(),v=S.useRef(0),k=c??d.disableHoverableContent,C=f??d.delayDuration,A=S.useRef(!1),[N,O]=Nh({prop:i,defaultProp:o??!1,onChange:B=>{B?(d.onOpen(),document.dispatchEvent(new CustomEvent(Wd))):d.onClose(),u==null||u(B)},caller:to}),_=S.useMemo(()=>N?A.current?"delayed-open":"instant-open":"closed",[N]),U=S.useCallback(()=>{window.clearTimeout(v.current),v.current=0,A.current=!1,O(!0)},[O]),F=S.useCallback(()=>{window.clearTimeout(v.current),v.current=0,O(!1)},[O]),z=S.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{A.current=!0,O(!0),v.current=0},C)},[C,O]);return S.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),x.jsx(h1,{...m,children:x.jsx(L_,{scope:r,contentId:b,open:N,stateAttribute:_,trigger:g,onTriggerChange:y,onTriggerEnter:S.useCallback(()=>{d.isOpenDelayedRef.current?z():U()},[d.isOpenDelayedRef,z,U]),onTriggerLeave:S.useCallback(()=>{k?F():(window.clearTimeout(v.current),v.current=0)},[F,k]),onOpen:U,onClose:F,disableHoverableContent:k,children:l})})};b1.displayName=to;var eh="TooltipTrigger",v1=S.forwardRef((e,r)=>{const{__scopeTooltip:l,...i}=e,o=co(eh,l),u=Xh(eh,l),c=_u(l),f=S.useRef(null),d=an(r,f,o.onTriggerChange),m=S.useRef(!1),g=S.useRef(!1),y=S.useCallback(()=>m.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),x.jsx($h,{asChild:!0,...c,children:x.jsx(_t.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:d,onPointerMove:yt(e.onPointerMove,b=>{b.pointerType!=="touch"&&!g.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:yt(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:yt(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:yt(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:yt(e.onBlur,o.onClose),onClick:yt(e.onClick,o.onClose)})})});v1.displayName=eh;var Qh="TooltipPortal",[B_,U_]=Tu(Qh,{forceMount:void 0}),w1=e=>{const{__scopeTooltip:r,forceMount:l,children:i,container:o}=e,u=co(Qh,r);return x.jsx(B_,{scope:r,forceMount:l,children:x.jsx(nl,{present:l||u.open,children:x.jsx(vu,{asChild:!0,container:o,children:i})})})};w1.displayName=Qh;var Oi="TooltipContent",S1=S.forwardRef((e,r)=>{const l=U_(Oi,e.__scopeTooltip),{forceMount:i=l.forceMount,side:o="top",...u}=e,c=co(Oi,e.__scopeTooltip);return x.jsx(nl,{present:i||c.open,children:c.disableHoverableContent?x.jsx(k1,{side:o,...u,ref:r}):x.jsx(H_,{side:o,...u,ref:r})})}),H_=S.forwardRef((e,r)=>{const l=co(Oi,e.__scopeTooltip),i=Xh(Oi,e.__scopeTooltip),o=S.useRef(null),u=an(r,o),[c,f]=S.useState(null),{trigger:d,onClose:m}=l,g=o.current,{onPointerInTransitChange:y}=i,b=S.useCallback(()=>{f(null),y(!1)},[y]),v=S.useCallback((k,C)=>{const A=k.currentTarget,N={x:k.clientX,y:k.clientY},O=I_(N,A.getBoundingClientRect()),_=G_(N,O),U=Y_(C.getBoundingClientRect()),F=X_([..._,...U]);f(F),y(!0)},[y]);return S.useEffect(()=>()=>b(),[b]),S.useEffect(()=>{if(d&&g){const k=A=>v(A,g),C=A=>v(A,d);return d.addEventListener("pointerleave",k),g.addEventListener("pointerleave",C),()=>{d.removeEventListener("pointerleave",k),g.removeEventListener("pointerleave",C)}}},[d,g,v,b]),S.useEffect(()=>{if(c){const k=C=>{const A=C.target,N={x:C.clientX,y:C.clientY},O=(d==null?void 0:d.contains(A))||(g==null?void 0:g.contains(A)),_=!$_(N,c);O?b():_&&(b(),m())};return document.addEventListener("pointermove",k),()=>document.removeEventListener("pointermove",k)}},[d,g,c,m,b]),x.jsx(k1,{...e,ref:u})}),[P_,q_]=Tu(to,{isInside:!1}),F_=mN("TooltipContent"),k1=S.forwardRef((e,r)=>{const{__scopeTooltip:l,children:i,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:c,...f}=e,d=co(Oi,l),m=_u(l),{onClose:g}=d;return S.useEffect(()=>(document.addEventListener(Wd,g),()=>document.removeEventListener(Wd,g)),[g]),S.useEffect(()=>{if(d.trigger){const y=b=>{const v=b.target;v!=null&&v.contains(d.trigger)&&g()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[d.trigger,g]),x.jsx(bu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:g,children:x.jsxs(m1,{"data-state":d.stateAttribute,...m,...f,ref:r,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(F_,{children:i}),x.jsx(P_,{scope:l,isInside:!0,children:x.jsx(O_,{id:d.contentId,role:"tooltip",children:o||i})})]})})});S1.displayName=Oi;var C1="TooltipArrow",V_=S.forwardRef((e,r)=>{const{__scopeTooltip:l,...i}=e,o=_u(l);return q_(C1,l).isInside?null:x.jsx(p1,{...o,...i,ref:r})});V_.displayName=C1;function I_(e,r){const l=Math.abs(r.top-e.y),i=Math.abs(r.bottom-e.y),o=Math.abs(r.right-e.x),u=Math.abs(r.left-e.x);switch(Math.min(l,i,o,u)){case u:return"left";case o:return"right";case l:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function G_(e,r,l=5){const i=[];switch(r){case"top":i.push({x:e.x-l,y:e.y+l},{x:e.x+l,y:e.y+l});break;case"bottom":i.push({x:e.x-l,y:e.y-l},{x:e.x+l,y:e.y-l});break;case"left":i.push({x:e.x+l,y:e.y-l},{x:e.x+l,y:e.y+l});break;case"right":i.push({x:e.x-l,y:e.y-l},{x:e.x-l,y:e.y+l});break}return i}function Y_(e){const{top:r,right:l,bottom:i,left:o}=e;return[{x:o,y:r},{x:l,y:r},{x:l,y:i},{x:o,y:i}]}function $_(e,r){const{x:l,y:i}=e;let o=!1;for(let u=0,c=r.length-1;u<r.length;c=u++){const f=r[u],d=r[c],m=f.x,g=f.y,y=d.x,b=d.y;g>i!=b>i&&l<(y-m)*(i-g)/(b-g)+m&&(o=!o)}return o}function X_(e){const r=e.slice();return r.sort((l,i)=>l.x<i.x?-1:l.x>i.x?1:l.y<i.y?-1:l.y>i.y?1:0),Q_(r)}function Q_(e){if(e.length<=1)return e.slice();const r=[];for(let i=0;i<e.length;i++){const o=e[i];for(;r.length>=2;){const u=r[r.length-1],c=r[r.length-2];if((u.x-c.x)*(o.y-c.y)>=(u.y-c.y)*(o.x-c.x))r.pop();else break}r.push(o)}r.pop();const l=[];for(let i=e.length-1;i>=0;i--){const o=e[i];for(;l.length>=2;){const u=l[l.length-1],c=l[l.length-2];if((u.x-c.x)*(o.y-c.y)>=(u.y-c.y)*(o.x-c.x))l.pop();else break}l.push(o)}return l.pop(),r.length===1&&l.length===1&&r[0].x===l[0].x&&r[0].y===l[0].y?r:r.concat(l)}var Z_=x1,K_=b1,J_=v1,W_=w1,E1=S1;const eR=Z_,ou=K_,su=J_,no=S.forwardRef(({className:e,sideOffset:r=4,...l},i)=>x.jsx(W_,{children:x.jsx(E1,{ref:i,sideOffset:r,className:xe("z-50 overflow-hidden rounded-md bg-card text-card-foreground border border-border px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...l})}));no.displayName=E1.displayName;const zt="Kanna",db="kanna",tR="[kanna]",nR=`~/${zt}`;function qs(e){return e?`${db} ${e}`:db}const rR={sm:"text-sm px-2.5 py-1",md:"text-sm px-3 py-1.5"};function lR({value:e,onValueChange:r,options:l,size:i="md",className:o,optionClassName:u}){return x.jsx("div",{className:xe("inline-flex items-center rounded-full border border-border p-0.5 ",o),children:l.map(c=>{const f=c.value===e,d=c.icon,m=d?S.isValidElement(d)?d:(()=>{const y=d;return x.jsx(y,{className:i==="sm"?"h-3.5 w-3.5":"h-4 w-4"})})():null,g=x.jsxs("button",{type:"button",onClick:()=>r(c.value),disabled:c.disabled,"aria-pressed":f,className:xe("rounded-full border transition-colors",d?"grid grid-cols-[auto_auto] items-center gap-2":"inline-flex items-center gap-1.5",rR[i],f?"bg-white dark:bg-muted text-slate-900 dark:text-slate-200 border-slate-300 dark:border-white/10 bg-slate-200 ":"border-transparent text-slate-800 hover:text-slate-900 dark:text-muted-foreground dark:hover:text-foreground",c.disabled&&"opacity-50 pointer-events-none",u),children:[m,x.jsx("span",{children:c.label})]},c.value);return c.tooltip?x.jsxs(ou,{children:[x.jsx(su,{asChild:!0,children:g}),x.jsx(no,{children:c.tooltip})]},c.value):g})})}function iR(e){return e.toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}function N1({open:e,onOpenChange:r,onConfirm:l}){const[i,o]=S.useState("new"),[u,c]=S.useState(""),[f,d]=S.useState(""),m=S.useRef(null),g=S.useRef(null);S.useEffect(()=>{e&&(o("new"),c(""),d(""),setTimeout(()=>{var A;return(A=m.current)==null?void 0:A.focus()},0))},[e]),S.useEffect(()=>{e&&setTimeout(()=>{var A,N;i==="new"?(A=m.current)==null||A.focus():(N=g.current)==null||N.focus()},0)},[i,e]);const y=iR(u),b=y?`${nR}/${y}`:"",v=f.trim(),k=i==="new"?!!y:!!v,C=()=>{if(k){if(i==="new")l({mode:"new",localPath:b,title:u.trim()});else{const A=v.split("/").pop()||v;l({mode:"existing",localPath:v,title:A})}r(!1)}};return x.jsx(P0,{open:e,onOpenChange:r,children:x.jsxs(Uh,{size:"sm",children:[x.jsxs(V0,{className:"space-y-4",children:[x.jsx(F0,{children:"Add Project"}),x.jsx(lR,{value:i,onValueChange:o,options:[{value:"new",label:"New Folder"},{value:"existing",label:"Existing Path"}],className:"w-full",optionClassName:"flex-1 justify-center"}),i==="new"?x.jsxs("div",{className:"space-y-2",children:[x.jsx("input",{ref:m,type:"text",value:u,onChange:A=>c(A.target.value),onKeyDown:A=>{A.key==="Enter"&&C(),A.key==="Escape"&&r(!1)},className:"w-full px-3 py-2 text-sm border border-border rounded-md bg-background outline-none",placeholder:"Project name"}),b&&x.jsx("p",{className:"text-xs text-muted-foreground font-mono",children:b})]}):x.jsxs("div",{className:"space-y-2",children:[x.jsx("input",{ref:g,type:"text",value:f,onChange:A=>d(A.target.value),onKeyDown:A=>{A.key==="Enter"&&C(),A.key==="Escape"&&r(!1)},className:"w-full px-3 py-2 text-sm border border-border rounded-md bg-background outline-none",placeholder:"~/Projects/my-app"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:"The folder will be created if it doesn't exist."})]})]}),x.jsxs(I0,{children:[x.jsx(qe,{variant:"ghost",size:"sm",onClick:()=>r(!1),children:"Cancel"}),x.jsx(qe,{variant:"secondary",size:"sm",onClick:C,disabled:!k,children:"Create"})]})]})})}const Ru=({children:e,className:r,shimmerWidth:l=100,animate:i=!0,...o})=>x.jsx("span",{style:{"--shiny-width":`${Math.min(l,100)}px`},className:xe("mx-auto max-w-md text-foreground/50",i?["animate-shiny-text [background-size:var(--shiny-width)_100%] bg-clip-text [background-position:0_0] bg-no-repeat [transition:background-position_1s_cubic-bezier(.6,.6,0,1)_infinite]","bg-gradient-to-r from-transparent via-black/80 via-50% to-transparent dark:via-white/80"]:["text-neutral"],r),...o,children:e}),aR=new Set(["starting","running"]);function oR({chat:e,activeChatId:r,onSelectChat:l,onDeleteChat:i}){return x.jsxs("div",{"data-chat-id":Bx(e.chatId),className:xe("group flex items-center gap-2 pl-2.5 pr-0.5 py-0.5 rounded-md cursor-pointer border-border/0 hover:border-border hover:bg-muted active:bg-muted border transition-colors",r===Bx(e.chatId)?"bg-muted border-border":"border-border/0 dark:hover:border-slate-400/10 "),onClick:()=>l(e.chatId),children:[aR.has(e.status)?x.jsx(zl,{className:"size-3.5 flex-shrink-0 animate-spin text-muted-foreground"}):e.status==="waiting_for_user"?x.jsx("div",{className:"relative ",children:x.jsxs("div",{className:" rounded-full z-0 size-3.5 flex items-center justify-center ",children:[x.jsx("div",{className:"absolute rounded-full z-0 size-2.5 bg-blue-400/80 animate-ping"}),x.jsx("div",{className:" rounded-full z-0 size-2.5 bg-blue-400 ring-2 ring-muted/20 dark:ring-muted/50"})]})}):null,x.jsx("span",{className:"text-sm truncate flex-1 translate-y-[-0.5px]",children:e.status!=="idle"&&e.status!=="waiting_for_user"?x.jsx(Ru,{animate:e.status==="running",shimmerWidth:Math.max(20,e.title.length*3),children:e.title}):e.title}),x.jsx(qe,{variant:"ghost",size:"icon",className:"h-7 w-7 opacity-100 md:opacity-0 md:group-hover:opacity-100 cursor-pointer rounded-sm hover:!bg-transparent",onClick:o=>{o.stopPropagation(),i(e.chatId)},title:"Delete chat",children:x.jsx(so,{className:"size-3.5"})})]},e._id)}function jl(e){return e.split(/[\s_-]+/).filter(Boolean).map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join(" ")}function A1(e){return e.split("/").pop()||e}var Mu="Popover",[j1]=xu(Mu,[ju]),fo=ju(),[sR,rl]=j1(Mu),T1=e=>{const{__scopePopover:r,children:l,open:i,defaultOpen:o,onOpenChange:u,modal:c=!1}=e,f=fo(r),d=S.useRef(null),[m,g]=S.useState(!1),[y,b]=Nh({prop:i,defaultProp:o??!1,onChange:u,caller:Mu});return x.jsx(h1,{...f,children:x.jsx(sR,{scope:r,contentId:Xa(),triggerRef:d,open:y,onOpenChange:b,onOpenToggle:S.useCallback(()=>b(v=>!v),[b]),hasCustomAnchor:m,onCustomAnchorAdd:S.useCallback(()=>g(!0),[]),onCustomAnchorRemove:S.useCallback(()=>g(!1),[]),modal:c,children:l})})};T1.displayName=Mu;var _1="PopoverAnchor",uR=S.forwardRef((e,r)=>{const{__scopePopover:l,...i}=e,o=rl(_1,l),u=fo(l),{onCustomAnchorAdd:c,onCustomAnchorRemove:f}=o;return S.useEffect(()=>(c(),()=>f()),[c,f]),x.jsx($h,{...u,...i,ref:r})});uR.displayName=_1;var R1="PopoverTrigger",M1=S.forwardRef((e,r)=>{const{__scopePopover:l,...i}=e,o=rl(R1,l),u=fo(l),c=an(r,o.triggerRef),f=x.jsx(_t.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":B1(o.open),...i,ref:c,onClick:yt(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?f:x.jsx($h,{asChild:!0,...u,children:f})});M1.displayName=R1;var Zh="PopoverPortal",[cR,fR]=j1(Zh,{forceMount:void 0}),O1=e=>{const{__scopePopover:r,forceMount:l,children:i,container:o}=e,u=rl(Zh,r);return x.jsx(cR,{scope:r,forceMount:l,children:x.jsx(nl,{present:l||u.open,children:x.jsx(vu,{asChild:!0,container:o,children:i})})})};O1.displayName=Zh;var zi="PopoverContent",z1=S.forwardRef((e,r)=>{const l=fR(zi,e.__scopePopover),{forceMount:i=l.forceMount,...o}=e,u=rl(zi,e.__scopePopover);return x.jsx(nl,{present:i||u.open,children:u.modal?x.jsx(hR,{...o,ref:r}):x.jsx(mR,{...o,ref:r})})});z1.displayName=zi;var dR=Ah("PopoverContent.RemoveScroll"),hR=S.forwardRef((e,r)=>{const l=rl(zi,e.__scopePopover),i=S.useRef(null),o=an(r,i),u=S.useRef(!1);return S.useEffect(()=>{const c=i.current;if(c)return d0(c)},[]),x.jsx(Th,{as:dR,allowPinchZoom:!0,children:x.jsx(D1,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:yt(e.onCloseAutoFocus,c=>{var f;c.preventDefault(),u.current||(f=l.triggerRef.current)==null||f.focus()}),onPointerDownOutside:yt(e.onPointerDownOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,m=f.button===2||d;u.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:yt(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),mR=S.forwardRef((e,r)=>{const l=rl(zi,e.__scopePopover),i=S.useRef(!1),o=S.useRef(!1);return x.jsx(D1,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var c,f;(c=e.onCloseAutoFocus)==null||c.call(e,u),u.defaultPrevented||(i.current||(f=l.triggerRef.current)==null||f.focus(),u.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:u=>{var d,m;(d=e.onInteractOutside)==null||d.call(e,u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=u.target;((m=l.triggerRef.current)==null?void 0:m.contains(c))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),D1=S.forwardRef((e,r)=>{const{__scopePopover:l,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onInteractOutside:g,...y}=e,b=rl(zi,l),v=fo(l);return r0(),x.jsx(jh,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:u,children:x.jsx(bu,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onDismiss:()=>b.onOpenChange(!1),children:x.jsx(m1,{"data-state":B1(b.open),role:"dialog",id:b.contentId,...v,...y,ref:r,style:{...y.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),L1="PopoverClose",pR=S.forwardRef((e,r)=>{const{__scopePopover:l,...i}=e,o=rl(L1,l);return x.jsx(_t.button,{type:"button",...i,ref:r,onClick:yt(e.onClick,()=>o.onOpenChange(!1))})});pR.displayName=L1;var gR="PopoverArrow",yR=S.forwardRef((e,r)=>{const{__scopePopover:l,...i}=e,o=fo(l);return x.jsx(p1,{...o,...i,ref:r})});yR.displayName=gR;function B1(e){return e?"open":"closed"}var xR=T1,bR=M1,vR=O1,U1=z1;const H1=xR,P1=bR,Kh=S.forwardRef(({className:e,align:r="center",sideOffset:l=4,...i},o)=>x.jsx(vR,{children:x.jsx(U1,{ref:o,align:r,sideOffset:l,className:xe("z-50 w-72 rounded-xl border border-border bg-background p-4 shadow-lg outline-hidden animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...i})}));Kh.displayName=U1.displayName;function wR({onRemove:e}){const[r,l]=S.useState(!1);return x.jsxs(H1,{open:r,onOpenChange:l,children:[x.jsx(P1,{asChild:!0,children:x.jsx(qe,{variant:"ghost",size:"icon",className:"h-5.5 w-5.5 absolute right-6 !rounded opacity-100 md:opacity-0 md:group-hover/section:opacity-100",onClick:i=>i.stopPropagation(),children:x.jsx(Nj,{className:"h-4 w-4 text-slate-500 dark:text-slate-400"})})}),x.jsx(Kh,{align:"end",className:"p-1 w-auto min-w-[170px]",children:x.jsxs("button",{onClick:i=>{i.stopPropagation(),l(!1),e()},className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-left transition-colors text-destructive dark:text-red-400 hover:bg-destructive/10 dark:hover:bg-red-500/20",children:[x.jsx(uT,{className:"h-4 w-4"}),x.jsx("span",{className:"text-xs font-medium",children:"Remove Project"})]})})]})}function SR({projectGroups:e,collapsedSections:r,expandedGroups:l,onToggleSection:i,onToggleExpandedGroup:o,renderChatRow:u,chatsPerProject:c,onNewLocalChat:f,onRemoveProject:d,isConnected:m,startingLocalPath:g}){return x.jsx(x.Fragment,{children:e.map(({groupKey:y,localPath:b,chats:v})=>{const k=l.has(y),C=k?v:v.slice(0,c),A=v.length>c;return x.jsxs("div",{className:"group/section",children:[x.jsxs("div",{className:"sticky top-0 bg-background dark:bg-card z-10 relative pl-2.5 pr-3 py-2 pt-3 cursor-pointer flex items-center justify-between",onClick:()=>i(y),children:[x.jsxs("div",{className:"flex items-center gap-2",children:[r.has(y)?x.jsx(O0,{className:"translate-y-[1px] size-3.5 shrink-0 text-slate-400 dark:text-slate-500"}):x.jsx(M0,{className:"translate-y-[1px] size-3.5 shrink-0 text-slate-400 dark:text-slate-500"}),x.jsxs(ou,{children:[x.jsx(su,{asChild:!0,children:x.jsx("span",{className:"truncate max-w-[150px] whitespace-nowrap text-sm text-slate-500 dark:text-slate-400",children:A1(b)})}),x.jsx(no,{side:"right",sideOffset:4,children:b})]}),x.jsx(Kr,{className:xe("size-3.5 translate-y-[1px] text-slate-400 transition-all duration-200",r.has(y)?"opacity-100":"rotate-90 opacity-0 group-hover/section:opacity-100")})]}),d?x.jsx(wR,{onRemove:()=>d(y)}):null,f&&x.jsxs(ou,{children:[x.jsx(su,{asChild:!0,children:x.jsx(qe,{variant:"ghost",size:"icon",className:xe("h-5.5 w-5.5 absolute right-0 !rounded opacity-100 md:opacity-0 md:group-hover/section:opacity-100",(!m||g===b)&&"opacity-50 cursor-not-allowed"),disabled:!m||g===b,onClick:N=>{N.stopPropagation(),f(b)},children:g===b?x.jsx(zl,{className:"size-4 text-slate-500 dark:text-slate-400 animate-spin"}):x.jsx(Dh,{className:"size-3.5 text-slate-500 dark:text-slate-400"})})}),x.jsx(no,{side:"right",sideOffset:4,children:m?"New chat":`Start ${zt} to connect`})]})]}),!r.has(y)&&x.jsxs("div",{className:"space-y-[2px] mb-2 ",children:[C.map(u),A&&x.jsx("button",{onClick:()=>o(y),className:"pl-3 py-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:k?"Show less":`Show more (${v.length-c})`})]})]},y)})})}function kR({data:e,activeChatId:r,connectionStatus:l,ready:i,open:o,collapsed:u,showMobileOpenButton:c,onOpen:f,onClose:d,onCollapse:m,onExpand:g,onCreateChat:y,onCreateProject:b,onDeleteChat:v,onRemoveProject:k}){const C=Fn(),A=xh(),N=S.useRef(null),[O,_]=S.useState(new Set),[U,F]=S.useState(new Set),[z,B]=S.useState(!1),$=10,ae=S.useMemo(()=>new Map(e.projectGroups.map(ie=>[ie.localPath,ie.groupKey])),[e.projectGroups]),P=S.useMemo(()=>e.projectGroups.reduce((ie,j)=>ie+j.chats.length,0),[e.projectGroups]),re=S.useCallback(ie=>{_(j=>{const R=new Set(j);return R.has(ie)?R.delete(ie):R.add(ie),R})},[]),le=S.useCallback(ie=>{F(j=>{const R=new Set(j);return R.has(ie)?R.delete(ie):R.add(ie),R})},[]),se=S.useCallback(ie=>x.jsx(oR,{chat:ie,activeChatId:r,onSelectChat:j=>A(`/chat/${j}`),onDeleteChat:()=>v(ie)},ie._id),[r,A,v]);S.useEffect(()=>{!r||!N.current||requestAnimationFrame(()=>{const ie=N.current,j=ie==null?void 0:ie.querySelector(`[data-chat-id="${r}"]`);if(!j||!ie)return;const R=j.getBoundingClientRect(),G=ie.getBoundingClientRect();if(R.top<G.top+38){const T=R.top-G.top+ie.scrollTop;ie.scrollTo({top:T-38,behavior:"smooth"})}else if(R.bottom>G.bottom){const T=R.top+R.height/2-G.top+ie.scrollTop,ue=ie.clientHeight/2;ie.scrollTo({top:T-ue,behavior:"smooth"})}})},[r,P]);const J=P>0,Z=C.pathname==="/projects",D=l==="connecting"||!i,X=D?"Connecting":l==="connected"?"Connected":"Disconnected",ne=l==="connected"?"bg-emerald-500":"bg-amber-500";return x.jsxs(x.Fragment,{children:[!o&&c&&x.jsx(qe,{variant:"ghost",size:"icon",className:"fixed top-3 left-3 z-50 md:hidden",onClick:f,children:x.jsx(z0,{className:"h-5 w-5"})}),u&&Z&&x.jsx("div",{className:"hidden md:flex fixed left-0 top-0 h-full z-40 items-start pt-4 pl-5 border-l border-border/0",children:x.jsxs("div",{className:"flex items-center gap-1",children:[x.jsx(Qa,{className:"size-6 text-logo"}),x.jsx(qe,{variant:"ghost",size:"icon",onClick:g,title:"Expand sidebar",children:x.jsx(Qd,{className:"h-5 w-5"})})]})}),x.jsxs("div",{"data-sidebar":"open",className:xe("fixed inset-0 z-50 bg-background dark:bg-card flex flex-col h-[100dvh] select-none","md:relative md:inset-auto md:w-[275px] md:mr-2 md:h-[calc(100dvh-16px)] md:my-2 md:ml-2 md:border md:border-border md:rounded-2xl",o?"flex":"hidden md:flex",u&&"md:hidden"),children:[x.jsxs("div",{className:" pl-3 pr-[7px] h-[64px] max-h-[64px] md:h-[55px] md:max-h-[55px] border-b flex items-center justify-between",children:[x.jsxs("div",{className:"group/sidebar-header flex items-center gap-2",children:[x.jsxs("button",{type:"button",onClick:m,title:"Collapse sidebar",className:"hidden md:flex relative items-center justify-center h-5 w-5 sm:h-6 sm:w-6",children:[x.jsx(Qa,{className:"absolute inset-0.5 h-4 w-4 sm:h-5 sm:w-5 text-logo transition-all duration-200 ease-out opacity-100 scale-100 group-hover/sidebar-header:opacity-0 group-hover/sidebar-header:scale-0"}),x.jsx(Qd,{className:"absolute inset-0 h-4 w-4 sm:h-6 sm:w-6 text-slate-500 dark:text-slate-400 transition-all duration-200 ease-out opacity-0 scale-0 group-hover/sidebar-header:opacity-100 group-hover/sidebar-header:scale-80 hover:opacity-50"})]}),x.jsx(Qa,{className:"h-5 w-5 sm:h-6 sm:w-6 text-logo md:hidden"}),x.jsx("span",{className:"font-logo text-base uppercase sm:text-md text-slate-600 dark:text-slate-100",children:zt})]}),x.jsxs("div",{className:"flex items-center",children:[x.jsx(qe,{variant:"ghost",size:"icon",onClick:()=>B(!0),title:"New project",children:x.jsx(U0,{className:"size-4"})}),x.jsx(qe,{variant:"ghost",size:"icon",className:"md:hidden",onClick:d,children:x.jsx(so,{className:"h-5 w-5"})})]})]}),x.jsx("div",{ref:N,className:"flex-1 min-h-0 overflow-y-auto scrollbar-hide",style:{WebkitOverflowScrolling:"touch"},children:x.jsxs("div",{className:"pb-2 px-2 pt-1.5",children:[!J&&D?x.jsx("div",{className:"space-y-5 px-1 pt-3",children:[0,1,2].map(ie=>x.jsxs("div",{className:"space-y-2 animate-pulse",children:[x.jsx("div",{className:"h-4 w-28 rounded bg-muted"}),x.jsx("div",{className:"space-y-1",children:[0,1,2].map(j=>x.jsxs("div",{className:"flex items-center gap-2 rounded-md px-3 py-2",children:[x.jsx("div",{className:"h-3.5 w-3.5 rounded-full bg-muted"}),x.jsx("div",{className:xe("h-3.5 rounded bg-muted",j===0?"w-32":j===1?"w-40":"w-28")})]},j))})]},ie))}):null,!J&&!D&&e.projectGroups.length===0?x.jsx("p",{className:"text-sm text-slate-400 p-2 mt-6 text-center",children:"No conversations yet"}):null,x.jsx(SR,{projectGroups:e.projectGroups,collapsedSections:O,expandedGroups:U,onToggleSection:re,onToggleExpandedGroup:le,renderChatRow:se,chatsPerProject:$,onNewLocalChat:ie=>{const j=ae.get(ie);j&&y(j)},onRemoveProject:k,isConnected:l==="connected"})]})}),x.jsx("div",{className:"border-t border-border p-2",children:x.jsx("button",{type:"button",onClick:()=>{A("/projects"),d()},className:xe("w-full rounded-xl rounded-t-md border px-3 py-2 text-left transition-colors",Z?"bg-muted border-border":"border-border/0 hover:bg-muted hover:border-border active:bg-muted/80"),children:x.jsxs("div",{className:"flex items- justify-between gap-2",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(Oh,{className:"h-4 w-4 text-muted-foreground"}),x.jsx("span",{className:"text-sm",children:"Projects"})]}),x.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[x.jsx("span",{children:X}),D?x.jsx(zl,{className:"h-2 w-2 animate-spin"}):x.jsx("span",{className:xe("h-2 w-2 rounded-full",ne)})]})]})})})]}),x.jsx(N1,{open:z,onOpenChange:B,onConfirm:b}),o?x.jsx("div",{className:"fixed inset-0 bg-black/40 z-40 md:hidden",onClick:d}):null]})}const q1=S.forwardRef(({className:e,...r},l)=>x.jsx("textarea",{"data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false","data-1p-ignore":!0,autoComplete:"off",className:xe("flex w-full rounded-lg border border-border bg-background px-2.5 py-2 text-sm placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),ref:l,...r}));q1.displayName="Textarea";function CR(){const[e,r]=S.useState(()=>{if(typeof window>"u")return!1;const l=navigator.standalone===!0,i=window.matchMedia("(display-mode: standalone)").matches;return l||i});return S.useEffect(()=>{const l=window.matchMedia("(display-mode: standalone)"),i=o=>{r(o.matches||navigator.standalone===!0)};return l.addEventListener("change",i),()=>l.removeEventListener("change",i)},[]),e}const hb=e=>{let r;const l=new Set,i=(m,g)=>{const y=typeof m=="function"?m(r):m;if(!Object.is(y,r)){const b=r;r=g??(typeof y!="object"||y===null)?y:Object.assign({},r,y),l.forEach(v=>v(r,b))}},o=()=>r,f={setState:i,getState:o,getInitialState:()=>d,subscribe:m=>(l.add(m),()=>l.delete(m))},d=r=e(i,o,f);return f},ER=(e=>e?hb(e):hb),NR=e=>e;function AR(e,r=NR){const l=Ya.useSyncExternalStore(e.subscribe,Ya.useCallback(()=>r(e.getState()),[e,r]),Ya.useCallback(()=>r(e.getInitialState()),[e,r]));return Ya.useDebugValue(l),l}const jR=e=>{const r=ER(e),l=i=>AR(r,i);return Object.assign(l,r),l},F1=(e=>jR);function TR(e,r){let l;try{l=e()}catch{return}return{getItem:o=>{var u;const c=d=>d===null?null:JSON.parse(d,void 0),f=(u=l.getItem(o))!=null?u:null;return f instanceof Promise?f.then(c):c(f)},setItem:(o,u)=>l.setItem(o,JSON.stringify(u,void 0)),removeItem:o=>l.removeItem(o)}}const th=e=>r=>{try{const l=e(r);return l instanceof Promise?l:{then(i){return th(i)(l)},catch(i){return this}}}catch(l){return{then(i){return this},catch(i){return th(i)(l)}}}},_R=(e,r)=>(l,i,o)=>{let u={storage:TR(()=>window.localStorage),partialize:A=>A,version:0,merge:(A,N)=>({...N,...A}),...r},c=!1,f=0;const d=new Set,m=new Set;let g=u.storage;if(!g)return e((...A)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),l(...A)},i,o);const y=()=>{const A=u.partialize({...i()});return g.setItem(u.name,{state:A,version:u.version})},b=o.setState;o.setState=(A,N)=>(b(A,N),y());const v=e((...A)=>(l(...A),y()),i,o);o.getInitialState=()=>v;let k;const C=()=>{var A,N;if(!g)return;const O=++f;c=!1,d.forEach(U=>{var F;return U((F=i())!=null?F:v)});const _=((N=u.onRehydrateStorage)==null?void 0:N.call(u,(A=i())!=null?A:v))||void 0;return th(g.getItem.bind(g))(u.name).then(U=>{if(U)if(typeof U.version=="number"&&U.version!==u.version){if(u.migrate){const F=u.migrate(U.state,U.version);return F instanceof Promise?F.then(z=>[!0,z]):[!0,F]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,U.state];return[!1,void 0]}).then(U=>{var F;if(O!==f)return;const[z,B]=U;if(k=u.merge(B,(F=i())!=null?F:v),l(k,!0),z)return y()}).then(()=>{O===f&&(_==null||_(k,void 0),k=i(),c=!0,m.forEach(U=>U(k)))}).catch(U=>{O===f&&(_==null||_(void 0,U))})};return o.persist={setOptions:A=>{u={...u,...A},A.storage&&(g=A.storage)},clearStorage:()=>{g==null||g.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>C(),hasHydrated:()=>c,onHydrate:A=>(d.add(A),()=>{d.delete(A)}),onFinishHydration:A=>(m.add(A),()=>{m.delete(A)})},u.skipHydration||C(),k||v},V1=_R,RR=F1()(V1((e,r)=>({drafts:{},setDraft:(l,i)=>e(o=>{if(!i){const{[l]:u,...c}=o.drafts;return{drafts:c}}return{drafts:{...o.drafts,[l]:i}}}),clearDraft:l=>e(i=>{const{[l]:o,...u}=i.drafts;return{drafts:u}}),getDraft:l=>r().drafts[l]??""}),{name:"chat-input-drafts"})),I1=F1()(V1(e=>({model:"opus",effort:"high",planMode:!1,setModel:r=>e(l=>r!=="opus"&&l.effort==="max"?{model:r,effort:"high"}:{model:r}),setEffort:r=>e({effort:r}),setPlanMode:r=>e({planMode:r})}),{name:"chat-preferences"}));function dr({onClick:e,selected:r,icon:l,label:i,description:o,disabled:u}){return x.jsxs("button",{onClick:e,disabled:u,className:xe("w-full flex items-center gap-2 p-2 border border-border/0 rounded-lg text-left transition-opacity",r?"bg-muted border-border":"hover:opacity-60",u&&"opacity-40 cursor-not-allowed"),children:[l,x.jsxs("div",{children:[x.jsx("div",{className:"text-sm font-medium",children:i}),x.jsx("div",{className:"text-xs text-muted-foreground",children:o})]})]})}function wd({trigger:e,triggerClassName:r,children:l}){return x.jsxs(H1,{children:[x.jsx(P1,{asChild:!0,children:x.jsx("button",{className:xe("flex items-center gap-1.5 px-2 py-1 text-sm rounded-md transition-colors text-muted-foreground [&>svg]:shrink-0","hover:bg-muted/50",r),children:e})}),x.jsx(Kh,{align:"center",className:"w-64 p-1",children:x.jsx("div",{className:"space-y-1",children:l})})]})}const MR={opus:zh,sonnet:H0,haiku:R0},OR={opus:"Opus",sonnet:"Sonnet",haiku:"Haiku"},zR={low:"Low",medium:"Medium",high:"High",max:"Max"},DR=S.memo(function({onSubmit:r,onCancel:l,disabled:i,canCancel:o,chatId:u}){const{getDraft:c,setDraft:f,clearDraft:d}=RR(),{model:m,effort:g,planMode:y,setModel:b,setEffort:v,setPlanMode:k}=I1(),[C,A]=S.useState(()=>u?c(u):""),N=S.useRef(null),O=CR(),_=S.useCallback(()=>{const B=N.current;B&&(B.style.height="auto",B.style.height=`${B.scrollHeight}px`)},[]);S.useEffect(()=>{_()},[C,_]),S.useEffect(()=>(window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_]),S.useEffect(()=>{var B;(B=N.current)==null||B.focus()},[u]);async function U(){if(!C.trim())return;const B=C;A(""),u&&d(u),N.current&&(N.current.style.height="auto");try{await r(B,{model:m,effort:g,planMode:y})}catch($){console.error("[ChatInput] Submit failed:",$),A(B),u&&f(u,B)}}function F(B){if(B.key==="Tab"&&B.shiftKey){B.preventDefault(),k(!y);return}if(B.key==="Escape"&&o){B.preventDefault(),l==null||l();return}const $="ontouchstart"in window||navigator.maxTouchPoints>0;B.key==="Enter"&&!B.shiftKey&&!o&&!$&&(B.preventDefault(),U())}const z=MR[m];return x.jsxs("div",{className:xe("p-3 pt-0 md:pb-2",O&&"px-5 pb-5"),children:[x.jsxs("div",{className:"flex items-end gap-2 max-w-[840px] mx-auto border dark:bg-card/40 backdrop-blur-lg border-border rounded-[29px] pr-1.5",children:[x.jsx(q1,{ref:N,placeholder:"Ask something...",value:C,autoFocus:!0,rows:1,onChange:B=>{A(B.target.value),u&&f(u,B.target.value),_()},onKeyDown:F,disabled:i,className:"flex-1 text-base p-3 md:p-4 pl-4.5 md:pl-6 resize-none max-h-[200px] outline-none bg-transparent border-0 shadow-none"}),x.jsx(qe,{type:"button",onPointerDown:B=>{B.preventDefault(),o?l==null||l():!i&&C.trim()&&U()},disabled:!o&&(i||!C.trim()),size:"icon",className:"flex-shrink-0 bg-slate-600 text-white dark:bg-white dark:text-slate-900 rounded-full cursor-pointer h-10 w-10 md:h-11 md:w-11 mb-1 -mr-0.5 md:mr-0 md:mb-1.5 touch-manipulation disabled:bg-white/60 disabled:text-slate-700",children:o?x.jsx("div",{className:"w-3 h-3 md:w-4 md:h-4 rounded-xs bg-current"}):x.jsx(KA,{className:"h-5 w-5 md:h-6 md:w-6"})})]}),x.jsxs("div",{className:"flex justify-center items-center gap-0.5 max-w-[840px] mx-auto mt-2 animate-fade-in",children:[x.jsxs(wd,{trigger:x.jsxs(x.Fragment,{children:[x.jsx(z,{className:"h-3.5 w-3.5"}),x.jsx("span",{children:OR[m]})]}),children:[x.jsx(dr,{onClick:()=>b("opus"),selected:m==="opus",icon:x.jsx(zh,{className:"h-4 w-4 text-muted-foreground"}),label:"Opus",description:"Highest capability, deep reasoning"}),x.jsx(dr,{onClick:()=>b("sonnet"),selected:m==="sonnet",icon:x.jsx(H0,{className:"h-4 w-4 text-muted-foreground"}),label:"Sonnet",description:"Balanced speed and intelligence"}),x.jsx(dr,{onClick:()=>b("haiku"),selected:m==="haiku",icon:x.jsx(R0,{className:"h-4 w-4 text-muted-foreground"}),label:"Haiku",description:"Fastest responses, lightweight tasks"})]}),x.jsxs(wd,{trigger:x.jsxs(x.Fragment,{children:[x.jsx(Pa,{className:"h-3.5 w-3.5"}),x.jsx("span",{children:zR[g]})]}),triggerClassName:g==="max"?"text-amber-400 dark:text-amber-300":void 0,children:[x.jsx(dr,{onClick:()=>v("low"),selected:g==="low",icon:x.jsx(Pa,{className:"h-4 w-4 text-muted-foreground"}),label:"Low",description:"Minimal thinking, fastest responses"}),x.jsx(dr,{onClick:()=>v("medium"),selected:g==="medium",icon:x.jsx(Pa,{className:"h-4 w-4 text-muted-foreground"}),label:"Medium",description:"Moderate thinking for typical tasks"}),x.jsx(dr,{onClick:()=>v("high"),selected:g==="high",icon:x.jsx(Pa,{className:"h-4 w-4 text-muted-foreground"}),label:"High",description:"Deep reasoning for complex problems"}),x.jsx(dr,{onClick:()=>v("max"),selected:g==="max",disabled:m!=="opus",icon:x.jsx(Pa,{className:"h-4 w-4 text-muted-foreground"}),label:"Max",description:m!=="opus"?"Only available with Opus":"Maximum effort, deepest reasoning"})]}),x.jsxs(wd,{trigger:y?x.jsxs(x.Fragment,{children:[x.jsx(nu,{className:"h-3.5 w-3.5"}),x.jsx("span",{children:"Plan Mode"})]}):x.jsxs(x.Fragment,{children:[x.jsx(Wx,{className:"h-3.5 w-3.5"}),x.jsx("span",{children:"Full Access"})]}),triggerClassName:y?"text-blue-400 dark:text-blue-300":void 0,children:[x.jsx(dr,{onClick:()=>k(!1),selected:!y,icon:x.jsx(Wx,{className:"h-4 w-4 text-muted-foreground"}),label:"Full Access",description:"Claude can read and edit files"}),x.jsx(dr,{onClick:()=>k(!0),selected:y,icon:x.jsx(nu,{className:"h-4 w-4 text-muted-foreground"}),label:"Plan Mode",description:"Claude can only read, not edit"}),x.jsxs("p",{className:"text-xs text-muted-foreground/90 px-2 py-2",children:["Press ",x.jsx("kbd",{className:"px-1 mx-0.5 py-0.5 text-[12px] bg-muted/90 rounded font-mono",children:"shift+tab"})," to toggle"]})]})]})]})}),G1=S.forwardRef(({className:e,...r},l)=>x.jsx("div",{ref:l,className:xe("bg-card text-card-foreground",e),...r}));G1.displayName="Card";const Y1=S.forwardRef(({className:e,...r},l)=>x.jsx("div",{ref:l,className:xe("flex flex-col space-y-1.5 p-2",e),...r}));Y1.displayName="CardHeader";const LR=S.forwardRef(({className:e,...r},l)=>x.jsx("h3",{ref:l,className:xe("text-2xl font-semibold leading-none tracking-tight",e),...r}));LR.displayName="CardTitle";const BR=S.forwardRef(({className:e,...r},l)=>x.jsx("p",{ref:l,className:xe("text-sm text-muted-foreground",e),...r}));BR.displayName="CardDescription";const $1=S.forwardRef(({className:e,...r},l)=>x.jsx("div",{ref:l,className:xe("p-6 pt-0",e),...r}));$1.displayName="CardContent";const UR=S.forwardRef(({className:e,...r},l)=>x.jsx("div",{ref:l,className:xe("flex items-center p-6 pt-0",e),...r}));UR.displayName="CardFooter";function HR({sidebarCollapsed:e,onOpenSidebar:r,onExpandSidebar:l,onNewChat:i,localPath:o,onOpenExternal:u}){return x.jsx(Y1,{className:xe("absolute top-0 md:top-2 left-0 right-0 z-10 px-2.5 pr-4 border-border/0 md:pb-0 flex items-center justify-center","backdrop-blur-lg md:backdrop-blur-none bg-gradient-to-b from-background md:from-transparent border-b border-x-0 md:border-x border-border md:border-none"),children:x.jsxs("div",{className:"relative flex items-center gap-2 w-full",children:[x.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0 border-l border-border/0",children:[x.jsx(qe,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:x.jsx(z0,{className:"h-5 w-5"})}),e&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"flex items-center justify-center w-[40px] h-[40px]",children:x.jsx(Qa,{className:"h-4 w-4 sm:h-5 sm:w-5 text-logo ml-1 hidden md:block"})}),x.jsx(qe,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:l,title:"Expand sidebar",children:x.jsx(Qd,{className:"h-5 w-5"})})]}),x.jsx(qe,{variant:"ghost",size:"icon",onClick:i,title:"Compose",children:x.jsx(Dh,{className:"h-5 w-5"})})]}),x.jsx("div",{className:"flex-1 min-w-0"}),x.jsx("div",{className:"flex items-center gap-1 flex-shrink-0",children:o&&u&&x.jsxs(x.Fragment,{children:[x.jsx(qe,{variant:"ghost",size:"icon",onClick:()=>u("open_finder"),title:"Open in Finder",className:"border border-border/0",children:x.jsx(M0,{className:"h-4.5 w-4.5"})}),x.jsx(qe,{variant:"ghost",size:"icon",onClick:()=>u("open_terminal"),title:"Open in Terminal",className:"border border-border/0",children:x.jsx(Lh,{className:"h-4.5 w-4.5"})}),x.jsx(qe,{variant:"ghost",size:"icon",onClick:()=>u("open_editor"),title:"Open in Cursor",className:"border border-border/0",children:x.jsx(bj,{className:"h-4.5 w-4.5"})})]})})]})})}const nh={Task:nu,TaskOutput:nu,Bash:Lh,Glob:yd,Grep:yd,ExitPlanMode:eb,Read:Mj,Edit:jj,Write:_j,NotebookEdit:B0,WebFetch:GA,TodoWrite:aj,WebSearch:yd,KillShell:lT,AskUserQuestion:D0,Skill:zh,EnterPlanMode:eb},X1=oT;function Q1(e){return nh[e]?nh[e]:/^mcp__db__.+_query$/.test(e)?Cj:e==="mcp__lever__show_chart"?nj:X1}function ll({children:e,className:r}){return x.jsx("div",{className:xe("flex gap-3 justify-start items-center",r),children:e})}function PR({children:e,className:r}){return x.jsx("div",{className:xe("flex items-center gap-1.5 text-xs",r),children:e})}function el({children:e,className:r}){return x.jsx("span",{className:xe("font-medium text-foreground/80",r),children:e})}function qR({children:e}){return x.jsx("span",{className:"text-muted-foreground",children:e})}function Ou({children:e,expandedContent:r,defaultExpanded:l=!1}){const[i,o]=S.useState(l);return x.jsxs("div",{className:"flex flex-col w-full",children:[x.jsxs("button",{onClick:()=>o(!i),className:`group/expandable-row cursor-pointer grid grid-cols-[auto_1fr] items-center gap-1 text-sm ${i?"":"hover:opacity-60 transition-opacity"}`,children:[x.jsx("div",{className:"grid grid-cols-[auto_1fr] items-center gap-1.5",children:e}),x.jsx(Kr,{className:`h-4.5 w-4.5 text-muted-icon translate-y-[0.5px] transition-all duration-200 opacity-0 group-hover/expandable-row:opacity-100 ${i?"rotate-90 opacity-100":""}`})]}),i&&r]})}function qa({label:e,children:r,copyText:l}){const[i,o]=S.useState(!1),u=l??uu(r),c=S.useCallback(async()=>{await navigator.clipboard.writeText(u),o(!0),setTimeout(()=>o(!1),2e3)},[u]);return x.jsxs("div",{children:[x.jsx("span",{className:"font-medium text-muted-foreground",children:e}),x.jsxs("div",{className:"relative group/codeblock",children:[x.jsx("pre",{className:"my-1 text-xs font-mono whitespace-no-wrap break-all bg-muted border border-border rounded-lg p-2 max-h-64 overflow-auto w-full",children:r}),x.jsx(qe,{variant:"ghost",size:"icon",className:xe("absolute top-2.5 right-1.5 z-10 h-8 w-8 rounded-md text-muted-foreground opacity-0 group-hover/codeblock:opacity-100 transition-opacity",!i&&"hover:text-foreground",i&&"hover:!bg-transparent hover:!border-transparent"),onClick:c,children:i?x.jsx(_l,{className:"h-4 w-4 text-green-400"}):x.jsx(ku,{className:"h-4 w-4"})})]})]})}function Z1({children:e,icon:r,className:l}){return x.jsxs("span",{className:xe("inline-flex items-center gap-1 px-2 py-1 bg-muted border border-border rounded-full",l),children:[r&&x.jsx(r,{className:"h-3 w-3 text-muted-foreground"}),e]})}function zu({children:e,className:r}){return x.jsxs("div",{className:xe("grid grid-cols-[auto_1fr] gap-2 min-w-0",r),children:[x.jsx("div",{className:" min-w-5 flex flex-col relative items-center justify-center",children:x.jsx("div",{className:"min-h-full w-[1px] bg-muted-foreground/20"})}),x.jsx("div",{className:"-ml-[1px] min-w-0 overflow-hidden",children:e})]})}function uu(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(Array.isArray(e))return e.map(uu).join("");if(e&&typeof e=="object"&&"props"in e){const r=e.props;return uu(r.children)}return""}const Du={pre:({children:e,...r})=>{const[l,i]=S.useState(!1),o=uu(e),u=async()=>{await navigator.clipboard.writeText(o),i(!0),setTimeout(()=>i(!1),2e3)};return x.jsxs("div",{className:"relative overflow-x-auto max-w-full min-w-0 no-code-highlight group/pre",children:[x.jsx("pre",{className:"min-w-0 rounded-xl py-2.5 px-3.5 [.no-pre-highlight_&]:bg-background",...r,children:e}),x.jsx(qe,{variant:"ghost",size:"icon",className:xe("absolute top-[35px] -translate-y-[50%] -translate-x-[1px] rounded-md right-1.5 h-8 w-8 text-muted-foreground opacity-0 group-hover/pre:opacity-100 transition-opacity",!l&&"hover:text-foreground",l&&"hover:!bg-transparent hover:!border-transparent"),onClick:u,children:l?x.jsx(_l,{className:"h-4 w-4 text-green-400"}):x.jsx(ku,{className:"h-4 w-4"})})]})},code:({children:e,className:r,...l})=>r?x.jsx("code",{className:"block text-xs whitespace-pre",...l,children:e}):x.jsx("code",{className:"break-all px-1 bg-border/60 dark:[.no-pre-highlight_&]:bg-background dark:[.text-pretty_&]:bg-neutral [.no-code-highlight_&]:!bg-transparent py-0.5 rounded text-sm whitespace-wrap",...l,children:e}),table:({children:e,...r})=>x.jsx("div",{className:"border border-border rounded-xl overflow-x-auto",children:x.jsx("table",{className:"table-auto min-w-full divide-y divide-border bg-background",...r,children:e})}),tbody:({children:e,...r})=>x.jsx("tbody",{className:"divide-y divide-border",...r,children:e}),th:({children:e,...r})=>x.jsx("th",{className:"text-left text-xs uppercase text-muted-foreground tracking-wider p-2 pl-0 first:pl-3 bg-muted dark:bg-card [&_*]:font-semibold",...r,children:e}),td:({children:e,...r})=>x.jsx("td",{className:"text-left p-2 pl-0 first:pl-3 [&_*]:font-normal ",...r,children:e}),p:({children:e,...r})=>x.jsx("p",{className:"break-words",...r,children:e}),a:({children:e,...r})=>x.jsx("a",{className:"transition-all underline decoration-2 text-orange-500 decoration-orange-500/50 hover:text-orange-500/70 dark:text-logo dark:decoration-logo/70 dark:hover:text-logo/60 dark:hover:decoration-logo/40 ",target:"_blank",rel:"noopener noreferrer",...r,children:e})},rh={...Du,h1:({children:e})=>x.jsx("h1",{className:"text-2xl font-bold mt-6 mb-4 first:mt-0",children:e}),h2:({children:e})=>x.jsx("h2",{className:"text-xl font-semibold mt-5 mb-3 first:mt-0",children:e}),h3:({children:e})=>x.jsx("h3",{className:"text-lg font-semibold mt-4 mb-2 first:mt-0",children:e}),h4:({children:e})=>x.jsx("h4",{className:"text-base font-semibold mt-3 mb-2 first:mt-0",children:e}),h5:({children:e})=>x.jsx("h5",{className:"text-sm font-semibold mt-3 mb-1 first:mt-0",children:e}),h6:({children:e})=>x.jsx("h6",{className:"text-sm font-medium mt-3 mb-1 first:mt-0",children:e})},FR={connecting:"Connecting...",acquiring_sandbox:"Booting...",initializing:"Initializing...",starting:"Starting...",running:"Running...",waiting_for_user:"Waiting...",failed:"Failed"};function VR({status:e}){const r=(e?FR[e]:void 0)||"Processing...",l=e==="failed";return x.jsx(ll,{className:"ml-[1px]",children:x.jsxs(PR,{children:[l?x.jsx(so,{className:"size-4.5 text-red-500"}):x.jsx(zl,{className:"size-4.5 animate-spin text-muted-icon"}),x.jsx(Ru,{className:"ml-[1px] text-sm",shimmerWidth:44,children:r})]})})}const K1=S.forwardRef(({className:e,children:r,...l},i)=>x.jsx("div",{ref:i,className:xe("relative overflow-y-auto overscroll-contain touch-pan-y scrollbar-hide",e),style:{WebkitOverflowScrolling:"touch"},...l,children:r}));K1.displayName="ScrollArea";function IR(e,r){const l={};return(e[e.length-1]===""?[...e,""]:e).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const GR=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YR=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$R={};function mb(e,r){return($R.jsx?YR:GR).test(e)}const XR=/[ \t\n\f\r]/g;function QR(e){return typeof e=="object"?e.type==="text"?pb(e.value):!1:pb(e)}function pb(e){return e.replace(XR,"")===""}class ho{constructor(r,l,i){this.normal=l,this.property=r,i&&(this.space=i)}}ho.prototype.normal={};ho.prototype.property={};ho.prototype.space=void 0;function J1(e,r){const l={},i={};for(const o of e)Object.assign(l,o.property),Object.assign(i,o.normal);return new ho(l,i,r)}function lh(e){return e.toLowerCase()}class Yt{constructor(r,l){this.attribute=l,this.property=r}}Yt.prototype.attribute="";Yt.prototype.booleanish=!1;Yt.prototype.boolean=!1;Yt.prototype.commaOrSpaceSeparated=!1;Yt.prototype.commaSeparated=!1;Yt.prototype.defined=!1;Yt.prototype.mustUseProperty=!1;Yt.prototype.number=!1;Yt.prototype.overloadedBoolean=!1;Yt.prototype.property="";Yt.prototype.spaceSeparated=!1;Yt.prototype.space=void 0;let ZR=0;const Te=Dl(),ft=Dl(),ih=Dl(),oe=Dl(),Ke=Dl(),_i=Dl(),tn=Dl();function Dl(){return 2**++ZR}const ah=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:ft,commaOrSpaceSeparated:tn,commaSeparated:_i,number:oe,overloadedBoolean:ih,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),Sd=Object.keys(ah);class Jh extends Yt{constructor(r,l,i,o){let u=-1;if(super(r,l),gb(this,"space",o),typeof i=="number")for(;++u<Sd.length;){const c=Sd[u];gb(this,Sd[u],(i&ah[c])===ah[c])}}}Jh.prototype.defined=!0;function gb(e,r,l){l&&(e[r]=l)}function Fi(e){const r={},l={};for(const[i,o]of Object.entries(e.properties)){const u=new Jh(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(u.mustUseProperty=!0),r[i]=u,l[lh(i)]=i,l[lh(u.attribute)]=i}return new ho(r,l,e.space)}const W1=Fi({properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Ke,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:oe,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Ke,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:ft,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function ew(e,r){return r in e?e[r]:r}function tw(e,r){return ew(e,r.toLowerCase())}const KR=Fi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_i,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:Ke,autoFocus:Te,autoPlay:Te,blocking:Ke,capture:null,charSet:null,checked:Te,cite:null,className:Ke,cols:oe,colSpan:null,content:null,contentEditable:ft,controls:Te,controlsList:Ke,coords:oe|_i,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:ih,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:Ke,height:oe,hidden:ih,high:oe,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:Te,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,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:Te,optimum:oe,pattern:null,ping:Ke,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:Ke,required:Te,reversed:Te,rows:oe,rowSpan:oe,sandbox:Ke,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:ft,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:tw}),JR=Fi({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:tn,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:Ke,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:_i,g2:_i,glyphName:_i,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:tn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tn,rev:tn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tn,requiredFeatures:tn,requiredFonts:tn,requiredFormats:tn,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:tn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tn,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ew}),nw=Fi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()}}),rw=Fi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tw}),lw=Fi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),WR={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"},e4=/[A-Z]/g,yb=/-[a-z]/g,t4=/^data[-\w.:]+$/i;function n4(e,r){const l=lh(r);let i=r,o=Yt;if(l in e.normal)return e.property[e.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&t4.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(yb,l4);i="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!yb.test(u)){let c=u.replace(e4,r4);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}o=Jh}return new o(i,r)}function r4(e){return"-"+e.toLowerCase()}function l4(e){return e.charAt(1).toUpperCase()}const i4=J1([W1,KR,nw,rw,lw],"html"),Wh=J1([W1,JR,nw,rw,lw],"svg");function a4(e){return e.join(" ").trim()}var Ei={},kd,xb;function o4(){if(xb)return kd;xb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
385
+ `,m="/",g="*",y="",b="comment",v="declaration";function k(A,N){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];N=N||{};var O=1,_=1;function U(J){var Z=J.match(r);Z&&(O+=Z.length);var D=J.lastIndexOf(d);_=~D?J.length-D:_+J.length}function F(){var J={line:O,column:_};return function(Z){return Z.position=new z(J),ae(),Z}}function z(J){this.start=J,this.end={line:O,column:_},this.source=N.source}z.prototype.content=A;function B(J){var Z=new Error(N.source+":"+O+":"+_+": "+J);if(Z.reason=J,Z.filename=N.source,Z.line=O,Z.column=_,Z.source=A,!N.silent)throw Z}function $(J){var Z=J.exec(A);if(Z){var D=Z[0];return U(D),A=A.slice(D.length),Z}}function ae(){$(l)}function P(J){var Z;for(J=J||[];Z=re();)Z!==!1&&J.push(Z);return J}function re(){var J=F();if(!(m!=A.charAt(0)||g!=A.charAt(1))){for(var Z=2;y!=A.charAt(Z)&&(g!=A.charAt(Z)||m!=A.charAt(Z+1));)++Z;if(Z+=2,y===A.charAt(Z-1))return B("End of comment missing");var D=A.slice(2,Z-2);return _+=2,U(D),A=A.slice(Z),_+=2,J({type:b,comment:D})}}function le(){var J=F(),Z=$(i);if(Z){if(re(),!$(o))return B("property missing ':'");var D=$(u),X=J({type:v,property:C(Z[0].replace(e,y)),value:D?C(D[0].replace(e,y)):y});return $(c),X}}function se(){var J=[];P(J);for(var Z;Z=le();)Z!==!1&&(J.push(Z),P(J));return J}return ae(),se()}function C(A){return A?A.replace(f,y):y}return kd=k,kd}var bb;function s4(){if(bb)return Ei;bb=1;var e=Ei&&Ei.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=l;const r=e(o4());function l(i,o){let u=null;if(!i||typeof i!="string")return u;const c=(0,r.default)(i),f=typeof o=="function";return c.forEach(d=>{if(d.type!=="declaration")return;const{property:m,value:g}=d;f?o(m,g,d):g&&(u=u||{},u[m]=g)}),u}return Ei}var Fa={},vb;function u4(){if(vb)return Fa;vb=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,l=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,u=function(m){return!m||l.test(m)||e.test(m)},c=function(m,g){return g.toUpperCase()},f=function(m,g){return"".concat(g,"-")},d=function(m,g){return g===void 0&&(g={}),u(m)?m:(m=m.toLowerCase(),g.reactCompat?m=m.replace(o,f):m=m.replace(i,f),m.replace(r,c))};return Fa.camelCase=d,Fa}var Va,wb;function c4(){if(wb)return Va;wb=1;var e=Va&&Va.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},r=e(s4()),l=u4();function i(o,u){var c={};return!o||typeof o!="string"||(0,r.default)(o,function(f,d){f&&d&&(c[(0,l.camelCase)(f,u)]=d)}),c}return i.default=i,Va=i,Va}var f4=c4();const d4=pu(f4),iw=aw("end"),em=aw("start");function aw(e){return r;function r(l){const i=l&&l.position&&l.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function h4(e){const r=em(e),l=iw(e);if(r&&l)return{start:r,end:l}}function Za(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Sb(e.position):"start"in e||"end"in e?Sb(e):"line"in e||"column"in e?oh(e):""}function oh(e){return kb(e&&e.line)+":"+kb(e&&e.column)}function Sb(e){return oh(e&&e.start)+"-"+oh(e&&e.end)}function kb(e){return e&&typeof e=="number"?e:1}class Rt extends Error{constructor(r,l,i){super(),typeof l=="string"&&(i=l,l=void 0);let o="",u={},c=!1;if(l&&("line"in l&&"column"in l?u={place:l}:"start"in l&&"end"in l?u={place:l}:"type"in l?u={ancestors:[l],place:l.position}:u={...l}),typeof r=="string"?o=r:!u.cause&&r&&(c=!0,o=r.message,u.cause=r),!u.ruleId&&!u.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?u.ruleId=i:(u.source=i.slice(0,d),u.ruleId=i.slice(d+1))}if(!u.place&&u.ancestors&&u.ancestors){const d=u.ancestors[u.ancestors.length-1];d&&(u.place=d.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=f?f.line:void 0,this.name=Za(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Rt.prototype.file="";Rt.prototype.name="";Rt.prototype.reason="";Rt.prototype.message="";Rt.prototype.stack="";Rt.prototype.column=void 0;Rt.prototype.line=void 0;Rt.prototype.ancestors=void 0;Rt.prototype.cause=void 0;Rt.prototype.fatal=void 0;Rt.prototype.place=void 0;Rt.prototype.ruleId=void 0;Rt.prototype.source=void 0;const tm={}.hasOwnProperty,m4=new Map,p4=/[A-Z]/g,g4=new Set(["table","tbody","thead","tfoot","tr"]),y4=new Set(["td","th"]),ow="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function x4(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=r.filePath||void 0;let i;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=N4(l,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=E4(l,r.jsx,r.jsxs)}const o={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:i,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Wh:i4,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=sw(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function sw(e,r,l){if(r.type==="element")return b4(e,r,l);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return v4(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return S4(e,r,l);if(r.type==="mdxjsEsm")return w4(e,r);if(r.type==="root")return k4(e,r,l);if(r.type==="text")return C4(e,r)}function b4(e,r,l){const i=e.schema;let o=i;r.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=Wh,e.schema=o),e.ancestors.push(r);const u=cw(e,r.tagName,!1),c=A4(e,r);let f=rm(e,r);return g4.has(r.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!QR(d):!0})),uw(e,c,u,r),nm(c,f),e.ancestors.pop(),e.schema=i,e.create(r,u,c,l)}function v4(e,r){if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}ro(e,r.position)}function w4(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);ro(e,r.position)}function S4(e,r,l){const i=e.schema;let o=i;r.name==="svg"&&i.space==="html"&&(o=Wh,e.schema=o),e.ancestors.push(r);const u=r.name===null?e.Fragment:cw(e,r.name,!0),c=j4(e,r),f=rm(e,r);return uw(e,c,u,r),nm(c,f),e.ancestors.pop(),e.schema=i,e.create(r,u,c,l)}function k4(e,r,l){const i={};return nm(i,rm(e,r)),e.create(r,e.Fragment,i,l)}function C4(e,r){return r.value}function uw(e,r,l,i){typeof l!="string"&&l!==e.Fragment&&e.passNode&&(r.node=i)}function nm(e,r){if(r.length>0){const l=r.length>1?r:r[0];l&&(e.children=l)}}function E4(e,r,l){return i;function i(o,u,c,f){const m=Array.isArray(c.children)?l:r;return f?m(u,c,f):m(u,c)}}function N4(e,r){return l;function l(i,o,u,c){const f=Array.isArray(u.children),d=em(i);return r(o,u,c,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function A4(e,r){const l={};let i,o;for(o in r.properties)if(o!=="children"&&tm.call(r.properties,o)){const u=T4(e,o,r.properties[o]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&y4.has(r.tagName)?i=f:l[c]=f}}if(i){const u=l.style||(l.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return l}function j4(e,r){const l={};for(const i of r.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const u=i.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(l,e.evaluater.evaluateExpression(f.argument))}else ro(e,r.position);else{const o=i.name;let u;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else ro(e,r.position);else u=i.value===null?!0:i.value;l[o]=u}return l}function rm(e,r){const l=[];let i=-1;const o=e.passKeys?new Map:m4;for(;++i<r.children.length;){const u=r.children[i];let c;if(e.passKeys){const d=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(d){const m=o.get(d)||0;c=d+"-"+m,o.set(d,m+1)}}const f=sw(e,u,c);f!==void 0&&l.push(f)}return l}function T4(e,r,l){const i=n4(e.schema,r);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=i.commaSeparated?IR(l):a4(l)),i.property==="style"){let o=typeof l=="object"?l:_4(e,String(l));return e.stylePropertyNameCase==="css"&&(o=R4(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?WR[i.property]||i.property:i.attribute,l]}}function _4(e,r){try{return d4(r,{reactCompat:!0})}catch(l){if(e.ignoreInvalidStyle)return{};const i=l,o=new Rt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=ow+"#cannot-parse-style-attribute",o}}function cw(e,r,l){let i;if(!l)i={type:"Literal",value:r};else if(r.includes(".")){const o=r.split(".");let u=-1,c;for(;++u<o.length;){const f=mb(o[u])?{type:"Identifier",name:o[u]}:{type:"Literal",value:o[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}i=c}else i=mb(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(i.type==="Literal"){const o=i.value;return tm.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);ro(e)}function ro(e,r){const l=new Rt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=ow+"#cannot-handle-mdx-estrees-without-createevaluater",l}function R4(e){const r={};let l;for(l in e)tm.call(e,l)&&(r[M4(l)]=e[l]);return r}function M4(e){let r=e.replace(p4,O4);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function O4(e){return"-"+e.toLowerCase()}const Cd={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"]},z4={};function lm(e,r){const l=z4,i=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,o=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return fw(e,i,o)}function fw(e,r,l){if(D4(e)){if("value"in e)return e.type==="html"&&!l?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Cb(e.children,r,l)}return Array.isArray(e)?Cb(e,r,l):""}function Cb(e,r,l){const i=[];let o=-1;for(;++o<e.length;)i[o]=fw(e[o],r,l);return i.join("")}function D4(e){return!!(e&&typeof e=="object")}const Eb=document.createElement("i");function im(e){const r="&"+e+";";Eb.innerHTML=r;const l=Eb.textContent;return l.charCodeAt(l.length-1)===59&&e!=="semi"||l===r?!1:l}function ln(e,r,l,i){const o=e.length;let u=0,c;if(r<0?r=-r>o?0:o+r:r=r>o?o:r,l=l>0?l:0,i.length<1e4)c=Array.from(i),c.unshift(r,l),e.splice(...c);else for(l&&e.splice(r,l);u<i.length;)c=i.slice(u,u+1e4),c.unshift(r,0),e.splice(...c),u+=1e4,r+=1e4}function yn(e,r){return e.length>0?(ln(e,e.length,0,r),e):r}const Nb={}.hasOwnProperty;function dw(e){const r={};let l=-1;for(;++l<e.length;)L4(r,e[l]);return r}function L4(e,r){let l;for(l in r){const o=(Nb.call(e,l)?e[l]:void 0)||(e[l]={}),u=r[l];let c;if(u)for(c in u){Nb.call(o,c)||(o[c]=[]);const f=u[c];B4(o[c],Array.isArray(f)?f:f?[f]:[])}}}function B4(e,r){let l=-1;const i=[];for(;++l<r.length;)(r[l].add==="after"?e:i).push(r[l]);ln(e,0,0,i)}function hw(e,r){const l=Number.parseInt(e,r);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function kn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Dt=il(/[A-Za-z]/),Tt=il(/[\dA-Za-z]/),U4=il(/[#-'*+\--9=?A-Z^-~]/);function cu(e){return e!==null&&(e<32||e===127)}const sh=il(/\d/),H4=il(/[\dA-Fa-f]/),P4=il(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function Oe(e){return e===-2||e===-1||e===32}const Lu=il(new RegExp("\\p{P}|\\p{S}","u")),Ml=il(/\s/);function il(e){return r;function r(l){return l!==null&&l>-1&&e.test(String.fromCharCode(l))}}function Vi(e){const r=[];let l=-1,i=0,o=0;for(;++l<e.length;){const u=e.charCodeAt(l);let c="";if(u===37&&Tt(e.charCodeAt(l+1))&&Tt(e.charCodeAt(l+2)))o=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(l+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),o=1):c="�"}else c=String.fromCharCode(u);c&&(r.push(e.slice(i,l),encodeURIComponent(c)),i=l+o+1,c=""),o&&(l+=o,o=0)}return r.join("")+e.slice(i)}function Be(e,r,l,i){const o=i?i-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(d){return Oe(d)?(e.enter(l),f(d)):r(d)}function f(d){return Oe(d)&&u++<o?(e.consume(d),f):(e.exit(l),r(d))}}const q4={tokenize:F4};function F4(e){const r=e.attempt(this.parser.constructs.contentInitial,i,o);let l;return r;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Be(e,r,"linePrefix")}function o(f){return e.enter("paragraph"),u(f)}function u(f){const d=e.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=d),l=d,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return we(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const V4={tokenize:I4},Ab={tokenize:G4};function I4(e){const r=this,l=[];let i=0,o,u,c;return f;function f(_){if(i<l.length){const U=l[i];return r.containerState=U[1],e.attempt(U[0].continuation,d,m)(_)}return m(_)}function d(_){if(i++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,o&&O();const U=r.events.length;let F=U,z;for(;F--;)if(r.events[F][0]==="exit"&&r.events[F][1].type==="chunkFlow"){z=r.events[F][1].end;break}N(i);let B=U;for(;B<r.events.length;)r.events[B][1].end={...z},B++;return ln(r.events,F+1,0,r.events.slice(U)),r.events.length=B,m(_)}return f(_)}function m(_){if(i===l.length){if(!o)return b(_);if(o.currentConstruct&&o.currentConstruct.concrete)return k(_);r.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(Ab,g,y)(_)}function g(_){return o&&O(),N(i),b(_)}function y(_){return r.parser.lazy[r.now().line]=i!==l.length,c=r.now().offset,k(_)}function b(_){return r.containerState={},e.attempt(Ab,v,k)(_)}function v(_){return i++,l.push([r.currentConstruct,r.containerState]),b(_)}function k(_){if(_===null){o&&O(),N(0),e.consume(_);return}return o=o||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),C(_)}function C(_){if(_===null){A(e.exit("chunkFlow"),!0),N(0),e.consume(_);return}return we(_)?(e.consume(_),A(e.exit("chunkFlow")),i=0,r.interrupt=void 0,f):(e.consume(_),C)}function A(_,U){const F=r.sliceStream(_);if(U&&F.push(null),_.previous=u,u&&(u.next=_),u=_,o.defineSkip(_.start),o.write(F),r.parser.lazy[_.start.line]){let z=o.events.length;for(;z--;)if(o.events[z][1].start.offset<c&&(!o.events[z][1].end||o.events[z][1].end.offset>c))return;const B=r.events.length;let $=B,ae,P;for(;$--;)if(r.events[$][0]==="exit"&&r.events[$][1].type==="chunkFlow"){if(ae){P=r.events[$][1].end;break}ae=!0}for(N(i),z=B;z<r.events.length;)r.events[z][1].end={...P},z++;ln(r.events,$+1,0,r.events.slice(B)),r.events.length=z}}function N(_){let U=l.length;for(;U-- >_;){const F=l[U];r.containerState=F[1],F[0].exit.call(r,e)}l.length=_}function O(){o.write([null]),u=void 0,o=void 0,r.containerState._closeFlow=void 0}}function G4(e,r,l){return Be(e,e.attempt(this.parser.constructs.document,r,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Di(e){if(e===null||Ze(e)||Ml(e))return 1;if(Lu(e))return 2}function Bu(e,r,l){const i=[];let o=-1;for(;++o<e.length;){const u=e[o].resolveAll;u&&!i.includes(u)&&(r=u(r,l),i.push(u))}return r}const uh={name:"attention",resolveAll:Y4,tokenize:$4};function Y4(e,r){let l=-1,i,o,u,c,f,d,m,g;for(;++l<e.length;)if(e[l][0]==="enter"&&e[l][1].type==="attentionSequence"&&e[l][1]._close){for(i=l;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&r.sliceSerialize(e[i][1]).charCodeAt(0)===r.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[i][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const y={...e[i][1].end},b={...e[l][1].start};jb(y,-d),jb(b,d),c={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...e[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[l][1].start},end:b},u={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[l][1].start}},o={type:d>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[i][1].end={...c.start},e[l][1].start={...f.end},m=[],e[i][1].end.offset-e[i][1].start.offset&&(m=yn(m,[["enter",e[i][1],r],["exit",e[i][1],r]])),m=yn(m,[["enter",o,r],["enter",c,r],["exit",c,r],["enter",u,r]]),m=yn(m,Bu(r.parser.constructs.insideSpan.null,e.slice(i+1,l),r)),m=yn(m,[["exit",u,r],["enter",f,r],["exit",f,r],["exit",o,r]]),e[l][1].end.offset-e[l][1].start.offset?(g=2,m=yn(m,[["enter",e[l][1],r],["exit",e[l][1],r]])):g=0,ln(e,i-1,l-i+3,m),l=i+m.length-g-2;break}}for(l=-1;++l<e.length;)e[l][1].type==="attentionSequence"&&(e[l][1].type="data");return e}function $4(e,r){const l=this.parser.constructs.attentionMarkers.null,i=this.previous,o=Di(i);let u;return c;function c(d){return u=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===u)return e.consume(d),f;const m=e.exit("attentionSequence"),g=Di(d),y=!g||g===2&&o||l.includes(d),b=!o||o===2&&g||l.includes(i);return m._open=!!(u===42?y:y&&(o||!b)),m._close=!!(u===42?b:b&&(g||!y)),r(d)}}function jb(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const X4={name:"autolink",tokenize:Q4};function Q4(e,r,l){let i=0;return o;function o(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(v){return Dt(v)?(e.consume(v),c):v===64?l(v):m(v)}function c(v){return v===43||v===45||v===46||Tt(v)?(i=1,f(v)):m(v)}function f(v){return v===58?(e.consume(v),i=0,d):(v===43||v===45||v===46||Tt(v))&&i++<32?(e.consume(v),f):(i=0,m(v))}function d(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),r):v===null||v===32||v===60||cu(v)?l(v):(e.consume(v),d)}function m(v){return v===64?(e.consume(v),g):U4(v)?(e.consume(v),m):l(v)}function g(v){return Tt(v)?y(v):l(v)}function y(v){return v===46?(e.consume(v),i=0,g):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),r):b(v)}function b(v){if((v===45||Tt(v))&&i++<63){const k=v===45?b:y;return e.consume(v),k}return l(v)}}const mo={partial:!0,tokenize:Z4};function Z4(e,r,l){return i;function i(u){return Oe(u)?Be(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||we(u)?r(u):l(u)}}const mw={continuation:{tokenize:J4},exit:W4,name:"blockQuote",tokenize:K4};function K4(e,r,l){const i=this;return o;function o(c){if(c===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return l(c)}function u(c){return Oe(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(c))}}function J4(e,r,l){const i=this;return o;function o(c){return Oe(c)?Be(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(mw,r,l)(c)}}function W4(e){e.exit("blockQuote")}const pw={name:"characterEscape",tokenize:eM};function eM(e,r,l){return i;function i(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),o}function o(u){return P4(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):l(u)}}const gw={name:"characterReference",tokenize:tM};function tM(e,r,l){const i=this;let o=0,u,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),d}function d(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),m):(e.enter("characterReferenceValue"),u=31,c=Tt,g(y))}function m(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=H4,g):(e.enter("characterReferenceValue"),u=7,c=sh,g(y))}function g(y){if(y===59&&o){const b=e.exit("characterReferenceValue");return c===Tt&&!im(i.sliceSerialize(b))?l(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return c(y)&&o++<u?(e.consume(y),g):l(y)}}const Tb={partial:!0,tokenize:rM},_b={concrete:!0,name:"codeFenced",tokenize:nM};function nM(e,r,l){const i=this,o={partial:!0,tokenize:F};let u=0,c=0,f;return d;function d(z){return m(z)}function m(z){const B=i.events[i.events.length-1];return u=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,f=z,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(z)}function g(z){return z===f?(c++,e.consume(z),g):c<3?l(z):(e.exit("codeFencedFenceSequence"),Oe(z)?Be(e,y,"whitespace")(z):y(z))}function y(z){return z===null||we(z)?(e.exit("codeFencedFence"),i.interrupt?r(z):e.check(Tb,C,U)(z)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(z))}function b(z){return z===null||we(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(z)):Oe(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Be(e,v,"whitespace")(z)):z===96&&z===f?l(z):(e.consume(z),b)}function v(z){return z===null||we(z)?y(z):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(z))}function k(z){return z===null||we(z)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(z)):z===96&&z===f?l(z):(e.consume(z),k)}function C(z){return e.attempt(o,U,A)(z)}function A(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),N}function N(z){return u>0&&Oe(z)?Be(e,O,"linePrefix",u+1)(z):O(z)}function O(z){return z===null||we(z)?e.check(Tb,C,U)(z):(e.enter("codeFlowValue"),_(z))}function _(z){return z===null||we(z)?(e.exit("codeFlowValue"),O(z)):(e.consume(z),_)}function U(z){return e.exit("codeFenced"),r(z)}function F(z,B,$){let ae=0;return P;function P(Z){return z.enter("lineEnding"),z.consume(Z),z.exit("lineEnding"),re}function re(Z){return z.enter("codeFencedFence"),Oe(Z)?Be(z,le,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):le(Z)}function le(Z){return Z===f?(z.enter("codeFencedFenceSequence"),se(Z)):$(Z)}function se(Z){return Z===f?(ae++,z.consume(Z),se):ae>=c?(z.exit("codeFencedFenceSequence"),Oe(Z)?Be(z,J,"whitespace")(Z):J(Z)):$(Z)}function J(Z){return Z===null||we(Z)?(z.exit("codeFencedFence"),B(Z)):$(Z)}}}function rM(e,r,l){const i=this;return o;function o(c){return c===null?l(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return i.parser.lazy[i.now().line]?l(c):r(c)}}const Ed={name:"codeIndented",tokenize:iM},lM={partial:!0,tokenize:aM};function iM(e,r,l){const i=this;return o;function o(m){return e.enter("codeIndented"),Be(e,u,"linePrefix",5)(m)}function u(m){const g=i.events[i.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(m):l(m)}function c(m){return m===null?d(m):we(m)?e.attempt(lM,c,d)(m):(e.enter("codeFlowValue"),f(m))}function f(m){return m===null||we(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),f)}function d(m){return e.exit("codeIndented"),r(m)}}function aM(e,r,l){const i=this;return o;function o(c){return i.parser.lazy[i.now().line]?l(c):we(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Be(e,u,"linePrefix",5)(c)}function u(c){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):we(c)?o(c):l(c)}}const oM={name:"codeText",previous:uM,resolve:sM,tokenize:cM};function sM(e){let r=e.length-4,l=3,i,o;if((e[l][1].type==="lineEnding"||e[l][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(i=l;++i<r;)if(e[i][1].type==="codeTextData"){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(i=l-1,r++;++i<=r;)o===void 0?i!==r&&e[i][1].type!=="lineEnding"&&(o=i):(i===r||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),r-=i-o-2,i=o+2),o=void 0);return e}function uM(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cM(e,r,l){let i=0,o,u;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),i++,f):(e.exit("codeTextSequence"),d(y))}function d(y){return y===null?l(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),d):y===96?(u=e.enter("codeTextSequence"),o=0,g(y)):we(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||we(y)?(e.exit("codeTextData"),d(y)):(e.consume(y),m)}function g(y){return y===96?(e.consume(y),o++,g):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),r(y)):(u.type="codeTextData",m(y))}}class fM{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,l){const i=l??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(r,i):r>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(r,l,i){const o=l||0;this.setCursor(Math.trunc(r));const u=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&Ia(this.left,i),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Ia(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Ia(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const l=this.left.splice(r,Number.POSITIVE_INFINITY);Ia(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Ia(this.left,l.reverse())}}}function Ia(e,r){let l=0;if(r.length<1e4)e.push(...r);else for(;l<r.length;)e.push(...r.slice(l,l+1e4)),l+=1e4}function yw(e){const r={};let l=-1,i,o,u,c,f,d,m;const g=new fM(e);for(;++l<g.length;){for(;l in r;)l=r[l];if(i=g.get(l),l&&i[1].type==="chunkFlow"&&g.get(l-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,u=0,u<d.length&&d[u][1].type==="lineEndingBlank"&&(u+=2),u<d.length&&d[u][1].type==="content"))for(;++u<d.length&&d[u][1].type!=="content";)d[u][1].type==="chunkText"&&(d[u][1]._isInFirstContentOfListItem=!0,u++);if(i[0]==="enter")i[1].contentType&&(Object.assign(r,dM(g,l)),l=r[l],m=!0);else if(i[1]._container){for(u=l,o=void 0;u--;)if(c=g.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(g.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(i[1].end={...g.get(o)[1].start},f=g.slice(o,l),f.unshift(i),g.splice(o,l-o+1,f))}}return ln(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!m}function dM(e,r){const l=e.get(r)[1],i=e.get(r)[2];let o=r-1;const u=[];let c=l._tokenizer;c||(c=i.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,d=[],m={};let g,y,b=-1,v=l,k=0,C=0;const A=[C];for(;v;){for(;e.get(++o)[1]!==v;);u.push(o),v._tokenizer||(g=i.sliceStream(v),v.next||g.push(null),y&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=l;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(C=b+1,A.push(C),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):A.pop(),b=A.length;b--;){const N=f.slice(A[b],A[b+1]),O=u.pop();d.push([O,O+N.length-1]),e.splice(O,2,N)}for(d.reverse(),b=-1;++b<d.length;)m[k+d[b][0]]=k+d[b][1],k+=d[b][1]-d[b][0]-1;return m}const hM={resolve:pM,tokenize:gM},mM={partial:!0,tokenize:yM};function pM(e){return yw(e),e}function gM(e,r){let l;return i;function i(f){return e.enter("content"),l=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?u(f):we(f)?e.check(mM,c,u)(f):(e.consume(f),o)}function u(f){return e.exit("chunkContent"),e.exit("content"),r(f)}function c(f){return e.consume(f),e.exit("chunkContent"),l.next=e.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,o}}function yM(e,r,l){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Be(e,u,"linePrefix")}function u(c){if(c===null||we(c))return l(c);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?r(c):e.interrupt(i.parser.constructs.flow,l,r)(c)}}function xw(e,r,l,i,o,u,c,f,d){const m=d||Number.POSITIVE_INFINITY;let g=0;return y;function y(N){return N===60?(e.enter(i),e.enter(o),e.enter(u),e.consume(N),e.exit(u),b):N===null||N===32||N===41||cu(N)?l(N):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),C(N))}function b(N){return N===62?(e.enter(u),e.consume(N),e.exit(u),e.exit(o),e.exit(i),r):(e.enter(f),e.enter("chunkString",{contentType:"string"}),v(N))}function v(N){return N===62?(e.exit("chunkString"),e.exit(f),b(N)):N===null||N===60||we(N)?l(N):(e.consume(N),N===92?k:v)}function k(N){return N===60||N===62||N===92?(e.consume(N),v):v(N)}function C(N){return!g&&(N===null||N===41||Ze(N))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),r(N)):g<m&&N===40?(e.consume(N),g++,C):N===41?(e.consume(N),g--,C):N===null||N===32||N===40||cu(N)?l(N):(e.consume(N),N===92?A:C)}function A(N){return N===40||N===41||N===92?(e.consume(N),C):C(N)}}function bw(e,r,l,i,o,u){const c=this;let f=0,d;return m;function m(v){return e.enter(i),e.enter(o),e.consume(v),e.exit(o),e.enter(u),g}function g(v){return f>999||v===null||v===91||v===93&&!d||v===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?l(v):v===93?(e.exit(u),e.enter(o),e.consume(v),e.exit(o),e.exit(i),r):we(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||we(v)||f++>999?(e.exit("chunkString"),g(v)):(e.consume(v),d||(d=!Oe(v)),v===92?b:y)}function b(v){return v===91||v===92||v===93?(e.consume(v),f++,y):y(v)}}function vw(e,r,l,i,o,u){let c;return f;function f(b){return b===34||b===39||b===40?(e.enter(i),e.enter(o),e.consume(b),e.exit(o),c=b===40?41:b,d):l(b)}function d(b){return b===c?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),r):(e.enter(u),m(b))}function m(b){return b===c?(e.exit(u),d(c)):b===null?l(b):we(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Be(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===c||b===null||we(b)?(e.exit("chunkString"),m(b)):(e.consume(b),b===92?y:g)}function y(b){return b===c||b===92?(e.consume(b),g):g(b)}}function Ka(e,r){let l;return i;function i(o){return we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l=!0,i):Oe(o)?Be(e,i,l?"linePrefix":"lineSuffix")(o):r(o)}}const xM={name:"definition",tokenize:vM},bM={partial:!0,tokenize:wM};function vM(e,r,l){const i=this;let o;return u;function u(v){return e.enter("definition"),c(v)}function c(v){return bw.call(i,e,f,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return o=kn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),d):l(v)}function d(v){return Ze(v)?Ka(e,m)(v):m(v)}function m(v){return xw(e,g,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function g(v){return e.attempt(bM,y,y)(v)}function y(v){return Oe(v)?Be(e,b,"whitespace")(v):b(v)}function b(v){return v===null||we(v)?(e.exit("definition"),i.parser.defined.push(o),r(v)):l(v)}}function wM(e,r,l){return i;function i(f){return Ze(f)?Ka(e,o)(f):l(f)}function o(f){return vw(e,u,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Oe(f)?Be(e,c,"whitespace")(f):c(f)}function c(f){return f===null||we(f)?r(f):l(f)}}const SM={name:"hardBreakEscape",tokenize:kM};function kM(e,r,l){return i;function i(u){return e.enter("hardBreakEscape"),e.consume(u),o}function o(u){return we(u)?(e.exit("hardBreakEscape"),r(u)):l(u)}}const CM={name:"headingAtx",resolve:EM,tokenize:NM};function EM(e,r){let l=e.length-2,i=3,o,u;return e[i][1].type==="whitespace"&&(i+=2),l-2>i&&e[l][1].type==="whitespace"&&(l-=2),e[l][1].type==="atxHeadingSequence"&&(i===l-1||l-4>i&&e[l-2][1].type==="whitespace")&&(l-=i+1===l?2:4),l>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[l][1].end},u={type:"chunkText",start:e[i][1].start,end:e[l][1].end,contentType:"text"},ln(e,i,l-i+1,[["enter",o,r],["enter",u,r],["exit",u,r],["exit",o,r]])),e}function NM(e,r,l){let i=0;return o;function o(g){return e.enter("atxHeading"),u(g)}function u(g){return e.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&i++<6?(e.consume(g),c):g===null||Ze(g)?(e.exit("atxHeadingSequence"),f(g)):l(g)}function f(g){return g===35?(e.enter("atxHeadingSequence"),d(g)):g===null||we(g)?(e.exit("atxHeading"),r(g)):Oe(g)?Be(e,f,"whitespace")(g):(e.enter("atxHeadingText"),m(g))}function d(g){return g===35?(e.consume(g),d):(e.exit("atxHeadingSequence"),f(g))}function m(g){return g===null||g===35||Ze(g)?(e.exit("atxHeadingText"),f(g)):(e.consume(g),m)}}const AM=["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"],Rb=["pre","script","style","textarea"],jM={concrete:!0,name:"htmlFlow",resolveTo:RM,tokenize:MM},TM={partial:!0,tokenize:zM},_M={partial:!0,tokenize:OM};function RM(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function MM(e,r,l){const i=this;let o,u,c,f,d;return m;function m(T){return g(T)}function g(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),y}function y(T){return T===33?(e.consume(T),b):T===47?(e.consume(T),u=!0,C):T===63?(e.consume(T),o=3,i.interrupt?r:j):Dt(T)?(e.consume(T),c=String.fromCharCode(T),A):l(T)}function b(T){return T===45?(e.consume(T),o=2,v):T===91?(e.consume(T),o=5,f=0,k):Dt(T)?(e.consume(T),o=4,i.interrupt?r:j):l(T)}function v(T){return T===45?(e.consume(T),i.interrupt?r:j):l(T)}function k(T){const ue="CDATA[";return T===ue.charCodeAt(f++)?(e.consume(T),f===ue.length?i.interrupt?r:le:k):l(T)}function C(T){return Dt(T)?(e.consume(T),c=String.fromCharCode(T),A):l(T)}function A(T){if(T===null||T===47||T===62||Ze(T)){const ue=T===47,de=c.toLowerCase();return!ue&&!u&&Rb.includes(de)?(o=1,i.interrupt?r(T):le(T)):AM.includes(c.toLowerCase())?(o=6,ue?(e.consume(T),N):i.interrupt?r(T):le(T)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?l(T):u?O(T):_(T))}return T===45||Tt(T)?(e.consume(T),c+=String.fromCharCode(T),A):l(T)}function N(T){return T===62?(e.consume(T),i.interrupt?r:le):l(T)}function O(T){return Oe(T)?(e.consume(T),O):P(T)}function _(T){return T===47?(e.consume(T),P):T===58||T===95||Dt(T)?(e.consume(T),U):Oe(T)?(e.consume(T),_):P(T)}function U(T){return T===45||T===46||T===58||T===95||Tt(T)?(e.consume(T),U):F(T)}function F(T){return T===61?(e.consume(T),z):Oe(T)?(e.consume(T),F):_(T)}function z(T){return T===null||T===60||T===61||T===62||T===96?l(T):T===34||T===39?(e.consume(T),d=T,B):Oe(T)?(e.consume(T),z):$(T)}function B(T){return T===d?(e.consume(T),d=null,ae):T===null||we(T)?l(T):(e.consume(T),B)}function $(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Ze(T)?F(T):(e.consume(T),$)}function ae(T){return T===47||T===62||Oe(T)?_(T):l(T)}function P(T){return T===62?(e.consume(T),re):l(T)}function re(T){return T===null||we(T)?le(T):Oe(T)?(e.consume(T),re):l(T)}function le(T){return T===45&&o===2?(e.consume(T),D):T===60&&o===1?(e.consume(T),X):T===62&&o===4?(e.consume(T),R):T===63&&o===3?(e.consume(T),j):T===93&&o===5?(e.consume(T),ie):we(T)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(TM,G,se)(T)):T===null||we(T)?(e.exit("htmlFlowData"),se(T)):(e.consume(T),le)}function se(T){return e.check(_M,J,G)(T)}function J(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Z}function Z(T){return T===null||we(T)?se(T):(e.enter("htmlFlowData"),le(T))}function D(T){return T===45?(e.consume(T),j):le(T)}function X(T){return T===47?(e.consume(T),c="",ne):le(T)}function ne(T){if(T===62){const ue=c.toLowerCase();return Rb.includes(ue)?(e.consume(T),R):le(T)}return Dt(T)&&c.length<8?(e.consume(T),c+=String.fromCharCode(T),ne):le(T)}function ie(T){return T===93?(e.consume(T),j):le(T)}function j(T){return T===62?(e.consume(T),R):T===45&&o===2?(e.consume(T),j):le(T)}function R(T){return T===null||we(T)?(e.exit("htmlFlowData"),G(T)):(e.consume(T),R)}function G(T){return e.exit("htmlFlow"),r(T)}}function OM(e,r,l){const i=this;return o;function o(c){return we(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):l(c)}function u(c){return i.parser.lazy[i.now().line]?l(c):r(c)}}function zM(e,r,l){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(mo,r,l)}}const DM={name:"htmlText",tokenize:LM};function LM(e,r,l){const i=this;let o,u,c;return f;function f(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),d}function d(j){return j===33?(e.consume(j),m):j===47?(e.consume(j),F):j===63?(e.consume(j),_):Dt(j)?(e.consume(j),$):l(j)}function m(j){return j===45?(e.consume(j),g):j===91?(e.consume(j),u=0,k):Dt(j)?(e.consume(j),O):l(j)}function g(j){return j===45?(e.consume(j),v):l(j)}function y(j){return j===null?l(j):j===45?(e.consume(j),b):we(j)?(c=y,X(j)):(e.consume(j),y)}function b(j){return j===45?(e.consume(j),v):y(j)}function v(j){return j===62?D(j):j===45?b(j):y(j)}function k(j){const R="CDATA[";return j===R.charCodeAt(u++)?(e.consume(j),u===R.length?C:k):l(j)}function C(j){return j===null?l(j):j===93?(e.consume(j),A):we(j)?(c=C,X(j)):(e.consume(j),C)}function A(j){return j===93?(e.consume(j),N):C(j)}function N(j){return j===62?D(j):j===93?(e.consume(j),N):C(j)}function O(j){return j===null||j===62?D(j):we(j)?(c=O,X(j)):(e.consume(j),O)}function _(j){return j===null?l(j):j===63?(e.consume(j),U):we(j)?(c=_,X(j)):(e.consume(j),_)}function U(j){return j===62?D(j):_(j)}function F(j){return Dt(j)?(e.consume(j),z):l(j)}function z(j){return j===45||Tt(j)?(e.consume(j),z):B(j)}function B(j){return we(j)?(c=B,X(j)):Oe(j)?(e.consume(j),B):D(j)}function $(j){return j===45||Tt(j)?(e.consume(j),$):j===47||j===62||Ze(j)?ae(j):l(j)}function ae(j){return j===47?(e.consume(j),D):j===58||j===95||Dt(j)?(e.consume(j),P):we(j)?(c=ae,X(j)):Oe(j)?(e.consume(j),ae):D(j)}function P(j){return j===45||j===46||j===58||j===95||Tt(j)?(e.consume(j),P):re(j)}function re(j){return j===61?(e.consume(j),le):we(j)?(c=re,X(j)):Oe(j)?(e.consume(j),re):ae(j)}function le(j){return j===null||j===60||j===61||j===62||j===96?l(j):j===34||j===39?(e.consume(j),o=j,se):we(j)?(c=le,X(j)):Oe(j)?(e.consume(j),le):(e.consume(j),J)}function se(j){return j===o?(e.consume(j),o=void 0,Z):j===null?l(j):we(j)?(c=se,X(j)):(e.consume(j),se)}function J(j){return j===null||j===34||j===39||j===60||j===61||j===96?l(j):j===47||j===62||Ze(j)?ae(j):(e.consume(j),J)}function Z(j){return j===47||j===62||Ze(j)?ae(j):l(j)}function D(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),r):l(j)}function X(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),ne}function ne(j){return Oe(j)?Be(e,ie,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):ie(j)}function ie(j){return e.enter("htmlTextData"),c(j)}}const am={name:"labelEnd",resolveAll:PM,resolveTo:qM,tokenize:FM},BM={tokenize:VM},UM={tokenize:IM},HM={tokenize:GM};function PM(e){let r=-1;const l=[];for(;++r<e.length;){const i=e[r][1];if(l.push(e[r]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",r+=o}}return e.length!==l.length&&ln(e,0,e.length,l),e}function qM(e,r){let l=e.length,i=0,o,u,c,f;for(;l--;)if(o=e[l][1],u){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[l][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[l][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(u=l,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(c=l);const d={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},m={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},g={type:"labelText",start:{...e[u+i+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",d,r],["enter",m,r]],f=yn(f,e.slice(u+1,u+i+3)),f=yn(f,[["enter",g,r]]),f=yn(f,Bu(r.parser.constructs.insideSpan.null,e.slice(u+i+4,c-3),r)),f=yn(f,[["exit",g,r],e[c-2],e[c-1],["exit",m,r]]),f=yn(f,e.slice(c+1)),f=yn(f,[["exit",d,r]]),ln(e,u,e.length,f),e}function FM(e,r,l){const i=this;let o=i.events.length,u,c;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){u=i.events[o][1];break}return f;function f(b){return u?u._inactive?y(b):(c=i.parser.defined.includes(kn(i.sliceSerialize({start:u.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):l(b)}function d(b){return b===40?e.attempt(BM,g,c?g:y)(b):b===91?e.attempt(UM,g,c?m:y)(b):c?g(b):y(b)}function m(b){return e.attempt(HM,g,y)(b)}function g(b){return r(b)}function y(b){return u._balanced=!0,l(b)}}function VM(e,r,l){return i;function i(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),o}function o(y){return Ze(y)?Ka(e,u)(y):u(y)}function u(y){return y===41?g(y):xw(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return Ze(y)?Ka(e,d)(y):g(y)}function f(y){return l(y)}function d(y){return y===34||y===39||y===40?vw(e,m,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function m(y){return Ze(y)?Ka(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),r):l(y)}}function IM(e,r,l){const i=this;return o;function o(f){return bw.call(i,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return i.parser.defined.includes(kn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?r(f):l(f)}function c(f){return l(f)}}function GM(e,r,l){return i;function i(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),o}function o(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),r):l(u)}}const YM={name:"labelStartImage",resolveAll:am.resolveAll,tokenize:$M};function $M(e,r,l){const i=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):l(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?l(f):r(f)}}const XM={name:"labelStartLink",resolveAll:am.resolveAll,tokenize:QM};function QM(e,r,l){const i=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?l(c):r(c)}}const Nd={name:"lineEnding",tokenize:ZM};function ZM(e,r){return l;function l(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Be(e,r,"linePrefix")}}const Js={name:"thematicBreak",tokenize:KM};function KM(e,r,l){let i=0,o;return u;function u(m){return e.enter("thematicBreak"),c(m)}function c(m){return o=m,f(m)}function f(m){return m===o?(e.enter("thematicBreakSequence"),d(m)):i>=3&&(m===null||we(m))?(e.exit("thematicBreak"),r(m)):l(m)}function d(m){return m===o?(e.consume(m),i++,d):(e.exit("thematicBreakSequence"),Oe(m)?Be(e,f,"whitespace")(m):f(m))}}const Gt={continuation:{tokenize:tO},exit:rO,name:"list",tokenize:eO},JM={partial:!0,tokenize:lO},WM={partial:!0,tokenize:nO};function eO(e,r,l){const i=this,o=i.events[i.events.length-1];let u=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(v){const k=i.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!i.containerState.marker||v===i.containerState.marker:sh(v)){if(i.containerState.type||(i.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(Js,l,m)(v):m(v);if(!i.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(v)}return l(v)}function d(v){return sh(v)&&++c<10?(e.consume(v),d):(!i.interrupt||c<2)&&(i.containerState.marker?v===i.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),m(v)):l(v)}function m(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||v,e.check(mo,i.interrupt?l:g,e.attempt(JM,b,y))}function g(v){return i.containerState.initialBlankLine=!0,u++,b(v)}function y(v){return Oe(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),b):l(v)}function b(v){return i.containerState.size=u+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(v)}}function tO(e,r,l){const i=this;return i.containerState._closeFlow=void 0,e.check(mo,o,u);function o(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Be(e,r,"listItemIndent",i.containerState.size+1)(f)}function u(f){return i.containerState.furtherBlankLines||!Oe(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(WM,r,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Be(e,e.attempt(Gt,r,l),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function nO(e,r,l){const i=this;return Be(e,o,"listItemIndent",i.containerState.size+1);function o(u){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?r(u):l(u)}}function rO(e){e.exit(this.containerState.type)}function lO(e,r,l){const i=this;return Be(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(u){const c=i.events[i.events.length-1];return!Oe(u)&&c&&c[1].type==="listItemPrefixWhitespace"?r(u):l(u)}}const Mb={name:"setextUnderline",resolveTo:iO,tokenize:aO};function iO(e,r){let l=e.length,i,o,u;for(;l--;)if(e[l][0]==="enter"){if(e[l][1].type==="content"){i=l;break}e[l][1].type==="paragraph"&&(o=l)}else e[l][1].type==="content"&&e.splice(l,1),!u&&e[l][1].type==="definition"&&(u=l);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",u?(e.splice(o,0,["enter",c,r]),e.splice(u+1,0,["exit",e[i][1],r]),e[i][1].end={...e[u][1].end}):e[i][1]=c,e.push(["exit",c,r]),e}function aO(e,r,l){const i=this;let o;return u;function u(m){let g=i.events.length,y;for(;g--;)if(i.events[g][1].type!=="lineEnding"&&i.events[g][1].type!=="linePrefix"&&i.events[g][1].type!=="content"){y=i.events[g][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(e.enter("setextHeadingLine"),o=m,c(m)):l(m)}function c(m){return e.enter("setextHeadingLineSequence"),f(m)}function f(m){return m===o?(e.consume(m),f):(e.exit("setextHeadingLineSequence"),Oe(m)?Be(e,d,"lineSuffix")(m):d(m))}function d(m){return m===null||we(m)?(e.exit("setextHeadingLine"),r(m)):l(m)}}const oO={tokenize:sO};function sO(e){const r=this,l=e.attempt(mo,i,e.attempt(this.parser.constructs.flowInitial,o,Be(e,e.attempt(this.parser.constructs.flow,o,e.attempt(hM,o)),"linePrefix")));return l;function i(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),r.currentConstruct=void 0,l}function o(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),r.currentConstruct=void 0,l}}const uO={resolveAll:Sw()},cO=ww("string"),fO=ww("text");function ww(e){return{resolveAll:Sw(e==="text"?dO:void 0),tokenize:r};function r(l){const i=this,o=this.parser.constructs[e],u=l.attempt(o,c,f);return c;function c(g){return m(g)?u(g):f(g)}function f(g){if(g===null){l.consume(g);return}return l.enter("data"),l.consume(g),d}function d(g){return m(g)?(l.exit("data"),u(g)):(l.consume(g),d)}function m(g){if(g===null)return!0;const y=o[g];let b=-1;if(y)for(;++b<y.length;){const v=y[b];if(!v.previous||v.previous.call(i,i.previous))return!0}return!1}}}function Sw(e){return r;function r(l,i){let o=-1,u;for(;++o<=l.length;)u===void 0?l[o]&&l[o][1].type==="data"&&(u=o,o++):(!l[o]||l[o][1].type!=="data")&&(o!==u+2&&(l[u][1].end=l[o-1][1].end,l.splice(u+2,o-u-2),o=u+2),u=void 0);return e?e(l,i):l}}function dO(e,r){let l=0;for(;++l<=e.length;)if((l===e.length||e[l][1].type==="lineEnding")&&e[l-1][1].type==="data"){const i=e[l-1][1],o=r.sliceStream(i);let u=o.length,c=-1,f=0,d;for(;u--;){const m=o[u];if(typeof m=="string"){for(c=m.length;m.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(m===-2)d=!0,f++;else if(m!==-1){u++;break}}if(r._contentTypeTextTrailing&&l===e.length&&(f=0),f){const m={type:l===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:i.start._bufferIndex+c,_index:i.start._index+u,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...m.start},i.start.offset===i.end.offset?Object.assign(i,m):(e.splice(l,0,["enter",m,r],["exit",m,r]),l+=2)}l++}return e}const hO={42:Gt,43:Gt,45:Gt,48:Gt,49:Gt,50:Gt,51:Gt,52:Gt,53:Gt,54:Gt,55:Gt,56:Gt,57:Gt,62:mw},mO={91:xM},pO={[-2]:Ed,[-1]:Ed,32:Ed},gO={35:CM,42:Js,45:[Mb,Js],60:jM,61:Mb,95:Js,96:_b,126:_b},yO={38:gw,92:pw},xO={[-5]:Nd,[-4]:Nd,[-3]:Nd,33:YM,38:gw,42:uh,60:[X4,DM],91:XM,92:[SM,pw],93:am,95:uh,96:oM},bO={null:[uh,uO]},vO={null:[42,95]},wO={null:[]},SO=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vO,contentInitial:mO,disable:wO,document:hO,flow:gO,flowInitial:pO,insideSpan:bO,string:yO,text:xO},Symbol.toStringTag,{value:"Module"}));function kO(e,r,l){let i={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const o={},u=[];let c=[],f=[];const d={attempt:B(F),check:B(z),consume:O,enter:_,exit:U,interrupt:B(z,{interrupt:!0})},m={code:null,containerState:{},defineSkip:C,events:[],now:k,parser:e,previous:null,sliceSerialize:b,sliceStream:v,write:y};let g=r.tokenize.call(m,d);return r.resolveAll&&u.push(r),m;function y(re){return c=yn(c,re),A(),c[c.length-1]!==null?[]:($(r,0),m.events=Bu(u,m.events,m),m.events)}function b(re,le){return EO(v(re),le)}function v(re){return CO(c,re)}function k(){const{_bufferIndex:re,_index:le,line:se,column:J,offset:Z}=i;return{_bufferIndex:re,_index:le,line:se,column:J,offset:Z}}function C(re){o[re.line]=re.column,P()}function A(){let re;for(;i._index<c.length;){const le=c[i._index];if(typeof le=="string")for(re=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===re&&i._bufferIndex<le.length;)N(le.charCodeAt(i._bufferIndex));else N(le)}}function N(re){g=g(re)}function O(re){we(re)?(i.line++,i.column=1,i.offset+=re===-3?2:1,P()):re!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),m.previous=re}function _(re,le){const se=le||{};return se.type=re,se.start=k(),m.events.push(["enter",se,m]),f.push(se),se}function U(re){const le=f.pop();return le.end=k(),m.events.push(["exit",le,m]),le}function F(re,le){$(re,le.from)}function z(re,le){le.restore()}function B(re,le){return se;function se(J,Z,D){let X,ne,ie,j;return Array.isArray(J)?G(J):"tokenize"in J?G([J]):R(J);function R(ce){return Ce;function Ce(Ue){const ve=Ue!==null&&ce[Ue],at=Ue!==null&&ce.null,dt=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(at)?at:at?[at]:[]];return G(dt)(Ue)}}function G(ce){return X=ce,ne=0,ce.length===0?D:T(ce[ne])}function T(ce){return Ce;function Ce(Ue){return j=ae(),ie=ce,ce.partial||(m.currentConstruct=ce),ce.name&&m.parser.constructs.disable.null.includes(ce.name)?de():ce.tokenize.call(le?Object.assign(Object.create(m),le):m,d,ue,de)(Ue)}}function ue(ce){return re(ie,j),Z}function de(ce){return j.restore(),++ne<X.length?T(X[ne]):D}}}function $(re,le){re.resolveAll&&!u.includes(re)&&u.push(re),re.resolve&&ln(m.events,le,m.events.length-le,re.resolve(m.events.slice(le),m)),re.resolveTo&&(m.events=re.resolveTo(m.events,m))}function ae(){const re=k(),le=m.previous,se=m.currentConstruct,J=m.events.length,Z=Array.from(f);return{from:J,restore:D};function D(){i=re,m.previous=le,m.currentConstruct=se,m.events.length=J,f=Z,P()}}function P(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function CO(e,r){const l=r.start._index,i=r.start._bufferIndex,o=r.end._index,u=r.end._bufferIndex;let c;if(l===o)c=[e[l].slice(i,u)];else{if(c=e.slice(l,o),i>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(i):c.shift()}u>0&&c.push(e[o].slice(0,u))}return c}function EO(e,r){let l=-1;const i=[];let o;for(;++l<e.length;){const u=e[l];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
386
+ `;break}case-3:{c=`\r
387
+ `;break}case-2:{c=r?" ":" ";break}case-1:{if(!r&&o)continue;c=" ";break}default:c=String.fromCharCode(u)}o=u===-2,i.push(c)}return i.join("")}function NO(e){const i={constructs:dw([SO,...(e||{}).extensions||[]]),content:o(q4),defined:[],document:o(V4),flow:o(oO),lazy:{},string:o(cO),text:o(fO)};return i;function o(u){return c;function c(f){return kO(i,u,f)}}}function AO(e){for(;!yw(e););return e}const Ob=/[\0\t\n\r]/g;function jO(){let e=1,r="",l=!0,i;return o;function o(u,c,f){const d=[];let m,g,y,b,v;for(u=r+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),y=0,r="",l&&(u.charCodeAt(0)===65279&&y++,l=void 0);y<u.length;){if(Ob.lastIndex=y,m=Ob.exec(u),b=m&&m.index!==void 0?m.index:u.length,v=u.charCodeAt(b),!m){r=u.slice(y);break}if(v===10&&y===b&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),y<b&&(d.push(u.slice(y,b)),e+=b-y),v){case 0:{d.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,d.push(-2);e++<g;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}y=b+1}return f&&(i&&d.push(-5),r&&d.push(r),d.push(null)),d}}const TO=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _O(e){return e.replace(TO,RO)}function RO(e,r,l){if(r)return r;if(l.charCodeAt(0)===35){const o=l.charCodeAt(1),u=o===120||o===88;return hw(l.slice(u?2:1),u?16:10)}return im(l)||e}const kw={}.hasOwnProperty;function MO(e,r,l){return r&&typeof r=="object"&&(l=r,r=void 0),OO(l)(AO(NO(l).document().write(jO()(e,r,!0))))}function OO(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u($t),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:u(jn),blockQuote:u(at),characterEscape:ae,characterReference:ae,codeFenced:u(dt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(dt,c),codeText:u(At,c),codeTextData:ae,data:ae,codeFlowValue:ae,definition:u(wt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(ht),hardBreakEscape:u(Tn),hardBreakTrailing:u(Tn),htmlFlow:u(xr,c),htmlFlowData:ae,htmlText:u(xr,c),htmlTextData:ae,image:u(br),label:c,link:u($t),listItem:u(al),listItemValue:b,listOrdered:u(vr,y),listUnordered:u(vr),paragraph:u(Ii),reference:T,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(jn),strong:u(Ll),thematicBreak:u(Bl)},exit:{atxHeading:d(),atxHeadingSequence:F,autolink:d(),autolinkEmail:ve,autolinkProtocol:Ue,blockQuote:d(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:ce,characterReference:Ce,codeFenced:d(A),codeFencedFence:C,codeFencedFenceInfo:v,codeFencedFenceMeta:k,codeFlowValue:P,codeIndented:d(N),codeText:d(Z),codeTextData:P,data:P,definition:d(),definitionDestinationString:U,definitionLabelString:O,definitionTitleString:_,emphasis:d(),hardBreakEscape:d(le),hardBreakTrailing:d(le),htmlFlow:d(se),htmlFlowData:P,htmlText:d(J),htmlTextData:P,image:d(X),label:ie,labelText:ne,lineEnding:re,link:d(D),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ue,resourceDestinationString:j,resourceTitleString:R,resource:G,setextHeading:d($),setextHeadingLineSequence:B,setextHeadingText:z,strong:d(),thematicBreak:d()}};Cw(r,(e||{}).mdastExtensions||[]);const l={};return i;function i(H){let K={type:"root",children:[]};const fe={stack:[K],tokenStack:[],config:r,enter:f,exit:m,buffer:c,resume:g,data:l},ge=[];let Ee=-1;for(;++Ee<H.length;)if(H[Ee][1].type==="listOrdered"||H[Ee][1].type==="listUnordered")if(H[Ee][0]==="enter")ge.push(Ee);else{const Lt=ge.pop();Ee=o(H,Lt,Ee)}for(Ee=-1;++Ee<H.length;){const Lt=r[H[Ee][0]];kw.call(Lt,H[Ee][1].type)&&Lt[H[Ee][1].type].call(Object.assign({sliceSerialize:H[Ee][2].sliceSerialize},fe),H[Ee][1])}if(fe.tokenStack.length>0){const Lt=fe.tokenStack[fe.tokenStack.length-1];(Lt[1]||zb).call(fe,void 0,Lt[0])}for(K.position={start:Xr(H.length>0?H[0][1].start:{line:1,column:1,offset:0}),end:Xr(H.length>0?H[H.length-2][1].end:{line:1,column:1,offset:0})},Ee=-1;++Ee<r.transforms.length;)K=r.transforms[Ee](K)||K;return K}function o(H,K,fe){let ge=K-1,Ee=-1,Lt=!1,Gn,Mt,mt,Bt;for(;++ge<=fe;){const Xe=H[ge];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?Ee++:Ee--,Bt=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(Gn&&!Bt&&!Ee&&!mt&&(mt=ge),Bt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bt=void 0}if(!Ee&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||Ee===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(Gn){let wr=ge;for(Mt=void 0;wr--;){const bn=H[wr];if(bn[1].type==="lineEnding"||bn[1].type==="lineEndingBlank"){if(bn[0]==="exit")continue;Mt&&(H[Mt][1].type="lineEndingBlank",Lt=!0),bn[1].type="lineEnding",Mt=wr}else if(!(bn[1].type==="linePrefix"||bn[1].type==="blockQuotePrefix"||bn[1].type==="blockQuotePrefixWhitespace"||bn[1].type==="blockQuoteMarker"||bn[1].type==="listItemIndent"))break}mt&&(!Mt||mt<Mt)&&(Gn._spread=!0),Gn.end=Object.assign({},Mt?H[Mt][1].start:Xe[1].end),H.splice(Mt||ge,0,["exit",Gn,Xe[2]]),ge++,fe++}if(Xe[1].type==="listItemPrefix"){const wr={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};Gn=wr,H.splice(ge,0,["enter",wr,Xe[2]]),ge++,fe++,mt=void 0,Bt=!0}}}return H[K][1]._spread=Lt,fe}function u(H,K){return fe;function fe(ge){f.call(this,H(ge),ge),K&&K.call(this,ge)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(H,K,fe){this.stack[this.stack.length-1].children.push(H),this.stack.push(H),this.tokenStack.push([K,fe||void 0]),H.position={start:Xr(K.start),end:void 0}}function d(H){return K;function K(fe){H&&H.call(this,fe),m.call(this,fe)}}function m(H,K){const fe=this.stack.pop(),ge=this.tokenStack.pop();if(ge)ge[0].type!==H.type&&(K?K.call(this,H,ge[0]):(ge[1]||zb).call(this,H,ge[0]));else throw new Error("Cannot close `"+H.type+"` ("+Za({start:H.start,end:H.end})+"): it’s not open");fe.position.end=Xr(H.end)}function g(){return lm(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(H){if(this.data.expectingFirstListItemValue){const K=this.stack[this.stack.length-2];K.start=Number.parseInt(this.sliceSerialize(H),10),this.data.expectingFirstListItemValue=void 0}}function v(){const H=this.resume(),K=this.stack[this.stack.length-1];K.lang=H}function k(){const H=this.resume(),K=this.stack[this.stack.length-1];K.meta=H}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const H=this.resume(),K=this.stack[this.stack.length-1];K.value=H.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const H=this.resume(),K=this.stack[this.stack.length-1];K.value=H.replace(/(\r?\n|\r)$/g,"")}function O(H){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.label=K,fe.identifier=kn(this.sliceSerialize(H)).toLowerCase()}function _(){const H=this.resume(),K=this.stack[this.stack.length-1];K.title=H}function U(){const H=this.resume(),K=this.stack[this.stack.length-1];K.url=H}function F(H){const K=this.stack[this.stack.length-1];if(!K.depth){const fe=this.sliceSerialize(H).length;K.depth=fe}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function B(H){const K=this.stack[this.stack.length-1];K.depth=this.sliceSerialize(H).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(H){const fe=this.stack[this.stack.length-1].children;let ge=fe[fe.length-1];(!ge||ge.type!=="text")&&(ge=xt(),ge.position={start:Xr(H.start),end:void 0},fe.push(ge)),this.stack.push(ge)}function P(H){const K=this.stack.pop();K.value+=this.sliceSerialize(H),K.position.end=Xr(H.end)}function re(H){const K=this.stack[this.stack.length-1];if(this.data.atHardBreak){const fe=K.children[K.children.length-1];fe.position.end=Xr(H.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(K.type)&&(ae.call(this,H),P.call(this,H))}function le(){this.data.atHardBreak=!0}function se(){const H=this.resume(),K=this.stack[this.stack.length-1];K.value=H}function J(){const H=this.resume(),K=this.stack[this.stack.length-1];K.value=H}function Z(){const H=this.resume(),K=this.stack[this.stack.length-1];K.value=H}function D(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=K,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function X(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const K=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=K,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function ne(H){const K=this.sliceSerialize(H),fe=this.stack[this.stack.length-2];fe.label=_O(K),fe.identifier=kn(K).toLowerCase()}function ie(){const H=this.stack[this.stack.length-1],K=this.resume(),fe=this.stack[this.stack.length-1];if(this.data.inReference=!0,fe.type==="link"){const ge=H.children;fe.children=ge}else fe.alt=K}function j(){const H=this.resume(),K=this.stack[this.stack.length-1];K.url=H}function R(){const H=this.resume(),K=this.stack[this.stack.length-1];K.title=H}function G(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function ue(H){const K=this.resume(),fe=this.stack[this.stack.length-1];fe.label=K,fe.identifier=kn(this.sliceSerialize(H)).toLowerCase(),this.data.referenceType="full"}function de(H){this.data.characterReferenceType=H.type}function ce(H){const K=this.sliceSerialize(H),fe=this.data.characterReferenceType;let ge;fe?(ge=hw(K,fe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ge=im(K);const Ee=this.stack[this.stack.length-1];Ee.value+=ge}function Ce(H){const K=this.stack.pop();K.position.end=Xr(H.end)}function Ue(H){P.call(this,H);const K=this.stack[this.stack.length-1];K.url=this.sliceSerialize(H)}function ve(H){P.call(this,H);const K=this.stack[this.stack.length-1];K.url="mailto:"+this.sliceSerialize(H)}function at(){return{type:"blockquote",children:[]}}function dt(){return{type:"code",lang:null,meta:null,value:""}}function At(){return{type:"inlineCode",value:""}}function wt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ht(){return{type:"emphasis",children:[]}}function jn(){return{type:"heading",depth:0,children:[]}}function Tn(){return{type:"break"}}function xr(){return{type:"html",value:""}}function br(){return{type:"image",title:null,url:"",alt:null}}function $t(){return{type:"link",title:null,url:"",children:[]}}function vr(H){return{type:"list",ordered:H.type==="listOrdered",start:null,spread:H._spread,children:[]}}function al(H){return{type:"listItem",spread:H._spread,checked:null,children:[]}}function Ii(){return{type:"paragraph",children:[]}}function Ll(){return{type:"strong",children:[]}}function xt(){return{type:"text",value:""}}function Bl(){return{type:"thematicBreak"}}}function Xr(e){return{line:e.line,column:e.column,offset:e.offset}}function Cw(e,r){let l=-1;for(;++l<r.length;){const i=r[l];Array.isArray(i)?Cw(e,i):zO(e,i)}}function zO(e,r){let l;for(l in r)if(kw.call(r,l))switch(l){case"canContainEols":{const i=r[l];i&&e[l].push(...i);break}case"transforms":{const i=r[l];i&&e[l].push(...i);break}case"enter":case"exit":{const i=r[l];i&&Object.assign(e[l],i);break}}}function zb(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+Za({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Za({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Za({start:r.start,end:r.end})+") is still open")}function DO(e){const r=this;r.parser=l;function l(i){return MO(i,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function LO(e,r){const l={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,l),e.applyData(r,l)}function BO(e,r){const l={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,l),[e.applyData(r,l),{type:"text",value:`
388
+ `}]}function UO(e,r){const l=r.value?r.value+`
389
+ `:"",i={},o=r.lang?r.lang.split(/\s+/):[];o.length>0&&(i.className=["language-"+o[0]]);let u={type:"element",tagName:"code",properties:i,children:[{type:"text",value:l}]};return r.meta&&(u.data={meta:r.meta}),e.patch(r,u),u=e.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(r,u),u}function HO(e,r){const l={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function PO(e,r){const l={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function qO(e,r){const l=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(r.identifier).toUpperCase(),o=Vi(i.toLowerCase()),u=e.footnoteOrder.indexOf(i);let c,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(i,f);const d={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+o,id:l+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(r,d);const m={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(r,m),e.applyData(r,m)}function FO(e,r){const l={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function VO(e,r){if(e.options.allowDangerousHtml){const l={type:"raw",value:r.value};return e.patch(r,l),e.applyData(r,l)}}function Ew(e,r){const l=r.referenceType;let i="]";if(l==="collapsed"?i+="[]":l==="full"&&(i+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+i}];const o=e.all(r),u=o[0];u&&u.type==="text"?u.value="["+u.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=i:o.push({type:"text",value:i}),o}function IO(e,r){const l=String(r.identifier).toUpperCase(),i=e.definitionById.get(l);if(!i)return Ew(e,r);const o={src:Vi(i.url||""),alt:r.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const u={type:"element",tagName:"img",properties:o,children:[]};return e.patch(r,u),e.applyData(r,u)}function GO(e,r){const l={src:Vi(r.url)};r.alt!==null&&r.alt!==void 0&&(l.alt=r.alt),r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"img",properties:l,children:[]};return e.patch(r,i),e.applyData(r,i)}function YO(e,r){const l={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,l);const i={type:"element",tagName:"code",properties:{},children:[l]};return e.patch(r,i),e.applyData(r,i)}function $O(e,r){const l=String(r.identifier).toUpperCase(),i=e.definitionById.get(l);if(!i)return Ew(e,r);const o={href:Vi(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const u={type:"element",tagName:"a",properties:o,children:e.all(r)};return e.patch(r,u),e.applyData(r,u)}function XO(e,r){const l={href:Vi(r.url)};r.title!==null&&r.title!==void 0&&(l.title=r.title);const i={type:"element",tagName:"a",properties:l,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function QO(e,r,l){const i=e.all(r),o=l?ZO(l):Nw(r),u={},c=[];if(typeof r.checked=="boolean"){const g=i[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const g=i[f];(o||f!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
390
+ `}),g.type==="element"&&g.tagName==="p"&&!o?c.push(...g.children):c.push(g)}const d=i[i.length-1];d&&(o||d.type!=="element"||d.tagName!=="p")&&c.push({type:"text",value:`
391
+ `});const m={type:"element",tagName:"li",properties:u,children:c};return e.patch(r,m),e.applyData(r,m)}function ZO(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const l=e.children;let i=-1;for(;!r&&++i<l.length;)r=Nw(l[i])}return r}function Nw(e){const r=e.spread;return r??e.children.length>1}function KO(e,r){const l={},i=e.all(r);let o=-1;for(typeof r.start=="number"&&r.start!==1&&(l.start=r.start);++o<i.length;){const c=i[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){l.className=["contains-task-list"];break}}const u={type:"element",tagName:r.ordered?"ol":"ul",properties:l,children:e.wrap(i,!0)};return e.patch(r,u),e.applyData(r,u)}function JO(e,r){const l={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function WO(e,r){const l={type:"root",children:e.wrap(e.all(r))};return e.patch(r,l),e.applyData(r,l)}function e3(e,r){const l={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function t3(e,r){const l=e.all(r),i=l.shift(),o=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(r.children[0],c),o.push(c)}if(l.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(l,!0)},f=em(r.children[1]),d=iw(r.children[r.children.length-1]);f&&d&&(c.position={start:f,end:d}),o.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(r,u),e.applyData(r,u)}function n3(e,r,l){const i=l?l.children:void 0,u=(i?i.indexOf(r):1)===0?"th":"td",c=l&&l.type==="table"?l.align:void 0,f=c?c.length:r.children.length;let d=-1;const m=[];for(;++d<f;){const y=r.children[d],b={},v=c?c[d]:void 0;v&&(b.align=v);let k={type:"element",tagName:u,properties:b,children:[]};y&&(k.children=e.all(y),e.patch(y,k),k=e.applyData(y,k)),m.push(k)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(r,g),e.applyData(r,g)}function r3(e,r){const l={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}const Db=9,Lb=32;function l3(e){const r=String(e),l=/\r?\n|\r/g;let i=l.exec(r),o=0;const u=[];for(;i;)u.push(Bb(r.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=l.exec(r);return u.push(Bb(r.slice(o),o>0,!1)),u.join("")}function Bb(e,r,l){let i=0,o=e.length;if(r){let u=e.codePointAt(i);for(;u===Db||u===Lb;)i++,u=e.codePointAt(i)}if(l){let u=e.codePointAt(o-1);for(;u===Db||u===Lb;)o--,u=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function i3(e,r){const l={type:"text",value:l3(String(r.value))};return e.patch(r,l),e.applyData(r,l)}function a3(e,r){const l={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,l),e.applyData(r,l)}const o3={blockquote:LO,break:BO,code:UO,delete:HO,emphasis:PO,footnoteReference:qO,heading:FO,html:VO,imageReference:IO,image:GO,inlineCode:YO,linkReference:$O,link:XO,listItem:QO,list:KO,paragraph:JO,root:WO,strong:e3,table:t3,tableCell:r3,tableRow:n3,text:i3,thematicBreak:a3,toml:Fs,yaml:Fs,definition:Fs,footnoteDefinition:Fs};function Fs(){}const Aw=-1,Uu=0,Ja=1,fu=2,om=3,sm=4,um=5,cm=6,jw=7,Tw=8,Ub=typeof self=="object"?self:globalThis,s3=(e,r)=>{const l=(o,u)=>(e.set(u,o),o),i=o=>{if(e.has(o))return e.get(o);const[u,c]=r[o];switch(u){case Uu:case Aw:return l(c,o);case Ja:{const f=l([],o);for(const d of c)f.push(i(d));return f}case fu:{const f=l({},o);for(const[d,m]of c)f[i(d)]=i(m);return f}case om:return l(new Date(c),o);case sm:{const{source:f,flags:d}=c;return l(new RegExp(f,d),o)}case um:{const f=l(new Map,o);for(const[d,m]of c)f.set(i(d),i(m));return f}case cm:{const f=l(new Set,o);for(const d of c)f.add(i(d));return f}case jw:{const{name:f,message:d}=c;return l(new Ub[f](d),o)}case Tw:return l(BigInt(c),o);case"BigInt":return l(Object(BigInt(c)),o);case"ArrayBuffer":return l(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return l(new DataView(f),c)}}return l(new Ub[u](c),o)};return i},Hb=e=>s3(new Map,e)(0),Ni="",{toString:u3}={},{keys:c3}=Object,Ga=e=>{const r=typeof e;if(r!=="object"||!e)return[Uu,r];const l=u3.call(e).slice(8,-1);switch(l){case"Array":return[Ja,Ni];case"Object":return[fu,Ni];case"Date":return[om,Ni];case"RegExp":return[sm,Ni];case"Map":return[um,Ni];case"Set":return[cm,Ni];case"DataView":return[Ja,l]}return l.includes("Array")?[Ja,l]:l.includes("Error")?[jw,l]:[fu,l]},Vs=([e,r])=>e===Uu&&(r==="function"||r==="symbol"),f3=(e,r,l,i)=>{const o=(c,f)=>{const d=i.push(c)-1;return l.set(f,d),d},u=c=>{if(l.has(c))return l.get(c);let[f,d]=Ga(c);switch(f){case Uu:{let g=c;switch(d){case"bigint":f=Tw,g=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);g=null;break;case"undefined":return o([Aw],c)}return o([f,g],c)}case Ja:{if(d){let b=c;return d==="DataView"?b=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(c)),o([d,[...b]],c)}const g=[],y=o([f,g],c);for(const b of c)g.push(u(b));return y}case fu:{if(d)switch(d){case"BigInt":return o([d,c.toString()],c);case"Boolean":case"Number":case"String":return o([d,c.valueOf()],c)}if(r&&"toJSON"in c)return u(c.toJSON());const g=[],y=o([f,g],c);for(const b of c3(c))(e||!Vs(Ga(c[b])))&&g.push([u(b),u(c[b])]);return y}case om:return o([f,c.toISOString()],c);case sm:{const{source:g,flags:y}=c;return o([f,{source:g,flags:y}],c)}case um:{const g=[],y=o([f,g],c);for(const[b,v]of c)(e||!(Vs(Ga(b))||Vs(Ga(v))))&&g.push([u(b),u(v)]);return y}case cm:{const g=[],y=o([f,g],c);for(const b of c)(e||!Vs(Ga(b)))&&g.push(u(b));return y}}const{message:m}=c;return o([f,{name:d,message:m}],c)};return u},Pb=(e,{json:r,lossy:l}={})=>{const i=[];return f3(!(r||l),!!r,new Map,i)(e),i},du=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?Hb(Pb(e,r)):structuredClone(e):(e,r)=>Hb(Pb(e,r));function d3(e,r){const l=[{type:"text",value:"↩"}];return r>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),l}function h3(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function m3(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=e.options.footnoteBackContent||d3,i=e.options.footnoteBackLabel||h3,o=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const m=e.footnoteById.get(e.footnoteOrder[d]);if(!m)continue;const g=e.all(m),y=String(m.identifier).toUpperCase(),b=Vi(y.toLowerCase());let v=0;const k=[],C=e.footnoteCounts.get(y);for(;C!==void 0&&++v<=C;){k.length>0&&k.push({type:"text",value:" "});let O=typeof l=="string"?l:l(d,v);typeof O=="string"&&(O={type:"text",value:O}),k.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+b+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,v),className:["data-footnote-backref"]},children:Array.isArray(O)?O:[O]})}const A=g[g.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const O=A.children[A.children.length-1];O&&O.type==="text"?O.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...k)}else g.push(...k);const N={type:"element",tagName:"li",properties:{id:r+"fn-"+b},children:e.wrap(g,!0)};e.patch(m,N),f.push(N)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...du(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
392
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
393
+ `}]}}const Hu=(function(e){if(e==null)return x3;if(typeof e=="function")return Pu(e);if(typeof e=="object")return Array.isArray(e)?p3(e):g3(e);if(typeof e=="string")return y3(e);throw new Error("Expected function, string, or object as test")});function p3(e){const r=[];let l=-1;for(;++l<e.length;)r[l]=Hu(e[l]);return Pu(i);function i(...o){let u=-1;for(;++u<r.length;)if(r[u].apply(this,o))return!0;return!1}}function g3(e){const r=e;return Pu(l);function l(i){const o=i;let u;for(u in e)if(o[u]!==r[u])return!1;return!0}}function y3(e){return Pu(r);function r(l){return l&&l.type===e}}function Pu(e){return r;function r(l,i,o){return!!(b3(l)&&e.call(this,l,typeof i=="number"?i:void 0,o||void 0))}}function x3(){return!0}function b3(e){return e!==null&&typeof e=="object"&&"type"in e}const _w=[],v3=!0,ch=!1,w3="skip";function Rw(e,r,l,i){let o;typeof r=="function"&&typeof l!="function"?(i=l,l=r):o=r;const u=Hu(o),c=i?-1:1;f(e,void 0,[])();function f(d,m,g){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(v?"<"+v+">":""))+")"})}return b;function b(){let v=_w,k,C,A;if((!r||u(d,m,g[g.length-1]||void 0))&&(v=S3(l(d,g)),v[0]===ch))return v;if("children"in d&&d.children){const N=d;if(N.children&&v[0]!==w3)for(C=(i?N.children.length:-1)+c,A=g.concat(N);C>-1&&C<N.children.length;){const O=N.children[C];if(k=f(O,C,A)(),k[0]===ch)return k;C=typeof k[1]=="number"?k[1]:C+c}}return v}}}function S3(e){return Array.isArray(e)?e:typeof e=="number"?[v3,e]:e==null?_w:[e]}function fm(e,r,l,i){let o,u,c;typeof r=="function"&&typeof l!="function"?(u=void 0,c=r,o=l):(u=r,c=l,o=i),Rw(e,u,f,o);function f(d,m){const g=m[m.length-1],y=g?g.children.indexOf(d):void 0;return c(d,y,g)}}const fh={}.hasOwnProperty,k3={};function C3(e,r){const l=r||k3,i=new Map,o=new Map,u=new Map,c={...o3,...l.handlers},f={all:m,applyData:N3,definitionById:i,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:c,one:d,options:l,patch:E3,wrap:j3};return fm(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?i:o,b=String(g.identifier).toUpperCase();y.has(b)||y.set(b,g)}}),f;function d(g,y){const b=g.type,v=f.handlers[b];if(fh.call(f.handlers,b)&&v)return v(f,g,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in g){const{children:C,...A}=g,N=du(A);return N.children=f.all(g),N}return du(g)}return(f.options.unknownHandler||A3)(f,g,y)}function m(g){const y=[];if("children"in g){const b=g.children;let v=-1;for(;++v<b.length;){const k=f.one(b[v],g);if(k){if(v&&b[v-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=qb(k.value)),!Array.isArray(k)&&k.type==="element")){const C=k.children[0];C&&C.type==="text"&&(C.value=qb(C.value))}Array.isArray(k)?y.push(...k):y.push(k)}}}return y}}function E3(e,r){e.position&&(r.position=h4(e))}function N3(e,r){let l=r;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,u=e.data.hProperties;if(typeof i=="string")if(l.type==="element")l.tagName=i;else{const c="children"in l?l.children:[l];l={type:"element",tagName:i,properties:{},children:c}}l.type==="element"&&u&&Object.assign(l.properties,du(u)),"children"in l&&l.children&&o!==null&&o!==void 0&&(l.children=o)}return l}function A3(e,r){const l=r.data||{},i="value"in r&&!(fh.call(l,"hProperties")||fh.call(l,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function j3(e,r){const l=[];let i=-1;for(r&&l.push({type:"text",value:`
394
+ `});++i<e.length;)i&&l.push({type:"text",value:`
395
+ `}),l.push(e[i]);return r&&e.length>0&&l.push({type:"text",value:`
396
+ `}),l}function qb(e){let r=0,l=e.charCodeAt(r);for(;l===9||l===32;)r++,l=e.charCodeAt(r);return e.slice(r)}function Fb(e,r){const l=C3(e,r),i=l.one(e,void 0),o=m3(l),u=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
397
+ `},o),u}function T3(e,r){return e&&"run"in e?async function(l,i){const o=Fb(l,{file:i,...r});await e.run(o,i)}:function(l,i){return Fb(l,{file:i,...e||r})}}function Vb(e){if(e)throw e}var Ad,Ib;function _3(){if(Ib)return Ad;Ib=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(m){return typeof Array.isArray=="function"?Array.isArray(m):r.call(m)==="[object Array]"},u=function(m){if(!m||r.call(m)!=="[object Object]")return!1;var g=e.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&e.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!g&&!y)return!1;var b;for(b in m);return typeof b>"u"||e.call(m,b)},c=function(m,g){l&&g.name==="__proto__"?l(m,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):m[g.name]=g.newValue},f=function(m,g){if(g==="__proto__")if(e.call(m,g)){if(i)return i(m,g).value}else return;return m[g]};return Ad=function d(){var m,g,y,b,v,k,C=arguments[0],A=1,N=arguments.length,O=!1;for(typeof C=="boolean"&&(O=C,C=arguments[1]||{},A=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});A<N;++A)if(m=arguments[A],m!=null)for(g in m)y=f(C,g),b=f(m,g),C!==b&&(O&&b&&(u(b)||(v=o(b)))?(v?(v=!1,k=y&&o(y)?y:[]):k=y&&u(y)?y:{},c(C,{name:g,newValue:d(O,k,b)})):typeof b<"u"&&c(C,{name:g,newValue:b}));return C},Ad}var R3=_3();const jd=pu(R3);function dh(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function M3(){const e=[],r={run:l,use:i};return r;function l(...o){let u=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...o);function f(d,...m){const g=e[++u];let y=-1;if(d){c(d);return}for(;++y<o.length;)(m[y]===null||m[y]===void 0)&&(m[y]=o[y]);o=m,g?O3(g,f)(...m):c(null,...m)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),r}}function O3(e,r){let l;return i;function i(...c){const f=e.length>c.length;let d;f&&c.push(o);try{d=e.apply(this,c)}catch(m){const g=m;if(f&&l)throw g;return o(g)}f||(d&&d.then&&typeof d.then=="function"?d.then(u,o):d instanceof Error?o(d):u(d))}function o(c,...f){l||(l=!0,r(c,...f))}function u(c){o(null,c)}}const Ln={basename:z3,dirname:D3,extname:L3,join:B3,sep:"/"};function z3(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');po(e);let l=0,i=-1,o=e.length,u;if(r===void 0||r.length===0||r.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(u){l=o+1;break}}else i<0&&(u=!0,i=o+1);return i<0?"":e.slice(l,i)}if(r===e)return"";let c=-1,f=r.length-1;for(;o--;)if(e.codePointAt(o)===47){if(u){l=o+1;break}}else c<0&&(u=!0,c=o+1),f>-1&&(e.codePointAt(o)===r.codePointAt(f--)?f<0&&(i=o):(f=-1,i=c));return l===i?i=c:i<0&&(i=e.length),e.slice(l,i)}function D3(e){if(po(e),e.length===0)return".";let r=-1,l=e.length,i;for(;--l;)if(e.codePointAt(l)===47){if(i){r=l;break}}else i||(i=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function L3(e){po(e);let r=e.length,l=-1,i=0,o=-1,u=0,c;for(;r--;){const f=e.codePointAt(r);if(f===47){if(c){i=r+1;break}continue}l<0&&(c=!0,l=r+1),f===46?o<0?o=r:u!==1&&(u=1):o>-1&&(u=-1)}return o<0||l<0||u===0||u===1&&o===l-1&&o===i+1?"":e.slice(o,l)}function B3(...e){let r=-1,l;for(;++r<e.length;)po(e[r]),e[r]&&(l=l===void 0?e[r]:l+"/"+e[r]);return l===void 0?".":U3(l)}function U3(e){po(e);const r=e.codePointAt(0)===47;let l=H3(e,!r);return l.length===0&&!r&&(l="."),l.length>0&&e.codePointAt(e.length-1)===47&&(l+="/"),r?"/"+l:l}function H3(e,r){let l="",i=0,o=-1,u=0,c=-1,f,d;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(o===c-1||u===1))if(o!==c-1&&u===2){if(l.length<2||i!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(d=l.lastIndexOf("/"),d!==l.length-1){d<0?(l="",i=0):(l=l.slice(0,d),i=l.length-1-l.lastIndexOf("/")),o=c,u=0;continue}}else if(l.length>0){l="",i=0,o=c,u=0;continue}}r&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(o+1,c):l=e.slice(o+1,c),i=c-o-1;o=c,u=0}else f===46&&u>-1?u++:u=-1}return l}function po(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const P3={cwd:q3};function q3(){return"/"}function hh(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function F3(e){if(typeof e=="string")e=new URL(e);else if(!hh(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return V3(e)}function V3(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const r=e.pathname;let l=-1;for(;++l<r.length;)if(r.codePointAt(l)===37&&r.codePointAt(l+1)===50){const i=r.codePointAt(l+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(r)}const Td=["history","path","basename","stem","extname","dirname"];class Mw{constructor(r){let l;r?hh(r)?l={path:r}:typeof r=="string"||I3(r)?l={value:r}:l=r:l={},this.cwd="cwd"in l?"":P3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Td.length;){const u=Td[i];u in l&&l[u]!==void 0&&l[u]!==null&&(this[u]=u==="history"?[...l[u]]:l[u])}let o;for(o in l)Td.includes(o)||(this[o]=l[o])}get basename(){return typeof this.path=="string"?Ln.basename(this.path):void 0}set basename(r){Rd(r,"basename"),_d(r,"basename"),this.path=Ln.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Ln.dirname(this.path):void 0}set dirname(r){Gb(this.basename,"dirname"),this.path=Ln.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Ln.extname(this.path):void 0}set extname(r){if(_d(r,"extname"),Gb(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ln.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){hh(r)&&(r=F3(r)),Rd(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Ln.basename(this.path,this.extname):void 0}set stem(r){Rd(r,"stem"),_d(r,"stem"),this.path=Ln.join(this.dirname||"",r+(this.extname||""))}fail(r,l,i){const o=this.message(r,l,i);throw o.fatal=!0,o}info(r,l,i){const o=this.message(r,l,i);return o.fatal=void 0,o}message(r,l,i){const o=new Rt(r,l,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function _d(e,r){if(e&&e.includes(Ln.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Ln.sep+"`")}function Rd(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function Gb(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function I3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const G3=(function(e){const i=this.constructor.prototype,o=i[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,i),u}),Y3={}.hasOwnProperty;class dm extends G3{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=M3()}copy(){const r=new dm;let l=-1;for(;++l<this.attachers.length;){const i=this.attachers[l];r.use(...i)}return r.data(jd(!0,{},this.namespace)),r}data(r,l){return typeof r=="string"?arguments.length===2?(zd("data",this.frozen),this.namespace[r]=l,this):Y3.call(this.namespace,r)&&this.namespace[r]||void 0:r?(zd("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=l.call(r,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const l=Is(r),i=this.parser||this.Parser;return Md("parse",i),i(String(l),l)}process(r,l){const i=this;return this.freeze(),Md("process",this.parser||this.Parser),Od("process",this.compiler||this.Compiler),l?o(void 0,l):new Promise(o);function o(u,c){const f=Is(r),d=i.parse(f);i.run(d,f,function(g,y,b){if(g||!y||!b)return m(g);const v=y,k=i.stringify(v,b);Q3(k)?b.value=k:b.result=k,m(g,b)});function m(g,y){g||!y?c(g):u?u(y):l(void 0,y)}}}processSync(r){let l=!1,i;return this.freeze(),Md("processSync",this.parser||this.Parser),Od("processSync",this.compiler||this.Compiler),this.process(r,o),$b("processSync","process",l),i;function o(u,c){l=!0,Vb(u),i=c}}run(r,l,i){Yb(r),this.freeze();const o=this.transformers;return!i&&typeof l=="function"&&(i=l,l=void 0),i?u(void 0,i):new Promise(u);function u(c,f){const d=Is(l);o.run(r,d,m);function m(g,y,b){const v=y||r;g?f(g):c?c(v):i(void 0,v,b)}}}runSync(r,l){let i=!1,o;return this.run(r,l,u),$b("runSync","run",i),o;function u(c,f){Vb(c),o=f,i=!0}}stringify(r,l){this.freeze();const i=Is(l),o=this.compiler||this.Compiler;return Od("stringify",o),Yb(r),o(r,i)}use(r,...l){const i=this.attachers,o=this.namespace;if(zd("use",this.frozen),r!=null)if(typeof r=="function")d(r,l);else if(typeof r=="object")Array.isArray(r)?f(r):c(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function u(m){if(typeof m=="function")d(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[g,...y]=m;d(g,y)}else c(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function c(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");f(m.plugins),m.settings&&(o.settings=jd(!0,o.settings,m.settings))}function f(m){let g=-1;if(m!=null)if(Array.isArray(m))for(;++g<m.length;){const y=m[g];u(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function d(m,g){let y=-1,b=-1;for(;++y<i.length;)if(i[y][0]===m){b=y;break}if(b===-1)i.push([m,...g]);else if(g.length>0){let[v,...k]=g;const C=i[b][1];dh(C)&&dh(v)&&(v=jd(!0,C,v)),i[b]=[m,v,...k]}}}}const $3=new dm().freeze();function Md(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Od(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function zd(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yb(e){if(!dh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $b(e,r,l){if(!l)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Is(e){return X3(e)?e:new Mw(e)}function X3(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Q3(e){return typeof e=="string"||Z3(e)}function Z3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const K3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xb=[],Qb={allowDangerousHtml:!0},J3=/^(https?|ircs?|mailto|xmpp)$/i,W3=[{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 Li(e){const r=e5(e),l=t5(e);return n5(r.runSync(r.parse(l),l),e)}function e5(e){const r=e.rehypePlugins||Xb,l=e.remarkPlugins||Xb,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Qb}:Qb;return $3().use(DO).use(l).use(T3,i).use(r)}function t5(e){const r=e.children||"",l=new Mw;return typeof r=="string"&&(l.value=r),l}function n5(e,r){const l=r.allowedElements,i=r.allowElement,o=r.components,u=r.disallowedElements,c=r.skipHtml,f=r.unwrapDisallowed,d=r.urlTransform||r5;for(const g of W3)Object.hasOwn(r,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+K3+g.id,void 0);return fm(e,m),x4(e,{Fragment:x.Fragment,components:o,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function m(g,y,b){if(g.type==="raw"&&b&&typeof y=="number")return c?b.children.splice(y,1):b.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let v;for(v in Cd)if(Object.hasOwn(Cd,v)&&Object.hasOwn(g.properties,v)){const k=g.properties[v],C=Cd[v];(C===null||C.includes(g.tagName))&&(g.properties[v]=d(String(k||""),v,g))}}if(g.type==="element"){let v=l?!l.includes(g.tagName):u?u.includes(g.tagName):!1;if(!v&&i&&typeof y=="number"&&(v=!i(g,y,b)),v&&b&&typeof y=="number")return f&&g.children?b.children.splice(y,1,...g.children):b.children.splice(y,1),y}}}function r5(e){const r=e.indexOf(":"),l=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return r===-1||o!==-1&&r>o||l!==-1&&r>l||i!==-1&&r>i||J3.test(e.slice(0,r))?e:""}function Zb(e,r){const l=String(e);if(typeof r!="string")throw new TypeError("Expected character");let i=0,o=l.indexOf(r);for(;o!==-1;)i++,o=l.indexOf(r,o+r.length);return i}function l5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function i5(e,r,l){const o=Hu((l||{}).ignore||[]),u=a5(r);let c=-1;for(;++c<u.length;)Rw(e,"text",f);function f(m,g){let y=-1,b;for(;++y<g.length;){const v=g[y],k=b?b.children:void 0;if(o(v,k?k.indexOf(v):void 0,b))return;b=v}if(b)return d(m,g)}function d(m,g){const y=g[g.length-1],b=u[c][0],v=u[c][1];let k=0;const A=y.children.indexOf(m);let N=!1,O=[];b.lastIndex=0;let _=b.exec(m.value);for(;_;){const U=_.index,F={index:_.index,input:_.input,stack:[...g,m]};let z=v(..._,F);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z===!1?b.lastIndex=U+1:(k!==U&&O.push({type:"text",value:m.value.slice(k,U)}),Array.isArray(z)?O.push(...z):z&&O.push(z),k=U+_[0].length,N=!0),!b.global)break;_=b.exec(m.value)}return N?(k<m.value.length&&O.push({type:"text",value:m.value.slice(k)}),y.children.splice(A,1,...O)):O=[m],A+O.length}}function a5(e){const r=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<l.length;){const o=l[i];r.push([o5(o[0]),s5(o[1])])}return r}function o5(e){return typeof e=="string"?new RegExp(l5(e),"g"):e}function s5(e){return typeof e=="function"?e:function(){return e}}const Dd="phrasing",Ld=["autolink","link","image","label"];function u5(){return{transforms:[g5],enter:{literalAutolink:f5,literalAutolinkEmail:Bd,literalAutolinkHttp:Bd,literalAutolinkWww:Bd},exit:{literalAutolink:p5,literalAutolinkEmail:m5,literalAutolinkHttp:d5,literalAutolinkWww:h5}}}function c5(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Dd,notInConstruct:Ld},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Dd,notInConstruct:Ld},{character:":",before:"[ps]",after:"\\/",inConstruct:Dd,notInConstruct:Ld}]}}function f5(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bd(e){this.config.enter.autolinkProtocol.call(this,e)}function d5(e){this.config.exit.autolinkProtocol.call(this,e)}function h5(e){this.config.exit.data.call(this,e);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(e)}function m5(e){this.config.exit.autolinkEmail.call(this,e)}function p5(e){this.exit(e)}function g5(e){i5(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,y5],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),x5]],{ignore:["link","linkReference"]})}function y5(e,r,l,i,o){let u="";if(!Ow(o)||(/^w/i.test(r)&&(l=r+l,r="",u="http://"),!b5(l)))return!1;const c=v5(l+i);if(!c[0])return!1;const f={type:"link",title:null,url:u+r+c[0],children:[{type:"text",value:r+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function x5(e,r,l,i){return!Ow(i,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+l,children:[{type:"text",value:r+"@"+l}]}}function b5(e){const r=e.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function v5(e){const r=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let l=r[0],i=l.indexOf(")");const o=Zb(e,"(");let u=Zb(e,")");for(;i!==-1&&o>u;)e+=l.slice(0,i+1),l=l.slice(i+1),i=l.indexOf(")"),u++;return[e,l]}function Ow(e,r){const l=e.input.charCodeAt(e.index-1);return(e.index===0||Ml(l)||Lu(l))&&(!r||l!==47)}zw.peek=T5;function w5(){this.buffer()}function S5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function k5(){this.buffer()}function C5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function E5(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=kn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function N5(e){this.exit(e)}function A5(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=kn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function j5(e){this.exit(e)}function T5(){return"["}function zw(e,r,l,i){const o=l.createTracker(i);let u=o.move("[^");const c=l.enter("footnoteReference"),f=l.enter("reference");return u+=o.move(l.safe(l.associationId(e),{after:"]",before:u})),f(),c(),u+=o.move("]"),u}function _5(){return{enter:{gfmFootnoteCallString:w5,gfmFootnoteCall:S5,gfmFootnoteDefinitionLabelString:k5,gfmFootnoteDefinition:C5},exit:{gfmFootnoteCallString:E5,gfmFootnoteCall:N5,gfmFootnoteDefinitionLabelString:A5,gfmFootnoteDefinition:j5}}}function R5(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:l,footnoteReference:zw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(i,o,u,c){const f=u.createTracker(c);let d=f.move("[^");const m=u.enter("footnoteDefinition"),g=u.enter("label");return d+=f.move(u.safe(u.associationId(i),{before:d,after:"]"})),g(),d+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),d+=f.move((r?`
398
+ `:" ")+u.indentLines(u.containerFlow(i,f.current()),r?Dw:M5))),m(),d}}function M5(e,r,l){return r===0?e:Dw(e,r,l)}function Dw(e,r,l){return(l?"":" ")+e}const O5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Lw.peek=U5;function z5(){return{canContainEols:["delete"],enter:{strikethrough:L5},exit:{strikethrough:B5}}}function D5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:O5}],handlers:{delete:Lw}}}function L5(e){this.enter({type:"delete",children:[]},e)}function B5(e){this.exit(e)}function Lw(e,r,l,i){const o=l.createTracker(i),u=l.enter("strikethrough");let c=o.move("~~");return c+=l.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),u(),c}function U5(){return"~"}function H5(e){return e.length}function P5(e,r){const l=r||{},i=(l.align||[]).concat(),o=l.stringLength||H5,u=[],c=[],f=[],d=[];let m=0,g=-1;for(;++g<e.length;){const C=[],A=[];let N=-1;for(e[g].length>m&&(m=e[g].length);++N<e[g].length;){const O=q5(e[g][N]);if(l.alignDelimiters!==!1){const _=o(O);A[N]=_,(d[N]===void 0||_>d[N])&&(d[N]=_)}C.push(O)}c[g]=C,f[g]=A}let y=-1;if(typeof i=="object"&&"length"in i)for(;++y<m;)u[y]=Kb(i[y]);else{const C=Kb(i);for(;++y<m;)u[y]=C}y=-1;const b=[],v=[];for(;++y<m;){const C=u[y];let A="",N="";C===99?(A=":",N=":"):C===108?A=":":C===114&&(N=":");let O=l.alignDelimiters===!1?1:Math.max(1,d[y]-A.length-N.length);const _=A+"-".repeat(O)+N;l.alignDelimiters!==!1&&(O=A.length+O+N.length,O>d[y]&&(d[y]=O),v[y]=O),b[y]=_}c.splice(1,0,b),f.splice(1,0,v),g=-1;const k=[];for(;++g<c.length;){const C=c[g],A=f[g];y=-1;const N=[];for(;++y<m;){const O=C[y]||"";let _="",U="";if(l.alignDelimiters!==!1){const F=d[y]-(A[y]||0),z=u[y];z===114?_=" ".repeat(F):z===99?F%2?(_=" ".repeat(F/2+.5),U=" ".repeat(F/2-.5)):(_=" ".repeat(F/2),U=_):U=" ".repeat(F)}l.delimiterStart!==!1&&!y&&N.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&O==="")&&(l.delimiterStart!==!1||y)&&N.push(" "),l.alignDelimiters!==!1&&N.push(_),N.push(O),l.alignDelimiters!==!1&&N.push(U),l.padding!==!1&&N.push(" "),(l.delimiterEnd!==!1||y!==m-1)&&N.push("|")}k.push(l.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return k.join(`
399
+ `)}function q5(e){return e==null?"":String(e)}function Kb(e){const r=typeof e=="string"?e.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function F5(e,r,l,i){const o=l.enter("blockquote"),u=l.createTracker(i);u.move("> "),u.shift(2);const c=l.indentLines(l.containerFlow(e,u.current()),V5);return o(),c}function V5(e,r,l){return">"+(l?"":" ")+e}function I5(e,r){return Jb(e,r.inConstruct,!0)&&!Jb(e,r.notInConstruct,!1)}function Jb(e,r,l){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return l;let i=-1;for(;++i<r.length;)if(e.includes(r[i]))return!0;return!1}function Wb(e,r,l,i){let o=-1;for(;++o<l.unsafe.length;)if(l.unsafe[o].character===`
400
+ `&&I5(l.stack,l.unsafe[o]))return/[ \t]/.test(i.before)?"":" ";return`\\
401
+ `}function G5(e,r){const l=String(e);let i=l.indexOf(r),o=i,u=0,c=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===o?++u>c&&(c=u):u=1,o=i+r.length,i=l.indexOf(r,o);return c}function Y5(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function $5(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function X5(e,r,l,i){const o=$5(l),u=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(Y5(e,l)){const y=l.enter("codeIndented"),b=l.indentLines(u,Q5);return y(),b}const f=l.createTracker(i),d=o.repeat(Math.max(G5(u,o)+1,3)),m=l.enter("codeFenced");let g=f.move(d);if(e.lang){const y=l.enter(`codeFencedLang${c}`);g+=f.move(l.safe(e.lang,{before:g,after:" ",encode:["`"],...f.current()})),y()}if(e.lang&&e.meta){const y=l.enter(`codeFencedMeta${c}`);g+=f.move(" "),g+=f.move(l.safe(e.meta,{before:g,after:`
402
+ `,encode:["`"],...f.current()})),y()}return g+=f.move(`
403
+ `),u&&(g+=f.move(u+`
404
+ `)),g+=f.move(d),m(),g}function Q5(e,r,l){return(l?"":" ")+e}function hm(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function Z5(e,r,l,i){const o=hm(l),u=o==='"'?"Quote":"Apostrophe",c=l.enter("definition");let f=l.enter("label");const d=l.createTracker(i);let m=d.move("[");return m+=d.move(l.safe(l.associationId(e),{before:m,after:"]",...d.current()})),m+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(l.safe(e.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(f=l.enter("destinationRaw"),m+=d.move(l.safe(e.url,{before:m,after:e.title?" ":`
405
+ `,...d.current()}))),f(),e.title&&(f=l.enter(`title${u}`),m+=d.move(" "+o),m+=d.move(l.safe(e.title,{before:m,after:o,...d.current()})),m+=d.move(o),f()),c(),m}function K5(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function lo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function hu(e,r,l){const i=Di(e),o=Di(r);return i===void 0?o===void 0?l==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Bw.peek=J5;function Bw(e,r,l,i){const o=K5(l),u=l.enter("emphasis"),c=l.createTracker(i),f=c.move(o);let d=c.move(l.containerPhrasing(e,{after:o,before:f,...c.current()}));const m=d.charCodeAt(0),g=hu(i.before.charCodeAt(i.before.length-1),m,o);g.inside&&(d=lo(m)+d.slice(1));const y=d.charCodeAt(d.length-1),b=hu(i.after.charCodeAt(0),y,o);b.inside&&(d=d.slice(0,-1)+lo(y));const v=c.move(o);return u(),l.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+d+v}function J5(e,r,l){return l.options.emphasis||"*"}function W5(e,r){let l=!1;return fm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return l=!0,ch}),!!((!e.depth||e.depth<3)&&lm(e)&&(r.options.setext||l))}function ez(e,r,l,i){const o=Math.max(Math.min(6,e.depth||1),1),u=l.createTracker(i);if(W5(e,l)){const g=l.enter("headingSetext"),y=l.enter("phrasing"),b=l.containerPhrasing(e,{...u.current(),before:`
406
+ `,after:`
407
+ `});return y(),g(),b+`
408
+ `+(o===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
409
+ `))+1))}const c="#".repeat(o),f=l.enter("headingAtx"),d=l.enter("phrasing");u.move(c+" ");let m=l.containerPhrasing(e,{before:"# ",after:`
410
+ `,...u.current()});return/^[\t ]/.test(m)&&(m=lo(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,l.options.closeAtx&&(m+=" "+c),d(),f(),m}Uw.peek=tz;function Uw(e){return e.value||""}function tz(){return"<"}Hw.peek=nz;function Hw(e,r,l,i){const o=hm(l),u=o==='"'?"Quote":"Apostrophe",c=l.enter("image");let f=l.enter("label");const d=l.createTracker(i);let m=d.move("![");return m+=d.move(l.safe(e.alt,{before:m,after:"]",...d.current()})),m+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=l.enter("destinationLiteral"),m+=d.move("<"),m+=d.move(l.safe(e.url,{before:m,after:">",...d.current()})),m+=d.move(">")):(f=l.enter("destinationRaw"),m+=d.move(l.safe(e.url,{before:m,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=l.enter(`title${u}`),m+=d.move(" "+o),m+=d.move(l.safe(e.title,{before:m,after:o,...d.current()})),m+=d.move(o),f()),m+=d.move(")"),c(),m}function nz(){return"!"}Pw.peek=rz;function Pw(e,r,l,i){const o=e.referenceType,u=l.enter("imageReference");let c=l.enter("label");const f=l.createTracker(i);let d=f.move("![");const m=l.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(m+"]["),c();const g=l.stack;l.stack=[],c=l.enter("reference");const y=l.safe(l.associationId(e),{before:d,after:"]",...f.current()});return c(),l.stack=g,u(),o==="full"||!m||m!==y?d+=f.move(y+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function rz(){return"!"}qw.peek=lz;function qw(e,r,l){let i=e.value||"",o="`",u=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(i);)o+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++u<l.unsafe.length;){const c=l.unsafe[u],f=l.compilePattern(c);let d;if(c.atBreak)for(;d=f.exec(i);){let m=d.index;i.charCodeAt(m)===10&&i.charCodeAt(m-1)===13&&m--,i=i.slice(0,m)+" "+i.slice(d.index+1)}}return o+i+o}function lz(){return"`"}function Fw(e,r){const l=lm(e);return!!(!r.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(l===e.url||"mailto:"+l===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Vw.peek=iz;function Vw(e,r,l,i){const o=hm(l),u=o==='"'?"Quote":"Apostrophe",c=l.createTracker(i);let f,d;if(Fw(e,l)){const g=l.stack;l.stack=[],f=l.enter("autolink");let y=c.move("<");return y+=c.move(l.containerPhrasing(e,{before:y,after:">",...c.current()})),y+=c.move(">"),f(),l.stack=g,y}f=l.enter("link"),d=l.enter("label");let m=c.move("[");return m+=c.move(l.containerPhrasing(e,{before:m,after:"](",...c.current()})),m+=c.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=l.enter("destinationLiteral"),m+=c.move("<"),m+=c.move(l.safe(e.url,{before:m,after:">",...c.current()})),m+=c.move(">")):(d=l.enter("destinationRaw"),m+=c.move(l.safe(e.url,{before:m,after:e.title?" ":")",...c.current()}))),d(),e.title&&(d=l.enter(`title${u}`),m+=c.move(" "+o),m+=c.move(l.safe(e.title,{before:m,after:o,...c.current()})),m+=c.move(o),d()),m+=c.move(")"),f(),m}function iz(e,r,l){return Fw(e,l)?"<":"["}Iw.peek=az;function Iw(e,r,l,i){const o=e.referenceType,u=l.enter("linkReference");let c=l.enter("label");const f=l.createTracker(i);let d=f.move("[");const m=l.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(m+"]["),c();const g=l.stack;l.stack=[],c=l.enter("reference");const y=l.safe(l.associationId(e),{before:d,after:"]",...f.current()});return c(),l.stack=g,u(),o==="full"||!m||m!==y?d+=f.move(y+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function az(){return"["}function mm(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function oz(e){const r=mm(e),l=e.options.bulletOther;if(!l)return r==="*"?"-":"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(l===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+l+"`) to be different");return l}function sz(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function Gw(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function uz(e,r,l,i){const o=l.enter("list"),u=l.bulletCurrent;let c=e.ordered?sz(l):mm(l);const f=e.ordered?c==="."?")":".":oz(l);let d=r&&l.bulletLastUsed?c===l.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&g&&(!g.children||!g.children[0])&&l.stack[l.stack.length-1]==="list"&&l.stack[l.stack.length-2]==="listItem"&&l.stack[l.stack.length-3]==="list"&&l.stack[l.stack.length-4]==="listItem"&&l.indexStack[l.indexStack.length-1]===0&&l.indexStack[l.indexStack.length-2]===0&&l.indexStack[l.indexStack.length-3]===0&&(d=!0),Gw(l)===c&&g){let y=-1;for(;++y<e.children.length;){const b=e.children[y];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(c=f),l.bulletCurrent=c;const m=l.containerFlow(e,i);return l.bulletLastUsed=c,l.bulletCurrent=u,o(),m}function cz(e){const r=e.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function fz(e,r,l,i){const o=cz(l);let u=l.bulletCurrent||mm(l);r&&r.type==="list"&&r.ordered&&(u=(typeof r.start=="number"&&r.start>-1?r.start:1)+(l.options.incrementListMarker===!1?0:r.children.indexOf(e))+u);let c=u.length+1;(o==="tab"||o==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=l.createTracker(i);f.move(u+" ".repeat(c-u.length)),f.shift(c);const d=l.enter("listItem"),m=l.indentLines(l.containerFlow(e,f.current()),g);return d(),m;function g(y,b,v){return b?(v?"":" ".repeat(c))+y:(v?u:u+" ".repeat(c-u.length))+y}}function dz(e,r,l,i){const o=l.enter("paragraph"),u=l.enter("phrasing"),c=l.containerPhrasing(e,i);return u(),o(),c}const hz=Hu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function mz(e,r,l,i){return(e.children.some(function(c){return hz(c)})?l.containerPhrasing:l.containerFlow).call(l,e,i)}function pz(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}Yw.peek=gz;function Yw(e,r,l,i){const o=pz(l),u=l.enter("strong"),c=l.createTracker(i),f=c.move(o+o);let d=c.move(l.containerPhrasing(e,{after:o,before:f,...c.current()}));const m=d.charCodeAt(0),g=hu(i.before.charCodeAt(i.before.length-1),m,o);g.inside&&(d=lo(m)+d.slice(1));const y=d.charCodeAt(d.length-1),b=hu(i.after.charCodeAt(0),y,o);b.inside&&(d=d.slice(0,-1)+lo(y));const v=c.move(o+o);return u(),l.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+d+v}function gz(e,r,l){return l.options.strong||"*"}function yz(e,r,l,i){return l.safe(e.value,i)}function xz(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function bz(e,r,l){const i=(Gw(l)+(l.options.ruleSpaces?" ":"")).repeat(xz(l));return l.options.ruleSpaces?i.slice(0,-1):i}const $w={blockquote:F5,break:Wb,code:X5,definition:Z5,emphasis:Bw,hardBreak:Wb,heading:ez,html:Uw,image:Hw,imageReference:Pw,inlineCode:qw,link:Vw,linkReference:Iw,list:uz,listItem:fz,paragraph:dz,root:mz,strong:Yw,text:yz,thematicBreak:bz};function vz(){return{enter:{table:wz,tableData:ev,tableHeader:ev,tableRow:kz},exit:{codeText:Cz,table:Sz,tableData:Ud,tableHeader:Ud,tableRow:Ud}}}function wz(e){const r=e._align;this.enter({type:"table",align:r.map(function(l){return l==="none"?null:l}),children:[]},e),this.data.inTable=!0}function Sz(e){this.exit(e),this.data.inTable=void 0}function kz(e){this.enter({type:"tableRow",children:[]},e)}function Ud(e){this.exit(e)}function ev(e){this.enter({type:"tableCell",children:[]},e)}function Cz(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,Ez));const l=this.stack[this.stack.length-1];l.type,l.value=r,this.exit(e)}function Ez(e,r){return r==="|"?r:e}function Nz(e){const r=e||{},l=r.tableCellPadding,i=r.tablePipeAlign,o=r.stringLength,u=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
411
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:d,tableRow:f}};function c(v,k,C,A){return m(g(v,C,A),v.align)}function f(v,k,C,A){const N=y(v,C,A),O=m([N]);return O.slice(0,O.indexOf(`
412
+ `))}function d(v,k,C,A){const N=C.enter("tableCell"),O=C.enter("phrasing"),_=C.containerPhrasing(v,{...A,before:u,after:u});return O(),N(),_}function m(v,k){return P5(v,{align:k,alignDelimiters:i,padding:l,stringLength:o})}function g(v,k,C){const A=v.children;let N=-1;const O=[],_=k.enter("table");for(;++N<A.length;)O[N]=y(A[N],k,C);return _(),O}function y(v,k,C){const A=v.children;let N=-1;const O=[],_=k.enter("tableRow");for(;++N<A.length;)O[N]=d(A[N],v,k,C);return _(),O}function b(v,k,C){let A=$w.inlineCode(v,k,C);return C.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function Az(){return{exit:{taskListCheckValueChecked:tv,taskListCheckValueUnchecked:tv,paragraph:Tz}}}function jz(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:_z}}}function tv(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function Tz(e){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const i=l.children[0];if(i&&i.type==="text"){const o=r.children;let u=-1,c;for(;++u<o.length;){const f=o[u];if(f.type==="paragraph"){c=f;break}}c===l&&(i.value=i.value.slice(1),i.value.length===0?l.children.shift():l.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,l.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function _z(e,r,l,i){const o=e.children[0],u=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=l.createTracker(i);u&&f.move(c);let d=$w.listItem(e,r,l,{...i,...f.current()});return u&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),d;function m(g){return g+c}}function Rz(){return[u5(),_5(),z5(),vz(),Az()]}function Mz(e){return{extensions:[c5(),R5(e),D5(),Nz(e),jz()]}}const Oz={tokenize:Hz,partial:!0},Xw={tokenize:Pz,partial:!0},Qw={tokenize:qz,partial:!0},Zw={tokenize:Fz,partial:!0},zz={tokenize:Vz,partial:!0},Kw={name:"wwwAutolink",tokenize:Bz,previous:Ww},Jw={name:"protocolAutolink",tokenize:Uz,previous:eS},yr={name:"emailAutolink",tokenize:Lz,previous:tS},In={};function Dz(){return{text:In}}let Al=48;for(;Al<123;)In[Al]=yr,Al++,Al===58?Al=65:Al===91&&(Al=97);In[43]=yr;In[45]=yr;In[46]=yr;In[95]=yr;In[72]=[yr,Jw];In[104]=[yr,Jw];In[87]=[yr,Kw];In[119]=[yr,Kw];function Lz(e,r,l){const i=this;let o,u;return c;function c(y){return!mh(y)||!tS.call(i,i.previous)||pm(i.events)?l(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return mh(y)?(e.consume(y),f):y===64?(e.consume(y),d):l(y)}function d(y){return y===46?e.check(zz,g,m)(y):y===45||y===95||Tt(y)?(u=!0,e.consume(y),d):g(y)}function m(y){return e.consume(y),o=!0,d}function g(y){return u&&o&&Dt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(y)):l(y)}}function Bz(e,r,l){const i=this;return o;function o(c){return c!==87&&c!==119||!Ww.call(i,i.previous)||pm(i.events)?l(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Oz,e.attempt(Xw,e.attempt(Qw,u),l),l)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(c)}}function Uz(e,r,l){const i=this;let o="",u=!1;return c;function c(y){return(y===72||y===104)&&eS.call(i,i.previous)&&!pm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(y),e.consume(y),f):l(y)}function f(y){if(Dt(y)&&o.length<5)return o+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const b=o.toLowerCase();if(b==="http"||b==="https")return e.consume(y),d}return l(y)}function d(y){return y===47?(e.consume(y),u?m:(u=!0,d)):l(y)}function m(y){return y===null||cu(y)||Ze(y)||Ml(y)||Lu(y)?l(y):e.attempt(Xw,e.attempt(Qw,g),l)(y)}function g(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(y)}}function Hz(e,r,l){let i=0;return o;function o(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),o):c===46&&i===3?(e.consume(c),u):l(c)}function u(c){return c===null?l(c):r(c)}}function Pz(e,r,l){let i,o,u;return c;function c(m){return m===46||m===95?e.check(Zw,d,f)(m):m===null||Ze(m)||Ml(m)||m!==45&&Lu(m)?d(m):(u=!0,e.consume(m),c)}function f(m){return m===95?i=!0:(o=i,i=void 0),e.consume(m),c}function d(m){return o||i||!u?l(m):r(m)}}function qz(e,r){let l=0,i=0;return o;function o(c){return c===40?(l++,e.consume(c),o):c===41&&i<l?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(Zw,r,u)(c):c===null||Ze(c)||Ml(c)?r(c):(e.consume(c),o)}function u(c){return c===41&&i++,e.consume(c),o}}function Fz(e,r,l){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),u):f===93?(e.consume(f),o):f===60||f===null||Ze(f)||Ml(f)?r(f):l(f)}function o(f){return f===null||f===40||f===91||Ze(f)||Ml(f)?r(f):i(f)}function u(f){return Dt(f)?c(f):l(f)}function c(f){return f===59?(e.consume(f),i):Dt(f)?(e.consume(f),c):l(f)}}function Vz(e,r,l){return i;function i(u){return e.consume(u),o}function o(u){return Tt(u)?l(u):r(u)}}function Ww(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ze(e)}function eS(e){return!Dt(e)}function tS(e){return!(e===47||mh(e))}function mh(e){return e===43||e===45||e===46||e===95||Tt(e)}function pm(e){let r=e.length,l=!1;for(;r--;){const i=e[r][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){l=!0;break}if(i._gfmAutolinkLiteralWalkedInto){l=!1;break}}return e.length>0&&!l&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const Iz={tokenize:Jz,partial:!0};function Gz(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Qz,continuation:{tokenize:Zz},exit:Kz}},text:{91:{name:"gfmFootnoteCall",tokenize:Xz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Yz,resolveTo:$z}}}}function Yz(e,r,l){const i=this;let o=i.events.length;const u=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;o--;){const d=i.events[o][1];if(d.type==="labelImage"){c=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!c||!c._balanced)return l(d);const m=kn(i.sliceSerialize({start:c.end,end:i.now()}));return m.codePointAt(0)!==94||!u.includes(m.slice(1))?l(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),r(d))}}function $z(e,r){let l=e.length;for(;l--;)if(e[l][1].type==="labelImage"&&e[l][0]==="enter"){e[l][1];break}e[l+1][1].type="data",e[l+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[l+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[l+3][1].end),end:Object.assign({},e[l+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[l+1],e[l+2],["enter",i,r],e[l+3],e[l+4],["enter",o,r],["exit",o,r],["enter",u,r],["enter",c,r],["exit",c,r],["exit",u,r],e[e.length-2],e[e.length-1],["exit",i,r]];return e.splice(l,e.length-l+1,...f),e}function Xz(e,r,l){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u=0,c;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),d}function d(y){return y!==94?l(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",m)}function m(y){if(u>999||y===93&&!c||y===null||y===91||Ze(y))return l(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return o.includes(kn(i.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):l(y)}return Ze(y)||(c=!0),u++,e.consume(y),y===92?g:m}function g(y){return y===91||y===92||y===93?(e.consume(y),u++,m):m(y)}}function Qz(e,r,l){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u,c=0,f;return d;function d(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):l(k)}function g(k){if(c>999||k===93&&!f||k===null||k===91||Ze(k))return l(k);if(k===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return u=kn(i.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return Ze(k)||(f=!0),c++,e.consume(k),k===92?y:g}function y(k){return k===91||k===92||k===93?(e.consume(k),c++,g):g(k)}function b(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),o.includes(u)||o.push(u),Be(e,v,"gfmFootnoteDefinitionWhitespace")):l(k)}function v(k){return r(k)}}function Zz(e,r,l){return e.check(mo,r,e.attempt(Iz,r,l))}function Kz(e){e.exit("gfmFootnoteDefinition")}function Jz(e,r,l){const i=this;return Be(e,o,"gfmFootnoteDefinitionIndent",5);function o(u){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?r(u):l(u)}}function Wz(e){let l=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:u,resolveAll:o};return l==null&&(l=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function o(c,f){let d=-1;for(;++d<c.length;)if(c[d][0]==="enter"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._close){let m=d;for(;m--;)if(c[m][0]==="exit"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._open&&c[d][1].end.offset-c[d][1].start.offset===c[m][1].end.offset-c[m][1].start.offset){c[d][1].type="strikethroughSequence",c[m][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},c[m][1].start),end:Object.assign({},c[d][1].end)},y={type:"strikethroughText",start:Object.assign({},c[m][1].end),end:Object.assign({},c[d][1].start)},b=[["enter",g,f],["enter",c[m][1],f],["exit",c[m][1],f],["enter",y,f]],v=f.parser.constructs.insideSpan.null;v&&ln(b,b.length,0,Bu(v,c.slice(m+1,d),f)),ln(b,b.length,0,[["exit",y,f],["enter",c[d][1],f],["exit",c[d][1],f],["exit",g,f]]),ln(c,m-1,d-m+3,b),d=m+b.length-2;break}}for(d=-1;++d<c.length;)c[d][1].type==="strikethroughSequenceTemporary"&&(c[d][1].type="data");return c}function u(c,f,d){const m=this.previous,g=this.events;let y=0;return b;function b(k){return m===126&&g[g.length-1][1].type!=="characterEscape"?d(k):(c.enter("strikethroughSequenceTemporary"),v(k))}function v(k){const C=Di(m);if(k===126)return y>1?d(k):(c.consume(k),y++,v);if(y<2&&!l)return d(k);const A=c.exit("strikethroughSequenceTemporary"),N=Di(k);return A._open=!N||N===2&&!!C,A._close=!C||C===2&&!!N,f(k)}}}class eD{constructor(){this.map=[]}add(r,l,i){tD(this,r,l,i)}consume(r){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let l=this.map.length;const i=[];for(;l>0;)l-=1,i.push(r.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),r.length=this.map[l][0];i.push(r.slice()),r.length=0;let o=i.pop();for(;o;){for(const u of o)r.push(u);o=i.pop()}this.map.length=0}}function tD(e,r,l,i){let o=0;if(!(l===0&&i.length===0)){for(;o<e.map.length;){if(e.map[o][0]===r){e.map[o][1]+=l,e.map[o][2].push(...i);return}o+=1}e.map.push([r,l,i])}}function nD(e,r){let l=!1;const i=[];for(;r<e.length;){const o=e[r];if(l){if(o[0]==="enter")o[1].type==="tableContent"&&i.push(e[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[r-1][1].type==="tableDelimiterMarker"){const u=i.length-1;i[u]=i[u]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(l=!0);r+=1}return i}function rD(){return{flow:{null:{name:"table",tokenize:lD,resolveAll:iD}}}}function lD(e,r,l){const i=this;let o=0,u=0,c;return f;function f(P){let re=i.events.length-1;for(;re>-1;){const J=i.events[re][1].type;if(J==="lineEnding"||J==="linePrefix")re--;else break}const le=re>-1?i.events[re][1].type:null,se=le==="tableHead"||le==="tableRow"?z:d;return se===z&&i.parser.lazy[i.now().line]?l(P):se(P)}function d(P){return e.enter("tableHead"),e.enter("tableRow"),m(P)}function m(P){return P===124||(c=!0,u+=1),g(P)}function g(P){return P===null?l(P):we(P)?u>1?(u=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),v):l(P):Oe(P)?Be(e,g,"whitespace")(P):(u+=1,c&&(c=!1,o+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),c=!0,g):(e.enter("data"),y(P)))}function y(P){return P===null||P===124||Ze(P)?(e.exit("data"),g(P)):(e.consume(P),P===92?b:y)}function b(P){return P===92||P===124?(e.consume(P),y):y(P)}function v(P){return i.interrupt=!1,i.parser.lazy[i.now().line]?l(P):(e.enter("tableDelimiterRow"),c=!1,Oe(P)?Be(e,k,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):k(P))}function k(P){return P===45||P===58?A(P):P===124?(c=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),C):F(P)}function C(P){return Oe(P)?Be(e,A,"whitespace")(P):A(P)}function A(P){return P===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),N):P===45?(u+=1,N(P)):P===null||we(P)?U(P):F(P)}function N(P){return P===45?(e.enter("tableDelimiterFiller"),O(P)):F(P)}function O(P){return P===45?(e.consume(P),O):P===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(P))}function _(P){return Oe(P)?Be(e,U,"whitespace")(P):U(P)}function U(P){return P===124?k(P):P===null||we(P)?!c||o!==u?F(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(P)):F(P)}function F(P){return l(P)}function z(P){return e.enter("tableRow"),B(P)}function B(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),B):P===null||we(P)?(e.exit("tableRow"),r(P)):Oe(P)?Be(e,B,"whitespace")(P):(e.enter("data"),$(P))}function $(P){return P===null||P===124||Ze(P)?(e.exit("data"),B(P)):(e.consume(P),P===92?ae:$)}function ae(P){return P===92||P===124?(e.consume(P),$):$(P)}}function iD(e,r){let l=-1,i=!0,o=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,d=0,m,g,y;const b=new eD;for(;++l<e.length;){const v=e[l],k=v[1];v[0]==="enter"?k.type==="tableHead"?(f=!1,d!==0&&(nv(b,r,d,m,g),g=void 0,d=0),m={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},b.add(l,0,[["enter",m,r]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(i=!0,y=void 0,u=[0,0,0,0],c=[0,l+1,0,0],f&&(f=!1,g={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},b.add(l,0,[["enter",g,r]])),o=k.type==="tableDelimiterRow"?2:g?3:1):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],y=Gs(b,r,u,o,void 0,y),u=[0,0,0,0]),c[2]=l)):k.type==="tableCellDivider"&&(i?i=!1:(u[1]!==0&&(c[0]=c[1],y=Gs(b,r,u,o,void 0,y)),u=c,c=[u[1],l,0,0])):k.type==="tableHead"?(f=!0,d=l):k.type==="tableRow"||k.type==="tableDelimiterRow"?(d=l,u[1]!==0?(c[0]=c[1],y=Gs(b,r,u,o,l,y)):c[1]!==0&&(y=Gs(b,r,c,o,l,y)),o=0):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(c[3]=l)}for(d!==0&&nv(b,r,d,m,g),b.consume(r.events),l=-1;++l<r.events.length;){const v=r.events[l];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=nD(r.events,l))}return e}function Gs(e,r,l,i,o,u){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";l[0]!==0&&(u.end=Object.assign({},Ai(r.events,l[0])),e.add(l[0],0,[["exit",u,r]]));const d=Ai(r.events,l[1]);if(u={type:c,start:Object.assign({},d),end:Object.assign({},d)},e.add(l[1],0,[["enter",u,r]]),l[2]!==0){const m=Ai(r.events,l[2]),g=Ai(r.events,l[3]),y={type:f,start:Object.assign({},m),end:Object.assign({},g)};if(e.add(l[2],0,[["enter",y,r]]),i!==2){const b=r.events[l[2]],v=r.events[l[3]];if(b[1].end=Object.assign({},v[1].end),b[1].type="chunkText",b[1].contentType="text",l[3]>l[2]+1){const k=l[2]+1,C=l[3]-l[2]-1;e.add(k,C,[])}}e.add(l[3]+1,0,[["exit",y,r]])}return o!==void 0&&(u.end=Object.assign({},Ai(r.events,o)),e.add(o,0,[["exit",u,r]]),u=void 0),u}function nv(e,r,l,i,o){const u=[],c=Ai(r.events,l);o&&(o.end=Object.assign({},c),u.push(["exit",o,r])),i.end=Object.assign({},c),u.push(["exit",i,r]),e.add(l+1,0,u)}function Ai(e,r){const l=e[r],i=l[0]==="enter"?"start":"end";return l[1][i]}const aD={name:"tasklistCheck",tokenize:sD};function oD(){return{text:{91:aD}}}function sD(e,r,l){const i=this;return o;function o(d){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?l(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),u)}function u(d){return Ze(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),c):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),c):l(d)}function c(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):l(d)}function f(d){return we(d)?r(d):Oe(d)?e.check({tokenize:uD},r,l)(d):l(d)}}function uD(e,r,l){return Be(e,i,"whitespace");function i(o){return o===null?l(o):r(o)}}function cD(e){return dw([Dz(),Gz(),Wz(e),rD(),oD()])}const fD={};function Bi(e){const r=this,l=e||fD,i=r.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),u=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(cD(l)),u.push(Rz()),c.push(Mz(l))}function dD({content:e}){return x.jsx("div",{className:"flex gap-2 justify-end",children:x.jsx("div",{className:"max-w-[85%] sm:max-w-[80%] rounded-[20px] py-1.5 px-3.5 bg-muted text-primary border border-border prose prose-sm prose-invert [&_p]:whitespace-pre-line",children:x.jsx(Li,{remarkPlugins:[Bi],components:Du,children:e})})})}function hD({json:e}){return x.jsx("div",{className:"flex gap-3 justify-start",children:x.jsx("div",{className:"flex-1 max-w-[90%]",children:x.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words bg-muted rounded-lg p-3 overflow-auto max-h-96",children:e})})})}function nS({title:e,count:r,children:l,badge:i}){const[o,u]=S.useState(!1);return r===0?null:x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsxs("button",{onClick:()=>u(!o),className:"flex items-center gap-1 cursor-pointer group/section hover:opacity-60 transition-opacity",children:[x.jsx(Kr,{className:xe("h-3.5 w-3.5 text-muted-foreground transition-transform duration-200",o&&"rotate-90")}),x.jsx("span",{className:"text-muted-foreground font-medium",children:e}),x.jsx("span",{className:"text-muted-foreground/60",children:r}),i]}),o&&x.jsx("div",{className:"ml-5",children:l})]})}function Hd({title:e,items:r,icon:l,getIcon:i}){return r.length===0?null:x.jsx(nS,{title:e,count:r.length,children:x.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(o=>x.jsx(Z1,{icon:i?i(o):l,children:o},o))})})}function mD(e){const r=e.match(/^mcp__([^_]+)__(.+)$/);return r?{server:r[1],tool:r[2]}:null}function rS({status:e}){const r=e==="connected"?"bg-emerald-500":e==="pending"?"bg-yellow-500":"bg-red-500";return x.jsx("span",{className:xe("inline-block h-2 w-2 rounded-full shrink-0",r)})}function pD(e){switch(e){case"connected":return"Connected";case"failed":return"Failed";case"needs-auth":return"Needs auth";case"pending":return"Connecting...";case"disabled":return"Disabled";default:return e}}function rv({server:e}){const[r,l]=S.useState(!1),i=e.status==="connected";return x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsxs("button",{onClick:()=>i&&e.tools.length>0&&l(!r),className:xe("flex items-center gap-1.5",i&&e.tools.length>0&&"cursor-pointer hover:opacity-60 transition-opacity"),children:[i&&e.tools.length>0&&x.jsx(Kr,{className:xe("h-3 w-3 text-muted-foreground transition-transform duration-200",r&&"rotate-90")}),x.jsx(rS,{status:e.status}),x.jsx("span",{className:"text-muted-foreground font-medium",children:jl(e.name)}),i?x.jsxs("span",{className:"text-muted-foreground/50",children:[e.tools.length," tools"]}):x.jsx("span",{className:"text-muted-foreground/50",children:pD(e.status)})]}),!i&&e.error&&x.jsx("span",{className:"text-destructive ml-5",children:e.error}),r&&e.tools.length>0&&x.jsx("div",{className:"flex flex-wrap gap-1.5 ml-5",children:e.tools.map(o=>x.jsx(Z1,{icon:Q1(`mcp__${e.name}__${o}`),children:o},o))})]})}function gD({servers:e}){if(e.length===0)return null;const r=e.filter(o=>o.status==="connected"),l=e.filter(o=>o.status!=="connected"),i=l.length>0?x.jsxs("span",{className:"flex items-center gap-1 ml-1",children:[x.jsx(rS,{status:"failed"}),x.jsxs("span",{className:"text-muted-foreground/60",children:[l.length," disconnected"]})]}):null;return x.jsx(nS,{title:"MCP Servers",count:e.length,badge:i,children:x.jsxs("div",{className:"flex flex-col gap-2",children:[r.map(o=>x.jsx(rv,{server:o},o.name)),l.map(o=>x.jsx(rv,{server:o},o.name))]})})}function yD({rawJson:e}){const[r,l]=S.useState(!1);return x.jsxs("div",{className:"flex flex-col gap-1.5",children:[x.jsxs("button",{onClick:()=>l(!r),className:"flex items-center gap-1 cursor-pointer group/section hover:opacity-60 transition-opacity",children:[x.jsx(Kr,{className:xe("h-3.5 w-3.5 text-muted-foreground transition-transform duration-200",r&&"rotate-90")}),x.jsx("span",{className:"text-muted-foreground font-medium",children:"Raw Message"})]}),r&&x.jsx("pre",{className:"ml-5 text-xs whitespace-pre-wrap break-all border border-border rounded-md p-3 overflow-x-auto max-h-96 overflow-y-auto",children:e})]})}function xD({message:e,rawJson:r}){const{coreTools:l,mcpServersWithTools:i}=S.useMemo(()=>{const o=new Map,u=[];for(const f of e.tools){const d=mD(f);if(d){const m=o.get(d.server)||[];m.push(d.tool),o.set(d.server,m)}else u.push(f)}const c=e.mcpServers.map(f=>({name:f.name,status:f.status,error:f.error,tools:o.get(f.name)||[]}));return{coreTools:u,mcpServersWithTools:c}},[e.tools,e.mcpServers]);return x.jsx(ll,{children:x.jsxs(Ou,{expandedContent:x.jsx(zu,{className:"my-4 text-xs",children:x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsx(qR,{children:e.model}),x.jsx(Hd,{title:"Tools",items:l,getIcon:o=>nh[o]??X1}),x.jsx(Hd,{title:"Agents",items:e.agents,icon:Bh}),x.jsx(Hd,{title:"Commands",items:e.slashCommands,icon:eT}),x.jsx(gD,{servers:i}),r&&x.jsx(yD,{rawJson:r})]})}),children:[x.jsx(WA,{className:"h-5 w-5 text-logo"}),x.jsx(el,{children:"Session Started"})]})})}function bD({message:e}){return x.jsx(ll,{className:"hidden",children:x.jsxs(Ou,{expandedContent:x.jsx(zu,{className:"my-4 text-xs",children:x.jsx("pre",{className:"font-mono whitespace-pre-wrap break-all bg-muted border border-border rounded-lg p-2 max-h-64 overflow-auto",children:JSON.stringify(e.accountInfo,null,2)})}),children:[x.jsx("div",{className:"size-5 flex justify-center items-center ",children:x.jsx(Bh,{className:"h-4 w-4 text-muted-foreground"})}),x.jsx(el,{children:"Account"})]})})}function vD({message:e}){return x.jsx("div",{className:"text-pretty prose prose-sm dark:prose-invert px-0.5 w-full max-w-full space-y-4",children:x.jsx(Li,{remarkPlugins:[Bi],components:Du,children:e.text})})}function wD({question:e,currentIndex:r,totalQuestions:l,onBack:i,children:o}){const u=i&&r>0;return x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("div",{className:"relative",children:[x.jsxs("h3",{className:"font-medium text-foreground text-sm p-3 px-4 bg-card border-b border-border text-foreground flex flex-row items-center gap-2",children:[u?x.jsx("button",{onClick:i,className:" text-muted-foreground hover:opacity-60 transition-all flex items-center",children:x.jsx(fj,{className:"h-4 w-4 -ml-0.5",strokeWidth:3})}):l>1?x.jsxs("span",{className:"font-bold text-muted-foreground whitespace-nowrap",children:[r+1," of ",l]}):null,e]}),l>1&&x.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-border",children:x.jsx("div",{className:"h-full bg-muted-foreground/40 transition-all duration-300",style:{width:`${r/l*100}%`}})})]}),o]})}function lv({label:e,description:r}){return x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"text-foreground text-sm",children:e}),r&&x.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:r})]})}function lS({selected:e,multiSelect:r,onClick:l}){return x.jsx("button",{type:"button",onClick:l,className:xe("flex-shrink-0 w-5 h-5 border-1 flex items-center justify-center",r?"rounded":"rounded-full",e?"border-slate-500/0 bg-foreground":"border-muted-foreground/50 bg-background",l&&e&&"cursor-pointer"),children:e&&x.jsx(_l,{strokeWidth:3,className:"translate-y-[0.5px] h-3 w-3 text-white dark:text-background"})})}function SD({option:e,selected:r,multiSelect:l,onClick:i,isLast:o}){const u="w-full text-left p-3 pt-2.5 pl-4 pr-5 bg-background",c=o?"":"border-b border-border";return i?x.jsx("button",{onClick:i,className:xe(u,c,"transition-all cursor-pointer"),children:x.jsxs("div",{className:"flex items-center justify-between gap-3",children:[x.jsx("div",{className:"flex-1 min-w-0",children:x.jsx(lv,{label:e.label,description:e.description})}),x.jsx(lS,{selected:r,multiSelect:l})]})}):x.jsx("div",{className:xe(u,c),children:x.jsx(lv,{label:e.label,description:e.description})})}function kD(e){if(e)try{return JSON.parse(e).answers}catch{return}}function CD({message:e,onSubmit:r,isLatest:l}){var le,se;const i=((le=e.input)==null?void 0:le.questions)||[],o=!!e.result,u=kD(e.result),[c,f]=S.useState(0),[d,m]=S.useState({}),[g,y]=S.useState({}),[b,v]=S.useState(o),k=(J,Z)=>{var ie;const D=(ie=g[J])==null?void 0:ie.trim(),X=d[J]||"",ne=i.find(j=>j.question===J);return ne!=null&&ne.multiSelect?[X,D].filter(Boolean).join(", "):D||X},C=J=>{const Z=d[J.question]||"";return J.multiSelect?Z.split(", ").filter(Boolean):[Z]},A=(J,Z)=>{const D=J.question;if(J.multiSelect){const X=d[D]?d[D].split(", ").filter(Boolean):[],ne=X.includes(Z)?X.filter(ie=>ie!==Z):[...X,Z];m({...d,[D]:ne.join(", ")})}else m({...d,[D]:Z}),y({...g,[D]:""}),c<i.length-1&&setTimeout(()=>f(c+1),150)},N=(J,Z)=>{const D=J.question;y({...g,[D]:Z}),Z&&!J.multiSelect&&m({...d,[D]:""})},O=J=>{J.multiSelect&&g[J.question]&&y({...g,[J.question]:""})},_=i.every(J=>k(J.question).length>0),U=i[c],F=c===i.length-1,z=U&&k(U.question).length>0,B=()=>{c<i.length-1&&f(c+1)},$=()=>{c>0&&f(c-1)},ae=()=>{if(!_)return;const J={};for(const Z of i)J[Z.question]=k(Z.question);m(J),v(!0),r(e.toolId,i,J)};if(b||o){const J=u||d;return x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("div",{className:"font-medium text-sm p-3 px-4 pr-5 bg-muted border-b border-border flex flex-row items-center justify-between",children:[x.jsxs("p",{children:["Question",i.length!==1?"s":""]}),x.jsx("p",{className:"",children:"Answers"})]}),i.map((Z,D)=>{const X=J[Z.question]||"",ne=D===i.length-1;return x.jsxs("div",{className:xe("w-full p-3 pt-2.5 pl-4 pr-5 bg-background flex items-center justify-between gap-3",!ne&&"border-b border-border"),children:[x.jsx("span",{className:"text-sm",children:Z.question}),X&&x.jsx("span",{className:"text-sm font-medium text-right",children:X}),!X&&x.jsx("span",{className:"text-sm font-medium text-right italic",children:"No Response"})]},Z.question)})]})})}if(!l)return x.jsx("div",{className:"w-full py-2",children:x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(D0,{className:"h-4 w-4 text-muted-foreground"}),x.jsx("span",{className:"text-sm text-muted-foreground",children:"Questions pending (newer question active)"})]})});if(!U)return null;const P=C(U),re=g[U.question]||"";return x.jsxs("div",{className:"w-full space-y-3",children:[x.jsxs(wD,{question:U.question,currentIndex:c,totalQuestions:i.length,onBack:c>0?$:void 0,children:[(se=U.options)==null?void 0:se.map(J=>x.jsx(SD,{option:J,selected:P.includes(J.label),multiSelect:U.multiSelect,onClick:()=>A(U,J.label)},J.label)),x.jsx("div",{className:"transition-all bg-background",children:x.jsxs("div",{className:"flex pr-5 items-center justify-between gap-3",children:[x.jsx("input",{type:"text",value:re,onChange:J=>N(U,J.target.value),placeholder:"Other...",className:"flex-1 px-3 !py-1 pl-4 min-h-[55px] min-w-0 text-sm bg-transparent outline-none text-foreground placeholder:text-muted-foreground"}),x.jsx(lS,{selected:!!re,multiSelect:U.multiSelect,onClick:U.multiSelect&&re?()=>O(U):void 0})]})})]}),x.jsxs("div",{className:"flex justify-end gap-2 mx-2",children:[!F&&z&&(U.multiSelect||!!re)&&x.jsx(qe,{size:"sm",onClick:B,children:"Next"}),F&&x.jsx(qe,{size:"sm",onClick:ae,disabled:!_,className:xe(!_&&"opacity-50 cursor-not-allowed","rounded-full"),children:"Submit"})]})]})}function ED({message:e,onConfirm:r}){const l=!!e.result,[i,o]=S.useState(!1),[u,c]=S.useState(!1),[f,d]=S.useState(!1),[m,g]=S.useState(""),y=S.useRef(null),b=e.input;S.useEffect(()=>{f&&y.current&&y.current.focus()},[f]);const v=async()=>{b!=null&&b.plan&&(await navigator.clipboard.writeText(b.plan),c(!0),setTimeout(()=>c(!1),2e3))},k=(()=>{if(!l)return null;try{return JSON.parse(e.result||"{}")}catch{return{}}})();return x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsxs("div",{className:"relative rounded-2xl border border-border overflow-hidden group/plan",children:[(b==null?void 0:b.plan)&&x.jsx(qe,{variant:"ghost",size:"icon",className:xe("absolute top-2 right-2 z-10 h-8 w-8 rounded-md text-muted-foreground opacity-0 group-hover/plan:opacity-100 transition-opacity",!u&&"hover:text-foreground",u&&"hover:!bg-transparent hover:!border-transparent"),onClick:v,children:u?x.jsx(_l,{className:"h-4 w-4 text-green-400"}):x.jsx(ku,{className:"h-4 w-4"})}),x.jsxs("div",{className:xe("!pt-5 !pb-0 px-4 md:py-4.5 md:px-5.5 bg-muted dark:bg-card overflow-scroll no-pre-highlight transition-all",l&&!i?"max-h-[min(400px,40vh)] ":"",l?"hover:!pb-[32px]":""),children:[l&&x.jsxs(qe,{variant:"ghost",className:"absolute z-10 bottom-2 pr-2.5 !pl-3.5 h-[34px] inline-flex gap-1 text-sm left-[50%] -translate-x-[50%] text-muted-foreground backdrop-blur-sm hover:text-foreground opacity-0 group-hover/plan:opacity-100 transition-all rounded-full border border-border",onClick:()=>o(!i),children:[i?"Show Less":"Show More",x.jsx(uj,{className:`size-3.5 transition-transform ${i?"rotate-180":""}`})]}),b!=null&&b.plan?x.jsxs("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:[x.jsx(Li,{remarkPlugins:[Bi],components:rh,children:b.plan}),x.jsx("div",{className:"mt-5"})]}):x.jsx("p",{className:"text-sm text-muted-foreground",children:"No plan provided"})]})]}),l?x.jsx("div",{className:"flex justify-end mx-2",children:x.jsxs("span",{className:"pl-4 inline text-sm font-medium bg-background text-foreground/60 border border-border py-1.5 px-3 rounded-[20px] leading-relaxed max-w-[85%] sm:max-w-[80%]",children:[x.jsx("em",{children:k!=null&&k.clearContext?"Approved & Cleared Context":k!=null&&k.confirmed?"Approved":k!=null&&k.message?`Adjusted: "${k.message}"`:"Adjusted Plan"}),x.jsx(Sj,{className:"inline h-4 w-4 ml-1.5 -mt-0.5"})]})}):x.jsxs("div",{className:"flex flex-col gap-3",children:[!f&&x.jsxs("div",{className:"flex flex-col md:flex-row items-stretch md:items-center justify-end gap-2 mx-2",children:[x.jsxs(qe,{size:"sm",onClick:()=>r(e.toolId,!0,!0),className:"rounded-full bg-primary text-background pr-4 md:order-last",children:[x.jsx(lj,{className:"h-4 w-4 mr-1.5"}),"Approve & Clear"]}),x.jsxs("div",{className:"flex items-stretch md:items-center gap-2 md:contents",children:[x.jsxs(qe,{size:"sm",variant:"outline",onClick:()=>d(!0),className:"rounded-full border-border flex-1 md:flex-initial md:order-first",children:[x.jsx(B0,{className:"h-4 w-4 mr-1.5"}),"Suggest Edits"]}),x.jsxs(qe,{size:"sm",variant:"outline",onClick:()=>r(e.toolId,!0),className:"rounded-full border-border flex-1 md:flex-initial",children:[x.jsx(_l,{className:"h-4 w-4 mr-1.5"}),"Approve"]})]})]}),f&&x.jsxs("div",{className:"flex flex-col gap-2",children:[x.jsx("textarea",{ref:y,value:m,onChange:C=>g(C.target.value),onKeyDown:C=>{C.key==="Enter"&&!C.shiftKey&&m.trim()&&(C.preventDefault(),r(e.toolId,!1,void 0,m.trim())),C.key==="Escape"&&(d(!1),g(""))},placeholder:"Describe what you'd like to change...",rows:3,className:"w-full rounded-2xl border border-border bg-muted dark:bg-card px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground resize-none outline-none"}),x.jsxs("div",{className:"flex items-center justify-end gap-2 mx-2",children:[x.jsx(qe,{size:"sm",variant:"ghost",onClick:()=>{d(!1),g("")},className:"rounded-full text-muted-foreground",children:"Cancel"}),x.jsxs(qe,{size:"sm",disabled:!m.trim(),onClick:()=>r(e.toolId,!1,void 0,m.trim()),className:"rounded-full bg-primary text-background disabled:opacity-50 disabled:pointer-events-none",children:[x.jsx(Jj,{className:"h-4 w-4 mr-1.5"}),"Adjust Plan"]})]})]})]})]})}const ND={completed:{Icon:_l,iconClass:"text-emerald-500",textClass:"text-muted-foreground"},in_progress:{Icon:zl,iconClass:"text-foreground animate-spin",textClass:"text-foreground font-medium"},pending:{Icon:gj,iconClass:"text-muted-foreground",textClass:"text-muted-foreground"}};function AD({message:e}){const r=e.input.todos??[];return r.length?x.jsx("div",{className:"w-full",children:x.jsxs("div",{className:"rounded-2xl border border-border overflow-hidden",children:[x.jsxs("h3",{className:"font-medium text-foreground text-sm p-3 px-4 bg-card border-b border-border flex items-center gap-2",children:[x.jsx(Uj,{className:"h-4 w-4 text-muted-foreground"}),"Progress"]}),x.jsx("div",{children:r.map((l,i)=>{const o=i===r.length-1,{Icon:u,iconClass:c,textClass:f}=ND[l.status];return x.jsxs("div",{className:xe("flex items-center gap-3 px-4 py-2.5 bg-background",!o&&"border-b border-border"),children:[x.jsx(u,{className:xe("h-4 w-4 flex-shrink-0",c)}),x.jsx("span",{className:xe("text-sm",f),children:l.status==="in_progress"?l.activeForm:l.content})]},i)})})]})}):null}function Pd(e,r){if(!e)return"";if(r){const l=r.endsWith("/")?r:`${r}/`;if(e.startsWith(l))return e.slice(l.length);if(e===r)return""}return e.replace(/^\/home\/user\/workspace\//,"")}function jD(e,r){if(e){if(r){const l=`${r}/outputs`;if(e.startsWith(l))return e.slice(l.length)}return e.replace(/^\/home\/user\/workspace\/outputs/,"")||void 0}}function TD(e){const r=e.split(`
413
+ `),l=/^\s*(\d+)→(.*)$/;return r.map(i=>{const o=i.match(l);return o?{lineNumber:parseInt(o[1],10),content:o[2]}:{lineNumber:null,content:i}})}function _D(e){return e.replace(/<[^>]+>/g,"")}function RD(e,r){const l=e.split(`
414
+ `),i=r.split(`
415
+ `),o=MD(l,i),u=OD(l,i,o);return zD(u)}function MD(e,r){const l=e.length,i=r.length,o=Array.from({length:l+1},()=>Array(i+1).fill(0));for(let u=1;u<=l;u++)for(let c=1;c<=i;c++)o[u][c]=e[u-1]===r[c-1]?o[u-1][c-1]+1:Math.max(o[u-1][c],o[u][c-1]);return o}function OD(e,r,l){const i=[];let o=e.length,u=r.length;for(;o>0||u>0;)o>0&&u>0&&e[o-1]===r[u-1]?(i.push({type:"context",text:e[o-1],oldIdx:o,newIdx:u}),o--,u--):u>0&&(o===0||l[o][u-1]>=l[o-1][u])?(i.push({type:"added",text:r[u-1],oldIdx:o,newIdx:u}),u--):(i.push({type:"removed",text:e[o-1],oldIdx:o,newIdx:u}),o--);return i.reverse()}function zD(e){return e.map(r=>{const l=r.type==="removed"?"-":r.type==="added"?"+":" ";return{type:r.type,content:`${l}${r.text}`}})}function qd({content:e,isDiff:r=!1,oldString:l,newString:i}){const o=S.useMemo(()=>r&&l&&i?RD(l,i):[],[r,l,i]),u=S.useMemo(()=>r?[]:TD(e),[e,r]),c=S.useMemo(()=>u.some(f=>f.lineNumber!==null),[u]);return r&&o.length>0?x.jsx("div",{className:"my-1 rounded-lg border border-border overflow-hidden",children:x.jsx("div",{className:"overflow-auto max-h-64 md:max-h-[50vh]",children:x.jsx("table",{className:"w-full border-collapse text-xs font-mono",children:x.jsx("tbody",{children:o.map((f,d)=>{const m=f.type==="removed"?"bg-red-500/10 dark:bg-red-500/15":f.type==="added"?"bg-green-500/10 dark:bg-green-500/15":"",g=f.type==="removed"?"text-red-700 dark:text-red-400":f.type==="added"?"text-green-700 dark:text-green-400":"text-foreground";return x.jsxs("tr",{className:m,children:[x.jsx("td",{className:`px-2 py-0 select-none w-0 whitespace-nowrap ${f.type==="removed"?"text-red-500/50":f.type==="added"?"text-green-500/50":"text-muted-foreground/50"}`,children:f.type==="removed"?"-":f.type==="added"?"+":" "}),x.jsx("td",{className:`px-2 py-0 whitespace-pre select-all ${g}`,children:f.content.slice(1)})]},d)})})})})}):x.jsx("div",{className:"my-1 rounded-lg border border-border overflow-hidden",children:x.jsx("div",{className:"overflow-auto max-h-64 md:max-h-[50vh]",children:x.jsx("table",{className:"w-full border-collapse text-xs font-mono",children:x.jsx("tbody",{children:u.map((f,d)=>x.jsxs("tr",{children:[c&&x.jsx("td",{className:"px-2 py-0 select-none w-0 whitespace-nowrap text-muted-foreground/50 text-right",children:f.lineNumber!==null?f.lineNumber:""}),x.jsx("td",{className:"px-2 py-0 whitespace-pre select-all text-foreground",children:_D(f.content)})]},d))})})})})}function DD(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function iS({message:e,isLoading:r=!1,outputsUrl:l,localPath:i}){var U;const o=e.result!==void 0,u=!o&&r,c=S.useMemo(()=>{if(e.toolName==="Skill")return e.input.skill;if(e.toolName==="Glob")return`Search files ${e.input.pattern==="**/*"?"in all directories":`matching ${e.input.pattern}`}`;if(e.toolName==="Grep"){const B=e.input.pattern,$=e.input.output_mode;return $==="count"?`Count \`${B}\` occurrences`:$==="content"?`Find \`${B}\` in text`:`Find \`${B}\` in files`}if(e.toolName==="Bash")return`${e.input.description||e.input.command||"Bash"}`;if(e.toolName==="WebSearch")return e.input.query||"Web Search";if(e.toolName==="Read")return`Read ${Pd(e.input.file_path,i)}`;if(e.toolName==="Write")return`Write ${Pd(e.input.file_path,i)}`;if(e.toolName==="Edit")return`Edit ${Pd(e.input.file_path,i)}`;if(e.toolName==="mcp__lever__read_db_context"){const B=e.input.connection_name;return B?`Read ${jl(B)} Context`:"Read DB Context"}if(e.toolName==="mcp__lever__edit_db_context"){const B=e.input.connection_name;return B?`Edit ${jl(B)} Context`:"Edit DB Context"}if(e.toolName==="mcp__lever__write_db_context"){const B=e.input.connection_name;return B?`Update ${jl(B)} Context`:"Update DB Context"}const F=e.toolName.match(/^mcp__db__(.+)_query$/);if(F){const B=e.input.description;return B?`${B} from ${jl(F[1])}`:`Query ${F[1]}`}const z=e.toolName.match(/^mcp__(.+?)__(.+)$/);return z?`${jl(z[2])} from ${jl(z[1])}`:e.input.subagent_type||e.toolName},[e.input,e.toolName,i]),f=S.useMemo(()=>e.input.subagent_type!==void 0,[e.input]),d=S.useMemo(()=>{if(e.toolName==="Skill")return e.input.skill},[e.input,e.toolName]),m=e.toolName==="Bash",g=/^mcp__db__.+_query$/.test(e.toolName),y=e.toolName==="Write",b=e.toolName==="mcp__lever__write_db_context",v=e.toolName==="mcp__lever__edit_db_context",k=e.toolName==="Edit",C=e.toolName==="Read",A=e.toolName==="mcp__lever__read_db_context",{result:N,outputFile:O}=S.useMemo(()=>{let F={};if(typeof e.result=="string")try{F=JSON.parse(e.result)}catch{F={output:e.result}}else F=e.result??{};return{result:F,outputFile:jD(F.fullOutputFile,i)}},[e.result,i]),_=S.useMemo(()=>{if(!A||!e.result)return"";try{const F=typeof e.result=="string"?JSON.parse(e.result):e.result;if(Array.isArray(F))return F.map(z=>z.text).join(`
416
+ `)}catch{}return typeof e.result=="string"?e.result:JSON.stringify(e.result,null,2)},[e.result,A]);return x.jsx(ll,{className:"w-full",children:x.jsxs(Ou,{expandedContent:x.jsx(zu,{className:"my-4 text-sm",children:x.jsxs("div",{className:"flex flex-col gap-2",children:[b?x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium text-muted-foreground",children:["Context (",(e.input.context.length/1e3).toFixed(1),"/20kb)"]}),x.jsx("div",{className:"my-1 max-h-64 md:max-h-[50vh] overflow-auto rounded-lg border border-border bg-muted p-3 prose prose-sm dark:prose-invert max-w-none",children:x.jsx(Li,{remarkPlugins:[Bi],components:rh,children:e.input.context})})]}):k?x.jsx(qd,{content:"",isDiff:!0,oldString:e.input.old_string,newString:e.input.new_string}):v?x.jsxs("div",{className:"flex flex-col gap-2",children:[x.jsx(qa,{label:"Find",copyText:e.input.old_string,children:e.input.old_string}),x.jsx(qa,{label:"Replace",copyText:e.input.new_string,children:e.input.new_string})]}):!C&&!y&&x.jsx(qa,{label:m?x.jsxs("span",{className:"flex items-center gap-2 w-full",children:[x.jsx("span",{children:"Command"}),!!e.input.timeout&&x.jsxs("span",{className:"text-muted-foreground",children:["timeout: ",String(e.input.timeout),"ms"]}),!!e.input.run_in_background&&x.jsx("span",{className:"text-muted-foreground",children:"background"})]}):g?x.jsxs("span",{className:"flex items-center gap-2 w-full",children:[x.jsx("span",{children:"Query"}),!!e.input.timeout&&x.jsxs("span",{className:"text-muted-foreground",children:["timeout: ",String(e.input.timeout),"s"]})]}):y?"Contents":"Input",copyText:m?e.input.command:g?e.input.query:y?e.input.content:JSON.stringify(e.input,null,2),children:m?e.input.command:g?e.input.query:y?e.input.content:JSON.stringify(e.input,null,2)}),o&&A&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium text-muted-foreground",children:["Context (",(_.length/1e3).toFixed(1),"/20kb)"]}),x.jsx("div",{className:"my-1 max-h-64 md:max-h-[50vh] overflow-auto rounded-lg border border-border bg-muted p-3 prose prose-sm dark:prose-invert max-w-none",children:x.jsx(Li,{remarkPlugins:[Bi],components:rh,children:_})})]}),o&&C&&!e.isError&&x.jsx(qd,{content:typeof e.result=="string"?e.result:JSON.stringify(e.result,null,2)}),y&&!e.isError&&x.jsx(qd,{content:e.input.content}),o&&!g&&!A&&!C&&!(y&&!e.isError)&&!(k&&!e.isError)&&x.jsx(qa,{label:e.isError?"Error":"Result",copyText:typeof e.result=="string"?e.result:JSON.stringify(e.result,null,2),children:typeof e.result=="string"?e.result:JSON.stringify(e.result,null,2)}),o&&g&&x.jsx(qa,{label:e.isError?"Error":x.jsxs("span",{className:"flex items-center justify-between w-full",children:[x.jsxs("span",{children:["Preview",N.isOutputTruncated?" (~25kb)":""]}),O&&l&&x.jsxs("a",{href:`${l}/api/file?path=${encodeURIComponent(O)}`,download:!0,onClick:F=>F.stopPropagation(),target:"_blank",className:"text-muted-foreground hover:text-foreground transition-colors",children:["Download (",DD(N.fullOutputLength),")"]})]}),copyText:N.output.replaceAll("\\n",`
417
+ `),children:N.output.replaceAll("\\n",`
418
+ `)})]})}),children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:(()=>{if(e.isError)return x.jsx(so,{className:"size-4 text-destructive"});if(f)return x.jsx(Bh,{className:"size-4 text-muted-icon"});const F=Q1(e.toolName);return x.jsx(F,{className:"size-4 text-muted-icon"})})()}),x.jsx(el,{className:"text-left transition-opacity duration-200 truncate",children:x.jsx(Ru,{animate:u,shimmerWidth:Math.max(20,((U=d||c)==null?void 0:U.length)??99),children:d||c})})]})})}function LD({message:e}){const r=l=>{if(l<1e3)return`${l}ms`;const i=Math.floor(l/1e3),o=Math.floor(i/3600),u=Math.floor(i%3600/60),c=i%60;return o>0?`${o}h${u>0?` ${u}m`:""}`:u>0?`${u}m${c>0?` ${c}s`:""}`:`${c}s`};return x.jsxs(ll,{className:`px-0.5 text-xs tracking-wide ${e.durationMs>6e4?"":"hidden"}`,children:[x.jsx("div",{className:"w-full h-[1px] bg-border"}),x.jsxs(el,{className:"whitespace-nowrap text-[11px] tracking-widest text-muted-foreground/60 uppercase flex-shrink-0",children:["Worked for ",r(e.durationMs)]}),x.jsx("div",{className:"w-full h-[1px] bg-border"})]})}function BD({message:e}){return x.jsx("div",{className:"flex items-center justify-end gap-2 text-sm text-muted-foreground my-3",children:x.jsxs("div",{className:"inline-flex gap-1.5 items-center justify-center whitespace-nowrap text-sm font-medium bg-background text-foreground/60 border border-border h-9 pl-1 pr-4 rounded-full",children:[x.jsx(mj,{className:"h-4 w-4 ml-1.5"}),x.jsx("em",{children:"Interrupted"})]})})}function mu({size:e=4}){return x.jsxs("svg",{className:"flex-1",viewBox:`0 0 100 ${e}`,preserveAspectRatio:"none",style:{height:`${e}px`},children:[x.jsx("pattern",{id:"zigzag",width:e,height:e,patternUnits:"userSpaceOnUse",children:x.jsx("path",{d:`M0 ${e} L${e/2} 0 L${e} ${e}`,fill:"none",stroke:"currentColor",strokeWidth:"0.5",className:"text-muted-foreground/30",style:{stroke:"currentColor"}})}),x.jsx("rect",{width:"100%",height:e,fill:"url(#zigzag)",className:"text-muted-foreground/30"})]})}function UD(){return x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(mu,{}),x.jsx("span",{className:"text-[11px] tracking-widest text-muted-foreground uppercase flex-shrink-0",children:"Compacted"}),x.jsx(mu,{})]})}function HD(){return x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(mu,{}),x.jsx("span",{className:"text-[11px] tracking-widest text-muted-foreground uppercase flex-shrink-0",children:"Context Cleared"}),x.jsx(mu,{})]})}function PD({message:e}){return x.jsx(ll,{children:x.jsxs(Ou,{expandedContent:x.jsx(zu,{className:"my-4 text-xs",children:x.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:x.jsx(Li,{remarkPlugins:[Bi],components:Du,children:e.summary})})}),children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(L0,{className:"h-4.5 w-4.5 text-muted-foreground"})}),x.jsx(el,{children:"Summarized"})]})})}const qD={compacting:"Compacting..."};function FD({message:e}){const r=qD[e.status]||e.status;return x.jsxs(ll,{className:"grid grid-cols-[auto_1fr] items-center gap-1.5 text-sm animate-pulse",children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(L0,{className:"h-4.5 w-4.5 text-muted-foreground"})}),x.jsx(el,{className:"text-left transition-opacity duration-200 truncate",children:r})]})}const iv={Read:{key:"read",singular:"read",plural:"reads"},Edit:{key:"edit",singular:"edit",plural:"edits"},Write:{key:"write",singular:"write",plural:"writes"},Bash:{key:"bash",singular:"command",plural:"commands"},Grep:{key:"grep",singular:"search",plural:"searches"},Glob:{key:"glob",singular:"glob",plural:"globs"},Task:{key:"task",singular:"agent",plural:"agents"},WebFetch:{key:"webfetch",singular:"fetch",plural:"fetches"},WebSearch:{key:"websearch",singular:"web search",plural:"web searches"},Skill:{key:"skill",singular:"skill",plural:"skills"},TodoWrite:{key:"todo",singular:"todo update",plural:"todo updates"}},VD={key:"dbquery",singular:"query",plural:"queries"},ID={key:"other",singular:"tool call",plural:"tool calls"};function GD(e){return iv[e]?iv[e]:/^mcp__db__.+_query$/.test(e)?VD:ID}function YD(e){const r=new Map,l=[];for(const i of e){const o=i.processed.toolName,u=GD(o),c=r.get(u.key);c?c.count++:(r.set(u.key,{category:u,count:1}),l.push(u.key))}return l.map(i=>{const{category:o,count:u}=r.get(i);return`${u} ${u===1?o.singular:o.plural}`}).join(", ")}function $D({messages:e,isLoading:r,outputsUrl:l,localPath:i}){const[o,u]=S.useState(!1),c=S.useMemo(()=>YD(e),[e]),d=e.some(m=>m.processed.result===void 0)&&r;return x.jsx(ll,{className:"w-full",children:x.jsxs("div",{className:"flex flex-col w-full",children:[x.jsx("button",{onClick:()=>u(!o),className:`group cursor-pointer grid grid-cols-[auto_1fr] items-center gap-1 text-sm ${!o&&!d?"hover:opacity-60 transition-opacity":""}`,children:x.jsxs("div",{className:"grid grid-cols-[auto_1fr] items-center gap-1.5",children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(Kr,{className:`h-4.5 w-4.5 text-muted-icon transition-all duration-200 ${o?"rotate-90":""}`})}),x.jsx(el,{className:"text-left",children:x.jsx(Ru,{animate:d,children:c})})]})}),o&&x.jsxs("div",{className:"my-4 flex flex-col gap-3",children:[e.map(m=>x.jsx(iS,{message:m.processed,isLoading:r,outputsUrl:l,localPath:i},m.id)),e.length>5&&x.jsx("button",{onClick:()=>u(!1),className:"cursor-pointer grid grid-cols-[auto_1fr] items-center gap-1 text-xs hover:opacity-80 transition-opacity",children:x.jsxs("div",{className:"grid grid-cols-[auto_1fr] items-center gap-1.5",children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(Kr,{className:"h-4.5 w-4.5 text-muted-icon -rotate-90"})}),x.jsx(el,{className:"text-left",children:"Collapse"})]})})]})]})})}const XD=new Set(["AskUserQuestion","ExitPlanMode","TodoWrite"]);function av(e){var l;if(((l=e.processed)==null?void 0:l.kind)!=="tool")return!1;const r=e.processed.toolName;return!XD.has(r)}function QD(e){const r=[];let l=0;for(;l<e.length;){const i=e[l];if(av(i)){const o=[i],u=l;for(l+=1;l<e.length&&av(e[l]);)o.push(e[l]),l+=1;o.length>=2?r.push({type:"tool-group",messages:o,startIndex:u}):r.push({type:"single",message:i,index:u});continue}r.push({type:"single",message:i,index:l}),l+=1}return r}function ZD({messages:e,isLoading:r,localPath:l,latestToolIds:i,onAskUserQuestionSubmit:o,onExitPlanModeConfirm:u}){const c=S.useMemo(()=>QD(e),[e]);function f(d,m){var y,b;if(d.role==="user")return x.jsx(dD,{content:d.content},d.id);const g=d.processed;if(!g)return x.jsx(hD,{json:d.content},d.id);switch(g.kind){case"system":return x.jsx(xD,{message:g,rawJson:d.rawJson},d.id);case"account_info":return e.findIndex(k=>{var C;return((C=k.processed)==null?void 0:C.kind)==="account_info"})===m?x.jsx(bD,{message:g},d.id):null;case"text":return x.jsx(vD,{message:g},d.id);case"tool":return g.toolName==="AskUserQuestion"?x.jsx(CD,{message:g,onSubmit:o,isLatest:g.id===i.AskUserQuestion},d.id):g.toolName==="ExitPlanMode"?x.jsx(ED,{message:g,onConfirm:u,isLatest:g.id===i.ExitPlanMode},d.id):g.toolName==="TodoWrite"?g.id!==i.TodoWrite?null:x.jsx(AD,{message:g},d.id):x.jsx(iS,{message:g,isLoading:r,localPath:l},d.id);case"result":{const v=e[m+1],k=e[m-1];return((y=v==null?void 0:v.processed)==null?void 0:y.kind)==="context_cleared"||((b=k==null?void 0:k.processed)==null?void 0:b.kind)==="context_cleared"?null:x.jsx(LD,{message:g},d.id)}case"interrupted":return x.jsx(BD,{message:g},d.id);case"compact_boundary":return x.jsx(UD,{},d.id);case"context_cleared":return x.jsx(HD,{},d.id);case"compact_summary":return x.jsx(PD,{message:g},d.id);case"status":return m===e.length-1?x.jsx(FD,{message:g},d.id):null}}return x.jsx(x.Fragment,{children:c.map(d=>{if(d.type==="tool-group")return x.jsx("div",{className:"group relative",children:x.jsx($D,{messages:d.messages,isLoading:r,localPath:l})},`group-${d.startIndex}`);const m=f(d.message,d.index);return m?x.jsx("div",{id:`msg-${d.message.id}`,className:"group relative",children:m},d.message.id):null})})}function ov(){var r,l,i;const e=Av();return x.jsx("div",{className:"flex-1 flex flex-col min-w-0 relative",children:x.jsxs(G1,{className:"bg-background flex-1 flex flex-col overflow-hidden border-0 rounded-none relative",children:[x.jsxs($1,{className:"flex-1 p-0 overflow-hidden relative",children:[x.jsx(HR,{sidebarCollapsed:e.sidebarCollapsed,onOpenSidebar:e.openSidebar,onExpandSidebar:e.expandSidebar,onNewChat:e.handleCompose,localPath:e.navbarLocalPath,onOpenExternal:o=>{e.handleOpenExternal(o)}}),x.jsx(K1,{ref:e.scrollRef,onScroll:e.updateScrollState,className:"h-full px-4 scroll-pt-[72px]",children:x.jsxs("div",{className:"animate-fade-in space-y-5 pt-[72px] max-w-[800px] mx-auto",style:{paddingBottom:e.transcriptPaddingBottom},children:[e.messages.length===0?x.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[40vh] text-muted-foreground gap-4",children:[x.jsx(Qa,{strokeWidth:1.5,className:"size-8 text-muted-foreground"}),x.jsx("div",{className:"text-base font-normal text-muted-foreground text-center max-w-xs",children:"What are we making?"})]}):x.jsx(ZD,{messages:e.messages,isLoading:e.isProcessing,localPath:(r=e.runtime)==null?void 0:r.localPath,latestToolIds:e.latestToolIds,onAskUserQuestionSubmit:e.handleAskUserQuestion,onExitPlanModeConfirm:e.handleExitPlanMode}),e.isProcessing?x.jsx(VR,{status:(l=e.runtime)==null?void 0:l.status}):null,e.commandError?x.jsx("div",{className:"text-sm text-destructive border border-destructive/20 bg-destructive/5 rounded-xl px-4 py-3",children:e.commandError}):null,x.jsx("div",{className:"flex-1 min-h-[10vh]","aria-hidden":"true"})]})}),x.jsx("div",{style:{bottom:e.transcriptPaddingBottom-36},className:xe("absolute left-1/2 -translate-x-1/2 z-10 transition-all",e.showScrollButton?"scale-100 duration-300 ease-[cubic-bezier(0.34,1.56,0.64,1)]":"scale-60 duration-300 ease-out pointer-events-none blur-sm opacity-0"),children:x.jsx("button",{onClick:e.scrollToBottom,className:"flex items-center transition-colors gap-1.5 px-2 bg-white hover:bg-muted border border-border rounded-full aspect-square cursor-pointer text-sm text-primary hover:text-foreground dark:bg-slate-700 dark:hover:bg-slate-600 dark:text-slate-100 dark:border-slate-600",children:x.jsx($A,{className:"h-5 w-5"})})})]}),x.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-20 pointer-events-none",children:x.jsx("div",{className:"bg-gradient-to-t from-background via-background pointer-events-auto",ref:e.inputRef,children:x.jsx(DR,{onSubmit:e.handleSend,onCancel:()=>{e.handleCancel()},disabled:!e.hasSelectedProject||((i=e.runtime)==null?void 0:i.status)==="waiting_for_user",canCancel:e.canCancel,chatId:e.activeChatId},e.activeChatId??"new-chat")})})]})})}function KD({text:e}){const[r,l]=S.useState(!1);async function i(){await navigator.clipboard.writeText(e),l(!0),setTimeout(()=>l(!1),2e3)}return x.jsx(qe,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:()=>void i(),children:r?x.jsx(_l,{className:"h-4 w-4 text-green-400"}):x.jsx(ku,{className:"h-4 w-4"})})}function sv({children:e}){return x.jsxs("div",{className:"grid grid-cols-[1fr_auto] items-center group bg-background border border-border text-foreground rounded-xl p-1.5 pl-3 font-mono text-sm",children:[x.jsxs("pre",{className:"inline-flex items-center gap-2 overflow-x-auto",children:[x.jsx(Kr,{className:"inline h-4 w-4 opacity-40"}),x.jsx("code",{children:e})]}),x.jsx(KD,{text:e})]})}function Ys({children:e}){return x.jsx("div",{className:"bg-card border border-border rounded-2xl p-4",children:e})}function Fd({children:e}){return x.jsx("h2",{className:"text-[13px] font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e})}function uv({narrow:e=!1,title:r,subtitle:l,icon:i=Oh}){return x.jsxs("div",{className:xe("w-full",e?"max-w-2xl px-6 pt-16 mx-auto":"px-6 pt-16 mb-10"),children:[x.jsxs("div",{className:xe("flex items-center gap-3 mb-2",e&&"justify-center"),children:[x.jsx("div",{className:"p-2 pl-0 rounded-lg",children:x.jsx(i,{className:"h-6 w-6 text-muted-foreground"})}),x.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:r})]}),x.jsx("p",{className:xe("text-muted-foreground",e&&"mb-10 text-center"),children:l})]})}function Vd({icon:e,title:r,subtitle:l,iconClassName:i}){return x.jsxs("div",{className:"flex flex-col items-center gap-0",children:[x.jsx("div",{className:"p-3 mb-2 rounded-xl bg-background border border-border",children:x.jsx(e,{className:i||"h-8 w-8 text-muted-foreground"})}),x.jsx("span",{className:"text-sm font-medium",children:r}),x.jsx("span",{className:"text-xs text-muted-foreground",children:l})]})}function cv(){return x.jsx(QA,{className:"h-4 w-4 text-muted-foreground"})}function fv({number:e,title:r,children:l}){return x.jsx("div",{className:"flex gap-4",children:x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsxs("div",{className:"grid grid-cols-[auto_1fr] items-baseline gap-3",children:[x.jsxs("div",{className:"flex-shrink-0 flex items-center justify-center font-medium text-logo",children:[e,"."]}),x.jsx("h3",{className:"font-medium text-foreground mb-2",children:r})]}),x.jsx("div",{className:"text-muted-foreground text-sm space-y-3",children:l})]})})}function JD({localPath:e,loading:r,onClick:l}){return x.jsxs(ou,{children:[x.jsx(su,{asChild:!0,children:x.jsxs("button",{className:xe("border border-border hover:border-primary/30 group rounded-lg bg-card px-4 py-3 flex items-center gap-3 w-full text-left hover:bg-muted/50 transition-colors",r&&"opacity-50 cursor-not-allowed"),disabled:r,onClick:l,children:[x.jsx(O0,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),x.jsx("span",{className:"font-medium text-foreground truncate flex-1",children:A1(e)}),r?x.jsx(zl,{className:"h-4 w-4 text-muted-foreground group-hover:text-primary animate-spin flex-shrink-0"}):x.jsx(Dh,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"})]})}),x.jsx(no,{children:x.jsx("p",{children:e})})]})}function WD({connectionStatus:e,ready:r,snapshot:l,startingLocalPath:i,commandError:o,onOpenProject:u,onCreateProject:c}){const[f,d]=S.useState(!1),m=S.useMemo(()=>(l==null?void 0:l.projects)??[],[l==null?void 0:l.projects]),g=e==="connecting"||!r,y=e==="connected"&&r;return x.jsxs("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-y-auto",children:[y?x.jsxs(x.Fragment,{children:[x.jsx(uv,{title:(l==null?void 0:l.machine.displayName)??"Local Projects",subtitle:`${zt} is connected, choose a project below to get started.`}),x.jsxs("div",{className:"w-full px-6 mb-10",children:[x.jsxs("div",{className:"flex items-baseline justify-between mb-3",children:[x.jsx("h2",{className:"text-[13px] font-medium text-muted-foreground uppercase tracking-wider",children:"Projects"}),x.jsxs(qe,{variant:"default",size:"sm",onClick:()=>d(!0),children:[x.jsx(U0,{className:"h-4 w-4 mr-1.5"}),"Add Project"]})]}),m.length>0?x.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-4 3xl:grid-cols-5 gap-2",children:m.map(b=>x.jsx(JD,{localPath:b.localPath,loading:i===b.localPath,onClick:()=>{u(b.localPath)}},b.localPath))}):x.jsx(Ys,{children:x.jsx("p",{className:"text-sm text-muted-foreground",children:"No Claude projects discovered yet. Open one with Claude Code or create a new project here."})}),o?x.jsx("div",{className:"text-sm text-destructive border border-destructive/20 bg-destructive/5 rounded-xl px-4 py-3 mt-4",children:o}):null]})]}):x.jsxs(x.Fragment,{children:[x.jsx(uv,{narrow:!0,icon:Jx,title:g?`Connecting ${zt}`:`Connect ${zt}`,subtitle:g?`${zt} is starting up and loading your local projects.`:`Run ${zt} directly on your machine with full access to your local files and Claude projects.`}),x.jsxs("div",{className:"max-w-2xl w-full mx-auto pb-12 px-6",children:[x.jsx(Fd,{children:"Status"}),x.jsx("div",{className:"mb-8",children:x.jsx(Ys,{children:x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(zl,{className:"h-4 w-4 text-muted-foreground animate-spin"}),x.jsx("span",{className:"text-sm text-muted-foreground",children:g?`Connecting to your local ${zt} server...`:x.jsxs(x.Fragment,{children:["Not connected. Run ",x.jsx("code",{className:"bg-background border border-border rounded-md mx-0.5 p-1 font-mono text-xs text-foreground",children:qs()})," from any terminal on this machine."]})})]})})}),g?null:x.jsxs("div",{className:"mb-10",children:[x.jsx(Fd,{children:"How it works"}),x.jsx(Ys,{children:x.jsxs("div",{className:"flex items-center justify-around gap-6 py-4 px-2",children:[x.jsx(Vd,{icon:Lh,title:`${zt} CLI`,subtitle:"On Your Machine"}),x.jsx(cv,{}),x.jsx(Vd,{icon:Oh,title:`${zt} Server`,subtitle:"Local WebSocket"}),x.jsx(cv,{}),x.jsx(Vd,{icon:Jx,title:`${zt} UI`,subtitle:"Project Chat"})]})})]}),g?null:x.jsxs("div",{className:"mb-10",children:[x.jsx(Fd,{children:"Setup"}),x.jsx(Ys,{children:x.jsxs("div",{className:"space-y-4",children:[x.jsxs(fv,{number:1,title:`Start ${zt}`,children:[x.jsx("p",{children:"Run this command in your terminal:"}),x.jsx(sv,{children:qs()})]}),x.jsxs(fv,{number:2,title:"Open the local UI",children:[x.jsxs("p",{children:[zt," serves the app locally and opens the Local Projects page in an app-style browser window."]}),x.jsx(sv,{children:"http://localhost:3210/local"})]}),x.jsxs("div",{className:"mt-8",children:[x.jsx("h3",{className:"text-sm font-medium text-muted-foreground uppercase tracking-wider mb-4",children:"Notes"}),x.jsxs("div",{className:"space-y-3 text-sm",children:[x.jsxs("div",{className:"flex gap-4",children:[x.jsx("code",{className:"font-mono text-foreground whitespace-nowrap",children:qs("").trim()}),x.jsx("span",{className:"text-muted-foreground",children:"Start in the current directory"})]}),x.jsxs("div",{className:"flex gap-4",children:[x.jsx("code",{className:"font-mono text-foreground whitespace-nowrap",children:qs("--no-open")}),x.jsx("span",{className:"text-muted-foreground",children:"Start the server without opening the browser"})]})]})]})]})})]})]})]}),x.jsx(N1,{open:f,onOpenChange:d,onConfirm:b=>{c(b)}})]})}function e6(){const e=Av();return x.jsx("div",{className:"flex-1 flex flex-col min-w-0 relative",children:x.jsx(WD,{connectionStatus:e.connectionStatus,ready:e.localProjectsReady,snapshot:e.localProjects,startingLocalPath:e.startingLocalPath,commandError:e.commandError,onOpenProject:e.handleOpenLocalProject,onCreateProject:e.handleCreateProject})})}function t6(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function Dn(){return new Date().toISOString()}function n6(e,r){var o,u,c,f;const l=t6(e),i={processed:null,rawJson:l};try{const d=JSON.parse(e);if(d.type==="user_prompt"&&d.content)return{...i,isUserMessage:!0,userContent:d.content};if(d.type==="system"&&d.subtype==="init")return{processed:{id:zn(),kind:"system",model:d.model||"unknown",tools:d.tools||[],agents:d.agents||[],slashCommands:((o=d.slash_commands)==null?void 0:o.filter(m=>!m.startsWith("._")))||[],mcpServers:d.mcp_servers||[],timestamp:Dn()},rawJson:l};if(d.type==="system"&&d.subtype==="account_info")return{processed:{id:zn(),kind:"account_info",accountInfo:d.accountInfo,timestamp:Dn()},rawJson:l};if(d.type==="assistant"&&((u=d.message)!=null&&u.content))for(const m of d.message.content){if(m.type==="text"&&m.text)return{processed:{id:zn(),kind:"text",text:m.text,timestamp:Dn()},rawJson:l};if(m.type==="tool_use"){const g={id:zn(),kind:"tool",toolName:m.name,toolId:m.id,input:m.input||{},timestamp:Dn()};return r.set(m.id,g),{processed:g,rawJson:l}}}if(d.type==="user"&&((c=d.message)!=null&&c.content)){for(const m of d.message.content)if(m.type==="tool_result"&&m.tool_use_id){const g=r.get(m.tool_use_id);if(g)return g.result=m.content||"(empty)",g.isError=m.is_error||!1,r.delete(m.tool_use_id),i}}return d.type==="result"?d.subtype==="cancelled"?{processed:{id:zn(),kind:"interrupted",timestamp:Dn()},rawJson:l}:{processed:{id:zn(),kind:"result",success:!d.is_error,result:d.result||"",durationMs:d.duration_ms||0,costUsd:d.total_cost_usd,timestamp:Dn()},rawJson:l}:d.type==="system"&&d.subtype==="status"&&d.status?{processed:{id:zn(),kind:"status",status:d.status,timestamp:Dn()},rawJson:l}:d.type==="system"&&d.subtype==="compact_boundary"?{processed:{id:zn(),kind:"compact_boundary",timestamp:Dn()},rawJson:l}:d.type==="system"&&d.subtype==="context_cleared"?{processed:{id:zn(),kind:"context_cleared",timestamp:Dn()},rawJson:l}:d.type==="user"&&((f=d.message)==null?void 0:f.role)==="user"&&typeof d.message.content=="string"&&d.message.content.startsWith("This session is being continued")?{processed:{id:zn(),kind:"compact_summary",summary:d.message.content,timestamp:Dn()},rawJson:l}:i}catch{return i}}function r6(e){const r=new Map,l=[];for(const i of e){const{processed:o,rawJson:u,isUserMessage:c,userContent:f}=n6(i.message,r);if(c&&f){l.push({id:i._id,messageId:i.messageId,role:"user",content:f,timestamp:new Date(i.createdAt).toISOString(),hidden:i.hidden});continue}o!==null&&l.push({id:i._id,messageId:i.messageId,role:"assistant",content:u,timestamp:new Date(i.createdAt).toISOString(),processed:o,rawJson:u,hidden:i.hidden})}return l}const l6=["AskUserQuestion","ExitPlanMode","TodoWrite"],i6=new Set(["TodoWrite"]);function a6(e,r){var l;for(let i=e.length-1;i>=0;i-=1){const o=e[i];if(((l=o.processed)==null?void 0:l.kind)!=="tool")continue;const u=o.processed;if(u.toolName===r&&!u.result)return u.id}return null}function o6(e,r){var l;for(let i=e.length-1;i>=0;i-=1){const o=e[i];if(((l=o.processed)==null?void 0:l.kind)!=="tool")continue;const u=o.processed;if(u.toolName===r)return u.id}return null}function s6(e){const r={};for(const l of l6)r[l]=i6.has(l)?o6(e,l):a6(e,l);return r}function u6(e){return e==="starting"||e==="running"||e==="waiting_for_user"}function c6(e){return e==="starting"||e==="running"||e==="waiting_for_user"}class f6{constructor(r){cr(this,"url");cr(this,"ws",null);cr(this,"reconnectTimer",null);cr(this,"reconnectDelayMs",750);cr(this,"subscriptions",new Map);cr(this,"pending",new Map);cr(this,"outboundQueue",[]);cr(this,"statusListeners",new Set);this.url=r,this.connect()}dispose(){var r;this.reconnectTimer&&(window.clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(r=this.ws)==null||r.close(),this.ws=null;for(const l of this.pending.values())l.reject(new Error("Socket disposed"));this.pending.clear()}onStatus(r){return this.statusListeners.add(r),r(this.getStatus()),()=>{this.statusListeners.delete(r)}}subscribe(r,l){const i=crypto.randomUUID();return this.subscriptions.set(i,{topic:r,listener:l}),this.enqueue({v:1,type:"subscribe",id:i,topic:r}),()=>{this.subscriptions.delete(i),this.enqueue({v:1,type:"unsubscribe",id:i})}}command(r){const l=crypto.randomUUID(),i={v:1,type:"command",id:l,command:r};return new Promise((o,u)=>{this.pending.set(l,{resolve:o,reject:u}),this.enqueue(i)})}connect(){this.emitStatus("connecting"),this.ws=new WebSocket(this.url),this.ws.addEventListener("open",()=>{this.reconnectDelayMs=750,this.emitStatus("connected");for(const[r,l]of this.subscriptions.entries())this.sendNow({v:1,type:"subscribe",id:r,topic:l.topic});for(;this.outboundQueue.length>0;){const r=this.outboundQueue.shift();r&&this.sendNow(r)}}),this.ws.addEventListener("message",r=>{let l;try{l=JSON.parse(String(r.data))}catch{return}if(l.type==="snapshot"){const i=this.subscriptions.get(l.id);i==null||i.listener(l.snapshot.data);return}if(l.type==="ack"){const i=this.pending.get(l.id);if(!i)return;this.pending.delete(l.id),i.resolve(l.result);return}if(l.type==="error"){if(!l.id){console.error(tR,l.message);return}const i=this.pending.get(l.id);if(!i)return;this.pending.delete(l.id),i.reject(new Error(l.message))}}),this.ws.addEventListener("close",()=>{this.emitStatus("disconnected");for(const r of this.pending.values())r.reject(new Error("Disconnected"));this.pending.clear(),this.scheduleReconnect()})}scheduleReconnect(){this.reconnectTimer===null&&(this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.connect(),this.reconnectDelayMs=Math.min(this.reconnectDelayMs*2,5e3)},this.reconnectDelayMs))}getStatus(){var r,l;return((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN?"connected":((l=this.ws)==null?void 0:l.readyState)===WebSocket.CONNECTING?"connecting":"disconnected"}emitStatus(r){for(const l of this.statusListeners)l(r)}enqueue(r){var l;if(((l=this.ws)==null?void 0:l.readyState)===WebSocket.OPEN){this.sendNow(r);return}this.outboundQueue.push(r)}sendNow(r){var l;(l=this.ws)==null||l.send(JSON.stringify(r))}}function d6(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}function h6(){const e=S.useRef(null);return e.current||(e.current=new f6(d6())),S.useEffect(()=>{const r=e.current;return()=>{r==null||r.dispose()}},[]),e.current}function m6(e){var Ll,xt,Bl;const r=xh(),l=h6(),i=yT(),[o,u]=S.useState({projectGroups:[]}),[c,f]=S.useState(null),[d,m]=S.useState(null),[g,y]=S.useState("connecting"),[b,v]=S.useState(!1),[k,C]=S.useState(!1),[A,N]=S.useState(!1),[O,_]=S.useState(null),[U,F]=S.useState(!1),[z,B]=S.useState(!1),[$,ae]=S.useState(148),[P,re]=S.useState(!0),[le,se]=S.useState(null),[J,Z]=S.useState(null),[D,X]=S.useState(null),ne=S.useRef(null),ie=S.useRef(null);S.useEffect(()=>l.onStatus(y),[l]),S.useEffect(()=>l.subscribe({type:"sidebar"},H=>{u(H),v(!0),se(null)}),[l]),S.useEffect(()=>l.subscribe({type:"local-projects"},H=>{f(H),C(!0),se(null)}),[l]),S.useEffect(()=>{if(!e){m(null),N(!0);return}return N(!1),l.subscribe({type:"chat",chatId:e},H=>{m(H),N(!0),se(null)})},[e,l]),S.useEffect(()=>{if(O)return;const H=o.projectGroups[0];H&&_(H.groupKey)},[O,o.projectGroups]),S.useEffect(()=>{if(!e||!b||!A)return;if(o.projectGroups.some(K=>K.chats.some(fe=>fe.chatId===e))){D===e&&X(null);return}D!==e&&r("/")},[e,A,r,D,o.projectGroups,b]),S.useEffect(()=>{d&&(_(d.runtime.projectId),D===d.runtime.chatId&&X(null))},[d,D]),S.useLayoutEffect(()=>{const H=ie.current;if(!H)return;const K=new ResizeObserver(()=>{ae(H.getBoundingClientRect().height)});return K.observe(H),ae(H.getBoundingClientRect().height),()=>K.disconnect()},[]);const j=S.useMemo(()=>r6((d==null?void 0:d.messages)??[]),[d==null?void 0:d.messages]),R=S.useMemo(()=>s6(j),[j]),G=(d==null?void 0:d.runtime)??null,T=c6(G==null?void 0:G.status),ue=u6(G==null?void 0:G.status),de=$+48,ce=!P&&j.length>0,Ce=((Ll=c==null?void 0:c.projects[0])==null?void 0:Ll.localPath)??null,Ue=(G==null?void 0:G.localPath)??Ce??((xt=o.projectGroups[0])==null?void 0:xt.localPath),ve=!!(O??(G==null?void 0:G.projectId)??((Bl=o.projectGroups[0])==null?void 0:Bl.groupKey)??Ce);S.useEffect(()=>{const H=ne.current;if(!H)return;H.scrollHeight-H.scrollTop-H.clientHeight<120&&H.scrollTo({top:H.scrollHeight,behavior:"smooth"})},[e,j.length,G==null?void 0:G.status]);function at(){const H=ne.current;if(!H)return;const K=H.scrollHeight-H.scrollTop-H.clientHeight;re(K<24)}function dt(){const H=ne.current;H&&H.scrollTo({top:H.scrollHeight,behavior:"smooth"})}async function At(H){try{const K=await l.command({type:"chat.create",projectId:H});_(H),X(K.chatId),r(`/chat/${K.chatId}`),F(!1)}catch(K){se(K instanceof Error?K.message:String(K))}}async function wt(H){try{Z(H);const K=await l.command({type:"project.open",localPath:H});_(K.projectId);const fe=await l.command({type:"chat.create",projectId:K.projectId});X(fe.chatId),r(`/chat/${fe.chatId}`),F(!1),se(null)}catch(K){se(K instanceof Error?K.message:String(K))}finally{Z(null)}}async function ht(H){try{Z(H.localPath);const K=await l.command(H.mode==="new"?{type:"project.create",localPath:H.localPath,title:H.title}:{type:"project.open",localPath:H.localPath});_(K.projectId);const fe=await l.command({type:"chat.create",projectId:K.projectId});X(fe.chatId),r(`/chat/${fe.chatId}`),F(!1),se(null)}catch(K){se(K instanceof Error?K.message:String(K))}finally{Z(null)}}async function jn(H,K){var fe;try{let ge=O??((fe=o.projectGroups[0])==null?void 0:fe.groupKey)??null;if(!e&&!ge&&Ce&&(ge=(await l.command({type:"project.open",localPath:Ce})).projectId,_(ge)),!e&&!ge)throw new Error("Open a project first");const Ee=await l.command({type:"chat.send",chatId:e??void 0,projectId:e?void 0:ge??void 0,content:H,model:K==null?void 0:K.model,effort:K==null?void 0:K.effort,planMode:K==null?void 0:K.planMode});!e&&Ee.chatId&&(X(Ee.chatId),r(`/chat/${Ee.chatId}`)),se(null)}catch(ge){throw se(ge instanceof Error?ge.message:String(ge)),ge}}async function Tn(){if(e)try{await l.command({type:"chat.cancel",chatId:e})}catch(H){se(H instanceof Error?H.message:String(H))}}async function xr(H){if(await i.confirm({title:"Delete Chat",description:`Delete "${H.title}"? This cannot be undone.`,confirmLabel:"Delete",confirmVariant:"destructive"}))try{await l.command({type:"chat.delete",chatId:H.chatId}),H.chatId===e&&r("/")}catch(fe){se(fe instanceof Error?fe.message:String(fe))}}async function br(H){const K=o.projectGroups.find(Ee=>Ee.groupKey===H);if(!K)return;const fe=K.localPath.split("/").filter(Boolean).pop()??K.localPath;if(await i.confirm({title:"Remove Project",description:`Remove "${fe}" from the sidebar? Existing chats will be removed from ${zt}.`,confirmLabel:"Remove",confirmVariant:"destructive"}))try{await l.command({type:"project.remove",projectId:H}),(G==null?void 0:G.projectId)===H&&r("/projects"),se(null)}catch(Ee){se(Ee instanceof Error?Ee.message:String(Ee))}}async function $t(H){var fe,ge;const K=(G==null?void 0:G.localPath)??((fe=c==null?void 0:c.projects[0])==null?void 0:fe.localPath)??((ge=o.projectGroups[0])==null?void 0:ge.localPath);if(K)try{await l.command({type:"system.openExternal",action:H,localPath:K})}catch(Ee){se(Ee instanceof Error?Ee.message:String(Ee))}}function vr(){var fe,ge;const H=O??((fe=o.projectGroups[0])==null?void 0:fe.groupKey);if(H){At(H);return}const K=(ge=c==null?void 0:c.projects[0])==null?void 0:ge.localPath;if(K){wt(K);return}r("/projects")}async function al(H,K,fe){if(e)try{await l.command({type:"chat.respondTool",chatId:e,toolUseId:H,result:{questions:K,answers:fe}})}catch(ge){se(ge instanceof Error?ge.message:String(ge))}}async function Ii(H,K,fe,ge){if(e){K&&I1.getState().setPlanMode(!1);try{await l.command({type:"chat.respondTool",chatId:e,toolUseId:H,result:{confirmed:K,...fe?{clearContext:!0}:{},...ge?{message:ge}:{}}})}catch(Ee){se(Ee instanceof Error?Ee.message:String(Ee))}}}return{activeChatId:e,sidebarData:o,localProjects:c,chatSnapshot:d,connectionStatus:g,sidebarReady:b,localProjectsReady:k,commandError:le,startingLocalPath:J,sidebarOpen:U,sidebarCollapsed:z,scrollRef:ne,inputRef:ie,messages:j,latestToolIds:R,runtime:G,isProcessing:T,canCancel:ue,transcriptPaddingBottom:de,showScrollButton:ce,navbarLocalPath:Ue,hasSelectedProject:ve,openSidebar:()=>F(!0),closeSidebar:()=>F(!1),collapseSidebar:()=>B(!0),expandSidebar:()=>B(!1),updateScrollState:at,scrollToBottom:dt,handleCreateChat:At,handleOpenLocalProject:wt,handleCreateProject:ht,handleSend:jn,handleCancel:Tn,handleDeleteChat:xr,handleRemoveProject:br,handleOpenExternal:$t,handleCompose:vr,handleAskUserQuestion:al,handleExitPlanMode:Ii}}function p6(){const e=Fn(),r=xC(),l=m6(r.chatId??null),i=e.pathname==="/projects";return x.jsxs("div",{className:"flex h-[100dvh] min-h-[100dvh] overflow-hidden",children:[x.jsx(kR,{data:l.sidebarData,activeChatId:l.activeChatId,connectionStatus:l.connectionStatus,ready:l.sidebarReady,open:l.sidebarOpen,collapsed:l.sidebarCollapsed,showMobileOpenButton:i,onOpen:l.openSidebar,onClose:l.closeSidebar,onCollapse:l.collapseSidebar,onExpand:l.expandSidebar,onCreateChat:o=>{l.handleCreateChat(o)},onCreateProject:o=>{l.handleCreateProject(o)},onDeleteChat:o=>{l.handleDeleteChat(o)},onRemoveProject:o=>{l.handleRemoveProject(o)}}),x.jsx(MC,{context:l})]})}function g6(){return x.jsx(eR,{children:x.jsx(gT,{children:x.jsx(zC,{children:x.jsxs($a,{element:x.jsx(p6,{}),children:[x.jsx($a,{path:"/",element:x.jsx(ov,{})}),x.jsx($a,{path:"/projects",element:x.jsx(e6,{})}),x.jsx($a,{path:"/chat/:chatId",element:x.jsx(ov,{})})]})})})})}const aS="lever-theme",y6=S.createContext(void 0),x6=e=>e==="light"||e==="dark"||e==="system",oS=()=>typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",dv=e=>{if(typeof document>"u")return;const r=e==="system"?oS():e;document.documentElement.classList.toggle("dark",r==="dark")},b6=()=>{if(typeof window>"u")return"system";const e=window.localStorage.getItem(aS);return x6(e)?e:"system"};function v6({children:e}){const[r,l]=S.useState(b6);S.useEffect(()=>{dv(r),typeof window<"u"&&window.localStorage.setItem(aS,r)},[r]),S.useEffect(()=>{if(r!=="system")return;const o=window.matchMedia("(prefers-color-scheme: dark)"),u=()=>dv("system");return o.addEventListener?(o.addEventListener("change",u),()=>o.removeEventListener("change",u)):(o.addListener(u),()=>o.removeListener(u))},[r]);const i=S.useMemo(()=>{const o=r==="system"?oS():r;return{theme:r,resolvedTheme:o,setTheme:l}},[r]);return x.jsx(y6.Provider,{value:i,children:e})}const sS=document.getElementById("root");if(!sS)throw new Error("Missing #root");z2.createRoot(sS).render(x.jsx(S.StrictMode,{children:x.jsx(lE,{children:x.jsx(v6,{children:x.jsx(g6,{})})})}));