kanna-code 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,408 @@
1
+ var p2=Object.defineProperty;var g2=(e,r,l)=>r in e?p2(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l;var cr=(e,r,l)=>g2(e,typeof r!="symbol"?r+"":r,l);function y2(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 hu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wf={exports:{}},Da={};/**
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 ox;function x2(){if(ox)return Da;ox=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 Da.Fragment=r,Da.jsx=l,Da.jsxs=l,Da}var sx;function b2(){return sx||(sx=1,Wf.exports=x2()),Wf.exports}var x=b2(),ed={exports:{}},Ae={};/**
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 ux;function v2(){if(ux)return Ae;ux=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(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,N={};function A(O,Q,j){this.props=O,this.context=Q,this.refs=N,this.updater=j||k}A.prototype.isReactComponent={},A.prototype.setState=function(O,Q){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Q,"setState")},A.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=A.prototype;function R(O,Q,j){this.props=O,this.context=Q,this.refs=N,this.updater=j||k}var B=R.prototype=new _;B.constructor=R,C(B,A.prototype),B.isPureReactComponent=!0;var P=Array.isArray;function z(){}var q={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function oe(O,Q,j){var ne=j.ref;return{$$typeof:e,type:O,key:Q,ref:ne!==void 0?ne:null,props:j}}function U(O,Q){return oe(O.type,Q,O.props)}function re(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function le(O){var Q={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(j){return Q[j]})}var ue=/\/+/g;function Z(O,Q){return typeof O=="object"&&O!==null&&O.key!=null?le(""+O.key):Q.toString(36)}function $(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(z,z):(O.status="pending",O.then(function(Q){O.status==="pending"&&(O.status="fulfilled",O.value=Q)},function(Q){O.status==="pending"&&(O.status="rejected",O.reason=Q)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function D(O,Q,j,ne,de){var fe=typeof O;(fe==="undefined"||fe==="boolean")&&(O=null);var Ne=!1;if(O===null)Ne=!0;else switch(fe){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(O.$$typeof){case e:case r:Ne=!0;break;case g:return Ne=O._init,D(Ne(O._payload),Q,j,ne,de)}}if(Ne)return de=de(O),Ne=ne===""?"."+Z(O,0):ne,P(de)?(j="",Ne!=null&&(j=Ne.replace(ue,"$&/")+"/"),D(de,Q,j,"",function(it){return it})):de!=null&&(re(de)&&(de=U(de,j+(de.key==null||O&&O.key===de.key?"":(""+de.key).replace(ue,"$&/")+"/")+Ne)),Q.push(de)),1;Ne=0;var Fe=ne===""?".":ne+":";if(P(O))for(var ve=0;ve<O.length;ve++)ne=O[ve],fe=Fe+Z(ne,ve),Ne+=D(ne,Q,j,fe,de);else if(ve=v(O),typeof ve=="function")for(O=ve.call(O),ve=0;!(ne=O.next()).done;)ne=ne.value,fe=Fe+Z(ne,ve++),Ne+=D(ne,Q,j,fe,de);else if(fe==="object"){if(typeof O.then=="function")return D($(O),Q,j,ne,de);throw Q=String(O),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function X(O,Q,j){if(O==null)return O;var ne=[],de=0;return D(O,ne,"","",function(fe){return Q.call(j,fe,de++)}),ne}function ee(O){if(O._status===-1){var Q=O._result;Q=Q(),Q.then(function(j){(O._status===0||O._status===-1)&&(O._status=1,O._result=j)},function(j){(O._status===0||O._status===-1)&&(O._status=2,O._result=j)}),O._status===-1&&(O._status=0,O._result=Q)}if(O._status===1)return O._result.default;throw O._result}var ie=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},T={map:X,forEach:function(O,Q,j){X(O,function(){Q.apply(this,arguments)},j)},count:function(O){var Q=0;return X(O,function(){Q++}),Q},toArray:function(O){return X(O,function(Q){return Q})||[]},only:function(O){if(!re(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Ae.Activity=y,Ae.Children=T,Ae.Component=A,Ae.Fragment=l,Ae.Profiler=o,Ae.PureComponent=R,Ae.StrictMode=i,Ae.Suspense=d,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(O){return q.H.useMemoCache(O)}},Ae.cache=function(O){return function(){return O.apply(null,arguments)}},Ae.cacheSignal=function(){return null},Ae.cloneElement=function(O,Q,j){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var ne=C({},O.props),de=O.key;if(Q!=null)for(fe in Q.key!==void 0&&(de=""+Q.key),Q)!Y.call(Q,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&Q.ref===void 0||(ne[fe]=Q[fe]);var fe=arguments.length-2;if(fe===1)ne.children=j;else if(1<fe){for(var Ne=Array(fe),Fe=0;Fe<fe;Fe++)Ne[Fe]=arguments[Fe+2];ne.children=Ne}return oe(O.type,de,ne)},Ae.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:u,_context:O},O},Ae.createElement=function(O,Q,j){var ne,de={},fe=null;if(Q!=null)for(ne in Q.key!==void 0&&(fe=""+Q.key),Q)Y.call(Q,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(de[ne]=Q[ne]);var Ne=arguments.length-2;if(Ne===1)de.children=j;else if(1<Ne){for(var Fe=Array(Ne),ve=0;ve<Ne;ve++)Fe[ve]=arguments[ve+2];de.children=Fe}if(O&&O.defaultProps)for(ne in Ne=O.defaultProps,Ne)de[ne]===void 0&&(de[ne]=Ne[ne]);return oe(O,fe,de)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(O){return{$$typeof:f,render:O}},Ae.isValidElement=re,Ae.lazy=function(O){return{$$typeof:g,_payload:{_status:-1,_result:O},_init:ee}},Ae.memo=function(O,Q){return{$$typeof:m,type:O,compare:Q===void 0?null:Q}},Ae.startTransition=function(O){var Q=q.T,j={};q.T=j;try{var ne=O(),de=q.S;de!==null&&de(j,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(z,ie)}catch(fe){ie(fe)}finally{Q!==null&&j.types!==null&&(Q.types=j.types),q.T=Q}},Ae.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ae.use=function(O){return q.H.use(O)},Ae.useActionState=function(O,Q,j){return q.H.useActionState(O,Q,j)},Ae.useCallback=function(O,Q){return q.H.useCallback(O,Q)},Ae.useContext=function(O){return q.H.useContext(O)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(O,Q){return q.H.useDeferredValue(O,Q)},Ae.useEffect=function(O,Q){return q.H.useEffect(O,Q)},Ae.useEffectEvent=function(O){return q.H.useEffectEvent(O)},Ae.useId=function(){return q.H.useId()},Ae.useImperativeHandle=function(O,Q,j){return q.H.useImperativeHandle(O,Q,j)},Ae.useInsertionEffect=function(O,Q){return q.H.useInsertionEffect(O,Q)},Ae.useLayoutEffect=function(O,Q){return q.H.useLayoutEffect(O,Q)},Ae.useMemo=function(O,Q){return q.H.useMemo(O,Q)},Ae.useOptimistic=function(O,Q){return q.H.useOptimistic(O,Q)},Ae.useReducer=function(O,Q,j){return q.H.useReducer(O,Q,j)},Ae.useRef=function(O){return q.H.useRef(O)},Ae.useState=function(O){return q.H.useState(O)},Ae.useSyncExternalStore=function(O,Q,j){return q.H.useSyncExternalStore(O,Q,j)},Ae.useTransition=function(){return q.H.useTransition()},Ae.version="19.2.1",Ae}var cx;function dh(){return cx||(cx=1,ed.exports=v2()),ed.exports}var S=dh();const Va=hu(S),cv=y2({__proto__:null,default:Va},[S]);var td={exports:{}},La={},nd={exports:{}},rd={};/**
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 fx;function w2(){return fx||(fx=1,(function(e){function r(D,X){var ee=D.length;D.push(X);e:for(;0<ee;){var ie=ee-1>>>1,T=D[ie];if(0<o(T,X))D[ie]=X,D[ee]=T,ee=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],ee=D.pop();if(ee!==X){D[0]=ee;e:for(var ie=0,T=D.length,O=T>>>1;ie<O;){var Q=2*(ie+1)-1,j=D[Q],ne=Q+1,de=D[ne];if(0>o(j,ee))ne<T&&0>o(de,j)?(D[ie]=de,D[ne]=ee,ie=ne):(D[ie]=j,D[Q]=ee,ie=Q);else if(ne<T&&0>o(de,ee))D[ie]=de,D[ne]=ee,ie=ne;else break e}}return X}function o(D,X){var ee=D.sortIndex-X.sortIndex;return ee!==0?ee: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,N=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function B(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 P(D){if(C=!1,B(D),!k)if(l(d)!==null)k=!0,z||(z=!0,le());else{var X=l(m);X!==null&&$(P,X.startTime-D)}}var z=!1,q=-1,Y=5,oe=-1;function U(){return N?!0:!(e.unstable_now()-oe<Y)}function re(){if(N=!1,z){var D=e.unstable_now();oe=D;var X=!0;try{e:{k=!1,C&&(C=!1,_(q),q=-1),v=!0;var ee=b;try{t:{for(B(D),y=l(d);y!==null&&!(y.expirationTime>D&&U());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,b=y.priorityLevel;var T=ie(y.expirationTime<=D);if(D=e.unstable_now(),typeof T=="function"){y.callback=T,B(D),X=!0;break t}y===l(d)&&i(d),B(D)}else i(d);y=l(d)}if(y!==null)X=!0;else{var O=l(m);O!==null&&$(P,O.startTime-D),X=!1}}break e}finally{y=null,b=ee,v=!1}X=void 0}}finally{X?le():z=!1}}}var le;if(typeof R=="function")le=function(){R(re)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,Z=ue.port2;ue.port1.onmessage=re,le=function(){Z.postMessage(null)}}else le=function(){A(re,0)};function $(D,X){q=A(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"):Y=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 ee=b;b=X;try{return D()}finally{b=ee}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(D,X){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ee=b;b=D;try{return X()}finally{b=ee}},e.unstable_scheduleCallback=function(D,X,ee){var ie=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ie+ee:ie):ee=ie,D){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=ee+T,D={id:g++,callback:X,priorityLevel:D,startTime:ee,expirationTime:T,sortIndex:-1},ee>ie?(D.sortIndex=ee,r(m,D),l(d)===null&&D===l(m)&&(C?(_(q),q=-1):C=!0,$(P,ee-ie))):(D.sortIndex=T,r(d,D),k||v||(k=!0,z||(z=!0,le()))),D},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(D){var X=b;return function(){var ee=b;b=X;try{return D.apply(this,arguments)}finally{b=ee}}}})(rd)),rd}var dx;function S2(){return dx||(dx=1,nd.exports=w2()),nd.exports}var ld={exports:{}},_t={};/**
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 hx;function k2(){if(hx)return _t;hx=1;var e=dh();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 _t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,_t.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)},_t.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()}},_t.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))},_t.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},_t.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})}},_t.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)},_t.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})}},_t.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)},_t.requestFormReset=function(d){i.d.r(d)},_t.unstable_batchedUpdates=function(d,m){return d(m)},_t.useFormState=function(d,m,g){return c.H.useFormState(d,m,g)},_t.useFormStatus=function(){return c.H.useHostTransitionStatus()},_t.version="19.2.1",_t}var mx;function fv(){if(mx)return ld.exports;mx=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(),ld.exports=k2(),ld.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 px;function C2(){if(px)return La;px=1;var e=S2(),r=dh(),l=fv();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"),N=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),R=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),U=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 ue=Symbol.for("react.client.reference");function Z(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ue?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case A:return"Profiler";case N:return"StrictMode";case P:return"Suspense";case z:return"SuspenseList";case oe:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case k:return"Portal";case R:return t.displayName||"Context";case _:return(t._context.displayName||"Context")+".Consumer";case B:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case q:return n=t.displayName||null,n!==null?n:Z(t.type)||"Memo";case Y:n=t._payload,t=t._init;try{return Z(t(n))}catch{}}return null}var $=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,ee={pending:!1,data:null,method:null,action:null},ie=[],T=-1;function O(t){return{current:t}}function Q(t){0>T||(t.current=ie[T],ie[T]=null,T--)}function j(t,n){T++,ie[T]=t.current,t.current=n}var ne=O(null),de=O(null),fe=O(null),Ne=O(null);function Fe(t,n){switch(j(fe,n),j(de,t),j(ne,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?_y(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=_y(n),t=Ry(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(ne),j(ne,t)}function ve(){Q(ne),Q(de),Q(fe)}function it(t){t.memoizedState!==null&&j(Ne,t);var n=ne.current,a=Ry(n,t.type);n!==a&&(j(de,t),j(ne,a))}function gt(t){de.current===t&&(Q(ne),Q(de)),Ne.current===t&&(Q(Ne),Ra._currentValue=ee)}var zt,jt;function yt(t){if(zt===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);zt=n&&n[1]||"",jt=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+zt+t+jt}var vn=!1;function wn(t,n){if(!t||vn)return"";vn=!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(G){var V=G}Reflect.construct(t,[],te)}else{try{te.call()}catch(G){V=G}t.call(te.prototype)}}else{try{throw Error()}catch(G){V=G}(te=t())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(G){if(G&&V&&typeof G.stack=="string")return[G.stack,V.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 K=`
46
+ `+M[s].replace(" at new "," at ");return t.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",t.displayName)),K}while(1<=s&&0<=h);break}}}finally{vn=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?yt(a):""}function yr(t,n){switch(t.tag){case 26:case 27:case 5:return yt(t.type);case 16:return yt("Lazy");case 13:return t.child!==n&&n!==null?yt("Suspense Fallback"):yt("Suspense");case 19:return yt("SuspenseList");case 0:case 15:return wn(t.type,!1);case 11:return wn(t.type.render,!1);case 1:return wn(t.type,!0);case 31:return yt("Activity");default:return""}}function xr(t){try{var n="",a=null;do n+=yr(t,a),a=t,t=t.return;while(t);return n}catch(s){return`
47
+ Error generating stack: `+s.message+`
48
+ `+s.stack}}var Xt=Object.prototype.hasOwnProperty,br=e.unstable_scheduleCallback,il=e.unstable_cancelCallback,qi=e.unstable_shouldYield,Fi=e.unstable_requestPaint,kt=e.unstable_now,Ii=e.unstable_getCurrentPriorityLevel,J=e.unstable_ImmediatePriority,ce=e.unstable_UserBlockingPriority,Se=e.unstable_NormalPriority,Re=e.unstable_LowPriority,ae=e.unstable_IdlePriority,he=e.log,Ee=e.unstable_setDisableYieldValue,He=null,Me=null;function Ut(t){if(typeof he=="function"&&Ee(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(He,t)}catch{}}var Je=Math.clz32?Math.clz32:tS,vr=Math.log,Sn=Math.LN2;function tS(t){return t>>>=0,t===0?32:31-(vr(t)/Sn|0)|0}var mo=256,po=262144,go=4194304;function al(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 yo(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=al(s):(w&=E,w!==0?h=al(w):a||(a=E&~t,a!==0&&(h=al(a))))):(E=s&~p,E!==0?h=al(E):w!==0?h=al(w):a||(a=s&~t,a!==0&&(h=al(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 Vi(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function nS(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 fm(){var t=go;return go<<=1,(go&62914560)===0&&(go=4194304),t}function Pu(t){for(var n=[],a=0;31>a;a++)n.push(t);return n}function Gi(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function rS(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 K=31-Je(a),te=1<<K;E[K]=0,M[K]=-1;var V=I[K];if(V!==null)for(I[K]=null,K=0;K<V.length;K++){var G=V[K];G!==null&&(G.lane&=-536870913)}a&=~te}s!==0&&dm(t,s,0),p!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=p&~(w&~n))}function dm(t,n,a){t.pendingLanes|=n,t.suspendedLanes&=~n;var s=31-Je(n);t.entangledLanes|=n,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function hm(t,n){var a=t.entangledLanes|=n;for(t=t.entanglements;a;){var s=31-Je(a),h=1<<s;h&n|t[s]&n&&(t[s]|=n),a&=~h}}function mm(t,n){var a=n&-n;return a=(a&42)!==0?1:qu(a),(a&(t.suspendedLanes|n))!==0?0:a}function qu(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 Fu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function pm(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:ex(t.type))}function gm(t,n){var a=X.p;try{return X.p=t,n()}finally{X.p=a}}var wr=Math.random().toString(36).slice(2),Ct="__reactFiber$"+wr,Ht="__reactProps$"+wr,Dl="__reactContainer$"+wr,Iu="__reactEvents$"+wr,lS="__reactListeners$"+wr,iS="__reactHandles$"+wr,ym="__reactResources$"+wr,Yi="__reactMarker$"+wr;function Vu(t){delete t[Ct],delete t[Ht],delete t[Iu],delete t[lS],delete t[iS]}function Ll(t){var n=t[Ct];if(n)return n;for(var a=t.parentNode;a;){if(n=a[Dl]||a[Ct]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(t=Uy(t);t!==null;){if(a=t[Ct])return a;t=Uy(t)}return n}t=a,a=t.parentNode}return null}function Bl(t){if(t=t[Ct]||t[Dl]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function $i(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(i(33))}function Ul(t){var n=t[ym];return n||(n=t[ym]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function wt(t){t[Yi]=!0}var xm=new Set,bm={};function ol(t,n){Hl(t,n),Hl(t+"Capture",n)}function Hl(t,n){for(bm[t]=n,t=0;t<n.length;t++)xm.add(n[t])}var aS=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]*$"),vm={},wm={};function oS(t){return Xt.call(wm,t)?!0:Xt.call(vm,t)?!1:aS.test(t)?wm[t]=!0:(vm[t]=!0,!1)}function xo(t,n,a){if(oS(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 bo(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 sn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Sm(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function sS(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 Gu(t){if(!t._valueTracker){var n=Sm(t)?"checked":"value";t._valueTracker=sS(t,n,""+t[n])}}function km(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var a=n.getValue(),s="";return t&&(s=Sm(t)?t.checked?"true":"false":t.value),t=s,t!==a?(n.setValue(t),!0):!1}function vo(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 uS=/[\n"\\]/g;function un(t){return t.replace(uS,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Yu(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=""+sn(n)):t.value!==""+sn(n)&&(t.value=""+sn(n)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),n!=null?$u(t,w,sn(n)):a!=null?$u(t,w,sn(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=""+sn(E):t.removeAttribute("name")}function Cm(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)){Gu(t);return}a=a!=null?""+sn(a):"",n=n!=null?""+sn(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),Gu(t)}function $u(t,n,a){n==="number"&&vo(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Pl(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=""+sn(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 Em(t,n,a){if(n!=null&&(n=""+sn(n),n!==t.value&&(t.value=n),a==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=a!=null?""+sn(a):""}function Nm(t,n,a,s){if(n==null){if(s!=null){if(a!=null)throw Error(i(92));if($(s)){if(1<s.length)throw Error(i(93));s=s[0]}a=s}a==null&&(a=""),n=a}a=sn(n),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),Gu(t)}function ql(t,n){if(n){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=n;return}}t.textContent=n}var cS=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 Am(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||cS.has(n)?n==="float"?t.cssFloat=a:t[n]=(""+a).trim():t[n]=a+"px"}function Tm(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&&Am(t,h,s)}else for(var p in n)n.hasOwnProperty(p)&&Am(t,p,n[p])}function Xu(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 fS=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"]]),dS=/^[\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 wo(t){return dS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function $n(){}var Qu=null;function Zu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fl=null,Il=null;function jm(t){var n=Bl(t);if(n&&(t=n.stateNode)){var a=t[Ht]||null;e:switch(t=n.stateNode,n.type){case"input":if(Yu(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="'+un(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var s=a[n];if(s!==t&&s.form===t.form){var h=s[Ht]||null;if(!h)throw Error(i(90));Yu(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&&km(s)}break e;case"textarea":Em(t,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Pl(t,!!a.multiple,n,!1)}}}var Ku=!1;function _m(t,n,a){if(Ku)return t(n,a);Ku=!0;try{var s=t(n);return s}finally{if(Ku=!1,(Fl!==null||Il!==null)&&(ss(),Fl&&(n=Fl,t=Il,Il=Fl=null,jm(n),t)))for(n=0;n<t.length;n++)jm(t[n])}}function Xi(t,n){var a=t.stateNode;if(a===null)return null;var s=a[Ht]||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"),Ju=!1;if(Xn)try{var Qi={};Object.defineProperty(Qi,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",Qi,Qi),window.removeEventListener("test",Qi,Qi)}catch{Ju=!1}var Sr=null,Wu=null,So=null;function Rm(){if(So)return So;var t,n=Wu,a=n.length,s,h="value"in Sr?Sr.value:Sr.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 So=h.slice(t,1<s?1-s:void 0)}function ko(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 Co(){return!0}function Om(){return!1}function Pt(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)?Co:Om,this.isPropagationStopped=Om,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=Co)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Co)},persist:function(){},isPersistent:Co}),n}var sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eo=Pt(sl),Zi=y({},sl,{view:0,detail:0}),hS=Pt(Zi),ec,tc,Ki,No=y({},Zi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rc,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!==Ki&&(Ki&&t.type==="mousemove"?(ec=t.screenX-Ki.screenX,tc=t.screenY-Ki.screenY):tc=ec=0,Ki=t),ec)},movementY:function(t){return"movementY"in t?t.movementY:tc}}),Mm=Pt(No),mS=y({},No,{dataTransfer:0}),pS=Pt(mS),gS=y({},Zi,{relatedTarget:0}),nc=Pt(gS),yS=y({},sl,{animationName:0,elapsedTime:0,pseudoElement:0}),xS=Pt(yS),bS=y({},sl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),vS=Pt(bS),wS=y({},sl,{data:0}),zm=Pt(wS),SS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kS={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"},CS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ES(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=CS[t])?!!n[t]:!1}function rc(){return ES}var NS=y({},Zi,{key:function(t){if(t.key){var n=SS[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=ko(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?kS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rc,charCode:function(t){return t.type==="keypress"?ko(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ko(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),AS=Pt(NS),TS=y({},No,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dm=Pt(TS),jS=y({},Zi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rc}),_S=Pt(jS),RS=y({},sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),OS=Pt(RS),MS=y({},No,{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}),zS=Pt(MS),DS=y({},sl,{newState:0,oldState:0}),LS=Pt(DS),BS=[9,13,27,32],lc=Xn&&"CompositionEvent"in window,Ji=null;Xn&&"documentMode"in document&&(Ji=document.documentMode);var US=Xn&&"TextEvent"in window&&!Ji,Lm=Xn&&(!lc||Ji&&8<Ji&&11>=Ji),Bm=" ",Um=!1;function Hm(t,n){switch(t){case"keyup":return BS.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vl=!1;function HS(t,n){switch(t){case"compositionend":return Pm(n);case"keypress":return n.which!==32?null:(Um=!0,Bm);case"textInput":return t=n.data,t===Bm&&Um?null:t;default:return null}}function PS(t,n){if(Vl)return t==="compositionend"||!lc&&Hm(t,n)?(t=Rm(),So=Wu=Sr=null,Vl=!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 Lm&&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 qm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!qS[t.type]:n==="textarea"}function Fm(t,n,a,s){Fl?Il?Il.push(s):Il=[s]:Fl=s,n=ps(n,"onChange"),0<n.length&&(a=new Eo("onChange","change",null,a,s),t.push({event:a,listeners:n}))}var Wi=null,ea=null;function FS(t){Cy(t,0)}function Ao(t){var n=$i(t);if(km(n))return t}function Im(t,n){if(t==="change")return n}var Vm=!1;if(Xn){var ic;if(Xn){var ac="oninput"in document;if(!ac){var Gm=document.createElement("div");Gm.setAttribute("oninput","return;"),ac=typeof Gm.oninput=="function"}ic=ac}else ic=!1;Vm=ic&&(!document.documentMode||9<document.documentMode)}function Ym(){Wi&&(Wi.detachEvent("onpropertychange",$m),ea=Wi=null)}function $m(t){if(t.propertyName==="value"&&Ao(ea)){var n=[];Fm(n,ea,t,Zu(t)),_m(FS,n)}}function IS(t,n,a){t==="focusin"?(Ym(),Wi=n,ea=a,Wi.attachEvent("onpropertychange",$m)):t==="focusout"&&Ym()}function VS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ao(ea)}function GS(t,n){if(t==="click")return Ao(n)}function YS(t,n){if(t==="input"||t==="change")return Ao(n)}function $S(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Qt=typeof Object.is=="function"?Object.is:$S;function ta(t,n){if(Qt(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(!Xt.call(n,h)||!Qt(t[h],n[h]))return!1}return!0}function Xm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Qm(t,n){var a=Xm(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=Xm(a)}}function Zm(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?Zm(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Km(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=vo(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=vo(t.document)}return n}function oc(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 XS=Xn&&"documentMode"in document&&11>=document.documentMode,Gl=null,sc=null,na=null,uc=!1;function Jm(t,n,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;uc||Gl==null||Gl!==vo(s)||(s=Gl,"selectionStart"in s&&oc(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}),na&&ta(na,s)||(na=s,s=ps(sc,"onSelect"),0<s.length&&(n=new Eo("onSelect","select",null,n,a),t.push({event:n,listeners:s}),n.target=Gl)))}function ul(t,n){var a={};return a[t.toLowerCase()]=n.toLowerCase(),a["Webkit"+t]="webkit"+n,a["Moz"+t]="moz"+n,a}var Yl={animationend:ul("Animation","AnimationEnd"),animationiteration:ul("Animation","AnimationIteration"),animationstart:ul("Animation","AnimationStart"),transitionrun:ul("Transition","TransitionRun"),transitionstart:ul("Transition","TransitionStart"),transitioncancel:ul("Transition","TransitionCancel"),transitionend:ul("Transition","TransitionEnd")},cc={},Wm={};Xn&&(Wm=document.createElement("div").style,"AnimationEvent"in window||(delete Yl.animationend.animation,delete Yl.animationiteration.animation,delete Yl.animationstart.animation),"TransitionEvent"in window||delete Yl.transitionend.transition);function cl(t){if(cc[t])return cc[t];if(!Yl[t])return t;var n=Yl[t],a;for(a in n)if(n.hasOwnProperty(a)&&a in Wm)return cc[t]=n[a];return t}var ep=cl("animationend"),tp=cl("animationiteration"),np=cl("animationstart"),QS=cl("transitionrun"),ZS=cl("transitionstart"),KS=cl("transitioncancel"),rp=cl("transitionend"),lp=new Map,fc="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(" ");fc.push("scrollEnd");function kn(t,n){lp.set(t,n),ol(n,[t])}var To=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)},cn=[],$l=0,dc=0;function jo(){for(var t=$l,n=dc=$l=0;n<t;){var a=cn[n];cn[n++]=null;var s=cn[n];cn[n++]=null;var h=cn[n];cn[n++]=null;var p=cn[n];if(cn[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&&ip(a,h,p)}}function _o(t,n,a,s){cn[$l++]=t,cn[$l++]=n,cn[$l++]=a,cn[$l++]=s,dc|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function hc(t,n,a,s){return _o(t,n,a,s),Ro(t)}function fl(t,n){return _o(t,null,null,n),Ro(t)}function ip(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-Je(a),t=p.hiddenUpdates,s=t[h],s===null?t[h]=[n]:s.push(n),n.lane=a|536870912),p):null}function Ro(t){if(50<Ca)throw Ca=0,kf=null,Error(i(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var Xl={};function JS(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 Zt(t,n,a,s){return new JS(t,n,a,s)}function mc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Qn(t,n){var a=t.alternate;return a===null?(a=Zt(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 ap(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 Oo(t,n,a,s,h,p){var w=0;if(s=t,typeof t=="function")mc(t)&&(w=1);else if(typeof t=="string")w=r2(t,a,ne.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case oe:return t=Zt(31,a,n,h),t.elementType=oe,t.lanes=p,t;case C:return dl(a.children,h,p,n);case N:w=8,h|=24;break;case A:return t=Zt(12,a,n,h|2),t.elementType=A,t.lanes=p,t;case P:return t=Zt(13,a,n,h),t.elementType=P,t.lanes=p,t;case z:return t=Zt(19,a,n,h),t.elementType=z,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case R:w=10;break e;case _:w=9;break e;case B:w=11;break e;case q:w=14;break e;case Y:w=16,s=null;break e}w=29,a=Error(i(130,t===null?"null":typeof t,"")),s=null}return n=Zt(w,a,n,h),n.elementType=t,n.type=s,n.lanes=p,n}function dl(t,n,a,s){return t=Zt(7,t,s,n),t.lanes=a,t}function pc(t,n,a){return t=Zt(6,t,null,n),t.lanes=a,t}function op(t){var n=Zt(18,null,null,0);return n.stateNode=t,n}function gc(t,n,a){return n=Zt(4,t.children!==null?t.children:[],t.key,n),n.lanes=a,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var sp=new WeakMap;function fn(t,n){if(typeof t=="object"&&t!==null){var a=sp.get(t);return a!==void 0?a:(n={value:t,source:n,stack:xr(n)},sp.set(t,n),n)}return{value:t,source:n,stack:xr(n)}}var Ql=[],Zl=0,Mo=null,ra=0,dn=[],hn=0,kr=null,Rn=1,On="";function Zn(t,n){Ql[Zl++]=ra,Ql[Zl++]=Mo,Mo=t,ra=n}function up(t,n,a){dn[hn++]=Rn,dn[hn++]=On,dn[hn++]=kr,kr=t;var s=Rn;t=On;var h=32-Je(s)-1;s&=~(1<<h),a+=1;var p=32-Je(n)+h;if(30<p){var w=h-h%5;p=(s&(1<<w)-1).toString(32),s>>=w,h-=w,Rn=1<<32-Je(n)+h|a<<h|s,On=p+t}else Rn=1<<p|a<<h|s,On=t}function yc(t){t.return!==null&&(Zn(t,1),up(t,1,0))}function xc(t){for(;t===Mo;)Mo=Ql[--Zl],Ql[Zl]=null,ra=Ql[--Zl],Ql[Zl]=null;for(;t===kr;)kr=dn[--hn],dn[hn]=null,On=dn[--hn],dn[hn]=null,Rn=dn[--hn],dn[hn]=null}function cp(t,n){dn[hn++]=Rn,dn[hn++]=On,dn[hn++]=kr,Rn=n.id,On=n.overflow,kr=t}var Et=null,nt=null,Pe=!1,Cr=null,mn=!1,bc=Error(i(519));function Er(t){var n=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw la(fn(n,t)),bc}function fp(t){var n=t.stateNode,a=t.type,s=t.memoizedProps;switch(n[Ct]=t,n[Ht]=s,a){case"dialog":De("cancel",n),De("close",n);break;case"iframe":case"object":case"embed":De("load",n);break;case"video":case"audio":for(a=0;a<Na.length;a++)De(Na[a],n);break;case"source":De("error",n);break;case"img":case"image":case"link":De("error",n),De("load",n);break;case"details":De("toggle",n);break;case"input":De("invalid",n),Cm(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":De("invalid",n);break;case"textarea":De("invalid",n),Nm(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||Ty(n.textContent,a)?(s.popover!=null&&(De("beforetoggle",n),De("toggle",n)),s.onScroll!=null&&De("scroll",n),s.onScrollEnd!=null&&De("scrollend",n),s.onClick!=null&&(n.onclick=$n),n=!0):n=!1,n||Er(t,!0)}function dp(t){for(Et=t.return;Et;)switch(Et.tag){case 5:case 31:case 13:mn=!1;return;case 27:case 3:mn=!0;return;default:Et=Et.return}}function Kl(t){if(t!==Et)return!1;if(!Pe)return dp(t),Pe=!0,!1;var n=t.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Uf(t.type,t.memoizedProps)),a=!a),a&&nt&&Er(t),dp(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));nt=By(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));nt=By(t)}else n===27?(n=nt,Hr(t.type)?(t=If,If=null,nt=t):nt=n):nt=Et?gn(t.stateNode.nextSibling):null;return!0}function hl(){nt=Et=null,Pe=!1}function vc(){var t=Cr;return t!==null&&(Vt===null?Vt=t:Vt.push.apply(Vt,t),Cr=null),t}function la(t){Cr===null?Cr=[t]:Cr.push(t)}var wc=O(null),ml=null,Kn=null;function Nr(t,n,a){j(wc,n._currentValue),n._currentValue=a}function Jn(t){t._currentValue=wc.current,Q(wc)}function Sc(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 kc(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),Sc(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),Sc(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 Jl(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;Qt(h.pendingProps.value,w.value)||(t!==null?t.push(E):t=[E])}}else if(h===Ne.current){if(w=h.alternate,w===null)throw Error(i(387));w.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(Ra):t=[Ra])}h=h.return}t!==null&&kc(n,t,a,s),n.flags|=262144}function zo(t){for(t=t.firstContext;t!==null;){if(!Qt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function pl(t){ml=t,Kn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Nt(t){return hp(ml,t)}function Do(t,n){return ml===null&&pl(t),hp(t,n)}function hp(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 WS=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()})}},ek=e.unstable_scheduleCallback,tk=e.unstable_NormalPriority,ft={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cc(){return{controller:new WS,data:new Map,refCount:0}}function ia(t){t.refCount--,t.refCount===0&&ek(tk,function(){t.controller.abort()})}var aa=null,Ec=0,Wl=0,ei=null;function nk(t,n){if(aa===null){var a=aa=[];Ec=0,Wl=jf(),ei={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Ec++,n.then(mp,mp),n}function mp(){if(--Ec===0&&aa!==null){ei!==null&&(ei.status="fulfilled");var t=aa;aa=null,Wl=0,ei=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function rk(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 pp=D.S;D.S=function(t,n){Jg=kt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&nk(t,n),pp!==null&&pp(t,n)};var gl=O(null);function Nc(){var t=gl.current;return t!==null?t:We.pooledCache}function Lo(t,n){n===null?j(gl,gl.current):j(gl,n.pool)}function gp(){var t=Nc();return t===null?null:{parent:ft._currentValue,pool:t}}var ti=Error(i(460)),Ac=Error(i(474)),Bo=Error(i(542)),Uo={then:function(){}};function yp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function xp(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,vp(t),t;default:if(typeof n.status=="string")n.then($n,$n);else{if(t=We,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,vp(t),t}throw xl=n,ti}}function yl(t){try{var n=t._init;return n(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(xl=a,ti):a}}var xl=null;function bp(){if(xl===null)throw Error(i(459));var t=xl;return xl=null,t}function vp(t){if(t===ti||t===Bo)throw Error(i(483))}var ni=null,oa=0;function Ho(t){var n=oa;return oa+=1,ni===null&&(ni=[]),xp(ni,t,n)}function sa(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Po(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 wp(t){function n(H,L){if(t){var F=H.deletions;F===null?(H.deletions=[L],H.flags|=16):F.push(L)}}function a(H,L){if(!t)return null;for(;L!==null;)n(H,L),L=L.sibling;return null}function s(H){for(var L=new Map;H!==null;)H.key!==null?L.set(H.key,H):L.set(H.index,H),H=H.sibling;return L}function h(H,L){return H=Qn(H,L),H.index=0,H.sibling=null,H}function p(H,L,F){return H.index=F,t?(F=H.alternate,F!==null?(F=F.index,F<L?(H.flags|=67108866,L):F):(H.flags|=67108866,L)):(H.flags|=1048576,L)}function w(H){return t&&H.alternate===null&&(H.flags|=67108866),H}function E(H,L,F,W){return L===null||L.tag!==6?(L=pc(F,H.mode,W),L.return=H,L):(L=h(L,F),L.return=H,L)}function M(H,L,F,W){var be=F.type;return be===C?K(H,L,F.props.children,W,F.key):L!==null&&(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===Y&&yl(be)===L.type)?(L=h(L,F.props),sa(L,F),L.return=H,L):(L=Oo(F.type,F.key,F.props,null,H.mode,W),sa(L,F),L.return=H,L)}function I(H,L,F,W){return L===null||L.tag!==4||L.stateNode.containerInfo!==F.containerInfo||L.stateNode.implementation!==F.implementation?(L=gc(F,H.mode,W),L.return=H,L):(L=h(L,F.children||[]),L.return=H,L)}function K(H,L,F,W,be){return L===null||L.tag!==7?(L=dl(F,H.mode,W,be),L.return=H,L):(L=h(L,F),L.return=H,L)}function te(H,L,F){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=pc(""+L,H.mode,F),L.return=H,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case v:return F=Oo(L.type,L.key,L.props,null,H.mode,F),sa(F,L),F.return=H,F;case k:return L=gc(L,H.mode,F),L.return=H,L;case Y:return L=yl(L),te(H,L,F)}if($(L)||le(L))return L=dl(L,H.mode,F,null),L.return=H,L;if(typeof L.then=="function")return te(H,Ho(L),F);if(L.$$typeof===R)return te(H,Do(H,L),F);Po(H,L)}return null}function V(H,L,F,W){var be=L!==null?L.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return be!==null?null:E(H,L,""+F,W);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case v:return F.key===be?M(H,L,F,W):null;case k:return F.key===be?I(H,L,F,W):null;case Y:return F=yl(F),V(H,L,F,W)}if($(F)||le(F))return be!==null?null:K(H,L,F,W,null);if(typeof F.then=="function")return V(H,L,Ho(F),W);if(F.$$typeof===R)return V(H,L,Do(H,F),W);Po(H,F)}return null}function G(H,L,F,W,be){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return H=H.get(F)||null,E(L,H,""+W,be);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case v:return H=H.get(W.key===null?F:W.key)||null,M(L,H,W,be);case k:return H=H.get(W.key===null?F:W.key)||null,I(L,H,W,be);case Y:return W=yl(W),G(H,L,F,W,be)}if($(W)||le(W))return H=H.get(F)||null,K(L,H,W,be,null);if(typeof W.then=="function")return G(H,L,F,Ho(W),be);if(W.$$typeof===R)return G(H,L,F,Do(L,W),be);Po(L,W)}return null}function me(H,L,F,W){for(var be=null,Ie=null,ye=L,je=L=0,Ue=null;ye!==null&&je<F.length;je++){ye.index>je?(Ue=ye,ye=null):Ue=ye.sibling;var Ve=V(H,ye,F[je],W);if(Ve===null){ye===null&&(ye=Ue);break}t&&ye&&Ve.alternate===null&&n(H,ye),L=p(Ve,L,je),Ie===null?be=Ve:Ie.sibling=Ve,Ie=Ve,ye=Ue}if(je===F.length)return a(H,ye),Pe&&Zn(H,je),be;if(ye===null){for(;je<F.length;je++)ye=te(H,F[je],W),ye!==null&&(L=p(ye,L,je),Ie===null?be=ye:Ie.sibling=ye,Ie=ye);return Pe&&Zn(H,je),be}for(ye=s(ye);je<F.length;je++)Ue=G(ye,H,je,F[je],W),Ue!==null&&(t&&Ue.alternate!==null&&ye.delete(Ue.key===null?je:Ue.key),L=p(Ue,L,je),Ie===null?be=Ue:Ie.sibling=Ue,Ie=Ue);return t&&ye.forEach(function(Vr){return n(H,Vr)}),Pe&&Zn(H,je),be}function ke(H,L,F,W){if(F==null)throw Error(i(151));for(var be=null,Ie=null,ye=L,je=L=0,Ue=null,Ve=F.next();ye!==null&&!Ve.done;je++,Ve=F.next()){ye.index>je?(Ue=ye,ye=null):Ue=ye.sibling;var Vr=V(H,ye,Ve.value,W);if(Vr===null){ye===null&&(ye=Ue);break}t&&ye&&Vr.alternate===null&&n(H,ye),L=p(Vr,L,je),Ie===null?be=Vr:Ie.sibling=Vr,Ie=Vr,ye=Ue}if(Ve.done)return a(H,ye),Pe&&Zn(H,je),be;if(ye===null){for(;!Ve.done;je++,Ve=F.next())Ve=te(H,Ve.value,W),Ve!==null&&(L=p(Ve,L,je),Ie===null?be=Ve:Ie.sibling=Ve,Ie=Ve);return Pe&&Zn(H,je),be}for(ye=s(ye);!Ve.done;je++,Ve=F.next())Ve=G(ye,H,je,Ve.value,W),Ve!==null&&(t&&Ve.alternate!==null&&ye.delete(Ve.key===null?je:Ve.key),L=p(Ve,L,je),Ie===null?be=Ve:Ie.sibling=Ve,Ie=Ve);return t&&ye.forEach(function(m2){return n(H,m2)}),Pe&&Zn(H,je),be}function Ke(H,L,F,W){if(typeof F=="object"&&F!==null&&F.type===C&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case v:e:{for(var be=F.key;L!==null;){if(L.key===be){if(be=F.type,be===C){if(L.tag===7){a(H,L.sibling),W=h(L,F.props.children),W.return=H,H=W;break e}}else if(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===Y&&yl(be)===L.type){a(H,L.sibling),W=h(L,F.props),sa(W,F),W.return=H,H=W;break e}a(H,L);break}else n(H,L);L=L.sibling}F.type===C?(W=dl(F.props.children,H.mode,W,F.key),W.return=H,H=W):(W=Oo(F.type,F.key,F.props,null,H.mode,W),sa(W,F),W.return=H,H=W)}return w(H);case k:e:{for(be=F.key;L!==null;){if(L.key===be)if(L.tag===4&&L.stateNode.containerInfo===F.containerInfo&&L.stateNode.implementation===F.implementation){a(H,L.sibling),W=h(L,F.children||[]),W.return=H,H=W;break e}else{a(H,L);break}else n(H,L);L=L.sibling}W=gc(F,H.mode,W),W.return=H,H=W}return w(H);case Y:return F=yl(F),Ke(H,L,F,W)}if($(F))return me(H,L,F,W);if(le(F)){if(be=le(F),typeof be!="function")throw Error(i(150));return F=be.call(F),ke(H,L,F,W)}if(typeof F.then=="function")return Ke(H,L,Ho(F),W);if(F.$$typeof===R)return Ke(H,L,Do(H,F),W);Po(H,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,L!==null&&L.tag===6?(a(H,L.sibling),W=h(L,F),W.return=H,H=W):(a(H,L),W=pc(F,H.mode,W),W.return=H,H=W),w(H)):a(H,L)}return function(H,L,F,W){try{oa=0;var be=Ke(H,L,F,W);return ni=null,be}catch(ye){if(ye===ti||ye===Bo)throw ye;var Ie=Zt(29,ye,null,H.mode);return Ie.lanes=W,Ie.return=H,Ie}finally{}}}var bl=wp(!0),Sp=wp(!1),Ar=!1;function Tc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jc(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 jr(t,n,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Ye&2)!==0){var h=s.pending;return h===null?n.next=n:(n.next=h.next,h.next=n),s.pending=n,n=Ro(t),ip(t,null,a),n}return _o(t,s,n,a),Ro(t)}function ua(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,hm(t,a)}}function _c(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 Rc=!1;function ca(){if(Rc){var t=ei;if(t!==null)throw t}}function fa(t,n,a,s){Rc=!1;var h=t.updateQueue;Ar=!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 K=t.alternate;K!==null&&(K=K.updateQueue,E=K.lastBaseUpdate,E!==w&&(E===null?K.firstBaseUpdate=I:E.next=I,K.lastBaseUpdate=M))}if(p!==null){var te=h.baseState;w=0,K=I=M=null,E=p;do{var V=E.lane&-536870913,G=V!==E.lane;if(G?(Be&V)===V:(s&V)===V){V!==0&&V===Wl&&(Rc=!0),K!==null&&(K=K.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var me=t,ke=E;V=n;var Ke=a;switch(ke.tag){case 1:if(me=ke.payload,typeof me=="function"){te=me.call(Ke,te,V);break e}te=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ke.payload,V=typeof me=="function"?me.call(Ke,te,V):me,V==null)break e;te=y({},te,V);break e;case 2:Ar=!0}}V=E.callback,V!==null&&(t.flags|=64,G&&(t.flags|=8192),G=h.callbacks,G===null?h.callbacks=[V]:G.push(V))}else G={lane:V,tag:E.tag,payload:E.payload,callback:E.callback,next:null},K===null?(I=K=G,M=te):K=K.next=G,w|=V;if(E=E.next,E===null){if(E=h.shared.pending,E===null)break;G=E,E=G.next,G.next=null,h.lastBaseUpdate=G,h.shared.pending=null}}while(!0);K===null&&(M=te),h.baseState=M,h.firstBaseUpdate=I,h.lastBaseUpdate=K,p===null&&(h.shared.lanes=0),zr|=w,t.lanes=w,t.memoizedState=te}}function kp(t,n){if(typeof t!="function")throw Error(i(191,t));t.call(n)}function Cp(t,n){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)kp(a[t],n)}var ri=O(null),qo=O(0);function Ep(t,n){t=or,j(qo,t),j(ri,n),or=t|n.baseLanes}function Oc(){j(qo,or),j(ri,ri.current)}function Mc(){or=qo.current,Q(ri),Q(qo)}var Kt=O(null),pn=null;function _r(t){var n=t.alternate;j(ut,ut.current&1),j(Kt,t),pn===null&&(n===null||ri.current!==null||n.memoizedState!==null)&&(pn=t)}function zc(t){j(ut,ut.current),j(Kt,t),pn===null&&(pn=t)}function Np(t){t.tag===22?(j(ut,ut.current),j(Kt,t),pn===null&&(pn=t)):Rr()}function Rr(){j(ut,ut.current),j(Kt,Kt.current)}function Jt(t){Q(Kt),pn===t&&(pn=null),Q(ut)}var ut=O(0);function Fo(t){for(var n=t;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||qf(a)||Ff(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,Te=null,Qe=null,dt=null,Io=!1,li=!1,vl=!1,Vo=0,da=0,ii=null,lk=0;function ot(){throw Error(i(321))}function Dc(t,n){if(n===null)return!1;for(var a=0;a<n.length&&a<t.length;a++)if(!Qt(t[a],n[a]))return!1;return!0}function Lc(t,n,a,s,h,p){return Wn=p,Te=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=t===null||t.memoizedState===null?ug:Kc,vl=!1,p=a(s,h),vl=!1,li&&(p=Tp(n,a,s,h)),Ap(t),p}function Ap(t){D.H=pa;var n=Qe!==null&&Qe.next!==null;if(Wn=0,dt=Qe=Te=null,Io=!1,da=0,ii=null,n)throw Error(i(300));t===null||ht||(t=t.dependencies,t!==null&&zo(t)&&(ht=!0))}function Tp(t,n,a,s){Te=t;var h=0;do{if(li&&(ii=null),da=0,li=!1,25<=h)throw Error(i(301));if(h+=1,dt=Qe=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=cg,p=n(a,s)}while(li);return p}function ik(){var t=D.H,n=t.useState()[0];return n=typeof n.then=="function"?ha(n):n,t=t.useState()[0],(Qe!==null?Qe.memoizedState:null)!==t&&(Te.flags|=1024),n}function Bc(){var t=Vo!==0;return Vo=0,t}function Uc(t,n,a){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~a}function Hc(t){if(Io){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Io=!1}Wn=0,dt=Qe=Te=null,li=!1,da=Vo=0,ii=null}function Dt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?Te.memoizedState=dt=t:dt=dt.next=t,dt}function ct(){if(Qe===null){var t=Te.alternate;t=t!==null?t.memoizedState:null}else t=Qe.next;var n=dt===null?Te.memoizedState:dt.next;if(n!==null)dt=n,Qe=t;else{if(t===null)throw Te.alternate===null?Error(i(467)):Error(i(310));Qe=t,t={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},dt===null?Te.memoizedState=dt=t:dt=dt.next=t}return dt}function Go(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ha(t){var n=da;return da+=1,ii===null&&(ii=[]),t=xp(ii,t,n),n=Te,(dt===null?n.memoizedState:dt.next)===null&&(n=n.alternate,D.H=n===null||n.memoizedState===null?ug:Kc),t}function Yo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ha(t);if(t.$$typeof===R)return Nt(t)}throw Error(i(438,String(t)))}function Pc(t){var n=null,a=Te.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var s=Te.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=Go(),Te.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]=U;return n.index++,a}function er(t,n){return typeof n=="function"?n(t):n}function $o(t){var n=ct();return qc(n,Qe,t)}function qc(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,K=!1;do{var te=I.lane&-536870913;if(te!==I.lane?(Be&te)===te:(Wn&te)===te){var V=I.revertLane;if(V===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),te===Wl&&(K=!0);else if((Wn&V)===V){I=I.next,V===Wl&&(K=!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,Te.lanes|=V,zr|=V;te=I.action,vl&&a(p,te),p=I.hasEagerState?I.eagerState:a(p,te)}else V={lane:te,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(E=M=V,w=p):M=M.next=V,Te.lanes|=te,zr|=te;I=I.next}while(I!==null&&I!==n);if(M===null?w=p:M.next=E,!Qt(p,t.memoizedState)&&(ht=!0,K&&(a=ei,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 Fc(t){var n=ct(),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);Qt(p,n.memoizedState)||(ht=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),a.lastRenderedState=p}return[p,s]}function jp(t,n,a){var s=Te,h=ct(),p=Pe;if(p){if(a===void 0)throw Error(i(407));a=a()}else a=n();var w=!Qt((Qe||h).memoizedState,a);if(w&&(h.memoizedState=a,ht=!0),h=h.queue,Gc(Op.bind(null,s,h,t),[t]),h.getSnapshot!==n||w||dt!==null&&dt.memoizedState.tag&1){if(s.flags|=2048,ai(9,{destroy:void 0},Rp.bind(null,s,h,a,n),null),We===null)throw Error(i(349));p||(Wn&127)!==0||_p(s,n,a)}return a}function _p(t,n,a){t.flags|=16384,t={getSnapshot:n,value:a},n=Te.updateQueue,n===null?(n=Go(),Te.updateQueue=n,n.stores=[t]):(a=n.stores,a===null?n.stores=[t]:a.push(t))}function Rp(t,n,a,s){n.value=a,n.getSnapshot=s,Mp(n)&&zp(t)}function Op(t,n,a){return a(function(){Mp(n)&&zp(t)})}function Mp(t){var n=t.getSnapshot;t=t.value;try{var a=n();return!Qt(t,a)}catch{return!0}}function zp(t){var n=fl(t,2);n!==null&&Gt(n,t,2)}function Ic(t){var n=Dt();if(typeof t=="function"){var a=t;if(t=a(),vl){Ut(!0);try{a()}finally{Ut(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:er,lastRenderedState:t},n}function Dp(t,n,a,s){return t.baseState=a,qc(t,Qe,typeof s=="function"?s:er)}function ak(t,n,a,s,h){if(Zo(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,Lp(n,p)):(p.next=a.next,n.pending=a.next=p)}}function Lp(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),Bp(t,n,E)}catch(I){Vc(t,n,I)}finally{p!==null&&w.types!==null&&(p.types=w.types),D.T=p}}else try{p=a(h,s),Bp(t,n,p)}catch(I){Vc(t,n,I)}}function Bp(t,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Up(t,n,s)},function(s){return Vc(t,n,s)}):Up(t,n,a)}function Up(t,n,a){n.status="fulfilled",n.value=a,Hp(n),t.state=a,n=t.pending,n!==null&&(a=n.next,a===n?t.pending=null:(a=a.next,n.next=a,Lp(t,a)))}function Vc(t,n,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=a,Hp(n),n=n.next;while(n!==s)}t.action=null}function Hp(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Pp(t,n){return n}function qp(t,n){if(Pe){var a=We.formState;if(a!==null){e:{var s=Te;if(Pe){if(nt){t:{for(var h=nt,p=mn;h.nodeType!==8;){if(!p){h=null;break t}if(h=gn(h.nextSibling),h===null){h=null;break t}}p=h.data,h=p==="F!"||p==="F"?h:null}if(h){nt=gn(h.nextSibling),s=h.data==="F!";break e}}Er(s)}s=!1}s&&(n=a[0])}}return a=Dt(),a.memoizedState=a.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pp,lastRenderedState:n},a.queue=s,a=ag.bind(null,Te,s),s.dispatch=a,s=Ic(!1),p=Zc.bind(null,Te,!1,s.queue),s=Dt(),h={state:n,dispatch:null,action:t,pending:null},s.queue=h,a=ak.bind(null,Te,h,p,a),h.dispatch=a,s.memoizedState=t,[n,a,!1]}function Fp(t){var n=ct();return Ip(n,Qe,t)}function Ip(t,n,a){if(n=qc(t,n,Pp)[0],t=$o(er)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=ha(n)}catch(w){throw w===ti?Bo:w}else s=n;n=ct();var h=n.queue,p=h.dispatch;return a!==n.memoizedState&&(Te.flags|=2048,ai(9,{destroy:void 0},ok.bind(null,h,a),null)),[s,p,t]}function ok(t,n){t.action=n}function Vp(t){var n=ct(),a=Qe;if(a!==null)return Ip(n,a,t);ct(),n=n.memoizedState,a=ct();var s=a.queue.dispatch;return a.memoizedState=t,[n,s,!1]}function ai(t,n,a,s){return t={tag:t,create:a,deps:s,inst:n,next:null},n=Te.updateQueue,n===null&&(n=Go(),Te.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 Gp(){return ct().memoizedState}function Xo(t,n,a,s){var h=Dt();Te.flags|=t,h.memoizedState=ai(1|n,{destroy:void 0},a,s===void 0?null:s)}function Qo(t,n,a,s){var h=ct();s=s===void 0?null:s;var p=h.memoizedState.inst;Qe!==null&&s!==null&&Dc(s,Qe.memoizedState.deps)?h.memoizedState=ai(n,p,a,s):(Te.flags|=t,h.memoizedState=ai(1|n,p,a,s))}function Yp(t,n){Xo(8390656,8,t,n)}function Gc(t,n){Qo(2048,8,t,n)}function sk(t){Te.flags|=4;var n=Te.updateQueue;if(n===null)n=Go(),Te.updateQueue=n,n.events=[t];else{var a=n.events;a===null?n.events=[t]:a.push(t)}}function $p(t){var n=ct().memoizedState;return sk({ref:n,nextImpl:t}),function(){if((Ye&2)!==0)throw Error(i(440));return n.impl.apply(void 0,arguments)}}function Xp(t,n){return Qo(4,2,t,n)}function Qp(t,n){return Qo(4,4,t,n)}function Zp(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 Kp(t,n,a){a=a!=null?a.concat([t]):null,Qo(4,4,Zp.bind(null,n,t),a)}function Yc(){}function Jp(t,n){var a=ct();n=n===void 0?null:n;var s=a.memoizedState;return n!==null&&Dc(n,s[1])?s[0]:(a.memoizedState=[t,n],t)}function Wp(t,n){var a=ct();n=n===void 0?null:n;var s=a.memoizedState;if(n!==null&&Dc(n,s[1]))return s[0];if(s=t(),vl){Ut(!0);try{t()}finally{Ut(!1)}}return a.memoizedState=[s,n],s}function $c(t,n,a){return a===void 0||(Wn&1073741824)!==0&&(Be&261930)===0?t.memoizedState=n:(t.memoizedState=a,t=ey(),Te.lanes|=t,zr|=t,a)}function eg(t,n,a,s){return Qt(a,n)?a:ri.current!==null?(t=$c(t,a,s),Qt(t,n)||(ht=!0),t):(Wn&42)===0||(Wn&1073741824)!==0&&(Be&261930)===0?(ht=!0,t.memoizedState=a):(t=ey(),Te.lanes|=t,zr|=t,n)}function tg(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,Zc(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 K=rk(M,s);ma(t,n,K,tn(t))}else ma(t,n,s,tn(t))}catch(te){ma(t,n,{then:function(){},status:"rejected",reason:te},tn())}finally{X.p=p,w!==null&&E.types!==null&&(w.types=E.types),D.T=w}}function uk(){}function Xc(t,n,a,s){if(t.tag!==5)throw Error(i(476));var h=ng(t).queue;tg(t,h,n,ee,a===null?uk:function(){return rg(t),a(s)})}function ng(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:er,lastRenderedState:ee},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 rg(t){var n=ng(t);n.next===null&&(n=t.alternate.memoizedState),ma(t,n.next.queue,{},tn())}function Qc(){return Nt(Ra)}function lg(){return ct().memoizedState}function ig(){return ct().memoizedState}function ck(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var a=tn();t=Tr(a);var s=jr(n,t,a);s!==null&&(Gt(s,n,a),ua(s,n,a)),n={cache:Cc()},t.payload=n;return}n=n.return}}function fk(t,n,a){var s=tn();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Zo(t)?og(n,a):(a=hc(t,n,a,s),a!==null&&(Gt(a,t,s),sg(a,n,s)))}function ag(t,n,a){var s=tn();ma(t,n,a,s)}function ma(t,n,a,s){var h={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Zo(t))og(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,Qt(E,w))return _o(t,n,h,0),We===null&&jo(),!1}catch{}finally{}if(a=hc(t,n,h,s),a!==null)return Gt(a,t,s),sg(a,n,s),!0}return!1}function Zc(t,n,a,s){if(s={lane:2,revertLane:jf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Zo(t)){if(n)throw Error(i(479))}else n=hc(t,a,s,2),n!==null&&Gt(n,t,2)}function Zo(t){var n=t.alternate;return t===Te||n!==null&&n===Te}function og(t,n){li=Io=!0;var a=t.pending;a===null?n.next=n:(n.next=a.next,a.next=n),t.pending=n}function sg(t,n,a){if((a&4194048)!==0){var s=n.lanes;s&=t.pendingLanes,a|=s,n.lanes=a,hm(t,a)}}var pa={readContext:Nt,use:Yo,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};pa.useEffectEvent=ot;var ug={readContext:Nt,use:Yo,useCallback:function(t,n){return Dt().memoizedState=[t,n===void 0?null:n],t},useContext:Nt,useEffect:Yp,useImperativeHandle:function(t,n,a){a=a!=null?a.concat([t]):null,Xo(4194308,4,Zp.bind(null,n,t),a)},useLayoutEffect:function(t,n){return Xo(4194308,4,t,n)},useInsertionEffect:function(t,n){Xo(4,2,t,n)},useMemo:function(t,n){var a=Dt();n=n===void 0?null:n;var s=t();if(vl){Ut(!0);try{t()}finally{Ut(!1)}}return a.memoizedState=[s,n],s},useReducer:function(t,n,a){var s=Dt();if(a!==void 0){var h=a(n);if(vl){Ut(!0);try{a(n)}finally{Ut(!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=fk.bind(null,Te,t),[s.memoizedState,t]},useRef:function(t){var n=Dt();return t={current:t},n.memoizedState=t},useState:function(t){t=Ic(t);var n=t.queue,a=ag.bind(null,Te,n);return n.dispatch=a,[t.memoizedState,a]},useDebugValue:Yc,useDeferredValue:function(t,n){var a=Dt();return $c(a,t,n)},useTransition:function(){var t=Ic(!1);return t=tg.bind(null,Te,t.queue,!0,!1),Dt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,a){var s=Te,h=Dt();if(Pe){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),We===null)throw Error(i(349));(Be&127)!==0||_p(s,n,a)}h.memoizedState=a;var p={value:a,getSnapshot:n};return h.queue=p,Yp(Op.bind(null,s,p,t),[t]),s.flags|=2048,ai(9,{destroy:void 0},Rp.bind(null,s,p,a,n),null),a},useId:function(){var t=Dt(),n=We.identifierPrefix;if(Pe){var a=On,s=Rn;a=(s&~(1<<32-Je(s)-1)).toString(32)+a,n="_"+n+"R_"+a,a=Vo++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=lk++,n="_"+n+"r_"+a.toString(32)+"_";return t.memoizedState=n},useHostTransitionStatus:Qc,useFormState:qp,useActionState:qp,useOptimistic:function(t){var n=Dt();n.memoizedState=n.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Zc.bind(null,Te,!0,a),a.dispatch=n,[t,n]},useMemoCache:Pc,useCacheRefresh:function(){return Dt().memoizedState=ck.bind(null,Te)},useEffectEvent:function(t){var n=Dt(),a={impl:t};return n.memoizedState=a,function(){if((Ye&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Kc={readContext:Nt,use:Yo,useCallback:Jp,useContext:Nt,useEffect:Gc,useImperativeHandle:Kp,useInsertionEffect:Xp,useLayoutEffect:Qp,useMemo:Wp,useReducer:$o,useRef:Gp,useState:function(){return $o(er)},useDebugValue:Yc,useDeferredValue:function(t,n){var a=ct();return eg(a,Qe.memoizedState,t,n)},useTransition:function(){var t=$o(er)[0],n=ct().memoizedState;return[typeof t=="boolean"?t:ha(t),n]},useSyncExternalStore:jp,useId:lg,useHostTransitionStatus:Qc,useFormState:Fp,useActionState:Fp,useOptimistic:function(t,n){var a=ct();return Dp(a,Qe,t,n)},useMemoCache:Pc,useCacheRefresh:ig};Kc.useEffectEvent=$p;var cg={readContext:Nt,use:Yo,useCallback:Jp,useContext:Nt,useEffect:Gc,useImperativeHandle:Kp,useInsertionEffect:Xp,useLayoutEffect:Qp,useMemo:Wp,useReducer:Fc,useRef:Gp,useState:function(){return Fc(er)},useDebugValue:Yc,useDeferredValue:function(t,n){var a=ct();return Qe===null?$c(a,t,n):eg(a,Qe.memoizedState,t,n)},useTransition:function(){var t=Fc(er)[0],n=ct().memoizedState;return[typeof t=="boolean"?t:ha(t),n]},useSyncExternalStore:jp,useId:lg,useHostTransitionStatus:Qc,useFormState:Vp,useActionState:Vp,useOptimistic:function(t,n){var a=ct();return Qe!==null?Dp(a,Qe,t,n):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Pc,useCacheRefresh:ig};cg.useEffectEvent=$p;function Jc(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 Wc={enqueueSetState:function(t,n,a){t=t._reactInternals;var s=tn(),h=Tr(s);h.payload=n,a!=null&&(h.callback=a),n=jr(t,h,s),n!==null&&(Gt(n,t,s),ua(n,t,s))},enqueueReplaceState:function(t,n,a){t=t._reactInternals;var s=tn(),h=Tr(s);h.tag=1,h.payload=n,a!=null&&(h.callback=a),n=jr(t,h,s),n!==null&&(Gt(n,t,s),ua(n,t,s))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var a=tn(),s=Tr(a);s.tag=2,n!=null&&(s.callback=n),n=jr(t,s,a),n!==null&&(Gt(n,t,a),ua(n,t,a))}};function fg(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?!ta(a,s)||!ta(h,p):!0}function dg(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&&Wc.enqueueReplaceState(n,n.state,null)}function wl(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 hg(t){To(t)}function mg(t){console.error(t)}function pg(t){To(t)}function Ko(t,n){try{var a=t.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function gg(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 ef(t,n,a){return a=Tr(a),a.tag=3,a.payload={element:null},a.callback=function(){Ko(t,n)},a}function yg(t){return t=Tr(t),t.tag=3,t}function xg(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(){gg(n,a,s)}}var w=a.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(t.callback=function(){gg(n,a,s),typeof h!="function"&&(Dr===null?Dr=new Set([this]):Dr.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})})}function dk(t,n,a,s,h){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=a.alternate,n!==null&&Jl(n,a,h,!0),a=Kt.current,a!==null){switch(a.tag){case 31:case 13:return pn===null?us():a.alternate===null&&st===0&&(st=3),a.flags&=-257,a.flags|=65536,a.lanes=h,s===Uo?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([s]):n.add(s),Nf(t,s,h)),!1;case 22:return a.flags|=65536,s===Uo?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)),Nf(t,s,h)),!1}throw Error(i(435,a.tag))}return Nf(t,s,h),us(),!1}if(Pe)return n=Kt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=h,s!==bc&&(t=Error(i(422),{cause:s}),la(fn(t,a)))):(s!==bc&&(n=Error(i(423),{cause:s}),la(fn(n,a))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,s=fn(s,a),h=ef(t.stateNode,s,h),_c(t,h),st!==4&&(st=2)),!1;var p=Error(i(520),{cause:s});if(p=fn(p,a),ka===null?ka=[p]:ka.push(p),st!==4&&(st=2),n===null)return!0;s=fn(s,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,t=h&-h,a.lanes|=t,t=ef(a.stateNode,s,t),_c(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"&&(Dr===null||!Dr.has(p))))return a.flags|=65536,h&=-h,a.lanes|=h,h=yg(h),xg(h,t,a,s),_c(a,h),!1}a=a.return}while(a!==null);return!1}var tf=Error(i(461)),ht=!1;function At(t,n,a,s){n.child=t===null?Sp(n,null,a,s):bl(n,t.child,a,s)}function bg(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 pl(n),s=Lc(t,n,a,w,p,h),E=Bc(),t!==null&&!ht?(Uc(t,n,h),tr(t,n,h)):(Pe&&E&&yc(n),n.flags|=1,At(t,n,s,h),n.child)}function vg(t,n,a,s,h){if(t===null){var p=a.type;return typeof p=="function"&&!mc(p)&&p.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=p,wg(t,n,p,s,h)):(t=Oo(a.type,null,s,n,n.mode,h),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!cf(t,h)){var w=p.memoizedProps;if(a=a.compare,a=a!==null?a:ta,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 wg(t,n,a,s,h){if(t!==null){var p=t.memoizedProps;if(ta(p,s)&&t.ref===n.ref)if(ht=!1,n.pendingProps=s=p,cf(t,h))(t.flags&131072)!==0&&(ht=!0);else return n.lanes=t.lanes,tr(t,n,h)}return nf(t,n,a,s,h)}function Sg(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 kg(t,n,p,a,s)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Lo(n,p!==null?p.cachePool:null),p!==null?Ep(n,p):Oc(),Np(n);else return s=n.lanes=536870912,kg(t,n,p!==null?p.baseLanes|a:a,a,s)}else p!==null?(Lo(n,p.cachePool),Ep(n,p),Rr(),n.memoizedState=null):(t!==null&&Lo(n,null),Oc(),Rr());return At(t,n,h,a),n.child}function ga(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function kg(t,n,a,s,h){var p=Nc();return p=p===null?null:{parent:ft._currentValue,pool:p},n.memoizedState={baseLanes:a,cachePool:p},t!==null&&Lo(n,null),Oc(),Np(n),t!==null&&Jl(t,n,s,!0),n.childLanes=h,null}function Jo(t,n){return n=es({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function Cg(t,n,a){return bl(n,t.child,null,a),t=Jo(n,n.pendingProps),t.flags|=2,Jt(n),n.memoizedState=null,t}function hk(t,n,a){var s=n.pendingProps,h=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Pe){if(s.mode==="hidden")return t=Jo(n,s),n.lanes=536870912,ga(null,t);if(zc(n),(t=nt)?(t=Ly(t,mn),t=t!==null&&t.data==="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:kr!==null?{id:Rn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},a=op(t),a.return=n,n.child=a,Et=n,nt=null)):t=null,t===null)throw Er(n);return n.lanes=536870912,null}return Jo(n,s)}var p=t.memoizedState;if(p!==null){var w=p.dehydrated;if(zc(n),h)if(n.flags&256)n.flags&=-257,n=Cg(t,n,a);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error(i(558));else if(ht||Jl(t,n,a,!1),h=(a&t.childLanes)!==0,ht||h){if(s=We,s!==null&&(w=mm(s,a),w!==0&&w!==p.retryLane))throw p.retryLane=w,fl(t,w),Gt(s,t,w),tf;us(),n=Cg(t,n,a)}else t=p.treeContext,nt=gn(w.nextSibling),Et=n,Pe=!0,Cr=null,mn=!1,t!==null&&cp(n,t),n=Jo(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 Wo(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 nf(t,n,a,s,h){return pl(n),a=Lc(t,n,a,s,void 0,h),s=Bc(),t!==null&&!ht?(Uc(t,n,h),tr(t,n,h)):(Pe&&s&&yc(n),n.flags|=1,At(t,n,a,h),n.child)}function Eg(t,n,a,s,h,p){return pl(n),n.updateQueue=null,a=Tp(n,s,a,h),Ap(t),s=Bc(),t!==null&&!ht?(Uc(t,n,p),tr(t,n,p)):(Pe&&s&&yc(n),n.flags|=1,At(t,n,a,p),n.child)}function Ng(t,n,a,s,h){if(pl(n),n.stateNode===null){var p=Xl,w=a.contextType;typeof w=="object"&&w!==null&&(p=Nt(w)),p=new a(s,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Wc,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?Nt(w):Xl,p.state=n.memoizedState,w=a.getDerivedStateFromProps,typeof w=="function"&&(Jc(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&&Wc.enqueueReplaceState(p,p.state,null),fa(n,s,p,h),ca(),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=wl(a,E);p.props=M;var I=p.context,K=a.contextType;w=Xl,typeof K=="object"&&K!==null&&(w=Nt(K));var te=a.getDerivedStateFromProps;K=typeof te=="function"||typeof p.getSnapshotBeforeUpdate=="function",E=n.pendingProps!==E,K||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(E||I!==w)&&dg(n,p,s,w),Ar=!1;var V=n.memoizedState;p.state=V,fa(n,s,p,h),ca(),I=n.memoizedState,E||V!==I||Ar?(typeof te=="function"&&(Jc(n,a,te,s),I=n.memoizedState),(M=Ar||fg(n,a,M,s,V,I,w))?(K||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,jc(t,n),w=n.memoizedProps,K=wl(a,w),p.props=K,te=n.pendingProps,V=p.context,I=a.contextType,M=Xl,typeof I=="object"&&I!==null&&(M=Nt(I)),E=a.getDerivedStateFromProps,(I=typeof E=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==te||V!==M)&&dg(n,p,s,M),Ar=!1,V=n.memoizedState,p.state=V,fa(n,s,p,h),ca();var G=n.memoizedState;w!==te||V!==G||Ar||t!==null&&t.dependencies!==null&&zo(t.dependencies)?(typeof E=="function"&&(Jc(n,a,E,s),G=n.memoizedState),(K=Ar||fg(n,a,K,s,V,G,M)||t!==null&&t.dependencies!==null&&zo(t.dependencies))?(I||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,G,M),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,G,M)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===t.memoizedProps&&V===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&V===t.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=G),p.props=s,p.state=G,p.context=M,s=K):(typeof p.componentDidUpdate!="function"||w===t.memoizedProps&&V===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&V===t.memoizedState||(n.flags|=1024),s=!1)}return p=s,Wo(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=bl(n,t.child,null,h),n.child=bl(n,null,a,h)):At(t,n,a,h),n.memoizedState=p.state,t=n.child):t=tr(t,n,h),t}function Ag(t,n,a,s){return hl(),n.flags|=256,At(t,n,a,s),n.child}var rf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lf(t){return{baseLanes:t,cachePool:gp()}}function af(t,n,a){return t=t!==null?t.childLanes&~a:0,n&&(t|=en),t}function Tg(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:(ut.current&2)!==0),w&&(h=!0,n.flags&=-129),w=(n.flags&32)!==0,n.flags&=-33,t===null){if(Pe){if(h?_r(n):Rr(),(t=nt)?(t=Ly(t,mn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(n.memoizedState={dehydrated:t,treeContext:kr!==null?{id:Rn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},a=op(t),a.return=n,n.child=a,Et=n,nt=null)):t=null,t===null)throw Er(n);return Ff(t)?n.lanes=32:n.lanes=536870912,null}var E=s.children;return s=s.fallback,h?(Rr(),h=n.mode,E=es({mode:"hidden",children:E},h),s=dl(s,h,a,null),E.return=n,s.return=n,E.sibling=s,n.child=E,s=n.child,s.memoizedState=lf(a),s.childLanes=af(t,w,a),n.memoizedState=rf,ga(null,s)):(_r(n),of(n,E))}var M=t.memoizedState;if(M!==null&&(E=M.dehydrated,E!==null)){if(p)n.flags&256?(_r(n),n.flags&=-257,n=sf(t,n,a)):n.memoizedState!==null?(Rr(),n.child=t.child,n.flags|=128,n=null):(Rr(),E=s.fallback,h=n.mode,s=es({mode:"visible",children:s.children},h),E=dl(E,h,a,null),E.flags|=2,s.return=n,E.return=n,s.sibling=E,n.child=s,bl(n,t.child,null,a),s=n.child,s.memoizedState=lf(a),s.childLanes=af(t,w,a),n.memoizedState=rf,n=ga(null,s));else if(_r(n),Ff(E)){if(w=E.nextSibling&&E.nextSibling.dataset,w)var I=w.dgst;w=I,s=Error(i(419)),s.stack="",s.digest=w,la({value:s,source:null,stack:null}),n=sf(t,n,a)}else if(ht||Jl(t,n,a,!1),w=(a&t.childLanes)!==0,ht||w){if(w=We,w!==null&&(s=mm(w,a),s!==0&&s!==M.retryLane))throw M.retryLane=s,fl(t,s),Gt(w,t,s),tf;qf(E)||us(),n=sf(t,n,a)}else qf(E)?(n.flags|=192,n.child=t.child,n=null):(t=M.treeContext,nt=gn(E.nextSibling),Et=n,Pe=!0,Cr=null,mn=!1,t!==null&&cp(n,t),n=of(n,s.children),n.flags|=4096);return n}return h?(Rr(),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=dl(E,h,a,null),E.flags|=2),E.return=n,s.return=n,s.sibling=E,n.child=s,ga(null,s),s=n.child,E=t.child.memoizedState,E===null?E=lf(a):(h=E.cachePool,h!==null?(M=ft._currentValue,h=h.parent!==M?{parent:M,pool:M}:h):h=gp(),E={baseLanes:E.baseLanes|a,cachePool:h}),s.memoizedState=E,s.childLanes=af(t,w,a),n.memoizedState=rf,ga(t.child,s)):(_r(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 of(t,n){return n=es({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function es(t,n){return t=Zt(22,t,null,n),t.lanes=0,t}function sf(t,n,a){return bl(n,t.child,null,a),t=of(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function jg(t,n,a){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n),Sc(t.return,n,a)}function uf(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 _g(t,n,a){var s=n.pendingProps,h=s.revealOrder,p=s.tail;s=s.children;var w=ut.current,E=(w&2)!==0;if(E?(w=w&1|2,n.flags|=128):w&=1,j(ut,w),At(t,n,s,a),s=Pe?ra:0,!E&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&jg(t,a,n);else if(t.tag===19)jg(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&&Fo(t)===null&&(h=a),a=a.sibling;a=h,a===null?(h=n.child,n.child=null):(h=a.sibling,a.sibling=null),uf(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&&Fo(t)===null){n.child=h;break}t=h.sibling,h.sibling=a,a=h,h=t}uf(n,!0,a,null,p,s);break;case"together":uf(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),zr|=n.lanes,(a&n.childLanes)===0)if(t!==null){if(Jl(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 cf(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&zo(t)))}function mk(t,n,a){switch(n.tag){case 3:Fe(n,n.stateNode.containerInfo),Nr(n,ft,t.memoizedState.cache),hl();break;case 27:case 5:it(n);break;case 4:Fe(n,n.stateNode.containerInfo);break;case 10:Nr(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,zc(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(_r(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Tg(t,n,a):(_r(n),t=tr(t,n,a),t!==null?t.sibling:null);_r(n);break;case 19:var h=(t.flags&128)!==0;if(s=(a&n.childLanes)!==0,s||(Jl(t,n,a,!1),s=(a&n.childLanes)!==0),h){if(s)return _g(t,n,a);n.flags|=128}if(h=n.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),j(ut,ut.current),s)break;return null;case 22:return n.lanes=0,Sg(t,n,a,n.pendingProps);case 24:Nr(n,ft,t.memoizedState.cache)}return tr(t,n,a)}function Rg(t,n,a){if(t!==null)if(t.memoizedProps!==n.pendingProps)ht=!0;else{if(!cf(t,a)&&(n.flags&128)===0)return ht=!1,mk(t,n,a);ht=(t.flags&131072)!==0}else ht=!1,Pe&&(n.flags&1048576)!==0&&up(n,ra,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(t=yl(n.elementType),n.type=t,typeof t=="function")mc(t)?(s=wl(t,s),n.tag=1,n=Ng(null,n,t,s,a)):(n.tag=0,n=nf(null,n,t,s,a));else{if(t!=null){var h=t.$$typeof;if(h===B){n.tag=11,n=bg(null,n,t,s,a);break e}else if(h===q){n.tag=14,n=vg(null,n,t,s,a);break e}}throw n=Z(t)||t,Error(i(306,n,""))}}return n;case 0:return nf(t,n,n.type,n.pendingProps,a);case 1:return s=n.type,h=wl(s,n.pendingProps),Ng(t,n,s,h,a);case 3:e:{if(Fe(n,n.stateNode.containerInfo),t===null)throw Error(i(387));s=n.pendingProps;var p=n.memoizedState;h=p.element,jc(t,n),fa(n,s,null,a);var w=n.memoizedState;if(s=w.cache,Nr(n,ft,s),s!==p.cache&&kc(n,[ft],a,!0),ca(),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=Ag(t,n,s,a);break e}else if(s!==h){h=fn(Error(i(424)),n),la(h),n=Ag(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(nt=gn(t.firstChild),Et=n,Pe=!0,Cr=null,mn=!0,a=Sp(n,null,s,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(hl(),s===h){n=tr(t,n,a);break e}At(t,n,s,a)}n=n.child}return n;case 26:return Wo(t,n),t===null?(a=Fy(n.type,null,n.pendingProps,null))?n.memoizedState=a:Pe||(a=n.type,t=n.pendingProps,s=gs(fe.current).createElement(a),s[Ct]=n,s[Ht]=t,Tt(s,a,t),wt(s),n.stateNode=s):n.memoizedState=Fy(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return it(n),t===null&&Pe&&(s=n.stateNode=Hy(n.type,n.pendingProps,fe.current),Et=n,mn=!0,h=nt,Hr(n.type)?(If=h,nt=gn(s.firstChild)):nt=h),At(t,n,n.pendingProps.children,a),Wo(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Pe&&((h=s=nt)&&(s=Vk(s,n.type,n.pendingProps,mn),s!==null?(n.stateNode=s,Et=n,nt=gn(s.firstChild),mn=!1,h=!0):h=!1),h||Er(n)),it(n),h=n.type,p=n.pendingProps,w=t!==null?t.memoizedProps:null,s=p.children,Uf(h,p)?s=null:w!==null&&Uf(h,w)&&(n.flags|=32),n.memoizedState!==null&&(h=Lc(t,n,ik,null,null,a),Ra._currentValue=h),Wo(t,n),At(t,n,s,a),n.child;case 6:return t===null&&Pe&&((t=a=nt)&&(a=Gk(a,n.pendingProps,mn),a!==null?(n.stateNode=a,Et=n,nt=null,t=!0):t=!1),t||Er(n)),null;case 13:return Tg(t,n,a);case 4:return Fe(n,n.stateNode.containerInfo),s=n.pendingProps,t===null?n.child=bl(n,null,s,a):At(t,n,s,a),n.child;case 11:return bg(t,n,n.type,n.pendingProps,a);case 7:return At(t,n,n.pendingProps,a),n.child;case 8:return At(t,n,n.pendingProps.children,a),n.child;case 12:return At(t,n,n.pendingProps.children,a),n.child;case 10:return s=n.pendingProps,Nr(n,n.type,s.value),At(t,n,s.children,a),n.child;case 9:return h=n.type._context,s=n.pendingProps.children,pl(n),h=Nt(h),s=s(h),n.flags|=1,At(t,n,s,a),n.child;case 14:return vg(t,n,n.type,n.pendingProps,a);case 15:return wg(t,n,n.type,n.pendingProps,a);case 19:return _g(t,n,a);case 31:return hk(t,n,a);case 22:return Sg(t,n,a,n.pendingProps);case 24:return pl(n),s=Nt(ft),t===null?(h=Nc(),h===null&&(h=We,p=Cc(),h.pooledCache=p,p.refCount++,p!==null&&(h.pooledCacheLanes|=a),h=p),n.memoizedState={parent:s,cache:h},Tc(n),Nr(n,ft,h)):((t.lanes&a)!==0&&(jc(t,n),fa(n,null,null,a),ca()),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),Nr(n,ft,s)):(s=p.cache,Nr(n,ft,s),s!==h.cache&&kc(n,[ft],a,!0))),At(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 ff(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(ly())t.flags|=8192;else throw xl=Uo,Ac}else t.flags&=-16777217}function Og(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!$y(n))if(ly())t.flags|=8192;else throw xl=Uo,Ac}function ts(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?fm():536870912,t.lanes|=n,ci|=n)}function ya(t,n){if(!Pe)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 rt(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 pk(t,n,a){var s=n.pendingProps;switch(xc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rt(n),null;case 1:return rt(n),null;case 3:return a=n.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Jn(ft),ve(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Kl(n)?nr(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,vc())),rt(n),null;case 26:var h=n.type,p=n.memoizedState;return t===null?(nr(n),p!==null?(rt(n),Og(n,p)):(rt(n),ff(n,h,null,s,a))):p?p!==t.memoizedState?(nr(n),rt(n),Og(n,p)):(rt(n),n.flags&=-16777217):(t=t.memoizedProps,t!==s&&nr(n),rt(n),ff(n,h,t,s,a)),null;case 27:if(gt(n),a=fe.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 rt(n),null}t=ne.current,Kl(n)?fp(n):(t=Hy(h,s,a),n.stateNode=t,nr(n))}return rt(n),null;case 5:if(gt(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 rt(n),null}if(p=ne.current,Kl(n))fp(n);else{var w=gs(fe.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[Ct]=n,p[Ht]=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(Tt(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 rt(n),ff(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=fe.current,Kl(n)){if(t=n.stateNode,a=n.memoizedProps,s=null,h=Et,h!==null)switch(h.tag){case 27:case 5:s=h.memoizedProps}t[Ct]=n,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||Ty(t.nodeValue,a)),t||Er(n,!0)}else t=gs(t).createTextNode(s),t[Ct]=n,n.stateNode=t}return rt(n),null;case 31:if(a=n.memoizedState,t===null||t.memoizedState!==null){if(s=Kl(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[Ct]=n}else hl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;rt(n),t=!1}else a=vc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return n.flags&256?(Jt(n),n):(Jt(n),null);if((n.flags&128)!==0)throw Error(i(558))}return rt(n),null;case 13:if(s=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=Kl(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[Ct]=n}else hl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;rt(n),h=!1}else h=vc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return n.flags&256?(Jt(n),n):(Jt(n),null)}return Jt(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),ts(n,n.updateQueue),rt(n),null);case 4:return ve(),t===null&&Mf(n.stateNode.containerInfo),rt(n),null;case 10:return Jn(n.type),rt(n),null;case 19:if(Q(ut),s=n.memoizedState,s===null)return rt(n),null;if(h=(n.flags&128)!==0,p=s.rendering,p===null)if(h)ya(s,!1);else{if(st!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(p=Fo(t),p!==null){for(n.flags|=128,ya(s,!1),t=p.updateQueue,n.updateQueue=t,ts(n,t),n.subtreeFlags=0,t=a,a=n.child;a!==null;)ap(a,t),a=a.sibling;return j(ut,ut.current&1|2),Pe&&Zn(n,s.treeForkCount),n.child}t=t.sibling}s.tail!==null&&kt()>as&&(n.flags|=128,h=!0,ya(s,!1),n.lanes=4194304)}else{if(!h)if(t=Fo(p),t!==null){if(n.flags|=128,h=!0,t=t.updateQueue,n.updateQueue=t,ts(n,t),ya(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!Pe)return rt(n),null}else 2*kt()-s.renderingStartTime>as&&a!==536870912&&(n.flags|=128,h=!0,ya(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=kt(),t.sibling=null,a=ut.current,j(ut,h?a&1|2:a&1),Pe&&Zn(n,s.treeForkCount),t):(rt(n),null);case 22:case 23:return Jt(n),Mc(),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&&(rt(n),n.subtreeFlags&6&&(n.flags|=8192)):rt(n),a=n.updateQueue,a!==null&&ts(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&&Q(gl),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Jn(ft),rt(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function gk(t,n){switch(xc(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return Jn(ft),ve(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return gt(n),null;case 31:if(n.memoizedState!==null){if(Jt(n),n.alternate===null)throw Error(i(340));hl()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(Jt(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(i(340));hl()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return Q(ut),null;case 4:return ve(),null;case 10:return Jn(n.type),null;case 22:case 23:return Jt(n),Mc(),t!==null&&Q(gl),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return Jn(ft),null;case 25:return null;default:return null}}function Mg(t,n){switch(xc(n),n.tag){case 3:Jn(ft),ve();break;case 26:case 27:case 5:gt(n);break;case 4:ve();break;case 31:n.memoizedState!==null&&Jt(n);break;case 13:Jt(n);break;case 19:Q(ut);break;case 10:Jn(n.type);break;case 22:case 23:Jt(n),Mc(),t!==null&&Q(gl);break;case 24:Jn(ft)}}function xa(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){Xe(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(K){Xe(h,M,K)}}}s=s.next}while(s!==p)}}catch(K){Xe(n,n.return,K)}}function zg(t){var n=t.updateQueue;if(n!==null){var a=t.stateNode;try{Cp(n,a)}catch(s){Xe(t,t.return,s)}}}function Dg(t,n,a){a.props=wl(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){Xe(t,n,s)}}function ba(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){Xe(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){Xe(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){Xe(t,n,h)}else a.current=null}function Lg(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){Xe(t,t.return,h)}}function df(t,n,a){try{var s=t.stateNode;Uk(s,t.type,a,n),s[Ht]=n}catch(h){Xe(t,t.return,h)}}function Bg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Hr(t.type)||t.tag===4}function hf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Bg(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&&Hr(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 mf(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&&Hr(t.type)&&(a=t.stateNode,n=null),t=t.child,t!==null))for(mf(t,n,a),t=t.sibling;t!==null;)mf(t,n,a),t=t.sibling}function ns(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&&Hr(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(ns(t,n,a),t=t.sibling;t!==null;)ns(t,n,a),t=t.sibling}function Ug(t){var n=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,h=n.attributes;h.length;)n.removeAttributeNode(h[0]);Tt(n,s,a),n[Ct]=t,n[Ht]=a}catch(p){Xe(t,t.return,p)}}var rr=!1,mt=!1,pf=!1,Hg=typeof WeakSet=="function"?WeakSet:Set,St=null;function yk(t,n){if(t=t.containerInfo,Lf=ks,t=Km(t),oc(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,K=0,te=t,V=null;t:for(;;){for(var G;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),(G=te.firstChild)!==null;)V=te,te=G;for(;;){if(te===t)break t;if(V===a&&++I===h&&(E=w),V===p&&++K===s&&(M=w),(G=te.nextSibling)!==null)break;te=V,V=te.parentNode}te=G}a=E===-1||M===-1?null:{start:E,end:M}}else a=null}a=a||{start:0,end:0}}else a=null;for(Bf={focusedElem:t,selectionRange:a},ks=!1,St=n;St!==null;)if(n=St,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,St=t;else for(;St!==null;){switch(n=St,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 me=wl(a.type,h);t=s.getSnapshotBeforeUpdate(me,p),s.__reactInternalSnapshotBeforeUpdate=t}catch(ke){Xe(a,a.return,ke)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,a=t.nodeType,a===9)Pf(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Pf(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,St=t;break}St=n.return}}function Pg(t,n,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:ir(t,a),s&4&&xa(5,a);break;case 1:if(ir(t,a),s&4)if(t=a.stateNode,n===null)try{t.componentDidMount()}catch(w){Xe(a,a.return,w)}else{var h=wl(a.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(h,n,t.__reactInternalSnapshotBeforeUpdate)}catch(w){Xe(a,a.return,w)}}s&64&&zg(a),s&512&&ba(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{Cp(t,n)}catch(w){Xe(a,a.return,w)}}break;case 27:n===null&&s&4&&Ug(a);case 26:case 5:ir(t,a),n===null&&s&4&&Lg(a),s&512&&ba(a,a.return);break;case 12:ir(t,a);break;case 31:ir(t,a),s&4&&Ig(t,a);break;case 13:ir(t,a),s&4&&Vg(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Nk.bind(null,a),Yk(t,a))));break;case 22:if(s=a.memoizedState!==null||rr,!s){n=n!==null&&n.memoizedState!==null||mt,h=rr;var p=mt;rr=s,(mt=n)&&!p?ar(t,a,(a.subtreeFlags&8772)!==0):ir(t,a),rr=h,mt=p}break;case 30:break;default:ir(t,a)}}function qg(t){var n=t.alternate;n!==null&&(t.alternate=null,qg(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Vu(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 lt=null,qt=!1;function lr(t,n,a){for(a=a.child;a!==null;)Fg(t,n,a),a=a.sibling}function Fg(t,n,a){if(Me&&typeof Me.onCommitFiberUnmount=="function")try{Me.onCommitFiberUnmount(He,a)}catch{}switch(a.tag){case 26:mt||Mn(a,n),lr(t,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:mt||Mn(a,n);var s=lt,h=qt;Hr(a.type)&&(lt=a.stateNode,qt=!1),lr(t,n,a),Ta(a.stateNode),lt=s,qt=h;break;case 5:mt||Mn(a,n);case 6:if(s=lt,h=qt,lt=null,lr(t,n,a),lt=s,qt=h,lt!==null)if(qt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(p){Xe(a,n,p)}else try{lt.removeChild(a.stateNode)}catch(p){Xe(a,n,p)}break;case 18:lt!==null&&(qt?(t=lt,zy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),xi(t)):zy(lt,a.stateNode));break;case 4:s=lt,h=qt,lt=a.stateNode.containerInfo,qt=!0,lr(t,n,a),lt=s,qt=h;break;case 0:case 11:case 14:case 15:Or(2,a,n),mt||Or(4,a,n),lr(t,n,a);break;case 1:mt||(Mn(a,n),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Dg(a,n,s)),lr(t,n,a);break;case 21:lr(t,n,a);break;case 22:mt=(s=mt)||a.memoizedState!==null,lr(t,n,a),mt=s;break;default:lr(t,n,a)}}function Ig(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{xi(t)}catch(a){Xe(n,n.return,a)}}}function Vg(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{xi(t)}catch(a){Xe(n,n.return,a)}}function xk(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new Hg),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new Hg),n;default:throw Error(i(435,t.tag))}}function rs(t,n){var a=xk(t);n.forEach(function(s){if(!a.has(s)){a.add(s);var h=Ak.bind(null,t,s);s.then(h,h)}})}function Ft(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(Hr(E.type)){lt=E.stateNode,qt=!1;break e}break;case 5:lt=E.stateNode,qt=!1;break e;case 3:case 4:lt=E.stateNode.containerInfo,qt=!0;break e}E=E.return}if(lt===null)throw Error(i(160));Fg(p,w,h),lt=null,qt=!1,p=h.alternate,p!==null&&(p.return=null),h.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Gg(n,t),n=n.sibling}var Cn=null;function Gg(t,n){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ft(n,t),It(t),s&4&&(Or(3,t,t.return),xa(3,t),Or(5,t,t.return));break;case 1:Ft(n,t),It(t),s&512&&(mt||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=Cn;if(Ft(n,t),It(t),s&512&&(mt||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[Yi]||p[Ct]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=h.createElement(s),h.head.insertBefore(p,h.querySelector("head > title"))),Tt(p,s,a),p[Ct]=t,wt(p),s=p;break e;case"link":var w=Gy("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),Tt(p,s,a),h.head.appendChild(p);break;case"meta":if(w=Gy("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),Tt(p,s,a),h.head.appendChild(p);break;default:throw Error(i(468,s))}p[Ct]=t,wt(p),s=p}t.stateNode=s}else Yy(h,t.type,t.stateNode);else t.stateNode=Vy(h,s,t.memoizedProps);else p!==s?(p===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):p.count--,s===null?Yy(h,t.type,t.stateNode):Vy(h,s,t.memoizedProps)):s===null&&t.stateNode!==null&&df(t,t.memoizedProps,a.memoizedProps)}break;case 27:Ft(n,t),It(t),s&512&&(mt||a===null||Mn(a,a.return)),a!==null&&s&4&&df(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Ft(n,t),It(t),s&512&&(mt||a===null||Mn(a,a.return)),t.flags&32){h=t.stateNode;try{ql(h,"")}catch(me){Xe(t,t.return,me)}}s&4&&t.stateNode!=null&&(h=t.memoizedProps,df(t,h,a!==null?a.memoizedProps:h)),s&1024&&(pf=!0);break;case 6:if(Ft(n,t),It(t),s&4){if(t.stateNode===null)throw Error(i(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(me){Xe(t,t.return,me)}}break;case 3:if(bs=null,h=Cn,Cn=ys(n.containerInfo),Ft(n,t),Cn=h,It(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{xi(n.containerInfo)}catch(me){Xe(t,t.return,me)}pf&&(pf=!1,Yg(t));break;case 4:s=Cn,Cn=ys(t.stateNode.containerInfo),Ft(n,t),It(t),Cn=s;break;case 12:Ft(n,t),It(t);break;case 31:Ft(n,t),It(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,rs(t,s)));break;case 13:Ft(n,t),It(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(is=kt()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,rs(t,s)));break;case 22:h=t.memoizedState!==null;var M=a!==null&&a.memoizedState!==null,I=rr,K=mt;if(rr=I||h,mt=K||M,Ft(n,t),mt=K,rr=I,It(t),s&8192)e:for(n=t.stateNode,n._visibility=h?n._visibility&-2:n._visibility|1,h&&(a===null||M||rr||mt||Sl(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,V=te!=null&&te.hasOwnProperty("display")?te.display:null;E.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(me){Xe(M,M.return,me)}}}else if(n.tag===6){if(a===null){M=n;try{M.stateNode.nodeValue=h?"":M.memoizedProps}catch(me){Xe(M,M.return,me)}}}else if(n.tag===18){if(a===null){M=n;try{var G=M.stateNode;h?Dy(G,!0):Dy(M.stateNode,!1)}catch(me){Xe(M,M.return,me)}}}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,rs(t,a))));break;case 19:Ft(n,t),It(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,rs(t,s)));break;case 30:break;case 21:break;default:Ft(n,t),It(t)}}function It(t){var n=t.flags;if(n&2){try{for(var a,s=t.return;s!==null;){if(Bg(s)){a=s;break}s=s.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var h=a.stateNode,p=hf(t);ns(t,p,h);break;case 5:var w=a.stateNode;a.flags&32&&(ql(w,""),a.flags&=-33);var E=hf(t);ns(t,E,w);break;case 3:case 4:var M=a.stateNode.containerInfo,I=hf(t);mf(t,I,M);break;default:throw Error(i(161))}}catch(K){Xe(t,t.return,K)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function Yg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;Yg(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;)Pg(t,n.alternate,n),n=n.sibling}function Sl(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),Sl(n);break;case 1:Mn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Dg(n,n.return,a),Sl(n);break;case 27:Ta(n.stateNode);case 26:case 5:Mn(n,n.return),Sl(n);break;case 22:n.memoizedState===null&&Sl(n);break;case 30:Sl(n);break;default:Sl(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),xa(4,p);break;case 1:if(ar(h,p,a),s=p,h=s.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(I){Xe(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++)kp(M[h],E)}catch(I){Xe(s,s.return,I)}}a&&w&64&&zg(p),ba(p,p.return);break;case 27:Ug(p);case 26:case 5:ar(h,p,a),a&&s===null&&w&4&&Lg(p),ba(p,p.return);break;case 12:ar(h,p,a);break;case 31:ar(h,p,a),a&&w&4&&Ig(h,p);break;case 13:ar(h,p,a),a&&w&4&&Vg(h,p);break;case 22:p.memoizedState===null&&ar(h,p,a),ba(p,p.return);break;case 30:break;default:ar(h,p,a)}n=n.sibling}}function gf(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&&ia(a))}function yf(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&ia(t))}function En(t,n,a,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)$g(t,n,a,s),n=n.sibling}function $g(t,n,a,s){var h=n.flags;switch(n.tag){case 0:case 11:case 15:En(t,n,a,s),h&2048&&xa(9,n);break;case 1:En(t,n,a,s);break;case 3:En(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&&ia(t)));break;case 12:if(h&2048){En(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){Xe(n,n.return,M)}}else En(t,n,a,s);break;case 31:En(t,n,a,s);break;case 13:En(t,n,a,s);break;case 23:break;case 22:p=n.stateNode,w=n.alternate,n.memoizedState!==null?p._visibility&2?En(t,n,a,s):va(t,n):p._visibility&2?En(t,n,a,s):(p._visibility|=2,oi(t,n,a,s,(n.subtreeFlags&10256)!==0||!1)),h&2048&&gf(w,n);break;case 24:En(t,n,a,s),h&2048&&yf(n.alternate,n);break;default:En(t,n,a,s)}}function oi(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:oi(p,w,E,M,h),xa(8,w);break;case 23:break;case 22:var K=w.stateNode;w.memoizedState!==null?K._visibility&2?oi(p,w,E,M,h):va(p,w):(K._visibility|=2,oi(p,w,E,M,h)),h&&I&2048&&gf(w.alternate,w);break;case 24:oi(p,w,E,M,h),h&&I&2048&&yf(w.alternate,w);break;default:oi(p,w,E,M,h)}n=n.sibling}}function va(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:va(a,s),h&2048&&gf(s.alternate,s);break;case 24:va(a,s),h&2048&&yf(s.alternate,s);break;default:va(a,s)}n=n.sibling}}var wa=8192;function si(t,n,a){if(t.subtreeFlags&wa)for(t=t.child;t!==null;)Xg(t,n,a),t=t.sibling}function Xg(t,n,a){switch(t.tag){case 26:si(t,n,a),t.flags&wa&&t.memoizedState!==null&&l2(a,Cn,t.memoizedState,t.memoizedProps);break;case 5:si(t,n,a);break;case 3:case 4:var s=Cn;Cn=ys(t.stateNode.containerInfo),si(t,n,a),Cn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=wa,wa=16777216,si(t,n,a),wa=s):si(t,n,a));break;default:si(t,n,a)}}function Qg(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 Sa(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];St=s,Kg(s,t)}Qg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zg(t),t=t.sibling}function Zg(t){switch(t.tag){case 0:case 11:case 15:Sa(t),t.flags&2048&&Or(9,t,t.return);break;case 3:Sa(t);break;case 12:Sa(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,ls(t)):Sa(t);break;default:Sa(t)}}function ls(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];St=s,Kg(s,t)}Qg(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Or(8,n,n.return),ls(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,ls(n));break;default:ls(n)}t=t.sibling}}function Kg(t,n){for(;St!==null;){var a=St;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:ia(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,St=s;else e:for(a=t;St!==null;){s=St;var h=s.sibling,p=s.return;if(qg(s),s===a){St=null;break e}if(h!==null){h.return=p,St=h;break e}St=p}}}var bk={getCacheForType:function(t){var n=Nt(ft),a=n.data.get(t);return a===void 0&&(a=t(),n.data.set(t,a)),a},cacheSignal:function(){return Nt(ft).controller.signal}},vk=typeof WeakMap=="function"?WeakMap:Map,Ye=0,We=null,ze=null,Be=0,$e=0,Wt=null,Mr=!1,ui=!1,xf=!1,or=0,st=0,zr=0,kl=0,bf=0,en=0,ci=0,ka=null,Vt=null,vf=!1,is=0,Jg=0,as=1/0,os=null,Dr=null,xt=0,Lr=null,fi=null,sr=0,wf=0,Sf=null,Wg=null,Ca=0,kf=null;function tn(){return(Ye&2)!==0&&Be!==0?Be&-Be:D.T!==null?jf():pm()}function ey(){if(en===0)if((Be&536870912)===0||Pe){var t=po;po<<=1,(po&3932160)===0&&(po=262144),en=t}else en=536870912;return t=Kt.current,t!==null&&(t.flags|=32),en}function Gt(t,n,a){(t===We&&($e===2||$e===9)||t.cancelPendingCommit!==null)&&(di(t,0),Br(t,Be,en,!1)),Gi(t,a),((Ye&2)===0||t!==We)&&(t===We&&((Ye&2)===0&&(kl|=a),st===4&&Br(t,Be,en,!1)),zn(t))}function ty(t,n,a){if((Ye&6)!==0)throw Error(i(327));var s=!a&&(n&127)===0&&(n&t.expiredLanes)===0||Vi(t,n),h=s?kk(t,n):Ef(t,n,!0),p=s;do{if(h===0){ui&&!s&&Br(t,n,0,!1);break}else{if(a=t.current.alternate,p&&!wk(a)){h=Ef(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=ka;var M=E.current.memoizedState.isDehydrated;if(M&&(di(E,w).flags|=256),w=Ef(E,w,!1),w!==2){if(xf&&!M){E.errorRecoveryDisabledLanes|=p,kl|=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){di(t,0),Br(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:Br(s,n,en,!Mr);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(h=is+300-kt(),10<h)){if(Br(s,n,en,!Mr),yo(s,0,!0)!==0)break e;sr=n,s.timeoutHandle=Oy(ny.bind(null,s,a,Vt,os,vf,n,en,kl,ci,Mr,p,"Throttled",-0,0),h);break e}ny(s,a,Vt,os,vf,n,en,kl,ci,Mr,p,null,-0,0)}}break}while(!0);zn(t)}function ny(t,n,a,s,h,p,w,E,M,I,K,te,V,G){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},Xg(n,p,te);var me=(p&62914560)===p?is-kt():(p&4194048)===p?Jg-kt():0;if(me=i2(te,me),me!==null){sr=p,t.cancelPendingCommit=me(cy.bind(null,t,n,p,a,s,h,w,E,M,K,te,null,V,G)),Br(t,p,w,!I);return}}cy(t,n,p,a,s,h,w,E,M)}function wk(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(!Qt(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 Br(t,n,a,s){n&=~bf,n&=~kl,t.suspendedLanes|=n,t.pingedLanes&=~n,s&&(t.warmLanes|=n),s=t.expirationTimes;for(var h=n;0<h;){var p=31-Je(h),w=1<<p;s[p]=-1,h&=~w}a!==0&&dm(t,a,n)}function ss(){return(Ye&6)===0?(Ea(0),!1):!0}function Cf(){if(ze!==null){if($e===0)var t=ze.return;else t=ze,Kn=ml=null,Hc(t),ni=null,oa=0,t=ze;for(;t!==null;)Mg(t.alternate,t),t=t.return;ze=null}}function di(t,n){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,qk(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),sr=0,Cf(),We=t,ze=a=Qn(t.current,null),Be=n,$e=0,Wt=null,Mr=!1,ui=Vi(t,n),xf=!1,ci=en=bf=kl=zr=st=0,Vt=ka=null,vf=!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-Je(s),p=1<<h;n|=t[h],s&=~p}return or=n,jo(),a}function ry(t,n){Te=null,D.H=pa,n===ti||n===Bo?(n=bp(),$e=3):n===Ac?(n=bp(),$e=4):$e=n===tf?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Wt=n,ze===null&&(st=1,Ko(t,fn(n,t.current)))}function ly(){var t=Kt.current;return t===null?!0:(Be&4194048)===Be?pn===null:(Be&62914560)===Be||(Be&536870912)!==0?t===pn:!1}function iy(){var t=D.H;return D.H=pa,t===null?pa:t}function ay(){var t=D.A;return D.A=bk,t}function us(){st=4,Mr||(Be&4194048)!==Be&&Kt.current!==null||(ui=!0),(zr&134217727)===0&&(kl&134217727)===0||We===null||Br(We,Be,en,!1)}function Ef(t,n,a){var s=Ye;Ye|=2;var h=iy(),p=ay();(We!==t||Be!==n)&&(os=null,di(t,n)),n=!1;var w=st;e:do try{if($e!==0&&ze!==null){var E=ze,M=Wt;switch($e){case 8:Cf(),w=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(n=!0);var I=$e;if($e=0,Wt=null,hi(t,E,M,I),a&&ui){w=0;break e}break;default:I=$e,$e=0,Wt=null,hi(t,E,M,I)}}Sk(),w=st;break}catch(K){ry(t,K)}while(!0);return n&&t.shellSuspendCounter++,Kn=ml=null,Ye=s,D.H=h,D.A=p,ze===null&&(We=null,Be=0,jo()),w}function Sk(){for(;ze!==null;)oy(ze)}function kk(t,n){var a=Ye;Ye|=2;var s=iy(),h=ay();We!==t||Be!==n?(os=null,as=kt()+500,di(t,n)):ui=Vi(t,n);e:do try{if($e!==0&&ze!==null){n=ze;var p=Wt;t:switch($e){case 1:$e=0,Wt=null,hi(t,n,p,1);break;case 2:case 9:if(yp(p)){$e=0,Wt=null,sy(n);break}n=function(){$e!==2&&$e!==9||We!==t||($e=7),zn(t)},p.then(n,n);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:yp(p)?($e=0,Wt=null,sy(n)):($e=0,Wt=null,hi(t,n,p,7));break;case 5:var w=null;switch(ze.tag){case 26:w=ze.memoizedState;case 5:case 27:var E=ze;if(w?$y(w):E.stateNode.complete){$e=0,Wt=null;var M=E.sibling;if(M!==null)ze=M;else{var I=E.return;I!==null?(ze=I,cs(I)):ze=null}break t}}$e=0,Wt=null,hi(t,n,p,5);break;case 6:$e=0,Wt=null,hi(t,n,p,6);break;case 8:Cf(),st=6;break e;default:throw Error(i(462))}}Ck();break}catch(K){ry(t,K)}while(!0);return Kn=ml=null,D.H=s,D.A=h,Ye=a,ze!==null?0:(We=null,Be=0,jo(),st)}function Ck(){for(;ze!==null&&!qi();)oy(ze)}function oy(t){var n=Rg(t.alternate,t,or);t.memoizedProps=t.pendingProps,n===null?cs(t):ze=n}function sy(t){var n=t,a=n.alternate;switch(n.tag){case 15:case 0:n=Eg(a,n,n.pendingProps,n.type,void 0,Be);break;case 11:n=Eg(a,n,n.pendingProps,n.type.render,n.ref,Be);break;case 5:Hc(n);default:Mg(a,n),n=ze=ap(n,or),n=Rg(a,n,or)}t.memoizedProps=t.pendingProps,n===null?cs(t):ze=n}function hi(t,n,a,s){Kn=ml=null,Hc(n),ni=null,oa=0;var h=n.return;try{if(dk(t,h,n,a,Be)){st=1,Ko(t,fn(a,t.current)),ze=null;return}}catch(p){if(h!==null)throw ze=h,p;st=1,Ko(t,fn(a,t.current)),ze=null;return}n.flags&32768?(Pe||s===1?t=!0:ui||(Be&536870912)!==0?t=!1:(Mr=t=!0,(s===2||s===9||s===3||s===6)&&(s=Kt.current,s!==null&&s.tag===13&&(s.flags|=16384))),uy(n,t)):cs(n)}function cs(t){var n=t;do{if((n.flags&32768)!==0){uy(n,Mr);return}t=n.return;var a=pk(n.alternate,n,or);if(a!==null){ze=a;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=t}while(n!==null);st===0&&(st=5)}function uy(t,n){do{var a=gk(t.alternate,t);if(a!==null){a.flags&=32767,ze=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(t=t.sibling,t!==null)){ze=t;return}ze=t=a}while(t!==null);st=6,ze=null}function cy(t,n,a,s,h,p,w,E,M){t.cancelPendingCommit=null;do fs();while(xt!==0);if((Ye&6)!==0)throw Error(i(327));if(n!==null){if(n===t.current)throw Error(i(177));if(p=n.lanes|n.childLanes,p|=dc,rS(t,a,p,w,E,M),t===We&&(ze=We=null,Be=0),fi=n,Lr=t,sr=a,wf=p,Sf=h,Wg=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Tk(Se,function(){return py(),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=Ye,Ye|=4;try{yk(t,n,a)}finally{Ye=w,X.p=h,D.T=s}}xt=1,fy(),dy(),hy()}}function fy(){if(xt===1){xt=0;var t=Lr,n=fi,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=Ye;Ye|=4;try{Gg(n,t);var p=Bf,w=Km(t.containerInfo),E=p.focusedElem,M=p.selectionRange;if(w!==E&&E&&E.ownerDocument&&Zm(E.ownerDocument.documentElement,E)){if(M!==null&&oc(E)){var I=M.start,K=M.end;if(K===void 0&&(K=I),"selectionStart"in E)E.selectionStart=I,E.selectionEnd=Math.min(K,E.value.length);else{var te=E.ownerDocument||document,V=te&&te.defaultView||window;if(V.getSelection){var G=V.getSelection(),me=E.textContent.length,ke=Math.min(M.start,me),Ke=M.end===void 0?ke:Math.min(M.end,me);!G.extend&&ke>Ke&&(w=Ke,Ke=ke,ke=w);var H=Qm(E,ke),L=Qm(E,Ke);if(H&&L&&(G.rangeCount!==1||G.anchorNode!==H.node||G.anchorOffset!==H.offset||G.focusNode!==L.node||G.focusOffset!==L.offset)){var F=te.createRange();F.setStart(H.node,H.offset),G.removeAllRanges(),ke>Ke?(G.addRange(F),G.extend(L.node,L.offset)):(F.setEnd(L.node,L.offset),G.addRange(F))}}}}for(te=[],G=E;G=G.parentNode;)G.nodeType===1&&te.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<te.length;E++){var W=te[E];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}ks=!!Lf,Bf=Lf=null}finally{Ye=h,X.p=s,D.T=a}}t.current=n,xt=2}}function dy(){if(xt===2){xt=0;var t=Lr,n=fi,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=Ye;Ye|=4;try{Pg(t,n.alternate,n)}finally{Ye=h,X.p=s,D.T=a}}xt=3}}function hy(){if(xt===4||xt===3){xt=0,Fi();var t=Lr,n=fi,a=sr,s=Wg;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?xt=5:(xt=0,fi=Lr=null,my(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(Dr=null),Fu(a),n=n.stateNode,Me&&typeof Me.onCommitFiberRoot=="function")try{Me.onCommitFiberRoot(He,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&&fs(),zn(t),h=t.pendingLanes,(a&261930)!==0&&(h&42)!==0?t===kf?Ca++:(Ca=0,kf=t):Ca=0,Ea(0)}}function my(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,ia(n)))}function fs(){return fy(),dy(),hy(),py()}function py(){if(xt!==5)return!1;var t=Lr,n=wf;wf=0;var a=Fu(sr),s=D.T,h=X.p;try{X.p=32>a?32:a,D.T=null,a=Sf,Sf=null;var p=Lr,w=sr;if(xt=0,fi=Lr=null,sr=0,(Ye&6)!==0)throw Error(i(331));var E=Ye;if(Ye|=4,Zg(p.current),$g(p,p.current,w,a),Ye=E,Ea(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(He,p)}catch{}return!0}finally{X.p=h,D.T=s,my(t,n)}}function gy(t,n,a){n=fn(a,n),n=ef(t.stateNode,n,2),t=jr(t,n,2),t!==null&&(Gi(t,2),zn(t))}function Xe(t,n,a){if(t.tag===3)gy(t,t,a);else for(;n!==null;){if(n.tag===3){gy(n,t,a);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Dr===null||!Dr.has(s))){t=fn(a,t),a=yg(2),s=jr(n,a,2),s!==null&&(xg(a,s,n,t),Gi(s,2),zn(s));break}}n=n.return}}function Nf(t,n,a){var s=t.pingCache;if(s===null){s=t.pingCache=new vk;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)||(xf=!0,h.add(a),t=Ek.bind(null,t,n,a),n.then(t,t))}function Ek(t,n,a){var s=t.pingCache;s!==null&&s.delete(n),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,We===t&&(Be&a)===a&&(st===4||st===3&&(Be&62914560)===Be&&300>kt()-is?(Ye&2)===0&&di(t,0):bf|=a,ci===Be&&(ci=0)),zn(t)}function yy(t,n){n===0&&(n=fm()),t=fl(t,n),t!==null&&(Gi(t,n),zn(t))}function Nk(t){var n=t.memoizedState,a=0;n!==null&&(a=n.retryLane),yy(t,a)}function Ak(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),yy(t,a)}function Tk(t,n){return br(t,n)}var ds=null,mi=null,Af=!1,hs=!1,Tf=!1,Ur=0;function zn(t){t!==mi&&t.next===null&&(mi===null?ds=mi=t:mi=mi.next=t),hs=!0,Af||(Af=!0,_k())}function Ea(t,n){if(!Tf&&hs){Tf=!0;do for(var a=!1,s=ds;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-Je(42|t)+1)-1,p&=h&~(w&~E),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(a=!0,wy(s,p))}else p=Be,p=yo(s,s===We?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||Vi(s,p)||(a=!0,wy(s,p));s=s.next}while(a);Tf=!1}}function jk(){xy()}function xy(){hs=Af=!1;var t=0;Ur!==0&&Pk()&&(t=Ur);for(var n=kt(),a=null,s=ds;s!==null;){var h=s.next,p=by(s,n);p===0?(s.next=null,a===null?ds=h:a.next=h,h===null&&(mi=a)):(a=s,(t!==0||(p&3)!==0)&&(hs=!0)),s=h}xt!==0&&xt!==5||Ea(t),Ur!==0&&(Ur=0)}function by(t,n){for(var a=t.suspendedLanes,s=t.pingedLanes,h=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var w=31-Je(p),E=1<<w,M=h[w];M===-1?((E&a)===0||(E&s)!==0)&&(h[w]=nS(E,n)):M<=n&&(t.expiredLanes|=E),p&=~E}if(n=We,a=Be,a=yo(t,t===n?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===n&&($e===2||$e===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&il(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Vi(t,a)){if(n=a&-a,n===t.callbackPriority)return n;switch(s!==null&&il(s),Fu(a)){case 2:case 8:a=ce;break;case 32:a=Se;break;case 268435456:a=ae;break;default:a=Se}return s=vy.bind(null,t),a=br(a,s),t.callbackPriority=n,t.callbackNode=a,n}return s!==null&&s!==null&&il(s),t.callbackPriority=2,t.callbackNode=null,2}function vy(t,n){if(xt!==0&&xt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(fs()&&t.callbackNode!==a)return null;var s=Be;return s=yo(t,t===We?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(ty(t,s,n),by(t,kt()),t.callbackNode!=null&&t.callbackNode===a?vy.bind(null,t):null)}function wy(t,n){if(fs())return null;ty(t,n,!0)}function _k(){Fk(function(){(Ye&6)!==0?br(J,jk):xy()})}function jf(){if(Ur===0){var t=Wl;t===0&&(t=mo,mo<<=1,(mo&261888)===0&&(mo=256)),Ur=t}return Ur}function Sy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:wo(""+t)}function ky(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 Rk(t,n,a,s,h){if(n==="submit"&&a&&a.stateNode===h){var p=Sy((h[Ht]||null).action),w=s.submitter;w&&(n=(n=w[Ht]||null)?Sy(n.formAction):w.getAttribute("formAction"),n!==null&&(p=n,w=null));var E=new Eo("action","action",null,s,h);t.push({event:E,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Ur!==0){var M=w?ky(h,w):new FormData(h);Xc(a,{pending:!0,data:M,method:h.method,action:p},null,M)}}else typeof p=="function"&&(E.preventDefault(),M=w?ky(h,w):new FormData(h),Xc(a,{pending:!0,data:M,method:h.method,action:p},p,M))},currentTarget:h}]})}}for(var _f=0;_f<fc.length;_f++){var Rf=fc[_f],Ok=Rf.toLowerCase(),Mk=Rf[0].toUpperCase()+Rf.slice(1);kn(Ok,"on"+Mk)}kn(ep,"onAnimationEnd"),kn(tp,"onAnimationIteration"),kn(np,"onAnimationStart"),kn("dblclick","onDoubleClick"),kn("focusin","onFocus"),kn("focusout","onBlur"),kn(QS,"onTransitionRun"),kn(ZS,"onTransitionStart"),kn(KS,"onTransitionCancel"),kn(rp,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Na="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(" "),zk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Na));function Cy(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(K){To(K)}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(K){To(K)}h.currentTarget=null,p=M}}}}function De(t,n){var a=n[Iu];a===void 0&&(a=n[Iu]=new Set);var s=t+"__bubble";a.has(s)||(Ey(n,t,2,!1),a.add(s))}function Of(t,n,a){var s=0;n&&(s|=4),Ey(a,t,s,n)}var ms="_reactListening"+Math.random().toString(36).slice(2);function Mf(t){if(!t[ms]){t[ms]=!0,xm.forEach(function(a){a!=="selectionchange"&&(zk.has(a)||Of(a,!1,t),Of(a,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[ms]||(n[ms]=!0,Of("selectionchange",!1,n))}}function Ey(t,n,a,s){switch(ex(n)){case 2:var h=s2;break;case 8:h=u2;break;default:h=Xf}a=h.bind(null,n,a,t),h=void 0,!Ju||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 zf(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=Ll(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}_m(function(){var I=p,K=Zu(a),te=[];e:{var V=lp.get(t);if(V!==void 0){var G=Eo,me=t;switch(t){case"keypress":if(ko(a)===0)break e;case"keydown":case"keyup":G=AS;break;case"focusin":me="focus",G=nc;break;case"focusout":me="blur",G=nc;break;case"beforeblur":case"afterblur":G=nc;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":G=Mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=pS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=_S;break;case ep:case tp:case np:G=xS;break;case rp:G=OS;break;case"scroll":case"scrollend":G=hS;break;case"wheel":G=zS;break;case"copy":case"cut":case"paste":G=vS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Dm;break;case"toggle":case"beforetoggle":G=LS}var ke=(n&4)!==0,Ke=!ke&&(t==="scroll"||t==="scrollend"),H=ke?V!==null?V+"Capture":null:V;ke=[];for(var L=I,F;L!==null;){var W=L;if(F=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||F===null||H===null||(W=Xi(L,H),W!=null&&ke.push(Aa(L,W,F))),Ke)break;L=L.return}0<ke.length&&(V=new G(V,me,null,a,K),te.push({event:V,listeners:ke}))}}if((n&7)===0){e:{if(V=t==="mouseover"||t==="pointerover",G=t==="mouseout"||t==="pointerout",V&&a!==Qu&&(me=a.relatedTarget||a.fromElement)&&(Ll(me)||me[Dl]))break e;if((G||V)&&(V=K.window===K?K:(V=K.ownerDocument)?V.defaultView||V.parentWindow:window,G?(me=a.relatedTarget||a.toElement,G=I,me=me?Ll(me):null,me!==null&&(Ke=u(me),ke=me.tag,me!==Ke||ke!==5&&ke!==27&&ke!==6)&&(me=null)):(G=null,me=I),G!==me)){if(ke=Mm,W="onMouseLeave",H="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(ke=Dm,W="onPointerLeave",H="onPointerEnter",L="pointer"),Ke=G==null?V:$i(G),F=me==null?V:$i(me),V=new ke(W,L+"leave",G,a,K),V.target=Ke,V.relatedTarget=F,W=null,Ll(K)===I&&(ke=new ke(H,L+"enter",me,a,K),ke.target=F,ke.relatedTarget=Ke,W=ke),Ke=W,G&&me)t:{for(ke=Dk,H=G,L=me,F=0,W=H;W;W=ke(W))F++;W=0;for(var be=L;be;be=ke(be))W++;for(;0<F-W;)H=ke(H),F--;for(;0<W-F;)L=ke(L),W--;for(;F--;){if(H===L||L!==null&&H===L.alternate){ke=H;break t}H=ke(H),L=ke(L)}ke=null}else ke=null;G!==null&&Ny(te,V,G,ke,!1),me!==null&&Ke!==null&&Ny(te,Ke,me,ke,!0)}}e:{if(V=I?$i(I):window,G=V.nodeName&&V.nodeName.toLowerCase(),G==="select"||G==="input"&&V.type==="file")var Ie=Im;else if(qm(V))if(Vm)Ie=YS;else{Ie=VS;var ye=IS}else G=V.nodeName,!G||G.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?I&&Xu(I.elementType)&&(Ie=Im):Ie=GS;if(Ie&&(Ie=Ie(t,I))){Fm(te,Ie,a,K);break e}ye&&ye(t,V,I),t==="focusout"&&I&&V.type==="number"&&I.memoizedProps.value!=null&&$u(V,"number",V.value)}switch(ye=I?$i(I):window,t){case"focusin":(qm(ye)||ye.contentEditable==="true")&&(Gl=ye,sc=I,na=null);break;case"focusout":na=sc=Gl=null;break;case"mousedown":uc=!0;break;case"contextmenu":case"mouseup":case"dragend":uc=!1,Jm(te,a,K);break;case"selectionchange":if(XS)break;case"keydown":case"keyup":Jm(te,a,K)}var je;if(lc)e:{switch(t){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Vl?Hm(t,a)&&(Ue="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Ue="onCompositionStart");Ue&&(Lm&&a.locale!=="ko"&&(Vl||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Vl&&(je=Rm()):(Sr=K,Wu="value"in Sr?Sr.value:Sr.textContent,Vl=!0)),ye=ps(I,Ue),0<ye.length&&(Ue=new zm(Ue,t,null,a,K),te.push({event:Ue,listeners:ye}),je?Ue.data=je:(je=Pm(a),je!==null&&(Ue.data=je)))),(je=US?HS(t,a):PS(t,a))&&(Ue=ps(I,"onBeforeInput"),0<Ue.length&&(ye=new zm("onBeforeInput","beforeinput",null,a,K),te.push({event:ye,listeners:Ue}),ye.data=je)),Rk(te,t,I,a,K)}Cy(te,n)})}function Aa(t,n,a){return{instance:t,listener:n,currentTarget:a}}function ps(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=Xi(t,a),h!=null&&s.unshift(Aa(t,h,p)),h=Xi(t,n),h!=null&&s.push(Aa(t,h,p))),t.tag===3)return s;t=t.return}return[]}function Dk(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ny(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=Xi(a,p),I!=null&&w.unshift(Aa(a,I,M))):h||(I=Xi(a,p),I!=null&&w.push(Aa(a,I,M)))),a=a.return}w.length!==0&&t.push({event:n,listeners:w})}var Lk=/\r\n?/g,Bk=/\u0000|\uFFFD/g;function Ay(t){return(typeof t=="string"?t:""+t).replace(Lk,`
49
+ `).replace(Bk,"")}function Ty(t,n){return n=Ay(n),Ay(t)===n}function Ze(t,n,a,s,h,p){switch(a){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||ql(t,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&ql(t,""+s);break;case"className":bo(t,"class",s);break;case"tabIndex":bo(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":bo(t,a,s);break;case"style":Tm(t,s,p);break;case"data":if(n!=="object"){bo(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=wo(""+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"&&Ze(t,n,"name",h.name,h,null),Ze(t,n,"formEncType",h.formEncType,h,null),Ze(t,n,"formMethod",h.formMethod,h,null),Ze(t,n,"formTarget",h.formTarget,h,null)):(Ze(t,n,"encType",h.encType,h,null),Ze(t,n,"method",h.method,h,null),Ze(t,n,"target",h.target,h,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=wo(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=$n);break;case"onScroll":s!=null&&De("scroll",t);break;case"onScrollEnd":s!=null&&De("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=wo(""+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":De("beforetoggle",t),De("toggle",t),xo(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":xo(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=fS.get(a)||a,xo(t,a,s))}}function Df(t,n,a,s,h,p){switch(a){case"style":Tm(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"?ql(t,s):(typeof s=="number"||typeof s=="bigint")&&ql(t,""+s);break;case"onScroll":s!=null&&De("scroll",t);break;case"onScrollEnd":s!=null&&De("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(!bm.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[Ht]||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,""):xo(t,a,s)}}}function Tt(t,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",t),De("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:Ze(t,n,p,w,a,null)}}h&&Ze(t,n,"srcSet",a.srcSet,a,null),s&&Ze(t,n,"src",a.src,a,null);return;case"input":De("invalid",t);var E=p=w=h=null,M=null,I=null;for(s in a)if(a.hasOwnProperty(s)){var K=a[s];if(K!=null)switch(s){case"name":h=K;break;case"type":w=K;break;case"checked":M=K;break;case"defaultChecked":I=K;break;case"value":p=K;break;case"defaultValue":E=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,n));break;default:Ze(t,n,s,K,a,null)}}Cm(t,p,E,M,I,w,h,!1);return;case"select":De("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:Ze(t,n,h,E,a,null)}n=p,a=w,t.multiple=!!s,n!=null?Pl(t,!!s,n,!1):a!=null&&Pl(t,!!s,a,!0);return;case"textarea":De("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:Ze(t,n,w,E,a,null)}Nm(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:Ze(t,n,M,s,a,null)}return;case"dialog":De("beforetoggle",t),De("toggle",t),De("cancel",t),De("close",t);break;case"iframe":case"object":De("load",t);break;case"video":case"audio":for(s=0;s<Na.length;s++)De(Na[s],t);break;case"image":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"embed":case"source":case"link":De("error",t),De("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:Ze(t,n,I,s,a,null)}return;default:if(Xu(n)){for(K in a)a.hasOwnProperty(K)&&(s=a[K],s!==void 0&&Df(t,n,K,s,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(s=a[E],s!=null&&Ze(t,n,E,s,a,null))}function Uk(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,K=null;for(G in a){var te=a[G];if(a.hasOwnProperty(G)&&te!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":M=te;default:s.hasOwnProperty(G)||Ze(t,n,G,null,s,te)}}for(var V in s){var G=s[V];if(te=a[V],s.hasOwnProperty(V)&&(G!=null||te!=null))switch(V){case"type":p=G;break;case"name":h=G;break;case"checked":I=G;break;case"defaultChecked":K=G;break;case"value":w=G;break;case"defaultValue":E=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,n));break;default:G!==te&&Ze(t,n,V,G,s,te)}}Yu(t,w,E,M,I,K,p,h);return;case"select":G=w=E=V=null;for(p in a)if(M=a[p],a.hasOwnProperty(p)&&M!=null)switch(p){case"value":break;case"multiple":G=M;default:s.hasOwnProperty(p)||Ze(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":V=p;break;case"defaultValue":E=p;break;case"multiple":w=p;default:p!==M&&Ze(t,n,h,p,s,M)}n=E,a=w,s=G,V!=null?Pl(t,!!a,V,!1):!!s!=!!a&&(n!=null?Pl(t,!!a,n,!0):Pl(t,!!a,a?[]:"",!1));return;case"textarea":G=V=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:Ze(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":V=h;break;case"defaultValue":G=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(i(91));break;default:h!==p&&Ze(t,n,w,h,s,p)}Em(t,V,G);return;case"option":for(var me in a)if(V=a[me],a.hasOwnProperty(me)&&V!=null&&!s.hasOwnProperty(me))switch(me){case"selected":t.selected=!1;break;default:Ze(t,n,me,null,s,V)}for(M in s)if(V=s[M],G=a[M],s.hasOwnProperty(M)&&V!==G&&(V!=null||G!=null))switch(M){case"selected":t.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Ze(t,n,M,V,s,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ke in a)V=a[ke],a.hasOwnProperty(ke)&&V!=null&&!s.hasOwnProperty(ke)&&Ze(t,n,ke,null,s,V);for(I in s)if(V=s[I],G=a[I],s.hasOwnProperty(I)&&V!==G&&(V!=null||G!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,n));break;default:Ze(t,n,I,V,s,G)}return;default:if(Xu(n)){for(var Ke in a)V=a[Ke],a.hasOwnProperty(Ke)&&V!==void 0&&!s.hasOwnProperty(Ke)&&Df(t,n,Ke,void 0,s,V);for(K in s)V=s[K],G=a[K],!s.hasOwnProperty(K)||V===G||V===void 0&&G===void 0||Df(t,n,K,V,s,G);return}}for(var H in a)V=a[H],a.hasOwnProperty(H)&&V!=null&&!s.hasOwnProperty(H)&&Ze(t,n,H,null,s,V);for(te in s)V=s[te],G=a[te],!s.hasOwnProperty(te)||V===G||V==null&&G==null||Ze(t,n,te,V,s,G)}function jy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Hk(){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&&jy(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 K=M.transferSize,te=M.initiatorType;K&&jy(te)&&(M=M.responseEnd,w+=K*(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 Lf=null,Bf=null;function gs(t){return t.nodeType===9?t:t.ownerDocument}function _y(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 Ry(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 Uf(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 Hf=null;function Pk(){var t=window.event;return t&&t.type==="popstate"?t===Hf?!1:(Hf=t,!0):(Hf=null,!1)}var Oy=typeof setTimeout=="function"?setTimeout:void 0,qk=typeof clearTimeout=="function"?clearTimeout:void 0,My=typeof Promise=="function"?Promise:void 0,Fk=typeof queueMicrotask=="function"?queueMicrotask:typeof My<"u"?function(t){return My.resolve(null).then(t).catch(Ik)}:Oy;function Ik(t){setTimeout(function(){throw t})}function Hr(t){return t==="head"}function zy(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),xi(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[Yi]||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);xi(n)}function Dy(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 Pf(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":Pf(a),Vu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Vk(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[Yi])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=gn(t.nextSibling),t===null)break}return null}function Gk(t,n,a){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=gn(t.nextSibling),t===null))return null;return t}function Ly(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=gn(t.nextSibling),t===null))return null;return t}function qf(t){return t.data==="$?"||t.data==="$~"}function Ff(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Yk(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 gn(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 By(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(n===0)return gn(t.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}t=t.nextSibling}return null}function Uy(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 Hy(t,n,a){switch(n=gs(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]);Vu(t)}var yn=new Map,Py=new Set;function ys(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ur=X.d;X.d={f:$k,r:Xk,D:Qk,C:Zk,L:Kk,m:Jk,X:e2,S:Wk,M:t2};function $k(){var t=ur.f(),n=ss();return t||n}function Xk(t){var n=Bl(t);n!==null&&n.tag===5&&n.type==="form"?rg(n):ur.r(t)}var pi=typeof document>"u"?null:document;function qy(t,n,a){var s=pi;if(s&&typeof n=="string"&&n){var h=un(n);h='link[rel="'+t+'"][href="'+h+'"]',typeof a=="string"&&(h+='[crossorigin="'+a+'"]'),Py.has(h)||(Py.add(h),t={rel:t,crossOrigin:a,href:n},s.querySelector(h)===null&&(n=s.createElement("link"),Tt(n,"link",t),wt(n),s.head.appendChild(n)))}}function Qk(t){ur.D(t),qy("dns-prefetch",t,null)}function Zk(t,n){ur.C(t,n),qy("preconnect",t,n)}function Kk(t,n,a){ur.L(t,n,a);var s=pi;if(s&&t&&n){var h='link[rel="preload"][as="'+un(n)+'"]';n==="image"&&a&&a.imageSrcSet?(h+='[imagesrcset="'+un(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(h+='[imagesizes="'+un(a.imageSizes)+'"]')):h+='[href="'+un(t)+'"]';var p=h;switch(n){case"style":p=gi(t);break;case"script":p=yi(t)}yn.has(p)||(t=y({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:t,as:n},a),yn.set(p,t),s.querySelector(h)!==null||n==="style"&&s.querySelector(ja(p))||n==="script"&&s.querySelector(_a(p))||(n=s.createElement("link"),Tt(n,"link",t),wt(n),s.head.appendChild(n)))}}function Jk(t,n){ur.m(t,n);var a=pi;if(a&&t){var s=n&&typeof n.as=="string"?n.as:"script",h='link[rel="modulepreload"][as="'+un(s)+'"][href="'+un(t)+'"]',p=h;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=yi(t)}if(!yn.has(p)&&(t=y({rel:"modulepreload",href:t},n),yn.set(p,t),a.querySelector(h)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(_a(p)))return}s=a.createElement("link"),Tt(s,"link",t),wt(s),a.head.appendChild(s)}}}function Wk(t,n,a){ur.S(t,n,a);var s=pi;if(s&&t){var h=Ul(s).hoistableStyles,p=gi(t);n=n||"default";var w=h.get(p);if(!w){var E={loading:0,preload:null};if(w=s.querySelector(ja(p)))E.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":n},a),(a=yn.get(p))&&Vf(t,a);var M=w=s.createElement("link");wt(M),Tt(M,"link",t),M._p=new Promise(function(I,K){M.onload=I,M.onerror=K}),M.addEventListener("load",function(){E.loading|=1}),M.addEventListener("error",function(){E.loading|=2}),E.loading|=4,xs(w,n,s)}w={type:"stylesheet",instance:w,count:1,state:E},h.set(p,w)}}}function e2(t,n){ur.X(t,n);var a=pi;if(a&&t){var s=Ul(a).hoistableScripts,h=yi(t),p=s.get(h);p||(p=a.querySelector(_a(h)),p||(t=y({src:t,async:!0},n),(n=yn.get(h))&&Gf(t,n),p=a.createElement("script"),wt(p),Tt(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(h,p))}}function t2(t,n){ur.M(t,n);var a=pi;if(a&&t){var s=Ul(a).hoistableScripts,h=yi(t),p=s.get(h);p||(p=a.querySelector(_a(h)),p||(t=y({src:t,async:!0,type:"module"},n),(n=yn.get(h))&&Gf(t,n),p=a.createElement("script"),wt(p),Tt(p,"link",t),a.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(h,p))}}function Fy(t,n,a,s){var h=(h=fe.current)?ys(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=gi(a.href),a=Ul(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=gi(a.href);var p=Ul(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(ja(t)))&&!p._p&&(w.instance=p,w.state.loading=5),yn.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},yn.set(t,a),p||n2(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=yi(a),a=Ul(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 gi(t){return'href="'+un(t)+'"'}function ja(t){return'link[rel="stylesheet"]['+t+"]"}function Iy(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function n2(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}),Tt(n,"link",a),wt(n),t.head.appendChild(n))}function yi(t){return'[src="'+un(t)+'"]'}function _a(t){return"script[async]"+t}function Vy(t,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var s=t.querySelector('style[data-href~="'+un(a.href)+'"]');if(s)return n.instance=s,wt(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"),wt(s),Tt(s,"style",h),xs(s,a.precedence,t),n.instance=s;case"stylesheet":h=gi(a.href);var p=t.querySelector(ja(h));if(p)return n.state.loading|=4,n.instance=p,wt(p),p;s=Iy(a),(h=yn.get(h))&&Vf(s,h),p=(t.ownerDocument||t).createElement("link"),wt(p);var w=p;return w._p=new Promise(function(E,M){w.onload=E,w.onerror=M}),Tt(p,"link",s),n.state.loading|=4,xs(p,a.precedence,t),n.instance=p;case"script":return p=yi(a.src),(h=t.querySelector(_a(p)))?(n.instance=h,wt(h),h):(s=a,(h=yn.get(p))&&(s=y({},a),Gf(s,h)),t=t.ownerDocument||t,h=t.createElement("script"),wt(h),Tt(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,xs(s,a.precedence,t));return n.instance}function xs(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 Vf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Gf(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var bs=null;function Gy(t,n,a){if(bs===null){var s=new Map,h=bs=new Map;h.set(a,s)}else h=bs,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[Yi]||p[Ct]||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 Yy(t,n,a){t=t.ownerDocument||t,t.head.insertBefore(a,n==="title"?t.querySelector("head > title"):null)}function r2(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 $y(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function l2(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=gi(s.href),p=n.querySelector(ja(h));if(p){n=p._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=vs.bind(t),n.then(t,t)),a.state.loading|=4,a.instance=p,wt(p);return}p=n.ownerDocument||n,s=Iy(s),(h=yn.get(h))&&Vf(s,h),p=p.createElement("link"),wt(p);var w=p;w._p=new Promise(function(E,M){w.onload=E,w.onerror=M}),Tt(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=vs.bind(t),n.addEventListener("load",a),n.addEventListener("error",a))}}var Yf=0;function i2(t,n){return t.stylesheets&&t.count===0&&Ss(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&Ss(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+n);0<t.imgBytes&&Yf===0&&(Yf=62500*Hk());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ss(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>Yf?50:800)+n);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(h)}}:null}function vs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ss(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ws=null;function Ss(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ws=new Map,n.forEach(a2,t),ws=null,vs.call(t))}function a2(t,n){if(!(n.state.loading&4)){var a=ws.get(t);if(a)var s=a.get(null);else{a=new Map,ws.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=vs.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 Ra={$$typeof:R,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function o2(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=Pu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pu(0),this.hiddenUpdates=Pu(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 Xy(t,n,a,s,h,p,w,E,M,I,K,te){return t=new o2(t,n,a,w,M,I,K,te,E),n=1,p===!0&&(n|=24),p=Zt(3,null,null,n),t.current=p,p.stateNode=t,n=Cc(),n.refCount++,t.pooledCache=n,n.refCount++,p.memoizedState={element:s,isDehydrated:a,cache:n},Tc(p),t}function Qy(t){return t?(t=Xl,t):Xl}function Zy(t,n,a,s,h,p){h=Qy(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=jr(t,s,n),a!==null&&(Gt(a,t,n),ua(a,t,n))}function Ky(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<n?a:n}}function $f(t,n){Ky(t,n),(t=t.alternate)&&Ky(t,n)}function Jy(t){if(t.tag===13||t.tag===31){var n=fl(t,67108864);n!==null&&Gt(n,t,67108864),$f(t,67108864)}}function Wy(t){if(t.tag===13||t.tag===31){var n=tn();n=qu(n);var a=fl(t,n);a!==null&&Gt(a,t,n),$f(t,n)}}var ks=!0;function s2(t,n,a,s){var h=D.T;D.T=null;var p=X.p;try{X.p=2,Xf(t,n,a,s)}finally{X.p=p,D.T=h}}function u2(t,n,a,s){var h=D.T;D.T=null;var p=X.p;try{X.p=8,Xf(t,n,a,s)}finally{X.p=p,D.T=h}}function Xf(t,n,a,s){if(ks){var h=Qf(s);if(h===null)zf(t,n,s,Cs,a),tx(t,s);else if(f2(h,t,n,a,s))s.stopPropagation();else if(tx(t,s),n&4&&-1<c2.indexOf(t)){for(;h!==null;){var p=Bl(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var w=al(p.pendingLanes);if(w!==0){var E=p;for(E.pendingLanes|=2,E.entangledLanes|=2;w;){var M=1<<31-Je(w);E.entanglements[1]|=M,w&=~M}zn(p),(Ye&6)===0&&(as=kt()+500,Ea(0))}}break;case 31:case 13:E=fl(p,2),E!==null&&Gt(E,p,2),ss(),$f(p,2)}if(p=Qf(s),p===null&&zf(t,n,s,Cs,a),p===h)break;h=p}h!==null&&s.stopPropagation()}else zf(t,n,s,null,a)}}function Qf(t){return t=Zu(t),Zf(t)}var Cs=null;function Zf(t){if(Cs=null,t=Ll(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 Cs=t,null}function ex(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(Ii()){case J:return 2;case ce:return 8;case Se:case Re:return 32;case ae:return 268435456;default:return 32}default:return 32}}var Kf=!1,Pr=null,qr=null,Fr=null,Oa=new Map,Ma=new Map,Ir=[],c2="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 tx(t,n){switch(t){case"focusin":case"focusout":Pr=null;break;case"dragenter":case"dragleave":qr=null;break;case"mouseover":case"mouseout":Fr=null;break;case"pointerover":case"pointerout":Oa.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ma.delete(n.pointerId)}}function za(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=Bl(n),n!==null&&Jy(n)),t):(t.eventSystemFlags|=s,n=t.targetContainers,h!==null&&n.indexOf(h)===-1&&n.push(h),t)}function f2(t,n,a,s,h){switch(n){case"focusin":return Pr=za(Pr,t,n,a,s,h),!0;case"dragenter":return qr=za(qr,t,n,a,s,h),!0;case"mouseover":return Fr=za(Fr,t,n,a,s,h),!0;case"pointerover":var p=h.pointerId;return Oa.set(p,za(Oa.get(p)||null,t,n,a,s,h)),!0;case"gotpointercapture":return p=h.pointerId,Ma.set(p,za(Ma.get(p)||null,t,n,a,s,h)),!0}return!1}function nx(t){var n=Ll(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,gm(t.priority,function(){Wy(a)});return}}else if(n===31){if(n=f(a),n!==null){t.blockedOn=n,gm(t.priority,function(){Wy(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 Es(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var a=Qf(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Qu=s,a.target.dispatchEvent(s),Qu=null}else return n=Bl(a),n!==null&&Jy(n),t.blockedOn=a,!1;n.shift()}return!0}function rx(t,n,a){Es(t)&&a.delete(n)}function d2(){Kf=!1,Pr!==null&&Es(Pr)&&(Pr=null),qr!==null&&Es(qr)&&(qr=null),Fr!==null&&Es(Fr)&&(Fr=null),Oa.forEach(rx),Ma.forEach(rx)}function Ns(t,n){t.blockedOn===n&&(t.blockedOn=null,Kf||(Kf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,d2)))}var As=null;function lx(t){As!==t&&(As=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){As===t&&(As=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(Zf(s||a)===null)continue;break}var p=Bl(a);p!==null&&(t.splice(n,3),n-=3,Xc(p,{pending:!0,data:h,method:a.method,action:s},s,h))}}))}function xi(t){function n(M){return Ns(M,t)}Pr!==null&&Ns(Pr,t),qr!==null&&Ns(qr,t),Fr!==null&&Ns(Fr,t),Oa.forEach(n),Ma.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);)nx(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[Ht]||null;if(typeof p=="function")w||lx(a);else if(w){var E=null;if(p&&p.hasAttribute("formAction")){if(h=p,w=p[Ht]||null)E=w.formAction;else if(Zf(h)!==null)continue}else E=w.action;typeof E=="function"?a[s+1]=E:(a.splice(s,3),s-=3),lx(a)}}}function ix(){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 Jf(t){this._internalRoot=t}Ts.prototype.render=Jf.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(i(409));var a=n.current,s=tn();Zy(a,s,t,n,null,null)},Ts.prototype.unmount=Jf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;Zy(t.current,2,null,t,null,null),ss(),n[Dl]=null}};function Ts(t){this._internalRoot=t}Ts.prototype.unstable_scheduleHydration=function(t){if(t){var n=pm();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&&nx(t)}};var ax=r.version;if(ax!=="19.2.1")throw Error(i(527,ax,"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 h2={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var js=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!js.isDisabled&&js.supportsFiber)try{He=js.inject(h2),Me=js}catch{}}return La.createRoot=function(t,n){if(!o(t))throw Error(i(299));var a=!1,s="",h=hg,p=mg,w=pg;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=Xy(t,1,!1,null,null,a,s,null,h,p,w,ix),t[Dl]=n.current,Mf(t),new Jf(n)},La.hydrateRoot=function(t,n,a){if(!o(t))throw Error(i(299));var s=!1,h="",p=hg,w=mg,E=pg,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=Xy(t,1,!0,n,a??null,s,h,M,p,w,E,ix),n.context=Qy(null),a=n.current,s=tn(),s=qu(s),h=Tr(s),h.callback=null,jr(a,h,s),a=s,n.current.lanes=a,Gi(n,a),zn(n),t[Dl]=n.current,Mf(t),new Ts(n)},La.version="19.2.1",La}var gx;function E2(){if(gx)return td.exports;gx=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(),td.exports=C2(),td.exports}var N2=E2();/**
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 yx="popstate";function xx(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function A2(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 qd("",{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:Ka(o)}return j2(r,l,null,e)}function at(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function Fn(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function T2(){return Math.random().toString(36).substring(2,10)}function bx(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 qd(e,r,l=null,i,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof r=="string"?Di(r):r,state:l,key:r&&r.key||i||T2(),unstable_mask:o}}function Ka({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 Di(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 j2(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 N=g(),A=N==null?null:N-m;m=N,d&&d({action:f,location:C.location,delta:A})}function b(N,A){f="PUSH";let _=xx(N)?N:qd(C.location,N,A);m=g()+1;let R=bx(_,m),B=C.createHref(_.unstable_mask||_);try{c.pushState(R,"",B)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(B)}u&&d&&d({action:f,location:C.location,delta:1})}function v(N,A){f="REPLACE";let _=xx(N)?N:qd(C.location,N,A);m=g();let R=bx(_,m),B=C.createHref(_.unstable_mask||_);c.replaceState(R,"",B),u&&d&&d({action:f,location:C.location,delta:0})}function k(N){return _2(N)}let C={get action(){return f},get location(){return e(o,c)},listen(N){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(yx,y),d=N,()=>{o.removeEventListener(yx,y),d=null}},createHref(N){return r(o,N)},createURL:k,encodeLocation(N){let A=k(N);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:b,replace:v,go(N){return c.go(N)}};return C}function _2(e,r=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),at(l,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Ka(e);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=l+i),new URL(i,l)}function dv(e,r,l="/"){return R2(e,r,l,!1)}function R2(e,r,l,i){let o=typeof r=="string"?Di(r):r,u=dr(o.pathname||"/",l);if(u==null)return null;let c=hv(e);O2(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let m=I2(u);f=q2(c[d],m,i)}return f}function hv(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;at(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=Pn([i,g.relativePath]),b=l.concat(g);c.children&&c.children.length>0&&(at(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),hv(c.children,r,b,y,d)),!(c.path==null&&!c.index)&&r.push({path:y,score:H2(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 mv(c.path))u(c,f,!0,m)}),r}function mv(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=mv(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 O2(e){e.sort((r,l)=>r.score!==l.score?l.score-r.score:P2(r.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var M2=/^:[\w-]+$/,z2=3,D2=2,L2=1,B2=10,U2=-2,vx=e=>e==="*";function H2(e,r){let l=e.split("/"),i=l.length;return l.some(vx)&&(i+=U2),r&&(i+=D2),l.filter(o=>!vx(o)).reduce((o,u)=>o+(M2.test(u)?z2:u===""?L2:B2),i)}function P2(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=Ks({path:d.relativePath,caseSensitive:d.caseSensitive,end:m},g),b=d.route;if(!y&&m&&l&&!i[i.length-1].route.index&&(y=Ks({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},g)),!y)return null;Object.assign(o,y.params),c.push({params:o,pathname:Pn([u,y.pathname]),pathnameBase:$2(Pn([u,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(u=Pn([u,y.pathnameBase]))}return c}function Ks(e,r){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[l,i]=F2(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 F2(e,r=!1,l=!0){Fn(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 I2(e){try{return e.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Fn(!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 dr(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 V2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function G2(e,r="/"){let{pathname:l,search:i="",hash:o=""}=typeof e=="string"?Di(e):e,u;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?u=wx(l.substring(1),"/"):u=wx(l,r)):u=r,{pathname:u,search:X2(i),hash:Q2(o)}}function wx(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 id(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 Y2(e){return e.filter((r,l)=>l===0||r.route.path&&r.route.path.length>0)}function pv(e){let r=Y2(e);return r.map((l,i)=>i===r.length-1?l.pathname:l.pathnameBase)}function hh(e,r,l,i=!1){let o;typeof e=="string"?o=Di(e):(o={...e},at(!o.pathname||!o.pathname.includes("?"),id("?","pathname","search",o)),at(!o.pathname||!o.pathname.includes("#"),id("#","pathname","hash",o)),at(!o.search||!o.search.includes("#"),id("#","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=G2(o,f),m=c&&c!=="/"&&c.endsWith("/"),g=(u||c===".")&&l.endsWith("/");return!d.pathname.endsWith("/")&&(m||g)&&(d.pathname+="/"),d}var Pn=e=>e.join("/").replace(/\/\/+/g,"/"),$2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Q2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Z2=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 K2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function J2(e){return e.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yv(e,r){let l=e;if(typeof l!="string"||!V2.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let i=l,o=!1;if(gv)try{let u=new URL(window.location.href),c=l.startsWith("//")?new URL(u.protocol+l):new URL(l),f=dr(c.pathname,r);c.origin===u.origin&&f!=null?l=f+c.search+c.hash:o=!0}catch{Fn(!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 xv=["POST","PUT","PATCH","DELETE"];new Set(xv);var W2=["GET",...xv];new Set(W2);var Li=S.createContext(null);Li.displayName="DataRouter";var mu=S.createContext(null);mu.displayName="DataRouterState";var eC=S.createContext(!1),bv=S.createContext({isTransitioning:!1});bv.displayName="ViewTransition";var tC=S.createContext(new Map);tC.displayName="Fetchers";var nC=S.createContext(null);nC.displayName="Await";var bn=S.createContext(null);bn.displayName="Navigation";var ro=S.createContext(null);ro.displayName="Location";var jn=S.createContext({outlet:null,matches:[],isDataRoute:!1});jn.displayName="Route";var mh=S.createContext(null);mh.displayName="RouteError";var vv="REACT_ROUTER_ERROR",rC="REDIRECT",lC="ROUTE_ERROR_RESPONSE";function iC(e){if(e.startsWith(`${vv}:${rC}:{`))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 aC(e){if(e.startsWith(`${vv}:${lC}:{`))try{let r=JSON.parse(e.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new Z2(r.status,r.statusText,r.data)}catch{}}function oC(e,{relative:r}={}){at(lo(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:i}=S.useContext(bn),{hash:o,pathname:u,search:c}=io(e,{relative:r}),f=u;return l!=="/"&&(f=u==="/"?l:Pn([l,u])),i.createHref({pathname:f,search:c,hash:o})}function lo(){return S.useContext(ro)!=null}function In(){return at(lo(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(ro).location}var wv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Sv(e){S.useContext(bn).static||S.useLayoutEffect(e)}function ph(){let{isDataRoute:e}=S.useContext(jn);return e?SC():sC()}function sC(){at(lo(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Li),{basename:r,navigator:l}=S.useContext(bn),{matches:i}=S.useContext(jn),{pathname:o}=In(),u=JSON.stringify(pv(i)),c=S.useRef(!1);return Sv(()=>{c.current=!0}),S.useCallback((d,m={})=>{if(Fn(c.current,wv),!c.current)return;if(typeof d=="number"){l.go(d);return}let g=hh(d,JSON.parse(u),o,m.relative==="path");e==null&&r!=="/"&&(g.pathname=g.pathname==="/"?r:Pn([r,g.pathname])),(m.replace?l.replace:l.push)(g,m.state,m)},[r,l,u,o,e])}var kv=S.createContext(null);function Cv(){return S.useContext(kv)}function uC(e){let r=S.useContext(jn).outlet;return S.useMemo(()=>r&&S.createElement(kv.Provider,{value:e},r),[r,e])}function cC(){let{matches:e}=S.useContext(jn),r=e[e.length-1];return r?r.params:{}}function io(e,{relative:r}={}){let{matches:l}=S.useContext(jn),{pathname:i}=In(),o=JSON.stringify(pv(l));return S.useMemo(()=>hh(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function fC(e,r){return Ev(e,r)}function Ev(e,r,l){var N;at(lo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(bn),{matches:o}=S.useContext(jn),u=o[o.length-1],c=u?u.params:{},f=u?u.pathname:"/",d=u?u.pathnameBase:"/",m=u&&u.route;{let A=m&&m.path||"";Av(f,!m||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let g=In(),y;if(r){let A=typeof r=="string"?Di(r):r;at(d==="/"||((N=A.pathname)==null?void 0:N.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 "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=g;let b=y.pathname||"/",v=b;if(d!=="/"){let A=d.replace(/^\//,"").split("/");v="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let k=dv(e,{pathname:v});Fn(m||k!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Fn(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=gC(k&&k.map(A=>Object.assign({},A,{params:Object.assign({},c,A.params),pathname:Pn([d,i.encodeLocation?i.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?d:Pn([d,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),o,l);return r&&C?S.createElement(ro.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},C):C}function dC(){let e=wC(),r=K2(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 hC=S.createElement(dC,null),Nv=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=aC(e.digest);l&&(e=l)}let r=e!==void 0?S.createElement(jn.Provider,{value:this.props.routeContext},S.createElement(mh.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(mC,{error:e},r):r}};Nv.contextType=eC;var ad=new WeakMap;function mC({children:e,error:r}){let{basename:l}=S.useContext(bn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=iC(r.digest);if(i){let o=ad.get(r);if(o)throw o;let u=yv(i.location,l);if(gv&&!ad.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 ad.set(r,c),c}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function pC({routeContext:e,match:r,children:l}){let i=S.useContext(Li);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(jn.Provider,{value:e},l)}function gC(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);at(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:J2(i.matches),errorInfo:y})}:void 0;return o.reduceRight((g,y,b)=>{let v,k=!1,C=null,N=null;i&&(v=u&&y.route.id?u[y.route.id]:void 0,C=y.route.errorElement||hC,c&&(f<0&&b===0?(Av("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),k=!0,N=null):f===b&&(k=!0,N=y.route.hydrateFallbackElement||null)));let A=r.concat(o.slice(0,b+1)),_=()=>{let R;return v?R=C:k?R=N:y.route.Component?R=S.createElement(y.route.Component,null):y.route.element?R=y.route.element:R=g,S.createElement(pC,{match:y,routeContext:{outlet:g,matches:A,isDataRoute:i!=null},children:R})};return i&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?S.createElement(Nv,{location:i.location,revalidation:i.revalidation,component:C,error:v,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:m}):_()},null)}function gh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yC(e){let r=S.useContext(Li);return at(r,gh(e)),r}function xC(e){let r=S.useContext(mu);return at(r,gh(e)),r}function bC(e){let r=S.useContext(jn);return at(r,gh(e)),r}function yh(e){let r=bC(e),l=r.matches[r.matches.length-1];return at(l.route.id,`${e} can only be used on routes that contain a unique "id"`),l.route.id}function vC(){return yh("useRouteId")}function wC(){var i;let e=S.useContext(mh),r=xC("useRouteError"),l=yh("useRouteError");return e!==void 0?e:(i=r.errors)==null?void 0:i[l]}function SC(){let{router:e}=yC("useNavigate"),r=yh("useNavigate"),l=S.useRef(!1);return Sv(()=>{l.current=!0}),S.useCallback(async(o,u={})=>{Fn(l.current,wv),l.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:r,...u}))},[e,r])}var Sx={};function Av(e,r,l){!r&&!Sx[e]&&(Sx[e]=!0,Fn(!1,l))}S.memo(kC);function kC({routes:e,future:r,state:l,isStatic:i,onError:o}){return Ev(e,void 0,{state:l,isStatic:i,onError:o})}function CC(e){return uC(e.context)}function Ga(e){at(!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 EC({basename:e="/",children:r=null,location:l,navigationType:i="POP",navigator:o,static:u=!1,unstable_useTransitions:c}){at(!lo(),"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=Di(l));let{pathname:m="/",search:g="",hash:y="",state:b=null,key:v="default",unstable_mask:k}=l,C=S.useMemo(()=>{let N=dr(m,f);return N==null?null:{location:{pathname:N,search:g,hash:y,state:b,key:v,unstable_mask:k},navigationType:i}},[f,m,g,y,b,v,i,k]);return Fn(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(bn.Provider,{value:d},S.createElement(ro.Provider,{children:r,value:C}))}function NC({children:e,location:r}){return fC(Fd(e),r)}function Fd(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,Fd(i.props.children,u));return}at(i.type===Ga,`[${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>`),at(!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=Fd(i.props.children,u)),l.push(c)}),l}var Gs="get",Ys="application/x-www-form-urlencoded";function pu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function AC(e){return pu(e)&&e.tagName.toLowerCase()==="button"}function TC(e){return pu(e)&&e.tagName.toLowerCase()==="form"}function jC(e){return pu(e)&&e.tagName.toLowerCase()==="input"}function _C(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function RC(e,r){return e.button===0&&(!r||r==="_self")&&!_C(e)}var _s=null;function OC(){if(_s===null)try{new FormData(document.createElement("form"),0),_s=!1}catch{_s=!0}return _s}var MC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function od(e){return e!=null&&!MC.has(e)?(Fn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ys}"`),null):e}function zC(e,r){let l,i,o,u,c;if(TC(e)){let f=e.getAttribute("action");i=f?dr(f,r):null,l=e.getAttribute("method")||Gs,o=od(e.getAttribute("enctype"))||Ys,u=new FormData(e)}else if(AC(e)||jC(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?dr(d,r):null,l=e.getAttribute("formmethod")||f.getAttribute("method")||Gs,o=od(e.getAttribute("formenctype"))||od(f.getAttribute("enctype"))||Ys,u=new FormData(f,e),!OC()){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(pu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=Gs,i=null,o=Ys,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 xh(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function DC(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&&dr(o.pathname,r)==="/"?o.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${i}`,o}async function LC(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 BC(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 UC(e,r,l){let i=await Promise.all(e.map(async o=>{let u=r.routes[o.route.id];if(u){let c=await LC(u,l);return c.links?c.links():[]}return[]}));return FC(i.flat(1).filter(BC).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function kx(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 HC(e,r,{includeHydrateFallback:l}={}){return PC(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 PC(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 FC(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 Tv(){let e=S.useContext(Li);return xh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function IC(){let e=S.useContext(mu);return xh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var bh=S.createContext(void 0);bh.displayName="FrameworkContext";function jv(){let e=S.useContext(bh);return xh(e,"You must render this element inside a <HydratedRouter> element"),e}function VC(e,r){let l=S.useContext(bh),[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=A=>{A.forEach(_=>{c(_.isIntersecting)})},N=new IntersectionObserver(C,{threshold:.5});return b.current&&N.observe(b.current),()=>{N.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:Ba(f,v),onBlur:Ba(d,k),onMouseEnter:Ba(m,v),onMouseLeave:Ba(g,k),onTouchStart:Ba(y,v)}]:[!1,b,{}]}function Ba(e,r){return l=>{e&&e(l),l.defaultPrevented||r(l)}}function GC({page:e,...r}){let{router:l}=Tv(),i=S.useMemo(()=>dv(l.routes,e,l.basename),[l.routes,e,l.basename]);return i?S.createElement($C,{page:e,matches:i,...r}):null}function YC(e){let{manifest:r,routeModules:l}=jv(),[i,o]=S.useState([]);return S.useEffect(()=>{let u=!1;return UC(e,r,l).then(c=>{u||o(c)}),()=>{u=!0}},[e,r,l]),i}function $C({page:e,matches:r,...l}){let i=In(),{future:o,manifest:u,routeModules:c}=jv(),{basename:f}=Tv(),{loaderData:d,matches:m}=IC(),g=S.useMemo(()=>kx(e,r,m,u,i,"data"),[e,r,m,u,i]),y=S.useMemo(()=>kx(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,N=!1;if(r.forEach(_=>{var B;let R=u.routes[_.route.id];!R||!R.hasLoader||(!g.some(P=>P.route.id===_.route.id)&&_.route.id in d&&((B=c[_.route.id])!=null&&B.shouldRevalidate)||R.hasClientLoader?N=!0:C.add(_.route.id))}),C.size===0)return[];let A=DC(e,f,o.unstable_trailingSlashAwareDataRequests,"data");return N&&C.size>0&&A.searchParams.set("_routes",r.filter(_=>C.has(_.route.id)).map(_=>_.route.id).join(",")),[A.pathname+A.search]},[f,o.unstable_trailingSlashAwareDataRequests,d,i,u,g,r,e,c]),v=S.useMemo(()=>HC(y,u),[y,u]),k=YC(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:N})=>S.createElement("link",{key:C,nonce:l.nonce,...N,crossOrigin:N.crossOrigin??l.crossOrigin})))}function XC(...e){return r=>{e.forEach(l=>{typeof l=="function"?l(r):l!=null&&(l.current=r)})}}var QC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{QC&&(window.__reactRouterVersion="7.13.1")}catch{}function ZC({basename:e,children:r,unstable_useTransitions:l,window:i}){let o=S.useRef();o.current==null&&(o.current=A2({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(EC,{basename:e,children:r,location:c.location,navigationType:c.action,navigator:u,unstable_useTransitions:l})}var _v=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rv=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:N,navigator:A,unstable_useTransitions:_}=S.useContext(bn),R=typeof g=="string"&&_v.test(g),B=yv(g,N);g=B.to;let P=oC(g,{relative:o}),z=In(),q=null;if(f){let $=hh(f,[],z.unstable_mask?z.unstable_mask.pathname:"/",!0);N!=="/"&&($.pathname=$.pathname==="/"?N:Pn([N,$.pathname])),q=A.createHref($)}let[Y,oe,U]=VC(i,k),re=eE(g,{replace:c,unstable_mask:f,state:d,target:m,preventScrollReset:y,relative:o,viewTransition:b,unstable_defaultShouldRevalidate:v,unstable_useTransitions:_});function le($){r&&r($),$.defaultPrevented||re($)}let ue=!(B.isExternal||u),Z=S.createElement("a",{...k,...U,href:(ue?q:void 0)||B.absoluteURL||P,onClick:ue?le:r,ref:XC(C,oe),target:m,"data-discover":!R&&l==="render"?"true":void 0});return Y&&!R?S.createElement(S.Fragment,null,Z,S.createElement(GC,{page:P})):Z});Rv.displayName="Link";var KC=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=io(c,{relative:m.relative}),b=In(),v=S.useContext(mu),{navigator:k,basename:C}=S.useContext(bn),N=v!=null&&iE(y)&&f===!0,A=k.encodeLocation?k.encodeLocation(y).pathname:y.pathname,_=b.pathname,R=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;l||(_=_.toLowerCase(),R=R?R.toLowerCase():null,A=A.toLowerCase()),R&&C&&(R=dr(R,C)||R);const B=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let P=_===A||!o&&_.startsWith(A)&&_.charAt(B)==="/",z=R!=null&&(R===A||!o&&R.startsWith(A)&&R.charAt(A.length)==="/"),q={isActive:P,isPending:z,isTransitioning:N},Y=P?r:void 0,oe;typeof i=="function"?oe=i(q):oe=[i,P?"active":null,z?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let U=typeof u=="function"?u(q):u;return S.createElement(Rv,{...m,"aria-current":Y,className:oe,ref:g,style:U,to:c,viewTransition:f},typeof d=="function"?d(q):d)});KC.displayName="NavLink";var JC=S.forwardRef(({discover:e="render",fetcherKey:r,navigate:l,reloadDocument:i,replace:o,state:u,method:c=Gs,action:f,onSubmit:d,relative:m,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:b,...v},k)=>{let{unstable_useTransitions:C}=S.useContext(bn),N=rE(),A=lE(f,{relative:m}),_=c.toLowerCase()==="get"?"get":"post",R=typeof f=="string"&&_v.test(f),B=P=>{if(d&&d(P),P.defaultPrevented)return;P.preventDefault();let z=P.nativeEvent.submitter,q=(z==null?void 0:z.getAttribute("formmethod"))||c,Y=()=>N(z||P.currentTarget,{fetcherKey:r,method:q,navigate:l,replace:o,state:u,relative:m,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:b});C&&l!==!1?S.startTransition(()=>Y()):Y()};return S.createElement("form",{ref:k,method:_,action:A,onSubmit:i?d:B,...v,"data-discover":!R&&e==="render"?"true":void 0})});JC.displayName="Form";function WC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ov(e){let r=S.useContext(Li);return at(r,WC(e)),r}function eE(e,{target:r,replace:l,unstable_mask:i,state:o,preventScrollReset:u,relative:c,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:m}={}){let g=ph(),y=In(),b=io(e,{relative:c});return S.useCallback(v=>{if(RC(v,r)){v.preventDefault();let k=l!==void 0?l:Ka(y)===Ka(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 tE=0,nE=()=>`__${String(++tE)}__`;function rE(){let{router:e}=Ov("useSubmit"),{basename:r}=S.useContext(bn),l=vC(),i=e.fetch,o=e.navigate;return S.useCallback(async(u,c={})=>{let{action:f,method:d,encType:m,formData:g,body:y}=zC(u,r);if(c.navigate===!1){let b=c.fetcherKey||nE();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 lE(e,{relative:r}={}){let{basename:l}=S.useContext(bn),i=S.useContext(jn);at(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),u={...io(e||".",{relative:r})},c=In();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:Pn([l,u.pathname])),Ka(u)}function iE(e,{relative:r}={}){let l=S.useContext(bv);at(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Ov("useViewTransitionState"),o=io(e,{relative:r});if(!l.isTransitioning)return!1;let u=dr(l.currentLocation.pathname,i)||l.currentLocation.pathname,c=dr(l.nextLocation.pathname,i)||l.nextLocation.pathname;return Ks(o.pathname,c)!=null||Ks(o.pathname,u)!=null}var vh=fv();const aE=hu(vh);function Mv(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=Mv(e[r]))&&(i&&(i+=" "),i+=l)}else for(l in e)e[l]&&(i&&(i+=" "),i+=l);return i}function zv(){for(var e,r,l=0,i="",o=arguments.length;l<o;l++)(e=arguments[l])&&(r=Mv(e))&&(i&&(i+=" "),i+=r);return i}const Cx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ex=zv,oE=(e,r)=>l=>{var i;if((r==null?void 0:r.variants)==null)return Ex(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=Cx(g)||Cx(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,N]=k;return Array.isArray(N)?N.includes({...u,...f}[C]):{...u,...f}[C]===N})?[...m,y,b]:m},[]);return Ex(e,c,d,l==null?void 0:l.class,l==null?void 0:l.className)},sE=(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},uE=(e,r)=>({classGroupId:e,validator:r}),Dv=(e=new Map,r=null,l)=>({nextPart:e,validators:r,classGroupId:l}),Js="-",Nx=[],cE="arbitrary..",fE=e=>{const r=hE(e),{conflictingClassGroups:l,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return dE(c);const f=c.split(Js),d=f[0]===""&&f.length>1?1:0;return Lv(f,d,r)},getConflictingClassGroupIds:(c,f)=>{if(f){const d=i[c],m=l[c];return d?m?sE(m,d):d:m||Nx}return l[c]||Nx}}},Lv=(e,r,l)=>{if(e.length-r===0)return l.classGroupId;const o=e[r],u=l.nextPart.get(o);if(u){const m=Lv(e,r+1,u);if(m)return m}const c=l.validators;if(c===null)return;const f=r===0?e.join(Js):e.slice(r).join(Js),d=c.length;for(let m=0;m<d;m++){const g=c[m];if(g.validator(f))return g.classGroupId}},dE=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?cE+i:void 0})(),hE=e=>{const{theme:r,classGroups:l}=e;return mE(l,r)},mE=(e,r)=>{const l=Dv();for(const i in e){const o=e[i];wh(o,l,i,r)}return l},wh=(e,r,l,i)=>{const o=e.length;for(let u=0;u<o;u++){const c=e[u];pE(c,r,l,i)}},pE=(e,r,l,i)=>{if(typeof e=="string"){gE(e,r,l);return}if(typeof e=="function"){yE(e,r,l,i);return}xE(e,r,l,i)},gE=(e,r,l)=>{const i=e===""?r:Bv(r,e);i.classGroupId=l},yE=(e,r,l,i)=>{if(bE(e)){wh(e(i),r,l,i);return}r.validators===null&&(r.validators=[]),r.validators.push(uE(l,e))},xE=(e,r,l,i)=>{const o=Object.entries(e),u=o.length;for(let c=0;c<u;c++){const[f,d]=o[c];wh(d,Bv(r,f),l,i)}},Bv=(e,r)=>{let l=e;const i=r.split(Js),o=i.length;for(let u=0;u<o;u++){const c=i[u];let f=l.nextPart.get(c);f||(f=Dv(),l.nextPart.set(c,f)),l=f}return l},bE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,vE=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)}}},Id="!",Ax=":",wE=[],Tx=(e,r,l,i,o)=>({modifiers:e,hasImportantModifier:r,baseClassName:l,maybePostfixModifierPosition:i,isExternal:o}),SE=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 N=o[C];if(c===0&&f===0){if(N===Ax){u.push(o.slice(d,C)),d=C+1;continue}if(N==="/"){m=C;continue}}N==="["?c++:N==="]"?c--:N==="("?f++:N===")"&&f--}const y=u.length===0?o:o.slice(d);let b=y,v=!1;y.endsWith(Id)?(b=y.slice(0,-1),v=!0):y.startsWith(Id)&&(b=y.slice(1),v=!0);const k=m&&m>d?m-d:void 0;return Tx(u,v,b,k)};if(r){const o=r+Ax,u=i;i=c=>c.startsWith(o)?u(c.slice(o.length)):Tx(wE,!1,c,void 0,!0)}if(l){const o=i;i=u=>l({className:u,parseClassName:o})}return i},kE=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}},CE=e=>({cache:vE(e.cacheSize),parseClassName:SE(e),sortModifiers:kE(e),...fE(e)}),EE=/\s+/,NE=(e,r)=>{const{parseClassName:l,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:u}=r,c=[],f=e.trim().split(EE);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 N=!!C,A=i(N?k.substring(0,C):k);if(!A){if(!N){d=g+(d.length>0?" "+d:d);continue}if(A=i(k),!A){d=g+(d.length>0?" "+d:d);continue}N=!1}const _=b.length===0?"":b.length===1?b[0]:u(b).join(":"),R=v?_+Id:_,B=R+A;if(c.indexOf(B)>-1)continue;c.push(B);const P=o(A,N);for(let z=0;z<P.length;++z){const q=P[z];c.push(R+q)}d=g+(d.length>0?" "+d:d)}return d},AE=(...e)=>{let r=0,l,i,o="";for(;r<e.length;)(l=e[r++])&&(i=Uv(l))&&(o&&(o+=" "),o+=i);return o},Uv=e=>{if(typeof e=="string")return e;let r,l="";for(let i=0;i<e.length;i++)e[i]&&(r=Uv(e[i]))&&(l&&(l+=" "),l+=r);return l},TE=(e,...r)=>{let l,i,o,u;const c=d=>{const m=r.reduce((g,y)=>y(g),e());return l=CE(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=NE(d,l);return o(d,g),g};return u=c,(...d)=>u(AE(...d))},jE=[],bt=e=>{const r=l=>l[e]||jE;return r.isThemeGetter=!0,r},Hv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_E=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,RE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OE=/\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$/,ME=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gr=e=>_E.test(e),Oe=e=>!!e&&!Number.isNaN(Number(e)),Yr=e=>!!e&&Number.isInteger(Number(e)),sd=e=>e.endsWith("%")&&Oe(e.slice(0,-1)),fr=e=>RE.test(e),qv=()=>!0,LE=e=>OE.test(e)&&!ME.test(e),Sh=()=>!1,BE=e=>zE.test(e),UE=e=>DE.test(e),HE=e=>!pe(e)&&!ge(e),PE=e=>el(e,Vv,Sh),pe=e=>Hv.test(e),Cl=e=>el(e,Gv,LE),jx=e=>el(e,XE,Oe),qE=e=>el(e,$v,qv),FE=e=>el(e,Yv,Sh),_x=e=>el(e,Fv,Sh),IE=e=>el(e,Iv,UE),Rs=e=>el(e,Xv,BE),ge=e=>Pv.test(e),Ua=e=>Ol(e,Gv),VE=e=>Ol(e,Yv),Rx=e=>Ol(e,Fv),GE=e=>Ol(e,Vv),YE=e=>Ol(e,Iv),Os=e=>Ol(e,Xv,!0),$E=e=>Ol(e,$v,!0),el=(e,r,l)=>{const i=Hv.exec(e);return i?i[1]?r(i[1]):l(i[2]):!1},Ol=(e,r,l=!1)=>{const i=Pv.exec(e);return i?i[1]?r(i[1]):l:!1},Fv=e=>e==="position"||e==="percentage",Iv=e=>e==="image"||e==="url",Vv=e=>e==="length"||e==="size"||e==="bg-size",Gv=e=>e==="length",XE=e=>e==="number",Yv=e=>e==="family-name",$v=e=>e==="number"||e==="weight",Xv=e=>e==="shadow",QE=()=>{const e=bt("color"),r=bt("font"),l=bt("text"),i=bt("font-weight"),o=bt("tracking"),u=bt("leading"),c=bt("breakpoint"),f=bt("container"),d=bt("spacing"),m=bt("radius"),g=bt("shadow"),y=bt("inset-shadow"),b=bt("text-shadow"),v=bt("drop-shadow"),k=bt("blur"),C=bt("perspective"),N=bt("aspect"),A=bt("ease"),_=bt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...B(),ge,pe],z=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],Y=()=>[ge,pe,d],oe=()=>[Gr,"full","auto",...Y()],U=()=>[Yr,"none","subgrid",ge,pe],re=()=>["auto",{span:["full",Yr,ge,pe]},Yr,ge,pe],le=()=>[Yr,"auto",ge,pe],ue=()=>["auto","min","max","fr",ge,pe],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...Y()],X=()=>[Gr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],ee=()=>[Gr,"screen","full","dvw","lvw","svw","min","max","fit",...Y()],ie=()=>[Gr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Y()],T=()=>[e,ge,pe],O=()=>[...B(),Rx,_x,{position:[ge,pe]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",GE,PE,{size:[ge,pe]}],ne=()=>[sd,Ua,Cl],de=()=>["","none","full",m,ge,pe],fe=()=>["",Oe,Ua,Cl],Ne=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[Oe,sd,Rx,_x],it=()=>["","none",k,ge,pe],gt=()=>["none",Oe,ge,pe],zt=()=>["none",Oe,ge,pe],jt=()=>[Oe,ge,pe],yt=()=>[Gr,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fr],breakpoint:[fr],color:[qv],container:[fr],"drop-shadow":[fr],ease:["in","out","in-out"],font:[HE],"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",Oe],text:[fr],"text-shadow":[fr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gr,pe,ge,N]}],container:["container"],columns:[{columns:[Oe,pe,ge,f]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:P()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:oe()}],"inset-x":[{"inset-x":oe()}],"inset-y":[{"inset-y":oe()}],start:[{"inset-s":oe(),start:oe()}],end:[{"inset-e":oe(),end:oe()}],"inset-bs":[{"inset-bs":oe()}],"inset-be":[{"inset-be":oe()}],top:[{top:oe()}],right:[{right:oe()}],bottom:[{bottom:oe()}],left:[{left:oe()}],visibility:["visible","invisible","collapse"],z:[{z:[Yr,"auto",ge,pe]}],basis:[{basis:[Gr,"full","auto",f,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Oe,Gr,"auto","initial","none",pe]}],grow:[{grow:["",Oe,ge,pe]}],shrink:[{shrink:["",Oe,ge,pe]}],order:[{order:[Yr,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":U()}],"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":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pbs:[{pbs:Y()}],pbe:[{pbe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],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":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"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,Ua,Cl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,$E,qE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sd,pe]}],"font-family":[{font:[VE,FE,r]}],"font-features":[{"font-features":[pe]}],"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,ge,pe]}],"line-clamp":[{"line-clamp":[Oe,"none",ge,jx]}],leading:[{leading:[u,...Y()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[Oe,"from-font","auto",ge,Cl]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Oe,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,pe]}],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",ge,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yr,ge,pe],radial:["",ge,pe],conic:[Yr,ge,pe]},YE,IE]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],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:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ne(),"hidden","none"]}],"divide-style":[{divide:[...Ne(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...Ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Oe,ge,pe]}],"outline-w":[{outline:["",Oe,Ua,Cl]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",g,Os,Rs]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",y,Os,Rs]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Oe,Cl]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",b,Os,Rs]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Oe,ge,pe]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],"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":[Oe]}],"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":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"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":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"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":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"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":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"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":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"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":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"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":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"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":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[Oe]}],"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":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:it()}],brightness:[{brightness:[Oe,ge,pe]}],contrast:[{contrast:[Oe,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",v,Os,Rs]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Oe,ge,pe]}],"hue-rotate":[{"hue-rotate":[Oe,ge,pe]}],invert:[{invert:["",Oe,ge,pe]}],saturate:[{saturate:[Oe,ge,pe]}],sepia:[{sepia:["",Oe,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":it()}],"backdrop-brightness":[{"backdrop-brightness":[Oe,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Oe,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Oe,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Oe,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",Oe,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Oe,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Oe,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Oe,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Oe,"initial",ge,pe]}],ease:[{ease:["linear","initial",A,ge,pe]}],delay:[{delay:[Oe,ge,pe]}],animate:[{animate:["none",_,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ge,pe]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:gt()}],"rotate-x":[{"rotate-x":gt()}],"rotate-y":[{"rotate-y":gt()}],"rotate-z":[{"rotate-z":gt()}],scale:[{scale:zt()}],"scale-x":[{"scale-x":zt()}],"scale-y":[{"scale-y":zt()}],"scale-z":[{"scale-z":zt()}],"scale-3d":["scale-3d"],skew:[{skew:jt()}],"skew-x":[{"skew-x":jt()}],"skew-y":[{"skew-y":jt()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:yt()}],"translate-x":[{"translate-x":yt()}],"translate-y":[{"translate-y":yt()}],"translate-z":[{"translate-z":yt()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,pe]}],"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":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mbs":[{"scroll-mbs":Y()}],"scroll-mbe":[{"scroll-mbe":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pbs":[{"scroll-pbs":Y()}],"scroll-pbe":[{"scroll-pbe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"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",ge,pe]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Oe,Ua,Cl,jx]}],stroke:[{stroke:["none",...T()]}],"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"]}},ZE=TE(QE);function xe(...e){return ZE(zv(e))}function Dn(){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 Ox(e){return e.startsWith("chatId:")?e.slice(7):e}const KE=oE("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"}}),Ge=S.forwardRef(({className:e,variant:r,size:l,...i},o)=>x.jsx("button",{className:xe(KE({variant:r,size:l,className:e})),ref:o,...i}));Ge.displayName="Button";function vt(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 Mx(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function Qv(...e){return r=>{let l=!1;const i=e.map(o=>{const u=Mx(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():Mx(e[o],null)}}}}function on(...e){return S.useCallback(Qv(...e),e)}function JE(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 gu(e,r=[]){let l=[];function i(u,c){const f=S.createContext(c),d=l.length;l=[...l,c];const m=y=>{var A;const{scope:b,children:v,...k}=y,C=((A=b==null?void 0:b[e])==null?void 0:A[d])||f,N=S.useMemo(()=>k,Object.values(k));return x.jsx(C.Provider,{value:N,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,WE(o,...r)]}function WE(...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 Qr=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},eN=cv[" useId ".trim().toString()]||(()=>{}),tN=0;function Ya(e){const[r,l]=S.useState(eN());return Qr(()=>{l(i=>i??String(tN++))},[e]),e||(r?`radix-${r}`:"")}var nN=cv[" useInsertionEffect ".trim().toString()]||Qr;function kh({prop:e,defaultProp:r,onChange:l=()=>{},caller:i}){const[o,u,c]=rN({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=lN(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 rN({defaultProp:e,onChange:r}){const[l,i]=S.useState(e),o=S.useRef(l),u=S.useRef(r);return nN(()=>{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 lN(e){return typeof e=="function"}function Ch(e){const r=iN(e),l=S.forwardRef((i,o)=>{const{children:u,...c}=i,f=S.Children.toArray(u),d=f.find(oN);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 iN(e){const r=S.forwardRef((l,i)=>{const{children:o,...u}=l;if(S.isValidElement(o)){const c=uN(o),f=sN(u,o.props);return o.type!==S.Fragment&&(f.ref=i?Qv(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 Zv=Symbol("radix.slottable");function aN(e){const r=({children:l})=>x.jsx(x.Fragment,{children:l});return r.displayName=`${e}.Slottable`,r.__radixId=Zv,r}function oN(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Zv}function sN(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 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 cN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ot=cN.reduce((e,r)=>{const l=Ch(`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 fN(e,r){e&&vh.flushSync(()=>e.dispatchEvent(r))}function Ti(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 dN(e,r=globalThis==null?void 0:globalThis.document){const l=Ti(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 hN="DismissableLayer",Vd="dismissableLayer.update",mN="dismissableLayer.pointerDownOutside",pN="dismissableLayer.focusOutside",zx,Kv=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yu=S.forwardRef((e,r)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...d}=e,m=S.useContext(Kv),[g,y]=S.useState(null),b=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=S.useState({}),k=on(r,q=>y(q)),C=Array.from(m.layers),[N]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),A=C.indexOf(N),_=g?C.indexOf(g):-1,R=m.layersWithOutsidePointerEventsDisabled.size>0,B=_>=A,P=xN(q=>{const Y=q.target,oe=[...m.branches].some(U=>U.contains(Y));!B||oe||(o==null||o(q),c==null||c(q),q.defaultPrevented||f==null||f())},b),z=bN(q=>{const Y=q.target;[...m.branches].some(U=>U.contains(Y))||(u==null||u(q),c==null||c(q),q.defaultPrevented||f==null||f())},b);return dN(q=>{_===m.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&f&&(q.preventDefault(),f()))},b),S.useEffect(()=>{if(g)return l&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(zx=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),Dx(),()=>{l&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=zx)}},[g,b,l,m]),S.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Dx())},[g,m]),S.useEffect(()=>{const q=()=>v({});return document.addEventListener(Vd,q),()=>document.removeEventListener(Vd,q)},[]),x.jsx(Ot.div,{...d,ref:k,style:{pointerEvents:R?B?"auto":"none":void 0,...e.style},onFocusCapture:vt(e.onFocusCapture,z.onFocusCapture),onBlurCapture:vt(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:vt(e.onPointerDownCapture,P.onPointerDownCapture)})});yu.displayName=hN;var gN="DismissableLayerBranch",yN=S.forwardRef((e,r)=>{const l=S.useContext(Kv),i=S.useRef(null),o=on(r,i);return S.useEffect(()=>{const u=i.current;if(u)return l.branches.add(u),()=>{l.branches.delete(u)}},[l.branches]),x.jsx(Ot.div,{...e,ref:o})});yN.displayName=gN;function xN(e,r=globalThis==null?void 0:globalThis.document){const l=Ti(e),i=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const u=f=>{if(f.target&&!i.current){let d=function(){Jv(mN,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 bN(e,r=globalThis==null?void 0:globalThis.document){const l=Ti(e),i=S.useRef(!1);return S.useEffect(()=>{const o=u=>{u.target&&!i.current&&Jv(pN,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 Dx(){const e=new CustomEvent(Vd);document.dispatchEvent(e)}function Jv(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?fN(o,u):o.dispatchEvent(u)}var ud="focusScope.autoFocusOnMount",cd="focusScope.autoFocusOnUnmount",Lx={bubbles:!1,cancelable:!0},vN="FocusScope",Eh=S.forwardRef((e,r)=>{const{loop:l=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...c}=e,[f,d]=S.useState(null),m=Ti(o),g=Ti(u),y=S.useRef(null),b=on(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(R){if(v.paused||!f)return;const B=R.target;f.contains(B)?y.current=B:Xr(y.current,{select:!0})},N=function(R){if(v.paused||!f)return;const B=R.relatedTarget;B!==null&&(f.contains(B)||Xr(y.current,{select:!0}))},A=function(R){if(document.activeElement===document.body)for(const P of R)P.removedNodes.length>0&&Xr(f)};document.addEventListener("focusin",C),document.addEventListener("focusout",N);const _=new MutationObserver(A);return f&&_.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",N),_.disconnect()}}},[i,f,v.paused]),S.useEffect(()=>{if(f){Ux.add(v);const C=document.activeElement;if(!f.contains(C)){const A=new CustomEvent(ud,Lx);f.addEventListener(ud,m),f.dispatchEvent(A),A.defaultPrevented||(wN(NN(Wv(f)),{select:!0}),document.activeElement===C&&Xr(f))}return()=>{f.removeEventListener(ud,m),setTimeout(()=>{const A=new CustomEvent(cd,Lx);f.addEventListener(cd,g),f.dispatchEvent(A),A.defaultPrevented||Xr(C??document.body,{select:!0}),f.removeEventListener(cd,g),Ux.remove(v)},0)}}},[f,m,g,v]);const k=S.useCallback(C=>{if(!l&&!i||v.paused)return;const N=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,A=document.activeElement;if(N&&A){const _=C.currentTarget,[R,B]=SN(_);R&&B?!C.shiftKey&&A===B?(C.preventDefault(),l&&Xr(R,{select:!0})):C.shiftKey&&A===R&&(C.preventDefault(),l&&Xr(B,{select:!0})):A===_&&C.preventDefault()}},[l,i,v.paused]);return x.jsx(Ot.div,{tabIndex:-1,...c,ref:b,onKeyDown:k})});Eh.displayName=vN;function wN(e,{select:r=!1}={}){const l=document.activeElement;for(const i of e)if(Xr(i,{select:r}),document.activeElement!==l)return}function SN(e){const r=Wv(e),l=Bx(r,e),i=Bx(r.reverse(),e);return[l,i]}function Wv(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 Bx(e,r){for(const l of e)if(!kN(l,{upTo:r}))return l}function kN(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 CN(e){return e instanceof HTMLInputElement&&"select"in e}function Xr(e,{select:r=!1}={}){if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),e!==l&&CN(e)&&r&&e.select()}}var Ux=EN();function EN(){let e=[];return{add(r){const l=e[0];r!==l&&(l==null||l.pause()),e=Hx(e,r),e.unshift(r)},remove(r){var l;e=Hx(e,r),(l=e[0])==null||l.resume()}}}function Hx(e,r){const l=[...e],i=l.indexOf(r);return i!==-1&&l.splice(i,1),l}function NN(e){return e.filter(r=>r.tagName!=="A")}var AN="Portal",xu=S.forwardRef((e,r)=>{var f;const{container:l,...i}=e,[o,u]=S.useState(!1);Qr(()=>u(!0),[]);const c=l||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?aE.createPortal(x.jsx(Ot.div,{...i,ref:r}),c):null});xu.displayName=AN;function TN(e,r){return S.useReducer((l,i)=>r[l][i]??l,e)}var tl=e=>{const{present:r,children:l}=e,i=jN(r),o=typeof l=="function"?l({present:i.isPresent}):S.Children.only(l),u=on(i.ref,_N(o));return typeof l=="function"||i.isPresent?S.cloneElement(o,{ref:u}):null};tl.displayName="Presence";function jN(e){const[r,l]=S.useState(),i=S.useRef(null),o=S.useRef(e),u=S.useRef("none"),c=e?"mounted":"unmounted",[f,d]=TN(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=Ms(i.current);u.current=f==="mounted"?m:"none"},[f]),Qr(()=>{const m=i.current,g=o.current;if(g!==e){const b=u.current,v=Ms(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]),Qr(()=>{if(r){let m;const g=r.ownerDocument.defaultView??window,y=v=>{const C=Ms(i.current).includes(CSS.escape(v.animationName));if(v.target===r&&C&&(d("ANIMATION_END"),!o.current)){const N=r.style.animationFillMode;r.style.animationFillMode="forwards",m=g.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=N)})}},b=v=>{v.target===r&&(u.current=Ms(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 Ms(e){return(e==null?void 0:e.animationName)||"none"}function _N(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 fd=0;function e0(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Px()),document.body.insertAdjacentElement("beforeend",e[1]??Px()),fd++,()=>{fd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),fd--}},[])}function Px(){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 Un=function(){return Un=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},Un.apply(this,arguments)};function t0(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 RN(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 $s="right-scroll-bar-position",Xs="width-before-scroll-bar",ON="with-scroll-bars-hidden",MN="--removed-body-scroll-bar-size";function dd(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function zN(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 DN=typeof window<"u"?S.useLayoutEffect:S.useEffect,qx=new WeakMap;function LN(e,r){var l=zN(null,function(i){return e.forEach(function(o){return dd(o,i)})});return DN(function(){var i=qx.get(l);if(i){var o=new Set(i),u=new Set(e),c=l.current;o.forEach(function(f){u.has(f)||dd(f,null)}),u.forEach(function(f){o.has(f)||dd(f,c)})}qx.set(l,e)},[e]),l}function BN(e){return e}function UN(e,r){r===void 0&&(r=BN);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 HN(e){e===void 0&&(e={});var r=UN(null);return r.options=Un({async:!0,ssr:!1},e),r}var n0=function(e){var r=e.sideCar,l=t0(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,Un({},l))};n0.isSideCarExport=!0;function PN(e,r){return e.useMedium(r),n0}var r0=HN(),hd=function(){},bu=S.forwardRef(function(e,r){var l=S.useRef(null),i=S.useState({onScrollCapture:hd,onWheelCapture:hd,onTouchMoveCapture:hd}),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,N=e.allowPinchZoom,A=e.as,_=A===void 0?"div":A,R=e.gapMode,B=t0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=b,z=LN([l,r]),q=Un(Un({},B),o);return S.createElement(S.Fragment,null,g&&S.createElement(P,{sideCar:r0,removeScrollBar:m,shards:y,noRelative:v,noIsolation:k,inert:C,setCallbacks:u,allowPinchZoom:!!N,lockRef:l,gapMode:R}),c?S.cloneElement(S.Children.only(f),Un(Un({},q),{ref:z})):S.createElement(_,Un({},q,{className:d,ref:z}),f))});bu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bu.classNames={fullWidth:Xs,zeroRight:$s};var qN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=qN();return r&&e.setAttribute("nonce",r),e}function IN(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function VN(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var GN=function(){var e=0,r=null;return{add:function(l){e==0&&(r=FN())&&(IN(r,l),VN(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},YN=function(){var e=GN();return function(r,l){S.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&l])}},l0=function(){var e=YN(),r=function(l){var i=l.styles,o=l.dynamic;return e(i,o),null};return r},$N={left:0,top:0,right:0,gap:0},md=function(e){return parseInt(e||"",10)||0},XN=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[md(l),md(i),md(o)]},QN=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $N;var r=XN(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])}},ZN=l0(),Ei="data-scroll-locked",KN=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(ON,` {
62
+ overflow: hidden `).concat(i,`;
63
+ padding-right: `).concat(f,"px ").concat(i,`;
64
+ }
65
+ body[`).concat(Ei,`] {
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($s,` {
79
+ right: `).concat(f,"px ").concat(i,`;
80
+ }
81
+
82
+ .`).concat(Xs,` {
83
+ margin-right: `).concat(f,"px ").concat(i,`;
84
+ }
85
+
86
+ .`).concat($s," .").concat($s,` {
87
+ right: 0 `).concat(i,`;
88
+ }
89
+
90
+ .`).concat(Xs," .").concat(Xs,` {
91
+ margin-right: 0 `).concat(i,`;
92
+ }
93
+
94
+ body[`).concat(Ei,`] {
95
+ `).concat(MN,": ").concat(f,`px;
96
+ }
97
+ `)},Fx=function(){var e=parseInt(document.body.getAttribute(Ei)||"0",10);return isFinite(e)?e:0},JN=function(){S.useEffect(function(){return document.body.setAttribute(Ei,(Fx()+1).toString()),function(){var e=Fx()-1;e<=0?document.body.removeAttribute(Ei):document.body.setAttribute(Ei,e.toString())}},[])},WN=function(e){var r=e.noRelative,l=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;JN();var u=S.useMemo(function(){return QN(o)},[o]);return S.createElement(ZN,{styles:KN(u,!r,o,l?"":"!important")})},Gd=!1;if(typeof window<"u")try{var zs=Object.defineProperty({},"passive",{get:function(){return Gd=!0,!0}});window.addEventListener("test",zs,zs),window.removeEventListener("test",zs,zs)}catch{Gd=!1}var bi=Gd?{passive:!1}:!1,eA=function(e){return e.tagName==="TEXTAREA"},i0=function(e,r){if(!(e instanceof Element))return!1;var l=window.getComputedStyle(e);return l[r]!=="hidden"&&!(l.overflowY===l.overflowX&&!eA(e)&&l[r]==="visible")},tA=function(e){return i0(e,"overflowY")},nA=function(e){return i0(e,"overflowX")},Ix=function(e,r){var l=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=a0(e,i);if(o){var u=o0(e,i),c=u[1],f=u[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==l.body);return!1},rA=function(e){var r=e.scrollTop,l=e.scrollHeight,i=e.clientHeight;return[r,l,i]},lA=function(e){var r=e.scrollLeft,l=e.scrollWidth,i=e.clientWidth;return[r,l,i]},a0=function(e,r){return e==="v"?tA(r):nA(r)},o0=function(e,r){return e==="v"?rA(r):lA(r)},iA=function(e,r){return e==="h"&&r==="rtl"?-1:1},aA=function(e,r,l,i,o){var u=iA(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=o0(e,f),k=v[0],C=v[1],N=v[2],A=C-N-u*k;(k||A)&&a0(e,f)&&(y+=A,b+=k);var _=f.parentNode;f=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}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},Ds=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Vx=function(e){return[e.deltaX,e.deltaY]},Gx=function(e){return e&&"current"in e?e.current:e},oA=function(e,r){return e[0]===r[0]&&e[1]===r[1]},sA=function(e){return`
98
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
99
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
100
+ `)},uA=0,vi=[];function cA(e){var r=S.useRef([]),l=S.useRef([0,0]),i=S.useRef(),o=S.useState(uA++)[0],u=S.useState(l0)[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=RN([e.lockRef.current],(e.shards||[]).map(Gx),!0).filter(Boolean);return C.forEach(function(N){return N.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),C.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=S.useCallback(function(C,N){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!c.current.allowPinchZoom;var A=Ds(C),_=l.current,R="deltaX"in C?C.deltaX:_[0]-A[0],B="deltaY"in C?C.deltaY:_[1]-A[1],P,z=C.target,q=Math.abs(R)>Math.abs(B)?"h":"v";if("touches"in C&&q==="h"&&z.type==="range")return!1;var Y=window.getSelection(),oe=Y&&Y.anchorNode,U=oe?oe===z||oe.contains(z):!1;if(U)return!1;var re=Ix(q,z);if(!re)return!0;if(re?P=q:(P=q==="v"?"h":"v",re=Ix(q,z)),!re)return!1;if(!i.current&&"changedTouches"in C&&(R||B)&&(i.current=P),!P)return!0;var le=i.current||P;return aA(le,N,C,le==="h"?R:B)},[]),d=S.useCallback(function(C){var N=C;if(!(!vi.length||vi[vi.length-1]!==u)){var A="deltaY"in N?Vx(N):Ds(N),_=r.current.filter(function(P){return P.name===N.type&&(P.target===N.target||N.target===P.shadowParent)&&oA(P.delta,A)})[0];if(_&&_.should){N.cancelable&&N.preventDefault();return}if(!_){var R=(c.current.shards||[]).map(Gx).filter(Boolean).filter(function(P){return P.contains(N.target)}),B=R.length>0?f(N,R[0]):!c.current.noIsolation;B&&N.cancelable&&N.preventDefault()}}},[]),m=S.useCallback(function(C,N,A,_){var R={name:C,delta:N,target:A,should:_,shadowParent:fA(A)};r.current.push(R),setTimeout(function(){r.current=r.current.filter(function(B){return B!==R})},1)},[]),g=S.useCallback(function(C){l.current=Ds(C),i.current=void 0},[]),y=S.useCallback(function(C){m(C.type,Vx(C),C.target,f(C,e.lockRef.current))},[]),b=S.useCallback(function(C){m(C.type,Ds(C),C.target,f(C,e.lockRef.current))},[]);S.useEffect(function(){return vi.push(u),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",d,bi),document.addEventListener("touchmove",d,bi),document.addEventListener("touchstart",g,bi),function(){vi=vi.filter(function(C){return C!==u}),document.removeEventListener("wheel",d,bi),document.removeEventListener("touchmove",d,bi),document.removeEventListener("touchstart",g,bi)}},[]);var v=e.removeScrollBar,k=e.inert;return S.createElement(S.Fragment,null,k?S.createElement(u,{styles:sA(o)}):null,v?S.createElement(WN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function fA(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const dA=PN(r0,cA);var Nh=S.forwardRef(function(e,r){return S.createElement(bu,Un({},e,{ref:r,sideCar:dA}))});Nh.classNames=bu.classNames;var hA=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},wi=new WeakMap,Ls=new WeakMap,Bs={},pd=0,s0=function(e){return e&&(e.host||s0(e.parentNode))},mA=function(e,r){return r.map(function(l){if(e.contains(l))return l;var i=s0(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})},pA=function(e,r,l,i){var o=mA(r,Array.isArray(e)?e:[e]);Bs[l]||(Bs[l]=new WeakMap);var u=Bs[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=(wi.get(b)||0)+1,N=(u.get(b)||0)+1;wi.set(b,C),u.set(b,N),c.push(b),C===1&&k&&Ls.set(b,!0),N===1&&b.setAttribute(l,"true"),k||b.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",b,A)}})};return g(r),f.clear(),pd++,function(){c.forEach(function(y){var b=wi.get(y)-1,v=u.get(y)-1;wi.set(y,b),u.set(y,v),b||(Ls.has(y)||y.removeAttribute(i),Ls.delete(y)),v||y.removeAttribute(l)}),pd--,pd||(wi=new WeakMap,wi=new WeakMap,Ls=new WeakMap,Bs={})}},u0=function(e,r,l){l===void 0&&(l="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=hA(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),pA(i,o,l,"aria-hidden")):function(){return null}},vu="Dialog",[c0]=gu(vu),[gA,_n]=c0(vu),f0=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]=kh({prop:i,defaultProp:o??!1,onChange:u,caller:vu});return x.jsx(gA,{scope:r,triggerRef:f,contentRef:d,contentId:Ya(),titleId:Ya(),descriptionId:Ya(),open:m,onOpenChange:g,onOpenToggle:S.useCallback(()=>g(y=>!y),[g]),modal:c,children:l})};f0.displayName=vu;var d0="DialogTrigger",yA=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=_n(d0,l),u=on(r,o.triggerRef);return x.jsx(Ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":jh(o.open),...i,ref:u,onClick:vt(e.onClick,o.onOpenToggle)})});yA.displayName=d0;var Ah="DialogPortal",[xA,h0]=c0(Ah,{forceMount:void 0}),m0=e=>{const{__scopeDialog:r,forceMount:l,children:i,container:o}=e,u=_n(Ah,r);return x.jsx(xA,{scope:r,forceMount:l,children:S.Children.map(i,c=>x.jsx(tl,{present:l||u.open,children:x.jsx(xu,{asChild:!0,container:o,children:c})}))})};m0.displayName=Ah;var Ws="DialogOverlay",p0=S.forwardRef((e,r)=>{const l=h0(Ws,e.__scopeDialog),{forceMount:i=l.forceMount,...o}=e,u=_n(Ws,e.__scopeDialog);return u.modal?x.jsx(tl,{present:i||u.open,children:x.jsx(vA,{...o,ref:r})}):null});p0.displayName=Ws;var bA=Ch("DialogOverlay.RemoveScroll"),vA=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=_n(Ws,l);return x.jsx(Nh,{as:bA,allowPinchZoom:!0,shards:[o.contentRef],children:x.jsx(Ot.div,{"data-state":jh(o.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),Tl="DialogContent",g0=S.forwardRef((e,r)=>{const l=h0(Tl,e.__scopeDialog),{forceMount:i=l.forceMount,...o}=e,u=_n(Tl,e.__scopeDialog);return x.jsx(tl,{present:i||u.open,children:u.modal?x.jsx(wA,{...o,ref:r}):x.jsx(SA,{...o,ref:r})})});g0.displayName=Tl;var wA=S.forwardRef((e,r)=>{const l=_n(Tl,e.__scopeDialog),i=S.useRef(null),o=on(r,l.contentRef,i);return S.useEffect(()=>{const u=i.current;if(u)return u0(u)},[]),x.jsx(y0,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,u=>{var c;u.preventDefault(),(c=l.triggerRef.current)==null||c.focus()}),onPointerDownOutside:vt(e.onPointerDownOutside,u=>{const c=u.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&u.preventDefault()}),onFocusOutside:vt(e.onFocusOutside,u=>u.preventDefault())})}),SA=S.forwardRef((e,r)=>{const l=_n(Tl,e.__scopeDialog),i=S.useRef(!1),o=S.useRef(!1);return x.jsx(y0,{...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()}})}),y0=S.forwardRef((e,r)=>{const{__scopeDialog:l,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:u,...c}=e,f=_n(Tl,l),d=S.useRef(null),m=on(r,d);return e0(),x.jsxs(x.Fragment,{children:[x.jsx(Eh,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:u,children:x.jsx(yu,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":jh(f.open),...c,ref:m,onDismiss:()=>f.onOpenChange(!1)})}),x.jsxs(x.Fragment,{children:[x.jsx(kA,{titleId:f.titleId}),x.jsx(EA,{contentRef:d,descriptionId:f.descriptionId})]})]})}),Th="DialogTitle",x0=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=_n(Th,l);return x.jsx(Ot.h2,{id:o.titleId,...i,ref:r})});x0.displayName=Th;var b0="DialogDescription",v0=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=_n(b0,l);return x.jsx(Ot.p,{id:o.descriptionId,...i,ref:r})});v0.displayName=b0;var w0="DialogClose",S0=S.forwardRef((e,r)=>{const{__scopeDialog:l,...i}=e,o=_n(w0,l);return x.jsx(Ot.button,{type:"button",...i,ref:r,onClick:vt(e.onClick,()=>o.onOpenChange(!1))})});S0.displayName=w0;function jh(e){return e?"open":"closed"}var k0="DialogTitleWarning",[m6,C0]=JE(k0,{contentName:Tl,titleName:Th,docsSlug:"dialog"}),kA=({titleId:e})=>{const r=C0(k0),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},CA="DialogDescriptionWarning",EA=({contentRef:e,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${C0(CA).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},NA=f0,AA=m0,E0=p0,N0=g0,TA=x0,jA=v0,_A=S0;/**
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 RA=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),OA=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,i)=>i?i.toUpperCase():l.toLowerCase()),Yx=e=>{const r=OA(e);return r.charAt(0).toUpperCase()+r.slice(1)},A0=(...e)=>e.filter((r,l,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===l).join(" ").trim(),MA=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 zA={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 DA=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,...zA,width:r,height:r,stroke:e,strokeWidth:i?Number(l)*24/Number(r):l,className:A0("lucide",o),...!u&&!MA(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 Ce=(e,r)=>{const l=S.forwardRef(({className:i,...o},u)=>S.createElement(DA,{ref:u,iconNode:r,className:A0(`lucide-${RA(Yx(e))}`,`lucide-${e}`,i),...o}));return l.displayName=Yx(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 LA=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],BA=Ce("arrow-down-to-line",LA);/**
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 UA=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],HA=Ce("arrow-down",UA);/**
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 PA=[["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=Ce("arrow-left-right",PA);/**
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 FA=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],IA=Ce("arrow-up",FA);/**
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 VA=[["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"}]],GA=Ce("asterisk",VA);/**
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 YA=[["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"}]],$A=Ce("chart-column",YA);/**
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 XA=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],QA=Ce("check-check",XA);/**
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 ZA=[["path",{d:"M20 4L9 15",key:"1qkx8z"}],["path",{d:"M21 19L3 19",key:"100sma"}],["path",{d:"M9 15L4 10",key:"9zxff7"}]],KA=Ce("check-line",ZA);/**
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 JA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],jl=Ce("check",JA);/**
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 WA=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],eT=Ce("chevron-down",WA);/**
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 tT=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],nT=Ce("chevron-left",tT);/**
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 rT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Zr=Ce("chevron-right",rT);/**
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 lT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]],iT=Ce("circle-slash",lT);/**
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 aT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],oT=Ce("circle",aT);/**
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 sT=[["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"}]],$x=Ce("code-xml",sT);/**
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 uT=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],cT=Ce("code",uT);/**
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 fT=[["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"}]],wu=Ce("copy",fT);/**
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 dT=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],hT=Ce("corner-down-left",dT);/**
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 mT=[["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"}]],pT=Ce("database",mT);/**
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 gT=[["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"}]],yT=Ce("ellipsis",gT);/**
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 xT=[["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"}]],bT=Ce("file-pen",xT);/**
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 vT=[["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"}]],wT=Ce("file-plus-corner",vT);/**
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 ST=[["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"}]],kT=Ce("file",ST);/**
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 CT=[["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"}]],$a=Ce("flower",CT);/**
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 ET=[["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"}]],T0=Ce("folder-open",ET);/**
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 NT=[["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"}]],j0=Ce("folder",NT);/**
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 AT=[["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"}]],TT=Ce("list-checks",AT);/**
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 jT=[["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"}]],eu=Ce("list-todo",jT);/**
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 _T=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ml=Ce("loader-circle",_T);/**
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 RT=[["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"}]],Xx=Ce("lock-open",RT);/**
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 OT=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],MT=Ce("lock",OT);/**
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 zT=[["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"}]],Qx=Ce("map",zT);/**
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 DT=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],_0=Ce("menu",DT);/**
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 LT=[["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"}]],R0=Ce("message-circle-question-mark",LT);/**
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 BT=[["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"}]],O0=Ce("minimize",BT);/**
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 UT=[["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"}]],Su=Ce("monitor",UT);/**
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 HT=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Yd=Ce("panel-left",HT);/**
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 PT=[["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"}]],M0=Ce("pencil",PT);/**
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 qT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],z0=Ce("plus",qT);/**
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 FT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],gd=Ce("search",FT);/**
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 IT=[["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"}]],VT=Ce("send",IT);/**
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 GT=[["path",{d:"M22 2 2 22",key:"y4kqgn"}]],YT=Ce("slash",GT);/**
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 $T=[["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"}]],XT=Ce("sparkles",$T);/**
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 QT=[["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"}]],_h=Ce("square-pen",QT);/**
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 ZT=[["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"}]],KT=Ce("square-x",ZT);/**
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 JT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Rh=Ce("terminal",JT);/**
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 WT=[["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"}]],ej=Ce("toy-brick",WT);/**
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 tj=[["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"}]],nj=Ce("trash-2",tj);/**
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 rj=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Oh=Ce("user-round",rj);/**
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 lj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ao=Ce("x",lj),D0=NA,ij=AA,L0=S.forwardRef(({className:e,...r},l)=>x.jsx(E0,{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}));L0.displayName=E0.displayName;const aj={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg"},Mh=S.forwardRef(({className:e,children:r,size:l="md",...i},o)=>x.jsxs(ij,{children:[x.jsx(L0,{}),x.jsxs(N0,{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",aj[l],e),...i,children:[r,x.jsxs(_A,{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(ao,{className:"h-4 w-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Mh.displayName=N0.displayName;function B0({className:e,...r}){return x.jsx(TA,{className:xe("text-lg font-medium leading-none tracking-tight",e),...r})}function oj({className:e,...r}){return x.jsx(jA,{className:xe("text-sm text-muted-foreground",e),...r})}function U0({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 H0({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 P0=S.createContext(null);function sj({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(P0.Provider,{value:m,children:[e,x.jsx(D0,{open:r!==null,onOpenChange:g=>{g||!r||(r.kind==="confirm"?r.resolve(!1):r.resolve(null),c())},children:x.jsx(Mh,{size:"sm",children:r?x.jsxs(x.Fragment,{children:[x.jsxs(U0,{className:"space-y-4",children:[x.jsx(B0,{children:r.options.title}),r.options.description?x.jsx(oj,{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(H0,{children:[x.jsx(Ge,{variant:"ghost",size:"sm",onClick:()=>{r.kind==="confirm"?r.resolve(!1):r.resolve(null),c()},children:r.options.cancelLabel??"Cancel"}),x.jsx(Ge,{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 uj(){const e=S.useContext(P0);if(!e)throw new Error("useAppDialog must be used within AppDialogProvider");return e}const cj=["top","right","bottom","left"],Kr=Math.min,rn=Math.max,tu=Math.round,Us=Math.floor,qn=e=>({x:e,y:e}),fj={left:"right",right:"left",bottom:"top",top:"bottom"};function $d(e,r,l){return rn(e,Kr(r,l))}function hr(e,r){return typeof e=="function"?e(r):e}function mr(e){return e.split("-")[0]}function Bi(e){return e.split("-")[1]}function zh(e){return e==="x"?"y":"x"}function Dh(e){return e==="y"?"height":"width"}function Hn(e){const r=e[0];return r==="t"||r==="b"?"y":"x"}function Lh(e){return zh(Hn(e))}function dj(e,r,l){l===void 0&&(l=!1);const i=Bi(e),o=Lh(e),u=Dh(o);let c=o==="x"?i===(l?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[u]>r.floating[u]&&(c=nu(c)),[c,nu(c)]}function hj(e){const r=nu(e);return[Xd(e),r,Xd(r)]}function Xd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Zx=["left","right"],Kx=["right","left"],mj=["top","bottom"],pj=["bottom","top"];function gj(e,r,l){switch(e){case"top":case"bottom":return l?r?Kx:Zx:r?Zx:Kx;case"left":case"right":return r?mj:pj;default:return[]}}function yj(e,r,l,i){const o=Bi(e);let u=gj(mr(e),l==="start",i);return o&&(u=u.map(c=>c+"-"+o),r&&(u=u.concat(u.map(Xd)))),u}function nu(e){const r=mr(e);return fj[r]+e.slice(r.length)}function xj(e){return{top:0,right:0,bottom:0,left:0,...e}}function q0(e){return typeof e!="number"?xj(e):{top:e,right:e,bottom:e,left:e}}function ru(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 Jx(e,r,l){let{reference:i,floating:o}=e;const u=Hn(r),c=Lh(r),f=Dh(c),d=mr(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(Bi(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 bj(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}=hr(r,e),k=q0(v),N=f[b?y==="floating"?"reference":"floating":y],A=ru(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(N)))==null||l?N:N.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:m,rootBoundary:g,strategy:d})),_=y==="floating"?{x:i,y:o,width:c.floating.width,height:c.floating.height}:c.reference,R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),B=await(u.isElement==null?void 0:u.isElement(R))?await(u.getScale==null?void 0:u.getScale(R))||{x:1,y:1}:{x:1,y:1},P=ru(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:_,offsetParent:R,strategy:d}):_);return{top:(A.top-P.top+k.top)/B.y,bottom:(P.bottom-A.bottom+k.bottom)/B.y,left:(A.left-P.left+k.left)/B.x,right:(P.right-A.right+k.right)/B.x}}const vj=50,wj=async(e,r,l)=>{const{placement:i="bottom",strategy:o="absolute",middleware:u=[],platform:c}=l,f=c.detectOverflow?c:{...c,detectOverflow:bj},d=await(c.isRTL==null?void 0:c.isRTL(r));let m=await c.getElementRects({reference:e,floating:r,strategy:o}),{x:g,y}=Jx(m,i,d),b=i,v=0;const k={};for(let C=0;C<u.length;C++){const N=u[C];if(!N)continue;const{name:A,fn:_}=N,{x:R,y:B,data:P,reset:z}=await _({x:g,y,initialPlacement:i,placement:b,strategy:o,middlewareData:k,rects:m,platform:f,elements:{reference:e,floating:r}});g=R??g,y=B??y,k[A]={...k[A],...P},z&&v<vj&&(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}=Jx(m,b,d)),C=-1)}return{x:g,y,placement:b,strategy:o,middlewareData:k}},Sj=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}=hr(e,r)||{};if(m==null)return{};const y=q0(g),b={x:l,y:i},v=Lh(o),k=Dh(v),C=await c.getDimensions(m),N=v==="y",A=N?"top":"left",_=N?"bottom":"right",R=N?"clientHeight":"clientWidth",B=u.reference[k]+u.reference[v]-b[v]-u.floating[k],P=b[v]-u.reference[v],z=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let q=z?z[R]:0;(!q||!await(c.isElement==null?void 0:c.isElement(z)))&&(q=f.floating[R]||u.floating[k]);const Y=B/2-P/2,oe=q/2-C[k]/2-1,U=Kr(y[A],oe),re=Kr(y[_],oe),le=U,ue=q-C[k]-re,Z=q/2-C[k]/2+Y,$=$d(le,Z,ue),D=!d.arrow&&Bi(o)!=null&&Z!==$&&u.reference[k]/2-(Z<le?U:re)-C[k]/2<0,X=D?Z<le?Z-le:Z-ue:0;return{[v]:b[v]+X,data:{[v]:$,centerOffset:Z-$-X,...D&&{alignmentOffset:X}},reset:D}}}),kj=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,...N}=hr(e,r);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const A=mr(o),_=Hn(f),R=mr(f)===f,B=await(d.isRTL==null?void 0:d.isRTL(m.floating)),P=b||(R||!C?[nu(f)]:hj(f)),z=k!=="none";!b&&z&&P.push(...yj(f,C,k,B));const q=[f,...P],Y=await d.detectOverflow(r,N),oe=[];let U=((i=u.flip)==null?void 0:i.overflows)||[];if(g&&oe.push(Y[A]),y){const Z=dj(o,c,B);oe.push(Y[Z[0]],Y[Z[1]])}if(U=[...U,{placement:o,overflows:oe}],!oe.every(Z=>Z<=0)){var re,le;const Z=(((re=u.flip)==null?void 0:re.index)||0)+1,$=q[Z];if($&&(!(y==="alignment"?_!==Hn($):!1)||U.every(ee=>Hn(ee.placement)===_?ee.overflows[0]>0:!0)))return{data:{index:Z,overflows:U},reset:{placement:$}};let D=(le=U.filter(X=>X.overflows[0]<=0).sort((X,ee)=>X.overflows[1]-ee.overflows[1])[0])==null?void 0:le.placement;if(!D)switch(v){case"bestFit":{var ue;const X=(ue=U.filter(ee=>{if(z){const ie=Hn(ee.placement);return ie===_||ie==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(ie=>ie>0).reduce((ie,T)=>ie+T,0)]).sort((ee,ie)=>ee[1]-ie[1])[0])==null?void 0:ue[0];X&&(D=X);break}case"initialPlacement":D=f;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Wx(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function eb(e){return cj.some(r=>e[r]>=0)}const Cj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:l,platform:i}=r,{strategy:o="referenceHidden",...u}=hr(e,r);switch(o){case"referenceHidden":{const c=await i.detectOverflow(r,{...u,elementContext:"reference"}),f=Wx(c,l.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:eb(f)}}}case"escaped":{const c=await i.detectOverflow(r,{...u,altBoundary:!0}),f=Wx(c,l.floating);return{data:{escapedOffsets:f,escaped:eb(f)}}}default:return{}}}}},F0=new Set(["left","top"]);async function Ej(e,r){const{placement:l,platform:i,elements:o}=e,u=await(i.isRTL==null?void 0:i.isRTL(o.floating)),c=mr(l),f=Bi(l),d=Hn(l)==="y",m=F0.has(c)?-1:1,g=u&&d?-1:1,y=hr(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 Nj=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 Ej(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}}}}},Aj=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:A=>{let{x:_,y:R}=A;return{x:_,y:R}}},...m}=hr(e,r),g={x:l,y:i},y=await u.detectOverflow(r,m),b=Hn(mr(o)),v=zh(b);let k=g[v],C=g[b];if(c){const A=v==="y"?"top":"left",_=v==="y"?"bottom":"right",R=k+y[A],B=k-y[_];k=$d(R,k,B)}if(f){const A=b==="y"?"top":"left",_=b==="y"?"bottom":"right",R=C+y[A],B=C-y[_];C=$d(R,C,B)}const N=d.fn({...r,[v]:k,[b]:C});return{...N,data:{x:N.x-l,y:N.y-i,enabled:{[v]:c,[b]:f}}}}}},Tj=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}=hr(e,r),g={x:l,y:i},y=Hn(o),b=zh(y);let v=g[b],k=g[y];const C=hr(f,r),N=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(d){const R=b==="y"?"height":"width",B=u.reference[b]-u.floating[R]+N.mainAxis,P=u.reference[b]+u.reference[R]-N.mainAxis;v<B?v=B:v>P&&(v=P)}if(m){var A,_;const R=b==="y"?"width":"height",B=F0.has(mr(o)),P=u.reference[y]-u.floating[R]+(B&&((A=c.offset)==null?void 0:A[y])||0)+(B?0:N.crossAxis),z=u.reference[y]+u.reference[R]+(B?0:((_=c.offset)==null?void 0:_[y])||0)-(B?N.crossAxis:0);k<P?k=P:k>z&&(k=z)}return{[b]:v,[y]:k}}}},jj=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}=hr(e,r),g=await c.detectOverflow(r,m),y=mr(o),b=Bi(o),v=Hn(o)==="y",{width:k,height:C}=u.floating;let N,A;y==="top"||y==="bottom"?(N=y,A=b===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(A=y,N=b==="end"?"top":"bottom");const _=C-g.top-g.bottom,R=k-g.left-g.right,B=Kr(C-g[N],_),P=Kr(k-g[A],R),z=!r.middlewareData.shift;let q=B,Y=P;if((l=r.middlewareData.shift)!=null&&l.enabled.x&&(Y=R),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(q=_),z&&!b){const U=rn(g.left,0),re=rn(g.right,0),le=rn(g.top,0),ue=rn(g.bottom,0);v?Y=k-2*(U!==0||re!==0?U+re:rn(g.left,g.right)):q=C-2*(le!==0||ue!==0?le+ue:rn(g.top,g.bottom))}await d({...r,availableWidth:Y,availableHeight:q});const oe=await c.getDimensions(f.floating);return k!==oe.width||C!==oe.height?{reset:{rects:!0}}:{}}}};function ku(){return typeof window<"u"}function Ui(e){return I0(e)?(e.nodeName||"").toLowerCase():"#document"}function ln(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Vn(e){var r;return(r=(I0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function I0(e){return ku()?e instanceof Node||e instanceof ln(e).Node:!1}function An(e){return ku()?e instanceof Element||e instanceof ln(e).Element:!1}function pr(e){return ku()?e instanceof HTMLElement||e instanceof ln(e).HTMLElement:!1}function tb(e){return!ku()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ln(e).ShadowRoot}function oo(e){const{overflow:r,overflowX:l,overflowY:i,display:o}=Tn(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+l)&&o!=="inline"&&o!=="contents"}function _j(e){return/^(table|td|th)$/.test(Ui(e))}function Cu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Rj=/transform|translate|scale|rotate|perspective|filter/,Oj=/paint|layout|strict|content/,El=e=>!!e&&e!=="none";let yd;function Bh(e){const r=An(e)?Tn(e):e;return El(r.transform)||El(r.translate)||El(r.scale)||El(r.rotate)||El(r.perspective)||!Uh()&&(El(r.backdropFilter)||El(r.filter))||Rj.test(r.willChange||"")||Oj.test(r.contain||"")}function Mj(e){let r=Jr(e);for(;pr(r)&&!ji(r);){if(Bh(r))return r;if(Cu(r))return null;r=Jr(r)}return null}function Uh(){return yd==null&&(yd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yd}function ji(e){return/^(html|body|#document)$/.test(Ui(e))}function Tn(e){return ln(e).getComputedStyle(e)}function Eu(e){return An(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jr(e){if(Ui(e)==="html")return e;const r=e.assignedSlot||e.parentNode||tb(e)&&e.host||Vn(e);return tb(r)?r.host:r}function V0(e){const r=Jr(e);return ji(r)?e.ownerDocument?e.ownerDocument.body:e.body:pr(r)&&oo(r)?r:V0(r)}function Ja(e,r,l){var i;r===void 0&&(r=[]),l===void 0&&(l=!0);const o=V0(e),u=o===((i=e.ownerDocument)==null?void 0:i.body),c=ln(o);if(u){const f=Qd(c);return r.concat(c,c.visualViewport||[],oo(o)?o:[],f&&l?Ja(f):[])}else return r.concat(o,Ja(o,[],l))}function Qd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function G0(e){const r=Tn(e);let l=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const o=pr(e),u=o?e.offsetWidth:l,c=o?e.offsetHeight:i,f=tu(l)!==u||tu(i)!==c;return f&&(l=u,i=c),{width:l,height:i,$:f}}function Hh(e){return An(e)?e:e.contextElement}function Ni(e){const r=Hh(e);if(!pr(r))return qn(1);const l=r.getBoundingClientRect(),{width:i,height:o,$:u}=G0(r);let c=(u?tu(l.width):l.width)/i,f=(u?tu(l.height):l.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const zj=qn(0);function Y0(e){const r=ln(e);return!Uh()||!r.visualViewport?zj:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Dj(e,r,l){return r===void 0&&(r=!1),!l||r&&l!==ln(e)?!1:r}function _l(e,r,l,i){r===void 0&&(r=!1),l===void 0&&(l=!1);const o=e.getBoundingClientRect(),u=Hh(e);let c=qn(1);r&&(i?An(i)&&(c=Ni(i)):c=Ni(e));const f=Dj(u,l,i)?Y0(u):qn(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=ln(u),v=i&&An(i)?ln(i):i;let k=b,C=Qd(k);for(;C&&i&&v!==k;){const N=Ni(C),A=C.getBoundingClientRect(),_=Tn(C),R=A.left+(C.clientLeft+parseFloat(_.paddingLeft))*N.x,B=A.top+(C.clientTop+parseFloat(_.paddingTop))*N.y;d*=N.x,m*=N.y,g*=N.x,y*=N.y,d+=R,m+=B,k=ln(C),C=Qd(k)}}return ru({width:g,height:y,x:d,y:m})}function Nu(e,r){const l=Eu(e).scrollLeft;return r?r.left+l:_l(Vn(e)).left+l}function $0(e,r){const l=e.getBoundingClientRect(),i=l.left+r.scrollLeft-Nu(e,l),o=l.top+r.scrollTop;return{x:i,y:o}}function Lj(e){let{elements:r,rect:l,offsetParent:i,strategy:o}=e;const u=o==="fixed",c=Vn(i),f=r?Cu(r.floating):!1;if(i===c||f&&u)return l;let d={scrollLeft:0,scrollTop:0},m=qn(1);const g=qn(0),y=pr(i);if((y||!y&&!u)&&((Ui(i)!=="body"||oo(c))&&(d=Eu(i)),y)){const v=_l(i);m=Ni(i),g.x=v.x+i.clientLeft,g.y=v.y+i.clientTop}const b=c&&!y&&!u?$0(c,d):qn(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 Bj(e){return Array.from(e.getClientRects())}function Uj(e){const r=Vn(e),l=Eu(e),i=e.ownerDocument.body,o=rn(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),u=rn(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let c=-l.scrollLeft+Nu(e);const f=-l.scrollTop;return Tn(i).direction==="rtl"&&(c+=rn(r.clientWidth,i.clientWidth)-o),{width:o,height:u,x:c,y:f}}const nb=25;function Hj(e,r){const l=ln(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=Uh();(!g||g&&r==="fixed")&&(f=o.offsetLeft,d=o.offsetTop)}const m=Nu(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<=nb&&(u-=k)}else m<=nb&&(u+=m);return{width:u,height:c,x:f,y:d}}function Pj(e,r){const l=_l(e,!0,r==="fixed"),i=l.top+e.clientTop,o=l.left+e.clientLeft,u=pr(e)?Ni(e):qn(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 rb(e,r,l){let i;if(r==="viewport")i=Hj(e,l);else if(r==="document")i=Uj(Vn(e));else if(An(r))i=Pj(r,l);else{const o=Y0(e);i={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return ru(i)}function X0(e,r){const l=Jr(e);return l===r||!An(l)||ji(l)?!1:Tn(l).position==="fixed"||X0(l,r)}function qj(e,r){const l=r.get(e);if(l)return l;let i=Ja(e,[],!1).filter(f=>An(f)&&Ui(f)!=="body"),o=null;const u=Tn(e).position==="fixed";let c=u?Jr(e):e;for(;An(c)&&!ji(c);){const f=Tn(c),d=Bh(c);!d&&f.position==="fixed"&&(o=null),(u?!d&&!o:!d&&f.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||oo(c)&&!d&&X0(e,c))?i=i.filter(g=>g!==c):o=f,c=Jr(c)}return r.set(e,i),i}function Fj(e){let{element:r,boundary:l,rootBoundary:i,strategy:o}=e;const c=[...l==="clippingAncestors"?Cu(r)?[]:qj(r,this._c):[].concat(l),i],f=rb(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=rb(r,c[b],o);d=rn(v.top,d),m=Kr(v.right,m),g=Kr(v.bottom,g),y=rn(v.left,y)}return{width:m-y,height:g-d,x:y,y:d}}function Ij(e){const{width:r,height:l}=G0(e);return{width:r,height:l}}function Vj(e,r,l){const i=pr(r),o=Vn(r),u=l==="fixed",c=_l(e,!0,u,r);let f={scrollLeft:0,scrollTop:0};const d=qn(0);function m(){d.x=Nu(o)}if(i||!i&&!u)if((Ui(r)!=="body"||oo(o))&&(f=Eu(r)),i){const v=_l(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?$0(o,f):qn(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 xd(e){return Tn(e).position==="static"}function lb(e,r){if(!pr(e)||Tn(e).position==="fixed")return null;if(r)return r(e);let l=e.offsetParent;return Vn(e)===l&&(l=l.ownerDocument.body),l}function Q0(e,r){const l=ln(e);if(Cu(e))return l;if(!pr(e)){let o=Jr(e);for(;o&&!ji(o);){if(An(o)&&!xd(o))return o;o=Jr(o)}return l}let i=lb(e,r);for(;i&&_j(i)&&xd(i);)i=lb(i,r);return i&&ji(i)&&xd(i)&&!Bh(i)?l:i||Mj(e)||l}const Gj=async function(e){const r=this.getOffsetParent||Q0,l=this.getDimensions,i=await l(e.floating);return{reference:Vj(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Yj(e){return Tn(e).direction==="rtl"}const $j={convertOffsetParentRelativeRectToViewportRelativeRect:Lj,getDocumentElement:Vn,getClippingRect:Fj,getOffsetParent:Q0,getElementRects:Gj,getClientRects:Bj,getDimensions:Ij,getScale:Ni,isElement:An,isRTL:Yj};function Z0(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Xj(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=Us(y),C=Us(o.clientWidth-(g+b)),N=Us(o.clientHeight-(y+v)),A=Us(g),R={rootMargin:-k+"px "+-C+"px "+-N+"px "+-A+"px",threshold:rn(0,Kr(1,d))||1};let B=!0;function P(z){const q=z[0].intersectionRatio;if(q!==d){if(!B)return c();q?c(!1,q):i=setTimeout(()=>{c(!1,1e-7)},1e3)}q===1&&!Z0(m,e.getBoundingClientRect())&&c(),B=!1}try{l=new IntersectionObserver(P,{...R,root:o.ownerDocument})}catch{l=new IntersectionObserver(P,R)}l.observe(e)}return c(!0),u}function Qj(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=Hh(e),g=o||u?[...m?Ja(m):[],...r?Ja(r):[]]:[];g.forEach(A=>{o&&A.addEventListener("scroll",l,{passive:!0}),u&&A.addEventListener("resize",l)});const y=m&&f?Xj(m,l):null;let b=-1,v=null;c&&(v=new ResizeObserver(A=>{let[_]=A;_&&_.target===m&&v&&r&&(v.unobserve(r),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=v)==null||R.observe(r)})),l()}),m&&!d&&v.observe(m),r&&v.observe(r));let k,C=d?_l(e):null;d&&N();function N(){const A=_l(e);C&&!Z0(C,A)&&l(),C=A,k=requestAnimationFrame(N)}return l(),()=>{var A;g.forEach(_=>{o&&_.removeEventListener("scroll",l),u&&_.removeEventListener("resize",l)}),y==null||y(),(A=v)==null||A.disconnect(),v=null,d&&cancelAnimationFrame(k)}}const Zj=Nj,Kj=Aj,Jj=kj,Wj=jj,e_=Cj,ib=Sj,t_=Tj,n_=(e,r,l)=>{const i=new Map,o={platform:$j,...l},u={...o.platform,_c:i};return wj(e,r,{...o,platform:u})};var r_=typeof document<"u",l_=function(){},Qs=r_?S.useLayoutEffect:l_;function lu(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(!lu(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)&&!lu(e[u],r[u]))return!1}return!0}return e!==e&&r!==r}function K0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ab(e,r){const l=K0(e);return Math.round(r*l)/l}function bd(e){const r=S.useRef(e);return Qs(()=>{r.current=e}),r}function i_(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);lu(b,i)||v(i);const[k,C]=S.useState(null),[N,A]=S.useState(null),_=S.useCallback(ee=>{ee!==z.current&&(z.current=ee,C(ee))},[]),R=S.useCallback(ee=>{ee!==q.current&&(q.current=ee,A(ee))},[]),B=u||k,P=c||N,z=S.useRef(null),q=S.useRef(null),Y=S.useRef(g),oe=d!=null,U=bd(d),re=bd(o),le=bd(m),ue=S.useCallback(()=>{if(!z.current||!q.current)return;const ee={placement:r,strategy:l,middleware:b};re.current&&(ee.platform=re.current),n_(z.current,q.current,ee).then(ie=>{const T={...ie,isPositioned:le.current!==!1};Z.current&&!lu(Y.current,T)&&(Y.current=T,vh.flushSync(()=>{y(T)}))})},[b,r,l,re,le]);Qs(()=>{m===!1&&Y.current.isPositioned&&(Y.current.isPositioned=!1,y(ee=>({...ee,isPositioned:!1})))},[m]);const Z=S.useRef(!1);Qs(()=>(Z.current=!0,()=>{Z.current=!1}),[]),Qs(()=>{if(B&&(z.current=B),P&&(q.current=P),B&&P){if(U.current)return U.current(B,P,ue);ue()}},[B,P,ue,U,oe]);const $=S.useMemo(()=>({reference:z,floating:q,setReference:_,setFloating:R}),[_,R]),D=S.useMemo(()=>({reference:B,floating:P}),[B,P]),X=S.useMemo(()=>{const ee={position:l,left:0,top:0};if(!D.floating)return ee;const ie=ab(D.floating,g.x),T=ab(D.floating,g.y);return f?{...ee,transform:"translate("+ie+"px, "+T+"px)",...K0(D.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ie,top:T}},[l,f,D.floating,g.x,g.y]);return S.useMemo(()=>({...g,update:ue,refs:$,elements:D,floatingStyles:X}),[g,ue,$,D,X])}const a_=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?ib({element:i.current,padding:o}).fn(l):{}:i?ib({element:i,padding:o}).fn(l):{}}}},o_=(e,r)=>{const l=Zj(e);return{name:l.name,fn:l.fn,options:[e,r]}},s_=(e,r)=>{const l=Kj(e);return{name:l.name,fn:l.fn,options:[e,r]}},u_=(e,r)=>({fn:t_(e).fn,options:[e,r]}),c_=(e,r)=>{const l=Jj(e);return{name:l.name,fn:l.fn,options:[e,r]}},f_=(e,r)=>{const l=Wj(e);return{name:l.name,fn:l.fn,options:[e,r]}},d_=(e,r)=>{const l=e_(e);return{name:l.name,fn:l.fn,options:[e,r]}},h_=(e,r)=>{const l=a_(e);return{name:l.name,fn:l.fn,options:[e,r]}};var m_="Arrow",J0=S.forwardRef((e,r)=>{const{children:l,width:i=10,height:o=5,...u}=e;return x.jsx(Ot.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"})})});J0.displayName=m_;var p_=J0;function g_(e){const[r,l]=S.useState(void 0);return Qr(()=>{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 Ph="Popper",[W0,Au]=gu(Ph),[y_,e1]=W0(Ph),t1=e=>{const{__scopePopper:r,children:l}=e,[i,o]=S.useState(null);return x.jsx(y_,{scope:r,anchor:i,onAnchorChange:o,children:l})};t1.displayName=Ph;var n1="PopperAnchor",r1=S.forwardRef((e,r)=>{const{__scopePopper:l,virtualRef:i,...o}=e,u=e1(n1,l),c=S.useRef(null),f=on(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(Ot.div,{...o,ref:f})});r1.displayName=n1;var qh="PopperContent",[x_,b_]=W0(qh),l1=S.forwardRef((e,r)=>{var Ne,Fe,ve,it,gt,zt;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,N=e1(qh,l),[A,_]=S.useState(null),R=on(r,jt=>_(jt)),[B,P]=S.useState(null),z=g_(B),q=(z==null?void 0:z.width)??0,Y=(z==null?void 0:z.height)??0,oe=i+(u!=="center"?"-"+u:""),U=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},re=Array.isArray(m)?m:[m],le=re.length>0,ue={padding:U,boundary:re.filter(w_),altBoundary:le},{refs:Z,floatingStyles:$,placement:D,isPositioned:X,middlewareData:ee}=i_({strategy:"fixed",placement:oe,whileElementsMounted:(...jt)=>Qj(...jt,{animationFrame:v==="always"}),elements:{reference:N.anchor},middleware:[o_({mainAxis:o+Y,alignmentAxis:c}),d&&s_({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?u_():void 0,...ue}),d&&c_({...ue}),f_({...ue,apply:({elements:jt,rects:yt,availableWidth:vn,availableHeight:wn})=>{const{width:yr,height:xr}=yt.reference,Xt=jt.floating.style;Xt.setProperty("--radix-popper-available-width",`${vn}px`),Xt.setProperty("--radix-popper-available-height",`${wn}px`),Xt.setProperty("--radix-popper-anchor-width",`${yr}px`),Xt.setProperty("--radix-popper-anchor-height",`${xr}px`)}}),B&&h_({element:B,padding:f}),S_({arrowWidth:q,arrowHeight:Y}),b&&d_({strategy:"referenceHidden",...ue})]}),[ie,T]=o1(D),O=Ti(k);Qr(()=>{X&&(O==null||O())},[X,O]);const Q=(Ne=ee.arrow)==null?void 0:Ne.x,j=(Fe=ee.arrow)==null?void 0:Fe.y,ne=((ve=ee.arrow)==null?void 0:ve.centerOffset)!==0,[de,fe]=S.useState();return Qr(()=>{A&&fe(window.getComputedStyle(A).zIndex)},[A]),x.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:X?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(it=ee.transformOrigin)==null?void 0:it.x,(gt=ee.transformOrigin)==null?void 0:gt.y].join(" "),...((zt=ee.hide)==null?void 0:zt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(x_,{scope:l,placedSide:ie,onArrowChange:P,arrowX:Q,arrowY:j,shouldHideArrow:ne,children:x.jsx(Ot.div,{"data-side":ie,"data-align":T,...C,ref:R,style:{...C.style,animation:X?void 0:"none"}})})})});l1.displayName=qh;var i1="PopperArrow",v_={top:"bottom",right:"left",bottom:"top",left:"right"},a1=S.forwardRef(function(r,l){const{__scopePopper:i,...o}=r,u=b_(i1,i),c=v_[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(p_,{...o,ref:l,style:{...o.style,display:"block"}})})});a1.displayName=i1;function w_(e){return e!==null}var S_=e=>({name:"transformOrigin",options:e,fn(r){var N,A,_;const{placement:l,rects:i,middlewareData:o}=r,c=((N=o.arrow)==null?void 0:N.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[m,g]=o1(l),y={start:"0%",center:"50%",end:"100%"}[g],b=(((A=o.arrow)==null?void 0:A.x)??0)+f/2,v=(((_=o.arrow)==null?void 0:_.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 o1(e){const[r,l="center"]=e.split("-");return[r,l]}var s1=t1,Fh=r1,u1=l1,c1=a1,k_=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"}),C_="VisuallyHidden",f1=S.forwardRef((e,r)=>x.jsx(Ot.span,{...e,ref:r,style:{...k_,...e.style}}));f1.displayName=C_;var E_=f1,[Tu]=gu("Tooltip",[Au]),ju=Au(),d1="TooltipProvider",N_=700,Zd="tooltip.open",[A_,Ih]=Tu(d1),h1=e=>{const{__scopeTooltip:r,delayDuration:l=N_,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(A_,{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})};h1.displayName=d1;var Wa="Tooltip",[T_,so]=Tu(Wa),m1=e=>{const{__scopeTooltip:r,children:l,open:i,defaultOpen:o,onOpenChange:u,disableHoverableContent:c,delayDuration:f}=e,d=Ih(Wa,e.__scopeTooltip),m=ju(r),[g,y]=S.useState(null),b=Ya(),v=S.useRef(0),k=c??d.disableHoverableContent,C=f??d.delayDuration,N=S.useRef(!1),[A,_]=kh({prop:i,defaultProp:o??!1,onChange:q=>{q?(d.onOpen(),document.dispatchEvent(new CustomEvent(Zd))):d.onClose(),u==null||u(q)},caller:Wa}),R=S.useMemo(()=>A?N.current?"delayed-open":"instant-open":"closed",[A]),B=S.useCallback(()=>{window.clearTimeout(v.current),v.current=0,N.current=!1,_(!0)},[_]),P=S.useCallback(()=>{window.clearTimeout(v.current),v.current=0,_(!1)},[_]),z=S.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{N.current=!0,_(!0),v.current=0},C)},[C,_]);return S.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),x.jsx(s1,{...m,children:x.jsx(T_,{scope:r,contentId:b,open:A,stateAttribute:R,trigger:g,onTriggerChange:y,onTriggerEnter:S.useCallback(()=>{d.isOpenDelayedRef.current?z():B()},[d.isOpenDelayedRef,z,B]),onTriggerLeave:S.useCallback(()=>{k?P():(window.clearTimeout(v.current),v.current=0)},[P,k]),onOpen:B,onClose:P,disableHoverableContent:k,children:l})})};m1.displayName=Wa;var Kd="TooltipTrigger",p1=S.forwardRef((e,r)=>{const{__scopeTooltip:l,...i}=e,o=so(Kd,l),u=Ih(Kd,l),c=ju(l),f=S.useRef(null),d=on(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(Fh,{asChild:!0,...c,children:x.jsx(Ot.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:d,onPointerMove:vt(e.onPointerMove,b=>{b.pointerType!=="touch"&&!g.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:vt(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:vt(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:vt(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:vt(e.onBlur,o.onClose),onClick:vt(e.onClick,o.onClose)})})});p1.displayName=Kd;var Vh="TooltipPortal",[j_,__]=Tu(Vh,{forceMount:void 0}),g1=e=>{const{__scopeTooltip:r,forceMount:l,children:i,container:o}=e,u=so(Vh,r);return x.jsx(j_,{scope:r,forceMount:l,children:x.jsx(tl,{present:l||u.open,children:x.jsx(xu,{asChild:!0,container:o,children:i})})})};g1.displayName=Vh;var _i="TooltipContent",y1=S.forwardRef((e,r)=>{const l=__(_i,e.__scopeTooltip),{forceMount:i=l.forceMount,side:o="top",...u}=e,c=so(_i,e.__scopeTooltip);return x.jsx(tl,{present:i||c.open,children:c.disableHoverableContent?x.jsx(x1,{side:o,...u,ref:r}):x.jsx(R_,{side:o,...u,ref:r})})}),R_=S.forwardRef((e,r)=>{const l=so(_i,e.__scopeTooltip),i=Ih(_i,e.__scopeTooltip),o=S.useRef(null),u=on(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 N=k.currentTarget,A={x:k.clientX,y:k.clientY},_=L_(A,N.getBoundingClientRect()),R=B_(A,_),B=U_(C.getBoundingClientRect()),P=P_([...R,...B]);f(P),y(!0)},[y]);return S.useEffect(()=>()=>b(),[b]),S.useEffect(()=>{if(d&&g){const k=N=>v(N,g),C=N=>v(N,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 N=C.target,A={x:C.clientX,y:C.clientY},_=(d==null?void 0:d.contains(N))||(g==null?void 0:g.contains(N)),R=!H_(A,c);_?b():R&&(b(),m())};return document.addEventListener("pointermove",k),()=>document.removeEventListener("pointermove",k)}},[d,g,c,m,b]),x.jsx(x1,{...e,ref:u})}),[O_,M_]=Tu(Wa,{isInside:!1}),z_=aN("TooltipContent"),x1=S.forwardRef((e,r)=>{const{__scopeTooltip:l,children:i,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:c,...f}=e,d=so(_i,l),m=ju(l),{onClose:g}=d;return S.useEffect(()=>(document.addEventListener(Zd,g),()=>document.removeEventListener(Zd,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(yu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:g,children:x.jsxs(u1,{"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(z_,{children:i}),x.jsx(O_,{scope:l,isInside:!0,children:x.jsx(E_,{id:d.contentId,role:"tooltip",children:o||i})})]})})});y1.displayName=_i;var b1="TooltipArrow",D_=S.forwardRef((e,r)=>{const{__scopeTooltip:l,...i}=e,o=ju(l);return M_(b1,l).isInside?null:x.jsx(c1,{...o,...i,ref:r})});D_.displayName=b1;function L_(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 B_(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 U_(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 H_(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 P_(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 F_=h1,I_=m1,V_=p1,G_=g1,v1=y1;const Y_=F_,iu=I_,au=V_,eo=S.forwardRef(({className:e,sideOffset:r=4,...l},i)=>x.jsx(G_,{children:x.jsx(v1,{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})}));eo.displayName=v1.displayName;const Lt="Kanna",ob="kanna",$_="[kanna]",X_=`~/${Lt}`;function Hs(e){return e?`${ob} ${e}`:ob}const Q_={sm:"text-sm px-2.5 py-1",md:"text-sm px-3 py-1.5"};function Z_({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",Q_[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(iu,{children:[x.jsx(au,{asChild:!0,children:g}),x.jsx(eo,{children:c.tooltip})]},c.value):g})})}function K_(e){return e.toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}function w1({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 N;return(N=m.current)==null?void 0:N.focus()},0))},[e]),S.useEffect(()=>{e&&setTimeout(()=>{var N,A;i==="new"?(N=m.current)==null||N.focus():(A=g.current)==null||A.focus()},0)},[i,e]);const y=K_(u),b=y?`${X_}/${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 N=v.split("/").pop()||v;l({mode:"existing",localPath:v,title:N})}r(!1)}};return x.jsx(D0,{open:e,onOpenChange:r,children:x.jsxs(Mh,{size:"sm",children:[x.jsxs(U0,{className:"space-y-4",children:[x.jsx(B0,{children:"Add Project"}),x.jsx(Z_,{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:N=>c(N.target.value),onKeyDown:N=>{N.key==="Enter"&&C(),N.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:N=>d(N.target.value),onKeyDown:N=>{N.key==="Enter"&&C(),N.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(H0,{children:[x.jsx(Ge,{variant:"ghost",size:"sm",onClick:()=>r(!1),children:"Cancel"}),x.jsx(Ge,{variant:"secondary",size:"sm",onClick:C,disabled:!k,children:"Create"})]})]})})}const _u=({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}),J_=new Set(["starting","running"]);function W_({chat:e,activeChatId:r,onSelectChat:l,onDeleteChat:i}){return x.jsxs("div",{"data-chat-id":Ox(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===Ox(e.chatId)?"bg-muted border-border":"border-border/0 dark:hover:border-slate-400/10 "),onClick:()=>l(e.chatId),children:[J_.has(e.status)?x.jsx(Ml,{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(_u,{animate:e.status==="running",shimmerWidth:Math.max(20,e.title.length*3),children:e.title}):e.title}),x.jsx(Ge,{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(ao,{className:"size-3.5"})})]},e._id)}function Al(e){return e.split(/[\s_-]+/).filter(Boolean).map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join(" ")}function S1(e){return e.split("/").pop()||e}var Ru="Popover",[k1]=gu(Ru,[Au]),uo=Au(),[eR,nl]=k1(Ru),C1=e=>{const{__scopePopover:r,children:l,open:i,defaultOpen:o,onOpenChange:u,modal:c=!1}=e,f=uo(r),d=S.useRef(null),[m,g]=S.useState(!1),[y,b]=kh({prop:i,defaultProp:o??!1,onChange:u,caller:Ru});return x.jsx(s1,{...f,children:x.jsx(eR,{scope:r,contentId:Ya(),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})})};C1.displayName=Ru;var E1="PopoverAnchor",tR=S.forwardRef((e,r)=>{const{__scopePopover:l,...i}=e,o=nl(E1,l),u=uo(l),{onCustomAnchorAdd:c,onCustomAnchorRemove:f}=o;return S.useEffect(()=>(c(),()=>f()),[c,f]),x.jsx(Fh,{...u,...i,ref:r})});tR.displayName=E1;var N1="PopoverTrigger",A1=S.forwardRef((e,r)=>{const{__scopePopover:l,...i}=e,o=nl(N1,l),u=uo(l),c=on(r,o.triggerRef),f=x.jsx(Ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":O1(o.open),...i,ref:c,onClick:vt(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?f:x.jsx(Fh,{asChild:!0,...u,children:f})});A1.displayName=N1;var Gh="PopoverPortal",[nR,rR]=k1(Gh,{forceMount:void 0}),T1=e=>{const{__scopePopover:r,forceMount:l,children:i,container:o}=e,u=nl(Gh,r);return x.jsx(nR,{scope:r,forceMount:l,children:x.jsx(tl,{present:l||u.open,children:x.jsx(xu,{asChild:!0,container:o,children:i})})})};T1.displayName=Gh;var Ri="PopoverContent",j1=S.forwardRef((e,r)=>{const l=rR(Ri,e.__scopePopover),{forceMount:i=l.forceMount,...o}=e,u=nl(Ri,e.__scopePopover);return x.jsx(tl,{present:i||u.open,children:u.modal?x.jsx(iR,{...o,ref:r}):x.jsx(aR,{...o,ref:r})})});j1.displayName=Ri;var lR=Ch("PopoverContent.RemoveScroll"),iR=S.forwardRef((e,r)=>{const l=nl(Ri,e.__scopePopover),i=S.useRef(null),o=on(r,i),u=S.useRef(!1);return S.useEffect(()=>{const c=i.current;if(c)return u0(c)},[]),x.jsx(Nh,{as:lR,allowPinchZoom:!0,children:x.jsx(_1,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vt(e.onCloseAutoFocus,c=>{var f;c.preventDefault(),u.current||(f=l.triggerRef.current)==null||f.focus()}),onPointerDownOutside:vt(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:vt(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),aR=S.forwardRef((e,r)=>{const l=nl(Ri,e.__scopePopover),i=S.useRef(!1),o=S.useRef(!1);return x.jsx(_1,{...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()}})}),_1=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=nl(Ri,l),v=uo(l);return e0(),x.jsx(Eh,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:u,children:x.jsx(yu,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:g,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:m,onDismiss:()=>b.onOpenChange(!1),children:x.jsx(u1,{"data-state":O1(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)"}})})})}),R1="PopoverClose",oR=S.forwardRef((e,r)=>{const{__scopePopover:l,...i}=e,o=nl(R1,l);return x.jsx(Ot.button,{type:"button",...i,ref:r,onClick:vt(e.onClick,()=>o.onOpenChange(!1))})});oR.displayName=R1;var sR="PopoverArrow",uR=S.forwardRef((e,r)=>{const{__scopePopover:l,...i}=e,o=uo(l);return x.jsx(c1,{...o,...i,ref:r})});uR.displayName=sR;function O1(e){return e?"open":"closed"}var cR=C1,fR=A1,dR=T1,M1=j1;const z1=cR,D1=fR,Yh=S.forwardRef(({className:e,align:r="center",sideOffset:l=4,...i},o)=>x.jsx(dR,{children:x.jsx(M1,{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})}));Yh.displayName=M1.displayName;function hR({onRemove:e}){const[r,l]=S.useState(!1);return x.jsxs(z1,{open:r,onOpenChange:l,children:[x.jsx(D1,{asChild:!0,children:x.jsx(Ge,{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(yT,{className:"h-4 w-4 text-slate-500 dark:text-slate-400"})})}),x.jsx(Yh,{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(nj,{className:"h-4 w-4"}),x.jsx("span",{className:"text-xs font-medium",children:"Remove Project"})]})})]})}function mR({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),N=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(j0,{className:"translate-y-[1px] size-3.5 shrink-0 text-slate-400 dark:text-slate-500"}):x.jsx(T0,{className:"translate-y-[1px] size-3.5 shrink-0 text-slate-400 dark:text-slate-500"}),x.jsxs(iu,{children:[x.jsx(au,{asChild:!0,children:x.jsx("span",{className:"truncate max-w-[150px] whitespace-nowrap text-sm text-slate-500 dark:text-slate-400",children:S1(b)})}),x.jsx(eo,{side:"right",sideOffset:4,children:b})]}),x.jsx(Zr,{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(hR,{onRemove:()=>d(y)}):null,f&&x.jsxs(iu,{children:[x.jsx(au,{asChild:!0,children:x.jsx(Ge,{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:A=>{A.stopPropagation(),f(b)},children:g===b?x.jsx(Ml,{className:"size-4 text-slate-500 dark:text-slate-400 animate-spin"}):x.jsx(_h,{className:"size-3.5 text-slate-500 dark:text-slate-400"})})}),x.jsx(eo,{side:"right",sideOffset:4,children:m?"New chat":`Start ${Lt} to connect`})]})]}),!r.has(y)&&x.jsxs("div",{className:"space-y-[2px] mb-2 ",children:[C.map(u),N&&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 pR({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=In(),N=ph(),A=S.useRef(null),[_,R]=S.useState(new Set),[B,P]=S.useState(new Set),[z,q]=S.useState(!1),Y=10,oe=S.useMemo(()=>new Map(e.projectGroups.map(ie=>[ie.localPath,ie.groupKey])),[e.projectGroups]),U=S.useMemo(()=>e.projectGroups.reduce((ie,T)=>ie+T.chats.length,0),[e.projectGroups]),re=S.useCallback(ie=>{R(T=>{const O=new Set(T);return O.has(ie)?O.delete(ie):O.add(ie),O})},[]),le=S.useCallback(ie=>{P(T=>{const O=new Set(T);return O.has(ie)?O.delete(ie):O.add(ie),O})},[]),ue=S.useCallback(ie=>x.jsx(W_,{chat:ie,activeChatId:r,onSelectChat:T=>N(`/chat/${T}`),onDeleteChat:()=>v(ie)},ie._id),[r,N,v]);S.useEffect(()=>{!r||!A.current||requestAnimationFrame(()=>{const ie=A.current,T=ie==null?void 0:ie.querySelector(`[data-chat-id="${r}"]`);if(!T||!ie)return;const O=T.getBoundingClientRect(),Q=ie.getBoundingClientRect();if(O.top<Q.top+38){const j=O.top-Q.top+ie.scrollTop;ie.scrollTo({top:j-38,behavior:"smooth"})}else if(O.bottom>Q.bottom){const j=O.top+O.height/2-Q.top+ie.scrollTop,ne=ie.clientHeight/2;ie.scrollTo({top:j-ne,behavior:"smooth"})}})},[r,U]);const Z=U>0,$=C.pathname==="/projects",D=l==="connecting"||!i,X=D?"Connecting":l==="connected"?"Connected":"Disconnected",ee=l==="connected"?"bg-emerald-500":"bg-amber-500";return x.jsxs(x.Fragment,{children:[!o&&c&&x.jsx(Ge,{variant:"ghost",size:"icon",className:"fixed top-3 left-3 z-50 md:hidden",onClick:f,children:x.jsx(_0,{className:"h-5 w-5"})}),u&&$&&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($a,{className:"size-6 text-logo"}),x.jsx(Ge,{variant:"ghost",size:"icon",onClick:g,title:"Expand sidebar",children:x.jsx(Yd,{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($a,{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(Yd,{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($a,{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:Lt})]}),x.jsxs("div",{className:"flex items-center",children:[x.jsx(Ge,{variant:"ghost",size:"icon",onClick:()=>q(!0),title:"New project",children:x.jsx(z0,{className:"size-4"})}),x.jsx(Ge,{variant:"ghost",size:"icon",className:"md:hidden",onClick:d,children:x.jsx(ao,{className:"h-5 w-5"})})]})]}),x.jsx("div",{ref:A,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:[!Z&&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(T=>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",T===0?"w-32":T===1?"w-40":"w-28")})]},T))})]},ie))}):null,!Z&&!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(mR,{projectGroups:e.projectGroups,collapsedSections:_,expandedGroups:B,onToggleSection:re,onToggleExpandedGroup:le,renderChatRow:ue,chatsPerProject:Y,onNewLocalChat:ie=>{const T=oe.get(ie);T&&y(T)},onRemoveProject:k,isConnected:l==="connected"})]})}),x.jsx("div",{className:"border-t border-border p-2",children:x.jsx("button",{type:"button",onClick:()=>{N("/projects"),d()},className:xe("w-full rounded-xl rounded-t-md border px-3 py-2 text-left transition-colors",$?"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(Su,{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(Ml,{className:"h-2 w-2 animate-spin"}):x.jsx("span",{className:xe("h-2 w-2 rounded-full",ee)})]})]})})})]}),x.jsx(w1,{open:z,onOpenChange:q,onConfirm:b}),o?x.jsx("div",{className:"fixed inset-0 bg-black/40 z-40 md:hidden",onClick:d}):null]})}const L1=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}));L1.displayName="Textarea";function gR(){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 sb=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},yR=(e=>e?sb(e):sb),xR=e=>e;function bR(e,r=xR){const l=Va.useSyncExternalStore(e.subscribe,Va.useCallback(()=>r(e.getState()),[e,r]),Va.useCallback(()=>r(e.getInitialState()),[e,r]));return Va.useDebugValue(l),l}const vR=e=>{const r=yR(e),l=i=>bR(r,i);return Object.assign(l,r),l},wR=(e=>vR);function SR(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 Jd=e=>r=>{try{const l=e(r);return l instanceof Promise?l:{then(i){return Jd(i)(l)},catch(i){return this}}}catch(l){return{then(i){return this},catch(i){return Jd(i)(l)}}}},kR=(e,r)=>(l,i,o)=>{let u={storage:SR(()=>window.localStorage),partialize:N=>N,version:0,merge:(N,A)=>({...A,...N}),...r},c=!1,f=0;const d=new Set,m=new Set;let g=u.storage;if(!g)return e((...N)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),l(...N)},i,o);const y=()=>{const N=u.partialize({...i()});return g.setItem(u.name,{state:N,version:u.version})},b=o.setState;o.setState=(N,A)=>(b(N,A),y());const v=e((...N)=>(l(...N),y()),i,o);o.getInitialState=()=>v;let k;const C=()=>{var N,A;if(!g)return;const _=++f;c=!1,d.forEach(B=>{var P;return B((P=i())!=null?P:v)});const R=((A=u.onRehydrateStorage)==null?void 0:A.call(u,(N=i())!=null?N:v))||void 0;return Jd(g.getItem.bind(g))(u.name).then(B=>{if(B)if(typeof B.version=="number"&&B.version!==u.version){if(u.migrate){const P=u.migrate(B.state,B.version);return P instanceof Promise?P.then(z=>[!0,z]):[!0,P]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,B.state];return[!1,void 0]}).then(B=>{var P;if(_!==f)return;const[z,q]=B;if(k=u.merge(q,(P=i())!=null?P:v),l(k,!0),z)return y()}).then(()=>{_===f&&(R==null||R(k,void 0),k=i(),c=!0,m.forEach(B=>B(k)))}).catch(B=>{_===f&&(R==null||R(void 0,B))})};return o.persist={setOptions:N=>{u={...u,...N},N.storage&&(g=N.storage)},clearStorage:()=>{g==null||g.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>C(),hasHydrated:()=>c,onHydrate:N=>(d.add(N),()=>{d.delete(N)}),onFinishHydration:N=>(m.add(N),()=>{m.delete(N)})},u.skipHydration||C(),k||v},CR=kR,ER=wR()(CR((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"}));function ub({onClick:e,selected:r,icon:l,label:i,description:o}){return x.jsxs("button",{onClick:e,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"),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 NR({trigger:e,triggerClassName:r,children:l}){return x.jsxs(z1,{children:[x.jsx(D1,{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(Yh,{align:"center",className:"w-64 p-1",children:x.jsx("div",{className:"space-y-1",children:l})})]})}const AR=S.memo(function({onSubmit:r,onCancel:l,disabled:i,canCancel:o,chatId:u,planMode:c=!1,onTogglePlanMode:f}){const{getDraft:d,setDraft:m,clearDraft:g}=ER(),[y,b]=S.useState(()=>u?d(u):""),v=S.useRef(null),k=gR(),C=S.useCallback(()=>{const _=v.current;_&&(_.style.height="auto",_.style.height=`${_.scrollHeight}px`)},[]);S.useEffect(()=>{C()},[y,C]),S.useEffect(()=>(window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)),[C]),S.useEffect(()=>{var _;(_=v.current)==null||_.focus()},[u]);async function N(){if(!y.trim())return;const _=y;b(""),u&&g(u),v.current&&(v.current.style.height="auto");try{await r(_)}catch(R){console.error("[ChatInput] Submit failed:",R),b(_),u&&m(u,_)}}function A(_){if(_.key==="Tab"&&_.shiftKey){_.preventDefault(),f==null||f();return}if(_.key==="Escape"&&o){_.preventDefault(),l==null||l();return}const R="ontouchstart"in window||navigator.maxTouchPoints>0;_.key==="Enter"&&!_.shiftKey&&!o&&!R&&(_.preventDefault(),N())}return x.jsxs("div",{className:xe("p-3 pt-0 md:pb-2",k&&"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(L1,{ref:v,placeholder:"Ask something...",value:y,autoFocus:!0,rows:1,onChange:_=>{b(_.target.value),u&&m(u,_.target.value),C()},onKeyDown:A,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(Ge,{type:"button",onPointerDown:_=>{_.preventDefault(),o?l==null||l():!i&&y.trim()&&N()},disabled:!o&&(i||!y.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(IA,{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("div",{className:"flex items-center gap-1.5 px-2 py-1 text-sm text-muted-foreground opacity-60 cursor-default",children:[x.jsx(MT,{className:"h-3.5 w-3.5"}),x.jsx("span",{className:"whitespace-nowrap",children:"Claude Code"})]}),x.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 text-sm text-muted-foreground opacity-60 cursor-default",children:[x.jsx(Su,{className:"h-3.5 w-3.5"}),x.jsx("span",{className:"whitespace-nowrap",children:"Local"})]}),f&&x.jsxs(NR,{trigger:c?x.jsxs(x.Fragment,{children:[x.jsx(eu,{className:"h-3.5 w-3.5"}),x.jsx("span",{children:"Plan Mode"})]}):x.jsxs(x.Fragment,{children:[x.jsx(Xx,{className:"h-3.5 w-3.5"}),x.jsx("span",{children:"Full Access"})]}),triggerClassName:c?"text-blue-400 dark:text-blue-300":void 0,children:[x.jsx(ub,{onClick:()=>c&&f(),selected:!c,icon:x.jsx(Xx,{className:"h-4 w-4 text-muted-foreground"}),label:"Full Access",description:"Claude can read and edit files"}),x.jsx(ub,{onClick:()=>!c&&f(),selected:c,icon:x.jsx(eu,{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"]})]})]})]})}),B1=S.forwardRef(({className:e,...r},l)=>x.jsx("div",{ref:l,className:xe("bg-card text-card-foreground",e),...r}));B1.displayName="Card";const U1=S.forwardRef(({className:e,...r},l)=>x.jsx("div",{ref:l,className:xe("flex flex-col space-y-1.5 p-2",e),...r}));U1.displayName="CardHeader";const TR=S.forwardRef(({className:e,...r},l)=>x.jsx("h3",{ref:l,className:xe("text-2xl font-semibold leading-none tracking-tight",e),...r}));TR.displayName="CardTitle";const jR=S.forwardRef(({className:e,...r},l)=>x.jsx("p",{ref:l,className:xe("text-sm text-muted-foreground",e),...r}));jR.displayName="CardDescription";const H1=S.forwardRef(({className:e,...r},l)=>x.jsx("div",{ref:l,className:xe("p-6 pt-0",e),...r}));H1.displayName="CardContent";const _R=S.forwardRef(({className:e,...r},l)=>x.jsx("div",{ref:l,className:xe("flex items-center p-6 pt-0",e),...r}));_R.displayName="CardFooter";function RR({sidebarCollapsed:e,onOpenSidebar:r,onExpandSidebar:l,onNewChat:i,localPath:o,onOpenExternal:u}){return x.jsx(U1,{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(Ge,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,children:x.jsx(_0,{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($a,{className:"h-4 w-4 sm:h-5 sm:w-5 text-logo ml-1 hidden md:block"})}),x.jsx(Ge,{variant:"ghost",size:"icon",className:"hidden md:flex",onClick:l,title:"Expand sidebar",children:x.jsx(Yd,{className:"h-5 w-5"})})]}),x.jsx(Ge,{variant:"ghost",size:"icon",onClick:i,title:"Compose",children:x.jsx(_h,{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(Ge,{variant:"ghost",size:"icon",onClick:()=>u("open_finder"),title:"Open in Finder",className:"border border-border/0",children:x.jsx(T0,{className:"h-4.5 w-4.5"})}),x.jsx(Ge,{variant:"ghost",size:"icon",onClick:()=>u("open_terminal"),title:"Open in Terminal",className:"border border-border/0",children:x.jsx(Rh,{className:"h-4.5 w-4.5"})}),x.jsx(Ge,{variant:"ghost",size:"icon",onClick:()=>u("open_editor"),title:"Open in Cursor",className:"border border-border/0",children:x.jsx(cT,{className:"h-4.5 w-4.5"})})]})})]})})}const Wd={Task:eu,TaskOutput:eu,Bash:Rh,Glob:gd,Grep:gd,ExitPlanMode:Qx,Read:kT,Edit:bT,Write:wT,NotebookEdit:M0,WebFetch:BA,TodoWrite:KA,WebSearch:gd,KillShell:KT,AskUserQuestion:R0,Skill:XT,EnterPlanMode:Qx},P1=ej;function q1(e){return Wd[e]?Wd[e]:/^mcp__db__.+_query$/.test(e)?pT:e==="mcp__lever__show_chart"?$A:P1}function rl({children:e,className:r}){return x.jsx("div",{className:xe("flex gap-3 justify-start items-center",r),children:e})}function OR({children:e,className:r}){return x.jsx("div",{className:xe("flex items-center gap-1.5 text-xs",r),children:e})}function Wr({children:e,className:r}){return x.jsx("span",{className:xe("font-medium text-foreground/80",r),children:e})}function MR({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(Zr,{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 Ha({label:e,children:r,copyText:l}){const[i,o]=S.useState(!1),u=l??ou(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(Ge,{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(jl,{className:"h-4 w-4 text-green-400"}):x.jsx(wu,{className:"h-4 w-4"})})]})]})}function F1({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 Mu({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 ou(e){if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(Array.isArray(e))return e.map(ou).join("");if(e&&typeof e=="object"&&"props"in e){const r=e.props;return ou(r.children)}return""}const zu={pre:({children:e,...r})=>{const[l,i]=S.useState(!1),o=ou(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(Ge,{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(jl,{className:"h-4 w-4 text-green-400"}):x.jsx(wu,{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})},eh={...zu,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})},zR={connecting:"Connecting...",acquiring_sandbox:"Booting...",initializing:"Initializing...",starting:"Starting...",running:"Running...",waiting_for_user:"Waiting...",failed:"Failed"};function DR({status:e}){const r=(e?zR[e]:void 0)||"Processing...",l=e==="failed";return x.jsx(rl,{className:"ml-[1px]",children:x.jsxs(OR,{children:[l?x.jsx(ao,{className:"size-4.5 text-red-500"}):x.jsx(Ml,{className:"size-4.5 animate-spin text-muted-icon"}),x.jsx(_u,{className:"ml-[1px] text-sm",shimmerWidth:44,children:r})]})})}const I1=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}));I1.displayName="ScrollArea";function LR(e,r){const l={};return(e[e.length-1]===""?[...e,""]:e).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const BR=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,UR=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HR={};function cb(e,r){return(HR.jsx?UR:BR).test(e)}const PR=/[ \t\n\f\r]/g;function qR(e){return typeof e=="object"?e.type==="text"?fb(e.value):!1:fb(e)}function fb(e){return e.replace(PR,"")===""}class co{constructor(r,l,i){this.normal=l,this.property=r,i&&(this.space=i)}}co.prototype.normal={};co.prototype.property={};co.prototype.space=void 0;function V1(e,r){const l={},i={};for(const o of e)Object.assign(l,o.property),Object.assign(i,o.normal);return new co(l,i,r)}function th(e){return e.toLowerCase()}class $t{constructor(r,l){this.attribute=l,this.property=r}}$t.prototype.attribute="";$t.prototype.booleanish=!1;$t.prototype.boolean=!1;$t.prototype.commaOrSpaceSeparated=!1;$t.prototype.commaSeparated=!1;$t.prototype.defined=!1;$t.prototype.mustUseProperty=!1;$t.prototype.number=!1;$t.prototype.overloadedBoolean=!1;$t.prototype.property="";$t.prototype.spaceSeparated=!1;$t.prototype.space=void 0;let FR=0;const _e=zl(),pt=zl(),nh=zl(),se=zl(),tt=zl(),Ai=zl(),nn=zl();function zl(){return 2**++FR}const rh=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:pt,commaOrSpaceSeparated:nn,commaSeparated:Ai,number:se,overloadedBoolean:nh,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),vd=Object.keys(rh);class $h extends $t{constructor(r,l,i,o){let u=-1;if(super(r,l),db(this,"space",o),typeof i=="number")for(;++u<vd.length;){const c=vd[u];db(this,vd[u],(i&rh[c])===rh[c])}}}$h.prototype.defined=!0;function db(e,r,l){l&&(e[r]=l)}function Hi(e){const r={},l={};for(const[i,o]of Object.entries(e.properties)){const u=new $h(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(u.mustUseProperty=!0),r[i]=u,l[th(i)]=i,l[th(u.attribute)]=i}return new co(r,l,e.space)}const G1=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:pt,ariaAutoComplete:null,ariaBusy:pt,ariaChecked:pt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:tt,ariaCurrent:null,ariaDescribedBy:tt,ariaDetails:null,ariaDisabled:pt,ariaDropEffect:tt,ariaErrorMessage:null,ariaExpanded:pt,ariaFlowTo:tt,ariaGrabbed:pt,ariaHasPopup:null,ariaHidden:pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tt,ariaLevel:se,ariaLive:null,ariaModal:pt,ariaMultiLine:pt,ariaMultiSelectable:pt,ariaOrientation:null,ariaOwns:tt,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:pt,ariaReadOnly:pt,ariaRelevant:null,ariaRequired:pt,ariaRoleDescription:tt,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:pt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function Y1(e,r){return r in e?e[r]:r}function $1(e,r){return Y1(e,r.toLowerCase())}const IR=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ai,acceptCharset:tt,accessKey:tt,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:tt,autoFocus:_e,autoPlay:_e,blocking:tt,capture:null,charSet:null,checked:_e,cite:null,className:tt,cols:se,colSpan:null,content:null,contentEditable:pt,controls:_e,controlsList:tt,coords:se|Ai,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:nh,draggable:pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:tt,height:se,hidden:nh,high:se,href:null,hrefLang:null,htmlFor:tt,httpEquiv:tt,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:tt,itemRef:tt,itemScope:_e,itemType:tt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,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:_e,optimum:se,pattern:null,ping:tt,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:tt,required:_e,reversed:_e,rows:se,rowSpan:se,sandbox:tt,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:_e,useMap:null,value:pt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tt,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:pt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_e,disableRemotePlayback:_e,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:$1}),VR=Hi({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:nn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:tt,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:_e,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:Ai,g2:Ai,glyphName:Ai,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Y1}),X1=Hi({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()}}),Q1=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$1}),Z1=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),GR={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"},YR=/[A-Z]/g,hb=/-[a-z]/g,$R=/^data[-\w.:]+$/i;function XR(e,r){const l=th(r);let i=r,o=$t;if(l in e.normal)return e.property[e.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&$R.test(r)){if(r.charAt(4)==="-"){const u=r.slice(5).replace(hb,ZR);i="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=r.slice(4);if(!hb.test(u)){let c=u.replace(YR,QR);c.charAt(0)!=="-"&&(c="-"+c),r="data"+c}}o=$h}return new o(i,r)}function QR(e){return"-"+e.toLowerCase()}function ZR(e){return e.charAt(1).toUpperCase()}const KR=V1([G1,IR,X1,Q1,Z1],"html"),Xh=V1([G1,VR,X1,Q1,Z1],"svg");function JR(e){return e.join(" ").trim()}var Si={},wd,mb;function WR(){if(mb)return wd;mb=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=`
375
+ `,m="/",g="*",y="",b="comment",v="declaration";function k(N,A){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];A=A||{};var _=1,R=1;function B(Z){var $=Z.match(r);$&&(_+=$.length);var D=Z.lastIndexOf(d);R=~D?Z.length-D:R+Z.length}function P(){var Z={line:_,column:R};return function($){return $.position=new z(Z),oe(),$}}function z(Z){this.start=Z,this.end={line:_,column:R},this.source=A.source}z.prototype.content=N;function q(Z){var $=new Error(A.source+":"+_+":"+R+": "+Z);if($.reason=Z,$.filename=A.source,$.line=_,$.column=R,$.source=N,!A.silent)throw $}function Y(Z){var $=Z.exec(N);if($){var D=$[0];return B(D),N=N.slice(D.length),$}}function oe(){Y(l)}function U(Z){var $;for(Z=Z||[];$=re();)$!==!1&&Z.push($);return Z}function re(){var Z=P();if(!(m!=N.charAt(0)||g!=N.charAt(1))){for(var $=2;y!=N.charAt($)&&(g!=N.charAt($)||m!=N.charAt($+1));)++$;if($+=2,y===N.charAt($-1))return q("End of comment missing");var D=N.slice(2,$-2);return R+=2,B(D),N=N.slice($),R+=2,Z({type:b,comment:D})}}function le(){var Z=P(),$=Y(i);if($){if(re(),!Y(o))return q("property missing ':'");var D=Y(u),X=Z({type:v,property:C($[0].replace(e,y)),value:D?C(D[0].replace(e,y)):y});return Y(c),X}}function ue(){var Z=[];U(Z);for(var $;$=le();)$!==!1&&(Z.push($),U(Z));return Z}return oe(),ue()}function C(N){return N?N.replace(f,y):y}return wd=k,wd}var pb;function e4(){if(pb)return Si;pb=1;var e=Si&&Si.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=l;const r=e(WR());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 Si}var Pa={},gb;function t4(){if(gb)return Pa;gb=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.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 Pa.camelCase=d,Pa}var qa,yb;function n4(){if(yb)return qa;yb=1;var e=qa&&qa.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},r=e(e4()),l=t4();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,qa=i,qa}var r4=n4();const l4=hu(r4),K1=J1("end"),Qh=J1("start");function J1(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 i4(e){const r=Qh(e),l=K1(e);if(r&&l)return{start:r,end:l}}function Xa(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?xb(e.position):"start"in e||"end"in e?xb(e):"line"in e||"column"in e?lh(e):""}function lh(e){return bb(e&&e.line)+":"+bb(e&&e.column)}function xb(e){return lh(e&&e.start)+"-"+lh(e&&e.end)}function bb(e){return e&&typeof e=="number"?e:1}class Mt 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=Xa(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}}Mt.prototype.file="";Mt.prototype.name="";Mt.prototype.reason="";Mt.prototype.message="";Mt.prototype.stack="";Mt.prototype.column=void 0;Mt.prototype.line=void 0;Mt.prototype.ancestors=void 0;Mt.prototype.cause=void 0;Mt.prototype.fatal=void 0;Mt.prototype.place=void 0;Mt.prototype.ruleId=void 0;Mt.prototype.source=void 0;const Zh={}.hasOwnProperty,a4=new Map,o4=/[A-Z]/g,s4=new Set(["table","tbody","thead","tfoot","tr"]),u4=new Set(["td","th"]),W1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function c4(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=x4(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=y4(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"?Xh:KR,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},u=ew(o,e,void 0);return u&&typeof u!="string"?u:o.create(e,o.Fragment,{children:u||void 0},void 0)}function ew(e,r,l){if(r.type==="element")return f4(e,r,l);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return d4(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return m4(e,r,l);if(r.type==="mdxjsEsm")return h4(e,r);if(r.type==="root")return p4(e,r,l);if(r.type==="text")return g4(e,r)}function f4(e,r,l){const i=e.schema;let o=i;r.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=Xh,e.schema=o),e.ancestors.push(r);const u=nw(e,r.tagName,!1),c=b4(e,r);let f=Jh(e,r);return s4.has(r.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!qR(d):!0})),tw(e,c,u,r),Kh(c,f),e.ancestors.pop(),e.schema=i,e.create(r,u,c,l)}function d4(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)}to(e,r.position)}function h4(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);to(e,r.position)}function m4(e,r,l){const i=e.schema;let o=i;r.name==="svg"&&i.space==="html"&&(o=Xh,e.schema=o),e.ancestors.push(r);const u=r.name===null?e.Fragment:nw(e,r.name,!0),c=v4(e,r),f=Jh(e,r);return tw(e,c,u,r),Kh(c,f),e.ancestors.pop(),e.schema=i,e.create(r,u,c,l)}function p4(e,r,l){const i={};return Kh(i,Jh(e,r)),e.create(r,e.Fragment,i,l)}function g4(e,r){return r.value}function tw(e,r,l,i){typeof l!="string"&&l!==e.Fragment&&e.passNode&&(r.node=i)}function Kh(e,r){if(r.length>0){const l=r.length>1?r:r[0];l&&(e.children=l)}}function y4(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 x4(e,r){return l;function l(i,o,u,c){const f=Array.isArray(u.children),d=Qh(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 b4(e,r){const l={};let i,o;for(o in r.properties)if(o!=="children"&&Zh.call(r.properties,o)){const u=w4(e,o,r.properties[o]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&u4.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 v4(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 to(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 to(e,r.position);else u=i.value===null?!0:i.value;l[o]=u}return l}function Jh(e,r){const l=[];let i=-1;const o=e.passKeys?new Map:a4;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=ew(e,u,c);f!==void 0&&l.push(f)}return l}function w4(e,r,l){const i=XR(e.schema,r);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=i.commaSeparated?LR(l):JR(l)),i.property==="style"){let o=typeof l=="object"?l:S4(e,String(l));return e.stylePropertyNameCase==="css"&&(o=k4(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?GR[i.property]||i.property:i.attribute,l]}}function S4(e,r){try{return l4(r,{reactCompat:!0})}catch(l){if(e.ignoreInvalidStyle)return{};const i=l,o=new Mt("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=W1+"#cannot-parse-style-attribute",o}}function nw(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=cb(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=cb(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(i.type==="Literal"){const o=i.value;return Zh.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);to(e)}function to(e,r){const l=new Mt("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=W1+"#cannot-handle-mdx-estrees-without-createevaluater",l}function k4(e){const r={};let l;for(l in e)Zh.call(e,l)&&(r[C4(l)]=e[l]);return r}function C4(e){let r=e.replace(o4,E4);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function E4(e){return"-"+e.toLowerCase()}const Sd={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"]},N4={};function Wh(e,r){const l=N4,i=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,o=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return rw(e,i,o)}function rw(e,r,l){if(A4(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 vb(e.children,r,l)}return Array.isArray(e)?vb(e,r,l):""}function vb(e,r,l){const i=[];let o=-1;for(;++o<e.length;)i[o]=rw(e[o],r,l);return i.join("")}function A4(e){return!!(e&&typeof e=="object")}const wb=document.createElement("i");function em(e){const r="&"+e+";";wb.innerHTML=r;const l=wb.textContent;return l.charCodeAt(l.length-1)===59&&e!=="semi"||l===r?!1:l}function an(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 xn(e,r){return e.length>0?(an(e,e.length,0,r),e):r}const Sb={}.hasOwnProperty;function lw(e){const r={};let l=-1;for(;++l<e.length;)T4(r,e[l]);return r}function T4(e,r){let l;for(l in r){const o=(Sb.call(e,l)?e[l]:void 0)||(e[l]={}),u=r[l];let c;if(u)for(c in u){Sb.call(o,c)||(o[c]=[]);const f=u[c];j4(o[c],Array.isArray(f)?f:f?[f]:[])}}}function j4(e,r){let l=-1;const i=[];for(;++l<r.length;)(r[l].add==="after"?e:i).push(r[l]);an(e,0,0,i)}function iw(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 Nn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bt=ll(/[A-Za-z]/),Rt=ll(/[\dA-Za-z]/),_4=ll(/[#-'*+\--9=?A-Z^-~]/);function su(e){return e!==null&&(e<32||e===127)}const ih=ll(/\d/),R4=ll(/[\dA-Fa-f]/),O4=ll(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function et(e){return e!==null&&(e<0||e===32)}function Le(e){return e===-2||e===-1||e===32}const Du=ll(new RegExp("\\p{P}|\\p{S}","u")),Rl=ll(/\s/);function ll(e){return r;function r(l){return l!==null&&l>-1&&e.test(String.fromCharCode(l))}}function Pi(e){const r=[];let l=-1,i=0,o=0;for(;++l<e.length;){const u=e.charCodeAt(l);let c="";if(u===37&&Rt(e.charCodeAt(l+1))&&Rt(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 qe(e,r,l,i){const o=i?i-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(d){return Le(d)?(e.enter(l),f(d)):r(d)}function f(d){return Le(d)&&u++<o?(e.consume(d),f):(e.exit(l),r(d))}}const M4={tokenize:z4};function z4(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"),qe(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 D4={tokenize:L4},kb={tokenize:B4};function L4(e){const r=this,l=[];let i=0,o,u,c;return f;function f(R){if(i<l.length){const B=l[i];return r.containerState=B[1],e.attempt(B[0].continuation,d,m)(R)}return m(R)}function d(R){if(i++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,o&&_();const B=r.events.length;let P=B,z;for(;P--;)if(r.events[P][0]==="exit"&&r.events[P][1].type==="chunkFlow"){z=r.events[P][1].end;break}A(i);let q=B;for(;q<r.events.length;)r.events[q][1].end={...z},q++;return an(r.events,P+1,0,r.events.slice(B)),r.events.length=q,m(R)}return f(R)}function m(R){if(i===l.length){if(!o)return b(R);if(o.currentConstruct&&o.currentConstruct.concrete)return k(R);r.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(kb,g,y)(R)}function g(R){return o&&_(),A(i),b(R)}function y(R){return r.parser.lazy[r.now().line]=i!==l.length,c=r.now().offset,k(R)}function b(R){return r.containerState={},e.attempt(kb,v,k)(R)}function v(R){return i++,l.push([r.currentConstruct,r.containerState]),b(R)}function k(R){if(R===null){o&&_(),A(0),e.consume(R);return}return o=o||r.parser.flow(r.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:u}),C(R)}function C(R){if(R===null){N(e.exit("chunkFlow"),!0),A(0),e.consume(R);return}return we(R)?(e.consume(R),N(e.exit("chunkFlow")),i=0,r.interrupt=void 0,f):(e.consume(R),C)}function N(R,B){const P=r.sliceStream(R);if(B&&P.push(null),R.previous=u,u&&(u.next=R),u=R,o.defineSkip(R.start),o.write(P),r.parser.lazy[R.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 q=r.events.length;let Y=q,oe,U;for(;Y--;)if(r.events[Y][0]==="exit"&&r.events[Y][1].type==="chunkFlow"){if(oe){U=r.events[Y][1].end;break}oe=!0}for(A(i),z=q;z<r.events.length;)r.events[z][1].end={...U},z++;an(r.events,Y+1,0,r.events.slice(q)),r.events.length=z}}function A(R){let B=l.length;for(;B-- >R;){const P=l[B];r.containerState=P[1],P[0].exit.call(r,e)}l.length=R}function _(){o.write([null]),u=void 0,o=void 0,r.containerState._closeFlow=void 0}}function B4(e,r,l){return qe(e,e.attempt(this.parser.constructs.document,r,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Oi(e){if(e===null||et(e)||Rl(e))return 1;if(Du(e))return 2}function Lu(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 ah={name:"attention",resolveAll:U4,tokenize:H4};function U4(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};Cb(y,-d),Cb(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=xn(m,[["enter",e[i][1],r],["exit",e[i][1],r]])),m=xn(m,[["enter",o,r],["enter",c,r],["exit",c,r],["enter",u,r]]),m=xn(m,Lu(r.parser.constructs.insideSpan.null,e.slice(i+1,l),r)),m=xn(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=xn(m,[["enter",e[l][1],r],["exit",e[l][1],r]])):g=0,an(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 H4(e,r){const l=this.parser.constructs.attentionMarkers.null,i=this.previous,o=Oi(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=Oi(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 Cb(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const P4={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 Bt(v)?(e.consume(v),c):v===64?l(v):m(v)}function c(v){return v===43||v===45||v===46||Rt(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||Rt(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||su(v)?l(v):(e.consume(v),d)}function m(v){return v===64?(e.consume(v),g):_4(v)?(e.consume(v),m):l(v)}function g(v){return Rt(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||Rt(v))&&i++<63){const k=v===45?b:y;return e.consume(v),k}return l(v)}}const fo={partial:!0,tokenize:F4};function F4(e,r,l){return i;function i(u){return Le(u)?qe(e,o,"linePrefix")(u):o(u)}function o(u){return u===null||we(u)?r(u):l(u)}}const aw={continuation:{tokenize:V4},exit:G4,name:"blockQuote",tokenize:I4};function I4(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 Le(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(c))}}function V4(e,r,l){const i=this;return o;function o(c){return Le(c)?qe(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(aw,r,l)(c)}}function G4(e){e.exit("blockQuote")}const ow={name:"characterEscape",tokenize:Y4};function Y4(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 O4(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):l(u)}}const sw={name:"characterReference",tokenize:$4};function $4(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=Rt,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=R4,g):(e.enter("characterReferenceValue"),u=7,c=ih,g(y))}function g(y){if(y===59&&o){const b=e.exit("characterReferenceValue");return c===Rt&&!em(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 Eb={partial:!0,tokenize:Q4},Nb={concrete:!0,name:"codeFenced",tokenize:X4};function X4(e,r,l){const i=this,o={partial:!0,tokenize:P};let u=0,c=0,f;return d;function d(z){return m(z)}function m(z){const q=i.events[i.events.length-1];return u=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[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"),Le(z)?qe(e,y,"whitespace")(z):y(z))}function y(z){return z===null||we(z)?(e.exit("codeFencedFence"),i.interrupt?r(z):e.check(Eb,C,B)(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)):Le(z)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),qe(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,B,N)(z)}function N(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),A}function A(z){return u>0&&Le(z)?qe(e,_,"linePrefix",u+1)(z):_(z)}function _(z){return z===null||we(z)?e.check(Eb,C,B)(z):(e.enter("codeFlowValue"),R(z))}function R(z){return z===null||we(z)?(e.exit("codeFlowValue"),_(z)):(e.consume(z),R)}function B(z){return e.exit("codeFenced"),r(z)}function P(z,q,Y){let oe=0;return U;function U($){return z.enter("lineEnding"),z.consume($),z.exit("lineEnding"),re}function re($){return z.enter("codeFencedFence"),Le($)?qe(z,le,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):le($)}function le($){return $===f?(z.enter("codeFencedFenceSequence"),ue($)):Y($)}function ue($){return $===f?(oe++,z.consume($),ue):oe>=c?(z.exit("codeFencedFenceSequence"),Le($)?qe(z,Z,"whitespace")($):Z($)):Y($)}function Z($){return $===null||we($)?(z.exit("codeFencedFence"),q($)):Y($)}}}function Q4(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 kd={name:"codeIndented",tokenize:K4},Z4={partial:!0,tokenize:J4};function K4(e,r,l){const i=this;return o;function o(m){return e.enter("codeIndented"),qe(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(Z4,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 J4(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):qe(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 W4={name:"codeText",previous:tO,resolve:eO,tokenize:nO};function eO(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 tO(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nO(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 rO{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&&Fa(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),Fa(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Fa(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);Fa(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Fa(this.left,l.reverse())}}}function Fa(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 uw(e){const r={};let l=-1,i,o,u,c,f,d,m;const g=new rO(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,lO(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 an(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!m}function lO(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 N=[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,N.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):N.pop(),b=N.length;b--;){const A=f.slice(N[b],N[b+1]),_=u.pop();d.push([_,_+A.length-1]),e.splice(_,2,A)}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 iO={resolve:oO,tokenize:sO},aO={partial:!0,tokenize:uO};function oO(e){return uw(e),e}function sO(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(aO,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 uO(e,r,l){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),qe(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 cw(e,r,l,i,o,u,c,f,d){const m=d||Number.POSITIVE_INFINITY;let g=0;return y;function y(A){return A===60?(e.enter(i),e.enter(o),e.enter(u),e.consume(A),e.exit(u),b):A===null||A===32||A===41||su(A)?l(A):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),C(A))}function b(A){return A===62?(e.enter(u),e.consume(A),e.exit(u),e.exit(o),e.exit(i),r):(e.enter(f),e.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===62?(e.exit("chunkString"),e.exit(f),b(A)):A===null||A===60||we(A)?l(A):(e.consume(A),A===92?k:v)}function k(A){return A===60||A===62||A===92?(e.consume(A),v):v(A)}function C(A){return!g&&(A===null||A===41||et(A))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),r(A)):g<m&&A===40?(e.consume(A),g++,C):A===41?(e.consume(A),g--,C):A===null||A===32||A===40||su(A)?l(A):(e.consume(A),A===92?N:C)}function N(A){return A===40||A===41||A===92?(e.consume(A),C):C(A)}}function fw(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=!Le(v)),v===92?b:y)}function b(v){return v===91||v===92||v===93?(e.consume(v),f++,y):y(v)}}function dw(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"),qe(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 Qa(e,r){let l;return i;function i(o){return we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l=!0,i):Le(o)?qe(e,i,l?"linePrefix":"lineSuffix")(o):r(o)}}const cO={name:"definition",tokenize:dO},fO={partial:!0,tokenize:hO};function dO(e,r,l){const i=this;let o;return u;function u(v){return e.enter("definition"),c(v)}function c(v){return fw.call(i,e,f,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return o=Nn(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 et(v)?Qa(e,m)(v):m(v)}function m(v){return cw(e,g,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function g(v){return e.attempt(fO,y,y)(v)}function y(v){return Le(v)?qe(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 hO(e,r,l){return i;function i(f){return et(f)?Qa(e,o)(f):l(f)}function o(f){return dw(e,u,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Le(f)?qe(e,c,"whitespace")(f):c(f)}function c(f){return f===null||we(f)?r(f):l(f)}}const mO={name:"hardBreakEscape",tokenize:pO};function pO(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 gO={name:"headingAtx",resolve:yO,tokenize:xO};function yO(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"},an(e,i,l-i+1,[["enter",o,r],["enter",u,r],["exit",u,r],["exit",o,r]])),e}function xO(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||et(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)):Le(g)?qe(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||et(g)?(e.exit("atxHeadingText"),f(g)):(e.consume(g),m)}}const bO=["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"],Ab=["pre","script","style","textarea"],vO={concrete:!0,name:"htmlFlow",resolveTo:kO,tokenize:CO},wO={partial:!0,tokenize:NO},SO={partial:!0,tokenize:EO};function kO(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 CO(e,r,l){const i=this;let o,u,c,f,d;return m;function m(j){return g(j)}function g(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),y}function y(j){return j===33?(e.consume(j),b):j===47?(e.consume(j),u=!0,C):j===63?(e.consume(j),o=3,i.interrupt?r:T):Bt(j)?(e.consume(j),c=String.fromCharCode(j),N):l(j)}function b(j){return j===45?(e.consume(j),o=2,v):j===91?(e.consume(j),o=5,f=0,k):Bt(j)?(e.consume(j),o=4,i.interrupt?r:T):l(j)}function v(j){return j===45?(e.consume(j),i.interrupt?r:T):l(j)}function k(j){const ne="CDATA[";return j===ne.charCodeAt(f++)?(e.consume(j),f===ne.length?i.interrupt?r:le:k):l(j)}function C(j){return Bt(j)?(e.consume(j),c=String.fromCharCode(j),N):l(j)}function N(j){if(j===null||j===47||j===62||et(j)){const ne=j===47,de=c.toLowerCase();return!ne&&!u&&Ab.includes(de)?(o=1,i.interrupt?r(j):le(j)):bO.includes(c.toLowerCase())?(o=6,ne?(e.consume(j),A):i.interrupt?r(j):le(j)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?l(j):u?_(j):R(j))}return j===45||Rt(j)?(e.consume(j),c+=String.fromCharCode(j),N):l(j)}function A(j){return j===62?(e.consume(j),i.interrupt?r:le):l(j)}function _(j){return Le(j)?(e.consume(j),_):U(j)}function R(j){return j===47?(e.consume(j),U):j===58||j===95||Bt(j)?(e.consume(j),B):Le(j)?(e.consume(j),R):U(j)}function B(j){return j===45||j===46||j===58||j===95||Rt(j)?(e.consume(j),B):P(j)}function P(j){return j===61?(e.consume(j),z):Le(j)?(e.consume(j),P):R(j)}function z(j){return j===null||j===60||j===61||j===62||j===96?l(j):j===34||j===39?(e.consume(j),d=j,q):Le(j)?(e.consume(j),z):Y(j)}function q(j){return j===d?(e.consume(j),d=null,oe):j===null||we(j)?l(j):(e.consume(j),q)}function Y(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||et(j)?P(j):(e.consume(j),Y)}function oe(j){return j===47||j===62||Le(j)?R(j):l(j)}function U(j){return j===62?(e.consume(j),re):l(j)}function re(j){return j===null||we(j)?le(j):Le(j)?(e.consume(j),re):l(j)}function le(j){return j===45&&o===2?(e.consume(j),D):j===60&&o===1?(e.consume(j),X):j===62&&o===4?(e.consume(j),O):j===63&&o===3?(e.consume(j),T):j===93&&o===5?(e.consume(j),ie):we(j)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(wO,Q,ue)(j)):j===null||we(j)?(e.exit("htmlFlowData"),ue(j)):(e.consume(j),le)}function ue(j){return e.check(SO,Z,Q)(j)}function Z(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),$}function $(j){return j===null||we(j)?ue(j):(e.enter("htmlFlowData"),le(j))}function D(j){return j===45?(e.consume(j),T):le(j)}function X(j){return j===47?(e.consume(j),c="",ee):le(j)}function ee(j){if(j===62){const ne=c.toLowerCase();return Ab.includes(ne)?(e.consume(j),O):le(j)}return Bt(j)&&c.length<8?(e.consume(j),c+=String.fromCharCode(j),ee):le(j)}function ie(j){return j===93?(e.consume(j),T):le(j)}function T(j){return j===62?(e.consume(j),O):j===45&&o===2?(e.consume(j),T):le(j)}function O(j){return j===null||we(j)?(e.exit("htmlFlowData"),Q(j)):(e.consume(j),O)}function Q(j){return e.exit("htmlFlow"),r(j)}}function EO(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 NO(e,r,l){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(fo,r,l)}}const AO={name:"htmlText",tokenize:TO};function TO(e,r,l){const i=this;let o,u,c;return f;function f(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),d}function d(T){return T===33?(e.consume(T),m):T===47?(e.consume(T),P):T===63?(e.consume(T),R):Bt(T)?(e.consume(T),Y):l(T)}function m(T){return T===45?(e.consume(T),g):T===91?(e.consume(T),u=0,k):Bt(T)?(e.consume(T),_):l(T)}function g(T){return T===45?(e.consume(T),v):l(T)}function y(T){return T===null?l(T):T===45?(e.consume(T),b):we(T)?(c=y,X(T)):(e.consume(T),y)}function b(T){return T===45?(e.consume(T),v):y(T)}function v(T){return T===62?D(T):T===45?b(T):y(T)}function k(T){const O="CDATA[";return T===O.charCodeAt(u++)?(e.consume(T),u===O.length?C:k):l(T)}function C(T){return T===null?l(T):T===93?(e.consume(T),N):we(T)?(c=C,X(T)):(e.consume(T),C)}function N(T){return T===93?(e.consume(T),A):C(T)}function A(T){return T===62?D(T):T===93?(e.consume(T),A):C(T)}function _(T){return T===null||T===62?D(T):we(T)?(c=_,X(T)):(e.consume(T),_)}function R(T){return T===null?l(T):T===63?(e.consume(T),B):we(T)?(c=R,X(T)):(e.consume(T),R)}function B(T){return T===62?D(T):R(T)}function P(T){return Bt(T)?(e.consume(T),z):l(T)}function z(T){return T===45||Rt(T)?(e.consume(T),z):q(T)}function q(T){return we(T)?(c=q,X(T)):Le(T)?(e.consume(T),q):D(T)}function Y(T){return T===45||Rt(T)?(e.consume(T),Y):T===47||T===62||et(T)?oe(T):l(T)}function oe(T){return T===47?(e.consume(T),D):T===58||T===95||Bt(T)?(e.consume(T),U):we(T)?(c=oe,X(T)):Le(T)?(e.consume(T),oe):D(T)}function U(T){return T===45||T===46||T===58||T===95||Rt(T)?(e.consume(T),U):re(T)}function re(T){return T===61?(e.consume(T),le):we(T)?(c=re,X(T)):Le(T)?(e.consume(T),re):oe(T)}function le(T){return T===null||T===60||T===61||T===62||T===96?l(T):T===34||T===39?(e.consume(T),o=T,ue):we(T)?(c=le,X(T)):Le(T)?(e.consume(T),le):(e.consume(T),Z)}function ue(T){return T===o?(e.consume(T),o=void 0,$):T===null?l(T):we(T)?(c=ue,X(T)):(e.consume(T),ue)}function Z(T){return T===null||T===34||T===39||T===60||T===61||T===96?l(T):T===47||T===62||et(T)?oe(T):(e.consume(T),Z)}function $(T){return T===47||T===62||et(T)?oe(T):l(T)}function D(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),r):l(T)}function X(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),ee}function ee(T){return Le(T)?qe(e,ie,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):ie(T)}function ie(T){return e.enter("htmlTextData"),c(T)}}const tm={name:"labelEnd",resolveAll:OO,resolveTo:MO,tokenize:zO},jO={tokenize:DO},_O={tokenize:LO},RO={tokenize:BO};function OO(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&&an(e,0,e.length,l),e}function MO(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=xn(f,e.slice(u+1,u+i+3)),f=xn(f,[["enter",g,r]]),f=xn(f,Lu(r.parser.constructs.insideSpan.null,e.slice(u+i+4,c-3),r)),f=xn(f,[["exit",g,r],e[c-2],e[c-1],["exit",m,r]]),f=xn(f,e.slice(c+1)),f=xn(f,[["exit",d,r]]),an(e,u,e.length,f),e}function zO(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(Nn(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(jO,g,c?g:y)(b):b===91?e.attempt(_O,g,c?m:y)(b):c?g(b):y(b)}function m(b){return e.attempt(RO,g,y)(b)}function g(b){return r(b)}function y(b){return u._balanced=!0,l(b)}}function DO(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 et(y)?Qa(e,u)(y):u(y)}function u(y){return y===41?g(y):cw(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return et(y)?Qa(e,d)(y):g(y)}function f(y){return l(y)}function d(y){return y===34||y===39||y===40?dw(e,m,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function m(y){return et(y)?Qa(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 LO(e,r,l){const i=this;return o;function o(f){return fw.call(i,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return i.parser.defined.includes(Nn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?r(f):l(f)}function c(f){return l(f)}}function BO(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 UO={name:"labelStartImage",resolveAll:tm.resolveAll,tokenize:HO};function HO(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 PO={name:"labelStartLink",resolveAll:tm.resolveAll,tokenize:qO};function qO(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 Cd={name:"lineEnding",tokenize:FO};function FO(e,r){return l;function l(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),qe(e,r,"linePrefix")}}const Zs={name:"thematicBreak",tokenize:IO};function IO(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"),Le(m)?qe(e,f,"whitespace")(m):f(m))}}const Yt={continuation:{tokenize:$O},exit:QO,name:"list",tokenize:YO},VO={partial:!0,tokenize:ZO},GO={partial:!0,tokenize:XO};function YO(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:ih(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(Zs,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 ih(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(fo,i.interrupt?l:g,e.attempt(VO,b,y))}function g(v){return i.containerState.initialBlankLine=!0,u++,b(v)}function y(v){return Le(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 $O(e,r,l){const i=this;return i.containerState._closeFlow=void 0,e.check(fo,o,u);function o(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,qe(e,r,"listItemIndent",i.containerState.size+1)(f)}function u(f){return i.containerState.furtherBlankLines||!Le(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(GO,r,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,qe(e,e.attempt(Yt,r,l),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function XO(e,r,l){const i=this;return qe(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 QO(e){e.exit(this.containerState.type)}function ZO(e,r,l){const i=this;return qe(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!Le(u)&&c&&c[1].type==="listItemPrefixWhitespace"?r(u):l(u)}}const Tb={name:"setextUnderline",resolveTo:KO,tokenize:JO};function KO(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 JO(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"),Le(m)?qe(e,d,"lineSuffix")(m):d(m))}function d(m){return m===null||we(m)?(e.exit("setextHeadingLine"),r(m)):l(m)}}const WO={tokenize:eM};function eM(e){const r=this,l=e.attempt(fo,i,e.attempt(this.parser.constructs.flowInitial,o,qe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(iO,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 tM={resolveAll:mw()},nM=hw("string"),rM=hw("text");function hw(e){return{resolveAll:mw(e==="text"?lM: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 mw(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 lM(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 iM={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:aw},aM={91:cO},oM={[-2]:kd,[-1]:kd,32:kd},sM={35:gO,42:Zs,45:[Tb,Zs],60:vO,61:Tb,95:Zs,96:Nb,126:Nb},uM={38:sw,92:ow},cM={[-5]:Cd,[-4]:Cd,[-3]:Cd,33:UO,38:sw,42:ah,60:[P4,AO],91:PO,92:[mO,ow],93:tm,95:ah,96:W4},fM={null:[ah,tM]},dM={null:[42,95]},hM={null:[]},mM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:dM,contentInitial:aM,disable:hM,document:iM,flow:sM,flowInitial:oM,insideSpan:fM,string:uM,text:cM},Symbol.toStringTag,{value:"Module"}));function pM(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:q(P),check:q(z),consume:_,enter:R,exit:B,interrupt:q(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=xn(c,re),N(),c[c.length-1]!==null?[]:(Y(r,0),m.events=Lu(u,m.events,m),m.events)}function b(re,le){return yM(v(re),le)}function v(re){return gM(c,re)}function k(){const{_bufferIndex:re,_index:le,line:ue,column:Z,offset:$}=i;return{_bufferIndex:re,_index:le,line:ue,column:Z,offset:$}}function C(re){o[re.line]=re.column,U()}function N(){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;)A(le.charCodeAt(i._bufferIndex));else A(le)}}function A(re){g=g(re)}function _(re){we(re)?(i.line++,i.column=1,i.offset+=re===-3?2:1,U()):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 R(re,le){const ue=le||{};return ue.type=re,ue.start=k(),m.events.push(["enter",ue,m]),f.push(ue),ue}function B(re){const le=f.pop();return le.end=k(),m.events.push(["exit",le,m]),le}function P(re,le){Y(re,le.from)}function z(re,le){le.restore()}function q(re,le){return ue;function ue(Z,$,D){let X,ee,ie,T;return Array.isArray(Z)?Q(Z):"tokenize"in Z?Q([Z]):O(Z);function O(fe){return Ne;function Ne(Fe){const ve=Fe!==null&&fe[Fe],it=Fe!==null&&fe.null,gt=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(it)?it:it?[it]:[]];return Q(gt)(Fe)}}function Q(fe){return X=fe,ee=0,fe.length===0?D:j(fe[ee])}function j(fe){return Ne;function Ne(Fe){return T=oe(),ie=fe,fe.partial||(m.currentConstruct=fe),fe.name&&m.parser.constructs.disable.null.includes(fe.name)?de():fe.tokenize.call(le?Object.assign(Object.create(m),le):m,d,ne,de)(Fe)}}function ne(fe){return re(ie,T),$}function de(fe){return T.restore(),++ee<X.length?j(X[ee]):D}}}function Y(re,le){re.resolveAll&&!u.includes(re)&&u.push(re),re.resolve&&an(m.events,le,m.events.length-le,re.resolve(m.events.slice(le),m)),re.resolveTo&&(m.events=re.resolveTo(m.events,m))}function oe(){const re=k(),le=m.previous,ue=m.currentConstruct,Z=m.events.length,$=Array.from(f);return{from:Z,restore:D};function D(){i=re,m.previous=le,m.currentConstruct=ue,m.events.length=Z,f=$,U()}}function U(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function gM(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 yM(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=`
376
+ `;break}case-3:{c=`\r
377
+ `;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 xM(e){const i={constructs:lw([mM,...(e||{}).extensions||[]]),content:o(M4),defined:[],document:o(D4),flow:o(WO),lazy:{},string:o(nM),text:o(rM)};return i;function o(u){return c;function c(f){return pM(i,u,f)}}}function bM(e){for(;!uw(e););return e}const jb=/[\0\t\n\r]/g;function vM(){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(jb.lastIndex=y,m=jb.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 wM=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function SM(e){return e.replace(wM,kM)}function kM(e,r,l){if(r)return r;if(l.charCodeAt(0)===35){const o=l.charCodeAt(1),u=o===120||o===88;return iw(l.slice(u?2:1),u?16:10)}return em(l)||e}const pw={}.hasOwnProperty;function CM(e,r,l){return r&&typeof r=="object"&&(l=r,r=void 0),EM(l)(bM(xM(l).document().write(vM()(e,r,!0))))}function EM(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Xt),autolinkProtocol:oe,autolinkEmail:oe,atxHeading:u(vn),blockQuote:u(it),characterEscape:oe,characterReference:oe,codeFenced:u(gt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(gt,c),codeText:u(zt,c),codeTextData:oe,data:oe,codeFlowValue:oe,definition:u(jt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(yt),hardBreakEscape:u(wn),hardBreakTrailing:u(wn),htmlFlow:u(yr,c),htmlFlowData:oe,htmlText:u(yr,c),htmlTextData:oe,image:u(xr),label:c,link:u(Xt),listItem:u(il),listItemValue:b,listOrdered:u(br,y),listUnordered:u(br),paragraph:u(qi),reference:j,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(vn),strong:u(Fi),thematicBreak:u(Ii)},exit:{atxHeading:d(),atxHeadingSequence:P,autolink:d(),autolinkEmail:ve,autolinkProtocol:Fe,blockQuote:d(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:fe,characterReference:Ne,codeFenced:d(N),codeFencedFence:C,codeFencedFenceInfo:v,codeFencedFenceMeta:k,codeFlowValue:U,codeIndented:d(A),codeText:d($),codeTextData:U,data:U,definition:d(),definitionDestinationString:B,definitionLabelString:_,definitionTitleString:R,emphasis:d(),hardBreakEscape:d(le),hardBreakTrailing:d(le),htmlFlow:d(ue),htmlFlowData:U,htmlText:d(Z),htmlTextData:U,image:d(X),label:ie,labelText:ee,lineEnding:re,link:d(D),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ne,resourceDestinationString:T,resourceTitleString:O,resource:Q,setextHeading:d(Y),setextHeadingLineSequence:q,setextHeadingText:z,strong:d(),thematicBreak:d()}};gw(r,(e||{}).mdastExtensions||[]);const l={};return i;function i(J){let ce={type:"root",children:[]};const Se={stack:[ce],tokenStack:[],config:r,enter:f,exit:m,buffer:c,resume:g,data:l},Re=[];let ae=-1;for(;++ae<J.length;)if(J[ae][1].type==="listOrdered"||J[ae][1].type==="listUnordered")if(J[ae][0]==="enter")Re.push(ae);else{const he=Re.pop();ae=o(J,he,ae)}for(ae=-1;++ae<J.length;){const he=r[J[ae][0]];pw.call(he,J[ae][1].type)&&he[J[ae][1].type].call(Object.assign({sliceSerialize:J[ae][2].sliceSerialize},Se),J[ae][1])}if(Se.tokenStack.length>0){const he=Se.tokenStack[Se.tokenStack.length-1];(he[1]||_b).call(Se,void 0,he[0])}for(ce.position={start:$r(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:$r(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae<r.transforms.length;)ce=r.transforms[ae](ce)||ce;return ce}function o(J,ce,Se){let Re=ce-1,ae=-1,he=!1,Ee,He,Me,Ut;for(;++Re<=Se;){const Je=J[Re];switch(Je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Je[0]==="enter"?ae++:ae--,Ut=void 0;break}case"lineEndingBlank":{Je[0]==="enter"&&(Ee&&!Ut&&!ae&&!Me&&(Me=Re),Ut=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ut=void 0}if(!ae&&Je[0]==="enter"&&Je[1].type==="listItemPrefix"||ae===-1&&Je[0]==="exit"&&(Je[1].type==="listUnordered"||Je[1].type==="listOrdered")){if(Ee){let vr=Re;for(He=void 0;vr--;){const Sn=J[vr];if(Sn[1].type==="lineEnding"||Sn[1].type==="lineEndingBlank"){if(Sn[0]==="exit")continue;He&&(J[He][1].type="lineEndingBlank",he=!0),Sn[1].type="lineEnding",He=vr}else if(!(Sn[1].type==="linePrefix"||Sn[1].type==="blockQuotePrefix"||Sn[1].type==="blockQuotePrefixWhitespace"||Sn[1].type==="blockQuoteMarker"||Sn[1].type==="listItemIndent"))break}Me&&(!He||Me<He)&&(Ee._spread=!0),Ee.end=Object.assign({},He?J[He][1].start:Je[1].end),J.splice(He||Re,0,["exit",Ee,Je[2]]),Re++,Se++}if(Je[1].type==="listItemPrefix"){const vr={type:"listItem",_spread:!1,start:Object.assign({},Je[1].start),end:void 0};Ee=vr,J.splice(Re,0,["enter",vr,Je[2]]),Re++,Se++,Me=void 0,Ut=!0}}}return J[ce][1]._spread=he,Se}function u(J,ce){return Se;function Se(Re){f.call(this,J(Re),Re),ce&&ce.call(this,Re)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(J,ce,Se){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([ce,Se||void 0]),J.position={start:$r(ce.start),end:void 0}}function d(J){return ce;function ce(Se){J&&J.call(this,Se),m.call(this,Se)}}function m(J,ce){const Se=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==J.type&&(ce?ce.call(this,J,Re[0]):(Re[1]||_b).call(this,J,Re[0]));else throw new Error("Cannot close `"+J.type+"` ("+Xa({start:J.start,end:J.end})+"): it’s not open");Se.position.end=$r(J.end)}function g(){return Wh(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(J){if(this.data.expectingFirstListItemValue){const ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function v(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=J}function k(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=J}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.value=J.replace(/(\r?\n|\r)$/g,"")}function _(J){const ce=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ce,Se.identifier=Nn(this.sliceSerialize(J)).toLowerCase()}function R(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.title=J}function B(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.url=J}function P(J){const ce=this.stack[this.stack.length-1];if(!ce.depth){const Se=this.sliceSerialize(J).length;ce.depth=Se}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function q(J){const ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function oe(J){const Se=this.stack[this.stack.length-1].children;let Re=Se[Se.length-1];(!Re||Re.type!=="text")&&(Re=kt(),Re.position={start:$r(J.start),end:void 0},Se.push(Re)),this.stack.push(Re)}function U(J){const ce=this.stack.pop();ce.value+=this.sliceSerialize(J),ce.position.end=$r(J.end)}function re(J){const ce=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=ce.children[ce.children.length-1];Se.position.end=$r(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ce.type)&&(oe.call(this,J),U.call(this,J))}function le(){this.data.atHardBreak=!0}function ue(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.value=J}function Z(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.value=J}function $(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.value=J}function D(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ce,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function X(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ce,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function ee(J){const ce=this.sliceSerialize(J),Se=this.stack[this.stack.length-2];Se.label=SM(ce),Se.identifier=Nn(ce).toLowerCase()}function ie(){const J=this.stack[this.stack.length-1],ce=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const Re=J.children;Se.children=Re}else Se.alt=ce}function T(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.url=J}function O(){const J=this.resume(),ce=this.stack[this.stack.length-1];ce.title=J}function Q(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function ne(J){const ce=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ce,Se.identifier=Nn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function de(J){this.data.characterReferenceType=J.type}function fe(J){const ce=this.sliceSerialize(J),Se=this.data.characterReferenceType;let Re;Se?(Re=iw(ce,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Re=em(ce);const ae=this.stack[this.stack.length-1];ae.value+=Re}function Ne(J){const ce=this.stack.pop();ce.position.end=$r(J.end)}function Fe(J){U.call(this,J);const ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(J)}function ve(J){U.call(this,J);const ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(J)}function it(){return{type:"blockquote",children:[]}}function gt(){return{type:"code",lang:null,meta:null,value:""}}function zt(){return{type:"inlineCode",value:""}}function jt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function yt(){return{type:"emphasis",children:[]}}function vn(){return{type:"heading",depth:0,children:[]}}function wn(){return{type:"break"}}function yr(){return{type:"html",value:""}}function xr(){return{type:"image",title:null,url:"",alt:null}}function Xt(){return{type:"link",title:null,url:"",children:[]}}function br(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function il(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function qi(){return{type:"paragraph",children:[]}}function Fi(){return{type:"strong",children:[]}}function kt(){return{type:"text",value:""}}function Ii(){return{type:"thematicBreak"}}}function $r(e){return{line:e.line,column:e.column,offset:e.offset}}function gw(e,r){let l=-1;for(;++l<r.length;){const i=r[l];Array.isArray(i)?gw(e,i):NM(e,i)}}function NM(e,r){let l;for(l in r)if(pw.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 _b(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+Xa({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+Xa({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Xa({start:r.start,end:r.end})+") is still open")}function AM(e){const r=this;r.parser=l;function l(i){return CM(i,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function TM(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 jM(e,r){const l={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,l),[e.applyData(r,l),{type:"text",value:`
378
+ `}]}function _M(e,r){const l=r.value?r.value+`
379
+ `:"",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 RM(e,r){const l={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function OM(e,r){const l={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function MM(e,r){const l=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(r.identifier).toUpperCase(),o=Pi(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 zM(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 DM(e,r){if(e.options.allowDangerousHtml){const l={type:"raw",value:r.value};return e.patch(r,l),e.applyData(r,l)}}function yw(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 LM(e,r){const l=String(r.identifier).toUpperCase(),i=e.definitionById.get(l);if(!i)return yw(e,r);const o={src:Pi(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 BM(e,r){const l={src:Pi(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 UM(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 HM(e,r){const l=String(r.identifier).toUpperCase(),i=e.definitionById.get(l);if(!i)return yw(e,r);const o={href:Pi(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 PM(e,r){const l={href:Pi(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 qM(e,r,l){const i=e.all(r),o=l?FM(l):xw(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:`
380
+ `}),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:`
381
+ `});const m={type:"element",tagName:"li",properties:u,children:c};return e.patch(r,m),e.applyData(r,m)}function FM(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=xw(l[i])}return r}function xw(e){const r=e.spread;return r??e.children.length>1}function IM(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 VM(e,r){const l={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function GM(e,r){const l={type:"root",children:e.wrap(e.all(r))};return e.patch(r,l),e.applyData(r,l)}function YM(e,r){const l={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function $M(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=Qh(r.children[1]),d=K1(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 XM(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 QM(e,r){const l={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}const Rb=9,Ob=32;function ZM(e){const r=String(e),l=/\r?\n|\r/g;let i=l.exec(r),o=0;const u=[];for(;i;)u.push(Mb(r.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=l.exec(r);return u.push(Mb(r.slice(o),o>0,!1)),u.join("")}function Mb(e,r,l){let i=0,o=e.length;if(r){let u=e.codePointAt(i);for(;u===Rb||u===Ob;)i++,u=e.codePointAt(i)}if(l){let u=e.codePointAt(o-1);for(;u===Rb||u===Ob;)o--,u=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function KM(e,r){const l={type:"text",value:ZM(String(r.value))};return e.patch(r,l),e.applyData(r,l)}function JM(e,r){const l={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,l),e.applyData(r,l)}const WM={blockquote:TM,break:jM,code:_M,delete:RM,emphasis:OM,footnoteReference:MM,heading:zM,html:DM,imageReference:LM,image:BM,inlineCode:UM,linkReference:HM,link:PM,listItem:qM,list:IM,paragraph:VM,root:GM,strong:YM,table:$M,tableCell:QM,tableRow:XM,text:KM,thematicBreak:JM,toml:Ps,yaml:Ps,definition:Ps,footnoteDefinition:Ps};function Ps(){}const bw=-1,Bu=0,Za=1,uu=2,nm=3,rm=4,lm=5,im=6,vw=7,ww=8,zb=typeof self=="object"?self:globalThis,e3=(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 Bu:case bw:return l(c,o);case Za:{const f=l([],o);for(const d of c)f.push(i(d));return f}case uu:{const f=l({},o);for(const[d,m]of c)f[i(d)]=i(m);return f}case nm:return l(new Date(c),o);case rm:{const{source:f,flags:d}=c;return l(new RegExp(f,d),o)}case lm:{const f=l(new Map,o);for(const[d,m]of c)f.set(i(d),i(m));return f}case im:{const f=l(new Set,o);for(const d of c)f.add(i(d));return f}case vw:{const{name:f,message:d}=c;return l(new zb[f](d),o)}case ww: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 zb[u](c),o)};return i},Db=e=>e3(new Map,e)(0),ki="",{toString:t3}={},{keys:n3}=Object,Ia=e=>{const r=typeof e;if(r!=="object"||!e)return[Bu,r];const l=t3.call(e).slice(8,-1);switch(l){case"Array":return[Za,ki];case"Object":return[uu,ki];case"Date":return[nm,ki];case"RegExp":return[rm,ki];case"Map":return[lm,ki];case"Set":return[im,ki];case"DataView":return[Za,l]}return l.includes("Array")?[Za,l]:l.includes("Error")?[vw,l]:[uu,l]},qs=([e,r])=>e===Bu&&(r==="function"||r==="symbol"),r3=(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]=Ia(c);switch(f){case Bu:{let g=c;switch(d){case"bigint":f=ww,g=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);g=null;break;case"undefined":return o([bw],c)}return o([f,g],c)}case Za:{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 uu:{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 n3(c))(e||!qs(Ia(c[b])))&&g.push([u(b),u(c[b])]);return y}case nm:return o([f,c.toISOString()],c);case rm:{const{source:g,flags:y}=c;return o([f,{source:g,flags:y}],c)}case lm:{const g=[],y=o([f,g],c);for(const[b,v]of c)(e||!(qs(Ia(b))||qs(Ia(v))))&&g.push([u(b),u(v)]);return y}case im:{const g=[],y=o([f,g],c);for(const b of c)(e||!qs(Ia(b)))&&g.push(u(b));return y}}const{message:m}=c;return o([f,{name:d,message:m}],c)};return u},Lb=(e,{json:r,lossy:l}={})=>{const i=[];return r3(!(r||l),!!r,new Map,i)(e),i},cu=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?Db(Lb(e,r)):structuredClone(e):(e,r)=>Db(Lb(e,r));function l3(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 i3(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function a3(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=e.options.footnoteBackContent||l3,i=e.options.footnoteBackLabel||i3,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=Pi(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 _=typeof l=="string"?l:l(d,v);typeof _=="string"&&(_={type:"text",value:_}),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(_)?_:[_]})}const N=g[g.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const _=N.children[N.children.length-1];_&&_.type==="text"?_.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...k)}else g.push(...k);const A={type:"element",tagName:"li",properties:{id:r+"fn-"+b},children:e.wrap(g,!0)};e.patch(m,A),f.push(A)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...cu(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
382
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
383
+ `}]}}const Uu=(function(e){if(e==null)return c3;if(typeof e=="function")return Hu(e);if(typeof e=="object")return Array.isArray(e)?o3(e):s3(e);if(typeof e=="string")return u3(e);throw new Error("Expected function, string, or object as test")});function o3(e){const r=[];let l=-1;for(;++l<e.length;)r[l]=Uu(e[l]);return Hu(i);function i(...o){let u=-1;for(;++u<r.length;)if(r[u].apply(this,o))return!0;return!1}}function s3(e){const r=e;return Hu(l);function l(i){const o=i;let u;for(u in e)if(o[u]!==r[u])return!1;return!0}}function u3(e){return Hu(r);function r(l){return l&&l.type===e}}function Hu(e){return r;function r(l,i,o){return!!(f3(l)&&e.call(this,l,typeof i=="number"?i:void 0,o||void 0))}}function c3(){return!0}function f3(e){return e!==null&&typeof e=="object"&&"type"in e}const Sw=[],d3=!0,oh=!1,h3="skip";function kw(e,r,l,i){let o;typeof r=="function"&&typeof l!="function"?(i=l,l=r):o=r;const u=Uu(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=Sw,k,C,N;if((!r||u(d,m,g[g.length-1]||void 0))&&(v=m3(l(d,g)),v[0]===oh))return v;if("children"in d&&d.children){const A=d;if(A.children&&v[0]!==h3)for(C=(i?A.children.length:-1)+c,N=g.concat(A);C>-1&&C<A.children.length;){const _=A.children[C];if(k=f(_,C,N)(),k[0]===oh)return k;C=typeof k[1]=="number"?k[1]:C+c}}return v}}}function m3(e){return Array.isArray(e)?e:typeof e=="number"?[d3,e]:e==null?Sw:[e]}function am(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),kw(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 sh={}.hasOwnProperty,p3={};function g3(e,r){const l=r||p3,i=new Map,o=new Map,u=new Map,c={...WM,...l.handlers},f={all:m,applyData:x3,definitionById:i,footnoteById:o,footnoteCounts:u,footnoteOrder:[],handlers:c,one:d,options:l,patch:y3,wrap:v3};return am(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(sh.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,...N}=g,A=cu(N);return A.children=f.all(g),A}return cu(g)}return(f.options.unknownHandler||b3)(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=Bb(k.value)),!Array.isArray(k)&&k.type==="element")){const C=k.children[0];C&&C.type==="text"&&(C.value=Bb(C.value))}Array.isArray(k)?y.push(...k):y.push(k)}}}return y}}function y3(e,r){e.position&&(r.position=i4(e))}function x3(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,cu(u)),"children"in l&&l.children&&o!==null&&o!==void 0&&(l.children=o)}return l}function b3(e,r){const l=r.data||{},i="value"in r&&!(sh.call(l,"hProperties")||sh.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 v3(e,r){const l=[];let i=-1;for(r&&l.push({type:"text",value:`
384
+ `});++i<e.length;)i&&l.push({type:"text",value:`
385
+ `}),l.push(e[i]);return r&&e.length>0&&l.push({type:"text",value:`
386
+ `}),l}function Bb(e){let r=0,l=e.charCodeAt(r);for(;l===9||l===32;)r++,l=e.charCodeAt(r);return e.slice(r)}function Ub(e,r){const l=g3(e,r),i=l.one(e,void 0),o=a3(l),u=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&u.children.push({type:"text",value:`
387
+ `},o),u}function w3(e,r){return e&&"run"in e?async function(l,i){const o=Ub(l,{file:i,...r});await e.run(o,i)}:function(l,i){return Ub(l,{file:i,...e||r})}}function Hb(e){if(e)throw e}var Ed,Pb;function S3(){if(Pb)return Ed;Pb=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 Ed=function d(){var m,g,y,b,v,k,C=arguments[0],N=1,A=arguments.length,_=!1;for(typeof C=="boolean"&&(_=C,C=arguments[1]||{},N=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});N<A;++N)if(m=arguments[N],m!=null)for(g in m)y=f(C,g),b=f(m,g),C!==b&&(_&&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(_,k,b)})):typeof b<"u"&&c(C,{name:g,newValue:b}));return C},Ed}var k3=S3();const Nd=hu(k3);function uh(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 C3(){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?E3(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 E3(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 Bn={basename:N3,dirname:A3,extname:T3,join:j3,sep:"/"};function N3(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');ho(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 A3(e){if(ho(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 T3(e){ho(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 j3(...e){let r=-1,l;for(;++r<e.length;)ho(e[r]),e[r]&&(l=l===void 0?e[r]:l+"/"+e[r]);return l===void 0?".":_3(l)}function _3(e){ho(e);const r=e.codePointAt(0)===47;let l=R3(e,!r);return l.length===0&&!r&&(l="."),l.length>0&&e.codePointAt(e.length-1)===47&&(l+="/"),r?"/"+l:l}function R3(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 ho(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const O3={cwd:M3};function M3(){return"/"}function ch(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function z3(e){if(typeof e=="string")e=new URL(e);else if(!ch(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 D3(e)}function D3(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 Ad=["history","path","basename","stem","extname","dirname"];class Cw{constructor(r){let l;r?ch(r)?l={path:r}:typeof r=="string"||L3(r)?l={value:r}:l=r:l={},this.cwd="cwd"in l?"":O3.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Ad.length;){const u=Ad[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)Ad.includes(o)||(this[o]=l[o])}get basename(){return typeof this.path=="string"?Bn.basename(this.path):void 0}set basename(r){jd(r,"basename"),Td(r,"basename"),this.path=Bn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Bn.dirname(this.path):void 0}set dirname(r){qb(this.basename,"dirname"),this.path=Bn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Bn.extname(this.path):void 0}set extname(r){if(Td(r,"extname"),qb(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=Bn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){ch(r)&&(r=z3(r)),jd(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Bn.basename(this.path,this.extname):void 0}set stem(r){jd(r,"stem"),Td(r,"stem"),this.path=Bn.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 Mt(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 Td(e,r){if(e&&e.includes(Bn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Bn.sep+"`")}function jd(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function qb(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function L3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const B3=(function(e){const i=this.constructor.prototype,o=i[e],u=function(){return o.apply(u,arguments)};return Object.setPrototypeOf(u,i),u}),U3={}.hasOwnProperty;class om extends B3{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=C3()}copy(){const r=new om;let l=-1;for(;++l<this.attachers.length;){const i=this.attachers[l];r.use(...i)}return r.data(Nd(!0,{},this.namespace)),r}data(r,l){return typeof r=="string"?arguments.length===2?(Od("data",this.frozen),this.namespace[r]=l,this):U3.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Od("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=Fs(r),i=this.parser||this.Parser;return _d("parse",i),i(String(l),l)}process(r,l){const i=this;return this.freeze(),_d("process",this.parser||this.Parser),Rd("process",this.compiler||this.Compiler),l?o(void 0,l):new Promise(o);function o(u,c){const f=Fs(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(),_d("processSync",this.parser||this.Parser),Rd("processSync",this.compiler||this.Compiler),this.process(r,o),Ib("processSync","process",l),i;function o(u,c){l=!0,Hb(u),i=c}}run(r,l,i){Fb(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=Fs(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),Ib("runSync","run",i),o;function u(c,f){Hb(c),o=f,i=!0}}stringify(r,l){this.freeze();const i=Fs(l),o=this.compiler||this.Compiler;return Rd("stringify",o),Fb(r),o(r,i)}use(r,...l){const i=this.attachers,o=this.namespace;if(Od("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=Nd(!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];uh(C)&&uh(v)&&(v=Nd(!0,C,v)),i[b]=[m,v,...k]}}}}const H3=new om().freeze();function _d(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Rd(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Od(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 Fb(e){if(!uh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ib(e,r,l){if(!l)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Fs(e){return P3(e)?e:new Cw(e)}function P3(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function q3(e){return typeof e=="string"||F3(e)}function F3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const I3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vb=[],Gb={allowDangerousHtml:!0},V3=/^(https?|ircs?|mailto|xmpp)$/i,G3=[{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 Mi(e){const r=Y3(e),l=$3(e);return X3(r.runSync(r.parse(l),l),e)}function Y3(e){const r=e.rehypePlugins||Vb,l=e.remarkPlugins||Vb,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Gb}:Gb;return H3().use(AM).use(l).use(w3,i).use(r)}function $3(e){const r=e.children||"",l=new Cw;return typeof r=="string"&&(l.value=r),l}function X3(e,r){const l=r.allowedElements,i=r.allowElement,o=r.components,u=r.disallowedElements,c=r.skipHtml,f=r.unwrapDisallowed,d=r.urlTransform||Q3;for(const g of G3)Object.hasOwn(r,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+I3+g.id,void 0);return am(e,m),c4(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 Sd)if(Object.hasOwn(Sd,v)&&Object.hasOwn(g.properties,v)){const k=g.properties[v],C=Sd[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 Q3(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||V3.test(e.slice(0,r))?e:""}function Yb(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 Z3(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function K3(e,r,l){const o=Uu((l||{}).ignore||[]),u=J3(r);let c=-1;for(;++c<u.length;)kw(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 N=y.children.indexOf(m);let A=!1,_=[];b.lastIndex=0;let R=b.exec(m.value);for(;R;){const B=R.index,P={index:R.index,input:R.input,stack:[...g,m]};let z=v(...R,P);if(typeof z=="string"&&(z=z.length>0?{type:"text",value:z}:void 0),z===!1?b.lastIndex=B+1:(k!==B&&_.push({type:"text",value:m.value.slice(k,B)}),Array.isArray(z)?_.push(...z):z&&_.push(z),k=B+R[0].length,A=!0),!b.global)break;R=b.exec(m.value)}return A?(k<m.value.length&&_.push({type:"text",value:m.value.slice(k)}),y.children.splice(N,1,..._)):_=[m],N+_.length}}function J3(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([W3(o[0]),e5(o[1])])}return r}function W3(e){return typeof e=="string"?new RegExp(Z3(e),"g"):e}function e5(e){return typeof e=="function"?e:function(){return e}}const Md="phrasing",zd=["autolink","link","image","label"];function t5(){return{transforms:[s5],enter:{literalAutolink:r5,literalAutolinkEmail:Dd,literalAutolinkHttp:Dd,literalAutolinkWww:Dd},exit:{literalAutolink:o5,literalAutolinkEmail:a5,literalAutolinkHttp:l5,literalAutolinkWww:i5}}}function n5(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Md,notInConstruct:zd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Md,notInConstruct:zd},{character:":",before:"[ps]",after:"\\/",inConstruct:Md,notInConstruct:zd}]}}function r5(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Dd(e){this.config.enter.autolinkProtocol.call(this,e)}function l5(e){this.config.exit.autolinkProtocol.call(this,e)}function i5(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 a5(e){this.config.exit.autolinkEmail.call(this,e)}function o5(e){this.exit(e)}function s5(e){K3(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,u5],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),c5]],{ignore:["link","linkReference"]})}function u5(e,r,l,i,o){let u="";if(!Ew(o)||(/^w/i.test(r)&&(l=r+l,r="",u="http://"),!f5(l)))return!1;const c=d5(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 c5(e,r,l,i){return!Ew(i,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+l,children:[{type:"text",value:r+"@"+l}]}}function f5(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 d5(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=Yb(e,"(");let u=Yb(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 Ew(e,r){const l=e.input.charCodeAt(e.index-1);return(e.index===0||Rl(l)||Du(l))&&(!r||l!==47)}Nw.peek=w5;function h5(){this.buffer()}function m5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function p5(){this.buffer()}function g5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function y5(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Nn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function x5(e){this.exit(e)}function b5(e){const r=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=Nn(this.sliceSerialize(e)).toLowerCase(),l.label=r}function v5(e){this.exit(e)}function w5(){return"["}function Nw(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 S5(){return{enter:{gfmFootnoteCallString:h5,gfmFootnoteCall:m5,gfmFootnoteDefinitionLabelString:p5,gfmFootnoteDefinition:g5},exit:{gfmFootnoteCallString:y5,gfmFootnoteCall:x5,gfmFootnoteDefinitionLabelString:b5,gfmFootnoteDefinition:v5}}}function k5(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:l,footnoteReference:Nw},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?`
388
+ `:" ")+u.indentLines(u.containerFlow(i,f.current()),r?Aw:C5))),m(),d}}function C5(e,r,l){return r===0?e:Aw(e,r,l)}function Aw(e,r,l){return(l?"":" ")+e}const E5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Tw.peek=_5;function N5(){return{canContainEols:["delete"],enter:{strikethrough:T5},exit:{strikethrough:j5}}}function A5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:E5}],handlers:{delete:Tw}}}function T5(e){this.enter({type:"delete",children:[]},e)}function j5(e){this.exit(e)}function Tw(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 _5(){return"~"}function R5(e){return e.length}function O5(e,r){const l=r||{},i=(l.align||[]).concat(),o=l.stringLength||R5,u=[],c=[],f=[],d=[];let m=0,g=-1;for(;++g<e.length;){const C=[],N=[];let A=-1;for(e[g].length>m&&(m=e[g].length);++A<e[g].length;){const _=M5(e[g][A]);if(l.alignDelimiters!==!1){const R=o(_);N[A]=R,(d[A]===void 0||R>d[A])&&(d[A]=R)}C.push(_)}c[g]=C,f[g]=N}let y=-1;if(typeof i=="object"&&"length"in i)for(;++y<m;)u[y]=$b(i[y]);else{const C=$b(i);for(;++y<m;)u[y]=C}y=-1;const b=[],v=[];for(;++y<m;){const C=u[y];let N="",A="";C===99?(N=":",A=":"):C===108?N=":":C===114&&(A=":");let _=l.alignDelimiters===!1?1:Math.max(1,d[y]-N.length-A.length);const R=N+"-".repeat(_)+A;l.alignDelimiters!==!1&&(_=N.length+_+A.length,_>d[y]&&(d[y]=_),v[y]=_),b[y]=R}c.splice(1,0,b),f.splice(1,0,v),g=-1;const k=[];for(;++g<c.length;){const C=c[g],N=f[g];y=-1;const A=[];for(;++y<m;){const _=C[y]||"";let R="",B="";if(l.alignDelimiters!==!1){const P=d[y]-(N[y]||0),z=u[y];z===114?R=" ".repeat(P):z===99?P%2?(R=" ".repeat(P/2+.5),B=" ".repeat(P/2-.5)):(R=" ".repeat(P/2),B=R):B=" ".repeat(P)}l.delimiterStart!==!1&&!y&&A.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&_==="")&&(l.delimiterStart!==!1||y)&&A.push(" "),l.alignDelimiters!==!1&&A.push(R),A.push(_),l.alignDelimiters!==!1&&A.push(B),l.padding!==!1&&A.push(" "),(l.delimiterEnd!==!1||y!==m-1)&&A.push("|")}k.push(l.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return k.join(`
389
+ `)}function M5(e){return e==null?"":String(e)}function $b(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 z5(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()),D5);return o(),c}function D5(e,r,l){return">"+(l?"":" ")+e}function L5(e,r){return Xb(e,r.inConstruct,!0)&&!Xb(e,r.notInConstruct,!1)}function Xb(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 Qb(e,r,l,i){let o=-1;for(;++o<l.unsafe.length;)if(l.unsafe[o].character===`
390
+ `&&L5(l.stack,l.unsafe[o]))return/[ \t]/.test(i.before)?"":" ";return`\\
391
+ `}function B5(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 U5(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 H5(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 P5(e,r,l,i){const o=H5(l),u=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(U5(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(B5(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:`
392
+ `,encode:["`"],...f.current()})),y()}return g+=f.move(`
393
+ `),u&&(g+=f.move(u+`
394
+ `)),g+=f.move(d),m(),g}function q5(e,r,l){return(l?"":" ")+e}function sm(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 F5(e,r,l,i){const o=sm(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?" ":`
395
+ `,...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 I5(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 no(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fu(e,r,l){const i=Oi(e),o=Oi(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}}jw.peek=V5;function jw(e,r,l,i){const o=I5(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=fu(i.before.charCodeAt(i.before.length-1),m,o);g.inside&&(d=no(m)+d.slice(1));const y=d.charCodeAt(d.length-1),b=fu(i.after.charCodeAt(0),y,o);b.inside&&(d=d.slice(0,-1)+no(y));const v=c.move(o);return u(),l.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+d+v}function V5(e,r,l){return l.options.emphasis||"*"}function G5(e,r){let l=!1;return am(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return l=!0,oh}),!!((!e.depth||e.depth<3)&&Wh(e)&&(r.options.setext||l))}function Y5(e,r,l,i){const o=Math.max(Math.min(6,e.depth||1),1),u=l.createTracker(i);if(G5(e,l)){const g=l.enter("headingSetext"),y=l.enter("phrasing"),b=l.containerPhrasing(e,{...u.current(),before:`
396
+ `,after:`
397
+ `});return y(),g(),b+`
398
+ `+(o===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
399
+ `))+1))}const c="#".repeat(o),f=l.enter("headingAtx"),d=l.enter("phrasing");u.move(c+" ");let m=l.containerPhrasing(e,{before:"# ",after:`
400
+ `,...u.current()});return/^[\t ]/.test(m)&&(m=no(m.charCodeAt(0))+m.slice(1)),m=m?c+" "+m:c,l.options.closeAtx&&(m+=" "+c),d(),f(),m}_w.peek=$5;function _w(e){return e.value||""}function $5(){return"<"}Rw.peek=X5;function Rw(e,r,l,i){const o=sm(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 X5(){return"!"}Ow.peek=Q5;function Ow(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 Q5(){return"!"}Mw.peek=Z5;function Mw(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 Z5(){return"`"}function zw(e,r){const l=Wh(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))}Dw.peek=K5;function Dw(e,r,l,i){const o=sm(l),u=o==='"'?"Quote":"Apostrophe",c=l.createTracker(i);let f,d;if(zw(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 K5(e,r,l){return zw(e,l)?"<":"["}Lw.peek=J5;function Lw(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 J5(){return"["}function um(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 W5(e){const r=um(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 ez(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 Bw(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 tz(e,r,l,i){const o=l.enter("list"),u=l.bulletCurrent;let c=e.ordered?ez(l):um(l);const f=e.ordered?c==="."?")":".":W5(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),Bw(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 nz(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 rz(e,r,l,i){const o=nz(l);let u=l.bulletCurrent||um(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 lz(e,r,l,i){const o=l.enter("paragraph"),u=l.enter("phrasing"),c=l.containerPhrasing(e,i);return u(),o(),c}const iz=Uu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function az(e,r,l,i){return(e.children.some(function(c){return iz(c)})?l.containerPhrasing:l.containerFlow).call(l,e,i)}function oz(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}Uw.peek=sz;function Uw(e,r,l,i){const o=oz(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=fu(i.before.charCodeAt(i.before.length-1),m,o);g.inside&&(d=no(m)+d.slice(1));const y=d.charCodeAt(d.length-1),b=fu(i.after.charCodeAt(0),y,o);b.inside&&(d=d.slice(0,-1)+no(y));const v=c.move(o+o);return u(),l.attentionEncodeSurroundingInfo={after:b.outside,before:g.outside},f+d+v}function sz(e,r,l){return l.options.strong||"*"}function uz(e,r,l,i){return l.safe(e.value,i)}function cz(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 fz(e,r,l){const i=(Bw(l)+(l.options.ruleSpaces?" ":"")).repeat(cz(l));return l.options.ruleSpaces?i.slice(0,-1):i}const Hw={blockquote:z5,break:Qb,code:P5,definition:F5,emphasis:jw,hardBreak:Qb,heading:Y5,html:_w,image:Rw,imageReference:Ow,inlineCode:Mw,link:Dw,linkReference:Lw,list:tz,listItem:rz,paragraph:lz,root:az,strong:Uw,text:uz,thematicBreak:fz};function dz(){return{enter:{table:hz,tableData:Zb,tableHeader:Zb,tableRow:pz},exit:{codeText:gz,table:mz,tableData:Ld,tableHeader:Ld,tableRow:Ld}}}function hz(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 mz(e){this.exit(e),this.data.inTable=void 0}function pz(e){this.enter({type:"tableRow",children:[]},e)}function Ld(e){this.exit(e)}function Zb(e){this.enter({type:"tableCell",children:[]},e)}function gz(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,yz));const l=this.stack[this.stack.length-1];l.type,l.value=r,this.exit(e)}function yz(e,r){return r==="|"?r:e}function xz(e){const r=e||{},l=r.tableCellPadding,i=r.tablePipeAlign,o=r.stringLength,u=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
401
+ `,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,N){return m(g(v,C,N),v.align)}function f(v,k,C,N){const A=y(v,C,N),_=m([A]);return _.slice(0,_.indexOf(`
402
+ `))}function d(v,k,C,N){const A=C.enter("tableCell"),_=C.enter("phrasing"),R=C.containerPhrasing(v,{...N,before:u,after:u});return _(),A(),R}function m(v,k){return O5(v,{align:k,alignDelimiters:i,padding:l,stringLength:o})}function g(v,k,C){const N=v.children;let A=-1;const _=[],R=k.enter("table");for(;++A<N.length;)_[A]=y(N[A],k,C);return R(),_}function y(v,k,C){const N=v.children;let A=-1;const _=[],R=k.enter("tableRow");for(;++A<N.length;)_[A]=d(N[A],v,k,C);return R(),_}function b(v,k,C){let N=Hw.inlineCode(v,k,C);return C.stack.includes("tableCell")&&(N=N.replace(/\|/g,"\\$&")),N}}function bz(){return{exit:{taskListCheckValueChecked:Kb,taskListCheckValueUnchecked:Kb,paragraph:wz}}}function vz(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Sz}}}function Kb(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function wz(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 Sz(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=Hw.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 kz(){return[t5(),S5(),N5(),dz(),bz()]}function Cz(e){return{extensions:[n5(),k5(e),A5(),xz(e),vz()]}}const Ez={tokenize:Rz,partial:!0},Pw={tokenize:Oz,partial:!0},qw={tokenize:Mz,partial:!0},Fw={tokenize:zz,partial:!0},Nz={tokenize:Dz,partial:!0},Iw={name:"wwwAutolink",tokenize:jz,previous:Gw},Vw={name:"protocolAutolink",tokenize:_z,previous:Yw},gr={name:"emailAutolink",tokenize:Tz,previous:$w},Gn={};function Az(){return{text:Gn}}let Nl=48;for(;Nl<123;)Gn[Nl]=gr,Nl++,Nl===58?Nl=65:Nl===91&&(Nl=97);Gn[43]=gr;Gn[45]=gr;Gn[46]=gr;Gn[95]=gr;Gn[72]=[gr,Vw];Gn[104]=[gr,Vw];Gn[87]=[gr,Iw];Gn[119]=[gr,Iw];function Tz(e,r,l){const i=this;let o,u;return c;function c(y){return!fh(y)||!$w.call(i,i.previous)||cm(i.events)?l(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return fh(y)?(e.consume(y),f):y===64?(e.consume(y),d):l(y)}function d(y){return y===46?e.check(Nz,g,m)(y):y===45||y===95||Rt(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&&Bt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(y)):l(y)}}function jz(e,r,l){const i=this;return o;function o(c){return c!==87&&c!==119||!Gw.call(i,i.previous)||cm(i.events)?l(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ez,e.attempt(Pw,e.attempt(qw,u),l),l)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(c)}}function _z(e,r,l){const i=this;let o="",u=!1;return c;function c(y){return(y===72||y===104)&&Yw.call(i,i.previous)&&!cm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(y),e.consume(y),f):l(y)}function f(y){if(Bt(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||su(y)||et(y)||Rl(y)||Du(y)?l(y):e.attempt(Pw,e.attempt(qw,g),l)(y)}function g(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(y)}}function Rz(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 Oz(e,r,l){let i,o,u;return c;function c(m){return m===46||m===95?e.check(Fw,d,f)(m):m===null||et(m)||Rl(m)||m!==45&&Du(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 Mz(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(Fw,r,u)(c):c===null||et(c)||Rl(c)?r(c):(e.consume(c),o)}function u(c){return c===41&&i++,e.consume(c),o}}function zz(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||et(f)||Rl(f)?r(f):l(f)}function o(f){return f===null||f===40||f===91||et(f)||Rl(f)?r(f):i(f)}function u(f){return Bt(f)?c(f):l(f)}function c(f){return f===59?(e.consume(f),i):Bt(f)?(e.consume(f),c):l(f)}}function Dz(e,r,l){return i;function i(u){return e.consume(u),o}function o(u){return Rt(u)?l(u):r(u)}}function Gw(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||et(e)}function Yw(e){return!Bt(e)}function $w(e){return!(e===47||fh(e))}function fh(e){return e===43||e===45||e===46||e===95||Rt(e)}function cm(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 Lz={tokenize:Vz,partial:!0};function Bz(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:qz,continuation:{tokenize:Fz},exit:Iz}},text:{91:{name:"gfmFootnoteCall",tokenize:Pz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Uz,resolveTo:Hz}}}}function Uz(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=Nn(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 Hz(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 Pz(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||et(y))return l(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return o.includes(Nn(i.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):l(y)}return et(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||et(k))return l(k);if(k===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return u=Nn(i.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return et(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),qe(e,v,"gfmFootnoteDefinitionWhitespace")):l(k)}function v(k){return r(k)}}function Fz(e,r,l){return e.check(fo,r,e.attempt(Lz,r,l))}function Iz(e){e.exit("gfmFootnoteDefinition")}function Vz(e,r,l){const i=this;return qe(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 Gz(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&&an(b,b.length,0,Lu(v,c.slice(m+1,d),f)),an(b,b.length,0,[["exit",y,f],["enter",c[d][1],f],["exit",c[d][1],f],["exit",g,f]]),an(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=Oi(m);if(k===126)return y>1?d(k):(c.consume(k),y++,v);if(y<2&&!l)return d(k);const N=c.exit("strikethroughSequenceTemporary"),A=Oi(k);return N._open=!A||A===2&&!!C,N._close=!C||C===2&&!!A,f(k)}}}class Yz{constructor(){this.map=[]}add(r,l,i){$z(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 $z(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 Xz(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 Qz(){return{flow:{null:{name:"table",tokenize:Zz,resolveAll:Kz}}}}function Zz(e,r,l){const i=this;let o=0,u=0,c;return f;function f(U){let re=i.events.length-1;for(;re>-1;){const Z=i.events[re][1].type;if(Z==="lineEnding"||Z==="linePrefix")re--;else break}const le=re>-1?i.events[re][1].type:null,ue=le==="tableHead"||le==="tableRow"?z:d;return ue===z&&i.parser.lazy[i.now().line]?l(U):ue(U)}function d(U){return e.enter("tableHead"),e.enter("tableRow"),m(U)}function m(U){return U===124||(c=!0,u+=1),g(U)}function g(U){return U===null?l(U):we(U)?u>1?(u=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),v):l(U):Le(U)?qe(e,g,"whitespace")(U):(u+=1,c&&(c=!1,o+=1),U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),c=!0,g):(e.enter("data"),y(U)))}function y(U){return U===null||U===124||et(U)?(e.exit("data"),g(U)):(e.consume(U),U===92?b:y)}function b(U){return U===92||U===124?(e.consume(U),y):y(U)}function v(U){return i.interrupt=!1,i.parser.lazy[i.now().line]?l(U):(e.enter("tableDelimiterRow"),c=!1,Le(U)?qe(e,k,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):k(U))}function k(U){return U===45||U===58?N(U):U===124?(c=!0,e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),C):P(U)}function C(U){return Le(U)?qe(e,N,"whitespace")(U):N(U)}function N(U){return U===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),A):U===45?(u+=1,A(U)):U===null||we(U)?B(U):P(U)}function A(U){return U===45?(e.enter("tableDelimiterFiller"),_(U)):P(U)}function _(U){return U===45?(e.consume(U),_):U===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(U),e.exit("tableDelimiterMarker"),R):(e.exit("tableDelimiterFiller"),R(U))}function R(U){return Le(U)?qe(e,B,"whitespace")(U):B(U)}function B(U){return U===124?k(U):U===null||we(U)?!c||o!==u?P(U):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(U)):P(U)}function P(U){return l(U)}function z(U){return e.enter("tableRow"),q(U)}function q(U){return U===124?(e.enter("tableCellDivider"),e.consume(U),e.exit("tableCellDivider"),q):U===null||we(U)?(e.exit("tableRow"),r(U)):Le(U)?qe(e,q,"whitespace")(U):(e.enter("data"),Y(U))}function Y(U){return U===null||U===124||et(U)?(e.exit("data"),q(U)):(e.consume(U),U===92?oe:Y)}function oe(U){return U===92||U===124?(e.consume(U),Y):Y(U)}}function Kz(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 Yz;for(;++l<e.length;){const v=e[l],k=v[1];v[0]==="enter"?k.type==="tableHead"?(f=!1,d!==0&&(Jb(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=Is(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=Is(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=Is(b,r,u,o,l,y)):c[1]!==0&&(y=Is(b,r,c,o,l,y)),o=0):o&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(c[3]=l)}for(d!==0&&Jb(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=Xz(r.events,l))}return e}function Is(e,r,l,i,o,u){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";l[0]!==0&&(u.end=Object.assign({},Ci(r.events,l[0])),e.add(l[0],0,[["exit",u,r]]));const d=Ci(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=Ci(r.events,l[2]),g=Ci(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({},Ci(r.events,o)),e.add(o,0,[["exit",u,r]]),u=void 0),u}function Jb(e,r,l,i,o){const u=[],c=Ci(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 Ci(e,r){const l=e[r],i=l[0]==="enter"?"start":"end";return l[1][i]}const Jz={name:"tasklistCheck",tokenize:eD};function Wz(){return{text:{91:Jz}}}function eD(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 et(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):Le(d)?e.check({tokenize:tD},r,l)(d):l(d)}}function tD(e,r,l){return qe(e,i,"whitespace");function i(o){return o===null?l(o):r(o)}}function nD(e){return lw([Az(),Bz(),Gz(e),Qz(),Wz()])}const rD={};function zi(e){const r=this,l=e||rD,i=r.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),u=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(nD(l)),u.push(kz()),c.push(Cz(l))}function lD({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(Mi,{remarkPlugins:[zi],components:zu,children:e})})})}function iD({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 Xw({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(Zr,{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 Bd({title:e,items:r,icon:l,getIcon:i}){return r.length===0?null:x.jsx(Xw,{title:e,count:r.length,children:x.jsx("div",{className:"flex flex-wrap gap-1.5",children:r.map(o=>x.jsx(F1,{icon:i?i(o):l,children:o},o))})})}function aD(e){const r=e.match(/^mcp__([^_]+)__(.+)$/);return r?{server:r[1],tool:r[2]}:null}function Qw({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 oD(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 Wb({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(Zr,{className:xe("h-3 w-3 text-muted-foreground transition-transform duration-200",r&&"rotate-90")}),x.jsx(Qw,{status:e.status}),x.jsx("span",{className:"text-muted-foreground font-medium",children:Al(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:oD(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(F1,{icon:q1(`mcp__${e.name}__${o}`),children:o},o))})]})}function sD({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(Qw,{status:"failed"}),x.jsxs("span",{className:"text-muted-foreground/60",children:[l.length," disconnected"]})]}):null;return x.jsx(Xw,{title:"MCP Servers",count:e.length,badge:i,children:x.jsxs("div",{className:"flex flex-col gap-2",children:[r.map(o=>x.jsx(Wb,{server:o},o.name)),l.map(o=>x.jsx(Wb,{server:o},o.name))]})})}function uD({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(Zr,{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 cD({message:e,rawJson:r}){const{coreTools:l,mcpServersWithTools:i}=S.useMemo(()=>{const o=new Map,u=[];for(const f of e.tools){const d=aD(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(rl,{children:x.jsxs(Ou,{expandedContent:x.jsx(Mu,{className:"my-4 text-xs",children:x.jsxs("div",{className:"flex flex-col gap-3",children:[x.jsx(MR,{children:e.model}),x.jsx(Bd,{title:"Tools",items:l,getIcon:o=>Wd[o]??P1}),x.jsx(Bd,{title:"Agents",items:e.agents,icon:Oh}),x.jsx(Bd,{title:"Commands",items:e.slashCommands,icon:YT}),x.jsx(sD,{servers:i}),r&&x.jsx(uD,{rawJson:r})]})}),children:[x.jsx(GA,{className:"h-5 w-5 text-logo"}),x.jsx(Wr,{children:"Session Started"})]})})}function fD({message:e}){return x.jsx(rl,{className:"hidden",children:x.jsxs(Ou,{expandedContent:x.jsx(Mu,{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(Oh,{className:"h-4 w-4 text-muted-foreground"})}),x.jsx(Wr,{children:"Account"})]})})}function dD({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(Mi,{remarkPlugins:[zi],components:zu,children:e.text})})}function hD({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(nT,{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 ev({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 Zw({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(jl,{strokeWidth:3,className:"translate-y-[0.5px] h-3 w-3 text-white dark:text-background"})})}function mD({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(ev,{label:e.label,description:e.description})}),x.jsx(Zw,{selected:r,multiSelect:l})]})}):x.jsx("div",{className:xe(u,c),children:x.jsx(ev,{label:e.label,description:e.description})})}function pD(e){if(e)try{return JSON.parse(e).answers}catch{return}}function gD({message:e,onSubmit:r,isLatest:l}){var le,ue;const i=((le=e.input)==null?void 0:le.questions)||[],o=!!e.result,u=pD(e.result),[c,f]=S.useState(0),[d,m]=S.useState({}),[g,y]=S.useState({}),[b,v]=S.useState(o),k=(Z,$)=>{var ie;const D=(ie=g[Z])==null?void 0:ie.trim(),X=d[Z]||"",ee=i.find(T=>T.question===Z);return ee!=null&&ee.multiSelect?[X,D].filter(Boolean).join(", "):D||X},C=Z=>{const $=d[Z.question]||"";return Z.multiSelect?$.split(", ").filter(Boolean):[$]},N=(Z,$)=>{const D=Z.question;if(Z.multiSelect){const X=d[D]?d[D].split(", ").filter(Boolean):[],ee=X.includes($)?X.filter(ie=>ie!==$):[...X,$];m({...d,[D]:ee.join(", ")})}else m({...d,[D]:$}),y({...g,[D]:""}),c<i.length-1&&setTimeout(()=>f(c+1),150)},A=(Z,$)=>{const D=Z.question;y({...g,[D]:$}),$&&!Z.multiSelect&&m({...d,[D]:""})},_=Z=>{Z.multiSelect&&g[Z.question]&&y({...g,[Z.question]:""})},R=i.every(Z=>k(Z.question).length>0),B=i[c],P=c===i.length-1,z=B&&k(B.question).length>0,q=()=>{c<i.length-1&&f(c+1)},Y=()=>{c>0&&f(c-1)},oe=()=>{if(!R)return;const Z={};for(const $ of i)Z[$.question]=k($.question);m(Z),v(!0),r(e.toolId,i,Z)};if(b||o){const Z=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(($,D)=>{const X=Z[$.question]||"",ee=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",!ee&&"border-b border-border"),children:[x.jsx("span",{className:"text-sm",children:$.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"})]},$.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(R0,{className:"h-4 w-4 text-muted-foreground"}),x.jsx("span",{className:"text-sm text-muted-foreground",children:"Questions pending (newer question active)"})]})});if(!B)return null;const U=C(B),re=g[B.question]||"";return x.jsxs("div",{className:"w-full space-y-3",children:[x.jsxs(hD,{question:B.question,currentIndex:c,totalQuestions:i.length,onBack:c>0?Y:void 0,children:[(ue=B.options)==null?void 0:ue.map(Z=>x.jsx(mD,{option:Z,selected:U.includes(Z.label),multiSelect:B.multiSelect,onClick:()=>N(B,Z.label)},Z.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:Z=>A(B,Z.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(Zw,{selected:!!re,multiSelect:B.multiSelect,onClick:B.multiSelect&&re?()=>_(B):void 0})]})})]}),x.jsxs("div",{className:"flex justify-end gap-2 mx-2",children:[!P&&z&&(B.multiSelect||!!re)&&x.jsx(Ge,{size:"sm",onClick:q,children:"Next"}),P&&x.jsx(Ge,{size:"sm",onClick:oe,disabled:!R,className:xe(!R&&"opacity-50 cursor-not-allowed","rounded-full"),children:"Submit"})]})]})}function yD({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(Ge,{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(jl,{className:"h-4 w-4 text-green-400"}):x.jsx(wu,{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(Ge,{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(eT,{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(Mi,{remarkPlugins:[zi],components:eh,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(hT,{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(Ge,{size:"sm",onClick:()=>r(e.toolId,!0,!0),className:"rounded-full bg-primary text-background pr-4 md:order-last",children:[x.jsx(QA,{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(Ge,{size:"sm",variant:"outline",onClick:()=>d(!0),className:"rounded-full border-border flex-1 md:flex-initial md:order-first",children:[x.jsx(M0,{className:"h-4 w-4 mr-1.5"}),"Suggest Edits"]}),x.jsxs(Ge,{size:"sm",variant:"outline",onClick:()=>r(e.toolId,!0),className:"rounded-full border-border flex-1 md:flex-initial",children:[x.jsx(jl,{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(Ge,{size:"sm",variant:"ghost",onClick:()=>{d(!1),g("")},className:"rounded-full text-muted-foreground",children:"Cancel"}),x.jsxs(Ge,{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(VT,{className:"h-4 w-4 mr-1.5"}),"Adjust Plan"]})]})]})]})]})}const xD={completed:{Icon:jl,iconClass:"text-emerald-500",textClass:"text-muted-foreground"},in_progress:{Icon:Ml,iconClass:"text-foreground animate-spin",textClass:"text-foreground font-medium"},pending:{Icon:oT,iconClass:"text-muted-foreground",textClass:"text-muted-foreground"}};function bD({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(TT,{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}=xD[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 Ud(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 vD(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 wD(e){const r=e.split(`
403
+ `),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 SD(e){return e.replace(/<[^>]+>/g,"")}function kD(e,r){const l=e.split(`
404
+ `),i=r.split(`
405
+ `),o=CD(l,i),u=ED(l,i,o);return ND(u)}function CD(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 ED(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 ND(e){return e.map(r=>{const l=r.type==="removed"?"-":r.type==="added"?"+":" ";return{type:r.type,content:`${l}${r.text}`}})}function tv({content:e,isDiff:r=!1,oldString:l,newString:i}){const o=S.useMemo(()=>r&&l&&i?kD(l,i):[],[r,l,i]),u=S.useMemo(()=>r?[]:wD(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:SD(f.content)})]},d))})})})})}function AD(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Kw({message:e,isLoading:r=!1,outputsUrl:l,localPath:i}){var B;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 q=e.input.pattern,Y=e.input.output_mode;return Y==="count"?`Count \`${q}\` occurrences`:Y==="content"?`Find \`${q}\` in text`:`Find \`${q}\` 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 ${Ud(e.input.file_path,i)}`;if(e.toolName==="Write")return`Write ${Ud(e.input.file_path,i)}`;if(e.toolName==="Edit")return`Edit ${Ud(e.input.file_path,i)}`;if(e.toolName==="mcp__lever__read_db_context"){const q=e.input.connection_name;return q?`Read ${Al(q)} Context`:"Read DB Context"}if(e.toolName==="mcp__lever__edit_db_context"){const q=e.input.connection_name;return q?`Edit ${Al(q)} Context`:"Edit DB Context"}if(e.toolName==="mcp__lever__write_db_context"){const q=e.input.connection_name;return q?`Update ${Al(q)} Context`:"Update DB Context"}const P=e.toolName.match(/^mcp__db__(.+)_query$/);if(P){const q=e.input.description;return q?`${q} from ${Al(P[1])}`:`Query ${P[1]}`}const z=e.toolName.match(/^mcp__(.+?)__(.+)$/);return z?`${Al(z[2])} from ${Al(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",N=e.toolName==="mcp__lever__read_db_context",{result:A,outputFile:_}=S.useMemo(()=>{let P={};if(typeof e.result=="string")try{P=JSON.parse(e.result)}catch{P={output:e.result}}else P=e.result??{};return{result:P,outputFile:vD(P.fullOutputFile,i)}},[e.result,i]),R=S.useMemo(()=>{if(!N||!e.result)return"";try{const P=typeof e.result=="string"?JSON.parse(e.result):e.result;if(Array.isArray(P))return P.map(z=>z.text).join(`
406
+ `)}catch{}return typeof e.result=="string"?e.result:JSON.stringify(e.result,null,2)},[e.result,N]);return x.jsx(rl,{className:"w-full",children:x.jsxs(Ou,{expandedContent:x.jsx(Mu,{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(Mi,{remarkPlugins:[zi],components:eh,children:e.input.context})})]}):k?x.jsx(tv,{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(Ha,{label:"Find",copyText:e.input.old_string,children:e.input.old_string}),x.jsx(Ha,{label:"Replace",copyText:e.input.new_string,children:e.input.new_string})]}):!C&&x.jsx(Ha,{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&&N&&x.jsxs("div",{children:[x.jsxs("span",{className:"font-medium text-muted-foreground",children:["Context (",(R.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(Mi,{remarkPlugins:[zi],components:eh,children:R})})]}),o&&C&&!e.isError&&x.jsx(tv,{content:typeof e.result=="string"?e.result:JSON.stringify(e.result,null,2)}),o&&!g&&!N&&!C&&!(k&&!e.isError)&&x.jsx(Ha,{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(Ha,{label:e.isError?"Error":x.jsxs("span",{className:"flex items-center justify-between w-full",children:[x.jsxs("span",{children:["Preview",A.isOutputTruncated?" (~25kb)":""]}),_&&l&&x.jsxs("a",{href:`${l}/api/file?path=${encodeURIComponent(_)}`,download:!0,onClick:P=>P.stopPropagation(),target:"_blank",className:"text-muted-foreground hover:text-foreground transition-colors",children:["Download (",AD(A.fullOutputLength),")"]})]}),copyText:A.output.replaceAll("\\n",`
407
+ `),children:A.output.replaceAll("\\n",`
408
+ `)})]})}),children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:(()=>{if(e.isError)return x.jsx(ao,{className:"size-4 text-destructive"});if(f)return x.jsx(Oh,{className:"size-4 text-muted-icon"});const P=q1(e.toolName);return x.jsx(P,{className:"size-4 text-muted-icon"})})()}),x.jsx(Wr,{className:"text-left transition-opacity duration-200 truncate",children:x.jsx(_u,{animate:u,shimmerWidth:Math.max(20,((B=d||c)==null?void 0:B.length)??99),children:d||c})})]})})}function TD({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(rl,{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(Wr,{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 jD({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(iT,{className:"h-4 w-4 ml-1.5"}),x.jsx("em",{children:"Interrupted"})]})})}function du({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 _D(){return x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(du,{}),x.jsx("span",{className:"text-[11px] tracking-widest text-muted-foreground uppercase flex-shrink-0",children:"Compacted"}),x.jsx(du,{})]})}function RD(){return x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(du,{}),x.jsx("span",{className:"text-[11px] tracking-widest text-muted-foreground uppercase flex-shrink-0",children:"Context Cleared"}),x.jsx(du,{})]})}function OD({message:e}){return x.jsx(rl,{children:x.jsxs(Ou,{expandedContent:x.jsx(Mu,{className:"my-4 text-xs",children:x.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:x.jsx(Mi,{remarkPlugins:[zi],components:zu,children:e.summary})})}),children:[x.jsx("div",{className:"w-5 h-5 relative flex items-center justify-center",children:x.jsx(O0,{className:"h-4.5 w-4.5 text-muted-foreground"})}),x.jsx(Wr,{children:"Summarized"})]})})}const MD={compacting:"Compacting..."};function zD({message:e}){const r=MD[e.status]||e.status;return x.jsxs(rl,{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(O0,{className:"h-4.5 w-4.5 text-muted-foreground"})}),x.jsx(Wr,{className:"text-left transition-opacity duration-200 truncate",children:r})]})}const nv={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"}},DD={key:"dbquery",singular:"query",plural:"queries"},LD={key:"other",singular:"tool call",plural:"tool calls"};function BD(e){return nv[e]?nv[e]:/^mcp__db__.+_query$/.test(e)?DD:LD}function UD(e){const r=new Map,l=[];for(const i of e){const o=i.processed.toolName,u=BD(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 HD({messages:e,isLoading:r,outputsUrl:l,localPath:i}){const[o,u]=S.useState(!1),c=S.useMemo(()=>UD(e),[e]),d=e.some(m=>m.processed.result===void 0)&&r;return x.jsx(rl,{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(Zr,{className:`h-4.5 w-4.5 text-muted-icon transition-all duration-200 ${o?"rotate-90":""}`})}),x.jsx(Wr,{className:"text-left",children:x.jsx(_u,{animate:d,children:c})})]})}),o&&x.jsxs("div",{className:"my-4 flex flex-col gap-3",children:[e.map(m=>x.jsx(Kw,{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(Zr,{className:"h-4.5 w-4.5 text-muted-icon -rotate-90"})}),x.jsx(Wr,{className:"text-left",children:"Collapse"})]})})]})]})})}const PD=new Set(["AskUserQuestion","ExitPlanMode","TodoWrite"]);function rv(e){var l;if(((l=e.processed)==null?void 0:l.kind)!=="tool")return!1;const r=e.processed.toolName;return!PD.has(r)}function qD(e){const r=[];let l=0;for(;l<e.length;){const i=e[l];if(rv(i)){const o=[i],u=l;for(l+=1;l<e.length&&rv(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 FD({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(lD,{content:d.content},d.id);const g=d.processed;if(!g)return x.jsx(iD,{json:d.content},d.id);switch(g.kind){case"system":return e.findIndex(k=>{var C;return((C=k.processed)==null?void 0:C.kind)==="system"})===m?x.jsx(cD,{message:g,rawJson:d.rawJson},d.id):null;case"account_info":return e.findIndex(k=>{var C;return((C=k.processed)==null?void 0:C.kind)==="account_info"})===m?x.jsx(fD,{message:g},d.id):null;case"text":return x.jsx(dD,{message:g},d.id);case"tool":return g.toolName==="AskUserQuestion"?x.jsx(gD,{message:g,onSubmit:o,isLatest:g.id===i.AskUserQuestion},d.id):g.toolName==="ExitPlanMode"?x.jsx(yD,{message:g,onConfirm:u,isLatest:g.id===i.ExitPlanMode},d.id):g.toolName==="TodoWrite"?g.id!==i.TodoWrite?null:x.jsx(bD,{message:g},d.id):x.jsx(Kw,{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(TD,{message:g},d.id)}case"interrupted":return x.jsx(jD,{message:g},d.id);case"compact_boundary":return x.jsx(_D,{},d.id);case"context_cleared":return x.jsx(RD,{},d.id);case"compact_summary":return x.jsx(OD,{message:g},d.id);case"status":return m===e.length-1?x.jsx(zD,{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(HD,{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 lv(){var r,l,i;const e=Cv();return x.jsx("div",{className:"flex-1 flex flex-col min-w-0 relative",children:x.jsxs(B1,{className:"bg-background flex-1 flex flex-col overflow-hidden border-0 rounded-none relative",children:[x.jsxs(H1,{className:"flex-1 p-0 overflow-hidden relative",children:[x.jsx(RR,{sidebarCollapsed:e.sidebarCollapsed,onOpenSidebar:e.openSidebar,onExpandSidebar:e.expandSidebar,onNewChat:e.handleCompose,localPath:e.navbarLocalPath,onOpenExternal:o=>{e.handleOpenExternal(o)}}),x.jsx(I1,{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($a,{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(FD,{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(DR,{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(HA,{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(AR,{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,planMode:e.planMode,onTogglePlanMode:e.hasSelectedProject?()=>{e.handleTogglePlanMode()}:void 0},e.activeChatId??"new-chat")})})]})})}function ID({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(Ge,{variant:"ghost",size:"icon",className:"h-8 w-8 text-muted-foreground hover:text-foreground",onClick:()=>void i(),children:r?x.jsx(jl,{className:"h-4 w-4 text-green-400"}):x.jsx(wu,{className:"h-4 w-4"})})}function iv({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(Zr,{className:"inline h-4 w-4 opacity-40"}),x.jsx("code",{children:e})]}),x.jsx(ID,{text:e})]})}function Vs({children:e}){return x.jsx("div",{className:"bg-card border border-border rounded-2xl p-4",children:e})}function Hd({children:e}){return x.jsx("h2",{className:"text-[13px] font-medium text-muted-foreground uppercase tracking-wider mb-3",children:e})}function av({narrow:e=!1,title:r,subtitle:l,icon:i=Su}){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 Pd({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 ov(){return x.jsx(qA,{className:"h-4 w-4 text-muted-foreground"})}function sv({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 VD({localPath:e,loading:r,onClick:l}){return x.jsxs(iu,{children:[x.jsx(au,{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(j0,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"}),x.jsx("span",{className:"font-medium text-foreground truncate flex-1",children:S1(e)}),r?x.jsx(Ml,{className:"h-4 w-4 text-muted-foreground group-hover:text-primary animate-spin flex-shrink-0"}):x.jsx(_h,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity flex-shrink-0"})]})}),x.jsx(eo,{children:x.jsx("p",{children:e})})]})}function GD({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(av,{title:(l==null?void 0:l.machine.displayName)??"Local Projects",subtitle:`${Lt} 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(Ge,{variant:"default",size:"sm",onClick:()=>d(!0),children:[x.jsx(z0,{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(VD,{localPath:b.localPath,loading:i===b.localPath,onClick:()=>{u(b.localPath)}},b.localPath))}):x.jsx(Vs,{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(av,{narrow:!0,icon:$x,title:g?`Connecting ${Lt}`:`Connect ${Lt}`,subtitle:g?`${Lt} is starting up and loading your local projects.`:`Run ${Lt} 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(Hd,{children:"Status"}),x.jsx("div",{className:"mb-8",children:x.jsx(Vs,{children:x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Ml,{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 ${Lt} 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:Hs()})," from any terminal on this machine."]})})]})})}),g?null:x.jsxs("div",{className:"mb-10",children:[x.jsx(Hd,{children:"How it works"}),x.jsx(Vs,{children:x.jsxs("div",{className:"flex items-center justify-around gap-6 py-4 px-2",children:[x.jsx(Pd,{icon:Rh,title:`${Lt} CLI`,subtitle:"On Your Machine"}),x.jsx(ov,{}),x.jsx(Pd,{icon:Su,title:`${Lt} Server`,subtitle:"Local WebSocket"}),x.jsx(ov,{}),x.jsx(Pd,{icon:$x,title:`${Lt} UI`,subtitle:"Project Chat"})]})})]}),g?null:x.jsxs("div",{className:"mb-10",children:[x.jsx(Hd,{children:"Setup"}),x.jsx(Vs,{children:x.jsxs("div",{className:"space-y-4",children:[x.jsxs(sv,{number:1,title:`Start ${Lt}`,children:[x.jsx("p",{children:"Run this command in your terminal:"}),x.jsx(iv,{children:Hs()})]}),x.jsxs(sv,{number:2,title:"Open the local UI",children:[x.jsxs("p",{children:[Lt," serves the app locally and opens the Local Projects page in an app-style browser window."]}),x.jsx(iv,{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:Hs("").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:Hs("--no-open")}),x.jsx("span",{className:"text-muted-foreground",children:"Start the server without opening the browser"})]})]})]})]})})]})]})]}),x.jsx(w1,{open:f,onOpenChange:d,onConfirm:b=>{c(b)}})]})}function YD(){const e=Cv();return x.jsx("div",{className:"flex-1 flex flex-col min-w-0 relative",children:x.jsx(GD,{connectionStatus:e.connectionStatus,ready:e.localProjectsReady,snapshot:e.localProjects,startingLocalPath:e.startingLocalPath,commandError:e.commandError,onOpenProject:e.handleOpenLocalProject,onCreateProject:e.handleCreateProject})})}function $D(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function Ln(){return new Date().toISOString()}function XD(e,r){var o,u,c,f;const l=$D(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:Dn(),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:Ln()},rawJson:l};if(d.type==="system"&&d.subtype==="account_info")return{processed:{id:Dn(),kind:"account_info",accountInfo:d.accountInfo,timestamp:Ln()},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:Dn(),kind:"text",text:m.text,timestamp:Ln()},rawJson:l};if(m.type==="tool_use"){const g={id:Dn(),kind:"tool",toolName:m.name,toolId:m.id,input:m.input||{},timestamp:Ln()};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:Dn(),kind:"interrupted",timestamp:Ln()},rawJson:l}:{processed:{id:Dn(),kind:"result",success:!d.is_error,result:d.result||"",durationMs:d.duration_ms||0,costUsd:d.total_cost_usd,timestamp:Ln()},rawJson:l}:d.type==="system"&&d.subtype==="status"&&d.status?{processed:{id:Dn(),kind:"status",status:d.status,timestamp:Ln()},rawJson:l}:d.type==="system"&&d.subtype==="compact_boundary"?{processed:{id:Dn(),kind:"compact_boundary",timestamp:Ln()},rawJson:l}:d.type==="system"&&d.subtype==="context_cleared"?{processed:{id:Dn(),kind:"context_cleared",timestamp:Ln()},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:Dn(),kind:"compact_summary",summary:d.message.content,timestamp:Ln()},rawJson:l}:i}catch{return i}}function QD(e){const r=new Map,l=[];for(const i of e){const{processed:o,rawJson:u,isUserMessage:c,userContent:f}=XD(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 ZD=["AskUserQuestion","ExitPlanMode","TodoWrite"],KD=new Set(["TodoWrite"]);function JD(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 WD(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 e6(e){const r={};for(const l of ZD)r[l]=KD.has(l)?WD(e,l):JD(e,l);return r}function t6(e){return e==="starting"||e==="running"||e==="waiting_for_user"}function n6(e){return e==="starting"||e==="running"||e==="waiting_for_user"}class r6{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($_,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 l6(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}function i6(){const e=S.useRef(null);return e.current||(e.current=new r6(l6())),S.useEffect(()=>{const r=e.current;return()=>{r==null||r.dispose()}},[]),e.current}function a6(e){var ce,Se,Re;const r=ph(),l=i6(),i=uj(),[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),[N,A]=S.useState(!1),[_,R]=S.useState(null),[B,P]=S.useState(!1),[z,q]=S.useState(!1),[Y,oe]=S.useState(148),[U,re]=S.useState(!0),[le,ue]=S.useState(null),[Z,$]=S.useState(null),[D,X]=S.useState(!1),[ee,ie]=S.useState(null),T=S.useRef(null),O=S.useRef(null);S.useEffect(()=>l.onStatus(y),[l]),S.useEffect(()=>l.subscribe({type:"sidebar"},ae=>{u(ae),v(!0),ue(null)}),[l]),S.useEffect(()=>l.subscribe({type:"local-projects"},ae=>{f(ae),C(!0),ue(null)}),[l]),S.useEffect(()=>{if(!e){m(null),A(!0);return}return A(!1),l.subscribe({type:"chat",chatId:e},ae=>{m(ae),A(!0),ue(null)})},[e,l]),S.useEffect(()=>{if(_)return;const ae=o.projectGroups[0];ae&&R(ae.groupKey)},[_,o.projectGroups]),S.useEffect(()=>{if(!e||!b||!N)return;if(o.projectGroups.some(he=>he.chats.some(Ee=>Ee.chatId===e))){ee===e&&ie(null);return}ee!==e&&r("/")},[e,N,r,ee,o.projectGroups,b]),S.useEffect(()=>{d&&(R(d.runtime.projectId),X(d.runtime.planMode),ee===d.runtime.chatId&&ie(null))},[d,ee]),S.useLayoutEffect(()=>{const ae=O.current;if(!ae)return;const he=new ResizeObserver(()=>{oe(ae.getBoundingClientRect().height)});return he.observe(ae),oe(ae.getBoundingClientRect().height),()=>he.disconnect()},[]);const Q=S.useMemo(()=>QD((d==null?void 0:d.messages)??[]),[d==null?void 0:d.messages]),j=S.useMemo(()=>e6(Q),[Q]),ne=(d==null?void 0:d.runtime)??null,de=(ne==null?void 0:ne.planMode)??D,fe=n6(ne==null?void 0:ne.status),Ne=t6(ne==null?void 0:ne.status),Fe=Y+48,ve=!U&&Q.length>0,it=((ce=c==null?void 0:c.projects[0])==null?void 0:ce.localPath)??null,gt=(ne==null?void 0:ne.localPath)??it??((Se=o.projectGroups[0])==null?void 0:Se.localPath),zt=!!(_??(ne==null?void 0:ne.projectId)??((Re=o.projectGroups[0])==null?void 0:Re.groupKey)??it);S.useEffect(()=>{const ae=T.current;if(!ae)return;ae.scrollHeight-ae.scrollTop-ae.clientHeight<120&&ae.scrollTo({top:ae.scrollHeight,behavior:"smooth"})},[e,Q.length,ne==null?void 0:ne.status]);function jt(){const ae=T.current;if(!ae)return;const he=ae.scrollHeight-ae.scrollTop-ae.clientHeight;re(he<24)}function yt(){const ae=T.current;ae&&ae.scrollTo({top:ae.scrollHeight,behavior:"smooth"})}async function vn(ae){try{const he=await l.command({type:"chat.create",projectId:ae});D&&await l.command({type:"chat.setPlanMode",chatId:he.chatId,planMode:!0}),R(ae),ie(he.chatId),r(`/chat/${he.chatId}`),P(!1)}catch(he){ue(he instanceof Error?he.message:String(he))}}async function wn(ae){try{$(ae);const he=await l.command({type:"project.open",localPath:ae});R(he.projectId);const Ee=await l.command({type:"chat.create",projectId:he.projectId});D&&await l.command({type:"chat.setPlanMode",chatId:Ee.chatId,planMode:!0}),ie(Ee.chatId),r(`/chat/${Ee.chatId}`),P(!1),ue(null)}catch(he){ue(he instanceof Error?he.message:String(he))}finally{$(null)}}async function yr(ae){try{$(ae.localPath);const he=await l.command(ae.mode==="new"?{type:"project.create",localPath:ae.localPath,title:ae.title}:{type:"project.open",localPath:ae.localPath});R(he.projectId);const Ee=await l.command({type:"chat.create",projectId:he.projectId});D&&await l.command({type:"chat.setPlanMode",chatId:Ee.chatId,planMode:!0}),ie(Ee.chatId),r(`/chat/${Ee.chatId}`),P(!1),ue(null)}catch(he){ue(he instanceof Error?he.message:String(he))}finally{$(null)}}async function xr(ae){var he;try{let Ee=_??((he=o.projectGroups[0])==null?void 0:he.groupKey)??null;if(!e&&!Ee&&it&&(Ee=(await l.command({type:"project.open",localPath:it})).projectId,R(Ee)),!e&&!Ee)throw new Error("Open a project first");let He;if(!e&&de&&Ee){const Me=await l.command({type:"chat.create",projectId:Ee});await l.command({type:"chat.setPlanMode",chatId:Me.chatId,planMode:!0}),He=await l.command({type:"chat.send",chatId:Me.chatId,content:ae})}else He=await l.command({type:"chat.send",chatId:e??void 0,projectId:e?void 0:Ee??void 0,content:ae});!e&&He.chatId&&(ie(He.chatId),r(`/chat/${He.chatId}`)),ue(null)}catch(Ee){throw ue(Ee instanceof Error?Ee.message:String(Ee)),Ee}}async function Xt(){if(e)try{await l.command({type:"chat.cancel",chatId:e})}catch(ae){ue(ae instanceof Error?ae.message:String(ae))}}async function br(ae){if(await i.confirm({title:"Delete Chat",description:`Delete "${ae.title}"? This cannot be undone.`,confirmLabel:"Delete",confirmVariant:"destructive"}))try{await l.command({type:"chat.delete",chatId:ae.chatId}),ae.chatId===e&&r("/")}catch(Ee){ue(Ee instanceof Error?Ee.message:String(Ee))}}async function il(){const ae=!de;if(X(ae),!!e)try{await l.command({type:"chat.setPlanMode",chatId:e,planMode:ae})}catch(he){X((ne==null?void 0:ne.planMode)??!1),ue(he instanceof Error?he.message:String(he))}}async function qi(ae){const he=o.projectGroups.find(Me=>Me.groupKey===ae);if(!he)return;const Ee=he.localPath.split("/").filter(Boolean).pop()??he.localPath;if(await i.confirm({title:"Remove Project",description:`Remove "${Ee}" from the sidebar? Existing chats will be removed from ${Lt}.`,confirmLabel:"Remove",confirmVariant:"destructive"}))try{await l.command({type:"project.remove",projectId:ae}),(ne==null?void 0:ne.projectId)===ae&&r("/projects"),ue(null)}catch(Me){ue(Me instanceof Error?Me.message:String(Me))}}async function Fi(ae){var Ee,He;const he=(ne==null?void 0:ne.localPath)??((Ee=c==null?void 0:c.projects[0])==null?void 0:Ee.localPath)??((He=o.projectGroups[0])==null?void 0:He.localPath);if(he)try{await l.command({type:"system.openExternal",action:ae,localPath:he})}catch(Me){ue(Me instanceof Error?Me.message:String(Me))}}function kt(){var Ee,He;const ae=_??((Ee=o.projectGroups[0])==null?void 0:Ee.groupKey);if(ae){vn(ae);return}const he=(He=c==null?void 0:c.projects[0])==null?void 0:He.localPath;if(he){wn(he);return}r("/projects")}async function Ii(ae,he,Ee){if(e)try{await l.command({type:"chat.respondTool",chatId:e,toolUseId:ae,result:{questions:he,answers:Ee}})}catch(He){ue(He instanceof Error?He.message:String(He))}}async function J(ae,he,Ee,He){if(e)try{await l.command({type:"chat.respondTool",chatId:e,toolUseId:ae,result:{confirmed:he,...Ee?{clearContext:!0}:{},...He?{message:He}:{}}})}catch(Me){ue(Me instanceof Error?Me.message:String(Me))}}return{activeChatId:e,sidebarData:o,localProjects:c,chatSnapshot:d,connectionStatus:g,sidebarReady:b,localProjectsReady:k,commandError:le,startingLocalPath:Z,sidebarOpen:B,sidebarCollapsed:z,scrollRef:T,inputRef:O,messages:Q,latestToolIds:j,runtime:ne?{...ne,planMode:de}:null,planMode:de,isProcessing:fe,canCancel:Ne,transcriptPaddingBottom:Fe,showScrollButton:ve,navbarLocalPath:gt,hasSelectedProject:zt,openSidebar:()=>P(!0),closeSidebar:()=>P(!1),collapseSidebar:()=>q(!0),expandSidebar:()=>q(!1),updateScrollState:jt,scrollToBottom:yt,handleCreateChat:vn,handleOpenLocalProject:wn,handleCreateProject:yr,handleSend:xr,handleCancel:Xt,handleDeleteChat:br,handleRemoveProject:qi,handleTogglePlanMode:il,handleOpenExternal:Fi,handleCompose:kt,handleAskUserQuestion:Ii,handleExitPlanMode:J}}function o6(){const e=In(),r=cC(),l=a6(r.chatId??null),i=e.pathname==="/projects";return x.jsxs("div",{className:"flex h-[100dvh] min-h-[100dvh] overflow-hidden",children:[x.jsx(pR,{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(CC,{context:l})]})}function s6(){return x.jsx(Y_,{children:x.jsx(sj,{children:x.jsx(NC,{children:x.jsxs(Ga,{element:x.jsx(o6,{}),children:[x.jsx(Ga,{path:"/",element:x.jsx(lv,{})}),x.jsx(Ga,{path:"/projects",element:x.jsx(YD,{})}),x.jsx(Ga,{path:"/chat/:chatId",element:x.jsx(lv,{})})]})})})})}const Jw="lever-theme",u6=S.createContext(void 0),c6=e=>e==="light"||e==="dark"||e==="system",Ww=()=>typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",uv=e=>{if(typeof document>"u")return;const r=e==="system"?Ww():e;document.documentElement.classList.toggle("dark",r==="dark")},f6=()=>{if(typeof window>"u")return"system";const e=window.localStorage.getItem(Jw);return c6(e)?e:"system"};function d6({children:e}){const[r,l]=S.useState(f6);S.useEffect(()=>{uv(r),typeof window<"u"&&window.localStorage.setItem(Jw,r)},[r]),S.useEffect(()=>{if(r!=="system")return;const o=window.matchMedia("(prefers-color-scheme: dark)"),u=()=>uv("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"?Ww():r;return{theme:r,resolvedTheme:o,setTheme:l}},[r]);return x.jsx(u6.Provider,{value:i,children:e})}const eS=document.getElementById("root");if(!eS)throw new Error("Missing #root");N2.createRoot(eS).render(x.jsx(S.StrictMode,{children:x.jsx(ZC,{children:x.jsx(d6,{children:x.jsx(s6,{})})})}));