symbio 0.3.0-beta.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/server/api.js +57 -1
- package/dist/server/bus.js +21 -0
- package/dist/web/assets/{index-Cvhoj8Ir.css → index-BM4oACfZ.css} +1 -1
- package/dist/web/assets/index-CrEYaqhD.js +52 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-BK_T09wc.js +0 -52
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function ee(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ne=/\/+/g;function re(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function k(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ie(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ie(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+re(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ne,`$&/`)+`/`),ie(o,r,i,``,function(e){return e})):o!=null&&(ee(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ne,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+re(a,u),c+=ie(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+re(a,u++),c+=ie(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ie(k(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ae(e,t,n){if(e==null)return e;var r=[],i=0;return ie(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function oe(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var se=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function ce(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,se)}catch(e){se(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function le(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ce(le.bind(null,e))}var ue={map:ae,forEach:function(e,t,n){ae(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ae(e,function(){t++}),t},toArray:function(e){return ae(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ue,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=le,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ee,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:oe}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ce,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=D,O=function(){te.postMessage(null)}}else O=function(){_(D,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),h=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function w(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function T(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var D=Object.assign,O=Symbol.for(`react.element`),ee=Symbol.for(`react.transitional.element`),te=Symbol.for(`react.portal`),ne=Symbol.for(`react.fragment`),re=Symbol.for(`react.strict_mode`),k=Symbol.for(`react.profiler`),ie=Symbol.for(`react.consumer`),ae=Symbol.for(`react.context`),oe=Symbol.for(`react.forward_ref`),se=Symbol.for(`react.suspense`),ce=Symbol.for(`react.suspense_list`),le=Symbol.for(`react.memo`),ue=Symbol.for(`react.lazy`),de=Symbol.for(`react.activity`),fe=Symbol.for(`react.legacy_hidden`),pe=Symbol.for(`react.memo_cache_sentinel`),me=Symbol.for(`react.view_transition`),he=Symbol.for(`react.recoverable`),ge=Symbol.iterator;function _e(e){return typeof e!=`object`||!e?null:(e=ge&&e[ge]||e[`@@iterator`],typeof e==`function`?e:null)}var ve=Symbol.for(`react.client.reference`);function ye(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ne:return`Fragment`;case k:return`Profiler`;case re:return`StrictMode`;case se:return`Suspense`;case ce:return`SuspenseList`;case de:return`Activity`;case me:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case te:return`Portal`;case ae:return e.displayName||`Context`;case ie:return(e._context.displayName||`Context`)+`.Consumer`;case oe:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case le:return t=e.displayName||null,t===null?ye(e.type)||`Memo`:t;case ue:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var be=Array.isArray,A=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe={pending:!1,data:null,method:null,action:null},Se=[],Ce=-1;function we(e){return{current:e}}function Te(e){0>Ce||(e.current=Se[Ce],Se[Ce]=null,Ce--)}function Ee(e,t){Ce++,Se[Ce]=e.current,e.current=t}var De=we(null),Oe=we(null),ke=we(null),Ae=we(null);function je(e,t){switch(Ee(ke,t),Ee(Oe,e),Ee(De,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_p(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_p(t),e=vp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Te(De),Ee(De,e)}function Me(){Te(De),Te(Oe),Te(ke)}function Ne(e){var t=e.memoizedState;t!==null&&(uh._currentValue=t.memoizedState,Ee(Ae,e)),t=De.current;var n=vp(t,e.type);t!==n&&(Ee(Oe,e),Ee(De,n))}function Pe(e){Oe.current===e&&(Te(De),Te(Oe)),Ae.current===e&&(Te(Ae),uh._currentValue=xe)}var Fe,Ie;function Le(e){if(Fe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Fe=t&&t[1]||``,Ie=-1<e.stack.indexOf(`
|
|
2
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
-
`+Fe+e+Ie}var Re=!1;function ze(e,t){if(!e||Re)return``;Re=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
-
`),l=s.split(`
|
|
5
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Re=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Le(n):``}function Be(e,t){switch(e.tag){case 26:case 27:case 5:return Le(e.type);case 16:return Le(`Lazy`);case 13:return e.child!==t&&t!==null?Le(`Suspense Fallback`):Le(`Suspense`);case 19:return Le(`SuspenseList`);case 0:case 15:return ze(e.type,!1);case 11:return ze(e.type.render,!1);case 1:return ze(e.type,!0);case 31:return Le(`Activity`);case 30:return Le(`ViewTransition`);default:return``}}function Ve(e){try{var t=``,n=null;do t+=Be(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
-
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}}var He=Object.prototype.hasOwnProperty,Ue=t.unstable_scheduleCallback,We=t.unstable_cancelCallback,Ge=t.unstable_shouldYield,Ke=t.unstable_requestPaint,qe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,Xe=t.unstable_UserBlockingPriority,Ze=t.unstable_NormalPriority,Qe=t.unstable_LowPriority,$e=t.unstable_IdlePriority,M=t.log,et=t.unstable_setDisableYieldValue,tt=null,nt=null;function rt(e){if(typeof M==`function`&&et(e),nt&&typeof nt.setStrictMode==`function`)try{nt.setStrictMode(tt,e)}catch{}}var N=Math.clz32?Math.clz32:ot,it=Math.log,at=Math.LN2;function ot(e){return e>>>=0,e===0?32:31-(it(e)/at|0)|0}var st=256,ct=262144,lt=4194304;function ut(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function dt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=ut(n))):i=ut(o):i=ut(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=ut(n))):i=ut(o)):i=ut(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ft(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-N(n),i=1<<r;t|=e[r],n&=~i}return t}function mt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ht(){var e=lt;return lt<<=1,!(lt&62914560)&&(lt=4194304),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _t(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-N(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&yt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function yt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-N(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-N(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function xt(e,t){var n=t&-t;return n=n&42?1:St(n),(n&(e.suspendedLanes|t))===0?n:0}function St(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ct(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function wt(){var e=j.p;return e===0?(e=window.event,e===void 0?32:Eh(e.type)):e}function Tt(e,t){var n=j.p;try{return j.p=e,t()}finally{j.p=n}}var P=Math.random().toString(36).slice(2),Et=`__reactFiber$`+P,Dt=`__reactProps$`+P,Ot=`__reactContainer$`+P,kt=`__reactEvents$`+P,At=`__reactListeners$`+P,jt=`__reactHandles$`+P,Mt=`__reactResources$`+P,Nt=`__reactMarker$`+P,Pt=`__reactLoad$`+P;function Ft(e){delete e[Et],delete e[Dt],delete e[At],delete e[jt]}function It(e){var t;if(t=e[Et])return t;for(var n=e.parentNode;n;){if(t=n[Ot]||n[Et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=_m(e);e!==null;){if(n=e[Et])return n;e=_m(e)}return t}e=n,n=e.parentNode}return null}function Lt(e){if(e=e[Et]||e[Ot]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Rt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function zt(e){var t=e[Mt];return t||=e[Mt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Bt(e){e[Nt]=!0}function Vt(e){e[Pt]=void 0}var Ht=new Set,Ut={};function Wt(e,t){Gt(e,t),Gt(e+`Capture`,t)}function Gt(e,t){for(Ut[e]=t,e=0;e<t.length;e++)Ht.add(t[e])}var Kt=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]*$`),qt={},Jt={};function Yt(e){return He.call(Jt,e)?!0:He.call(qt,e)?!1:Kt.test(e)?Jt[e]=!0:(qt[e]=!0,!1)}var F=!1;function Xt(){var e=F;return F=!1,e}function Zt(e,t,n){if(Yt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Qt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function $t(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function en(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function tn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function nn(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rn(e){if(!e._valueTracker){var t=tn(e)?`checked`:`value`;e._valueTracker=nn(e,t,``+e[t])}}function an(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=tn(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var on=/[\n"\\]/g;function sn(e){return e.replace(on,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function cn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+en(t)):e.value!==``+en(t)&&(e.value=``+en(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):un(e,en(n)):o===`number`&&e.value==t?un(e,en(e.value)):un(e,en(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+en(s):e.removeAttribute(`name`)}function ln(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){rn(e);return}n=n==null?``:``+en(n),t=t==null?n:``+en(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),rn(e)}function un(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function dn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+en(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function fn(e,t,n){t!=null&&(t=``+en(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+en(n)}function pn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(be(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=en(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),rn(e)}function mn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hn=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 gn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||hn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function _n(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,F=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(gn(e,a,r),F=!0)}else for(var o in t)t.hasOwnProperty(o)&&gn(e,o,t[o])}function vn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var yn=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`],[`maskType`,`mask-type`],[`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`]]),bn=/^[\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 xn(e){return bn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Sn(){}var Cn=null;function wn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tn=null,En=null;function Dn(e){var t=Lt(e);if(t&&(e=t.stateNode)){var n=e[Dt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(cn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+sn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Dt]||null;if(!a)throw Error(i(90));cn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&an(r)}break a;case`textarea`:fn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&dn(e,!!n.multiple,t,!1)}}}var On=!1;function kn(e,t,n){if(On)return e(t,n);On=!0;try{return e(t)}finally{if(On=!1,(Tn!==null||En!==null)&&(Gd(),Tn&&(t=Tn,e=En,En=Tn=null,Dn(t),e)))for(t=0;t<e.length;t++)Dn(e[t])}}function An(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Dt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var jn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Mn=!1;if(jn)try{var Nn={};Object.defineProperty(Nn,"passive",{get:function(){Mn=!0}}),window.addEventListener(`test`,Nn,Nn),window.removeEventListener(`test`,Nn,Nn)}catch{Mn=!1}var Pn=null,Fn=null,In=null;function Ln(){if(In)return In;var e,t=Fn,n=t.length,r,i=`value`in Pn?Pn.value:Pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return In=i.slice(e,1<r?1-r:void 0)}function Rn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function zn(){return!0}function Bn(){return!1}function Vn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?zn:Bn,this.isPropagationStopped=Bn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=zn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=zn)},persist:function(){},isPersistent:zn}),t}var Hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Un=Vn(Hn),Wn=D({},Hn,{view:0,detail:0}),Gn=Vn(Wn),Kn,qn,Jn,Yn=D({},Wn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:or,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Jn&&(Jn&&e.type===`mousemove`?(Kn=e.screenX-Jn.screenX,qn=e.screenY-Jn.screenY):qn=Kn=0,Jn=e),Kn)},movementY:function(e){return`movementY`in e?e.movementY:qn}}),Xn=Vn(Yn),Zn=Vn(D({},Yn,{dataTransfer:0})),Qn=Vn(D({},Wn,{relatedTarget:0})),$n=Vn(D({},Hn,{animationName:0,elapsedTime:0,pseudoElement:0})),er=Vn(D({},Hn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),tr=Vn(D({},Hn,{data:0})),nr={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},rr={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`},ir={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function ar(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ir[e])?!!t[e]:!1}function or(){return ar}var sr=Vn(D({},Wn,{key:function(e){if(e.key){var t=nr[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Rn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?rr[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:or,charCode:function(e){return e.type===`keypress`?Rn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Rn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),cr=Vn(D({},Yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),lr=Vn(D({},Hn,{submitter:0})),ur=Vn(D({},Wn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:or})),dr=Vn(D({},Hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),fr=Vn(D({},Yn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),pr=Vn(D({},Hn,{newState:0,oldState:0,source:0})),mr=[9,13,27,32],hr=jn&&`CompositionEvent`in window,gr=null;jn&&`documentMode`in document&&(gr=document.documentMode);var _r=jn&&`TextEvent`in window&&!gr,vr=jn&&(!hr||gr&&8<gr&&11>=gr),yr=` `,br=!1;function xr(e,t){switch(e){case`keyup`:return mr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Cr=!1;function wr(e,t){switch(e){case`compositionend`:return Sr(t);case`keypress`:return t.which===32?(br=!0,yr):null;case`textInput`:return e=t.data,e===yr&&br?null:e;default:return null}}function Tr(e,t){if(Cr)return e===`compositionend`||!hr&&xr(e,t)?(e=Ln(),In=Fn=Pn=null,Cr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return vr&&t.locale!==`ko`?null:t.data;default:return null}}var Er={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 Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Er[e.type]:t===`textarea`}function Or(e,t,n,r){Tn?En?En.push(r):En=[r]:Tn=r,t=ep(t,`onChange`),0<t.length&&(n=new Un(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var kr=null,Ar=null;function jr(e){qf(e,0)}function Mr(e){if(an(Rt(e)))return e}function Nr(e,t){if(e===`change`)return t}var Pr=!1;if(jn){var Fr;if(jn){var Ir=`oninput`in document;if(!Ir){var Lr=document.createElement(`div`);Lr.setAttribute(`oninput`,`return;`),Ir=typeof Lr.oninput==`function`}Fr=Ir}else Fr=!1;Pr=Fr&&(!document.documentMode||9<document.documentMode)}function Rr(){kr&&(kr.detachEvent(`onpropertychange`,zr),Ar=kr=null)}function zr(e){if(e.propertyName===`value`&&Mr(Ar)){var t=[];Or(t,Ar,e,wn(e)),kn(jr,t)}}function Br(e,t,n){e===`focusin`?(Rr(),kr=t,Ar=n,kr.attachEvent(`onpropertychange`,zr)):e===`focusout`&&Rr()}function Vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Mr(Ar)}function Hr(e,t){if(e===`click`)return Mr(t)}function Ur(e,t){if(e===`input`||e===`change`)return Mr(t)}function Wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Gr=typeof Object.is==`function`?Object.is:Wr;function Kr(e,t){if(Gr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!He.call(t,i)||!Gr(e[i],t[i]))return!1}return!0}function qr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Jr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yr(e,t){var n=Jr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Jr(n)}}function Xr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=qr(e.document)}return t}function Qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var $r=jn&&`documentMode`in document&&11>=document.documentMode,ei=null,ti=null,ni=null,ri=!1;function ii(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ri||ei==null||ei!==qr(r)||(r=ei,`selectionStart`in r&&Qr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ni&&Kr(ni,r)||(ni=r,r=ep(ti,`onSelect`),0<r.length&&(t=new Un(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=ei)))}function ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var oi={animationend:ai(`Animation`,`AnimationEnd`),animationiteration:ai(`Animation`,`AnimationIteration`),animationstart:ai(`Animation`,`AnimationStart`),transitionrun:ai(`Transition`,`TransitionRun`),transitionstart:ai(`Transition`,`TransitionStart`),transitioncancel:ai(`Transition`,`TransitionCancel`),transitionend:ai(`Transition`,`TransitionEnd`)},si={},ci={};jn&&(ci=document.createElement(`div`).style,`AnimationEvent`in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),`TransitionEvent`in window||delete oi.transitionend.transition);function li(e){if(si[e])return si[e];if(!oi[e])return e;var t=oi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ci)return si[e]=t[n];return e}var ui=li(`animationend`),di=li(`animationiteration`),fi=li(`animationstart`),pi=li(`transitionrun`),mi=li(`transitionstart`),hi=li(`transitioncancel`),gi=li(`transitionend`),_i=new Map,vi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);vi.push(`scrollEnd`);function yi(e,t){_i.set(e,t),Wt(t,[e])}var bi=0;function xi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Ed.identifierPrefix;var n=bi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function Si(e){if(e==null||typeof e==`string`)return e;var t=null,n=Pd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function Ci(e,t){return e=Si(e),t=Si(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var wi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Ti=[],Ei=0,Di=0;function Oi(){for(var e=Ei,t=Di=Ei=0;t<e;){var n=Ti[t];Ti[t++]=null;var r=Ti[t];Ti[t++]=null;var i=Ti[t];Ti[t++]=null;var a=Ti[t];if(Ti[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Mi(n,i,a)}}function ki(e,t,n,r){Ti[Ei++]=e,Ti[Ei++]=t,Ti[Ei++]=n,Ti[Ei++]=r,Di|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ai(e,t,n,r){return ki(e,t,n,r),Ni(e)}function ji(e,t){return ki(e,null,null,t),Ni(e)}function Mi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-N(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ni(e){if(50<Fd)throw Fd=0,Id=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pi={};function Fi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ii(e,t,n,r){return new Fi(e,t,n,r)}function Li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ri(e,t){var n=e.alternate;return n===null?(n=Ii(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function zi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Bi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Li(r)&&(s=1);else if(typeof r==`string`)s=Xm(e,n,De.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case de:return e=Ii(31,n,t,a),e.elementType=de,e.lanes=o,e;case ne:return Vi(n.children,a,o,t);case re:s=8,a|=24;break;case k:return e=Ii(12,n,t,a|2),e.elementType=k,e.lanes=o,e;case se:return e=Ii(13,n,t,a),e.elementType=se,e.lanes=o,e;case ce:return e=Ii(19,n,t,a),e.elementType=ce,e.lanes=o,e;case fe:case me:return e=a|32,e=Ii(30,n,t,e),e.elementType=me,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case ae:s=10;break a;case ie:s=9;break a;case oe:s=11;break a;case le:s=14;break a;case ue:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ii(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Vi(e,t,n,r){return e=Ii(7,e,r,t),e.lanes=n,e}function Hi(e,t,n){return e=Ii(6,e,null,t),e.lanes=n,e}function Ui(e){var t=Ii(18,null,null,0);return t.stateNode=e,t}function Wi(e,t,n){return t=Ii(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gi=new WeakMap;function Ki(e,t){if(typeof e==`object`&&e){var n=Gi.get(e);return n===void 0?(t={value:e,source:t,stack:Ve(t)},Gi.set(e,t),t):n}return{value:e,source:t,stack:Ve(t)}}var qi=[],Ji=0,Yi=null,Xi=0,Zi=[],Qi=0,$i=null,ea=1,ta=``;function na(e,t){qi[Ji++]=Xi,qi[Ji++]=Yi,Yi=e,Xi=t}function ra(e,t,n){Zi[Qi++]=ea,Zi[Qi++]=ta,Zi[Qi++]=$i,$i=e;var r=ea;e=ta;var i=32-N(r)-1;r&=~(1<<i),n+=1;var a=32-N(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ea=1<<32-N(t)+i|n<<i|r,ta=a+e}else ea=1<<a|n<<i|r,ta=e}function ia(e){e.return!==null&&(na(e,1),ra(e,1,0))}function aa(e){for(;e===Yi;)Yi=qi[--Ji],qi[Ji]=null,Xi=qi[--Ji],qi[Ji]=null;for(;e===$i;)$i=Zi[--Qi],Zi[Qi]=null,ta=Zi[--Qi],Zi[Qi]=null,ea=Zi[--Qi],Zi[Qi]=null}function oa(e,t){Zi[Qi++]=ea,Zi[Qi++]=ta,Zi[Qi++]=$i,ea=t.id,ta=t.overflow,$i=e}var sa=null,ca=null,I=!1,la=null,ua=!1,da=Error(i(519));function fa(e){throw va(Ki(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),da}function pa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Et]=e,t[Dt]=r,n){case`dialog`:K(`cancel`,t),K(`close`,t);break;case`iframe`:case`object`:case`embed`:K(`load`,t);break;case`video`:case`audio`:for(n=0;n<Gf.length;n++)K(Gf[n],t);break;case`source`:K(`error`,t);break;case`img`:case`image`:case`link`:K(`error`,t),K(`load`,t);break;case`details`:K(`toggle`,t);break;case`input`:K(`invalid`,t),ln(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:K(`invalid`,t);break;case`textarea`:K(`invalid`,t),pn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||op(t.textContent,n)?(r.popover!=null&&(K(`beforetoggle`,t),K(`toggle`,t)),r.onScroll!=null&&K(`scroll`,t),r.onScrollEnd!=null&&K(`scrollend`,t),r.onClick!=null&&(t.onclick=Sn),t=!0):t=!1,t||fa(e,!0)}function ma(e){for(sa=e.return;sa;)switch(sa.tag){case 5:case 31:case 13:ua=!1;return;case 27:case 3:ua=!0;return;default:sa=sa.return}}function ha(e){if(e!==sa)return!1;if(!I)return ma(e),I=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||bp(e.type,e.memoizedProps)),n=!n),n&&ca&&fa(e),ma(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ca=gm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ca=gm(e)}else t===27?(t=ca,kp(e.type)?(e=hm,hm=null,ca=e):ca=t):ca=sa?mm(e.stateNode.nextSibling):null;return!0}function ga(){ca=sa=null,I=!1}function _a(){var e=la;return e!==null&&(yd===null?yd=e:yd.push.apply(yd,e),la=null),e}function va(e){la===null?la=[e]:la.push(e)}var ya=we(null),ba=null,xa=null;function Sa(e,t,n){Ee(ya,t._currentValue),t._currentValue=n}function Ca(e){e._currentValue=ya.current,Te(ya)}function wa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ta(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),wa(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),wa(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),wa(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Ea(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Gr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===Ae.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[uh]:e.push(uh))}a=a.return}return e!==null&&Ta(t,e,n,r),t.flags|=262144,e!==null}function Da(e){for(e=e.firstContext;e!==null;){if(!Gr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oa(e){ba=e,xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ka(e){return ja(ba,e)}function Aa(e,t){return ba===null&&Oa(e),ja(e,t)}function ja(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},xa===null){if(e===null)throw Error(i(308));xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xa=xa.next=t;return n}var Ma=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Na=t.unstable_scheduleCallback,Pa=t.unstable_NormalPriority,Fa={$$typeof:ae,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ia(){return{controller:new Ma,data:new Map,refCount:0}}function La(e){e.refCount--,e.refCount===0&&Na(Pa,function(){e.controller.abort()})}function Ra(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var za=null;function Ba(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Va=null,Ha=0,Ua=0,Wa=null;function Ga(e,t){if(Va===null){var n=Va=[];Ha=0,Ua=Bf(),Wa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ha++,t.then(Ka,Ka),t}function Ka(){if(--Ha===0&&(za=null,Va!==null)){Wa!==null&&(Wa.status=`fulfilled`);var e=Va;Va=null,Ua=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ja=A.S;A.S=function(e,t){if(xd=qe(),typeof t==`object`&&t&&typeof t.then==`function`&&Ga(e,t),za!==null)for(var n=Ef;n!==null;)Ra(n,za),n=n.next;if(n=e.types,n!==null){for(var r=Ef;r!==null;)Ra(r,n),r=r.next;if(Ua!==0){r=za,r===null&&(r=za=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ja!==null&&Ja(e,t)};var Ya=we(null);function Xa(){var e=Ya.current;return e===null?od.pooledCache:e}function Za(e,t){t===null?Ee(Ya,Ya.current):Ee(Ya,t.pool)}function Qa(){var e=Xa();return e===null?null:{parent:Fa._currentValue,pool:e}}var $a=Error(i(460)),eo=Error(i(474)),to=Error(i(542)),no={then:function(){}};function ro(e){return e=e.status,e===`fulfilled`||e===`rejected`}function io(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Sn,Sn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,co(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(Sn,Sn);else{if(e=od,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,co(e),e}throw oo=t,$a}}function ao(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(oo=e,$a):e}}var oo=null;function so(){if(oo===null)throw Error(i(459));var e=oo;return oo=null,e}function co(e){if(e===$a||e===to)throw Error(i(483))}var lo=null,uo=0;function fo(e){var t=uo;return uo+=1,lo===null&&(lo=[]),io(lo,e,t)}function po(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function mo(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ho(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Ri(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Hi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ne?(e=d(e,t,n.props.children,r,n.key),po(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ue&&ao(i)===t.type)?(t=a(t,n.props),po(t,n),t.return=e,t):(t=Bi(n.type,n.key,n.props,null,e.mode,r),po(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Wi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Vi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Hi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case ee:return n=Bi(t.type,t.key,t.props,null,e.mode,n),po(n,t),n.return=e,n;case te:return t=Wi(t,e.mode,n),t.return=e,t;case ue:return t=ao(t),f(e,t,n)}if(be(t)||_e(t))return t=Vi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,fo(t),n);if(t.$$typeof===ae)return f(e,Aa(e,t),n);mo(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case ee:return n.key===i?l(e,t,n,r):null;case te:return n.key===i?u(e,t,n,r):null;case ue:return n=ao(n),p(e,t,n,r)}if(be(n)||_e(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,fo(n),r);if(n.$$typeof===ae)return p(e,t,Aa(e,n),r);mo(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case ee:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case te:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ue:return r=ao(r),m(e,t,n,r,i)}if(be(r)||_e(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,fo(r),i);if(r.$$typeof===ae)return m(e,t,n,Aa(t,r),i);mo(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),I&&na(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return I&&na(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),I&&na(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),I&&na(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return I&&na(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),I&&na(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ne&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case ee:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ne){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),po(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ue&&ao(l)===r.type){n(e,r.sibling),c=a(r,o.props),po(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ne?(c=Vi(o.props.children,e.mode,c,o.key),po(c,o),c.return=e,e=c):(c=Bi(o.type,o.key,o.props,null,e.mode,c),po(c,o),c.return=e,e=c)}return s(e);case te:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Wi(o,e.mode,c),c.return=e,e=c}return s(e);case ue:return o=ao(o),_(e,r,o,c)}if(be(o))return h(e,r,o,c);if(_e(o)){if(l=_e(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,fo(o),c);if(o.$$typeof===ae)return _(e,r,Aa(e,o),c);mo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{uo=0;var i=_(e,t,n,r);return lo=null,i}catch(t){if(t===$a||t===to)throw t;var a=Ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var go=ho(!0),_o=ho(!1),vo=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function So(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ni(e),Mi(e,null,n),t}return ki(e,r,t,n),Ni(e)}function Co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bt(e,n)}}function wo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var To=!1;function Eo(){if(To){var e=Wa;if(e!==null)throw e}}function Do(e,t,n,r){To=!1;var i=e.updateQueue;vo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(H&f)===f:(r&f)===f){f!==0&&f===Ua&&(To=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:vo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),pd|=o,e.lanes=o,e.memoizedState=d}}function Oo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function ko(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Oo(n[e],t)}var Ao=we(null),jo=we(0);function Mo(e,t){e=dd,Ee(jo,e),Ee(Ao,t),dd=e|t.baseLanes}function No(){Ee(jo,dd),Ee(Ao,Ao.current)}function Po(){dd=jo.current,Te(Ao),Te(jo)}var Fo=we(null),L=null;function Io(e){var t=e.alternate;Ee(Vo,Vo.current&1),Ee(Fo,e),L===null&&(t===null||Ao.current!==null||t.memoizedState!==null)&&(L=e)}function Lo(e){Ee(Vo,Vo.current),Ee(Fo,e),L===null&&(L=e)}function Ro(e){e.tag===22?(Ee(Vo,Vo.current),Ee(Fo,e),L===null&&(L=e)):zo()}function zo(){Ee(Vo,Vo.current),Ee(Fo,Fo.current)}function Bo(e){Te(Fo),L===e&&(L=null),Te(Vo)}var Vo=we(0);function Ho(e,t){Ee(Fo,Fo.current),Ee(Vo,t)}function Uo(e){Te(Vo),Te(Fo),L===e&&(L=null)}function Wo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||dm(n)||fm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Go=0,R=null,Ko=null,qo=null,Jo=!1,Yo=!1,Xo=!1,Zo=0,Qo=0,$o=null,es=0;function ts(){throw Error(i(321))}function ns(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gr(e[n],t[n]))return!1;return!0}function rs(e,t,n,r,i,a){return Go=a,R=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?bc:xc,Xo=!1,a=n(r,i),Xo=!1,Yo&&(a=as(t,n,r,i)),is(e),a}function is(e){A.H=yc;var t=Ko!==null&&Ko.next!==null;if(Go=0,qo=Ko=R=null,Jo=!1,Qo=0,$o=null,t)throw Error(i(300));e===null||Rc||(e=e.dependencies,e!==null&&Da(e)&&(Rc=!0))}function as(e,t,n,r){R=e;var a=0;do{if(Yo&&($o=null),Qo=0,Yo=!1,25<=a)throw Error(i(301));if(a+=1,qo=Ko=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}A.H=Sc,o=t(n,r)}while(Yo);return o}function os(){var e=A.H,t=e.useState()[0];return t=typeof t.then==`function`?ps(t):t,e=e.useState()[0],(Ko===null?null:Ko.memoizedState)!==e&&(R.flags|=1024),t}function ss(){var e=Zo!==0;return Zo=0,e}function cs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ls(e){if(Jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jo=!1}Go=0,qo=Ko=R=null,Yo=!1,Qo=Zo=0,$o=null}function us(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qo===null?R.memoizedState=qo=e:qo=qo.next=e,qo}function ds(){if(Ko===null){var e=R.alternate;e=e===null?null:e.memoizedState}else e=Ko.next;var t=qo===null?R.memoizedState:qo.next;if(t!==null)qo=t,Ko=e;else{if(e===null)throw R.alternate===null?Error(i(467)):Error(i(310));Ko=e,e={memoizedState:Ko.memoizedState,baseState:Ko.baseState,baseQueue:Ko.baseQueue,queue:Ko.queue,next:null},qo===null?R.memoizedState=qo=e:qo=qo.next=e}return qo}function fs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ps(e){var t=Qo;return Qo+=1,$o===null&&($o=[]),e=io($o,e,t),t=R,(qo===null?t.memoizedState:qo.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?bc:xc),e}function ms(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ps(e);if(e.$$typeof===he)return;if(e.$$typeof===ae)return ka(e)}throw Error(i(438,String(e)))}function hs(e){var t=null,n=R.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=R.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=fs(),R.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=pe;return t.index++,n}function gs(e,t){return typeof t==`function`?t(e):t}function _s(e){return vs(ds(),Ko,e)}function vs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Go&f)===f:(H&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ua&&(d=!0);else if((Go&p)===p){u=u.next,p===Ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,R.lanes|=p,pd|=p;f=u.action,Xo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,R.lanes|=f,pd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Gr(o,e.memoizedState)&&(Rc=!0,d&&(n=Wa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ys(e){var t=ds(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Gr(o,t.memoizedState)||(Rc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function bs(e,t,n){var r=R,a=ds(),o=I;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Gr((Ko||a).memoizedState,n);if(s&&(a.memoizedState=n,Rc=!0),a=a.queue,Gs(Cs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||qo!==null&&!!(qo.memoizedState.tag&1),Bs(e?9:8,{destroy:void 0},Ss.bind(null,r,a,n,t),null),e){if(r.flags|=2048,od===null)throw Error(i(349));o||Go&127||xs(r,t,n)}return n}function xs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=R.updateQueue,t===null?(t=fs(),R.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ss(e,t,n,r){t.value=n,t.getSnapshot=r,ws(t)&&Ts(e)}function Cs(e,t,n){return n(function(){ws(t)&&Ts(e)})}function ws(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gr(e,n)}catch{return!0}}function Ts(e){var t=ji(e,2);t!==null&&Bd(t,e,2)}function Es(e){var t=us();if(typeof e==`function`){var n=e;if(e=n(),Xo){rt(!0);try{n()}finally{rt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:e},t}function Ds(e,t,n,r){return e.baseState=n,vs(e,Ko,typeof r==`function`?r:gs)}function Os(e,t,n,r,a){if(gc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};A.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,ks(t,o)):(o.next=n.next,t.pending=n.next=o)}}function ks(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=A.T,o={};o.types=a===null?null:a.types,A.T=o;try{var s=n(i,r),c=A.S;c!==null&&c(o,s),As(e,t,s)}catch(n){Ms(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),A.T=a}}else try{a=n(i,r),As(e,t,a)}catch(n){Ms(e,t,n)}}function As(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){js(e,t,n)},function(n){return Ms(e,t,n)}):js(e,t,n)}function js(e,t,n){t.status=`fulfilled`,t.value=n,Ns(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ks(e,n)))}function Ms(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ns(t),t=t.next;while(t!==r)}e.action=null}function Ns(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ps(e,t){return t}function Fs(e,t){if(I){var n=od.formState;if(n!==null){a:{var r=R;if(I){if(ca){b:{for(var i=ca,a=ua;i.nodeType!==8;)if(!a||(i=mm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ca=mm(i.nextSibling),r=i.data===`F!`;break a}}fa(r)}r=!1}r&&(t=n[0])}}return n=us(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ps,lastRenderedState:t},n.queue=r,n=pc.bind(null,R,r),r.dispatch=n,r=Es(!1),a=hc.bind(null,R,!1,r.queue),r=us(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Os.bind(null,R,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Is(e){return Ls(ds(),Ko,e)}function Ls(e,t,n){if(t=vs(e,t,Ps)[0],e=_s(gs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ps(t)}catch(e){throw e===$a?to:e}else r=t;t=ds();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(R.flags|=2048,Bs(9,{destroy:void 0},Rs.bind(null,i,n),null)),[r,a,e]}function Rs(e,t){e.action=t}function zs(e){var t=ds(),n=Ko;if(n!==null)return Ls(t,n,e);ds(),t=t.memoizedState,n=ds();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Bs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=R.updateQueue,t===null&&(t=fs(),R.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Vs(){return ds().memoizedState}function Hs(e,t,n,r){var i=us();R.flags|=e,i.memoizedState=Bs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Us(e,t,n,r){var i=ds();r=r===void 0?null:r;var a=i.memoizedState.inst;Ko!==null&&r!==null&&ns(r,Ko.memoizedState.deps)?i.memoizedState=Bs(t,a,n,r):(R.flags|=e,i.memoizedState=Bs(1|t,a,n,r))}function Ws(e,t){Hs(8390656,8,e,t)}function Gs(e,t){Us(2048,8,e,t)}function Ks(e){R.flags|=4;var t=R.updateQueue;if(t===null)t=fs(),R.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function qs(e){var t=ds().memoizedState;return Ks({ref:t,nextImpl:e}),function(){if(B&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Js(e,t){return Us(4,2,e,t)}function Ys(e,t){return Us(4,4,e,t)}function Xs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Zs(e,t,n){n=n==null?null:n.concat([e]),Us(4,4,Xs.bind(null,t,e),n)}function Qs(){}function $s(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ns(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ec(e,t){var n=ds();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ns(t,r[1]))return r[0];if(r=e(),Xo){rt(!0);try{e()}finally{rt(!1)}}return n.memoizedState=[r,t],r}function tc(e,t,n){return n===void 0||Go&1073741824&&!(H&261930)?e.memoizedState=t:(e.memoizedState=n,e=Rd(),R.lanes|=e,pd|=e,n)}function nc(e,t,n,r){return Gr(n,t)?n:Ao.current===null?!(Go&106)||Go&1073741824&&!(H&261930)?(Rc=!0,e.memoizedState=n):(e=Rd(),R.lanes|=e,pd|=e,t):(e=tc(e,n,r),Gr(e,t)||(Rc=!0),e)}function rc(e,t,n,r,i){var a=j.p;j.p=a!==0&&8>a?a:8;var o=A.T,s={};s.types=o===null?null:o.types,A.T=s,hc(e,!1,t,n);try{var c=i(),l=A.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?mc(e,t,qa(c,r),Ld(e)):mc(e,t,r,Ld(e))}catch(n){mc(e,t,{then:function(){},status:`rejected`,reason:n},Ld())}finally{j.p=a,o!==null&&s.types!==null&&(o.types=s.types),A.T=o}}function ic(){}function ac(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=oc(e).queue;rc(e,a,t,xe,n===null?ic:function(){return sc(e),n(r)})}function oc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xe,baseState:xe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:xe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function sc(e){var t=oc(e);t.next===null&&(t=e.alternate.memoizedState),mc(e,t.next.queue,{},Ld())}function cc(){return ka(uh)}function lc(){return ds().memoizedState}function uc(){return ds().memoizedState}function dc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ld();e=xo(n);var r=So(t,e,n);r!==null&&(Bd(r,t,n),Co(r,t,n)),t={cache:Ia()},e.payload=t;return}t=t.return}}function fc(e,t,n){var r=Ld();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gc(e)?_c(t,n):(n=Ai(e,t,n,r),n!==null&&(Bd(n,e,r),vc(n,t,r)))}function pc(e,t,n){mc(e,t,n,Ld())}function mc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(gc(e))_c(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Gr(s,o))return ki(e,t,i,0),od===null&&Oi(),!1}catch{}if(n=Ai(e,t,i,r),n!==null)return Bd(n,e,r),vc(n,t,r),!0}return!1}function hc(e,t,n,r){if(r={lane:2,revertLane:Bf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},gc(e)){if(t)throw Error(i(479))}else t=Ai(e,n,r,2),t!==null&&Bd(t,e,2)}function gc(e){var t=e.alternate;return e===R||t!==null&&t===R}function _c(e,t){Yo=Jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bt(e,n)}}var yc={readContext:ka,use:ms,useCallback:ts,useContext:ts,useEffect:ts,useImperativeHandle:ts,useLayoutEffect:ts,useInsertionEffect:ts,useMemo:ts,useReducer:ts,useRef:ts,useState:ts,useDebugValue:ts,useDeferredValue:ts,useTransition:ts,useSyncExternalStore:ts,useId:ts,useHostTransitionStatus:ts,useFormState:ts,useActionState:ts,useOptimistic:ts,useMemoCache:ts,useCacheRefresh:ts,useEffectEvent:ts},bc={readContext:ka,use:ms,useCallback:function(e,t){return us().memoizedState=[e,t===void 0?null:t],e},useContext:ka,useEffect:Ws,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Hs(4194308,4,Xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hs(4194308,4,e,t)},useInsertionEffect:function(e,t){Hs(4,2,e,t)},useMemo:function(e,t){var n=us();t=t===void 0?null:t;var r=e();if(Xo){rt(!0);try{e()}finally{rt(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=us();if(n!==void 0){var i=n(t);if(Xo){rt(!0);try{n(t)}finally{rt(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=fc.bind(null,R,e),[r.memoizedState,e]},useRef:function(e){var t=us();return e={current:e},t.memoizedState=e},useState:function(e){e=Es(e);var t=e.queue,n=pc.bind(null,R,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qs,useDeferredValue:function(e,t){return tc(us(),e,t)},useTransition:function(){var e=Es(!1);return e=rc.bind(null,R,e.queue,!0,!1),us().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=R,a=us();if(I){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),od===null)throw Error(i(349));H&127||xs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Ws(Cs.bind(null,r,o,e),[e]),r.flags|=2048,Bs(9,{destroy:void 0},Ss.bind(null,r,o,n,t),null),n},useId:function(){var e=us(),t=od.identifierPrefix;if(I){var n=ta,r=ea;n=(r&~(1<<32-N(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Zo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=es++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:cc,useFormState:Fs,useActionState:Fs,useOptimistic:function(e){var t=us();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=hc.bind(null,R,!0,n),n.dispatch=t,[e,t]},useMemoCache:hs,useCacheRefresh:function(){return us().memoizedState=dc.bind(null,R)},useEffectEvent:function(e){var t=us(),n={impl:e};return t.memoizedState=n,function(){if(B&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},xc={readContext:ka,use:ms,useCallback:$s,useContext:ka,useEffect:Gs,useImperativeHandle:Zs,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:ec,useReducer:_s,useRef:Vs,useState:function(){return _s(gs)},useDebugValue:Qs,useDeferredValue:function(e,t){return nc(ds(),Ko.memoizedState,e,t)},useTransition:function(){var e=_s(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:lc,useHostTransitionStatus:cc,useFormState:Is,useActionState:Is,useOptimistic:function(e,t){return Ds(ds(),Ko,e,t)},useMemoCache:hs,useCacheRefresh:uc,useEffectEvent:qs},Sc={readContext:ka,use:ms,useCallback:$s,useContext:ka,useEffect:Gs,useImperativeHandle:Zs,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:ec,useReducer:ys,useRef:Vs,useState:function(){return ys(gs)},useDebugValue:Qs,useDeferredValue:function(e,t){var n=ds();return Ko===null?tc(n,e,t):nc(n,Ko.memoizedState,e,t)},useTransition:function(){var e=ys(gs)[0],t=ds().memoizedState;return[typeof e==`boolean`?e:ps(e),t]},useSyncExternalStore:bs,useId:lc,useHostTransitionStatus:cc,useFormState:zs,useActionState:zs,useOptimistic:function(e,t){var n=ds();return Ko===null?(n.baseState=e,[e,n.queue.dispatch]):Ds(n,Ko,e,t)},useMemoCache:hs,useCacheRefresh:uc,useEffectEvent:qs};function Cc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var wc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=xo(r);i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Bd(t,e,r),Co(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=xo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Bd(t,e,r),Co(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ld(),r=xo(n);r.tag=2,t!=null&&(r.callback=t),t=So(e,r,n),t!==null&&(Bd(t,e,n),Co(t,e,n))}};function Tc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Kr(n,r)||!Kr(i,a):!0}function Ec(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wc.enqueueReplaceState(t,t.state,null)}function Dc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Oc(e){wi(e)}function kc(e){console.error(e)}function Ac(e){wi(e)}function jc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Mc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Nc(e,t,n){return n=xo(n),n.tag=3,n.payload={element:null},n.callback=function(){jc(e,t)},n}function Pc(e){return e=xo(e),e.tag=3,e}function Fc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Mc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Mc(t,n,r),typeof i!=`function`&&(wd===null?wd=new Set([this]):wd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ic(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ea(t,n,a,!0),n=Fo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return L===null?Qd():n.alternate===null&&fd===0&&(fd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===no?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),bf(e,r,a)),!1;case 22:return n.flags|=65536,r===no?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),bf(e,r,a)),!1}throw Error(i(435,n.tag))}return bf(e,r,a),Qd(),!1}if(I)return t=Fo.current,t===null?(r!==da&&(t=Error(i(423),{cause:r}),va(Ki(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ki(r,n),a=Nc(e.stateNode,r,a),wo(e,a),fd!==4&&(fd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==da&&(e=Error(i(422),{cause:r}),va(Ki(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ki(o,n),vd===null?vd=[o]:vd.push(o),fd!==4&&(fd=2),t===null)return!0;r=Ki(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Nc(n.stateNode,r,e),wo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(wd===null||!wd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Pc(a),Fc(a,e,n,r),wo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Lc=Error(i(461)),Rc=!1;function zc(e,t,n,r){t.child=e===null?_o(t,null,n,r):go(t,e.child,n,r)}function Bc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Oa(t),r=rs(e,t,n,o,a,i),s=ss(),e!==null&&!Rc?(cs(e,t,i),ml(e,t,i)):(I&&s&&ia(t),t.flags|=1,zc(e,t,r,i),t.child)}function Vc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Hc(e,t,a,r,i)):(e=Bi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!hl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Kr:n,n(o,r)&&e.ref===t.ref)return ml(e,t,i)}return t.flags|=1,e=Ri(a,r),e.ref=t.ref,e.return=t,t.child=e}function Hc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Kr(a,r)&&e.ref===t.ref){if(Rc=!1,t.pendingProps=r=a,hl(e,i))e.flags&131072&&(Rc=!0);else return t.lanes=e.lanes,ml(e,t,i)}}return Xc(e,t,n,r,i)}function Uc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Gc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Za(t,a===null?null:a.cachePool),a===null?No():Mo(t,a),Ro(t);else return r=t.lanes=536870912,Gc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Za(t,null),No(),zo()):(Za(t,a.cachePool),Mo(t,a),zo(),t.memoizedState=null);return zc(e,t,i,n),t.child}function Wc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Gc(e,t,n,r,i){var a=Xa();return a=a===null?null:{parent:Fa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Za(t,null),No(),Ro(t),e!==null&&Ea(e,t,r,!0),t.childLanes=i,null}function Kc(e,t){return t=al({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function qc(e,t,n){return go(t,e.child,null,n),e=Kc(t,t.pendingProps),e.flags|=2,Bo(t),t.memoizedState=null,e}function Jc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(I){if(r.mode===`hidden`)return e=Kc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Wc(null,e);if(Lo(t),(e=ca)?(e=um(e,ua),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$i===null?null:{id:ea,overflow:ta},retryLane:536870912,hydrationErrors:null},n=Ui(e),n.return=t,t.child=n,sa=t,ca=null)):e=null,e===null)throw fa(t);return t.lanes=536870912,null}return Kc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Lo(t),a){if(t.flags&256)t.flags&=-257,t=qc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Rc||Ea(e,t,n,!1),a=(n&e.childLanes)!==0,Rc||a){if(Ao.current===null){if(r=od,r!==null&&(s=xt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ji(e,s),Bd(r,e,s),Lc;Qd()}t=qc(e,t,n)}else e=o.treeContext,ca=mm(s.nextSibling),sa=t,I=!0,la=null,ua=!1,e!==null&&oa(t,e),t=Kc(t,r),t.flags|=134221824;return t}return e=Ri(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Yc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Xc(e,t,n,r,i){return Oa(t),n=rs(e,t,n,r,void 0,i),r=ss(),e!==null&&!Rc?(cs(e,t,i),ml(e,t,i)):(I&&r&&ia(t),t.flags|=1,zc(e,t,n,i),t.child)}function Zc(e,t,n,r,i,a){return Oa(t),t.updateQueue=null,n=as(t,r,n,i),is(e),r=ss(),e!==null&&!Rc?(cs(e,t,a),ml(e,t,a)):(I&&r&&ia(t),t.flags|=1,zc(e,t,n,a),t.child)}function Qc(e,t,n,r,i){if(Oa(t),t.stateNode===null){var a=Pi,o=n.contextType;typeof o==`object`&&o&&(a=ka(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=wc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},yo(t),o=n.contextType,a.context=typeof o==`object`&&o?ka(o):Pi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Cc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&wc.enqueueReplaceState(a,a.state,null),Do(t,r,a,i),Eo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Dc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Pi,typeof u==`object`&&u&&(o=ka(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ec(t,a,r,o),vo=!1;var f=t.memoizedState;a.state=f,Do(t,r,a,i),Eo(),l=t.memoizedState,s||f!==l||vo?(typeof d==`function`&&(Cc(t,n,d,r),l=t.memoizedState),(c=vo||Tc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,bo(e,t),o=t.memoizedProps,u=Dc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Pi,typeof l==`object`&&l&&(c=ka(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ec(t,a,r,c),vo=!1,f=t.memoizedState,a.state=f,Do(t,r,a,i),Eo();var p=t.memoizedState;o!==d||f!==p||vo||e!==null&&e.dependencies!==null&&Da(e.dependencies)?(typeof s==`function`&&(Cc(t,n,s,r),p=t.memoizedState),(u=vo||Tc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Da(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Yc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=go(t,e.child,null,i),t.child=go(t,null,n,i)):zc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ml(e,t,i),e}function $c(e,t,n,r){return ga(),t.flags|=256,zc(e,t,n,r),t.child}var el={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function tl(e){return{baseLanes:e,cachePool:Qa()}}function nl(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=gd),e}function rl(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Vo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(I){if(i?Io(t):zo(),(e=ca)?(e=um(e,ua),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$i===null?null:{id:ea,overflow:ta},retryLane:536870912,hydrationErrors:null},n=Ui(e),n.return=t,t.child=n,sa=t,ca=null)):e=null,e===null)throw fa(t);return t.lanes=fm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(zo(),i=t.mode,a=al({mode:`hidden`,children:a},i),r=Vi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=tl(n),r.childLanes=nl(e,o,n),t.memoizedState=el,Wc(null,r)):(Io(t),il(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return sl(e,t,a,o,r,c,s,n)}return i?(zo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ri(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Vi(i,a,n,null),i.flags|=2):i=Ri(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Wc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=tl(n):(a=i.cachePool,a===null?a=Qa():(s=Fa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=nl(e,o,n),t.memoizedState=el,Wc(e.child,r)):(Io(t),n=e.child,e=n.sibling,n=Ri(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function il(e,t){return t=al({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function al(e,t){return e=Ii(22,e,null,t),e.lanes=0,e}function ol(e,t,n){return go(t,e.child,null,n),e=il(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Io(t),t.flags&=-257,ol(e,t,c)):t.memoizedState===null?(zo(),o=a.fallback,s=t.mode,a=al({mode:`visible`,children:a.children},s),o=Vi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,go(t,e.child,null,c),a=t.child,a.memoizedState=tl(c),a.childLanes=nl(e,r,c),t.memoizedState=el,Wc(null,a)):(zo(),t.child=e.child,t.flags|=128,null);if(Io(t),fm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,va({value:a,source:null,stack:null})),ol(e,t,c)}if(Rc||Ea(e,t,c,!1),r=(c&e.childLanes)!==0,Rc||r){if(Ao.current!==null)return ol(e,t,c);if(r=od,r!==null&&(a=xt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,ji(e,a),Bd(r,e,a),Lc;return dm(o)||Qd(),ol(e,t,c)}return dm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ca=mm(o.nextSibling),sa=t,I=!0,la=null,ua=!1,e!==null&&oa(t,e),t=il(t,a.children),t.flags|=134221824,t)}function cl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),wa(e.return,t,n)}function ll(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Wo(n)===null&&(t=e),e=e.sibling}return t}function ul(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function dl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function fl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Vo.current;if(t.flags&128)return Ho(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Ho(t,o),i===`backwards`&&e!==null?(dl(e),zc(e,t,r,n),dl(e)):zc(e,t,r,n),r=I?Xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cl(e,n,t);else if(e.tag===19)cl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=ll(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,dl(t)),ul(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ul(t,!0,n,null,a,r);break;case`together`:ul(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=ll(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ul(t,!1,i,n,a,r)}return t.child}function pl(e,t,n){var r=t.pendingProps;return Sa(t,t.type,r.value),zc(e,t,r.children,n),t.child}function ml(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Da(e)))}function gl(e,t,n){switch(t.tag){case 3:je(t,t.stateNode.containerInfo),Sa(t,Fa,e.memoizedState.cache),ga();break;case 27:case 5:Ne(t);break;case 4:je(t,t.stateNode.containerInfo);break;case 10:Sa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Lo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Io(t),t.flags|=128,null;r=Ea(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?rl(e,t,n):(Io(t),e=ml(e,t,n),e===null?null:e.sibling)}Io(t);break;case 19:if(t.flags&128)return fl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Ea(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return fl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ho(t,Vo.current),r)break;return null;case 22:return t.lanes=0,Uc(e,t,n,t.pendingProps);case 24:Sa(t,Fa,e.memoizedState.cache)}return ml(e,t,n)}function _l(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Rc=!0;else{if(!hl(e,n)&&!(t.flags&128))return Rc=!1,gl(e,t,n);Rc=!!(e.flags&131072)}}else Rc=!1,I&&t.flags&1048576&&ra(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ao(t.elementType),t.type=e,typeof e==`function`)Li(e)?(r=Dc(e,r),t.tag=1,t=Qc(null,t,e,r,n)):(t.tag=0,t=Xc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===oe){t.tag=11,t=Bc(null,t,e,r,n);break a}if(a===le){t.tag=14,t=Vc(null,t,e,r,n);break a}if(a===ae){t.tag=10,t.type=e,t=pl(null,t,n);break a}}throw t=ye(e)||e,Error(i(306,t,``))}}return t;case 0:return Xc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Dc(r,t.pendingProps),Qc(e,t,r,a,n);case 3:a:{if(je(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,bo(e,t),Do(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Sa(t,Fa,r),r!==o.cache&&Ta(t,[Fa],n,!0),Eo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=$c(e,t,r,n);break a}if(r!==a){a=Ki(Error(i(424)),t),va(a),t=$c(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ca=mm(e.firstChild),sa=t,I=!0,la=null,ua=!0,n=_o(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ga(),r===a){t=ml(e,t,n);break a}zc(e,t,r,n)}t=t.child}return t;case 26:return Yc(e,t),e===null?(n=Im(t.type,null,t.pendingProps,null))?t.memoizedState=n:I||(t.stateNode=yp(t.type,t.pendingProps,ke.current,t)):t.memoizedState=Im(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&I&&(r=t.stateNode=bm(t.type,t.pendingProps,ke.current),sa=t,ua=!0,a=ca,kp(t.type)?(hm=a,ca=mm(r.firstChild)):ca=a),zc(e,t,t.pendingProps.children,n),Yc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&I&&((a=r=ca)&&(r=cm(r,t.type,t.pendingProps,ua),r===null?a=!1:(t.stateNode=r,sa=t,ca=mm(r.firstChild),ua=!1,a=!0)),a||fa(t)),Ne(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,bp(a,o)?r=null:s!==null&&bp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=rs(e,t,os,null,null,n),uh._currentValue=a),Yc(e,t),zc(e,t,r,n),t.child;case 6:return e===null&&I&&((e=n=ca)&&(n=lm(n,t.pendingProps,ua),n===null?e=!1:(t.stateNode=n,sa=t,ca=null,e=!0)),e||fa(t)),null;case 13:return rl(e,t,n);case 4:return je(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):zc(e,t,r,n),t.child;case 11:return Bc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Yc(e,t),zc(e,t,r,n),t.child;case 8:return zc(e,t,t.pendingProps.children,n),t.child;case 12:return zc(e,t,t.pendingProps.children,n),t.child;case 10:return pl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Oa(t),a=ka(a),r=r(a),t.flags|=1,zc(e,t,r,n),t.child;case 14:return Vc(e,t,t.type,t.pendingProps,n);case 15:return Hc(e,t,t.type,t.pendingProps,n);case 19:return fl(e,t,n);case 31:return Jc(e,t,n);case 22:return Uc(e,t,n,t.pendingProps);case 24:return Oa(t),r=ka(Fa),e===null?(a=Xa(),a===null&&(a=od,o=Ia(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},yo(t),Sa(t,Fa,a)):((e.lanes&n)!==0&&(bo(e,t),Do(t,null,null,n),Eo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Sa(t,Fa,r),r!==a.cache&&Ta(t,[Fa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Sa(t,Fa,r))),zc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:I&&ia(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Yc(e,t),zc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function vl(e){e.flags|=4}function yl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Zm(t,r):Zm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Yd())e.flags|=8192;else throw oo=no,eo}}else e.flags&=-16777217}function bl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Qm(t)){if(Yd())e.flags|=8192;else throw oo=no,eo}}function xl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ht(),e.lanes|=t,_d|=t)}function Sl(e,t){if(!I)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Cl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function wl(e,t,n){var r=t.pendingProps;switch(aa(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cl(t),null;case 1:return Cl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ca(Fa),Me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ha(t)?vl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,_a())),Cl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(vl(t),o===null?(Cl(t),yl(t,a,null,r,n)):(Cl(t),bl(t,o))):o?o===e.memoizedState?(Cl(t),t.flags&=-16777217):(vl(t),Cl(t),bl(t,o)):(e=e.memoizedProps,e!==r&&vl(t),Cl(t),yl(t,a,e,r,n)),null;case 27:if(Pe(t),n=ke.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&vl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Cl(t),t.subtreeFlags&=-33554433,null}e=De.current,ha(t)?pa(t,e):(e=bm(a,r,n),t.stateNode=e,vl(t))}return Cl(t),t.subtreeFlags&=-33554433,null;case 5:if(Pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&vl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Cl(t),t.subtreeFlags&=-33554433,null}if(o=De.current,ha(t))pa(t,o);else{var s=gp(ke.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[Et]=t,o[Dt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(lp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&vl(t)}}return Cl(t),t.subtreeFlags&=-33554433,yl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&vl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ke.current,ha(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=sa,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Et]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||op(e.nodeValue,n)),e||fa(t,!0)}else e=gp(e).createTextNode(r),e[Et]=t,t.stateNode=e}return Cl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ha(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[Et]=t}else ga(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Cl(t),e=!1}else n=_a(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Bo(t),t):(Bo(t),null);if(t.flags&128)throw Error(i(558))}return Cl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ha(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[Et]=t}else ga(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Cl(t),a=!1}else a=_a(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Bo(t),t):(Bo(t),null)}return Bo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),xl(t,t.updateQueue),Cl(t),null);case 4:return Me(),e===null&&Xf(t.stateNode.containerInfo),t.flags|=67108864,Cl(t),null;case 10:return Ca(t.type),Cl(t),null;case 19:if(Uo(t),r=t.memoizedState,r===null)return Cl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Sl(r,!1);else{if(fd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Wo(e),o!==null){for(t.flags|=128,Sl(r,!1),e=o.updateQueue,t.updateQueue=e,xl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)zi(n,e),n=n.sibling;return Ho(t,Vo.current&1|2),I&&na(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&qe()>Sd&&(t.flags|=128,a=!0,Sl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Wo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,xl(t,e),Sl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!I)return Cl(t),null}else 2*qe()-r.renderingStartTime>Sd&&n!==536870912&&(t.flags|=128,a=!0,Sl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=qe(),e.sibling=null,o=Vo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||I?Ho(t,o):(n=o,Ee(Fo,t),Ee(Vo,n),L===null&&(L=t)),I&&na(t,r.treeForkCount),e}return Cl(t),null;case 22:case 23:return Bo(t),Po(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Cl(t),t.subtreeFlags&6&&(t.flags|=8192)):Cl(t),n=t.updateQueue,n!==null&&xl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Te(Ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ca(Fa),Cl(t),null;case 25:return null;case 30:return t.flags|=33554432,Cl(t),null}throw Error(i(156,t.tag))}function Tl(e,t){switch(aa(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(Fa),Me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pe(t),null;case 31:if(t.memoizedState!==null){if(Bo(t),t.alternate===null)throw Error(i(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Uo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Me(),null;case 10:return Ca(t.type),null;case 22:case 23:return Bo(t),Po(),e!==null&&Te(Ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ca(Fa),null;case 25:return null;default:return null}}function El(e,t){switch(aa(t),t.tag){case 3:Ca(Fa),Me();break;case 26:case 27:case 5:Pe(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&Bo(t);break;case 13:Bo(t);break;case 19:Uo(t);break;case 10:Ca(t.type);break;case 22:case 23:Bo(t),Po(),e!==null&&Te(Ya);break;case 24:Ca(Fa)}}function Dl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){G(t,t.return,e)}}function Ol(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){G(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){G(t,t.return,e)}}function kl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ko(t,n)}catch(t){G(e,e.return,t)}}}function Al(e,t,n){n.props=Dc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){G(e,t,n)}}function jl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=xi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=zp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Bp(e);m(e.child,!1,rm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){G(e,t,n)}}function Ml(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){G(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){G(e,t,n)}else n.current=null}}function Nl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)am(e.stateNode,t[n])}function z(e){for(var t=e.return;t!==null&&(Il(t)&&am(e.stateNode,t.stateNode),!Fl(t));)t=t.return}function Pl(e){for(var t=e.return;t!==null&&(Il(t)&&om(e.stateNode,t.stateNode),!Fl(t));)t=t.return}function Fl(e){return e.tag===5||e.tag===3||e.tag===27}function Il(e){return e&&e.tag===7&&e.stateNode!==null}function Ll(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){G(e,e.return,t)}}function Rl(e,t,n){try{var r=e.stateNode;dp(r,e.type,n,t),r[Dt]=t}catch(t){G(e,e.return,t)}}function zl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kp(e.type)||e.tag===4}function Bl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||zl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&kp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Sn)),Nl(e,r),F=!0;else if(i!==4&&(i===27&&(Nl(e,r),r=null,kp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Vl(e,t,n,r),e=e.sibling;e!==null;)Vl(e,t,n,r),e=e.sibling}function Hl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Nl(e,r),F=!0;else if(i!==4&&(i===27&&(Nl(e,r),r=null,kp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Hl(e,t,n,r),e=e.sibling;e!==null;)Hl(e,t,n,r),e=e.sibling}function Ul(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);lp(t,r,n),t[Et]=e,t[Dt]=n}catch(t){G(e,e.return,t)}}var Wl=!1,Gl=null;function Kl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Wl=!0)}var ql=null;function Jl(){var e=ql;return ql=null,e}var Yl=0;function Xl(e,t,n,r,i){return Yl=0,Zl(e.child,t,n,r,i)}function Zl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Np(o);r.push(s),s.view&&(a=!0)}else a||Np(o).view&&(a=!0);Wl=!0,q(o,Yl===0?t:t+`_`+Yl,n),Yl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Zl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Ql(e,t){for(;e!==null;)e.tag===5?J(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Ql(e.child,t),e=e.sibling}function $l(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&($l(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=Ci(t.default,t.share),t!==`none`&&(Xl(e,n,t,null,!1)||Ql(e.child,!1))}e=e.sibling}}function eu(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=xi(r,n),a=Ci(r.default,n.paired?r.share:r.enter);a===`none`?$l(e):Xl(e,i,a,null,!1)?($l(e),n.paired||t||zd(e,r.onEnter)):Ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e,t),e=e.sibling;else $l(e)}function tu(e){if(Gl!==null&&Gl.size!==0){var t=Gl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=Ci(n.default,n.share);if(a!==`none`&&(Xl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,zd(e,n.onShare)):Ql(e.child,!1)),t.delete(r),t.size===0)break}}}tu(e)}e=e.sibling}}}function nu(e){if(e.tag===30){var t=e.memoizedProps,n=xi(t,e.stateNode),r=Gl===null?void 0:Gl.get(n),i=Ci(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Xl(e,n,i,null,!1)?r===void 0?zd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Gl.delete(n),zd(e,t.onShare)):Ql(e.child,!1)),Gl!==null&&tu(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)nu(e),e=e.sibling;else Gl!==null&&tu(e)}function ru(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=xi(t,e.stateNode);t=Ci(t.default,t.update),e.flags&=-5,t!==`none`&&Xl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&ru(e);e=e.sibling}}function iu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Ql(e.child,!1))}iu(e)}e=e.sibling}}function au(e){if(e.tag===30)e.stateNode.paired=null,Ql(e.child,!1),iu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)au(e),e=e.sibling;else iu(e)}function ou(e){for(e=e.child;e!==null;)e.tag===30?Ql(e.child,!1):e.subtreeFlags&33554432&&ou(e),e=e.sibling}function su(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Yl<a.length){var l=a[Yl],u=Np(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&q(c,Yl===0?n:n+`_`+Yl,i),s&&e.flags&4||(ql===null&&(ql=[]),ql.push(c,Yl===0?r:r+`_`+Yl,t.memoizedProps)),Yl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:su(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function cu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=xi(n,r),a=Ci(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Pp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Yl=0,i=su(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||zd(e,n.onUpdate))}else e.subtreeFlags&33554432&&cu(e,t);e=e.sibling}}var lu=!1,uu=!1,du=!1,fu=!1,pu=typeof WeakSet==`function`?WeakSet:Set,mu=null,hu=!1,gu=!1,_u=!1,vu=!1;function yu(e,t,n){if(e=e.containerInfo,mp=yh,e=Zr(e),Qr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(hp={focusedElem:e,selectionRange:r},yh=!1,n=(n&335544064)===n,mu=t,t=n?9270:1024;mu!==null;){if(e=mu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&nu(r[a]);if(e.alternate===null&&e.flags&2)n&&Kl(e),bu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&nu(r),bu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Kl(e),bu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,mu=r):(n&&ru(e),bu(n))}}Gl=null}function bu(e){for(;mu!==null;){var t=mu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Dc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){G(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)sm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:sm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=xi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=Ci(a.default,a.update),a!==`none`&&Xl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,mu=r;break}mu=t.return}}function xu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Vu(e,n),r&4&&Dl(5,n);break;case 1:if(Vu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){G(n,n.return,e)}else{var i=Dc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){G(n,n.return,e)}}}r&64&&kl(n),r&512&&jl(n,n.return);break;case 3:if(Vu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ko(e,t)}catch(e){G(n,n.return,e)}}break;case 27:t===null&&r&4&&Ul(n);case 26:case 5:Vu(e,n),t===null&&r&4&&Ll(n),r&512&&jl(n,n.return);break;case 12:Vu(e,n);break;case 31:Vu(e,n),r&4&&Au(e,n);break;case 13:Vu(e,n),r&4&&ju(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Cf.bind(null,n),pm(e,n))));break;case 22:if(r=n.memoizedState!==null||lu,!r){var a=t!==null&&t.memoizedState!==null||uu;t=lu,i=uu,lu=r,(uu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Uu(e,n,r)):Vu(e,n),lu=t,uu=i}break;case 30:Vu(e,n),r&512&&jl(n,n.return);break;case 7:r&512&&jl(n,n.return);default:Vu(e,n)}}function Su(e,t){for(e=e.child;e!==null;)Cu(e,t),e=e.sibling}function Cu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){G(e,e.return,t)}wu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,F=!0}catch(t){G(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?jp(s,!0):jp(e.stateNode,!1)}catch(t){G(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&Su(e,t);break;default:Su(e,t)}}function wu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:Cu(n,r);break a;case 22:n.memoizedState===null&&wu(n,r);break a;default:wu(n,r)}}e=e.sibling}}function Tu(e){var t=e.alternate;t!==null&&(e.alternate=null,Tu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ft(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Eu=null,Du=!1;function Ou(e,t,n){for(n=n.child;n!==null;)ku(e,t,n),n=n.sibling}function ku(e,t,n){if(nt&&typeof nt.onCommitFiberUnmount==`function`)try{nt.onCommitFiberUnmount(tt,n)}catch{}switch(n.tag){case 26:uu||Ml(n,t),Ou(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!uu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:uu||Ml(n,t),Pl(n);var r=Eu,i=Du;kp(n.type)&&(Eu=n.stateNode,Du=!1),Ou(e,t,n),xm(n.stateNode,n.type,n.memoizedProps),Eu=r,Du=i;break;case 5:uu||Ml(n,t),Pl(n);case 6:if(n.tag===6&&Pl(n),r=Eu,i=Du,Eu=null,Ou(e,t,n),Eu=r,Du=i,Eu!==null){if(Du)try{(Eu.nodeType===9?Eu.body:Eu.nodeName===`HTML`?Eu.ownerDocument.body:Eu).removeChild(n.stateNode),F=!0}catch(e){G(n,t,e)}else try{Eu.removeChild(n.stateNode),F=!0}catch(e){G(n,t,e)}}break;case 18:Eu!==null&&(Du?(e=Eu,Ap(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Gh(e)):Ap(Eu,n.stateNode));break;case 4:r=Eu,i=Du,Eu=n.stateNode.containerInfo,Du=!0,Ou(e,t,n),Eu=r,Du=i;break;case 0:case 11:case 14:case 15:Ol(2,n,t),uu||Ol(4,n,t),Ou(e,t,n);break;case 1:uu||(Ml(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Al(n,t,r)),Ou(e,t,n);break;case 21:Ou(e,t,n);break;case 22:uu=(r=uu)||n.memoizedState!==null,Ou(e,t,n),uu=r;break;case 30:Ml(n,t),Ou(e,t,n);break;case 7:uu||Ml(n,t),Ou(e,t,n);break;default:Ou(e,t,n)}}function Au(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gh(e)}catch(e){G(t,t.return,e)}}}function ju(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gh(e)}catch(e){G(t,t.return,e)}}function Mu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pu),t;default:throw Error(i(435,e.tag))}}function Nu(e,t){var n=Mu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=wf.bind(null,e,t);t.then(r,r)}})}function Pu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(kp(l.type)){Eu=l.stateNode,Du=!1;break a}break;case 5:Eu=l.stateNode,Du=!1;break a;case 3:case 4:Eu=l.stateNode.containerInfo,Du=!0;break a}l=l.return}if(Eu===null)throw Error(i(160));ku(s,c,o),Eu=null,Du=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Iu(t,e,n),t=t.sibling}var Fu=null;function Iu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Pu(t,e,n),Lu(e),a&4&&(Ol(3,e,e.return),Dl(3,e),Ol(5,e,e.return));break;case 1:Pu(t,e,n),Lu(e),a&512&&(uu||r===null||Ml(r,r.return)),a&64&&lu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Fu,Pu(t,e,n),Lu(e),a&512&&(uu||r===null||Ml(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(lu)e.stateNode=yp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Nt]||r[Et]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),lp(r,t,n),r[Et]=e,Bt(r),t=r;break a;case`link`:if(o=Jm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Jm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),lp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[Et]=e,Bt(r),t=r}e.stateNode=t}}else lu||Ym(o,e.type,e.stateNode)}else e.stateNode=Um(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Rl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||uu||t.parentNode.removeChild(t)):a.count--,n===null?lu||Ym(o,e.type,e.stateNode):Um(o,n,e.memoizedProps))}break;case 27:Pu(t,e,n),Lu(e),a&512&&(uu||r===null||Ml(r,r.return)),r!==null&&a&4&&Rl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=du,du=!1,Pu(t,e,n),du=o,Lu(e),a&512&&(uu||r===null||Ml(r,r.return)),e.flags&32){t=e.stateNode;try{mn(t,``),F=!0}catch(t){G(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Rl(e,t,r===null?t:r.memoizedProps)),a&1024&&(fu=!0);break;case 6:if(Pu(t,e,n),Lu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,F=!0}catch(t){G(e,e.return,t)}}break;case 3:if(F=!1,qm=null,o=Fu,Fu=Tm(t.containerInfo),Pu(t,e,n),Fu=o,Lu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Gh(t.containerInfo)}catch(t){G(e,e.return,t)}fu&&(fu=!1,Ru(e)),F=!1;break;case 4:a=du,du=lu,r=Xt(),o=Fu,Fu=Tm(e.stateNode.containerInfo),Pu(t,e,n),Lu(e),Fu=o,F&&gu&&(_u=!0),F=r,du=a;break;case 12:Pu(t,e,n),Lu(e);break;case 31:Pu(t,e,n),Lu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Nu(e,t)));break;case 13:Pu(t,e,n),Lu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(bd=qe()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Nu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=lu,l=uu,u=du;lu=c||o,du=u||o,uu=l||s,Pu(t,e,n),uu=l,du=u,lu=c,Lu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||lu||uu||(t=s||uu,n=lu,r=uu,lu=o||lu,uu=t,Hu(e,2),lu=n,uu=r),!o&&du||Su(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Nu(e,n))));break;case 19:Pu(t,e,n),Lu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Nu(e,t)));break;case 30:a&512&&(uu||r===null||Ml(r,r.return)),a=Xt(),o=gu,s=(n&335544064)===n,c=e.memoizedProps,gu=s&&Ci(c.default,c.update)!==`none`,Pu(t,e,n),Lu(e),s&&r!==null&&F&&(e.flags|=4),gu=o,F=a;break;case 21:break;case 7:a&512&&(uu||r===null||Ml(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Pu(t,e,n),Lu(e)}}function Lu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(zl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Il(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Fl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Hl(e,Bl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(mn(l,``),n.flags&=-33),Hl(e,Bl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Vl(e,Bl(e),u,s);break;default:throw Error(i(161))}}catch(t){G(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ru(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ru(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,yh=!0,t.reset(),yh=!1),e=e.sibling}}function zu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Bu(t,e),t=t.sibling;else cu(t,!1)}function Bu(e,t){var n=e.alternate;if(n===null)eu(e,!1);else switch(e.tag){case 3:if(vu=hu=!1,Jl(),zu(t,e),!hu&&!_u){if(e=ql,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];J(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),vu=!0}ql=null;break;case 5:zu(t,e);break;case 4:r=hu,hu=!1,zu(t,e),hu&&(_u=!0),hu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?zu(t,e):eu(e,!1));break;case 30:r=hu,i=Jl(),hu=!1,zu(t,e),hu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=xi(a,o),o=xi(n.memoizedProps,o);var s=Ci(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Yl=0,t=su(e,n,t,o,s,a,!0),Yl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(zd(e,e.memoizedProps.onUpdate),ql=i):i!==null&&(i.push.apply(i,ql),ql=i),hu=e.flags&32?!0:r;break;default:zu(t,e)}}function Vu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xu(e,t.alternate,t),t=t.sibling}function Hu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Ol(4,n,n.return),Hu(n,r);break;case 1:Ml(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Al(n,n.return,i),Hu(n,r);break;case 27:r&2&&xm(n.stateNode,n.type,n.memoizedProps);case 5:Ml(n,n.return),n.tag!==5&&n.tag!==27||Pl(n),Hu(n,r);break;case 6:Pl(n);break;case 26:Ml(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||uu||i.parentNode.removeChild(i),Hu(n,r);break;case 22:n.memoizedState===null&&Hu(n,r);break;case 30:Ml(n,n.return),Hu(n,r);break;case 7:Ml(n,n.return);default:Hu(n,r)}e=e.sibling}}function Uu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Uu(i,a,n),Dl(4,a);break;case 1:if(Uu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){G(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Oo(l[i],c)}catch(e){G(r,r.return,e)}}s&&o&64&&kl(a),jl(a,a.return);break;case 27:n&2&&Ul(a);case 5:a.tag!==5&&a.tag!==27||z(a),Uu(i,a,n),s&&r===null&&o&4&&Ll(a),jl(a,a.return);break;case 6:z(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||lu||Ym(Tm(c.ownerDocument),a.type,c),Uu(i,a,n),s&&r===null&&o&4&&Ll(a),jl(a,a.return);break;case 12:Uu(i,a,n);break;case 31:Uu(i,a,n),s&&o&4&&Au(i,a);break;case 13:Uu(i,a,n),s&&o&4&&ju(i,a);break;case 22:a.memoizedState===null&&Uu(i,a,n),jl(a,a.return);break;case 30:Uu(i,a,n),jl(a,a.return);break;case 7:jl(a,a.return);default:Uu(i,a,n)}t=t.sibling}}function Wu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&La(n))}function Gu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&La(e))}function Ku(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)qu(e,t,n,r),t=t.sibling;else i&&ou(t)}function qu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&au(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Ku(e,t,n,r),a&2048&&Dl(9,t);break;case 1:Ku(e,t,n,r);break;case 3:Ku(e,t,n,r),i&&vu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&La(a)));break;case 12:if(a&2048){Ku(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){G(t,t.return,e)}}else Ku(e,t,n,r);break;case 31:Ku(e,t,n,r);break;case 13:Ku(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&au(t),o._visibility&2?Ku(e,t,n,r):(o._visibility|=2,Ju(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&au(s),o._visibility&2?Ku(e,t,n,r):Yu(e,t)),a&2048&&Wu(s,t);break;case 24:Ku(e,t,n,r),a&2048&&Gu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Ql(a.child,!0),Ql(t.child,!0))),Ku(e,t,n,r);break;default:Ku(e,t,n,r)}}function Ju(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Ju(a,o,s,c,i),Dl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ju(a,o,s,c,i)):u._visibility&2?Ju(a,o,s,c,i):Yu(a,o),i&&l&2048&&Wu(o.alternate,o);break;case 24:Ju(a,o,s,c,i),i&&l&2048&&Gu(o.alternate,o);break;default:Ju(a,o,s,c,i)}t=t.sibling}}function Yu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Yu(n,r),i&2048&&Wu(r.alternate,r);break;case 24:Yu(n,r),i&2048&&Gu(r.alternate,r);break;default:Yu(n,r)}t=t.sibling}}var Xu=8192;function Zu(e,t,n){if(e.subtreeFlags&Xu)for(e=e.child;e!==null;)Qu(e,t,n),e=e.sibling}function Qu(e,t,n){switch(e.tag){case 26:Zu(e,t,n),e.flags&Xu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&eh(n,e)):th(n,Fu,e.memoizedState,e.memoizedProps));break;case 5:Zu(e,t,n),e.flags&Xu&&(e=e.stateNode,(t&335544128)===t&&eh(n,e));break;case 3:case 4:var r=Fu;Fu=Tm(e.stateNode.containerInfo),Zu(e,t,n),Fu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Xu,Xu=16777216,Zu(e,t,n),Xu=r):Zu(e,t,n));break;case 30:if((e.flags&Xu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Gl===null&&(Gl=new Map),Gl.set(r,i)}Zu(e,t,n);break;default:Zu(e,t,n)}}function $u(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ed(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];mu=r,rd(r,e)}$u(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)td(e),e=e.sibling}function td(e){switch(e.tag){case 0:case 11:case 15:ed(e),e.flags&2048&&Ol(9,e,e.return);break;case 3:ed(e);break;case 12:ed(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,nd(e)):ed(e);break;default:ed(e)}}function nd(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];mu=r,rd(r,e)}$u(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ol(8,t,t.return),nd(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,nd(t));break;default:nd(t)}e=e.sibling}}function rd(e,t){for(;mu!==null;){var n=mu;switch(n.tag){case 0:case 11:case 15:Ol(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:La(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,mu=r;else a:for(n=e;mu!==null;){r=mu;var i=r.sibling,a=r.return;if(Tu(r),r===n){mu=null;break a}if(i!==null){i.return=a,mu=i;break a}mu=a}}}var id={getCacheForType:function(e){var t=ka(Fa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ka(Fa).controller.signal}},ad=typeof WeakMap==`function`?WeakMap:Map,B=0,od=null,V=null,H=0,U=0,sd=null,cd=!1,ld=!1,ud=!1,dd=0,fd=0,pd=0,md=0,hd=0,gd=0,_d=0,vd=null,yd=null,W=!1,bd=0,xd=0,Sd=1/0,Cd=null,wd=null,Td=0,Ed=null,Dd=null,Od=0,kd=0,Ad=null,jd=null,Md=null,Nd=null,Pd=null,Fd=0,Id=null;function Ld(){return B&2&&H!==0?H&-H:A.T===null?wt():Bf()}function Rd(){if(gd===0){if(!(H&536870912)||I){var e=ct;ct<<=1,!(ct&3932160)&&(ct=262144),gd=e}else gd=536870912}return e=Fo.current,e!==null&&(e.flags|=32),gd}function zd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=zp(xi(e.memoizedProps,n))),Nd===null&&(Nd=[]),Nd.push(t.bind(null,r))}}function Bd(e,t,n){(e===od&&(U===2||U===9)||e.cancelPendingCommit!==null)&&(qd(e,0),Wd(e,H,gd,!1)),_t(e,n),B&2&&e===od||(e===od&&(!(B&2)&&(md|=n),fd===4&&Wd(e,H,gd,!1)),Mf(e))}function Vd(e,t,n){if(B&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ft(e,t),a=r?tf(e,t):$d(e,t,!0),o=r;do{if(a===0){ld&&!r&&Wd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Ud(n))a=$d(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=vd;var l=c.current.memoizedState.isDehydrated;if(l&&(qd(c,s).flags|=256),s=$d(c,s,!1),s!==2&&s!==6){if(ud&&!l){c.errorRecoveryDisabledLanes|=o,md|=o,a=4;break a}o=yd,yd=a,o!==null&&(yd===null?yd=o:yd.push.apply(yd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){qd(e,0),Wd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Wd(r,t,gd,!cd);break a;case 2:yd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=bd+300-qe(),10<a)){if(Wd(r,t,gd,!cd),dt(r,0,!0)!==0)break a;Od=t,r.timeoutHandle=Cp(Hd.bind(null,r,n,yd,Cd,W,t,gd,md,_d,cd,o,`Throttled`,-0,0),a);break a}Hd(r,n,yd,Cd,W,t,gd,md,_d,cd,o,null,-0,0)}break}}while(1);Mf(e)}function Hd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},Gl=null,Qu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ah.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?bd-qe():(a&4194048)===a?xd-qe():0,m=rh(d,m),m!==null)?(Od=a,e.cancelPendingCommit=m(lf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Wd(e,a,o,!l)):lf(e,t,a,n,r,i,o,s,c,l,u,d)}function Ud(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Gr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wd(e,t,n,r){t=pt(e,t),t&=~hd,t&=~md,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-N(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&yt(e,n,t)}function Gd(){return B&6?!0:(Nf(0,!1),!1)}function Kd(){if(V!==null){if(U===0)var e=V.return;else e=V,xa=ba=null,ls(e),lo=null,uo=0,e=V;for(;e!==null;)El(e.alternate,e),e=e.return;V=null}}function qd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,wp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Od=0,Kd(),od=e,V=n=Ri(e.current,null),H=t,U=0,sd=null,cd=!1,ld=ft(e,t),ud=!1,_d=gd=hd=md=pd=fd=0,yd=vd=null,W=!1,dd=pt(e,t),Oi(),n}function Jd(e,t){R=null,A.H=yc,t===$a||t===to?(t=so(),U=3):t===eo?(t=so(),U=4):U=t===Lc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,sd=t,V===null&&(fd=1,jc(e,Ki(t,e.current)))}function Yd(){var e=Fo.current;return e===null?!0:(H&4194048)===H?L===null:(H&62914560)===H||H&536870912?e===L:!1}function Xd(){var e=A.H;return A.H=yc,e===null?yc:e}function Zd(){var e=A.A;return A.A=id,e}function Qd(){fd=4,cd||(H&4194048)!==H&&Fo.current!==null||(ld=!0),!(pd&134217727)&&!(md&134217727)||od===null||Wd(od,H,gd,!1)}function $d(e,t,n){var r=B;B|=2;var i=Xd(),a=Zd();(od!==e||H!==t)&&(Cd=null,qd(e,t)),t=!1;var o=fd;a:do try{if(U!==0&&V!==null){var s=V,c=sd;switch(U){case 8:Kd(),o=6;break a;case 3:case 2:case 9:case 6:Fo.current===null&&(t=!0);var l=U;if(U=0,sd=null,of(e,s,c,l),n&&ld){o=0;break a}break;default:l=U,U=0,sd=null,of(e,s,c,l)}}ef(),o=fd;break}catch(t){Jd(e,t)}while(1);return t&&e.shellSuspendCounter++,xa=ba=null,B=r,A.H=i,A.A=a,V===null&&(od=null,H=0,Oi()),o}function ef(){for(;V!==null;)rf(V)}function tf(e,t){var n=B;B|=2;var r=Xd(),a=Zd();od!==e||H!==t?(Cd=null,Sd=qe()+500,qd(e,t)):ld=ft(e,t);a:do try{if(U!==0&&V!==null){t=V;var o=sd;b:switch(U){case 1:U=0,sd=null,of(e,t,o,1);break;case 2:case 9:if(ro(o)){U=0,sd=null,af(t);break}t=function(){U!==2&&U!==9||od!==e||(U=7),Mf(e)},o.then(t,t);break a;case 3:U=7;break a;case 4:U=5;break a;case 7:ro(o)?(U=0,sd=null,af(t)):(U=0,sd=null,of(e,t,o,7));break;case 5:var s=null;switch(V.tag){case 26:s=V.memoizedState;case 5:case 27:var c=V;if(s?Qm(s):c.stateNode.complete){U=0,sd=null;var l=c.sibling;if(l!==null)V=l;else{var u=c.return;u===null?V=null:(V=u,sf(u))}break b}}U=0,sd=null,of(e,t,o,5);break;case 6:U=0,sd=null,of(e,t,o,6);break;case 8:Kd(),fd=6;break a;default:throw Error(i(462))}}nf();break}catch(t){Jd(e,t)}while(1);return xa=ba=null,A.H=r,A.A=a,B=n,V===null?(od=null,H=0,Oi(),fd):0}function nf(){for(;V!==null&&!Ge();)rf(V)}function rf(e){var t=_l(e.alternate,e,dd);e.memoizedProps=e.pendingProps,t===null?sf(e):V=t}function af(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Zc(n,t,t.pendingProps,t.type,void 0,H);break;case 11:t=Zc(n,t,t.pendingProps,t.type.render,t.ref,H);break;case 5:ls(t);var r=t;r===sa&&(I?(ma(r),r.tag===5&&r.stateNode!=null&&(ca=r.stateNode)):(ma(r),I=!0));default:El(n,t),t=V=zi(t,dd),t=_l(n,t,dd)}e.memoizedProps=e.pendingProps,t===null?sf(e):V=t}function of(e,t,n,r){xa=ba=null,ls(t),lo=null,uo=0;var i=t.return;try{if(Ic(e,i,t,n,H)){fd=1,jc(e,Ki(n,e.current)),V=null;return}}catch(t){if(i!==null)throw V=i,t;fd=1,jc(e,Ki(n,e.current)),V=null;return}t.flags&32768?(I||r===1?e=!0:ld||H&536870912?e=!1:(cd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Fo.current,r!==null&&r.tag===13&&(r.flags|=16384))),cf(t,e)):sf(t)}function sf(e){var t=e;do{if(t.flags&32768){cf(t,cd);return}e=t.return;var n=wl(t.alternate,t,dd);if(n!==null){V=n;return}if(t=t.sibling,t!==null){V=t;return}V=t=e}while(t!==null);fd===0&&(fd=5)}function cf(e,t){do{var n=Tl(e.alternate,e);if(n!==null){n.flags&=32767,V=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){V=e;return}V=e=n}while(e!==null);fd=6,V=null}function lf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do _f();while(Td!==0);if(B&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===od&&(V=od=null,H=0),Dd=t,Ed=e,Od=n,Ad=a,jd=r,uf(e,t,n,s,c,l,f)}}function uf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(kd=s,s|=Di,vt(e,n,s,r,i,a),Nd=null,(n&335544064)===n?(Pd=Ba(e),r=10262):(Pd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Tf(Ze,function(){return vf(),null})):(e.callbackNode=null,e.callbackPriority=0),Wl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=A.T,A.T=null,i=j.p,j.p=2,a=B,B|=4;try{yu(e,t,n)}finally{B=a,j.p=i,A.T=r}}Td=1,Wl?Md=Lp(o,e.containerInfo,Pd,pf,mf,ff,hf,vf,df,null,null):(pf(),mf(),hf())}function df(e){if(Td!==0){var t=Ed.onRecoverableError;t(e,{componentStack:null})}}function ff(){Td===3&&(Td=0,Bu(Dd,Ed),Td=4)}function pf(){if(Td===1){Td=0;var e=Ed,t=Dd,n=Od,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=A.T,A.T=null;var i=j.p;j.p=2;var a=B;B|=4;try{gu=_u=!1,Iu(t,e,n),n=hp;var o=Zr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Xr(s.ownerDocument.documentElement,s)){if(c!==null&&Qr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Yr(s,h),v=Yr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}yh=!!mp,hp=mp=null}finally{B=a,j.p=i,A.T=r}}e.current=t,Td=2}}function mf(){if(Td===2){Td=0;var e=Ed,t=Dd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=B;B|=4;try{xu(e,t.alternate,t)}finally{B=i,j.p=r,A.T=n}}Td=3}}function hf(){if(Td===4||Td===3){Td=0;var e=Md;Md=null,Ke();var t=Ed,n=Dd,r=Od,i=jd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Td=5:(Td=0,Dd=Ed=null,gf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(wd=null),Ct(r),n=n.stateNode,nt&&typeof nt.onCommitFiberRoot==`function`)try{nt.onCommitFiberRoot(tt,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=A.T,a=j.p,j.p=2,A.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{A.T=n,j.p=a}}if(i=Nd,o=Pd,Pd=null,i!==null&&(Nd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Od&3&&_f(),Mf(t),a=t.pendingLanes,r&261930&&a&42?t===Id?Fd++:(Fd=0,Id=t):(Fd=0,Id=null),Nf(0,!1)}}function gf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,La(t)))}function _f(){return Md!==null&&(Md.skipTransition(),Md=null),pf(),mf(),hf(),vf()}function vf(){if(Td!==5)return!1;var e=Ed,t=kd;kd=0;var n=Ct(Od),r=A.T,a=j.p;try{j.p=32>n?32:n,A.T=null,n=Ad,Ad=null;var o=Ed,s=Od;if(Td=0,Dd=Ed=null,Od=0,B&6)throw Error(i(331));var c=B;if(B|=4,td(o.current),qu(o,o.current,s,n),B=c,Nf(0,!1),nt&&typeof nt.onPostCommitFiberRoot==`function`)try{nt.onPostCommitFiberRoot(tt,o)}catch{}return!0}finally{j.p=a,A.T=r,gf(e,t)}}function yf(e,t,n){t=Ki(n,t),t=Nc(e.stateNode,t,2),e=So(e,t,2),e!==null&&(_t(e,2),Mf(e))}function G(e,t,n){if(e.tag===3)yf(e,e,n);else for(;t!==null;){if(t.tag===3){yf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(wd===null||!wd.has(r))){e=Ki(n,e),n=Pc(2),r=So(t,n,2),r!==null&&(Fc(n,r,t,e),_t(r,2),Mf(r));break}}t=t.return}}function bf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ad;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ud=!0,i.add(n),e=xf.bind(null,e,t,n),t.then(e,e))}function xf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,od===e&&(H&n)===n&&(fd===4||fd===3&&(H&62914560)===H&&300>qe()-bd?B&2?hd|=n:qd(e,0):hd|=n,_d===H&&(_d=0)),Mf(e)}function Sf(e,t){t===0&&(t=ht()),e=ji(e,t),e!==null&&(_t(e,t),Mf(e))}function Cf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sf(e,n)}function wf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Sf(e,n)}function Tf(e,t){return Ue(e,t)}var Ef=null,Df=null,Of=!1,kf=!1,Af=!1,jf=0;function Mf(e){e!==Df&&e.next===null&&(Df===null?Ef=Df=e:Df=Df.next=e),kf=!0,Of||(Of=!0,zf())}function Nf(e,t){if(!Af&&kf){Af=!0;do for(var n=!1,r=Ef;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-N(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Rf(r,a))}else a=H,a=dt(r,r===od?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ft(r,a)||(n=!0,Rf(r,a))}r=r.next}while(n);Af=!1}}function Pf(){Ff()}function Ff(){kf=Of=!1;var e=0;jf!==0&&Sp()&&(e=jf);for(var t=qe(),n=null,r=Ef;r!==null;){var i=r.next,a=If(r,t);a===0?(r.next=null,n===null?Ef=i:n.next=i,i===null&&(Df=n)):(n=r,(e!==0||a&3)&&(kf=!0)),r=i}Td!==0&&Td!==5||Nf(e,!1),jf!==0&&(jf=0)}function If(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-N(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=mt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=od,n=H,n=dt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(U===2||U===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&We(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ft(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&We(r),Ct(n)){case 2:case 8:n=Xe;break;case 32:n=Ze;break;case 268435456:n=$e;break;default:n=Ze}return r=Lf.bind(null,e),n=Ue(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&We(r),e.callbackPriority=2,e.callbackNode=null,2}function Lf(e,t){if(Td!==0&&Td!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(_f()&&e.callbackNode!==n)return null;var r=H;return r=dt(e,e===od?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Vd(e,r,t),If(e,qe()),e.callbackNode!=null&&e.callbackNode===n?Lf.bind(null,e):null)}function Rf(e,t){if(_f())return null;Vd(e,t,!0)}function zf(){Dp(function(){B&6?Ue(Ye,Pf):Ff()})}function Bf(){if(jf===0){var e=Ua;e===0&&(e=st,st<<=1,!(st&261888)&&(st=256)),jf=e}return jf}function Vf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:xn(e)}function Hf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Vf((i[Dt]||null).action),o=r.submitter;o&&(t=(t=o[Dt]||null)?Vf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Un(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(jf!==0){var e=new FormData(i,o);ac(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),ac(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Uf=0;Uf<vi.length;Uf++){var Wf=vi[Uf];yi(Wf.toLowerCase(),`on`+(Wf[0].toUpperCase()+Wf.slice(1)))}yi(ui,`onAnimationEnd`),yi(di,`onAnimationIteration`),yi(fi,`onAnimationStart`),yi(`dblclick`,`onDoubleClick`),yi(`focusin`,`onFocus`),yi(`focusout`,`onBlur`),yi(pi,`onTransitionRun`),yi(mi,`onTransitionStart`),yi(hi,`onTransitionCancel`),yi(gi,`onTransitionEnd`),Gt(`onMouseEnter`,[`mouseout`,`mouseover`]),Gt(`onMouseLeave`,[`mouseout`,`mouseover`]),Gt(`onPointerEnter`,[`pointerout`,`pointerover`]),Gt(`onPointerLeave`,[`pointerout`,`pointerover`]),Wt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Wt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Wt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Wt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Wt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Wt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Gf=`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(` `),Kf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Gf));function qf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){wi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){wi(e)}i.currentTarget=null,a=c}}}}function K(e,t){var n=t[kt];n===void 0&&(n=t[kt]=new Set);var r=e+`__bubble`;n.has(r)||(Zf(t,e,2,!1),n.add(r))}function Jf(e,t,n){var r=0;t&&(r|=4),Zf(n,e,r,t)}var Yf=`_reactListening`+Math.random().toString(36).slice(2);function Xf(e){if(!e[Yf]){e[Yf]=!0,Ht.forEach(function(t){t!==`selectionchange`&&(Kf.has(t)||Jf(t,!1,e),Jf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yf]||(t[Yf]=!0,Jf(`selectionchange`,!1,t))}}function Zf(e,t,n,r){switch(Eh(t)){case 2:var i=bh;break;case 8:i=xh;break;default:i=Sh}n=i.bind(null,t,n,e),i=void 0,!Mn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=It(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}kn(function(){var r=a,i=wn(n),s=[];a:{var c=_i.get(e);if(c!==void 0){var l=Un,u=e;switch(e){case`keypress`:if(Rn(n)===0)break a;case`keydown`:case`keyup`:l=sr;break;case`focusin`:u=`focus`,l=Qn;break;case`focusout`:u=`blur`,l=Qn;break;case`beforeblur`:case`afterblur`:l=Qn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Xn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Zn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ur;break;case ui:case di:case fi:l=$n;break;case gi:l=dr;break;case`scroll`:case`scrollend`:l=Gn;break;case`wheel`:l=fr;break;case`copy`:case`cut`:case`paste`:l=er;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=cr;break;case`submit`:l=lr;break;case`toggle`:case`beforetoggle`:l=pr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=An(m,p),g!=null&&d.push($f(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==Cn&&(u=n.relatedTarget||n.fromElement)&&(It(u)||u[Ot]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?It(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Xn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=cr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Rt(c),h=l==null?u:Rt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,It(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,tp):null,c!==null&&np(s,u,c,d,!1),l!==null&&f!==null&&np(s,f,l,d,!0)))}a:{if(c=r?Rt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Nr;else if(Dr(c)){if(Pr)_=Ur;else{_=Vr;var v=Br}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&vn(r.elementType)&&(_=Nr):_=Hr;if(_&&=_(e,r)){Or(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Rt(r):window,e){case`focusin`:(Dr(v)||v.contentEditable===`true`)&&(ei=v,ti=r,ni=null);break;case`focusout`:ni=ti=ei=null;break;case`mousedown`:ri=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ri=!1,ii(s,n,i);break;case`selectionchange`:if($r)break;case`keydown`:case`keyup`:ii(s,n,i)}var y;if(hr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Cr?xr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(vr&&n.locale!==`ko`&&(Cr||b!==`onCompositionStart`?b===`onCompositionEnd`&&Cr&&(y=Ln()):(Pn=i,Fn=`value`in Pn?Pn.value:Pn.textContent,Cr=!0)),v=ep(r,b),0<v.length&&(b=new tr(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=Sr(n),y!==null&&(b.data=y)))),(y=_r?wr(e,n):Tr(e,n))&&(b=ep(r,`onBeforeInput`),0<b.length&&(v=new tr(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Hf(s,e,r,n,i)}qf(s,t)})}function $f(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ep(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=An(e,n),i!=null&&r.unshift($f(e,i,a)),i=An(e,t),i!=null&&r.push($f(e,i,a))),e.tag===3)return r;e=e.return}return[]}function tp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function np(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=An(n,a),l!=null&&o.unshift($f(n,l,c))):i||(l=An(n,a),l!=null&&o.push($f(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rp=/\r\n?/g,ip=/\u0000|\uFFFD/g;function ap(e){return(typeof e==`string`?e:``+e).replace(rp,`
|
|
9
|
-
`).replace(ip,``)}function op(e,t){return t=ap(t),ap(e)===t}function sp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||mn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&mn(e,``+r);else return;break;case`className`:Qt(e,`class`,r);break;case`tabIndex`:Qt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Qt(e,n,r);break;case`style`:_n(e,r,o);return;case`data`:if(t!==`object`){Qt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=xn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&sp(e,t,`name`,a.name,a,null),sp(e,t,`formEncType`,a.formEncType,a,null),sp(e,t,`formMethod`,a.formMethod,a,null),sp(e,t,`formTarget`,a.formTarget,a,null)):(sp(e,t,`encType`,a.encType,a,null),sp(e,t,`method`,a.method,a,null),sp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=xn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Sn);return;case`onScroll`:r!=null&&K(`scroll`,e);return;case`onScrollEnd`:r!=null&&K(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=xn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:K(`beforetoggle`,e),K(`toggle`,e),Zt(e,`popover`,r);break;case`xlinkActuate`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:$t(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:$t(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:$t(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:$t(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Zt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=yn.get(n)||n,Zt(e,n,r);else return}F=!0}function cp(e,t,n,r,a,o){switch(n){case`style`:_n(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)mn(e,r);else if(typeof r==`number`||typeof r==`bigint`)mn(e,``+r);else return;break;case`onScroll`:r!=null&&K(`scroll`,e);return;case`onScrollEnd`:r!=null&&K(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Sn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Ut.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[Dt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}F=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Zt(e,n,r)}return}F=!0}function lp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:K(`error`,e),K(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:sp(e,t,o,s,n,null)}}a&&sp(e,t,`srcSet`,n.srcSet,n,null),r&&sp(e,t,`src`,n.src,n,null);return;case`input`:K(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:sp(e,t,r,d,n,null)}}ln(e,o,c,l,u,s,a,!1);return;case`select`:for(a in K(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:sp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&dn(e,!!r,n,!0):dn(e,!!r,t,!1);return;case`textarea`:for(s in K(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:sp(e,t,s,c,n,null)}pn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:sp(e,t,l,r,n,null)}return;case`dialog`:K(`beforetoggle`,e),K(`toggle`,e),K(`cancel`,e),K(`close`,e);break;case`iframe`:case`object`:K(`load`,e);break;case`video`:case`audio`:for(r=0;r<Gf.length;r++)K(Gf[r],e);break;case`image`:K(`error`,e),K(`load`,e);break;case`details`:K(`toggle`,e);break;case`embed`:case`source`:case`link`:K(`error`,e),K(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:sp(e,t,u,r,n,null)}return;default:if(vn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&cp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&sp(e,t,c,r,n,null))}var up={};function dp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||sp(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(F=!0),o=m;break;case`name`:m!==f&&(F=!0),a=m;break;case`checked`:m!==f&&(F=!0),u=m;break;case`defaultChecked`:m!==f&&(F=!0),d=m;break;case`value`:m!==f&&(F=!0),s=m;break;case`defaultValue`:m!==f&&(F=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&sp(e,t,p,m,r,f)}}cn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||sp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(F=!0),p=o;break;case`defaultValue`:o!==l&&(F=!0),c=o;break;case`multiple`:o!==l&&(F=!0),s=o;default:o!==l&&sp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?dn(e,!!n,n?[]:``,!1):dn(e,!!n,t,!0)):dn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:sp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(F=!0),p=a;break;case`defaultValue`:a!==o&&(F=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&sp(e,t,s,a,r,o)}fn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:sp(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(F=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:sp(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&sp(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:sp(e,t,u,p,r,m)}return;default:if(vn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&cp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||cp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&sp(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||sp(e,t,f,p,r,m)}function fp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function pp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&fp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&fp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var mp=null,hp=null;function gp(e){return e.nodeType===9?e:e.ownerDocument}function _p(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function vp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function yp(e,t,n,r){return n=gp(n).createElement(e),n[Et]=r,n[Dt]=t,lp(n,e,t),Bt(n),n}function bp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xp=null;function Sp(){var e=window.event;return e&&e.type===`popstate`?e!==xp&&(xp=e,!0):(xp=null,!1)}var Cp=typeof setTimeout==`function`?setTimeout:void 0,wp=typeof clearTimeout==`function`?clearTimeout:void 0,Tp=typeof Promise==`function`?Promise:void 0,Ep=typeof requestAnimationFrame==`function`?requestAnimationFrame:Cp,Dp=typeof queueMicrotask==`function`?queueMicrotask:Tp===void 0?Cp:function(e){return Tp.resolve(null).then(e).catch(Op)};function Op(e){setTimeout(function(){throw e})}function kp(e){return e===`head`}function Ap(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Gh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Sm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Sm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Nt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Sm(e.ownerDocument.body)}n=i}while(n);Gh(t)}function jp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function q(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function J(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Mp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Np(e){return Mp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Pp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Mp(t,n,e)}function Fp(e){return e.documentElement.clientHeight}function Ip(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Lp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Fp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=$m(f),u>nh){s.length=o;break}f=new Promise(Ip.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Rp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Rp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Rp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Rp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function zp(e){return{name:e,group:new Rp(`group`,e),imagePair:new Rp(`image-pair`,e),old:new Rp(`old`,e),new:new Rp(`new`,e)}}function Bp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Bp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Gp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Up(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Vp,e,s,r)}this._eventListeners=a}};function Vp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Bp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Gp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Up(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Hp,e,n,i),r.splice(t,1),a!==null&&a()}};function Hp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Up(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Wp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Gp(e,t,n,r){if(e.length===0)return-1;r=Wp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Wp(a.optionsOrUseCapture)===r)return i}return-1}Bp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Up(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Bp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag!==6&&(e=b(e),vm(e,t))}Bp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,qp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Kp(t[n],e);n--);};function qp(e,t){return t.push(e),!1}Bp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=gp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Jp,e,void 0,void 0))};function Jp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Bp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Bp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,Xp,e,void 0,void 0);for(var n=t=0;n<Zp.length;n++){var r=Zp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Zp[t++]=r}Zp.length=t}};function Xp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Zp=[],Qp=!1;function $p(e,t,n){Zp.push({fragmentInstance:e,observer:t,instance:n}),Qp||(Qp=!0,ym(function(){Qp=!1;var e=Zp;Zp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Bp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,em,e,void 0,void 0),e};function em(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Bp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Bp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,qp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||tm(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function tm(e,t,n,r,i){var a=It(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(m(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function nm(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Bp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,qp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),nm(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),nm(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function rm(e,t){return e=b(e),im(e,t),!1}function im(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function am(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Zp.length;i++){var a=Zp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Zp[r++]=a)}Zp.length=r,n.observe(e)}),im(e,t))}function om(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Up(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?$p(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function sm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:sm(n),Ft(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function cm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Nt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=mm(e.nextSibling),e===null)break}return null}function lm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=mm(e.nextSibling),e===null))return null;return e}function um(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=mm(e.nextSibling),e===null))return null;return e}function dm(e){return e.data===`$?`||e.data===`$~`}function fm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function pm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function mm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var hm=null;function gm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return mm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function _m(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function vm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function ym(e){Ep(function(){Ep(function(t){return e(t)})})}function bm(e,t,n){switch(t=gp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function xm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&sp(e,t,r,null,up,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===Sn&&(e.onclick=null),Ft(e)}function Sm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ft(e)}var Cm=new Map,wm=new Set;function Tm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Em=j.d;j.d={f:Y,r:Dm,D:km,C:Am,L:jm,m:Mm,X:Pm,S:Nm,M:Fm};function Y(){var e=Em.f(),t=Gd();return e||t}function Dm(e){var t=Lt(e);t!==null&&t.tag===5&&t.type===`form`?sc(t):Em.r(e)}var Om=typeof document>`u`?null:document;function X(e,t,n){var r=Om;if(r&&typeof t==`string`&&t){var i=sn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wm.has(i)||(wm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),lp(t,`link`,e),Bt(t),r.head.appendChild(t)))}}function km(e){Em.D(e),X(`dns-prefetch`,e,null)}function Am(e,t){Em.C(e,t),X(`preconnect`,e,t)}function jm(e,t,n){Em.L(e,t,n);var r=Om;if(r&&e&&t){var i=`link[rel="preload"][as="`+sn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+sn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+sn(n.imageSizes)+`"]`)):i+=`[href="`+sn(e)+`"]`;var a=i;switch(t){case`style`:a=Lm(e);break;case`script`:a=Vm(e)}if(!(Cm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Rm(a))||t===`script`&&r.querySelector(Hm(a))))){var o=r.createElement(`link`);lp(o,`link`,e),t===`style`&&(o[Pt]=!0,o.onload=o.onerror=function(){Vt(o)}),Bt(o),r.head.appendChild(o)}}}function Mm(e,t){Em.m(e,t);var n=Om;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+sn(r)+`"][href="`+sn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Vm(e)}if(!Cm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Cm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Hm(a)))return}r=n.createElement(`link`),lp(r,`link`,e),Bt(r),n.head.appendChild(r)}}}function Nm(e,t,n){Em.S(e,t,n);var r=Om;if(r&&e){var i=zt(r).hoistableStyles,a=Lm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Rm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cm.get(a))&&Gm(e,n);var c=o=r.createElement(`link`);Bt(c),lp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Wm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Pm(e,t){Em.X(e,t);var n=Om;if(n&&e){var r=zt(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=D({src:e,async:!0},t),(t=Cm.get(i))&&Km(e,t),a=n.createElement(`script`),Bt(a),lp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t){Em.M(e,t);var n=Om;if(n&&e){var r=zt(n).hoistableScripts,i=Vm(e),a=r.get(i);a||(a=n.querySelector(Hm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Cm.get(i))&&Km(e,t),a=n.createElement(`script`),Bt(a),lp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Im(e,t,n,r){var a=(a=ke.current)?Tm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Lm(n.href),t=zt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Lm(n.href);var o=zt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Rm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Cm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cm.set(e,o)),Bm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Vm(n),t=zt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Lm(e){return`href="`+sn(e)+`"`}function Rm(e){return`link[rel="stylesheet"][`+e+`]`}function zm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Bm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Pt]){r.loading=1;return}}else t=e.createElement(`link`),t[Pt]=!0,t.onload=t.onerror=Vt.bind(null,t),lp(t,`link`,n),Bt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Vm(e){return`[src="`+sn(e)+`"]`}function Hm(e){return`script[async]`+e}function Um(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+sn(n.href)+`"]`);if(r)return t.instance=r,Bt(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Bt(r),lp(r,`style`,a),Wm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Lm(n.href);var o=e.querySelector(Rm(a));if(o)return t.state.loading|=4,t.instance=o,Bt(o),o;r=zm(n),(a=Cm.get(a))&&Gm(r,a),o=(e.ownerDocument||e).createElement(`link`),Bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),lp(o,`link`,r),t.state.loading|=4,Wm(o,n.precedence,e),t.instance=o;case`script`:return o=Vm(n.src),(a=e.querySelector(Hm(o)))?(t.instance=a,Bt(a),a):(r=n,(a=Cm.get(o))&&(r=D({},n),Km(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Bt(a),lp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Wm(r,n.precedence,e));return t.instance}function Wm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Km(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var qm=null;function Jm(e,t,n){if(qm===null){var r=new Map,i=qm=new Map;i.set(n,r)}else i=qm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Nt]||a[Et]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Ym(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Xm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Zm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Qm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $m(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function eh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=$m(t),e.suspenseyImages.push(t)),e=oh.bind(e),t.decode().then(e,e))}function th(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Lm(r.href),a=t.querySelector(Rm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ah.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Bt(a);return}a=t.ownerDocument||t,r=zm(r),(i=Cm.get(i))&&Gm(r,i),a=a.createElement(`link`),Bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),lp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ah.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var nh=0;function rh(e,t){return e.stylesheets&&e.count===0&&ch(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&nh===0&&(nh=62500*pp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ch(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>nh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ih(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ch(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ah(){this.count--,ih(this)}function oh(){this.imgCount--,ih(this)}var sh=null;function ch(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sh=new Map,t.forEach(lh,e),sh=null,ah.call(e))}function lh(e,t){if(!(t.state.loading&4)){var n=sh.get(e);if(n)var r=n.get(null);else{n=new Map,sh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ah.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var uh={$$typeof:ae,Provider:null,Consumer:null,_currentValue:xe,_currentValue2:xe,_threadCount:0};function dh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.hiddenUpdates=gt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function fh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new dh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ii(3,null,null,t),e.current=a,a.stateNode=e,t=Ia(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},yo(a),e}function ph(e){return e?(e=Pi,e):Pi}function mh(e,t,n,r,i,a){i=ph(i),r.context===null?r.context=i:r.pendingContext=i,r=xo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=So(e,r,t),n!==null&&(Bd(n,e,t),Co(n,e,t))}function hh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gh(e,t){hh(e,t),(e=e.alternate)&&hh(e,t)}function _h(e){if(e.tag===13||e.tag===31){var t=ji(e,67108864);t!==null&&Bd(t,e,67108864),gh(e,67108864)}}function vh(e){if(e.tag===13||e.tag===31){var t=Ld();t=St(t);var n=ji(e,t);n!==null&&Bd(n,e,t),gh(e,t)}}var yh=!0;function bh(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=2,Sh(e,t,n,r)}finally{j.p=a,A.T=i}}function xh(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=8,Sh(e,t,n,r)}finally{j.p=a,A.T=i}}function Sh(e,t,n,r){if(yh){var i=Ch(r);if(i===null)Qf(e,t,r,wh,n),Fh(e,r);else if(Lh(i,e,t,n,r))r.stopPropagation();else if(Fh(e,r),t&4&&-1<Ph.indexOf(e)){for(;i!==null;){var a=Lt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ut(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-N(o);s.entanglements[1]|=c,o&=~c}Mf(a),!(B&6)&&(Sd=qe()+500,Nf(0,!1))}}break;case 31:case 13:s=ji(a,2),s!==null&&Bd(s,a,2),Gd(),gh(a,2)}if(a=Ch(r),a===null&&Qf(e,t,r,wh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Qf(e,t,r,null,n)}}function Ch(e){return e=wn(e),Th(e)}var wh=null;function Th(e){if(wh=null,e=It(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wh=e,null}function Eh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Je()){case Ye:return 2;case Xe:return 8;case Ze:case Qe:return 32;case $e:return 268435456;default:return 32}default:return 32}}var Dh=!1,Oh=null,kh=null,Ah=null,jh=new Map,Mh=new Map,Nh=[],Ph=`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 Fh(e,t){switch(e){case`focusin`:case`focusout`:Oh=null;break;case`dragenter`:case`dragleave`:kh=null;break;case`mouseover`:case`mouseout`:Ah=null;break;case`pointerover`:case`pointerout`:jh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Mh.delete(t.pointerId)}}function Ih(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Lt(t),t!==null&&_h(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Lh(e,t,n,r,i){switch(t){case`focusin`:return Oh=Ih(Oh,e,t,n,r,i),!0;case`dragenter`:return kh=Ih(kh,e,t,n,r,i),!0;case`mouseover`:return Ah=Ih(Ah,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return jh.set(a,Ih(jh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Mh.set(a,Ih(Mh.get(a)||null,e,t,n,r,i)),!0}return!1}function Rh(e){var t=It(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Tt(e.priority,function(){vh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Tt(e.priority,function(){vh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function zh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ch(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cn=r,n.target.dispatchEvent(r),Cn=null}else return t=Lt(n),t!==null&&_h(t),e.blockedOn=n,!1;t.shift()}return!0}function Bh(e,t,n){zh(e)&&n.delete(t)}function Vh(){Dh=!1,Oh!==null&&zh(Oh)&&(Oh=null),kh!==null&&zh(kh)&&(kh=null),Ah!==null&&zh(Ah)&&(Ah=null),jh.forEach(Bh),Mh.forEach(Bh)}function Hh(e,n){e.blockedOn===n&&(e.blockedOn=null,Dh||(Dh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vh)))}var Uh=null;function Wh(e){Uh!==e&&(Uh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Uh===e&&(Uh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Th(r||n)===null)continue;break}var a=Lt(n);a!==null&&(e.splice(t,3),t-=3,ac(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Gh(e){function t(t){return Hh(t,e)}Oh!==null&&Hh(Oh,e),kh!==null&&Hh(kh,e),Ah!==null&&Hh(Ah,e),jh.forEach(t),Mh.forEach(t);for(var n=0;n<Nh.length;n++){var r=Nh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Nh.length&&(n=Nh[0],n.blockedOn===null);)Rh(n),n.blockedOn===null&&Nh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Dt]||null;if(typeof a==`function`)o||Wh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Dt]||null)s=o.formAction;else if(Th(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Wh(n)}}}function Kh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function qh(e){this._internalRoot=e}Jh.prototype.render=qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;mh(n,Ld(),e,t,null,null)},Jh.prototype.unmount=qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),Gd(),t[Ot]=null}};function Jh(e){this._internalRoot=e}Jh.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nh.length&&t!==0&&t<Nh[n].priority;n++);Nh.splice(n,0,e),n===0&&Rh(e)}};var Yh=n.version;if(Yh!==`19.3.1`)throw Error(i(527,Yh,`19.3.1`));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Xh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:A,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Zh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zh.isDisabled&&Zh.supportsFiber)try{tt=Zh.inject(Xh),nt=Zh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Oc,s=kc,c=Ac;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=fh(e,1,!1,null,null,n,r,null,o,s,c,Kh),e[Ot]=t.current,Xf(e),new qh(t)}})),_=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),y=o(((e,t)=>{t.exports=v()})),b=l(d(),1),x=(0,b.createContext)({});function S(e){let t=(0,b.useRef)(null);return t.current===null&&(t.current=e()),t.current}var C=typeof window<`u`?b.useLayoutEffect:b.useEffect,w=(0,b.createContext)(null);function T(e,t){e.indexOf(t)===-1&&e.push(t)}function E(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var D=(e,t,n)=>n>t?t:n<e?e:n,O={},ee=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),te=e=>typeof e==`object`&&!!e,ne=e=>/^0[^.\s]+$/u.test(e);function re(e){let t;return()=>(t===void 0&&(t=e()),t)}var k=e=>e,ie=(...e)=>e.reduce((e,t)=>n=>t(e(n))),ae=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},oe=class{constructor(){this.subscriptions=[]}add(e){return T(this.subscriptions,e),()=>this.remove(e)}remove(e){E(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},se=e=>e*1e3,ce=e=>e/1e3,le=(e,t)=>t?1e3/t*e:0,ue=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function de(e,t,n,r){return e===t&&n===r?k:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=ue(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(ue(s+1e-7,e,n)-i-r)}return ue(s,t,r)}}var fe=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pe=e=>t=>1-e(1-t),me=de(.33,1.53,.69,.99),he=pe(me),ge=fe(he),_e=e=>e>=1?1:(e*=2)<1?.5*he(e):.5*(2-2**(-10*(e-1))),ve=e=>1-Math.sin(Math.acos(e)),ye=pe(ve),be=fe(ve),A=de(.42,0,1,1),j=de(0,0,.58,1),xe=de(.42,0,.58,1),Se=e=>Array.isArray(e)&&typeof e[0]!=`number`,Ce=e=>Array.isArray(e)&&typeof e[0]==`number`,we={linear:k,easeIn:A,easeInOut:xe,easeOut:j,circIn:ve,circInOut:be,circOut:ye,backIn:he,backInOut:ge,backOut:me,anticipate:_e},Te=e=>typeof e==`string`,Ee=e=>{if(Ce(e)){e.length;let[t,n,r,i]=e;return de(t,n,r,i)}return Te(e)?(we[e],`${e}`,we[e]):e},De={delta:0,timestamp:0,isProcessing:!1},Oe;function ke(){Oe=void 0}var Ae={now:()=>(Oe===void 0&&Ae.set(De.isProcessing||O.useManualTiming?De.timestamp:performance.now()),Oe),set:e=>{Oe=e,queueMicrotask(ke)}},je=e=>Math.round(e*1e5)/1e5,Me=e=>t=>typeof t==`string`&&t.startsWith(e),Ne=Me(`--`),Pe=Me(`var(--`),Fe=e=>Pe(e)?Ie.test(e.split(`/*`)[0].trim()):!1,Ie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Le(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Re={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},ze={...Re,transform:e=>D(0,1,e)},Be={...Re,default:1},Ve=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function He(e){return e==null}var Ue=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,We=(e,t)=>n=>!!(typeof n==`string`&&Ue.test(n)&&n.startsWith(e)||t&&!He(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ge=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ve);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ke=e=>D(0,255,e),qe={...Re,transform:e=>Math.round(Ke(e))},Je={test:We(`rgb`,`red`),parse:Ge(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+qe.transform(e)+`, `+qe.transform(t)+`, `+qe.transform(n)+`, `+je(ze.transform(r))+`)`};function Ye(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Xe={test:We(`#`),parse:Ye,transform:Je.transform},Ze=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qe=Ze(`deg`),$e=Ze(`%`),M=Ze(`px`),et=Ze(`vh`),tt=Ze(`vw`),nt={...$e,parse:e=>$e.parse(e)/100,transform:e=>$e.transform(e*100)},rt={test:We(`hsl`,`hue`),parse:Ge(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+$e.transform(je(t))+`, `+$e.transform(je(n))+`, `+je(ze.transform(r))+`)`},N={test:e=>Je.test(e)||Xe.test(e)||rt.test(e),parse:e=>Je.test(e)?Je.parse(e):rt.test(e)?rt.parse(e):Xe.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Je.transform(e):rt.transform(e),getAnimatableNone:e=>{let t=N.parse(e);return t.alpha=0,N.transform(t)}},it=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,at=new RegExp(Ve.source),ot=new RegExp(it.source,`i`);function st(e){return isNaN(e)&&typeof e==`string`&&(at.test(e)||ot.test(e))}var ct=`number`,lt=`color`,ut=`var`,dt=`var(`,ft="${}",pt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function mt(e){let t=e.toString();return at.test(t)||ot.test(t)}function ht(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(pt,e=>(N.test(e)?(r.color.push(a),i.push(lt),n.push(N.parse(e))):e.startsWith(dt)?(r.var.push(a),i.push(ut),n.push(e)):(r.number.push(a),i.push(ct),n.push(parseFloat(e))),++a,ft)).split(ft),indexes:r,types:i}}function gt(e){return ht(e).values}function _t({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===ct?je(r[a]):e===lt?N.transform(r[a]):r[a]}return i}}function vt(e){return _t(ht(e))}var yt=e=>typeof e==`number`?0:N.test(e)?N.getAnimatableNone(e):e,bt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:yt(e);function xt(e){let t=ht(e);return _t(t)(t.values.map((e,n)=>bt(e,t.split[n])))}var St={test:st,parse:gt,createTransformer:vt,getAnimatableNone:xt};function Ct(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function wt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Ct(s,r,e+1/3),a=Ct(s,r,e),o=Ct(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Tt(e,t){return n=>n>0?t:e}var P=(e,t,n)=>e+(t-e)*n,Et=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Dt=[Xe,Je,rt],Ot=e=>Dt.find(t=>t.test(e));function kt(e){let t=Ot(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===rt&&(n=wt(n)),n}var At=(e,t)=>{let n=kt(e),r=kt(t);if(!n||!r)return Tt(e,t);let i={...n};return e=>(i.red=Et(n.red,r.red,e),i.green=Et(n.green,r.green,e),i.blue=Et(n.blue,r.blue,e),i.alpha=P(n.alpha,r.alpha,e),Je.transform(i))},jt=new Set([`none`,`hidden`]);function Mt(e,t){return jt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Nt(e,t){return n=>P(e,t,n)}function Pt(e){return typeof e==`number`?Nt:typeof e==`string`?Fe(e)?Tt:N.test(e)?At:Rt:Array.isArray(e)?Ft:typeof e==`object`?N.test(e)?At:It:Tt}function Ft(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Pt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function It(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Pt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Lt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Rt=(e,t)=>{let n=St.createTransformer(t),r=ht(e),i=ht(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?jt.has(e)&&!i.values.length||jt.has(t)&&!r.values.length?Mt(e,t):ie(Ft(Lt(r,i),i.values),n):(`${e}${t}`,Tt(e,t))},zt=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Bt(e,t){let n=zt.exec(e);if(!n)return;let r=zt.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>je(P(a,o,e))+i}function Vt(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return P(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Bt(e,t);if(n)return n}return Pt(e)(e,t)}var Ht=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ut(e){let t=new Set,n=new Set,r=!1,i=!1,a,o=new Set,s={delta:0,timestamp:0,isProcessing:!1};function c(t){o.has(t)&&(n.add(t),e()),(a=t)(s)}let l={schedule:(e,i=!1,s=!1)=>{let c=s&&r,l=c?t:n;return i&&o.add(e),c&&e!==a&&l.delete(e),l.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(c),t.clear(),a=void 0,r=!1,i&&(i=!1,l.process(e))}};return l}var Wt=40;function Gt(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Ht.reduce((e,t)=>(e[t]=Ut(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=O.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Wt),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Ht.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ht.length;t++)o[Ht[t]].cancel(e)},state:n,steps:o}}var{schedule:Kt,cancel:qt,steps:Jt}=Gt(typeof requestAnimationFrame<`u`?requestAnimationFrame:k,!0,De),Yt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Kt.update(t,e),stop:()=>qt(t),now:()=>De.isProcessing?De.timestamp:Ae.now()}},F=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Xt=2e4;function Zt(e,t=50,n=Xt,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Qt(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Zt(o),Xt);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:ce(s)}}var $t={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},en=e=>e<0?1/Math.max(1+e,$t.minDamping):Math.max(1-e,$t.minDamping);function tn(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return an(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function nn(e,t){return e*Math.sqrt(1-t*t)}var rn=12;function an(e,t,n){let r=n;for(let n=1;n<rn;n++)r-=e(r)/t(r);return r}var on=.001;function sn({duration:e=$t.duration,bounce:t=$t.bounce}){let n,r;$t.maxDuration;let i=en(t);e=D($t.minDuration,$t.maxDuration,ce(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=nn(t,i),o=Math.exp(-r);return on-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=nn(t*t,i);return(-n(t)+on>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=an(n,r,a),s=o*tn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:se(e)}}var cn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function ln(e,t){if(cn(e,t))return e}function un(e){let t=ln(e.stiffness),n=ln(e.damping,!0),r=ln(e.mass),i={...e,stiffness:t??$t.stiffness,damping:n??$t.damping,mass:r??$t.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=en(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*tn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,sn(i)),i.isResolvedFromDuration=!0;cn(i.stiffness)&&cn(i.damping,!0)||(i.stiffness=$t.stiffness,i.damping=$t.damping)}return i}function dn(e=$t.visualDuration,t=$t.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=un({...n}),f=e=>d?0:-ce(e),p=s/(2*Math.sqrt(o*c)),m=ce(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?$t.restSpeed.granular:$t.restSpeed.default),g.restDelta=n.restDelta||(e?$t.restDelta.granular:$t.restDelta.default)};_();let v,y,b;if(p<1){let e=nn(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>se(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=se(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Zt(S),Xt),t=F(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}var fn=Object.assign(dn,{applyToOptions:e=>{let t=Qt(e,100,dn);return e.ease=t.ease,e.duration=se(t.duration),e.type=`keyframes`,e}});function pn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=fn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function mn(e,t,n){let r=[],i=n||O.mix||Vt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=ie(Array.isArray(t)?t[n]||k:t,a)),r.push(a)}return r}function hn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=mn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ae(e[r],e[r+1],n);return s[r](i)};return n?t=>l(D(e[0],e[a-1],t)):l}function gn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ae(0,t,r);e.push(P(n,1,i))}}function _n(e){let t=[0];return gn(t,e.length-1),t}function vn(e,t){return e.map(e=>e*t)}function yn(e,t){return e.map(()=>t||xe).splice(0,e.length-1)}function bn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Se(r)?r.map(Ee):Ee(r)||xe,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(O.mix||Vt)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?D(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=hn(vn(n&&n.length===t.length?n:_n(t),e),t,{ease:Array.isArray(i)?i:yn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var xn=5;function Sn(e,t,n){let r=Math.max(t-xn,0);return le(n-e(r),t-r)}function Cn(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Sn(t=>e.next(t).value,t,e.next(t).value)}var wn=e=>e!==null;function Tn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(wn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var En={decay:pn,inertia:pn,tween:bn,keyframes:bn,spring:fn};function Dn(e){typeof e.type==`string`&&(e.type=En[e.type])}var On=40,kn=(e,t)=>t-e>On&&!O.useManualTiming?t:e;function An(e,t){return{kind:e,animation:t,timestamp:Ae.now(),frameTimestamp:De.timestamp,frameIsProcessing:De.isProcessing}}function jn(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...An(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function Mn(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...An(`layout-animation-start`,e),node:t})}catch{}}var Nn=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},Pn=e=>e/100,Fn=e=>Math.round(e*1e4)/1e4,In=class extends Nn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),jn(this,this.options)}initAnimation(){let{options:e}=this;Dn(e);let{type:t=bn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||bn;s!==bn&&typeof o[0]!=`number`&&(this.mixKeyframes=ie(Pn,Vt(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Zt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=kn(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==pn&&(f.value=Tn(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Fn((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==pn?Tn(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=D(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return ce(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+ce(e)}get time(){return ce(this.currentTime)}set time(e){e=se(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Cn(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Ae.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=ce(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Yt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},Ln=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Rn(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ve)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Ln.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var zn=/\b([a-z-]*)\(.*?\)/gu,Bn={...St,getAnimatableNone:e=>{let t=e.match(zn);return t?t.map(Rn).join(` `):e}},Vn={...St,getAnimatableNone:e=>{let t=St.parse(e);return St.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Hn={...Re,transform:Math.round},Un={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,top:M,right:M,bottom:M,left:M,inset:M,insetBlock:M,insetBlockStart:M,insetBlockEnd:M,insetInline:M,insetInlineStart:M,insetInlineEnd:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,paddingBlock:M,paddingBlockStart:M,paddingBlockEnd:M,paddingInline:M,paddingInlineStart:M,paddingInlineEnd:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,marginBlock:M,marginBlockStart:M,marginBlockEnd:M,marginInline:M,marginInlineStart:M,marginInlineEnd:M,fontSize:M,backgroundPositionX:M,backgroundPositionY:M,rotate:Qe,pathRotation:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:Be,scaleX:Be,scaleY:Be,scaleZ:Be,skew:Qe,skewX:Qe,skewY:Qe,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:ze,originX:nt,originY:nt,originZ:M,zIndex:Hn,fillOpacity:ze,strokeOpacity:ze,numOctaves:Hn},Wn={...Un,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:Bn,WebkitFilter:Bn,mask:Vn,WebkitMask:Vn},Gn=e=>Wn[e],Kn=new Set([Bn,Vn]);function qn(e,t){let n=Gn(e);return Kn.has(n)||(n=St),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Jn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Yn=e=>e*180/Math.PI,Xn=e=>Qn(Yn(Math.atan2(e[1],e[0]))),Zn={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xn,rotateZ:Xn,skewX:e=>Yn(Math.atan(e[1])),skewY:e=>Yn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Qn=e=>(e%=360,e<0&&(e+=360),e),$n=Xn,er=e=>Math.hypot(e[0],e[1]),tr=e=>Math.hypot(e[4],e[5]),nr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:er,scaleY:tr,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(er(e)+tr(e))/2,rotateX:e=>Qn(Yn(Math.atan2(e[6],e[5]))),rotateY:e=>Qn(Yn(Math.atan2(-e[2],e[0]))),rotateZ:$n,rotate:$n,skewX:e=>Yn(Math.atan(e[4])),skewY:e=>Yn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function rr(e){return+!!e.includes(`scale`)}function ir(e,t){if(!e||e===`none`)return rr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=nr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Zn,i=t}if(!i)return rr(t);let a=r[t],o=i[1].split(`,`).map(or);return typeof a==`function`?a(o):o[a]}var ar=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return ir(n,t)};function or(e){return parseFloat(e.trim())}var sr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],cr=new Set([...sr,`pathRotation`]),lr=e=>e===Re||e===M,ur=new Set([`x`,`y`,`z`]),dr=sr.filter(e=>!ur.has(e));function fr(e){let t=[];return dr.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var pr=new Set([`bottom`,`right`]);function mr(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var hr=({transform:e})=>ir(e,`x`),gr=({transform:e})=>ir(e,`y`),_r={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>mr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>mr(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:hr,y:gr,translateX:hr,translateY:gr},vr=new Set,yr=!1,br=!1,xr=!1;function Sr(){if(br){let e=[],t=new Set,n=new Set;vr.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),pr.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=fr(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}br=!1,yr=!1,vr.forEach(e=>e.complete(xr)),vr.clear()}function Cr(){vr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(br=!0)})}function wr(){xr=!0,Cr(),Sr(),xr=!1}function Tr(e,t,n){if(typeof e==`string`){if(ee(e)||ne(e))return parseFloat(e);if(!St.test(e)&&St.test(n))return qn(t,n)}return e??void 0}var Er=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(vr.add(this),yr||(yr=!0,Kt.read(Cr),Kt.resolveKeyframes(Sr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=Tr(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Jn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),vr.delete(this)}cancel(){this.state===`scheduled`&&(vr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Dr=e=>e.startsWith(`--`);function Or(e,t,n){Dr(t)?e.style.setProperty(t,n):e.style[t]=n}var kr={};function Ar(e,t){let n=re(e);return()=>kr[t]??n()}var jr=Ar(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Mr=Ar(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Nr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Pr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Nr([0,.65,.55,1]),circOut:Nr([.55,0,1,.45]),backIn:Nr([.31,.01,.66,-.59]),backOut:Nr([.33,1.53,.69,.99])};function Fr(e,t){if(e)return typeof e==`function`?Mr()?F(e,t):`ease-out`:Ce(e)?Nr(e):Array.isArray(e)?e.map(e=>Fr(e,t)||Pr.easeOut):Pr[e]}function Ir(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Fr(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Lr(e){return typeof e==`function`&&`applyToOptions`in e}function Rr({type:e,...t}){return Lr(e)&&Mr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var zr=class extends Nn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Rr(e);this.animation=Ir(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Tn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Or(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},jn(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){this.isStopped||(this.isStopped=!0,this.state!==`idle`&&this.finishedTime===null&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||(this.animation.onfinish=null,this.cancel())))}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return ce(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+ce(e)}get time(){return ce(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=se(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&jr()?(this.animation.timeline=e,t?.(this.animation),k):n(this)}},Br={anticipate:_e,backInOut:ge,circInOut:be};function Vr(e){return e in Br}function Hr(e){typeof e.ease==`string`&&Vr(e.ease)&&(e.ease=Br[e.ease])}var Ur=class extends zr{constructor(e){Hr(e),Dn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(Ae.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new In({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?D(0,10,a):0,s=this.sample(a);n&&r&&Or(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Wr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(St.test(e)||e===`0`)&&!e.startsWith(`url(`));function Gr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Kr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Wr(i,t),s=Wr(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):Gr(e)||(n===`spring`||Lr(n))&&r}function qr(e){e.duration=0,e.type=`keyframes`}var Jr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Yr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Xr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Yr.test(e[t]))return!0;return!1}var Zr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Qr=()=>!O.useManualTiming&&Object.hasOwnProperty.call(Element.prototype,`animate`);function $r(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Jr.has(n)||Zr.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Qr()&&(Jr.has(n)||Zr.has(n)&&Xr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var ei=(e,t)=>t&&typeof e==`number`?t.transform(e):e,ti={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},ni=sr.length;function ri(e,t,n){let r=``,i=!0;for(let a=0;a<ni;a++){let o=sr[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=ei(s,Un[o]);if(!c){i=!1;let t=ti[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${ei(a,Un.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var ii=new WeakMap,ai=200,oi=.001,si=.1,ci=.001,li=100,ui=e=>/^(linear|ease(In|Out|InOut))$/.test(e),di=(e,t)=>e-t,fi=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(P(e,t,i/n));return r},pi=e=>e.motionValue.owner,mi=e=>ii.get(e),hi=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),gi=({name:e,motionValue:t})=>e&&sr.includes(e)&&t?.owner?.current instanceof HTMLElement&&Qr()&&Mr();function _i(e){let t=pi(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(hi(t,`transform`)||`none`)===`none`&&!hi(t,`pathRotation`)&&!t.projection?.isProjecting()}var vi=class extends In{constructor(e){let t=pi(e).current,{driver:n=Yt}=e,r,i=_i(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=mi(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=mi(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return mi(pi(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(Ae.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=Ce(n)?Nr(n):ui(n)&&Pr[n];if(o&&!i&&!r&&e.length===2&&t===bn&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||bn)===bn?u||_n(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=Ae.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||yi(pi(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(Ae.now())}get time(){return this.isAccelerated()?ce(D(0,this.totalDuration,this.at(Ae.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function yi(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?sr:a){let a=r.get(s),c=t===void 0?hi(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(ti[e]||e)+`(`+ei(r[e],Un[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=ri(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=Ae.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),O.schedule(!1)}),e.oncancel=()=>s.includes(r)&&O.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(ai,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=fi(t,n,i).concat(r).sort(di),o=e=>ae(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*oi>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=oi)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=oi)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=oi))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Fn(t)+` `+Fn(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?ci:si))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=fi(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(di))e>c&&o(c,e,0),c=e;return i.sort(di)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>ae(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=sr.filter(t=>{if(r.has(t))return!0;let n=i[t]=hi(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},E=()=>!n.size&&(u=!0,mi(t)===O&&ii.delete(t),O.isJS||_(),!0),D=()=>{let t=Ae.now();if(O.isJS||(O.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=hi(e,n.name),o.has(n)||(c=!0))}),O.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),E()))return;for(let e of n)if(!e.canAccelerate)return O.demote(!0);O.isJS&&(O.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<li)return O.demote();f=t}if(!w(t))return O.demote()}},O={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,De.isProcessing?Kt.render(D,!1,!0):queueMicrotask(D)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),E()||O.schedule(!0)},check(){if(!O.isJS){for(let t in i)if(hi(e,t)!==i[t]&&!p(t))return O.schedule(!0,!0)}},demote(e){O.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),O.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return ii.set(t,O),O}var bi=class extends Nn{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ae.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Er;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Ae.now();let u=!0;Kr(e,i,a,o)||(u=!1,(O.instantAnimations||!s)&&l?.(Tn(e,n,t)),e[0]=e[e.length-1],qr(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&$r(n),p=!f&&gi(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=kn(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new Ur(n)}catch{m=new In(n)}}else m=p?new vi(n):new In(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),wr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function xi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Si=30,Ci=e=>!isNaN(parseFloat(e)),wi={current:void 0},Ti=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Ae.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ci(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new oe)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new oe,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){Kt.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){wi.current&&wi.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Si)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Si);return le(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ei(e,t){return new Ti(e,t)}function Di(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Oi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Di(n,e)}var ki={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ai=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ji={type:`keyframes`,duration:.8},Mi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Ni=(e,{keyframes:t})=>t.length>2?ji:cr.has(e)?e.startsWith(`scale`)?Ai(t[1]):ki:Mi,Pi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Fi(e){for(let t in e)if(!Pi.has(t))return!0;return!1}var Ii=(e,t,n,r={},i,a)=>o=>{let s=Oi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=se(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};Fi(s)||Object.assign(u,Ni(e,u)),u.duration&&=se(u.duration),u.repeatDelay&&=se(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(qr(u),u.delay===0&&(d=!0)),(O.instantAnimations||O.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,qr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Tn(u.keyframes,s);if(e!==void 0){Kt.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new In(u):new bi(u)},Li=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ri(e){let t=Li.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function zi(e,t,n=1){`${e}`;let[r,i]=Ri(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ee(e)?parseFloat(e):e}return Fe(i)?zi(i,t,n+1):i}function Bi(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Vi(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Bi(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Hi(e,t,n){return Vi(e.getProps(),t,n,e)}var Ui=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Wi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...sr]),Gi=e=>Array.isArray(e);function Ki(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ei(n))}function qi(e){return Gi(e)?e[e.length-1]||0:e}function Ji(e,t){let{transitionEnd:n={},transition:r={},...i}=Hi(e,t)||{};i={...i,...n};for(let t in i)Ki(e,t,qi(i[t]))}var Yi=e=>!!(e&&e.getVelocity);function Xi(e){return!!(Yi(e)&&e.add)}function Zi(e,t){let n=e.getValue(`willChange`);if(Xi(n))return n.add(t);if(!n&&O.WillChange){let n=new O.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var Qi=`data-framer-appear-id`;function $i(e){return e.props[Qi]}var ea=typeof window<`u`;function ta({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function na(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Di(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&ta(f,t))continue;let o={delay:n,...Oi(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Kt.update(()=>r.set(i));continue}let p=!1;if(ea&&window.MotionHandoffAnimation){let n=$i(e);if(n){let e=window.MotionHandoffAnimation(n,t,Kt);e!==null&&(o.startTime=e,p=!0)}}Zi(e,t);let m=l??e.shouldReduceMotion;r.start(Ii(t,r,i,m&&Wi.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Kt.update(()=>{o&&Ji(e,o)});d.length?Promise.all(d).then(t):t()}return d}function ra(e,t,n={}){let r=Hi(e,t,Ui(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?na(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(ra(e,t,{...n,delay:r+(typeof o==`function`?0:o)+xi(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function ia(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>ra(e,t,n))):typeof t==`string`?ra(e,t,n):Promise.all(na(e,Hi(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var aa={test:e=>e===`auto`,parse:e=>e},oa=e=>t=>t.test(e),sa=[Re,M,$e,Qe,tt,et,aa],ca=e=>sa.find(oa(e));function I(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ne(e)}var la=new Set([`auto`,`none`,`0`]);function ua(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!la.has(t)&&mt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=qn(n,i))}var da=class extends Er{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Le(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Fe(r))){let i=zi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Wi.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=ca(r),o=ca(i);if(Le(r)!==Le(i)&&_r[n])this.needsMeasurement=!0;else if(a!==o){if(lr(a)&&lr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else _r[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||I(e[t]))&&n.push(t);n.length&&ua(e,n,t)}measure(){let{element:e,name:t}=this;return _r[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},fa=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function pa(e){return te(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function ma(e){return te(e)&&`ownerSVGElement`in e}var ha={};function ga(e){return ha.current?.add(e),e}var _a=e=>ha.current?ha.current.bind(e):e;function va(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=t?t.current:ha.current?.root||document,i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}function ya(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function ba(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(cr.has(e))o=!0;else if(Ne(e))i[e]=n;else{let t=ei(n,Un[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=ri(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var xa={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Sa={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ca(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?xa:Sa;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var wa=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Ta(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ba(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of wa)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ca(d,i,a,o,!1)}function Ea({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Da({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Oa(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ka(e){return e===void 0||e===1}function Aa({scale:e,scaleX:t,scaleY:n}){return!ka(e)||!ka(t)||!ka(n)}function ja(e){return Aa(e)||Ma(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Ma(e){return Na(e.x)||Na(e.y)}function Na(e){return e&&e!==`0%`}function Pa(e,t,n){return n+t*(e-n)}function Fa(e,t,n,r,i){return i!==void 0&&(e=Pa(e,i,r)),Pa(e,n,r)+t}function Ia(e,t=0,n=1,r,i){e.min=Fa(e.min,t,n,r,i),e.max=Fa(e.max,t,n,r,i)}function La(e,{x:t,y:n}){Ia(e.x,t.translate,t.scale,t.originPoint),Ia(e.y,n.translate,n.scale,n.originPoint)}var Ra=.999999999999,za=1.0000000000001;function Ba(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Va(e.x,-a.scroll.offset.x),Va(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,La(e,o)),r&&ja(a.latestValues)&&Wa(e,a.latestValues,a.layout?.layoutBox))}t.x<za&&t.x>Ra&&(t.x=1),t.y<za&&t.y>Ra&&(t.y=1)}function Va(e,t){e.min+=t,e.max+=t}function Ha(e,t,n,r,i=.5){Ia(e,t,n,P(e.min,e.max,i),r)}function Ua(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Wa(e,t,n){let r=n??e;Ha(e.x,Ua(t.x,r.x),t.scaleX,t.scale,t.originX),Ha(e.y,Ua(t.y,r.y),t.scaleY,t.scale,t.originY)}function Ga(e,t){return Ea(Oa(e.getBoundingClientRect(),t))}function Ka(e,t,n){let r=Ga(e,n),{scroll:i}=t;return i&&(Va(r.x,i.offset.x),Va(r.y,i.offset.y)),r}var{schedule:qa,cancel:Ja}=Gt(queueMicrotask,!1);function Ya(e,t,n){let r=Yi(e)?e:Ei(e);return r.start(Ii(``,r,t,n)),r.animation}var Xa={},Za={value:null,addProjectionMetrics:null};function Qa(e,t){let n=Ae.now();e=_a(e);let r=({timestamp:i})=>{let a=i-n;a>=t&&(qt(r),e(a-t))};return Kt.setup(r,!0),ga(()=>qt(r))}function $a(e){return ma(e)&&e.tagName===`svg`}function eo(e){return Yi(e)?e.get():e}var to=e=>typeof e==`number`?e:parseFloat(e),no=fa.length,ro=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],io=ro.length,ao=e=>typeof e==`number`||M.test(e);function oo(e,t,n,r,i,a){i?(e.opacity=P(0,n.opacity??1,co(r)),e.opacityExit=P(t.opacity??1,0,lo(r))):a&&(e.opacity=P(t.opacity??1,n.opacity??1,r));for(let i=0;i<no;i++){let a=fa[i],o=so(t,a),s=so(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||ao(o)===ao(s)?(e[a]=Math.max(P(to(o),to(s),r),0),($e.test(s)||$e.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<io;i++){let a=ro[i];(t[a]||n[a])&&(e[a]=P(t[a]||0,n[a]||0,r))}}function so(e,t){return e[t]===void 0?e.borderRadius:e[t]}var co=uo(0,.5,ye),lo=uo(.5,.95,k);function uo(e,t,n){return r=>r<e?0:r>t?1:n(ae(e,t,r))}function fo(e,t){e.min=t.min,e.max=t.max}function po(e,t){fo(e.x,t.x),fo(e.y,t.y)}function mo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var ho=.9999,go=1.0001,_o=-.01,vo=.01;function yo(e){return e.max-e.min}function bo(e,t,n){return Math.abs(e-t)<=n}function xo(e,t,n,r=.5){e.origin=r,e.originPoint=P(t.min,t.max,e.origin),e.scale=yo(n)/yo(t),e.translate=P(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ho&&e.scale<=go||isNaN(e.scale))&&(e.scale=1),(e.translate>=_o&&e.translate<=vo||isNaN(e.translate))&&(e.translate=0)}function So(e,t,n,r){xo(e.x,t.x,n.x,r?r.originX:void 0),xo(e.y,t.y,n.y,r?r.originY:void 0)}function Co(e,t,n,r=0){e.min=(r?P(n.min,n.max,r):n.min)+t.min,e.max=e.min+yo(t)}function wo(e,t,n,r){Co(e.x,t.x,n.x,r?.x),Co(e.y,t.y,n.y,r?.y)}function To(e,t,n,r=0){let i=r?P(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+yo(t)}function Eo(e,t,n,r){To(e.x,t.x,n.x,r?.x),To(e.y,t.y,n.y,r?.y)}function Do(e,t,n,r,i){return e-=t,e=Pa(e,1/n,r),i!==void 0&&(e=Pa(e,1/i,r)),e}function Oo(e,t=0,n=1,r=.5,i,a=e,o=e){if($e.test(t)&&(t=parseFloat(t),t=P(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=P(a.min,a.max,r);e===a&&(s-=t),e.min=Do(e.min,t,n,s,i),e.max=Do(e.max,t,n,s,i)}function ko(e,t,[n,r,i],a,o){Oo(e,t[n],t[r],t[i],t.scale,a,o)}var Ao=[`x`,`scaleX`,`originX`],jo=[`y`,`scaleY`,`originY`];function Mo(e,t,n,r){ko(e.x,t,Ao,n?n.x:void 0,r?r.x:void 0),ko(e.y,t,jo,n?n.y:void 0,r?r.y:void 0)}var No=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:No(),y:No()}),Fo=()=>({min:0,max:0}),L=()=>({x:Fo(),y:Fo()});function Io(e){return e.translate===0&&e.scale===1}function Lo(e){return Io(e.x)&&Io(e.y)}function Ro(e,t){return e.min===t.min&&e.max===t.max}function zo(e,t){return Ro(e.x,t.x)&&Ro(e.y,t.y)}function Bo(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Vo(e,t){return Bo(e.x,t.x)&&Bo(e.y,t.y)}function Ho(e){return yo(e.x)/yo(e.y)}function Uo(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var Wo=class{constructor(){this.members=[]}add(e){T(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(E(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(E(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function Go(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var R={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(M.test(e))e=parseFloat(e);else return e}return`${Go(e,t.target.x)}% ${Go(e,t.target.y)}%`}},Ko={borderRadius:Object.assign({},R,{applyTo:fa.slice()}),borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomLeftRadius:R,borderBottomRightRadius:R,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=St.parse(e);if(i.length>5)return r;let a=St.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=P(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}}};function qo(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function Jo(e){return[e(`x`),e(`y`)]}var Yo=(e,t)=>e.depth-t.depth,Xo=class{constructor(){this.children=[],this.isDirty=!1}add(e){T(this.children,e),this.isDirty=!0}remove(e){E(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Yo),this.isDirty=!1,this.children.forEach(e)}},Zo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Qo={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},$o=[``,`X`,`Y`,`Z`],es=1e3,ts=0;function ns(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var rs=({instance:e})=>e&&ii.get(e)?.demote();function is(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=$i(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Kt,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&is(r)}function as({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return Object.assign(Xa,{...Ko,...Xa}),class{constructor(e={},n=t?.()){this.id=ts++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Za.value&&(Qo.nodes=Qo.calculatedTargetDeltas=Qo.calculatedProjections=0),this.nodes.forEach(cs),this.nodes.forEach(ys),this.nodes.forEach(bs),this.nodes.forEach(ls),Za.addProjectionMetrics&&Za.addProjectionMetrics(Qo)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xo)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new oe),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ma(t)&&!$a(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Kt.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Qa(i,250),Zo.hasAnimatedSinceResize&&(Zo.hasAnimatedSinceResize=!1,this.nodes.forEach(vs)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Es,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!Vo(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Oi(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||vs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,qt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xs),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&is(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;rs(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,rs(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(fs),this.nodes.forEach(ds);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ps);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hs),this.nodes.forEach(gs),this.nodes.forEach(_s),this.nodes.forEach(os),this.nodes.forEach(ss)):this.nodes.forEach(ps),this.clearAllSnapshots();let e=Ae.now();De.delta=D(0,1e3/60,e-De.timestamp),De.timestamp=e,De.isProcessing=!0,Jt.update.process(De),Jt.preRender.process(De),Jt.render.process(De),De.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qa.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(us),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!yo(this.snapshot.measuredBox.x)&&!yo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=L(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&rs(this);let t=this.projectionDelta&&!Lo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ja(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),As(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return L();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ms))){let{scroll:e}=this.root;e&&(Va(t.x,e.offset.x),Va(t.y,e.offset.y))}return t}removeElementScroll(e){let t=L();if(po(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&po(t,e),Va(t.x,i.offset.x),Va(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n,r){let i=n||L();po(i,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Va(i.x,-n.scroll.offset.x),Va(i.y,-n.scroll.offset.y)),ja(n.latestValues)&&Wa(i,n.latestValues,n.layout?.layoutBox)}return!r&&ja(this.latestValues)&&Wa(i,this.latestValues,this.layout?.layoutBox),i}removeTransform(e){let t=L();po(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ja(n.latestValues))continue;let r;n.instance&&(Aa(n.latestValues)&&n.updateSnapshot(),r=L(),po(r,n.measurePageBox())),Mo(t,n.latestValues,n.snapshot?.layoutBox,r)}return ja(this.latestValues)&&Mo(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==De.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=De.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=L(),this.targetWithTransforms=L()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wo(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target,!0):po(this.target,this.layout.layoutBox),La(this.target,this.targetDelta)):po(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Za.value&&Qo.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Aa(this.parent.latestValues)||Ma(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),Eo(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),po(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===De.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;po(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ba(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=L());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(mo(this.prevProjectionDelta.x,this.projectionDelta.x),mo(this.prevProjectionDelta.y,this.projectionDelta.y)),So(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&Uo(this.projectionDelta.x,this.prevProjectionDelta.x)&&Uo(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Za.value&&Qo.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Po(),this.projectionDelta=Po(),this.projectionDeltaWithTransform=Po()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Po();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=L(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Ts));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=P(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=P(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Ss(o.x,e.x,n),Ss(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Eo(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ws(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&zo(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=L(),po(f,this.relativeTarget)),c&&(this.animationValues=a,oo(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(qt(this.pendingAnimation),void 0),this.pendingAnimation=Kt.update(()=>{Zo.hasAnimatedSinceResize=!0,this.motionValue||=Ei(0),this.motionValue.jump(0,!1),this.currentAnimation=Ya(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),Mn(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(es),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&js(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||L();let t=yo(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=yo(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}po(t,i),Wa(t,r),So(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Wo),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ns(`z`,e,r,this.animationValues);for(let t=0;t<$o.length;t++)ns(`rotate${$o[t]}`,e,r,this.animationValues),ns(`skew${$o[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=eo(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=eo(t?.pointerEvents)||``),this.hasProjected&&!ja(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=qo(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Xa){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Xa[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?eo(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ds),this.root.sharedNodes.clear()}}}function os(e){e.updateLayout(),ms(e)}function ss(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Jo(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=yo(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;fo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else js(i,t.layoutBox,n)&&Jo(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=yo(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Po();So(o,n,t.layoutBox);let s=Po();a?So(s,e.applyTransform(r,!0),t.measuredBox):So(s,n,t.layoutBox);let c=!Lo(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=L();Eo(s,t.layoutBox,i.layoutBox,o);let c=L();Eo(c,n,a.layoutBox,o),Vo(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function cs(e){Za.value&&Qo.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function ls(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function us(e){e.clearSnapshot()}function ds(e){e.clearMeasurements()}function fs(e){e.isLayoutDirty=!0,e.updateLayout()}function ps(e){e.isLayoutDirty=!1}function ms(e){let{snapshot:t,dragAncestor:n}=e,r=n?.isAnimationBlocked&&n.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;Jo(e=>Va(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function hs(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function gs(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function _s(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function vs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ys(e){e.resolveTargetDelta()}function bs(e){e.calcProjection()}function xs(e){e.resetSkewAndRotation()}function Ss(e,t,n){e.translate=P(t.translate,0,n),e.scale=P(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cs(e,t,n,r){e.min=P(t.min,n.min,r),e.max=P(t.max,n.max,r)}function ws(e,t,n,r){Cs(e.x,t.x,n.x,r),Cs(e.y,t.y,n.y,r)}function Ts(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Es={duration:.45,ease:[.4,0,.1,1]},Ds=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Os=Ds(`applewebkit/`)&&!Ds(`chrome/`)?Math.round:k;function ks(e){e.min=Os(e.min),e.max=Os(e.max)}function As(e){ks(e.x),ks(e.y)}function js(e,t,n){return e===`position`||e===`preserve-aspect`&&!bo(Ho(t),Ho(n),.2)}function Ms(e){return e!==e.root&&e.scroll?.wasRoot}function Ns(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ps=as({attachResizeListener:(e,t)=>Ns(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Fs={current:void 0},Is=as({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fs.current){let e=new Ps({});e.mount(window),e.setOptions({layoutScroll:!0}),Fs.current=e}return Fs.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Ls=new WeakMap;function Rs(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function zs(e){return typeof e==`string`||Array.isArray(e)}var Bs=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Vs=[`initial`].concat(Bs);function Hs(e){if(Rs(e.animate))return!0;for(let t=0;t<Vs.length;t++)if(zs(e[Vs[t]]))return!0;return!1}function Us(e){return!!(Hs(e)||e.variants)}function Ws(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Yi(i))e.addValue(r,i);else if(Yi(a))e.addValue(r,Ei(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Ei(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Gs={current:null},Ks={current:!1},qs=typeof window<`u`;function Js(){if(Ks.current=!0,qs){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Gs.current=e.matches;e.addEventListener(`change`,t),t()}else Gs.current=!1}}var Ys=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Xs={};function Zs(e){Xs=e}function Qs(){return Xs}var $s=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Er,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Ae.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Kt.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Hs(t),this.isVariantNode=Us(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Yi(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,Ls.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Ks.current||Js(),this.shouldReduceMotion=Gs.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),qt(this.notifyUpdate),qt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Jr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new zr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:se(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=cr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Kt.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),ii.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Xs){let t=Xs[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&ii.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ys.length;t++){let n=Ys[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ws(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Ei(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ee(n)||ne(n))?n=parseFloat(n):typeof n!=`number`&&!St.test(n)&&St.test(t)&&(n=qn(e,t)),this.setBaseTarget(e,Yi(n)?n.get():n)),Yi(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new oe),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){qa.render(this.render)}},ec=class extends $s{constructor(){super(...arguments),this.KeyframeResolver=da}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Yi(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function tc(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function nc(e,{layout:t,layoutId:n}){return cr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Xa[e]||e===`opacity`)}function rc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Yi(r[t])||i&&Yi(i[t])||nc(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function ic(e){return window.getComputedStyle(e)}var ac=class extends ec{constructor(){super(...arguments),this.type=`html`,this.renderInstance=tc}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(cr.has(t))return this.projection?.isProjecting?rr(t):ar(e,t);{let n=ic(e),r=(Ne(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ga(e,t)}build(e,t,n){ba(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return rc(e,t,n)}},oc=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function sc(e){return{point:{x:e.pageX,y:e.pageY}}}var cc=e=>t=>oc(t)&&e(t,sc(t));function lc(e,t,n,r){return Ns(e,t,cc(n),r)}var uc=new WeakMap,dc,fc=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ma(r)&&`getBBox`in r?r.getBBox()[t]:r[n],pc=fc(`inline`,`width`,`offsetWidth`),mc=fc(`block`,`height`,`offsetHeight`);function hc({target:e,borderBoxSize:t}){uc.get(e)?.forEach(n=>{n(e,{get width(){return pc(e,t)},get height(){return mc(e,t)}})})}function gc(e){e.forEach(hc)}function _c(){typeof ResizeObserver<`u`&&(dc=new ResizeObserver(gc))}function vc(e,t){dc||_c();let n=va(e);return n.forEach(e=>{let n=uc.get(e);n||(n=new Set,uc.set(e,n)),n.add(t),dc?.observe(e)}),()=>{n.forEach(e=>{let n=uc.get(e);n?.delete(t),n?.size||dc?.unobserve(e)})}}var yc=new Set,bc;function xc(){bc=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};yc.forEach(t=>t(e))},window.addEventListener(`resize`,bc)}function Sc(e){return yc.add(e),bc||xc(),()=>{yc.delete(e),!yc.size&&typeof bc==`function`&&(window.removeEventListener(`resize`,bc),bc=void 0)}}function Cc(e,t){return ga(typeof e==`function`?Sc(e):vc(e,t))}var wc=(e,t)=>Math.abs(e-t);function Tc(e,t){let n=wc(e.x,t.x),r=wc(e.y,t.y);return Math.sqrt(n**2+r**2)}var Ec=new Set([`auto`,`scroll`]),Dc=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Oc(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Ac(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Tc(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:Ae.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.handleScroll(window),this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Oc(t,this.transformPagePoint),this.hasPendingMove=!0,Kt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Ac(e.type===`pointercancel`?this.lastMoveEventInfo:Oc(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!oc(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Oc(sc(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=De;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Ac(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=ie(lc(this.contextWindow,`pointermove`,this.handlePointerMove,d),lc(this.contextWindow,`pointerup`,this.handlePointerUp,d),lc(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Ec.has(e.overflowX)||Ec.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Kt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),qt(this.updatePoint)}};function Oc(e,t){return t?{point:t(e.point)}:e}function kc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ac({point:e},t){return{point:e,delta:kc(e,Mc(t)),offset:kc(e,jc(t)),velocity:Nc(t,.1)}}function jc(e){return e[0]}function Mc(e){return e[e.length-1]}function Nc(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Mc(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>se(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>se(t)*2&&(r=e[1]);let a=ce(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var Pc=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Fc(e){return Pc.has(e.tagName)||e.isContentEditable===!0}var Ic=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Lc(e){return Ic.has(e.tagName)||e.isContentEditable===!0}var Rc={x:!1,y:!1};function zc(){return Rc.x||Rc.y}function Bc(e){return e===`x`||e===`y`?Rc[e]?null:(Rc[e]=!0,()=>{Rc[e]=!1}):Rc.x||Rc.y?null:(Rc.x=Rc.y=!0,()=>{Rc.x=Rc.y=!1})}function Vc(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?P(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?P(n,e,r.max):Math.min(e,n)),e}function Hc(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Uc(e,{top:t,left:n,bottom:r,right:i}){return{x:Hc(e.x,n,i),y:Hc(e.y,t,r)}}function Wc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Gc(e,t){return{x:Wc(e.x,t.x),y:Wc(e.y,t.y)}}function Kc(e,t){let n=.5,r=yo(e),i=yo(t);return i>r?n=ae(t.min,t.max-r,e.min):r>i&&(n=ae(e.min,e.max-i,t.min)),D(0,1,n)}function qc(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Jc=.35;function Yc(e=Jc){return e===!1?e=0:e===!0&&(e=Jc),{x:Xc(e,`left`,`right`),y:Xc(e,`top`,`bottom`)}}function Xc(e,t,n){return{min:Zc(e,t),max:Zc(e,n)}}function Zc(e,t){return typeof e==`number`?e:e[t]||0}var Qc=new WeakMap,$c=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bc(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jo(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Fe(t)&&(t=zi(t,this.visualElement.current)||0),M.test(t))t=parseFloat(t);else if($e.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=yo(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Kt.update(()=>i(e,t),!1,!0),Zi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=al(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Kt.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Dc(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t,n){let r=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;let{velocity:o}=i;this.startAnimation(o,n);let{onDragEnd:s}=this.getProps();s&&Kt.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!il(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Vc(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;el(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Uc(n.layoutBox,e):!1,this.elastic=Yc(t),r!==this.constraints&&!el(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Jo(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=qc(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!el(e))return!1;let n=tl(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Ka(n,r.root,this.visualElement.getTransformPagePoint()),a=Gc(r.layout.layoutBox,i);if(t){let e=t(Da(a));this.hasMutatedConstraints=!!e,e&&(a=Ea(e))}return a}startAnimation(e,t){let{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},l=Jo(s=>{if(!il(s,t||n,this.currentDirection))return;let l=c&&c[s]||{};(o===!0||o===s)&&(l={min:0,max:0});let u=i?200:1e6,d=i?40:1e7,f={type:`inertia`,velocity:r?e[s]:0,bounceStiffness:u,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...a,...l};return this.startAxisValueAnimation(s,f)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Zi(this.visualElement,e),n.start(Ii(e,n,0,t,this.visualElement,!1))}stopAnimation(){Jo(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Jo(e=>{if(!il(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-P(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!el(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};Jo(e=>{let t=this.getAxisMotionValue(e).get();i[e]=Kc({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Jo(t=>{let n=this.getAxisMotionValue(t);if(!il(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(P(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Qc.set(this.visualElement,this);let e=this.visualElement.current,t=lc(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Lc(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=el(t)&&tl(t);r&&(this.constraints=this.resolveRefConstraints(),n||=rl(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Kt.read(r);let o=Ns(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Jo(t=>{if(!il(t,this.getProps().drag,this.currentDirection))return;let n=this.getAxisMotionValue(t);this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate)}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Jc,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function el(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var tl=e=>`current`in e?e.current:e;function nl(e){let t=!0;return()=>{t?t=!1:e()}}function rl(e,t,n){let r=Cc(e,nl(n)),i=Cc(t,nl(n));return()=>{r(),i()}}function il(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function al(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function ol(e,t){let n=va(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},ga(()=>r.abort())]}function sl(e){return!(e.pointerType===`touch`||zc())}function cl(e,t,n={}){t=_a(t);let[r,i,a]=ol(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!sl(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ll=(e,t)=>t?e===t||ll(e,t.parentElement):!1,ul=new WeakSet;function dl(e){return t=>{t.key===`Enter`&&e(t)}}function fl(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var pl=(e,t)=>{let n=!1,r=dl(()=>{ul.has(e)||(n=!0,fl(e,`down`))}),i=dl(()=>{n&&(n=!1,fl(e,`up`))});e.addEventListener(`keydown`,r,t),e.addEventListener(`keyup`,i,t),e.addEventListener(`blur`,()=>{e.removeEventListener(`keydown`,r),e.removeEventListener(`keyup`,i),n&&fl(e,`cancel`)},{...t,once:!0})};function ml(e){return oc(e)&&!zc()}var hl=new WeakSet;function gl(e,t,n={}){t=_a(t);let[r,i,a]=ol(e,n),o=e=>{let r=e.currentTarget;if(!ml(e)||hl.has(e))return;ul.add(r),n.stopPropagation&&hl.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),ul.has(r)&&ul.delete(r),ml(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||ll(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),pa(e)&&(e.addEventListener(`focus`,()=>pl(e,i),i),!Fc(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var _l=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},vl=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),yl=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function bl(e,t,n,r){tc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(vl.has(n)?n:ya(n),t.attrs[n])}function xl(e,t,n){let r=rc(e,t,n);for(let n in e)if(n!==`children`&&(Yi(e[n])||Yi(t[n]))){let t=sr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Sl=class extends ec{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=L}getBaseTargetFromProps(e,t){return cr.has(t)?super.getBaseTargetFromProps(e,t)??rr(t):e[t]}getDefaultValue(e){return cr.has(e)?this.latestValues[e]??rr(e):void 0}readValueFromInstance(e,t){if(cr.has(t)){let e=Gn(t);return e&&e.default||0}if(wa.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=vl.has(t)?t:ya(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return xl(e,t,n)}build(e,t,n){Ta(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){bl(e,t,n,r)}mount(e){this.isSVGTag=yl(e.tagName),super.mount(e)}};function Cl(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var wl=[...Bs].reverse();function Tl(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>ia(e,t,n))),n=Dl(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(wl.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?zs(g)||g===!1?g:void 0:h,v=zs(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||Rs(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=El(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Hi(e,n,Ui(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!Cl(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Hi(s,n)?.transition?.delayChildren;r.delay=xi(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Hi(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!Yi(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Dl(),i=!0}}}function El(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Cl(t,e):!1}function Dl(){let e={};for(let t of Bs)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}var Ol=e=>!e.isLayoutDirty&&e.willUpdate(!1);function kl(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Ol);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var Al=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function jl(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Ml(...e){return t=>{let n=!1,r=e.map(e=>{let r=jl(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():jl(e[t],null)}}}}function Nl(...e){return b.useCallback(Ml(...e),e)}var z=y(),Pl=class extends b.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(pa(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=pa(e)&&e.offsetWidth||0,r=pa(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Fl({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,b.useId)(),c=(0,b.useRef)(null),l=(0,b.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,b.useContext)(Al),d=Nl(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current;return(0,b.useInsertionEffect)(()=>{let{width:e,height:o,top:c,left:d,right:p,bottom:m,direction:h}=l.current,g=f();if(t||a===!1||!g||!e||!o)return;let _=h===`rtl`,v=n===`left`?_?`right: ${p}`:`left: ${d}`:_?`left: ${d}`:`right: ${p}`,y=r===`bottom`?`bottom: ${m}`:`top: ${c}`;g.dataset.motionPopId=s;let b=g.ownerDocument,x=b.createElement(`style`);u&&(x.nonce=u);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
|
|
10
|
-
[data-motion-pop-id="${s}"] {
|
|
11
|
-
position: absolute !important;
|
|
12
|
-
width: ${e}px !important;
|
|
13
|
-
height: ${o}px !important;
|
|
14
|
-
${v}px !important;
|
|
15
|
-
${y}px !important;
|
|
16
|
-
}
|
|
17
|
-
`),()=>{g.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,z.jsx)(Pl,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:b.cloneElement(e,{ref:d})})}var Il=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=S(Ll),d=(0,b.useId)(),f=(0,b.useRef)(),p=(0,b.useRef)(n),m=(0,b.useRef)(r);C(()=>{p.current=n,m.current=r});let h=!0,g=(0,b.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,b.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),b.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,z.jsx)(Fl,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,z.jsx)(w.Provider,{value:g,children:e})};function Ll(){return new Map}function Rl(e=!0){let t=(0,b.useContext)(w);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,b.useId)();(0,b.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,b.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var zl=e=>e.key||``;function Bl(e){let t=[];return b.Children.forEach(e,e=>{(0,b.isValidElement)(e)&&t.push(e)}),t}var Vl=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Rl(o),f=(0,b.useMemo)(()=>Bl(e),[e]),p=o&&!u?[]:f.map(zl),m=(0,b.useRef)(!0),h=S(()=>new Map),g=(0,b.useRef)(new Set),[_,v]=(0,b.useState)(f),[y,w]=(0,b.useState)(f);C(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]);let T=(0,b.useRef)();(0,b.useEffect)(()=>()=>{let e=T.current;T.current=void 0,e?.()},[y]),C(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=zl(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let E=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(zl(n));r===-1?(e.splice(t++,0,n),E.push(n)):t=r+E.length+1}return E.every(e=>h.get(zl(e)))?e=f:a===`wait`&&(e=E),w(Bl(e)),v(f),null}let{forceRender:D}=(0,b.useContext)(x);return(0,z.jsx)(z.Fragment,{children:y.map(e=>{let _=zl(e),b=o&&!u?!1:f===y||p.includes(_);return(0,z.jsx)(Il,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(D?.(),v([]),o&&d?.(),T.current=r)},anchorX:s,anchorY:c,children:e},_)})})},Hl=(0,b.createContext)(null);function Ul(){let e=(0,b.useRef)(!1);return C(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Wl(){let e=Ul(),[t,n]=(0,b.useState)(0),r=(0,b.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,b.useCallback)(()=>Kt.postRender(r),[r]),t]}var Gl=e=>e===!0,Kl=e=>Gl(e===!0)||e===`id`,ql=({children:e,id:t,inherit:n=!0})=>{let r=(0,b.useContext)(x),i=(0,b.useContext)(Hl),[a,o]=Wl(),s=(0,b.useRef)(null),c=r.id||i;s.current===null&&(Kl(n)&&c&&(t=t?c+`-`+t:c),s.current={id:t,group:Gl(n)&&r.group||kl()});let l=(0,b.useMemo)(()=>({...s.current,forceRender:a}),[o]);return(0,z.jsx)(x.Provider,{value:l,children:e})},Jl=(0,b.createContext)({strict:!1}),Yl={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Xl=!1;function Zl(){if(Xl)return;let e={};for(let t in Yl)e[t]={isEnabled:e=>Yl[t].some(t=>!!e[t])};Zs(e),Xl=!0}function Ql(){return Zl(),Qs()}function $l(e){let t=Ql();for(let n in e)t[n]={...t[n],...e[n]};Zs(t)}var eu=(0,b.createContext)({});function tu(e,t){if(Hs(e)){let{initial:t,animate:n}=e;return{initial:t===!1||zs(t)?t:void 0,animate:zs(n)?n:void 0}}return e.inherit===!1?{}:t}function nu(e){let{initial:t,animate:n}=tu(e,(0,b.useContext)(eu));return(0,b.useMemo)(()=>({initial:t,animate:n}),[ru(t),ru(n)])}function ru(e){return Array.isArray(e)?e.join(` `):e}var iu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function au(e,t,n){for(let r in t)!Yi(t[r])&&!nc(r,n)&&(e[r]=t[r])}function ou({transformTemplate:e},t){return(0,b.useMemo)(()=>{let n=iu();return ba(n,t,e),Object.assign({},n.vars,n.style)},[t])}function su(e,t){let n=e.style||{},r={};return au(r,n,e),Object.assign(r,ou(e,t)),r}function cu(e,t){let n={},r=su(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var lu=()=>({...iu(),attrs:{}});function uu(e,t,n,r){let i=(0,b.useMemo)(()=>{let n=lu();return Ta(n,t,yl(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};return au(t,e.style,e),{...i,style:{...t,...i.style}}}return i}var du=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function fu(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||du.has(e)}function pu(e,t){return e.startsWith(`on`)?!fu(e):t?.(e)??!fu(e)}function mu(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||Yi(e[a])||(pu(a,r)||n===!0&&fu(a)||!t&&!fu(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var hu=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function gu(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(hu.indexOf(e)>-1||/[A-Z]/u.test(e))}function _u(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??gu(e)?uu:cu)(t,r,i,e),l=mu(t,typeof e==`string`,a,s),u=e===b.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,b.useMemo)(()=>Yi(d)?d.get():d,[d]);return(0,b.createElement)(e,{...u,children:f})}function vu({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:yu(n,r,i,e),renderState:t()}}function yu(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=eo(a[e]);let{initial:o,animate:s}=e,c=Hs(e),l=Us(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Rs(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Vi(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var bu=e=>(t,n)=>{let r=(0,b.useContext)(eu),i=(0,b.useContext)(w),a=()=>vu(e,t,r,i);return n?a():S(a)},xu=bu({scrapeMotionValuesFromProps:rc,createRenderState:iu}),Su=bu({scrapeMotionValuesFromProps:xl,createRenderState:lu}),Cu=Symbol.for(`motionComponentSymbol`);function wu(e,t,n){let r=(0,b.useRef)(n);(0,b.useInsertionEffect)(()=>{r.current=n});let i=(0,b.useRef)(null);return(0,b.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Tu=(0,b.createContext)({});function Eu(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Du(e,t,n,r,i,a){let{visualElement:o}=(0,b.useContext)(eu),s=(0,b.useContext)(Jl),c=(0,b.useContext)(w),l=(0,b.useContext)(Al),u=l.reducedMotion,d=l.skipAnimations,f=(0,b.useRef)(null),p=(0,b.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,b.useContext)(Tu);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Ou(f.current,n,i,h),(0,b.useInsertionEffect)(()=>{m&&m.props!==n&&m.update(n,c)});let g=n[Qi],_=(0,b.useRef)(!!g&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return C(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),C(()=>{p.current=!0,m&&(window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),(0,b.useEffect)(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),m.enteringChildren=void 0)}),m}function Ou(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t,f=e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:ku(e.parent));f.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Eu(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u});let p=f.getStack()?.lead;p&&!f.root.isUpdateBlocked()&&(p.willUpdate(),p.scheduleCheckAfterUnmount())}function ku(e){if(e)return e.options.allowProjection===!1?ku(e.parent):e.projection}function Au(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&$l(r);let a=n?n===`svg`:gu(e),o=a?Su:xu;function s(n,s){let c,l=ju(n);S(()=>!!Fs.current?.sharedNodes.get(l)?.lead&&n.initial)&&(n={...n,initial:!1});let u={...(0,b.useContext)(Al),...n,layoutId:l},{isStatic:d,isValidProp:f}=u,p=nu(n),m=o(n,d);if(!d&&typeof window<`u`){Mu(u,r);let t=Nu(u);c=t.MeasureLayout,p.visualElement=Du(e,m,u,i,t.ProjectionNode,a)}return(0,z.jsxs)(eu.Provider,{value:p,children:[c&&p.visualElement?(0,z.jsx)(c,{visualElement:p.visualElement,...u}):null,_u(e,n,wu(m,p.visualElement,s),m,d,t,a,f)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,b.forwardRef)(s);return c[Cu]=e,c}function ju({layoutId:e}){let t=(0,b.useContext)(x).id;return t&&e!==void 0?t+`-`+e:e}function Mu(e,t){(0,b.useContext)(Jl).strict}function Nu(e){let{drag:t,layout:n}=Ql();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Pu(e,t){if(typeof Proxy>`u`)return Au;let n=new Map,r=(n,r)=>Au(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Au(a,void 0,e,t)),n.get(a))})}var Fu=(e,t)=>t.isSVG??gu(e)?new Sl(t):new ac(t,{allowProjection:e!==b.Fragment}),Iu=class extends _l{constructor(e){super(e),e.animationState||=Tl(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Rs(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Lu=0,Ru={animation:{Feature:Iu},exit:{Feature:class extends _l{constructor(){super(...arguments),this.id=Lu++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Hi(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},zu=class extends _l{constructor(e){super(e),this.removeGroupControls=k,this.removeListeners=k,this.controls=new $c(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||k}update(){let{dragControls:e,drag:t}=this.node.getProps(),{dragControls:n,drag:r}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls))),r&&!t&&this.controls.stop(void 0,void 0,r)}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Bu=({current:e})=>e?e.ownerDocument.defaultView:null,Vu=e=>(t,n)=>{e&&Kt.update(()=>e(t,n),!1,!0)},Hu=class extends _l{constructor(){super(...arguments),this.removePointerDownListener=k}onPointerDown(e){this.session=new Dc(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bu(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Vu(e),onStart:Vu(t),onMove:Vu(n),onEnd:(e,t)=>{delete this.session,r&&Kt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=lc(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Uu=!1,Wu=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),Gu=class extends b.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Uu&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...Wu(this.props),onExitComplete:()=>this.safeToRemove()})),Zo.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layout:t,layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,(e.layoutDependency!==n||e.layout!==t)&&o.setOptions({...o.options,...Wu(this.props)}),Uu=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||Kt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),qa.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Uu=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Ku(e){let[t,n]=Rl(),r=(0,b.useContext)(x);return(0,z.jsx)(Gu,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(Tu),isPresent:t,safeToRemove:n})}var qu={pan:{Feature:Hu},drag:{Feature:zu,ProjectionNode:Is,MeasureLayout:Ku}};function Ju(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Kt.postRender(()=>i(t,sc(t)))}var Yu=class extends _l{mount(){let{current:e}=this.node;e&&(this.unmount=cl(e,(e,t)=>(Ju(this.node,t,`Start`),e=>Ju(this.node,e,`End`))))}unmount(){}},Xu=class extends _l{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=ie(Ns(this.node.current,`focus`,()=>this.onFocus()),Ns(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Zu(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Kt.postRender(()=>i(t,sc(t)))}var Qu=class extends _l{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=gl(e,(e,t)=>(Zu(this.node,t,`Start`),(e,{success:t})=>Zu(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},$u=new WeakMap,ed=new WeakMap,td=e=>{let t=$u.get(e.target);t&&t(e)},nd=e=>{e.forEach(td)};function rd({root:e,...t}){let n=e||document;ed.has(n)||ed.set(n,{});let r=ed.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nd,{root:e,...t})),r[i]}function id(e,t,n){let r=rd(t);return $u.set(e,n),r.observe(e),()=>{$u.delete(e),r.unobserve(e)}}var ad={some:0,all:1},B=class extends _l{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:ad[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=id(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(od(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function od({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var V=Pu(Object.assign({},Ru,{inView:{Feature:B},tap:{Feature:Qu},focus:{Feature:Xu},hover:{Feature:Yu}},qu,{layout:{ProjectionNode:Is,MeasureLayout:Ku}}),Fu),H=_(),U=V,sd=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function cd(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:sd(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ld=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},ud=e=>{let t=ld(e);return t.charAt(0).toUpperCase()+t.slice(1)},dd=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),fd={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function pd(e){return e!=null}function md(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??fd.width,a=e.size??e.height??fd.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?dd(...c):dd(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??fd[`stroke-width`])*Number(e.size??e.width??fd.width)/Number(t.size??t.width??fd.width):t.strokeWidth??fd[`stroke-width`];return[`svg`,{...Object.entries(fd).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&pd(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&pd(t.width)&&{[r(`width`)]:t.width},...`height`in t&&pd(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function hd(e,t={}){return md(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var gd=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},_d=(0,b.createContext)({}),vd=()=>(0,b.useContext)(_d),yd=(0,b.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=vd()??{},y=!!c||gd(d),[x,S,C=[]]=hd(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:dd(v,s),hasA11yProp:y,attributes:d});return(0,b.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,b.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function W(e,t=[],n=[]){let r=typeof e==`string`?cd(e,t,n):e,i=(0,b.forwardRef)(({className:e,...t},n)=>(0,b.createElement)(yd,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=ud(r.name)),i}var bd={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};bd.node;var xd=W(bd),Sd={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};Sd.node;var Cd=W(Sd),wd={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};wd.node;var Td=W(wd),Ed={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};Ed.node;var Dd=W(Ed),Od={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};Od.node;var kd=W(Od),Ad={name:`brain`,size:24,node:[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 01-3-4 4.17 4.17 0 01-3 4`,key:`5nuw1p`}],[`path`,{d:`M17.707 6.294A3 3 0 1012 5a3 3 0 10-5.707 1.294`,key:`18ldcf`}],[`path`,{d:`M17.996 5.125a4 4 0 012.526 5.77`,key:`1sdu8q`}],[`path`,{d:`M18 18a4 4 0 002-7.465`,key:`7xqqvr`}],[`path`,{d:`M19.967 17.482a4 4 0 11-7.967.517 4 4 0 11-7.967-.517`,key:`t46ysz`}],[`path`,{d:`M6 18a4 4 0 01-2-7.465`,key:`1y2m15`}],[`path`,{d:`M6.004 5.125a4 4 0 00-2.526 5.77`,key:`3cw1ss`}]]};Ad.node;var jd=W(Ad),Md={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Md.node;var Nd=W(Md),Pd={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};Pd.node;var Fd=W(Pd),Id={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Id.node;var Ld=W(Id),Rd={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Rd.node;var zd=W(Rd),Bd={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};Bd.node;var Vd=W(Bd),Hd={name:`circle-dashed`,size:24,node:[[`path`,{d:`M10.1 2.182a10 10 0 0 1 3.8 0`,key:`5ilxe3`}],[`path`,{d:`M13.9 21.818a10 10 0 0 1-3.8 0`,key:`11zvb9`}],[`path`,{d:`M17.609 3.721a10 10 0 0 1 2.69 2.7`,key:`1iw5b2`}],[`path`,{d:`M2.182 13.9a10 10 0 0 1 0-3.8`,key:`c0bmvh`}],[`path`,{d:`M20.279 17.609a10 10 0 0 1-2.7 2.69`,key:`1ruxm7`}],[`path`,{d:`M21.818 10.1a10 10 0 0 1 0 3.8`,key:`qkgqxc`}],[`path`,{d:`M3.721 6.391a10 10 0 0 1 2.7-2.69`,key:`1mcia2`}],[`path`,{d:`M6.391 20.279a10 10 0 0 1-2.69-2.7`,key:`1fvljs`}]]};Hd.node;var Ud=W(Hd),Wd={name:`circle-pause`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]],aliases:[`pause-circle`]};Wd.node;var Gd=W(Wd),Kd={name:`circle-stop`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]],aliases:[`stop-circle`]};Kd.node;var qd=W(Kd),Jd={name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};Jd.node;var Yd=W(Jd),Xd={name:`clipboard-list`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}],[`path`,{d:`M12 11h4`,key:`1jrz19`}],[`path`,{d:`M12 16h4`,key:`n85exb`}],[`path`,{d:`M8 11h.01`,key:`1dfujw`}],[`path`,{d:`M8 16h.01`,key:`18s6g9`}]]};Xd.node;var Zd=W(Xd),Qd={name:`coins`,size:24,node:[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]};Qd.node;var $d=W(Qd),ef={name:`copy`,size:24,node:[[`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`}]]};ef.node;var tf=W(ef),nf={name:`crown`,size:24,node:[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]};nf.node;var rf=W(nf),af={name:`ellipsis`,size:24,node:[[`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`}]],aliases:[`more-horizontal`]};af.node;var of=W(af),sf={name:`eraser`,size:24,node:[[`path`,{d:`M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21`,key:`g5wo59`}],[`path`,{d:`m5.082 11.09 8.828 8.828`,key:`1wx5vj`}]]};sf.node;var cf=W(sf),lf={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};lf.node;var uf=W(lf),df={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};df.node;var ff=W(df),pf={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};pf.node;var mf=W(pf),hf={name:`folder-open`,size:24,node:[[`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`}]]};hf.node;var gf=W(hf),_f={name:`folder-plus`,size:24,node:[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`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`}]]};_f.node;var vf=W(_f),yf={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};yf.node;var G=W(yf),bf={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};bf.node;var xf=W(bf),Sf={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};Sf.node;var Cf=W(Sf),wf={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};wf.node;var Tf=W(wf),Ef={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};Ef.node;var Df=W(Ef),Of={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};Of.node;var kf=W(Of),Af={name:`lock-open`,size:24,node:[[`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`}]],aliases:[`unlock`]};Af.node;var jf=W(Af),Mf={name:`lock`,size:24,node:[[`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`}]]};Mf.node;var Nf=W(Mf),Pf={name:`message-circle-question-mark`,size:24,node:[[`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`}]],aliases:[`message-circle-question`]};Pf.node;var Ff=W(Pf),If={name:`message-square`,size:24,node:[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]};If.node;var Lf=W(If),Rf={name:`messages-square`,size:24,node:[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]};Rf.node;var zf=W(Rf),Bf={name:`octagon-alert`,size:24,node:[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]],aliases:[`alert-octagon`]};Bf.node;var Vf=W(Bf),Hf={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]};Hf.node;var Uf=W(Hf),Wf={name:`pencil`,size:24,node:[[`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`}]]};Wf.node;var Gf=W(Wf),Kf={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};Kf.node;var qf=W(Kf),K={name:`plug`,size:24,node:[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]};K.node;var Jf=W(K),Yf={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Yf.node;var Xf=W(Yf),Zf={name:`power`,size:24,node:[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]};Zf.node;var Qf=W(Zf),$f={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};$f.node;var ep=W($f),tp={name:`repeat`,size:24,node:[[`path`,{d:`m17 2 4 4-4 4`,key:`nntrym`}],[`path`,{d:`M3 11v-1a4 4 0 0 1 4-4h14`,key:`84bu3i`}],[`path`,{d:`m7 22-4-4 4-4`,key:`1wqhfi`}],[`path`,{d:`M21 13v1a4 4 0 0 1-4 4H3`,key:`1rx37r`}]]};tp.node;var np=W(tp),rp={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};rp.node;var ip=W(rp),ap={name:`save`,size:24,node:[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]};ap.node;var op=W(ap),sp={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};sp.node;var cp=W(sp),lp={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};lp.node;var up=W(lp),dp={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};dp.node;var fp=W(dp),pp={name:`settings-2`,size:24,node:[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]};pp.node;var mp=W(pp),hp={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};hp.node;var gp=W(hp),_p={name:`shield-question-mark`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`shield-question`]};_p.node;var vp=W(_p),yp={name:`square-kanban`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 7v7`,key:`1x2jlm`}],[`path`,{d:`M12 7v4`,key:`xawao1`}],[`path`,{d:`M16 7v9`,key:`1hp2iy`}]],aliases:[`kanban-square`]};yp.node;var bp=W(yp),xp={name:`trash`,size:24,node:[[`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`}]],aliases:[`trash-2`]};xp.node;var Sp=W(xp),Cp={name:`wrench`,size:24,node:[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]};Cp.node;var wp=W(Cp),Tp={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Tp.node;var Ep=W(Tp);function Dp(e){return e<1e3?String(e):e<1e6?`${(e/1e3).toFixed(+(e<1e4))}k`:`${(e/1e6).toFixed(1)}M`}function Op(e){return e.input+e.output+e.reasoning+e.cacheRead+e.cacheWrite}var kp=`symbio:token`,Ap=(()=>{let e=new URL(location.href),t=e.searchParams.get(`token`);return t&&(localStorage.setItem(kp,t),e.searchParams.delete(`token`),history.replaceState(null,``,e.pathname+e.search+e.hash)),localStorage.getItem(kp)??``})(),jp=`symbio:locked`;async function q(e,t,n){let r=await fetch(`/api${t}`,{method:e,headers:{"x-symbio-token":Ap,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)}),i=await r.json().catch(()=>({}));if(r.status===401&&i.code===`locked`&&dispatchEvent(new Event(jp)),r.status===401&&i.code===`remote-login`&&(location.href=`/remote-login`),!r.ok)throw Error(i.error??r.statusText);return i}var J={runtime:()=>q(`GET`,`/runtime`),models:()=>q(`GET`,`/models`),projects:()=>q(`GET`,`/projects`),project:e=>q(`GET`,`/projects/${e}`),inspect:e=>q(`GET`,`/inspect?dir=${encodeURIComponent(e)}`),pickFolder:e=>q(`POST`,`/pick-folder`,{initial:e}),providers:()=>q(`GET`,`/providers`),connectProviderKey:(e,t,n)=>q(`POST`,`/providers/${encodeURIComponent(e)}/key`,{key:t,answer:n}),beginProviderOauth:(e,t,n)=>q(`POST`,`/providers/${encodeURIComponent(e)}/oauth`,{methodID:t,answer:n}),providerOauthStatus:(e,t)=>q(`GET`,`/providers/${encodeURIComponent(e)}/oauth/${encodeURIComponent(t)}`),completeProviderOauth:(e,t,n)=>q(`POST`,`/providers/${encodeURIComponent(e)}/oauth/${encodeURIComponent(t)}/complete`,{code:n}),cancelProviderOauth:(e,t)=>q(`DELETE`,`/providers/${encodeURIComponent(e)}/oauth/${encodeURIComponent(t)}`),removeProviderLogin:e=>q(`DELETE`,`/providers/logins/${encodeURIComponent(e)}`),createProject:e=>q(`POST`,`/projects`,e),permissions:e=>q(`GET`,`/projects/${e}/permissions`),answerPermission:(e,t,n,r)=>q(`POST`,`/projects/${e}/permissions/${t}`,{decision:n,note:r}),approvals:e=>q(`GET`,`/projects/${e}/approvals`),decideApproval:(e,t,n,r)=>q(`POST`,`/projects/${e}/approvals/${t}`,{approved:n,note:r}),docs:e=>q(`GET`,`/projects/${e}/docs`),readDoc:(e,t)=>q(`GET`,`/projects/${e}/docs/file?path=${encodeURIComponent(t)}`),writeDoc:(e,t,n)=>q(`PUT`,`/projects/${e}/docs/file`,{path:t,content:n}),updateProject:(e,t)=>q(`PATCH`,`/projects/${e}`,t),connections:()=>q(`GET`,`/connections`),createConnection:e=>q(`POST`,`/connections`,e),updateConnection:(e,t)=>q(`PATCH`,`/connections/${e}`,t),deleteConnection:e=>q(`DELETE`,`/connections/${e}`),testConnection:e=>q(`POST`,`/connections/${e}/test`),deleteProject:(e,t)=>q(`DELETE`,`/projects/${e}?deleteData=${t}`),start:e=>q(`POST`,`/projects/${e}/start`),history:(e,t)=>q(`GET`,`/projects/${e}/agents/${t}/history`),projectUsage:e=>q(`GET`,`/projects/${e}/usage`),prices:()=>q(`GET`,`/prices`),remote:()=>q(`GET`,`/remote`),startRemote:()=>q(`POST`,`/remote/start`),stopRemote:()=>q(`POST`,`/remote/stop`),housekeeping:e=>q(`GET`,`/projects/${e}/housekeeping`),checkHousekeeping:e=>q(`POST`,`/projects/${e}/housekeeping/check`),cleanHelper:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/clean`),setPrice:(e,t)=>q(`PUT`,`/prices`,{model:e,price:t}),historyPage:(e,t,n,r,i)=>q(`GET`,`/projects/${e}/agents/${t}/history?limit=${n}${r?`&before=${encodeURIComponent(r)}`:``}${i?`&session=${encodeURIComponent(i)}`:``}`),renewSession:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/renew`),send:(e,t,n,r=!1)=>q(`POST`,`/projects/${e}/agents/${t}/messages`,{text:n,urgent:r}),interrupt:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/interrupt`),renameAgent:(e,t,n)=>q(`POST`,`/projects/${e}/agents/${t}/rename`,{name:n}),setAgentModel:(e,t,n)=>q(`POST`,`/projects/${e}/agents/${t}/model`,{model:n}),restartAgent:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/restart`),stopAgent:(e,t)=>q(`POST`,`/projects/${e}/agents/${t}/stop`),forms:(e,t)=>q(`GET`,`/projects/${e}/agents/${t}/forms`),answerForm:(e,t,n,r,i)=>q(`POST`,`/projects/${e}/agents/${t}/forms/${n}`,{answer:r,summary:i}),log:e=>q(`GET`,`/projects/${e}/log`),assets:e=>q(`GET`,`/projects/${e}/assets`),retryModels:e=>q(`POST`,`/projects/${e}/retry-models`),pauseTeam:e=>q(`POST`,`/projects/${e}/pause`),resumeTeam:e=>q(`POST`,`/projects/${e}/resume`),pauseAll:()=>q(`POST`,`/pause-all`),plan:e=>q(`GET`,`/projects/${e}/plan`),decidePlan:(e,t,n)=>q(`POST`,`/projects/${e}/plan/decision`,{approved:t,feedback:n})},Mp=new Set,Np=null;function Pp(e){return Mp.add(e),Np||(Np=new EventSource(`/api/events?token=${encodeURIComponent(Ap)}`),Np.onmessage=e=>{if(!e.data)return;let t=JSON.parse(e.data);for(let e of Mp)e(t)}),()=>Mp.delete(e)}function Fp({type:e,small:t}){return(0,z.jsx)(`span`,{className:`conn-icon ${t?`sm`:``}`,children:e===`github`?(0,z.jsx)(G,{size:t?12:15}):(0,z.jsx)(up,{size:t?12:15})})}function Ip({value:e,onChange:t}){let[n,r]=(0,b.useState)(null);if((0,b.useEffect)(()=>{J.connections().then(r).catch(()=>r([]))},[]),!n)return(0,z.jsx)(`div`,{className:`subtle small`,children:`Loading connections…`});if(n.length===0)return(0,z.jsxs)(`div`,{className:`subtle small`,children:[`No connections yet — add GitHub accounts or servers in `,(0,z.jsx)(`a`,{className:`link`,href:`#/settings`,children:`Settings`}),`.`]});let i=t=>e.find(e=>e.id===t),a=n=>t(i(n)?e.filter(e=>e.id!==n):[...e,{id:n,policy:`ask`}]),o=(n,r)=>t(e.map(e=>e.id===n?{...e,policy:r}:e));return(0,z.jsx)(`div`,{children:n.map(e=>{let t=i(e.id);return(0,z.jsxs)(`div`,{className:`pick-row ${t?`on`:``}`,children:[(0,z.jsxs)(`label`,{className:`pick-main`,children:[(0,z.jsx)(`input`,{type:`checkbox`,checked:!!t,onChange:()=>a(e.id)}),(0,z.jsx)(Fp,{type:e.type,small:!0}),(0,z.jsxs)(`span`,{className:`grow ellipsis`,children:[(0,z.jsx)(`span`,{style:{fontWeight:500},children:e.name}),` `,(0,z.jsx)(`span`,{className:`subtle small`,children:e.type===`github`?e.account??`GitHub`:`${e.username}@${e.host}`})]})]}),t&&(0,z.jsxs)(`div`,{className:`seg`,children:[(0,z.jsx)(`button`,{className:t.policy===`ask`?`on`:``,onClick:()=>o(e.id,`ask`),title:`Every action waits for your approval`,children:`Ask me`}),(0,z.jsx)(`button`,{className:t.policy===`allow`?`on`:``,onClick:()=>o(e.id,`allow`),title:`Agents act without asking`,children:`Allowed`})]})]},e.id)})})}var Lp={documents:`documents`,spreadsheets:`spreadsheets`,presentations:`presentations`,images:`images`,"audio-video":`audio/video`,code:`code`,data:`data`,archives:`archives`,other:`other`};function Rp(e){return e<1024?`${e} B`:e<1024**2?`${(e/1024).toFixed(1)} KB`:e<1024**3?`${(e/1024**2).toFixed(1)} MB`:`${(e/1024**3).toFixed(2)} GB`}function zp({inspection:e}){let t=Object.entries(e.kinds).sort((e,t)=>t[1]-e[1]),n=t.reduce((e,[,t])=>e+t,0)||1,r;return r=e.exists?e.empty?`Empty folder — a new project`:`Existing folder · ${e.fileCount}${e.truncated?`+`:``} files · ${Rp(e.totalBytes)}`:`New folder — it will be created`,(0,z.jsxs)(U.div,{className:`folder-summary`,initial:{opacity:0,y:-4},animate:{opacity:1,y:0},children:[(0,z.jsxs)(`div`,{className:`folder-headline`,children:[e.empty||!e.exists?(0,z.jsx)(vf,{size:15}):(0,z.jsx)(gf,{size:15}),(0,z.jsx)(`strong`,{children:r}),e.isGit&&(0,z.jsxs)(`span`,{className:`tag`,children:[(0,z.jsx)(G,{}),`git`]}),e.guidance.map(e=>(0,z.jsxs)(`span`,{className:`tag`,children:[(0,z.jsx)(mf,{}),e]},e))]}),t.length>0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`kind-bar`,children:t.map(([e,t],r)=>(0,z.jsx)(U.span,{className:`kind-seg k${r%6}`,initial:{width:0},animate:{width:`${t/n*100}%`},transition:{duration:.5,delay:r*.05},title:`${Lp[e]??e}: ${t}`},e))}),(0,z.jsx)(`div`,{className:`kind-legend`,children:t.map(([e,t],n)=>(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`i`,{className:`k${n%6}`}),Lp[e]??e,` `,t]},e))})]}),e.topLevel.length>0&&(0,z.jsxs)(`div`,{className:`top-level`,title:`Top-level contents`,children:[e.topLevel.slice(0,14).join(` · `),e.topLevel.length>14&&` · …`]})]})}function Bp(e){let{allowed:t,coordinator:n,onChange:r}=e,[i,a]=(0,b.useState)(null),[o,s]=(0,b.useState)(null),[c,l]=(0,b.useState)(``),[u,d]=(0,b.useState)(!1),[f,p]=(0,b.useState)(!1),[m]=(0,b.useState)(()=>new Set(t));(0,b.useEffect)(()=>{J.models().then(a).catch(e=>s(e.message))},[]);let h=(0,b.useMemo)(()=>{let e=c.toLowerCase(),t=[],n=new Map;for(let r of i??[])u&&!r.free||f&&!r.vision||e&&!r.ref.toLowerCase().includes(e)&&!r.name.toLowerCase().includes(e)||(m.has(r.ref)?t.push(r):(n.has(r.providerID)||n.set(r.providerID,[]),n.get(r.providerID).push(r)));let r=[...n.entries()].sort(([e],[t])=>e.localeCompare(t));return t.length?[[`Selected`,t],...r]:r},[i,c,u,f,m]),g=e=>{if(t.includes(e)){let i=t.filter(t=>t!==e);r(i,n===e?i[0]??``:n)}else r([...t,e],n||e)},_=e=>r(t.includes(e)?t:[...t,e],e);return o?(0,z.jsxs)(`div`,{className:`error`,children:[`Could not load models: `,o]}):i?(0,z.jsxs)(`div`,{className:`model-picker`,children:[(0,z.jsxs)(`div`,{className:`model-picker-head`,children:[(0,z.jsx)(cp,{size:14,className:`subtle`}),(0,z.jsx)(`input`,{placeholder:`Search models…`,value:c,onChange:e=>l(e.target.value)}),(0,z.jsxs)(`label`,{className:`check`,children:[(0,z.jsx)(`input`,{type:`checkbox`,checked:u,onChange:e=>d(e.target.checked)}),` Free`]}),(0,z.jsxs)(`label`,{className:`check`,children:[(0,z.jsx)(`input`,{type:`checkbox`,checked:f,onChange:e=>p(e.target.checked)}),` Vision`]})]}),(0,z.jsx)(`div`,{className:`model-summary`,children:t.length===0?(0,z.jsx)(`span`,{className:`subtle`,children:`Select the models agents may use. Agents switch to the next one if a model fails.`}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`span`,{children:[t.length,` selected ·`]}),(0,z.jsxs)(`span`,{className:`row`,style:{gap:4},children:[(0,z.jsx)(rf,{size:12,style:{color:`var(--amber)`}}),`core runs on `,(0,z.jsx)(`strong`,{style:{color:`var(--text)`},children:n?(e=>i?.find(t=>t.ref===e)?.name??e)(n):`—`})]})]})}),(0,z.jsxs)(`div`,{className:`model-groups`,children:[h.map(([e,r])=>(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`model-group-title`,children:e}),r.map(e=>{let r=t.includes(e.ref),i=n===e.ref;return(0,z.jsxs)(`div`,{className:`model-row ${r?`on`:``}`,onClick:()=>g(e.ref),children:[(0,z.jsx)(`span`,{className:`check-box`,children:r&&(0,z.jsx)(Nd,{size:11,strokeWidth:3})}),(0,z.jsxs)(`span`,{className:`model-name`,title:e.ref,children:[e.name,m.has(e.ref)&&(0,z.jsxs)(`span`,{className:`subtle`,children:[` · `,e.providerID]})]}),e.free&&(0,z.jsx)(`span`,{className:`tag green`,children:`Free`}),(0,z.jsx)(`span`,{className:`subtle`,title:e.vision?`Can read images`:void 0,style:{display:`inline-flex`,width:14,opacity:+!!e.vision},children:(0,z.jsx)(ff,{size:13})}),(0,z.jsx)(`button`,{className:`lead-btn ${i?`on`:``}`,title:i?`core runs on this model`:`Run core on this model`,onClick:t=>{t.stopPropagation(),_(e.ref)},children:(0,z.jsx)(rf,{size:14})})]},e.ref)})]},e)),h.length===0&&(0,z.jsx)(`div`,{className:`section-empty`,children:`No models match.`})]})]}):(0,z.jsx)(`div`,{className:`subtle`,children:`Loading models…`})}var Vp=[`#5b5fc7`,`#2f8f6f`,`#a87326`,`#a2508f`,`#3b78cc`,`#3c8c9b`,`#8a5bb5`,`#7c7448`];function Hp(e){let t=0;for(let n of e)t=t*31+n.charCodeAt(0)>>>0;return Vp[t%Vp.length]}function Up({name:e,status:t,size:n,kind:r=`agent`}){let i=r===`human`?`Y`:r===`system`?`S`:e.slice(0,1);return(0,z.jsxs)(`span`,{className:`avatar ${n??``} ${r===`agent`?``:r}`,style:r===`agent`?{background:Hp(e)}:void 0,title:e,children:[i,t&&(0,z.jsx)(`span`,{className:`dot ${t}`})]})}function Wp(e){switch(e){case`busy`:return`Working`;case`waiting`:return`Waiting for you`;case`stuck`:return`Recovering`;case`error`:return`Needs attention`;case`stopped`:return`Stopped`;default:return`Idle`}}function Gp({size:e=22}){return(0,z.jsxs)(`svg`,{className:`brand-logo`,width:e,height:e,viewBox:`0 0 24 24`,"aria-hidden":`true`,children:[(0,z.jsx)(`circle`,{cx:`9`,cy:`12`,r:`6.5`,fill:`none`,stroke:`#6d6af5`,strokeWidth:`2.2`}),(0,z.jsx)(`circle`,{cx:`15`,cy:`12`,r:`6.5`,fill:`none`,stroke:`#3fb27f`,strokeWidth:`2.2`})]})}function Kp(e){(0,b.useEffect)(()=>{let t=t=>t.key===`Escape`&&e();return addEventListener(`keydown`,t),()=>removeEventListener(`keydown`,t)},[e])}function qp({title:e,subtitle:t,onClose:n,children:r,footer:i,wide:a,header:o}){return Kp(n),(0,z.jsx)(U.div,{className:`backdrop`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.12},onMouseDown:e=>e.target===e.currentTarget&&n(),children:(0,z.jsxs)(U.div,{className:`dialog ${a?`wide`:``}`,initial:{opacity:0,y:8,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:8,scale:.98},transition:{duration:.15},onClick:e=>e.stopPropagation(),children:[(0,z.jsxs)(`div`,{className:`dialog-head`,children:[(0,z.jsx)(`h2`,{children:e}),(0,z.jsx)(`button`,{className:`btn ghost icon sm`,onClick:n,"aria-label":`Close`,children:(0,z.jsx)(Ep,{size:15})})]}),t&&(0,z.jsx)(`div`,{className:`dialog-sub`,children:t}),o,(0,z.jsx)(`div`,{className:`dialog-body`,children:r}),i&&(0,z.jsx)(`div`,{className:`dialog-foot`,children:i})]})})}function Jp({title:e,onClose:t,children:n,actions:r}){return Kp(t),(0,z.jsx)(U.div,{className:`drawer-backdrop`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onMouseDown:e=>e.target===e.currentTarget&&t(),children:(0,z.jsxs)(U.aside,{className:`drawer`,initial:{x:40,opacity:0},animate:{x:0,opacity:1},exit:{x:40,opacity:0},transition:{type:`spring`,stiffness:380,damping:34},children:[(0,z.jsxs)(`div`,{className:`drawer-head`,children:[(0,z.jsx)(`h2`,{children:e}),r,(0,z.jsx)(`button`,{className:`btn ghost icon sm`,onClick:t,"aria-label":`Close`,children:(0,z.jsx)(Ep,{size:15})})]}),(0,z.jsx)(`div`,{className:`drawer-body`,children:n})]})})}function Yp({icon:e,title:t,children:n,action:r}){return(0,z.jsxs)(`div`,{className:`empty`,children:[(0,z.jsx)(`div`,{className:`empty-icon`,children:e}),(0,z.jsx)(`h3`,{children:t}),n&&(0,z.jsx)(`p`,{children:n}),r]})}function Xp(e){let t=Math.round((Date.now()-e)/1e3);return t<45?`just now`:t<3600?`${Math.round(t/60)}m ago`:t<86400?`${Math.round(t/3600)}h ago`:new Date(e).toLocaleDateString()}function Zp(e){return new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}function Qp({project:e,onRemoved:t}){let[n,r]=(0,b.useState)(!1),[i,a]=(0,b.useState)(null),o=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!n)return;let e=e=>{o.current?.contains(e.target)||r(!1)};return addEventListener(`mousedown`,e),()=>removeEventListener(`mousedown`,e)},[n]);let s=e=>t=>{t.preventDefault(),t.stopPropagation(),r(!1),a(e)};return(0,z.jsxs)(`div`,{className:`menu`,ref:o,onClick:e=>e.preventDefault(),children:[(0,z.jsx)(`button`,{className:`btn ghost icon sm`,title:`Project options`,"aria-label":`Project options`,onClick:e=>{e.preventDefault(),e.stopPropagation(),r(e=>!e)},children:(0,z.jsx)(of,{size:16})}),(0,z.jsx)(Vl,{children:n&&(0,z.jsxs)(U.div,{className:`menu-list`,initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.1},children:[(0,z.jsxs)(`button`,{onClick:s(`rename`),children:[(0,z.jsx)(Gf,{size:14}),`Rename`]}),(0,z.jsxs)(`button`,{className:`danger`,onClick:s(`remove`),children:[(0,z.jsx)(Sp,{size:14}),`Remove from Symbio…`]})]})}),(0,z.jsxs)(Vl,{children:[i===`rename`&&(0,z.jsx)($p,{project:e,onClose:()=>a(null)}),i===`remove`&&(0,z.jsx)(em,{project:e,onClose:()=>a(null),onRemoved:t})]})]})}function $p({project:e,onClose:t}){let[n,r]=(0,b.useState)(e.name),[i,a]=(0,b.useState)(null),o=n.trim()&&n.trim()!==e.name;async function s(){try{await J.updateProject(e.id,{name:n.trim()}),t()}catch(e){a(e.message)}}return(0,z.jsxs)(qp,{title:`Rename project`,onClose:t,footer:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`button`,{className:`btn ghost`,onClick:t,children:`Cancel`}),(0,z.jsx)(`button`,{className:`btn primary`,onClick:s,disabled:!o,children:`Rename`})]}),children:[(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Name`}),(0,z.jsx)(`input`,{autoFocus:!0,value:n,onChange:e=>r(e.target.value),onKeyDown:e=>e.key===`Enter`&&o&&s()}),(0,z.jsx)(`span`,{className:`hint`,children:`Only the name shown in Symbio changes; the folder stays where it is.`})]}),i&&(0,z.jsx)(`div`,{className:`error`,children:i})]})}function em({project:e,onClose:t,onRemoved:n}){let[r,i]=(0,b.useState)(!1),[a,o]=(0,b.useState)(!1),[s,c]=(0,b.useState)(null),l=e.agents.filter(e=>e.status===`busy`||e.status===`waiting`).length;async function u(){o(!0);try{await J.deleteProject(e.id,r),t(),n?.()}catch(e){c(e.message),o(!1)}}return(0,z.jsxs)(qp,{title:`Remove “${e.name}”?`,onClose:t,footer:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`button`,{className:`btn ghost`,onClick:t,children:`Cancel`}),(0,z.jsx)(`button`,{className:`btn danger-solid`,onClick:u,disabled:a,children:a?`Removing…`:`Remove project`})]}),children:[(0,z.jsxs)(`p`,{className:`muted`,children:[`Symbio stops its agents and removes their workspaces. `,(0,z.jsx)(`strong`,{style:{color:`var(--text)`},children:`Your project files are not touched`}),` —`,` `,(0,z.jsx)(`code`,{children:e.directory}),` stays exactly as it is, including its git history and any branches helpers created.`]}),l>0&&(0,z.jsxs)(`div`,{className:`notice`,children:[l,` agent(s) are working right now and will be stopped.`]}),(0,z.jsxs)(`label`,{className:`choice`,children:[(0,z.jsx)(`input`,{type:`checkbox`,checked:r,onChange:e=>i(e.target.checked)}),(0,z.jsxs)(`span`,{className:`choice-body`,children:[(0,z.jsx)(`span`,{className:`choice-title`,children:`Also delete Symbio's data for it`}),(0,z.jsxs)(`span`,{className:`choice-desc`,children:[`The plan, message log and asset register (`,(0,z.jsx)(`code`,{children:`.symbio`}),` folder) and the agents' conversations. Leave unchecked to be able to add the folder again later and continue where you left off.`]})]})]}),s&&(0,z.jsx)(`div`,{className:`error`,children:s})]})}function tm(e){return e.replace(/[\\/]+$/,``).split(/[\\/]/).pop()??``}function nm({runtime:e}){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(!1);(0,b.useEffect)(()=>{let e=()=>J.projects().then(n).catch(()=>n([]));return e(),Pp(t=>{(t.type===`project.updated`||t.type===`agent.status`)&&e()})},[]);let a=e?.state===`running`,[o,s]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{e?.state===`running`&&J.providers().then(e=>s(e.connected.every(e=>e.models===0))).catch(()=>{})},[e?.state]),(0,z.jsxs)(`div`,{className:`page-inner`,children:[(0,z.jsxs)(`div`,{className:`page-head`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h1`,{children:`Projects`}),(0,z.jsx)(`p`,{children:`Each project gets core, an agent that talks the scope through with you and coordinates the work.`})]}),(0,z.jsxs)(`button`,{className:`btn primary`,onClick:()=>i(!0),disabled:!a,children:[(0,z.jsx)(Xf,{size:15}),`New project`]})]}),o&&(0,z.jsxs)(`div`,{className:`notice row`,style:{justifyContent:`space-between`,gap:12},children:[(0,z.jsx)(`span`,{children:`No model provider is connected yet, so agents have no models to run on.`}),(0,z.jsx)(`a`,{className:`btn sm`,href:`#/settings`,children:`Connect a provider`})]}),t&&t.length===0&&(0,z.jsx)(`div`,{className:`section`,children:(0,z.jsx)(Yp,{icon:(0,z.jsx)(vf,{size:20}),title:`No projects yet`,action:(0,z.jsxs)(`button`,{className:`btn primary`,onClick:()=>i(!0),disabled:!a,children:[(0,z.jsx)(Xf,{size:15}),`New project`]}),children:`Point Symbio at a folder — empty or existing — and core will take it from there.`})}),t&&t.length>0&&(0,z.jsx)(`div`,{className:`project-list`,children:t.map(e=>(0,z.jsx)(rm,{project:e},e.id))}),(0,z.jsx)(Vl,{children:r&&(0,z.jsx)(am,{onClose:()=>i(!1)})})]})}function rm({project:e}){let t=e.agents.filter(e=>e.status!==`stopped`),n=t.filter(e=>e.status===`busy`).length,r=t.filter(e=>e.status===`waiting`).length,i=t.filter(e=>e.problem||e.status===`error`).length,a=Math.max(e.createdAt,...e.agents.map(e=>e.lastActivity??0)),o=(0,z.jsx)(`span`,{className:`subtle`,children:t.length?`Idle`:`Not started`});return e.paused?o=(0,z.jsx)(`span`,{className:`tag blue`,children:`Paused`}):i?o=(0,z.jsx)(`span`,{className:`tag red`,children:`Needs attention`}):r?o=(0,z.jsx)(`span`,{className:`tag amber`,children:`Waiting for you`}):n&&(o=(0,z.jsxs)(`span`,{className:`tag green`,children:[n,` working`]})),(0,z.jsxs)(`a`,{className:`project-row`,href:`#/p/${e.id}`,children:[(0,z.jsxs)(`div`,{style:{minWidth:0},children:[(0,z.jsx)(`div`,{className:`project-name`,children:e.name}),(0,z.jsx)(`div`,{className:`project-dir ellipsis`,title:e.directory,children:e.directory})]}),(0,z.jsx)(`div`,{className:`avatar-stack`,title:t.map(e=>e.name).join(`, `),children:t.slice(0,5).map(e=>(0,z.jsx)(Up,{name:e.name,size:`sm`},e.id))}),(0,z.jsxs)(`div`,{className:`project-meta`,children:[o,(0,z.jsxs)(`span`,{className:`subtle`,children:[`· `,Xp(a)]})]}),(0,z.jsx)(`div`,{onClick:e=>e.preventDefault(),children:(0,z.jsx)(Qp,{project:e})})]})}var im=[`Folder`,`Setup`,`Models`];function am({onClose:e}){let[t,n]=(0,b.useState)(0),[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)(!1),[s,c]=(0,b.useState)(``),[l,u]=(0,b.useState)(null),[d,f]=(0,b.useState)(null),[p,m]=(0,b.useState)(!0),[h,g]=(0,b.useState)(`project`),[_,v]=(0,b.useState)([]),[y,x]=(0,b.useState)([]),[S,C]=(0,b.useState)(``),[w,T]=(0,b.useState)(!1),[E,D]=(0,b.useState)(!1),[O,ee]=(0,b.useState)(null);(0,b.useEffect)(()=>{let e=s.trim();if(u(null),f(null),!e)return;let t=setTimeout(()=>{J.inspect(e).then(e=>{u(e),a||i(tm(e.directory))}).catch(e=>f(e.message))},400);return()=>clearTimeout(t)},[s]);let te=l?.existingProject,ne=l&&!l.isGit&&l.gitAvailable,re=[!!(r.trim()&&l&&!te),!0,!!S][t];async function k(){D(!0),f(null);try{let{path:e}=await J.pickFolder(s.trim()||void 0);e&&c(e)}catch(e){f(e.message)}finally{D(!1)}}async function ie(){T(!0),ee(null);try{let e=await J.createProject({name:r.trim(),directory:s.trim(),allowedModels:y,coordinatorModel:S,docsLocation:h,initGit:!!ne&&p,connections:_});await J.start(e.id),location.hash=`#/p/${e.id}`}catch(e){ee(e.message),T(!1)}}return(0,z.jsxs)(qp,{title:`New project`,onClose:e,wide:t===2,header:(0,z.jsx)(`div`,{className:`steps`,children:im.map((e,n)=>(0,z.jsxs)(`span`,{className:`row`,style:{gap:6},children:[n>0&&(0,z.jsx)(`span`,{className:`sep`}),(0,z.jsxs)(`span`,{className:`step ${n===t?`on`:n<t?`done`:``}`,children:[(0,z.jsx)(`span`,{className:`step-num`,children:n+1}),e]})]},e))}),footer:(0,z.jsxs)(z.Fragment,{children:[O&&(0,z.jsx)(`div`,{className:`error grow`,children:O}),t>0&&(0,z.jsxs)(`button`,{className:`btn ghost`,onClick:()=>n(t-1),disabled:w,children:[(0,z.jsx)(xd,{size:14}),`Back`]}),t<im.length-1?(0,z.jsxs)(`button`,{className:`btn primary`,onClick:()=>n(t+1),disabled:!re,children:[`Continue`,(0,z.jsx)(Cd,{size:14})]}):(0,z.jsx)(`button`,{className:`btn primary`,onClick:ie,disabled:!re||w,children:w?`Starting core…`:`Create project`})]}),children:[t===0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Folder`}),(0,z.jsxs)(`span`,{className:`input-row`,children:[(0,z.jsx)(`input`,{value:s,onChange:e=>c(e.target.value),placeholder:`C:\\Users\\you\\projects\\my-project`,autoFocus:!0}),(0,z.jsxs)(`button`,{type:`button`,className:`btn`,onClick:k,disabled:E,children:[(0,z.jsx)(gf,{size:14}),E?`Choosing…`:`Browse…`]})]}),(0,z.jsx)(`span`,{className:`hint`,children:`An empty folder starts a new project; an existing one is studied first. Created if it doesn't exist.`})]}),(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Name`}),(0,z.jsx)(`input`,{value:r,onChange:e=>{i(e.target.value),o(!0)},placeholder:`My project`})]}),d&&(0,z.jsx)(`div`,{className:`error`,children:d}),te&&(0,z.jsxs)(`div`,{className:`error`,children:[`This folder already belongs to the project `,(0,z.jsxs)(`a`,{href:`#/p/${te.id}`,children:[`“`,te.name,`”`]}),`.`]}),l&&!te&&(0,z.jsx)(zp,{inspection:l}),ne&&(0,z.jsxs)(`label`,{className:`choice`,children:[(0,z.jsx)(`input`,{type:`checkbox`,checked:p,onChange:e=>m(e.target.checked)}),(0,z.jsxs)(`span`,{className:`choice-body`,children:[(0,z.jsx)(`span`,{className:`choice-title`,children:`Set up version history (git)`}),(0,z.jsxs)(`span`,{className:`choice-desc`,children:[`Lets several agents work in parallel without stepping on each other, and keeps a history you can roll back. Adds a hidden `,(0,z.jsx)(`code`,{children:`.git`}),` folder with a first snapshot.`]})]})]}),l&&!l.isGit&&!l.gitAvailable&&(0,z.jsx)(`div`,{className:`notice`,children:`Git isn't installed, so agents will share the folder directly.`})]}),t===1&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Project documentation`}),(0,z.jsxs)(`label`,{className:`choice`,children:[(0,z.jsx)(`input`,{type:`radio`,checked:h===`project`,onChange:()=>g(`project`)}),(0,z.jsxs)(`span`,{className:`choice-body`,children:[(0,z.jsxs)(`span`,{className:`choice-title`,children:[`In the project `,(0,z.jsx)(`span`,{className:`tag accent`,children:`Recommended`})]}),(0,z.jsxs)(`span`,{className:`choice-desc`,children:[(0,z.jsx)(`code`,{children:`AGENTS.md`}),` and a `,(0,z.jsx)(`code`,{children:`docs/`}),` folder — useful to any agent or person working on it.`]})]})]}),(0,z.jsxs)(`label`,{className:`choice`,children:[(0,z.jsx)(`input`,{type:`radio`,checked:h===`private`,onChange:()=>g(`private`)}),(0,z.jsxs)(`span`,{className:`choice-body`,children:[(0,z.jsx)(`span`,{className:`choice-title`,children:`Private`}),(0,z.jsxs)(`span`,{className:`choice-desc`,children:[`Kept in `,(0,z.jsx)(`code`,{children:`.symbio/docs`}),`, outside your files — for folders you don't want AI documentation in.`]})]})]})]}),(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Connections`}),(0,z.jsx)(`span`,{className:`hint`,children:`GitHub accounts and servers agents may use. Optional — you can change this later.`}),(0,z.jsx)(Ip,{value:_,onChange:v})]})]}),t===2&&(0,z.jsx)(Bp,{allowed:y,coordinator:S,onChange:(e,t)=>{x(e),C(t)}}),t===0&&!l&&!d&&s.trim()===``&&(0,z.jsxs)(`div`,{className:`row subtle small`,children:[(0,z.jsx)(gf,{size:14}),`Browse for a folder, or paste its full path.`]})]})}var om=e=>e>=100?`$${Math.round(e)}`:`$${e.toFixed(2)}`;function sm(e){let[t,n]=(0,b.useState)(null),r=(0,b.useRef)(null);return(0,b.useEffect)(()=>{let t=()=>J.projectUsage(e).then(n).catch(()=>{});t();let i=Pp(n=>{if(n.type===`project.updated`&&n.projectId===e||n.type===`prices.updated`){if(r.current)return;r.current=setTimeout(()=>{r.current=null,t()},4e3)}});return()=>{i(),r.current&&clearTimeout(r.current)}},[e]),t}function cm({project:e,onOpen:t}){let n=sm(e.id);if(!n||n.tokens===0)return null;let r=n.agents.filter(e=>e.tokens>0).map(e=>`${e.name}: ${Dp(e.tokens)}${e.cost>0?` · ≈ ${om(e.cost)}`:``}`).join(`
|
|
18
|
-
`);return(0,z.jsxs)(`button`,{className:`usage-line`,onClick:t,title:`${r}\n\nIncludes cache reads. Click for details.`,children:[(0,z.jsx)($d,{size:13}),(0,z.jsxs)(`span`,{className:`tnum`,children:[Dp(n.tokens),` tokens`]}),n.cost>0&&(0,z.jsxs)(`span`,{className:`subtle tnum`,children:[`· ≈ `,om(n.cost)]})]})}function lm({project:e}){let t=sm(e.id);return(0,z.jsxs)(`section`,{className:`section`,id:`usage`,children:[(0,z.jsxs)(`div`,{className:`section-head`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Usage`}),(0,z.jsx)(`p`,{children:`Tokens used by every agent of this project, including stopped ones and earlier sessions. The cost is an estimate from the prices in Settings → Model prices.`})]}),t&&t.tokens>0&&(0,z.jsxs)(`div`,{className:`usage-total`,children:[(0,z.jsx)(`strong`,{className:`tnum`,children:t.cost>0?`≈ ${om(t.cost)}`:`—`}),(0,z.jsxs)(`span`,{className:`subtle small tnum`,children:[Dp(t.tokens),` tokens`]})]})]}),t?t.tokens===0?(0,z.jsx)(`div`,{className:`section-empty`,children:`No usage yet.`}):(0,z.jsxs)(`div`,{style:{padding:`4px 12px 12px`,overflowX:`auto`},children:[(0,z.jsxs)(`table`,{className:`usage-table`,children:[(0,z.jsx)(`thead`,{children:(0,z.jsxs)(`tr`,{children:[(0,z.jsx)(`th`,{children:`Agent`}),(0,z.jsx)(`th`,{children:`Model`}),(0,z.jsx)(`th`,{className:`num`,children:`Input`}),(0,z.jsx)(`th`,{className:`num`,children:`Output`}),(0,z.jsx)(`th`,{className:`num`,children:`Cache read`}),(0,z.jsx)(`th`,{className:`num`,children:`Cache write`}),(0,z.jsx)(`th`,{className:`num`,children:`≈ Cost`})]})}),(0,z.jsx)(`tbody`,{children:t.agents.flatMap(e=>e.byModel.map((t,n)=>(0,z.jsxs)(`tr`,{className:e.status===`stopped`?`muted`:``,children:[(0,z.jsx)(`td`,{children:n===0?`${e.name}${e.status===`stopped`?` (stopped)`:``}${e.sessions>1?` · ${e.sessions} sessions`:``}`:``}),(0,z.jsx)(`td`,{className:`mono small`,children:t.model}),(0,z.jsx)(`td`,{className:`num tnum`,children:Dp(t.usage.input)}),(0,z.jsx)(`td`,{className:`num tnum`,children:Dp(t.usage.output+t.usage.reasoning)}),(0,z.jsx)(`td`,{className:`num tnum`,children:Dp(t.usage.cacheRead)}),(0,z.jsx)(`td`,{className:`num tnum`,children:Dp(t.usage.cacheWrite)}),(0,z.jsx)(`td`,{className:`num tnum`,children:t.cost===null?`no price`:om(t.cost)})]},`${e.id}-${t.model}`)))}),(0,z.jsx)(`tfoot`,{children:(0,z.jsxs)(`tr`,{children:[(0,z.jsx)(`td`,{colSpan:2,children:`Total`}),(0,z.jsx)(`td`,{className:`num tnum`,children:Dp(t.total.input)}),(0,z.jsx)(`td`,{className:`num tnum`,children:Dp(t.total.output+t.total.reasoning)}),(0,z.jsx)(`td`,{className:`num tnum`,children:Dp(t.total.cacheRead)}),(0,z.jsx)(`td`,{className:`num tnum`,children:Dp(t.total.cacheWrite)}),(0,z.jsx)(`td`,{className:`num tnum`,children:om(t.cost)})]})})]}),t.unpriced.length>0&&(0,z.jsxs)(`div`,{className:`notice`,style:{marginTop:10},children:[`No price for `,t.unpriced.join(`, `),`, so their tokens aren't in the estimate. Add it in Settings → Model prices.`]})]}):(0,z.jsx)(`div`,{className:`section-empty`,children:`Loading…`})]})}var um=[{key:`input`,label:`Input`},{key:`output`,label:`Output`},{key:`cacheRead`,label:`Cache read`},{key:`cacheWrite`,label:`Cache write`}];function dm(){let[e,t]=(0,b.useState)(null),n=()=>J.prices().then(t).catch(()=>{});return(0,b.useEffect)(()=>{n()},[]),(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsx)(`div`,{className:`section-head`,children:(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Model prices`}),(0,z.jsx)(`p`,{children:`USD per million tokens, used to estimate what projects cost. Models whose provider doesn't publish prices (like a company Azure deployment) get a suggestion from the same model in OpenCode's catalog: check it against your contract and save.`})]})}),e?(0,z.jsx)(`div`,{className:`section-body`,children:Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>(0,z.jsx)(fm,{model:e,info:t,onSaved:n},e))}):(0,z.jsx)(`div`,{className:`section-empty`,children:`Loading…`})]})}function fm({model:e,info:t,onSaved:n}){let r=()=>Object.fromEntries(um.map(e=>[e.key,t.price?String(t.price[e.key]):``])),[i,a]=(0,b.useState)(r),[o,s]=(0,b.useState)(!1);(0,b.useEffect)(()=>a(r()),[t]);let c={input:Number(i.input),output:Number(i.output),cacheRead:Number(i.cacheRead),cacheWrite:Number(i.cacheWrite)},l=um.every(e=>i[e.key].trim()!==``&&Number.isFinite(c[e.key])&&c[e.key]>=0),u=um.some(e=>i[e.key]!==(t.price?String(t.price[e.key]):``)),d=l&&(u||t.source===`suggested`);async function f(t){s(!0);try{await J.setPrice(e,t),n()}catch(e){alert(e.message)}finally{s(!1)}}let p=t.source===`yours`?`Your price`:t.source===`opencode`?`From OpenCode`:t.source===`suggested`?`Suggested from ${t.from} — not saved yet`:`No price`;return(0,z.jsxs)(`div`,{className:`list-row price-row`,children:[(0,z.jsxs)(`div`,{className:`grow`,style:{minWidth:0},children:[(0,z.jsx)(`div`,{className:`list-title mono small ellipsis`,children:e}),(0,z.jsx)(`div`,{className:`list-sub ${t.source===`suggested`||t.source===`none`?`warn`:``}`,children:p})]}),um.map(e=>(0,z.jsxs)(`label`,{className:`price-field`,children:[(0,z.jsx)(`span`,{children:e.label}),(0,z.jsx)(`input`,{type:`number`,min:0,step:`any`,value:i[e.key],onChange:t=>a({...i,[e.key]:t.target.value})})]},e.key)),(0,z.jsx)(`button`,{className:`btn sm`,onClick:()=>f(c),disabled:!d||o,children:t.source===`suggested`&&!u?`Accept`:`Save`}),t.source===`yours`&&(0,z.jsx)(`button`,{className:`btn ghost sm`,onClick:()=>f(null),disabled:o,title:`Forget your price`,children:`Reset`})]})}function pm(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var mm=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hm=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gm={};function _m(e,t){return((t||gm).jsx?hm:mm).test(e)}var vm=/[ \t\n\f\r]/g;function ym(e){return typeof e==`object`?e.type===`text`&&bm(e.value):bm(e)}function bm(e){return e.replace(vm,``)===``}var xm=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};xm.prototype.normal={},xm.prototype.property={},xm.prototype.space=void 0;function Sm(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new xm(n,r,t)}function Cm(e){return e.toLowerCase()}var wm=class{constructor(e,t){this.attribute=t,this.property=e}};wm.prototype.attribute=``,wm.prototype.booleanish=!1,wm.prototype.boolean=!1,wm.prototype.commaOrSpaceSeparated=!1,wm.prototype.commaSeparated=!1,wm.prototype.defined=!1,wm.prototype.mustUseProperty=!1,wm.prototype.number=!1,wm.prototype.overloadedBoolean=!1,wm.prototype.property=``,wm.prototype.spaceSeparated=!1,wm.prototype.space=void 0;var Tm=s({boolean:()=>Y,booleanish:()=>Dm,commaOrSpaceSeparated:()=>jm,commaSeparated:()=>Am,number:()=>X,overloadedBoolean:()=>Om,spaceSeparated:()=>km}),Em=0,Y=Mm(),Dm=Mm(),Om=Mm(),X=Mm(),km=Mm(),Am=Mm(),jm=Mm();function Mm(){return 2**++Em}var Nm=Object.keys(Tm),Pm=class extends wm{constructor(e,t,n,r){let i=-1;if(super(e,t),Fm(this,`space`,r),typeof n==`number`)for(;++i<Nm.length;){let e=Nm[i];Fm(this,Nm[i],(n&Tm[e])===Tm[e])}}};Pm.prototype.defined=!0;function Fm(e,t,n){n&&(e[t]=n)}function Im(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Pm(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Cm(r)]=r,n[Cm(a.attribute)]=r}return new xm(t,n,e.space)}var Lm=Im({properties:{ariaActiveDescendant:null,ariaAtomic:Dm,ariaAutoComplete:null,ariaBusy:Dm,ariaChecked:Dm,ariaColCount:X,ariaColIndex:X,ariaColSpan:X,ariaControls:km,ariaCurrent:null,ariaDescribedBy:km,ariaDetails:null,ariaDisabled:Dm,ariaDropEffect:km,ariaErrorMessage:null,ariaExpanded:Dm,ariaFlowTo:km,ariaGrabbed:Dm,ariaHasPopup:null,ariaHidden:Dm,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:km,ariaLevel:X,ariaLive:null,ariaModal:Dm,ariaMultiLine:Dm,ariaMultiSelectable:Dm,ariaOrientation:null,ariaOwns:km,ariaPlaceholder:null,ariaPosInSet:X,ariaPressed:Dm,ariaReadOnly:Dm,ariaRelevant:null,ariaRequired:Dm,ariaRoleDescription:km,ariaRowCount:X,ariaRowIndex:X,ariaRowSpan:X,ariaSelected:Dm,ariaSetSize:X,ariaSort:null,ariaValueMax:X,ariaValueMin:X,ariaValueNow:X,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Rm(e,t){return t in e?e[t]:t}function zm(e,t){return Rm(e,t.toLowerCase())}var Bm=Im({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Am,acceptCharset:km,accessKey:km,action:null,allow:null,allowFullScreen:Y,allowPaymentRequest:Y,allowUserMedia:Y,alpha:Y,alt:null,as:null,async:Y,autoCapitalize:null,autoComplete:km,autoFocus:Y,autoPlay:Y,blocking:km,capture:null,charSet:null,checked:Y,cite:null,className:km,closedBy:null,colorSpace:null,cols:X,colSpan:X,command:null,commandFor:null,content:null,contentEditable:Dm,controls:Y,controlsList:km,coords:X|Am,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Y,defer:Y,dir:null,dirName:null,disabled:Y,download:Om,draggable:Dm,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Y,formTarget:null,headers:km,height:X,hidden:Om,high:X,href:null,hrefLang:null,htmlFor:km,httpEquiv:km,id:null,imageSizes:null,imageSrcSet:null,inert:Y,inputMode:null,integrity:null,is:null,isMap:Y,itemId:null,itemProp:km,itemRef:km,itemScope:Y,itemType:km,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Y,low:X,manifest:null,max:null,maxLength:X,media:null,method:null,min:null,minLength:X,multiple:Y,muted:Y,name:null,nonce:null,noModule:Y,noValidate:Y,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:Y,optimum:X,pattern:null,ping:km,placeholder:null,playsInline:Y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Y,referrerPolicy:null,rel:km,required:Y,reversed:Y,rows:X,rowSpan:X,sandbox:km,scope:null,scoped:Y,seamless:Y,selected:Y,shadowRootClonable:Y,shadowRootCustomElementRegistry:Y,shadowRootDelegatesFocus:Y,shadowRootMode:null,shadowRootSerializable:Y,shape:null,size:X,sizes:null,slot:null,span:X,spellCheck:Dm,src:null,srcDoc:null,srcLang:null,srcSet:null,start:X,step:null,style:null,tabIndex:X,target:null,title:null,translate:null,type:null,typeMustMatch:Y,useMap:null,value:Dm,width:X,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:km,axis:null,background:null,bgColor:null,border:X,borderColor:null,bottomMargin:X,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Y,declare:Y,event:null,face:null,frame:null,frameBorder:null,hSpace:X,leftMargin:X,link:null,longDesc:null,lowSrc:null,marginHeight:X,marginWidth:X,noResize:Y,noHref:Y,noShade:Y,noWrap:Y,object:null,profile:null,prompt:null,rev:null,rightMargin:X,rules:null,scheme:null,scrolling:Dm,standby:null,summary:null,text:null,topMargin:X,valueType:null,version:null,vAlign:null,vLink:null,vSpace:X,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Y,disablePictureInPicture:Y,disableRemotePlayback:Y,exportParts:Am,part:km,prefix:null,property:null,results:X,security:null,unselectable:null},space:`html`,transform:zm}),Vm=Im({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`,maskType:`mask-type`,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:jm,accentHeight:X,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:X,amplitude:X,arabicForm:null,ascent:X,attributeName:null,attributeType:null,azimuth:X,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:X,by:null,calcMode:null,capHeight:X,className:km,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:X,diffuseConstant:X,direction:null,display:null,dur:null,divisor:X,dominantBaseline:null,download:Y,dx:null,dy:null,edgeMode:null,editable:null,elevation:X,enableBackground:null,end:null,event:null,exponent:X,externalResourcesRequired:null,fill:null,fillOpacity:X,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:Am,g2:Am,glyphName:Am,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:X,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:X,horizOriginX:X,horizOriginY:X,id:null,ideographic:X,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:X,k:X,k1:X,k2:X,k3:X,k4:X,kernelMatrix:jm,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:X,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:X,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:X,overlineThickness:X,paintOrder:null,panose1:null,path:null,pathLength:X,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:km,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:X,pointsAtY:X,pointsAtZ:X,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jm,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jm,rev:jm,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jm,requiredFeatures:jm,requiredFonts:jm,requiredFormats:jm,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:X,specularExponent:X,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:X,strikethroughThickness:X,string:null,stroke:null,strokeDashArray:jm,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:X,strokeOpacity:X,strokeWidth:null,style:null,surfaceScale:X,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jm,tabIndex:X,tableValues:null,target:null,targetX:X,targetY:X,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jm,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:X,underlineThickness:X,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:X,values:null,vAlphabetic:X,vMathematical:X,vectorEffect:null,vHanging:X,vIdeographic:X,version:null,vertAdvY:X,vertOriginX:X,vertOriginY:X,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:X,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Rm}),Hm=Im({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Um=Im({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:zm}),Wm=Im({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Gm={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`},Km=/[A-Z]/g,qm=/-[a-z]/g,Jm=/^data[-\w.:]+$/i;function Ym(e,t){let n=Cm(t),r=t,i=wm;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Jm.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(qm,Zm);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!qm.test(e)){let n=e.replace(Km,Xm);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Pm}return new i(r,t)}function Xm(e){return`-`+e.toLowerCase()}function Zm(e){return e.charAt(1).toUpperCase()}var Qm=Sm([Lm,Bm,Hm,Um,Wm],`html`),$m=Sm([Lm,Vm,Hm,Um,Wm],`svg`);function eh(e){return e.join(` `).trim()}var th=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
19
|
-
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),nh=o(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=r(th());function a(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,i.default)(e),a=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:i}=e;a?t(r,i,e):i&&(n||={},n[r]=i)}),n}})),rh=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),ih=o(((e,t,n)=>{var r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(nh()),i=rh();function a(e,t){var n={};return!e||typeof e!=`string`||(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}a.default=a,t.exports=a})),ah=sh(`end`),oh=sh(`start`);function sh(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function ch(e){let t=oh(e),n=ah(e);if(t&&n)return{start:t,end:n}}function lh(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?dh(e.position):`start`in e||`end`in e?dh(e):`line`in e||`column`in e?uh(e):``}function uh(e){return fh(e&&e.line)+`:`+fh(e&&e.column)}function dh(e){return uh(e&&e.start)+`-`+uh(e&&e.end)}function fh(e){return e&&typeof e==`number`?e:1}var ph=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=lh(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};ph.prototype.file=``,ph.prototype.name=``,ph.prototype.reason=``,ph.prototype.message=``,ph.prototype.stack=``,ph.prototype.column=void 0,ph.prototype.line=void 0,ph.prototype.ancestors=void 0,ph.prototype.cause=void 0,ph.prototype.fatal=void 0,ph.prototype.place=void 0,ph.prototype.ruleId=void 0,ph.prototype.source=void 0;var mh=l(ih(),1),hh={}.hasOwnProperty,gh=new Map,_h=/[A-Z]/g,vh=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),yh=new Set([`td`,`th`]),bh=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function xh(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Mh(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=jh(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?$m:Qm,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Sh(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Sh(e,t,n){if(t.type===`element`)return Ch(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return wh(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Eh(e,t,n);if(t.type===`mdxjsEsm`)return Th(e,t);if(t.type===`root`)return Dh(e,t,n);if(t.type===`text`)return Oh(e,t)}function Ch(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=$m,e.schema=i),e.ancestors.push(t);let a=Rh(e,t.tagName,!1),o=Nh(e,t),s=Fh(e,t);return vh.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!ym(e)})),kh(e,o,a,t),Ah(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function wh(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}zh(e,t.position)}function Th(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);zh(e,t.position)}function Eh(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=$m,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Rh(e,t.name,!0),o=Ph(e,t),s=Fh(e,t);return kh(e,o,a,t),Ah(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Dh(e,t,n){let r={};return Ah(r,Fh(e,t)),e.create(t,e.Fragment,r,n)}function Oh(e,t){return t.value}function kh(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ah(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function jh(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Mh(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=oh(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Nh(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&hh.call(t.properties,i)){let a=Ih(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&yh.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Ph(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else zh(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else zh(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function Fh(e,t){let n=[],r=-1,i=e.passKeys?new Map:gh;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Sh(e,a,o);s!==void 0&&n.push(s)}return n}function Ih(e,t,n){let r=Ym(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?pm(n):eh(n)),r.property===`style`){let t=typeof n==`object`?n:Lh(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Bh(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Gm[r.property]||r.property:r.attribute,n]}}function Lh(e,t){try{return(0,mh.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new ph("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=bh+`#cannot-parse-style-attribute`,r}}function Rh(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=_m(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=_m(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return hh.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);zh(e)}function zh(e,t){let n=new ph("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=bh+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Bh(e){let t={},n;for(n in e)hh.call(e,n)&&(t[Vh(n)]=e[n]);return t}function Vh(e){let t=e.replace(_h,Hh);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Hh(e){return`-`+e.toLowerCase()}var Uh={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`]},Wh={};function Gh(e,t){let n=t||Wh;return Kh(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function Kh(e,t,n){if(Jh(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return qh(e.children,t,n)}return Array.isArray(e)?qh(e,t,n):``}function qh(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Kh(e[i],t,n);return r.join(``)}function Jh(e){return!!(e&&typeof e==`object`)}var Yh=document.createElement(`i`);function Xh(e){let t=`&`+e+`;`;Yh.innerHTML=t;let n=Yh.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function Zh(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Qh(e,t){return e.length>0?(Zh(e,e.length,0,t),e):t}var $h={}.hasOwnProperty;function eg(e){let t={},n=-1;for(;++n<e.length;)tg(t,e[n]);return t}function tg(e,t){let n;for(n in t){let r=($h.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){$h.call(r,a)||(r[a]=[]);let e=i[a];ng(r[a],Array.isArray(e)?e:e?[e]:[])}}}function ng(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Zh(e,0,0,r)}function rg(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function ig(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var ag=hg(/[A-Za-z]/),og=hg(/[\dA-Za-z]/),sg=hg(/[#-'*+\--9=?A-Z^-~]/);function cg(e){return e!==null&&(e<32||e===127)}var lg=hg(/\d/),ug=hg(/[\dA-Fa-f]/),dg=hg(/[!-/:-@[-`{-~]/);function Z(e){return e!==null&&e<-2}function fg(e){return e!==null&&(e<0||e===32)}function Q(e){return e===-2||e===-1||e===32}var pg=hg(/\p{P}|\p{S}/u),mg=hg(/\s/);function hg(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function gg(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&og(e.charCodeAt(n+1))&&og(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function $(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Q(r)?(e.enter(n),s(r)):t(r)}function s(r){return Q(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function _g(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&Q(t)?(e.enter(r),c(t)):l(t)}function c(t){return Q(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var vg={tokenize:yg};function yg(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),$(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return Z(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var bg=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){xg(this,e,t,n,!1)}addBefore(e,t,n){xg(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function xg(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var Sg={tokenize:wg},Cg={tokenize:Tg};function wg(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new bg;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Cg,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Cg,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return Z(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new bg;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Tg(e,t,n){return $(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Eg(e){if(e===null||fg(e)||mg(e))return 1;if(pg(e))return 2}function Dg(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Og={name:`attention`,resolveAll:kg,tokenize:Ag};function kg(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};jg(o,-a),jg(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=Qh(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=Qh(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=Qh(r,Dg(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=Qh(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=Qh(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),Zh(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function Ag(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Eg(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Eg(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function jg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Mg={name:`autolink`,tokenize:Ng};function Ng(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return ag(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||og(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||og(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||cg(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):sg(t)?(e.consume(t),l):n(t)}function u(e){return og(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||og(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Pg={partial:!0,tokenize:Fg};function Fg(e,t,n){return r;function r(t){return Q(t)?$(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Z(e)?t(e):n(e)}}var Ig={continuation:{tokenize:Rg},exit:zg,name:`blockQuote`,tokenize:Lg};function Lg(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Q(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Rg(e,t,n){let r=this;return i;function i(t){return Q(t)?$(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Ig,t,n)(r)}}function zg(e){e.exit(`blockQuote`)}var Bg={name:`characterEscape`,tokenize:Vg};function Vg(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return dg(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Hg={name:`characterReference`,tokenize:Ug};function Ug(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=og,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=ug,u):(e.enter(`characterReferenceValue`),a=7,o=lg,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===og&&!Xh(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var Wg={partial:!0,tokenize:Gg};function Gg(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Kg={concrete:!0,name:`codeFenced`,tokenize:qg};function qg(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Q(t)?$(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Z(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Wg,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),$(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Z(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Q(t)?$(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Z(t)?e.check(Wg,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Z(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Q(t)?$(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Q(t)?$(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Z(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var Jg={name:`codeIndented`,tokenize:Xg},Yg={partial:!0,tokenize:Zg};function Xg(e,t,n){return r;function r(t){return e.enter(`codeIndented`),_g(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Z(t)?e.attempt(Yg,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Z(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function Zg(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Z(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):_g(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Z(e)?i(e):n(e)}}var Qg={name:`codeText`,previous:e_,resolve:$g,tokenize:t_};function $g(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function e_(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function t_(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Z(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Z(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var n_=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&r_(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),r_(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),r_(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);r_(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);r_(this.left,t.reverse())}}}};function r_(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function i_(e){let t={},n=-1,r,i,a,o,s,c,l,u=new n_(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,a_(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Zh(e,0,1/0,u.slice(0)),!l}function a_(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var o_={resolve:c_,tokenize:l_},s_={partial:!0,tokenize:u_};function c_(e){return i_(e),e}function l_(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Z(t)?e.check(s_,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function u_(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),$(e,a,`linePrefix`)}function a(i){if(i===null||Z(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function d_(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||cg(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Z(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||fg(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||cg(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function f_(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Z(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Z(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Q(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function p_(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Z(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),$(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Z(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function m_(e,t){let n;return r;function r(i){return Z(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Q(i)?$(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var h_={name:`definition`,tokenize:__},g_={partial:!0,tokenize:v_};function __(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return f_.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=ig(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return fg(t)?m_(e,l)(t):l(t)}function l(t){return d_(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(g_,d,d)(t)}function d(t){return Q(t)?$(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Z(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function v_(e,t,n){return r;function r(t){return fg(t)?m_(e,i)(t):n(t)}function i(t){return p_(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Q(t)?$(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Z(e)?t(e):n(e)}}var y_={name:`hardBreakEscape`,tokenize:b_};function b_(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Z(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var x_={name:`headingAtx`,resolve:S_,tokenize:C_};function S_(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};Zh(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function C_(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||fg(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Z(n)?(e.exit(`atxHeading`),t(n)):Q(n)?$(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||fg(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var w_=`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`.split(`.`),T_=[`pre`,`script`,`style`,`textarea`],E_={concrete:!0,name:`htmlFlow`,resolveTo:O_,tokenize:k_},D_={partial:!0,tokenize:A_};function O_(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function k_(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:oe):ag(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):ag(a)?(e.consume(a),i=4,r.interrupt?t:oe):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:oe):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return ag(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||fg(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&T_.includes(l)?(i=1,r.interrupt?t(s):O(s)):w_.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||og(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Q(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||ag(t)?(e.consume(t),b):Q(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||og(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Q(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Q(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Z(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||fg(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Q(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Z(t)?O(t):Q(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),re):t===60&&i===1?(e.consume(t),k):t===62&&i===4?(e.consume(t),se):t===63&&i===3?(e.consume(t),oe):t===93&&i===5?(e.consume(t),ae):Z(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(D_,ce,ee)(t)):t===null||Z(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(Wg,te,ce)(t)}function te(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ne}function ne(t){return t===null||Z(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function re(t){return t===45?(e.consume(t),oe):O(t)}function k(t){return t===47?(e.consume(t),o=``,ie):O(t)}function ie(t){if(t===62){let n=o.toLowerCase();return T_.includes(n)?(e.consume(t),se):O(t)}return ag(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ie):O(t)}function ae(t){return t===93?(e.consume(t),oe):O(t)}function oe(t){return t===62?(e.consume(t),se):t===45&&i===2?(e.consume(t),oe):O(t)}function se(t){return t===null||Z(t)?(e.exit(`htmlFlowData`),ce(t)):(e.consume(t),se)}function ce(n){return e.exit(`htmlFlow`),t(n)}}function A_(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Pg,t,n)}}var j_={name:`htmlText`,tokenize:M_};function M_(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):ag(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):ag(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Z(t)?(o=d,k(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?re(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Z(t)?(o=h,k(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?re(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?re(t):Z(t)?(o=v,k(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Z(t)?(o=y,k(t)):(e.consume(t),y)}function b(e){return e===62?re(e):y(e)}function x(t){return ag(t)?(e.consume(t),S):n(t)}function S(t){return t===45||og(t)?(e.consume(t),S):C(t)}function C(t){return Z(t)?(o=C,k(t)):Q(t)?(e.consume(t),C):re(t)}function w(t){return t===45||og(t)?(e.consume(t),w):t===47||t===62||fg(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),re):t===58||t===95||ag(t)?(e.consume(t),E):Z(t)?(o=T,k(t)):Q(t)?(e.consume(t),T):re(t)}function E(t){return t===45||t===46||t===58||t===95||og(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Z(t)?(o=D,k(t)):Q(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ee):Z(t)?(o=O,k(t)):Q(t)?(e.consume(t),O):(e.consume(t),te)}function ee(t){return t===i?(e.consume(t),i=void 0,ne):t===null?n(t):Z(t)?(o=ee,k(t)):(e.consume(t),ee)}function te(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||fg(t)?T(t):(e.consume(t),te)}function ne(e){return e===47||e===62||fg(e)?T(e):n(e)}function re(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function k(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ie}function ie(t){return Q(t)?$(e,ae,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ae(t)}function ae(t){return e.enter(`htmlTextData`),o(t)}}var N_={name:`labelEnd`,resolveAll:L_,resolveTo:R_,tokenize:z_},P_={tokenize:B_},F_={tokenize:V_},I_={tokenize:H_};function L_(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&Zh(e,0,e.length,n),e}function R_(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=Qh(o,e.slice(i+1,i+r+3)),o=Qh(o,[[`enter`,l,t]]),o=Qh(o,Dg(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=Qh(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=Qh(o,e.slice(a+1)),o=Qh(o,[[`exit`,s,t]]),Zh(e,i,e.length,o),e}function z_(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(ig(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(P_,u,o?u:d)(t):t===91?e.attempt(F_,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(I_,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function B_(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return fg(t)?m_(e,a)(t):a(t)}function a(t){return t===41?u(t):d_(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return fg(t)?m_(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?p_(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return fg(t)?m_(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function V_(e,t,n){let r=this;return i;function i(t){return f_.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(ig(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function H_(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var U_={name:`labelStartImage`,resolveAll:N_.resolveAll,tokenize:W_};function W_(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var G_={name:`labelStartLink`,resolveAll:N_.resolveAll,tokenize:K_};function K_(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var q_={name:`lineEnding`,tokenize:J_};function J_(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),$(e,t,`linePrefix`)}}var Y_={name:`thematicBreak`,tokenize:X_};function X_(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Z(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Q(t)?$(e,s,`whitespace`)(t):s(t))}}var Z_={continuation:{tokenize:tv},exit:rv,name:`list`,tokenize:ev},Q_={partial:!0,tokenize:iv},$_={partial:!0,tokenize:nv};function ev(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:lg(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Y_,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return lg(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Pg,r.interrupt?n:u,e.attempt(Q_,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Q(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function tv(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Pg,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Q(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($_,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,$(e,e.attempt(Z_,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function nv(e,t,n){let r=this;return $(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function rv(e){e.exit(this.containerState.type)}function iv(e,t,n){let r=this;return $(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Q(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var av={name:`setextUnderline`,resolveTo:ov,tokenize:sv};function ov(e,t){let n=new bg,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function sv(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Q(t)?$(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Z(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var cv={tokenize:lv};function lv(e){let t=this,n=e.attempt(Pg,r,e.attempt(this.parser.constructs.flowInitial,i,$(e,e.attempt(this.parser.constructs.flow,i,e.attempt(o_,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var uv={resolveAll:mv()},dv=pv(`string`),fv=pv(`text`);function pv(e){return{resolveAll:mv(e===`text`?hv:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function mv(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):t[r]&&t[r][1].type===`data`||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function hv(e,t){let n=new bg,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var gv=s({attentionMarkers:()=>wv,contentInitial:()=>vv,disable:()=>Tv,document:()=>_v,flow:()=>bv,flowInitial:()=>yv,insideSpan:()=>Cv,string:()=>xv,text:()=>Sv}),_v={42:Z_,43:Z_,45:Z_,48:Z_,49:Z_,50:Z_,51:Z_,52:Z_,53:Z_,54:Z_,55:Z_,56:Z_,57:Z_,62:Ig},vv={91:h_},yv={[-2]:Jg,[-1]:Jg,32:Jg},bv={35:x_,42:Y_,45:[av,Y_],60:E_,61:av,95:Y_,96:Kg,126:Kg},xv={38:Hg,92:Bg},Sv={[-5]:q_,[-4]:q_,[-3]:q_,33:U_,38:Hg,42:Og,60:[Mg,j_],91:G_,92:[y_,Bg],93:N_,95:Og,96:Qg},Cv={null:[Og,uv]},wv={null:[42,95]},Tv={null:[]};function Ev(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Qh(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Dg(a,l.events,l),l.events):[]}function f(e,t){return Ov(p(e),t)}function p(e){return Dv(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){Z(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Zh(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Dv(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Ov(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
20
|
-
`;break;case-3:o=`\r
|
|
21
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function kv(e){let t={constructs:eg([gv,...(e||{}).extensions||[]]),content:n(vg),defined:[],document:n(Sg),flow:n(cv),lazy:{},string:n(dv),text:n(fv)};return t;function n(e){return n;function n(n){return Ev(t,e,n)}}}function Av(e){for(;!i_(e););return e}var jv=/[\0\t\n\r]/g;function Mv(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){jv.lastIndex=c;let n=jv.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Nv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pv(e){return e.replace(Nv,Fv)}function Fv(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return rg(n.slice(t?2:1),t?16:10)}return Xh(n)||e}var Iv={}.hasOwnProperty;function Lv(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Rv(n)(Av(kv(n).document().write(Mv()(e,t,!0))))}function Rv(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(we),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(j),blockQuote:o(_e),characterEscape:E,characterReference:E,codeFenced:o(ve),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(ve,s),codeText:o(ye,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(be),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(A),hardBreakEscape:o(xe),hardBreakTrailing:o(xe),htmlFlow:o(Se,s),htmlFlowData:E,htmlText:o(Se,s),htmlTextData:E,image:o(Ce),label:s,link:o(we),listItem:o(Ee),listItemValue:p,listOrdered:o(Te,f),listUnordered:o(Te),paragraph:o(De),reference:ue,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(j),strong:o(Oe),thematicBreak:o(Ae)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:ge,autolinkProtocol:he,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:pe,characterReference:me,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(re),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(ee),hardBreakTrailing:l(ee),htmlFlow:l(te),htmlFlowData:D,htmlText:l(ne),htmlTextData:D,image:l(ie),label:oe,labelText:ae,lineEnding:O,link:l(k),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:de,resourceDestinationString:se,resourceTitleString:ce,resource:le,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};Bv(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),Iv.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||Hv).call(o,void 0,e[0])}for(r.position={start:zv(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:zv(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:zv(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+lh({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Hv).call(this,e,r[0])),n.position.end=zv(e.end)}function d(){return Gh(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ig(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&n.type===`text`||(n=ke(),n.position={start:zv(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=zv(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=zv(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function ee(){this.data.atHardBreak=!0}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ie(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ae(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Pv(t),n.identifier=ig(t).toLowerCase()}function oe(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function se(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ce(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function le(){this.data.inReference=void 0}function ue(){this.data.referenceType=`collapsed`}function de(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ig(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function fe(e){this.data.characterReferenceType=e.type}function pe(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=rg(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Xh(t);let i=this.stack[this.stack.length-1];i.value+=r}function me(e){let t=this.stack.pop();t.position.end=zv(e.end)}function he(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ge(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function _e(){return{type:`blockquote`,children:[],position:void 0}}function ve(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function ye(){return{type:`inlineCode`,value:``,position:void 0}}function be(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function A(){return{type:`emphasis`,children:[],position:void 0}}function j(){return{type:`heading`,depth:0,children:[],position:void 0}}function xe(){return{type:`break`,position:void 0}}function Se(){return{type:`html`,value:``,position:void 0}}function Ce(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function we(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function Te(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function Ee(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function De(){return{type:`paragraph`,children:[],position:void 0}}function Oe(){return{type:`strong`,children:[],position:void 0}}function ke(){return{type:`text`,value:``,position:void 0}}function Ae(){return{type:`thematicBreak`,position:void 0}}}function zv(e){return{line:e.line,column:e.column,offset:e.offset}}function Bv(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Bv(e,r):Vv(e,r)}}function Vv(e,t){let n;for(n in t)if(Iv.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Hv(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+lh({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+lh({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+lh({start:t.start,end:t.end})+`) is still open`)}function Uv(e){let t=this;t.parser=n;function n(n){return Lv(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Wv(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Gv(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
22
|
-
`}]}function Kv(e,t){let n=t.value?t.value+`
|
|
23
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function qv(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jv(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yv(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=gg(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Xv(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zv(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Qv(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function $v(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Qv(e,t);let i={src:gg(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function ey(e,t){let n={src:gg(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ty(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ny(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Qv(e,t);let i={href:gg(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function ry(e,t){let n={href:gg(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function iy(e,t,n){let r=e.all(t),i=n?ay(n):oy(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
24
|
-
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
25
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function ay(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=oy(n[r])}return t}function oy(e){return e.spread??e.children.length>1}function sy(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function cy(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ly(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function uy(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dy(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=oh(t.children[1]),o=ah(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function fy(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function py(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var my=9,hy=32;function gy(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(_y(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(_y(t.slice(i),i>0,!1)),a.join(``)}function _y(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===my||t===hy;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===my||t===hy;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function vy(e,t){let n={type:`text`,value:gy(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function yy(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var by={blockquote:Wv,break:Gv,code:Kv,delete:qv,emphasis:Jv,footnoteReference:Yv,heading:Xv,html:Zv,imageReference:$v,image:ey,inlineCode:ty,linkReference:ny,link:ry,listItem:iy,list:sy,paragraph:cy,root:ly,strong:uy,table:dy,tableCell:py,tableRow:fy,text:vy,thematicBreak:yy,toml:xy,yaml:xy,definition:xy,footnoteDefinition:xy};function xy(){}var{defineProperty:Sy}=Object,Cy=typeof self==`object`?self:globalThis,wy=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Cy[e](t)},Ty=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Sy(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Cy[e]==`function`?wy(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(wy(a,o),i)};return r},Ey=e=>Ty(new Map,e)(0),Dy=``,{toString:Oy}={},{keys:ky,is:Ay}=Object,jy=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Oy.call(e).slice(8,-1);switch(n){case`Array`:return[1,Dy];case`Object`:return[2,Dy];case`Date`:return[3,Dy];case`RegExp`:return[4,Dy];case`Map`:return[5,Dy];case`Set`:return[6,Dy];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},My=([e,t])=>e===0&&(t===`function`||t===`symbol`),Ny=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=jy(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&Ay(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of ky(o))(e||!My(jy(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?Dy:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(My(jy(n))||My(jy(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!My(jy(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},Py=(e,{json:t,lossy:n}={})=>{let r=[];return Ny(!(t||n),!!t,new Map,r)(e),r},Fy=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Ey(Py(e,t)):structuredClone(e):(e,t)=>Ey(Py(e,t));function Iy(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function Ly(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function Ry(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||Iy,r=e.options.footnoteBackLabel||Ly,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=gg(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...Fy(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
26
|
-
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
27
|
-
`}]}}var zy=(function(e){if(e==null)return Wy;if(typeof e==`function`)return Uy(e);if(typeof e==`object`)return Array.isArray(e)?By(e):Vy(e);if(typeof e==`string`)return Hy(e);throw Error(`Expected function, string, or object as test`)});function By(e){let t=[],n=-1;for(;++n<e.length;)t[n]=zy(e[n]);return Uy(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Vy(e){let t=e;return Uy(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function Hy(e){return Uy(t);function t(t){return t&&t.type===e}}function Uy(e){return t;function t(t,n,r){return!!(Gy(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Wy(){return!0}function Gy(e){return typeof e==`object`&&!!e&&`type`in e}function Ky(e){return e}var qy=[];function Jy(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=zy(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+Ky(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=qy,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Yy(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Yy(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?qy:[e]}function Xy(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Jy(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var Zy={}.hasOwnProperty,Qy={};function $y(e,t){let n=t||Qy,r=new Map,i=new Map,a={all:s,applyData:tb,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...by,...n.handlers},one:o,options:n,patch:eb,wrap:rb};return Xy(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(Zy.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=Fy(n);return r.children=a.all(e),r}return Fy(e)}return(a.options.unknownHandler||nb)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=ib(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=ib(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function eb(e,t){e.position&&(t.position=ch(e))}function tb(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,Fy(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function nb(e,t){let n=t.data||{},r=`value`in t&&!(Zy.call(n,`hProperties`)||Zy.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function rb(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
28
|
-
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
29
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
30
|
-
`}),n}function ib(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function ab(e,t){let n=$y(e,t),r=n.one(e,void 0),i=Ry(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
31
|
-
`},i)),a}function ob(e,t){return e&&`run`in e?async function(n,r){let i=ab(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ab(n,{file:r,...e||t})}}function sb(e){if(e)throw e}var cb=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function lb(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ub(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?db(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function db(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var fb={basename:pb,dirname:mb,extname:hb,join:gb,sep:`/`};function pb(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);yb(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function mb(e){if(yb(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function hb(e){yb(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function gb(...e){let t=-1,n;for(;++t<e.length;)yb(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:_b(n)}function _b(e){yb(e);let t=e.codePointAt(0)===47,n=vb(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function vb(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function yb(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var bb={cwd:xb};function xb(){return`/`}function Sb(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Cb(e){if(typeof e==`string`)e=new URL(e);else if(!Sb(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return wb(e)}function wb(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Tb=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Eb=class{constructor(e){let t;t=e?Sb(e)?{path:e}:typeof e==`string`||Ab(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:bb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Tb.length;){let e=Tb[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Tb.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?fb.basename(this.path):void 0}set basename(e){Ob(e,`basename`),Db(e,`basename`),this.path=fb.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?fb.dirname(this.path):void 0}set dirname(e){kb(this.basename,`dirname`),this.path=fb.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?fb.extname(this.path):void 0}set extname(e){if(Db(e,`extname`),kb(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=fb.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Sb(e)&&(e=Cb(e)),Ob(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?fb.basename(this.path,this.extname):void 0}set stem(e){Ob(e,`stem`),Db(e,`stem`),this.path=fb.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new ph(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Db(e,t){if(e&&e.includes(fb.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+fb.sep+"`")}function Ob(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function kb(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Ab(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var jb=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Mb=l(cb(),1),Nb={}.hasOwnProperty,Pb=new class e extends jb{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=ub()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Mb.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(Lb(`data`,this.frozen),this.namespace[e]=t,this):Nb.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Lb(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=Bb(e),n=this.parser||this.Parser;return Fb(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),Fb(`process`,this.parser||this.Parser),Ib(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Bb(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);Hb(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),Fb(`processSync`,this.parser||this.Parser),Ib(`processSync`,this.compiler||this.Compiler),this.process(e,r),zb(`processSync`,`process`,t),n;function r(e,r){t=!0,sb(e),n=r}}run(e,t,n){Rb(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=Bb(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),zb(`runSync`,`run`,n),r;function i(e,t){sb(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Bb(t),r=this.compiler||this.Compiler;return Ib(`stringify`,r),Rb(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(Lb(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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");o(e.plugins),e.settings&&(r.settings=(0,Mb.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];lb(o)&&lb(r)&&(r=(0,Mb.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function Fb(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Ib(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Lb(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rb(e){if(!lb(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function zb(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Bb(e){return Vb(e)?e:new Eb(e)}function Vb(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function Hb(e){return typeof e==`string`||Ub(e)}function Ub(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Wb=[],Gb={allowDangerousHtml:!0},Kb=/^(https?|ircs?|mailto|xmpp)$/i,qb=[{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 Jb(e){let t=Yb(e),n=Xb(e);return Zb(t.runSync(t.parse(n),n),e)}function Yb(e){let t=e.rehypePlugins||Wb,n=e.remarkPlugins||Wb,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Gb}:Gb;return Pb().use(Uv).use(n).use(ob,r).use(t)}function Xb(e){let t=e.children||``,n=new Eb;return typeof t==`string`?n.value=t:``+t,n}function Zb(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Qb;for(let e of qb)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return Xy(e,l),xh(e,{Fragment:z.Fragment,components:i,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in Uh)if(Object.hasOwn(Uh,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=Uh[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function Qb(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Kb.test(e.slice(0,t))?e:``}function $b(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ex(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function tx(e,t,n){let r=zy((n||{}).ignore||[]),i=nx(t),a=-1;for(;++a<i.length;)Jy(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1)r.lastIndex=n+1;else{if(s!==n&&f({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a))for(let e of a)f(e);else a&&f(a);s=n+d[0].length,l=!0}if(!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&f({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function nx(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([rx(e[0]),ix(e[1])])}return t}function rx(e){return typeof e==`string`?new RegExp(ex(e),`g`):e}function ix(e){return typeof e==`function`?e:function(){return e}}var ax=`phrasing`,ox=[`autolink`,`link`,`image`,`label`];function sx(){return{transforms:[hx],enter:{literalAutolink:lx,literalAutolinkEmail:ux,literalAutolinkHttp:ux,literalAutolinkWww:ux},exit:{literalAutolink:mx,literalAutolinkEmail:px,literalAutolinkHttp:dx,literalAutolinkWww:fx}}}function cx(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:ax,notInConstruct:ox},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:ax,notInConstruct:ox},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:ax,notInConstruct:ox}]}}function lx(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function ux(e){this.config.enter.autolinkProtocol.call(this,e)}function dx(e){this.config.exit.autolinkProtocol.call(this,e)}function fx(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function px(e){this.config.exit.autolinkEmail.call(this,e)}function mx(e){this.exit(e)}function hx(e){tx(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,gx],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,_x]],{ignore:[`link`,`linkReference`]})}function gx(e,t,n,r,i){let a=``;if(!bx(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!vx(n)))return!1;let o=yx(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function _x(e,t,n,r){return!bx(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function vx(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function yx(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=$b(e,`(`),a=$b(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function bx(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||mg(n)||pg(n))&&(!t||n!==47)}Ax.peek=kx;function xx(){this.buffer()}function Sx(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Cx(){this.buffer()}function wx(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function Tx(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ig(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ex(e){this.exit(e)}function Dx(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ig(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ox(e){this.exit(e)}function kx(){return`[`}function Ax(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function jx(){return{enter:{gfmFootnoteCallString:xx,gfmFootnoteCall:Sx,gfmFootnoteDefinitionLabelString:Cx,gfmFootnoteDefinition:wx},exit:{gfmFootnoteCallString:Tx,gfmFootnoteCall:Ex,gfmFootnoteDefinitionLabelString:Dx,gfmFootnoteDefinition:Ox}}}function Mx(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ax},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
32
|
-
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Px:Nx))),s(),o}}function Nx(e,t,n){return t===0?e:Px(e,t,n)}function Px(e,t,n){return(n?``:` `)+e}var Fx=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Bx.attention=Vx,Bx.peek=Hx;function Ix(){return{canContainEols:[`delete`],enter:{strikethrough:Rx},exit:{strikethrough:zx}}}function Lx(){return{handlers:{delete:Bx},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Fx}]}}function Rx(e){this.enter({type:`delete`,children:[],position:void 0},e)}function zx(e){this.exit(e)}function Bx(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function Vx(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function Hx(){return`~`}function Ux(e){return e.length}function Wx(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ux,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Gx(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=Kx(r[d]);else{let e=Kx(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding===!1||n.alignDelimiters===!1&&i===``||n.delimiterStart===!1&&!d||r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
33
|
-
`)}function Gx(e){return e==null?``:String(e)}function Kx(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var qx=zy([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Jx(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Yx);return i(),o}function Yx(e,t,n){return`>`+(n?``:` `)+e}function Xx(e,t){return Zx(e,t.inConstruct,!0)&&!Zx(e,t.notInConstruct,!1)}function Zx(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Qx(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
|
|
34
|
-
`&&!e.before&&!e.after&&Xx(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
|
|
35
|
-
`}function $x(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function eS(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function tS(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function nS(e,t,n,r){let i=tS(n),a=e.value||``;if(eS(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,rS);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max($x(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
|
|
36
|
-
`,encode:["`"],...o.current()})),t()}return u+=o.move(`
|
|
37
|
-
`),a&&(u+=o.move(a+`
|
|
38
|
-
`)),u+=o.move(s),c(),u}function rS(e,t,n){return(n?``:` `)+e}function iS(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function aS(e,t,n,r){let i=iS(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
39
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function oS(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}sS.attention=cS,sS.peek=lS;function sS(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function cS(e,t){return{construct:`emphasis`,markers:oS(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function lS(e,t,n){return n.options.emphasis||`*`}function uS(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function dS(e,t){let n=!1;return Xy(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&Gh(e)&&(t.options.setext||n))}function fS(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(dS(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
40
|
-
`,after:`
|
|
41
|
-
`});return r(),t(),o+`
|
|
42
|
-
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
43
|
-
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
44
|
-
`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=uS(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}pS.peek=mS;function pS(e){return e.value||``}function mS(){return`<`}hS.peek=gS;function hS(e,t,n,r){let i=iS(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function gS(){return`!`}_S.peek=vS;function _S(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function vS(){return`!`}yS.peek=bS;function yS(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function bS(){return"`"}function xS(e,t){let n=Gh(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}SS.peek=CS;function SS(e,t,n,r){let i=iS(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(xS(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function CS(e,t,n){return xS(e,n)?`<`:`[`}wS.peek=TS;function wS(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function TS(){return`[`}function ES(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function DS(e){let t=ES(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function OS(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function kS(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function AS(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?OS(n):ES(n),s=e.ordered?o===`.`?`)`:`.`:DS(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if(o!==`*`&&o!==`-`||!t||t.children&&t.children[0]||n.stack[n.stack.length-1]!==`list`||n.stack[n.stack.length-2]!==`listItem`||n.stack[n.stack.length-3]!==`list`||n.stack[n.stack.length-4]!==`listItem`||n.indexStack[n.indexStack.length-1]!==0||n.indexStack[n.indexStack.length-2]!==0||n.indexStack[n.indexStack.length-3]!==0||(c=!0),kS(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function jS(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function MS(e,t,n,r){let i=jS(n),a=n.bulletCurrent||ES(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function NS(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function PS(e,t,n,r){if(!e.children.some(function(e){return qx(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function FS(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}IS.attention=LS,IS.peek=RS;function IS(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function LS(e,t){return{construct:`strong`,markers:FS(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function RS(e,t,n){return n.options.strong||`*`}function zS(e,t,n,r){let i=t?t.children:[],a=i.indexOf(e);return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function BS(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function VS(e,t,n){let r=(kS(n)+(n.options.ruleSpaces?` `:``)).repeat(BS(n));return n.options.ruleSpaces?r.slice(0,-1):r}var HS={blockquote:Jx,break:Qx,code:nS,definition:aS,emphasis:sS,hardBreak:Qx,heading:fS,html:pS,image:hS,imageReference:_S,inlineCode:yS,link:SS,linkReference:wS,list:AS,listItem:MS,paragraph:NS,root:PS,strong:IS,text:zS,thematicBreak:VS};function US(){return{enter:{table:WS,tableData:JS,tableHeader:JS,tableRow:KS},exit:{codeText:YS,table:GS,tableData:qS,tableHeader:qS,tableRow:qS}}}function WS(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function GS(e){this.exit(e),this.data.inTable=void 0}function KS(e){this.enter({type:`tableRow`,children:[]},e)}function qS(e){this.exit(e)}function JS(e){this.enter({type:`tableCell`,children:[]},e)}function YS(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,XS));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function XS(e,t){return t===`|`?t:e}function ZS(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
45
|
-
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
46
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Wx(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=HS.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function QS(){return{exit:{taskListCheckValueChecked:eC,taskListCheckValueUnchecked:eC,paragraph:tC}}}function $S(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:nC}}}function eC(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function tC(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function nC(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=HS.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function rC(){return[sx(),jx(),Ix(),US(),QS()]}function iC(e){return{extensions:[cx(),Mx(e),Lx(),ZS(e),$S()]}}var aC={tokenize:yC,partial:!0},oC={tokenize:bC,partial:!0},sC={tokenize:xC,partial:!0},cC={tokenize:SC,partial:!0},lC={tokenize:CC,partial:!0},uC={name:`wwwAutolink`,tokenize:_C,previous:wC},dC={name:`protocolAutolink`,tokenize:vC,previous:TC},fC={name:`emailAutolink`,tokenize:gC,previous:EC},pC={};function mC(){return{text:pC}}for(var hC=48;hC<123;)pC[hC]=fC,hC++,hC===58?hC=65:hC===91&&(hC=97);pC[43]=fC,pC[45]=fC,pC[46]=fC,pC[95]=fC,pC[72]=[fC,dC],pC[104]=[fC,dC],pC[87]=[fC,uC],pC[119]=[fC,uC];function gC(e,t,n){let r=this,i,a;return o;function o(t){return!DC(t)||!EC.call(r,r.previous)||OC(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return DC(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(lC,u,l)(t):t===45||t===95||og(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&ag(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function _C(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!wC.call(r,r.previous)||OC(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(aC,e.attempt(oC,e.attempt(sC,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function vC(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&TC.call(r,r.previous)&&!OC(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(ag(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||cg(t)||fg(t)||mg(t)||pg(t)?n(t):e.attempt(oC,e.attempt(sC,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function yC(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function bC(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(cC,c,s)(t):t===null||fg(t)||mg(t)||t!==45&&pg(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function xC(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(cC,t,a)(o):o===null||fg(o)||mg(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function SC(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||fg(o)||mg(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||fg(e)||mg(e)?t(e):r(e)}function a(e){return ag(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):ag(t)?(e.consume(t),o):n(t)}}function CC(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return og(e)?n(e):t(e)}}function wC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||fg(e)}function TC(e){return!ag(e)}function EC(e){return!(e===47||DC(e))}function DC(e){return e===43||e===45||e===46||e===95||og(e)}function OC(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var kC={tokenize:LC,partial:!0};function AC(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:PC,continuation:{tokenize:FC},exit:IC}},text:{91:{name:`gfmFootnoteCall`,tokenize:NC},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:jC,resolveTo:MC}}}}function jC(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=ig(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function MC(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function NC(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||fg(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(ig(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return fg(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function PC(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||fg(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=ig(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return fg(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),$(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function FC(e,t,n){return e.check(Pg,t,e.attempt(kC,t,n))}function IC(e){e.exit(`gfmFootnoteDefinition`)}function LC(e,t,n){let r=this;return $(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function RC(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&Zh(o,o.length,0,Dg(s,e.slice(r+1,n),t)),Zh(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),Zh(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Eg(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Eg(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var zC=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){BC(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function BC(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function VC(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function HC(){return{flow:{null:{name:`table`,tokenize:UC,resolveAll:WC}}}}function UC(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):Z(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Q(t)?$(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||fg(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Q(t)?$(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Q(t)?$(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Z(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Q(t)?$(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Z(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Z(n)?(e.exit(`tableRow`),t(n)):Q(n)?$(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||fg(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function WC(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new zC;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(KC(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=GC(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=GC(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=GC(f,t,o,i,n,d)):(o[0]=o[1],d=GC(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&KC(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=VC(t.events,n))}return e}function GC(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},qC(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=qC(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=qC(t.events,n[2]),a=qC(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},qC(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function KC(e,t,n,r,i){let a=[],o=qC(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function qC(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var JC={name:`tasklistCheck`,tokenize:XC};function YC(){return{text:{91:JC}}}function XC(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return fg(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Z(r)?t(r):Q(r)?e.check({tokenize:ZC},t,n)(r):n(r)}}function ZC(e,t,n){return $(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function QC(e){return eg([mC(),AC(),RC(e),HC(),YC()])}var $C={};function ew(e){let t=this,n=e||$C,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(QC(n)),a.push(rC()),o.push(iC(n))}var tw=e=>e.type===`multiselect`||e.type===`array`,nw=e=>e.type===`number`||e.type===`integer`,rw=(e,t)=>(e.when??[]).every(e=>e.op===`eq`?t[e.key]===e.value:e.op!==`neq`||t[e.key]!==e.value);function iw({project:e,agent:t}){let[n,r]=(0,b.useState)([]);return(0,b.useEffect)(()=>{if(t.status!==`waiting`){r([]);return}let n=!0,i=()=>J.forms(e.id,t.id).then(e=>n&&r(e)).catch(()=>{});i();let a=setInterval(i,3e3);return()=>{n=!1,clearInterval(a)}},[e.id,t.id,t.status]),(0,z.jsx)(z.Fragment,{children:n.map(n=>(0,z.jsx)(aw,{form:n,project:e,agent:t,onDone:()=>r(e=>e.filter(e=>e.id!==n.id))},n.id))})}function aw({form:e,project:t,agent:n,onDone:r}){let[i,a]=(0,b.useState)(()=>Object.fromEntries(e.fields.map(e=>[e.key,e.default??(tw(e)?[]:e.type!==`boolean`&&``)]))),o=e.fields.filter(e=>!e.hidden&&rw(e,i)),[s,c]=(0,b.useState)({}),[l,u]=(0,b.useState)(!1),[d,f]=(0,b.useState)(null),p=(0,b.useRef)(null);(0,b.useEffect)(()=>{p.current?.scrollIntoView({behavior:`smooth`,block:`nearest`})},[]);let m=(e,t)=>a(n=>({...n,[e]:t})),h=o.some(e=>e.required&&ow(i[e.key])&&!s[e.key]);async function g(){u(!0),f(null);let a={},c=[];for(let e of o){if(e.type===`external`)continue;let t=i[e.key];if(s[e.key]?.trim()&&(t=tw(e)?[...t??[],s[e.key].trim()]:s[e.key].trim()),nw(e)&&typeof t==`string`&&t!==``&&(t=Number(t)),ow(t)&&!e.required)continue;a[e.key]=t;let n=t=>e.options?.find(e=>e.value===t)?.label??String(t);c.push(`${e.title??e.key}: ${Array.isArray(t)?t.map(n).join(`, `):n(t)}`)}try{await J.answerForm(t.id,n.id,e.id,a,c.join(`
|
|
47
|
-
`)),r()}catch(e){f(e.message),u(!1)}}return(0,z.jsxs)(U.div,{ref:p,className:`form-card`,initial:{opacity:0,y:6},animate:{opacity:1,y:0},children:[(0,z.jsxs)(`div`,{className:`form-card-head`,children:[(0,z.jsx)(Ff,{size:15}),n.name,` needs your answer`,e.title?` — ${e.title}`:``]}),(0,z.jsxs)(`div`,{className:`form-card-body`,children:[o.map(e=>{let t=e.options??e.items?.options;return(0,z.jsxs)(`div`,{className:`form-field`,children:[e.title&&(0,z.jsx)(`div`,{className:`form-field-title`,children:e.title}),e.description&&(0,z.jsx)(`div`,{className:`form-field-desc`,children:e.description}),e.type===`external`&&e.url?(0,z.jsx)(`a`,{className:`btn sm`,href:e.url,target:`_blank`,rel:`noopener noreferrer`,children:`Open link`}):t?(0,z.jsxs)(`div`,{className:`form-options`,children:[t.map(t=>{let n=tw(e),r=i[e.key],a=n?r.includes(t.value):r===t.value,o=n&&!a&&e.maxItems!==void 0&&r.length>=e.maxItems;return(0,z.jsxs)(`button`,{className:`form-option ${a?`on`:``}`,disabled:o,title:o?`Choose up to ${e.maxItems}`:void 0,onClick:()=>{if(n){let n=r;m(e.key,a?n.filter(e=>e!==t.value):[...n,t.value])}else m(e.key,t.value);n||c(t=>({...t,[e.key]:``}))},children:[(0,z.jsx)(`strong`,{style:{fontWeight:500},children:t.label}),t.description&&(0,z.jsx)(`span`,{children:t.description})]},t.value)}),e.custom!==!1&&(0,z.jsx)(`input`,{placeholder:`Or type your own answer…`,value:s[e.key]??``,onChange:t=>{c(n=>({...n,[e.key]:t.target.value})),tw(e)||m(e.key,``)}})]}):e.type===`boolean`?(0,z.jsx)(`div`,{className:`form-options`,children:[!0,!1].map(t=>(0,z.jsx)(`button`,{className:`form-option ${i[e.key]===t?`on`:``}`,onClick:()=>m(e.key,t),children:(0,z.jsx)(`strong`,{children:t?`Yes`:`No`})},String(t)))}):(0,z.jsx)(`textarea`,{rows:2,placeholder:e.placeholder??`Your answer…`,value:String(i[e.key]??``),onChange:t=>m(e.key,t.target.value)})]},e.key)}),d&&(0,z.jsx)(`div`,{className:`error`,children:d}),(0,z.jsx)(`div`,{className:`row`,style:{justifyContent:`flex-end`},children:(0,z.jsx)(`button`,{className:`btn primary`,onClick:g,disabled:l||h,children:l?`Sending…`:`Send answer`})})]})]})}function ow(e){return e==null||e===``||Array.isArray(e)&&e.length===0}function sw(e,t,n){let r=n.assistantMessageID??``,i=e=>`${r}:${e}:${n.ordinal??0}`,a=(t,n)=>e.map(e=>e.key===t?n(e):e),o=t=>e.some(e=>e.key===t.key)?e:[...e,t];switch(t){case`session.text.started`:return o({kind:`text`,key:i(`text`),text:``});case`session.text.delta`:{let e=i(`text`);return o({kind:`text`,key:e,text:``}).map(t=>t.key===e?{...t,text:t.text+(n.delta??``)}:t)}case`session.text.ended`:return a(i(`text`),e=>({...e,text:n.text??e.text}));case`session.reasoning.started`:return o({kind:`reasoning`,key:i(`reasoning`),text:``});case`session.reasoning.delta`:{let e=i(`reasoning`);return o({kind:`reasoning`,key:e,text:``}).map(t=>t.key===e?{...t,text:t.text+(n.delta??``)}:t)}case`session.tool.input.started`:return o({kind:`tool`,key:n.id,name:n.name??`tool`,status:`running`});case`session.tool.called`:return a(n.id,e=>({...e,input:n.input}));case`session.tool.success`:return a(n.id,e=>({...e,status:`done`,output:cw(n.content)}));case`session.tool.failed`:case`session.tool.error`:return a(n.id,e=>({...e,status:`failed`,output:n.error?.message??cw(n.content)}));default:return e}}function cw(e){return Array.isArray(e)?e.map(e=>e?.type===`text`?e.text:``).join(``).trim():typeof e==`string`?e:void 0}var lw=/^Symbio( watchdog)?:\s*/,uw=/^\[from: ([^\]·]+?) · ([\w-]+)\]\n?/,dw={request:`Request`,info:`Update`,blocking:`Blocking`,urgent:`Urgent`,"asset-request":`Asset request`,"asset-granted":`Asset granted`,"asset-denied":`Asset denied`,"asset-released":`Asset released`,"task-review":`Ready for review`,"task-blocked":`Blocked`},fw={"asset-granted":`green`,"task-review":`amber`,"asset-denied":`red`,blocking:`red`,urgent:`red`,"task-blocked":`red`,request:`accent`,"asset-request":`accent`};function pw({project:e,agent:t}){let[n,r]=(0,b.useState)(!1),[i,a]=(0,b.useState)(t.name),[o,s]=(0,b.useState)(!1);async function c(){let n=i.trim();if(!n||n===t.name)return r(!1);s(!0);try{await J.renameAgent(e.id,t.id,n),r(!1)}catch(e){alert(e.message)}finally{s(!1)}}return n?(0,z.jsx)(`input`,{className:`title-input`,autoFocus:!0,value:i,disabled:o,onChange:e=>a(e.target.value),onBlur:()=>void c(),onKeyDown:e=>{e.key===`Enter`&&c(),e.key===`Escape`&&(a(t.name),r(!1))}}):(0,z.jsxs)(`div`,{className:`title row`,style:{gap:6},children:[t.name,t.role!==`coordinator`&&(0,z.jsx)(`button`,{className:`btn ghost icon xs`,title:`Rename`,onClick:()=>{a(t.name),r(!0)},children:(0,z.jsx)(Gf,{size:12})})]})}var mw=40,hw=120;function gw(e,t,n){let r=t.messages;if(!e?.length||!r.length)return{messages:r,hasOlder:t.hasMore};let i=new Set(r.map(e=>e.id));if(t.hasMore&&!e.some(e=>e.id===r[0].id))return{messages:r,hasOlder:!0};let a=r[0].time?.created??0,o=e.filter(e=>!i.has(e.id)&&(e.time?.created??0)<a);return{messages:[...o,...r],hasOlder:o.length?n:t.hasMore}}function _w({project:e,agent:t}){let[n,r]=(0,b.useState)(null),[i,a]=(0,b.useState)(!1),[o,s]=(0,b.useState)(!1),c=(0,b.useRef)({messages:null,hasOlder:!1}),l=(0,b.useRef)(null),[u,d]=(0,b.useState)([]),[f,p]=(0,b.useState)(null),[m,h]=(0,b.useState)(null),[g,_]=(0,b.useState)(``),[v,y]=(0,b.useState)(!1),[x,S]=(0,b.useState)(!1),[C,w]=(0,b.useState)(!1),[T,E]=(0,b.useState)(null),D=(0,b.useRef)(null),O=(0,b.useRef)(!0),ee=(e,t)=>{c.current={messages:e,hasOlder:t},r(e),a(t)},te=(0,b.useCallback)(()=>J.historyPage(e.id,t.id,mw,void 0,T??void 0).then(e=>{let t=c.current,{messages:n,hasOlder:r}=gw(t.messages,e,t.hasOlder);O.current&&n.length>hw&&(n=n.slice(-80),r=!0),ee(n,r)}).catch(e=>p(e.message)),[e.id,t.id,T]),ne=(0,b.useCallback)(async()=>{let{messages:n,hasOlder:r}=c.current;if(r&&n?.length&&!o){s(!0);try{let r=await J.historyPage(e.id,t.id,mw,n[0].id,T??void 0);l.current=D.current?.scrollHeight??null,ee([...r.messages,...n],r.hasMore)}catch(e){p(e.message)}finally{s(!1)}}},[e.id,t.id,o,T]);(0,b.useLayoutEffect)(()=>{let e=D.current;e&&l.current!==null&&(e.scrollTop+=e.scrollHeight-l.current,l.current=null)},[n]),(0,b.useEffect)(()=>{if(c.current={messages:null,hasOlder:!1},r(null),a(!1),d([]),O.current=!0,te(),!T)return Pp(e=>{if(e.type!==`agent.stream`||e.agentId!==t.id)return;let{type:n,data:r}=e.event;/retr/i.test(n)?h(ww(r)):((n===`session.text.delta`||n===`session.tool.called`)&&h(null),n===`session.execution.started`?(p(null),te()):n.startsWith(`session.execution.`)?(h(null),n===`session.execution.failed`&&p(r.error?.message??`The agent's turn failed.`),te().then(()=>d([]))):d(e=>sw(e,n,r)))})},[t.id,t.sessionId,T,te]),(0,b.useEffect)(()=>{let e=D.current;e&&O.current&&(e.scrollTop=e.scrollHeight)},[n,u,f]);async function re(){let n=g.trim();if(n){y(!0),_(``),O.current=!0;try{await J.send(e.id,t.id,n),te()}catch(e){p(e.message),_(n)}finally{y(!1)}}}let k=t.status===`busy`||t.status===`stuck`;return(0,z.jsxs)(`div`,{className:`chat`,children:[(0,z.jsxs)(`div`,{className:`chat-head`,children:[(0,z.jsx)(Up,{name:t.name,status:t.status,size:`lg`}),(0,z.jsxs)(`div`,{className:`grow`,children:[(0,z.jsx)(pw,{project:e,agent:t}),(0,z.jsxs)(`div`,{className:`sub ellipsis`,children:[Wp(t.status),` ·`,` `,t.status===`stopped`?t.model:(0,z.jsx)(`select`,{className:`inline-select`,value:t.model,title:`Model ${t.name} runs on — applies from its next turn`,onChange:n=>J.setAgentModel(e.id,t.id,n.target.value).catch(e=>alert(e.message)),children:[...new Set([t.model,...e.allowedModels])].map(t=>(0,z.jsx)(`option`,{value:t,disabled:!e.allowedModels.includes(t),children:t},t))}),t.branch&&(0,z.jsxs)(z.Fragment,{children:[` · `,(0,z.jsx)(G,{size:11,style:{verticalAlign:-1}}),` `,t.branch]}),(t.previousSessions?.length??0)>0&&(0,z.jsxs)(z.Fragment,{children:[` · `,(0,z.jsxs)(`select`,{className:`inline-select`,value:T??``,title:`Earlier sessions stay readable after the agent got a fresh one`,onChange:e=>E(e.target.value||null),children:[(0,z.jsx)(`option`,{value:``,children:`current session`}),[...t.previousSessions].reverse().map((e,n)=>(0,z.jsxs)(`option`,{value:e.sessionId,children:[`earlier session `,t.previousSessions.length-n,` (until `,new Date(e.endedAt).toLocaleString(),`)`]},e.sessionId))]})]})]})]}),t.status!==`stopped`&&(0,z.jsxs)(`button`,{className:`btn ghost sm`,disabled:C||k||t.status===`waiting`,title:k?`Available when the agent is idle`:`Continue in a fresh session: lighter and cheaper; a handoff note carries the essentials over`,onClick:()=>{confirm(`Give ${t.name} a fresh session? It keeps its name, folder, tasks and assets, and starts from a handoff note. The current conversation stays readable.`)&&(w(!0),E(null),J.renewSession(e.id,t.id).catch(e=>alert(e.message)).finally(()=>w(!1)))},children:[(0,z.jsx)(ep,{size:14}),C?`Renewing…`:`New session`]}),t.role!==`coordinator`&&t.status!==`stopped`&&(0,z.jsxs)(`button`,{className:`btn ghost sm`,onClick:()=>{confirm(`Stop ${t.name}? Any assets it holds are released; unmerged work is kept.`)&&J.stopAgent(e.id,t.id).catch(e=>alert(e.message))},children:[(0,z.jsx)(qd,{size:14}),`Stop agent`]}),t.role!==`coordinator`&&t.status===`stopped`&&(0,z.jsxs)(`button`,{className:`btn sm`,disabled:x,onClick:()=>{S(!0),J.restartAgent(e.id,t.id).catch(e=>alert(e.message)).finally(()=>S(!1))},children:[(0,z.jsx)(ip,{size:14}),x?`Restarting…`:`Restart agent`]})]}),(0,z.jsx)(`div`,{className:`chat-scroll`,ref:D,onScroll:e=>{let t=e.currentTarget;O.current=t.scrollHeight-t.scrollTop-t.clientHeight<80,t.scrollTop<300&&ne()},children:(0,z.jsxs)(`div`,{className:`chat-col`,children:[n===null&&(0,z.jsx)(`div`,{className:`subtle center`,children:`Loading conversation…`}),i&&(0,z.jsx)(`button`,{className:`btn ghost sm load-older`,onClick:()=>void ne(),disabled:o,children:o?`Loading earlier messages…`:`Load earlier messages`}),n?.length===0&&u.length===0&&(0,z.jsxs)(`div`,{className:`chat-empty`,children:[(0,z.jsx)(`h2`,{children:`Let's talk about the project`}),(0,z.jsx)(`p`,{children:`Tell core what you want to build. It will ask questions, agree on the scope with you, and then plan the work.`})]}),(0,z.jsxs)(Vl,{initial:!1,children:[n?.map(e=>(0,z.jsx)(vw,{message:e},e.id)),u.length>0&&(0,z.jsx)(U.div,{className:`msg-assistant`,initial:{opacity:0},animate:{opacity:1},children:u.map(e=>(0,z.jsx)(bw,{block:e},e.key))},`live`)]}),k&&u.length===0&&(0,z.jsx)(Ew,{stuck:t.status===`stuck`,retry:m??Tw(n)}),(0,z.jsx)(iw,{project:e,agent:t}),f&&!Cw(n)&&(0,z.jsxs)(`div`,{className:`msg-failure`,children:[(0,z.jsx)(zd,{size:14}),f]})]})}),T?(0,z.jsx)(`div`,{className:`composer-wrap`,children:(0,z.jsxs)(`div`,{className:`session-note`,children:[`You're reading an earlier session of `,t.name,` (read-only).`,(0,z.jsx)(`button`,{className:`btn sm`,onClick:()=>E(null),children:`Back to the current session`})]})}):(0,z.jsx)(`div`,{className:`composer-wrap`,children:(0,z.jsxs)(`div`,{className:`composer`,children:[(0,z.jsx)(`textarea`,{value:g,placeholder:k?`${t.name} is working — your message will be queued`:`Message ${t.name}…`,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),re())},rows:Math.min(10,Math.max(1,g.split(`
|
|
48
|
-
`).length))}),(0,z.jsxs)(`div`,{className:`composer-bar`,children:[(0,z.jsxs)(`span`,{className:`composer-hint`,children:[(0,z.jsx)(`span`,{className:`kbd`,children:`Enter`}),` to send · `,(0,z.jsx)(`span`,{className:`kbd`,children:`Shift`}),`+`,(0,z.jsx)(`span`,{className:`kbd`,children:`Enter`}),` for a new line`]}),(0,z.jsx)(`span`,{className:`spacer`}),k&&(0,z.jsxs)(`button`,{className:`btn ghost sm`,onClick:()=>J.interrupt(e.id,t.id),title:`Interrupt the current turn`,children:[(0,z.jsx)(qd,{size:14}),`Stop`]}),(0,z.jsx)(`button`,{className:`btn primary icon sm`,onClick:re,disabled:!g.trim()||v,title:`Send`,"aria-label":`Send`,children:(0,z.jsx)(Td,{size:15})})]})]})})]})}function vw({message:e}){let t={initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.15}};if(e.type===`user`||e.type===`synthetic`){let n=e.text??``,r=n.match(uw);if(r&&r[1]!==`human`){let e=r[2];return(0,z.jsxs)(U.div,{className:`msg-agent`,...t,children:[(0,z.jsxs)(`div`,{className:`msg-agent-head`,children:[(0,z.jsx)(Up,{name:r[1],size:`sm`}),(0,z.jsx)(`strong`,{children:r[1]}),(0,z.jsx)(`span`,{className:`tag ${fw[e]??``}`,children:dw[e]??e})]}),(0,z.jsx)(`div`,{className:`msg-agent-body md`,children:(0,z.jsx)(Jb,{remarkPlugins:[ew],children:n.slice(r[0].length)})})]})}return r?(0,z.jsx)(U.div,{className:`msg-user`,...t,children:n.slice(r[0].length)}):lw.test(n)?(0,z.jsx)(U.div,{className:`msg-note`,...t,children:(0,z.jsxs)(`span`,{children:[(0,z.jsx)(Cf,{size:12,style:{verticalAlign:-2,marginRight:6}}),n.replace(lw,``)]})}):(0,z.jsx)(U.div,{className:`msg-user`,...t,children:n})}if(e.type===`assistant`){let n=e.content??[];return n.length===0&&!e.error?null:(0,z.jsxs)(U.div,{className:`msg-assistant`,...t,children:[n.map((e,t)=>(0,z.jsx)(bw,{block:yw(e,t)},t)),e.error&&(0,z.jsxs)(`div`,{className:`msg-failure`,children:[(0,z.jsx)(zd,{size:14}),e.error.message??String(e.error)]})]})}return e.type===`model-switched`?(0,z.jsx)(U.div,{className:`msg-note`,...t,children:(0,z.jsxs)(`span`,{children:[(0,z.jsx)(np,{size:12,style:{verticalAlign:-2,marginRight:6}}),`Switched to `,e.model?.providerID,`/`,e.model?.id]})}):null}function yw(e,t){if(e.type===`text`)return{kind:`text`,key:String(t),text:e.text??``};if(e.type===`reasoning`)return{kind:`reasoning`,key:String(t),text:e.text??``};let n=e.state??{},r=n.status??e.status;return{kind:`tool`,key:String(t),name:e.name??e.type,input:n.input??e.input,status:r===`error`||r===`failed`?`failed`:r===`running`||r===`pending`?`running`:`done`,output:cw(n.content)||n.error?.message||void 0}}function bw({block:e}){return e.kind===`text`?(0,z.jsx)(`div`,{className:`md`,children:(0,z.jsx)(Jb,{remarkPlugins:[ew],children:e.text})}):e.kind===`reasoning`?e.text.trim()?(0,z.jsxs)(`details`,{className:`reasoning`,children:[(0,z.jsxs)(`summary`,{children:[(0,z.jsx)(jd,{size:13}),`Thinking`]}),(0,z.jsx)(`div`,{className:`reasoning-body`,children:e.text})]}):null:(0,z.jsx)(xw,{block:e})}function xw({block:e}){let t=Sw(e.input);return(0,z.jsxs)(`details`,{className:`tool`,children:[(0,z.jsxs)(`summary`,{children:[(0,z.jsx)(`span`,{className:`tool-state ${e.status}`,children:e.status===`running`?(0,z.jsx)(kf,{size:13,className:`spin`}):e.status===`failed`?(0,z.jsx)(Ep,{size:13}):(0,z.jsx)(Nd,{size:13})}),(0,z.jsx)(wp,{size:12,className:`subtle`}),(0,z.jsx)(`span`,{className:`tool-name`,children:e.name}),t&&(0,z.jsx)(`span`,{className:`tool-arg`,children:t})]}),e.input!==void 0&&(0,z.jsx)(`pre`,{className:`tool-io`,children:JSON.stringify(e.input,null,2)}),e.output&&(0,z.jsx)(`pre`,{className:`tool-io out`,children:e.output.slice(0,4e3)})]})}function Sw(e){if(!e||typeof e!=`object`)return null;let t=e;if(typeof t.code==`string`){let e=[...new Set([...t.code.matchAll(/tools\.([\w$]+)\.([\w$]+)/g)].map(e=>`${e[1]}.${e[2]}`))];return e.length?e.join(`, `):t.code.split(`
|
|
49
|
-
`).find(e=>e.trim()&&!e.trim().startsWith(`//`))?.trim().slice(0,120)??null}let n=t.command??t.filePath??t.path??t.pattern??t.url??t.query;return typeof n==`string`?n.slice(0,120):null}function Cw(e){let t=e?.findLast(e=>e.type===`assistant`||e.type===`user`);return t?.type===`assistant`&&!!t.error}function ww(e){let t=e?.retry??e,n=t?.error?.message??t?.message??`provider error`;return`Provider not responding — retrying${t?.attempt?` (attempt ${t.attempt})`:``}: ${n}`}function Tw(e){let t=e?.[e.length-1];return t?.type===`assistant`&&t.retry&&!t.content?.length?ww(t):null}function Ew({stuck:e,retry:t}){return(0,z.jsxs)(`div`,{className:`thinking ${t?`retrying`:``}`,children:[(0,z.jsxs)(`span`,{className:`typing`,children:[(0,z.jsx)(`i`,{}),(0,z.jsx)(`i`,{}),(0,z.jsx)(`i`,{})]}),e?`Looked stuck — recovering…`:t??`Working…`]})}function Dw({project:e}){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(null),[l,u]=(0,b.useState)(!1),[d,f]=(0,b.useState)(``),[p,m]=(0,b.useState)(!1),[h,g]=(0,b.useState)(null),_=(0,b.useRef)(!1);_.current=l;let v=(0,b.useCallback)(()=>J.docs(e.id).then(e=>{n(e.files),i(e.root)}).catch(e=>g(e.message)),[e.id]),y=(0,b.useCallback)(t=>J.readDoc(e.id,t).then(e=>c(e.content)).catch(e=>g(e.message)),[e.id]);(0,b.useEffect)(()=>{v();let t,n=Pp(n=>{n.type===`agent.stream`&&n.projectId===e.id&&(n.event.type===`session.tool.success`||n.event.type.startsWith(`session.execution.`))&&(clearTimeout(t),t=setTimeout(()=>void v(),800))});return()=>{clearTimeout(t),n()}},[e.id,v]),(0,b.useEffect)(()=>{if(!t?.length)return;let e=a&&t.some(e=>e.path===a)?a:t[0].path;e===a?_.current||y(e):o(e)},[t]),(0,b.useEffect)(()=>{a&&(u(!1),c(null),y(a))},[a,y]);async function x(){if(a){m(!0);try{await J.writeDoc(e.id,a,d),c(d),u(!1),v()}catch(e){g(e.message)}finally{m(!1)}}}return t&&t.length===0?(0,z.jsxs)(Yp,{icon:(0,z.jsx)(Dd,{size:20}),title:`No documentation yet`,children:[`core writes it as it learns the project — `,e.docsLocation===`private`?`privately in .symbio/docs`:`in AGENTS.md and docs/`,`.`]}):(0,z.jsxs)(`div`,{className:`docs`,children:[(0,z.jsxs)(`nav`,{className:`docs-list`,children:[(0,z.jsx)(`div`,{className:`side-group-title`,title:r,children:e.docsLocation===`private`?`Private docs`:`Project docs`}),t?.map(e=>(0,z.jsxs)(`button`,{className:`docs-item ${a===e.path?`active`:``}`,onClick:()=>o(e.path),title:e.path,children:[(0,z.jsx)(mf,{size:14}),(0,z.jsx)(`span`,{className:`grow`,children:e.path}),(0,z.jsx)(`span`,{className:`docs-item-time`,children:Xp(e.modified)})]},e.path))]}),(0,z.jsxs)(`section`,{className:`docs-view`,children:[h&&(0,z.jsx)(`div`,{className:`error`,children:h}),a&&(0,z.jsxs)(`div`,{className:`docs-toolbar`,children:[(0,z.jsx)(`code`,{children:a}),(0,z.jsx)(`div`,{className:`spacer`}),l?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`button`,{className:`btn ghost sm`,onClick:()=>u(!1),children:`Cancel`}),(0,z.jsxs)(`button`,{className:`btn primary sm`,onClick:x,disabled:p,children:[(0,z.jsx)(op,{size:13}),p?`Saving…`:`Save`]})]}):(0,z.jsxs)(`button`,{className:`btn sm`,onClick:()=>{f(s??``),u(!0)},disabled:s===null,children:[(0,z.jsx)(Gf,{size:13}),`Edit`]})]}),(0,z.jsx)(Vl,{mode:`wait`,children:(0,z.jsx)(U.div,{className:`docs-body`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.12},children:l?(0,z.jsx)(`textarea`,{className:`docs-editor`,value:d,onChange:e=>f(e.target.value),spellCheck:!0}):s===null?(0,z.jsx)(`div`,{className:`muted`,children:`Loading…`}):(0,z.jsx)(`div`,{className:`md`,children:(0,z.jsx)(Jb,{remarkPlugins:[ew],children:s})})},`${a}:${l}`)})]})]})}var Ow={chat:{label:`Chat`},info:{label:`Update`},request:{label:`Request`,tone:`accent`},blocking:{label:`Blocking`,tone:`red`},urgent:{label:`Urgent`,tone:`red`},"needs-human":{label:`Question for you`,tone:`amber`},form:{label:`Question for you`,tone:`amber`},alert:{label:`Needs your action`,tone:`red`},approval:{label:`Approval requested`,tone:`amber`},permission:{label:`Permission request`,tone:`amber`},remote:{label:`Connection action`,tone:`blue`},system:{label:`Symbio`},"asset-request":{label:`Asset request`,tone:`accent`},"asset-granted":{label:`Asset granted`,tone:`green`},"asset-denied":{label:`Asset denied`,tone:`red`},"asset-released":{label:`Asset released`},plan:{label:`Plan proposed`,tone:`amber`},"task-review":{label:`Ready for review`,tone:`amber`},"task-blocked":{label:`Task blocked`,tone:`red`}};function kw(e){return e.filter(t=>(t.kind===`needs-human`||t.kind===`form`)&&t.from!==`symbio`&&!e.some(e=>e.from===`human`&&e.to===t.from&&e.time>t.time))}function Aw(e){let[t,n]=(0,b.useState)(null);return(0,b.useEffect)(()=>(J.log(e).then(n).catch(()=>n([])),Pp(t=>{t.type===`message`&&t.projectId===e&&n(e=>e&&!e.some(e=>e.id===t.message.id)?[...e,t.message]:e)})),[e]),t}function jw({project:e,log:t,onOpenAgent:n}){let[r,i]=(0,b.useState)(!0),a=(0,b.useRef)(null),o=t=>t===`human`?`You`:t===`symbio`?`Symbio`:e.agents.find(e=>e.id===t)?.name??t,s=(t??[]).filter(e=>!(r&&e.kind===`chat`)),c=new Set(kw(t??[]).map(e=>e.id));return(0,b.useEffect)(()=>{let e=a.current;e&&(e.scrollTop=e.scrollHeight)},[s.length]),(0,z.jsxs)(`div`,{className:`chat`,children:[(0,z.jsxs)(`div`,{className:`timeline-toolbar`,children:[(0,z.jsx)(`span`,{children:`Everything agents say to each other and to you, and what Symbio tells them.`}),(0,z.jsx)(`span`,{className:`spacer`}),(0,z.jsxs)(`label`,{className:`check`,children:[(0,z.jsx)(`input`,{type:`checkbox`,checked:r,onChange:e=>i(e.target.checked)}),` Hide your direct chats`]})]}),(0,z.jsxs)(`div`,{className:`timeline`,ref:a,children:[t&&s.length===0&&(0,z.jsx)(Yp,{icon:(0,z.jsx)(zf,{size:20}),title:`No team messages yet`,children:`Requests, handoffs and questions between agents show up here as they happen.`}),(0,z.jsx)(`div`,{className:`timeline-inner`,children:s.map(t=>{let r=Ow[t.kind]??{label:t.kind},i=t.kind===`system`||t.kind===`chat`,a=o(t.from);return(0,z.jsxs)(`div`,{className:`event ${i?`quiet`:``} ${c.has(t.id)?`open`:``}`,children:[(0,z.jsx)(Up,{name:a,kind:t.from===`human`?`human`:t.from===`symbio`?`system`:`agent`}),(0,z.jsxs)(`div`,{style:{minWidth:0},children:[(0,z.jsxs)(`div`,{className:`event-head`,children:[(0,z.jsx)(`strong`,{children:a}),(0,z.jsx)(`span`,{className:`subtle`,children:`→`}),(0,z.jsx)(`span`,{children:o(t.to)}),(0,z.jsx)(`span`,{className:`tag ${r.tone??``}`,children:r.label}),(0,z.jsx)(`span`,{className:`when`,children:Zp(t.time)})]}),(0,z.jsx)(`div`,{className:`event-body md`,children:(0,z.jsx)(Jb,{remarkPlugins:[ew],children:t.text})}),c.has(t.id)&&t.kind===`needs-human`&&(0,z.jsx)(Mw,{project:e,agentId:t.from}),c.has(t.id)&&t.kind===`form`&&n&&(0,z.jsxs)(`button`,{className:`btn primary sm`,style:{marginTop:8},onClick:()=>n(t.from),children:[`Answer in `,a,`'s chat`]})]})]},t.id)})})]})]})}function Mw({project:e,agentId:t}){let[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!1),[o,s]=(0,b.useState)(null);async function c(){if(n.trim()){a(!0);try{await J.send(e.id,t,n.trim()),r(``)}catch(e){s(e.message)}finally{a(!1)}}}return(0,z.jsxs)(`div`,{className:`reply`,children:[(0,z.jsx)(`textarea`,{value:n,rows:2,placeholder:`Write your answer…`,onChange:e=>r(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),c())}}),(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:c,disabled:!n.trim()||i,children:`Reply`}),o&&(0,z.jsx)(`div`,{className:`error`,children:o})]})}function Nw(e,t,n){let[r,i]=(0,b.useState)([]),[a,o]=(0,b.useState)([]),s=e?.id;(0,b.useEffect)(()=>{if(!s)return;let e=()=>{J.approvals(s).then(e=>i(e.filter(e=>e.status===`pending`))).catch(()=>{}),J.permissions(s).then(o).catch(()=>{})};return e(),Pp(t=>{t.type===`approvals.updated`&&t.projectId===s&&e()})},[s]);let c=kw(t??[]),l=e?.agents.filter(e=>e.problem&&e.status!==`stopped`).length??0,u=+(n?.status===`proposed`);return{approvals:r,permissions:a,questions:c,count:r.length+a.length+c.length+l+u}}function Pw({project:e,plan:t,data:n,onClose:r,onOpenAgent:i,onOpenTab:a}){let o=e.agents.filter(e=>e.problem&&e.status!==`stopped`),s=t=>e.agents.find(e=>e.id===t)?.name??t;return(0,z.jsxs)(Jp,{title:`Needs you`,onClose:r,children:[n.count===0&&(0,z.jsx)(`div`,{className:`inbox-empty`,children:`Nothing is waiting for you.`}),(0,z.jsxs)(Vl,{initial:!1,children:[o.length>0&&(0,z.jsxs)(Fw,{icon:(0,z.jsx)(zd,{size:14,style:{color:`var(--red)`}}),kind:`Agents stuck`,children:[(0,z.jsxs)(`div`,{className:`small`,children:[(0,z.jsx)(`strong`,{children:o.map(e=>e.name).join(`, `)}),` can't continue — every allowed model failed.`]}),(0,z.jsx)(`div`,{className:`inbox-reason`,children:o[0].problem}),(0,z.jsxs)(`div`,{className:`inbox-actions`,children:[(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:()=>a(`settings`),children:`Add a model`}),(0,z.jsx)(`button`,{className:`btn sm`,onClick:()=>J.retryModels(e.id).catch(e=>alert(e.message)),children:`Retry now`})]})]},`stuck`),t?.status===`proposed`&&(0,z.jsxs)(Fw,{icon:(0,z.jsx)(Zd,{size:14}),kind:`Plan to review`,children:[(0,z.jsxs)(`div`,{className:`small`,children:[`core proposed a plan with `,(0,z.jsxs)(`strong`,{children:[t.tasks.length,` tasks`]}),`. Nothing starts until you approve it.`]}),(0,z.jsx)(`div`,{className:`inbox-actions`,children:(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:()=>a(`plan`),children:`Review plan`})})]},`plan`),n.approvals.map(t=>(0,z.jsx)(Iw,{project:e,approval:t},t.id)),n.permissions.map(t=>(0,z.jsx)(Lw,{project:e,request:t},t.id)),n.questions.map(t=>t.kind===`form`?(0,z.jsxs)(Fw,{icon:(0,z.jsx)(Ff,{size:14}),kind:`Question`,agent:s(t.from),time:t.time,children:[(0,z.jsxs)(`div`,{className:`small`,children:[s(t.from),` is asking you a multiple-choice question.`]}),(0,z.jsx)(`div`,{className:`inbox-actions`,children:(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:()=>i(t.from),children:`Answer in chat`})})]},t.id):(0,z.jsx)(Rw,{project:e,question:t,agentName:s(t.from)},t.id))]})]})}function Fw({icon:e,kind:t,agent:n,time:r,children:i}){return(0,z.jsxs)(U.div,{className:`inbox-item`,layout:!0,initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,height:0,padding:0,margin:0},children:[(0,z.jsxs)(`div`,{className:`inbox-item-head`,children:[n?(0,z.jsx)(Up,{name:n,size:`sm`}):e,(0,z.jsx)(`span`,{className:`inbox-kind`,children:t}),n&&(0,z.jsxs)(`span`,{className:`small`,children:[`· `,n]}),r&&(0,z.jsx)(`span`,{className:`when`,children:Xp(r)})]}),i]})}function Iw({project:e,approval:t}){let[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!1);async function o(r){a(!0),await J.decideApproval(e.id,t.id,r,n.trim()||void 0).catch(e=>alert(e.message))}let s=t.action.kind===`github_api`&&t.action.body!==void 0?JSON.stringify(t.action.body,null,2):null;return(0,z.jsxs)(Fw,{icon:(0,z.jsx)(Jf,{size:14}),kind:`Use ${t.connectionName}`,agent:t.agentName,time:t.createdAt,children:[(0,z.jsxs)(`div`,{className:`small`,children:[`Wants to `,t.summary]}),typeof t.action.command==`string`&&(0,z.jsx)(`pre`,{className:`command`,children:t.action.command}),s&&(0,z.jsx)(`pre`,{className:`command`,children:s}),(0,z.jsxs)(`div`,{className:`inbox-reason`,children:[`Why: `,t.reason]}),(0,z.jsx)(`input`,{placeholder:`Note for the agent (optional)`,value:n,onChange:e=>r(e.target.value)}),(0,z.jsxs)(`div`,{className:`inbox-actions`,children:[(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:()=>o(!0),disabled:i,children:`Approve`}),(0,z.jsx)(`button`,{className:`btn danger sm`,onClick:()=>o(!1),disabled:i,children:`Deny`})]})]})}function Lw({project:e,request:t}){let[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!1);async function o(r){a(!0),await J.answerPermission(e.id,t.id,r,n.trim()||void 0).catch(e=>alert(e.message))}let s=t.action===`shell`?`run a command`:t.action===`read`?`read a file`:t.action===`edit`?`change a file`:t.action;return(0,z.jsxs)(Fw,{icon:(0,z.jsx)(vp,{size:14}),kind:`Permission`,agent:t.agentName,time:t.time,children:[(0,z.jsxs)(`div`,{className:`small`,children:[`Wants to `,s,`:`]}),(0,z.jsx)(`pre`,{className:`command`,children:t.resources.join(`
|
|
50
|
-
`)}),(0,z.jsx)(`input`,{placeholder:`Note for the agent (optional)`,value:n,onChange:e=>r(e.target.value)}),(0,z.jsxs)(`div`,{className:`inbox-actions`,children:[(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:()=>o(`once`),disabled:i,children:`Allow once`}),t.save.length>0&&(0,z.jsxs)(`button`,{className:`btn sm`,onClick:()=>o(`always`),disabled:i,title:`Remembered for this project`,children:[(0,z.jsx)(Tf,{size:13}),`Always allow `,(0,z.jsx)(`code`,{children:t.save.join(`, `)})]}),(0,z.jsx)(`button`,{className:`btn danger sm`,onClick:()=>o(`reject`),disabled:i,children:`Deny`})]})]})}function Rw({project:e,question:t,agentName:n}){let[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)(!1);async function s(){r.trim()&&(o(!0),await J.send(e.id,t.from,r.trim()).catch(e=>alert(e.message)),o(!1),i(``))}return(0,z.jsxs)(Fw,{icon:(0,z.jsx)(Ff,{size:14}),kind:`Question`,agent:n,time:t.time,children:[(0,z.jsx)(`div`,{className:`md small`,children:(0,z.jsx)(Jb,{remarkPlugins:[ew],children:t.text})}),(0,z.jsx)(`textarea`,{rows:2,placeholder:`Answer ${n}…`,value:r,onChange:e=>i(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),s())}}),(0,z.jsx)(`div`,{className:`inbox-actions`,children:(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:s,disabled:!r.trim()||a,children:`Send answer`})})]})}var zw=[{status:`todo`,title:`To do`,icon:(0,z.jsx)(Yd,{size:14})},{status:`in-progress`,title:`In progress`,icon:(0,z.jsx)(Ud,{size:14})},{status:`blocked`,title:`Blocked`,icon:(0,z.jsx)(Vf,{size:14})},{status:`review`,title:`Review`,icon:(0,z.jsx)(ff,{size:14})},{status:`done`,title:`Done`,icon:(0,z.jsx)(Vd,{size:14})}];function Bw({project:e,plan:t}){let[n,r]=(0,b.useState)(null);if(!t)return null;if(t.status===`none`)return(0,z.jsx)(Yp,{icon:(0,z.jsx)(Zd,{size:20}),title:`No plan yet`,children:`core proposes a plan once you've agreed on the scope. It shows up here for your approval, then turns into a live board.`});let i=new Map(e.agents.map(e=>[e.id,e])),a=t.tasks.filter(e=>e.status===`done`).length,o=t.tasks.length?a/t.tasks.length:0,s=e=>t.tasks.find(t=>t.id===e)?.status===`done`,c=t.tasks.find(e=>e.id===n);return(0,z.jsxs)(`div`,{className:`kanban`,children:[(0,z.jsxs)(`div`,{className:`kanban-head`,children:[(0,z.jsxs)(`div`,{className:`kanban-goal`,children:[(0,z.jsx)(`div`,{className:`kanban-goal-text`,children:t.goal}),(0,z.jsxs)(`div`,{className:`kanban-goal-meta`,children:[(0,z.jsx)(Vw,{status:t.status}),(0,z.jsxs)(`span`,{children:[`Revision `,t.revision]})]})]}),(0,z.jsxs)(`div`,{className:`progress`,title:`${a} of ${t.tasks.length} tasks done`,children:[(0,z.jsxs)(`span`,{className:`tnum`,children:[a,`/`,t.tasks.length]}),(0,z.jsx)(`div`,{className:`progress-track`,children:(0,z.jsx)(U.div,{className:`progress-fill`,animate:{width:`${o*100}%`},transition:{type:`spring`,stiffness:80,damping:18}})})]})]}),(0,z.jsx)(Vl,{children:t.status===`proposed`&&(0,z.jsx)(Ww,{project:e,plan:t})}),t.status===`changes-requested`&&(0,z.jsx)(`div`,{className:`plan-banner`,children:(0,z.jsxs)(`span`,{className:`small muted`,children:[`You asked for changes`,t.feedback?`: “${t.feedback}”`:``,`. Waiting for core's revised plan…`]})}),(0,z.jsx)(ql,{children:(0,z.jsx)(`div`,{className:`columns`,children:zw.map(e=>{let n=t.tasks.filter(t=>t.status===e.status);return(0,z.jsxs)(`div`,{className:`column col-${e.status}`,children:[(0,z.jsxs)(`div`,{className:`column-head`,children:[e.icon,e.title,(0,z.jsx)(`span`,{className:`column-count`,children:n.length})]}),(0,z.jsxs)(`div`,{className:`column-body`,children:[(0,z.jsx)(Vl,{children:n.map(e=>(0,z.jsx)(Hw,{task:e,agent:e.assignee?i.get(e.assignee):void 0,waitingOn:e.dependsOn.filter(e=>!s(e)),onOpen:()=>r(e.id)},e.id))}),n.length===0&&(0,z.jsx)(`div`,{className:`column-empty`,children:`—`})]})]},e.status)})})}),(0,z.jsx)(Vl,{children:c&&(0,z.jsx)(Uw,{task:c,agent:c.assignee?i.get(c.assignee):void 0,onClose:()=>r(null)})})]})}function Vw({status:e}){return e===`proposed`?(0,z.jsx)(`span`,{className:`tag amber`,children:`Awaiting your approval`}):e===`changes-requested`?(0,z.jsx)(`span`,{className:`tag blue`,children:`Changes requested`}):e===`approved`?(0,z.jsx)(`span`,{className:`tag green`,children:`Approved`}):null}function Hw({task:e,agent:t,waitingOn:n,onOpen:r}){return(0,z.jsxs)(U.button,{layout:!0,layoutId:e.id,className:`task-card ts-${e.status}`,onClick:r,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{type:`spring`,stiffness:300,damping:30},children:[(0,z.jsxs)(`div`,{className:`task-top`,children:[(0,z.jsx)(`span`,{className:`task-id`,children:e.id}),n.length>0&&e.status===`todo`&&(0,z.jsxs)(`span`,{className:`row`,style:{gap:3},title:`Waiting on these tasks`,children:[(0,z.jsx)(Df,{size:11}),`after `,n.join(`, `)]})]}),(0,z.jsx)(`div`,{className:`task-title`,children:e.title}),e.assets.length>0&&(0,z.jsx)(`div`,{className:`task-meta`,children:e.assets.map(e=>(0,z.jsxs)(`span`,{className:`tag`,title:`Shared asset`,children:[(0,z.jsx)(Nf,{}),e]},e))}),(0,z.jsxs)(`div`,{className:`task-bottom`,children:[t?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Up,{name:t.name,size:`sm`,status:t.status===`busy`?`busy`:void 0}),(0,z.jsx)(`span`,{className:`ellipsis`,children:t.name})]}):(0,z.jsx)(`span`,{className:`subtle`,children:`Unassigned`}),e.notes.length>0&&(0,z.jsxs)(`span`,{className:`subtle`,title:e.notes[e.notes.length-1].text,children:[(0,z.jsx)(Lf,{size:11}),e.notes.length]})]})]})}function Uw({task:e,agent:t,onClose:n}){let r=zw.find(t=>t.status===e.status);return(0,z.jsxs)(Jp,{title:`${e.id} · ${e.title}`,onClose:n,children:[(0,z.jsxs)(`dl`,{className:`task-detail-meta`,children:[(0,z.jsx)(`dt`,{children:`Status`}),(0,z.jsxs)(`dd`,{children:[r?.icon,r?.title]}),(0,z.jsx)(`dt`,{children:`Assignee`}),(0,z.jsx)(`dd`,{children:t?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(Up,{name:t.name,size:`sm`}),t.name]}):(0,z.jsx)(`span`,{className:`subtle`,children:`Unassigned`})}),e.dependsOn.length>0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`dt`,{children:`Depends on`}),(0,z.jsx)(`dd`,{children:e.dependsOn.join(`, `)})]}),e.assets.length>0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`dt`,{children:`Shared assets`}),(0,z.jsx)(`dd`,{children:e.assets.map(e=>(0,z.jsxs)(`span`,{className:`tag`,children:[(0,z.jsx)(Nf,{}),e]},e))})]})]}),(0,z.jsx)(`div`,{className:`md`,children:(0,z.jsx)(Jb,{remarkPlugins:[ew],children:e.description||`_No description._`})}),e.notes.length>0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`h3`,{children:`History`}),(0,z.jsx)(`div`,{className:`history`,children:e.notes.map((e,t)=>(0,z.jsxs)(`div`,{className:`history-item`,children:[(0,z.jsx)(`span`,{className:`when`,children:Zp(e.time)}),(0,z.jsxs)(`span`,{className:`what`,children:[(0,z.jsx)(`strong`,{children:e.by}),` `,e.text]})]},t))})]})]})}function Ww({project:e,plan:t}){let[n,r]=(0,b.useState)(!1),[i,a]=(0,b.useState)(``),[o,s]=(0,b.useState)(!1),[c,l]=(0,b.useState)(null);async function u(t){s(!0),l(null);try{await J.decidePlan(e.id,t,i.trim()||void 0)}catch(e){l(e.message),s(!1)}}return(0,z.jsxs)(U.div,{className:`plan-banner`,initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0},children:[(0,z.jsxs)(`div`,{className:`plan-banner-row`,children:[(0,z.jsx)(Zd,{size:16,style:{color:`var(--amber)`}}),(0,z.jsxs)(`div`,{className:`grow`,children:[(0,z.jsxs)(`strong`,{children:[`core proposed this plan (`,t.tasks.length,` tasks).`]}),` `,(0,z.jsx)(`span`,{className:`muted`,children:`Nothing starts until you approve it.`})]}),!n&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`button`,{className:`btn sm`,onClick:()=>r(!0),disabled:o,children:`Request changes`}),(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:()=>u(!0),disabled:o,children:`Approve plan`})]})]}),n&&(0,z.jsxs)(`div`,{className:`plan-banner-row`,children:[(0,z.jsx)(`textarea`,{autoFocus:!0,rows:2,placeholder:`What should change? e.g. “split T2 in two”, “use one helper only”…`,value:i,onChange:e=>a(e.target.value)}),(0,z.jsx)(`button`,{className:`btn ghost sm`,onClick:()=>r(!1),disabled:o,children:`Cancel`}),(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:()=>u(!1),disabled:o||!i.trim(),children:`Send`})]}),c&&(0,z.jsx)(`div`,{className:`error`,children:c})]})}var Gw=e=>e>=1024**3?`${(e/1024**3).toFixed(1)} GB`:`${Math.round(e/1024**2)} MB`;function Kw({project:e}){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(!1),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(null);(0,b.useEffect)(()=>{J.housekeeping(e.id).then(n).catch(e=>c(e.message))},[e.id]);async function l(){i(!0);try{n(await J.checkHousekeeping(e.id)),c(null)}catch(e){c(e.message)}finally{i(!1)}}async function u(t){o(t);try{await J.cleanHelper(e.id,t),n(await J.housekeeping(e.id))}catch(e){alert(e.message)}finally{o(null)}}let d=t?.folders.reduce((e,t)=>e+t.buildBytes,0)??0;return(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsxs)(`div`,{className:`section-head`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Storage & backups`}),(0,z.jsxs)(`p`,{children:[`Symbio backs up its state every day (the last 7 days, in `,(0,z.jsx)(`code`,{children:`~/.symbio/backups`}),`) and checks once a day for work that exists only on this computer and for build outputs piling up in helpers' folders. When it finds either, you and core are told.`]})]}),(0,z.jsxs)(`button`,{className:`btn sm`,onClick:l,disabled:r,children:[(0,z.jsx)(ep,{size:13,className:r?`spin`:void 0}),r?`Checking…`:`Check now`]})]}),s&&(0,z.jsx)(`div`,{style:{padding:12},children:(0,z.jsx)(`div`,{className:`error`,children:s})}),t?(0,z.jsxs)(`div`,{className:`stack`,style:{padding:16,gap:16},children:[(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Last backup`}),(0,z.jsx)(`div`,{className:`small`,children:t.lastBackup??`Not yet: the first one runs a few minutes after Symbio starts.`})]}),(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Work only on this computer`}),t.remote?t.unpushed.length===0?(0,z.jsxs)(`div`,{className:`small`,children:[`Everything is on the remote (`,t.remote,`).`]}):(0,z.jsx)(`div`,{className:`list-compact`,children:t.unpushed.map(e=>(0,z.jsxs)(`div`,{className:`small`,children:[(0,z.jsx)(`code`,{children:e.branch}),` — `,e.commits,` commit`,e.commits===1?``:`s`,` not on `,t.remote,(0,z.jsxs)(`span`,{className:`subtle`,children:[` · latest: `,e.latest]})]},e.branch))}):(0,z.jsx)(`div`,{className:`small subtle`,children:`This project has no git remote, so there's nowhere to push to.`})]}),(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsxs)(`span`,{children:[`Helpers' folders`,d>0?` · ${Gw(d)} of build outputs`:``]}),t.folders.length===0?(0,z.jsx)(`div`,{className:`small subtle`,children:`No helper folders.`}):(0,z.jsxs)(`table`,{className:`usage-table`,children:[(0,z.jsx)(`thead`,{children:(0,z.jsxs)(`tr`,{children:[(0,z.jsx)(`th`,{children:`Helper`}),(0,z.jsx)(`th`,{className:`num`,children:`Folder`}),(0,z.jsx)(`th`,{className:`num`,children:`Build outputs`}),(0,z.jsx)(`th`,{})]})}),(0,z.jsx)(`tbody`,{children:t.folders.map(e=>(0,z.jsxs)(`tr`,{children:[(0,z.jsxs)(`td`,{children:[e.name,` `,(0,z.jsxs)(`span`,{className:`subtle`,children:[`(`,e.status,`)`]})]}),(0,z.jsx)(`td`,{className:`num tnum`,children:Gw(e.bytes)}),(0,z.jsx)(`td`,{className:`num tnum`,children:e.buildBytes>0?Gw(e.buildBytes):`—`}),(0,z.jsx)(`td`,{className:`num`,children:e.buildBytes>0&&(0,z.jsxs)(`button`,{className:`btn ghost sm`,disabled:a!==null||e.status===`busy`||e.status===`waiting`,title:e.status===`busy`||e.status===`waiting`?`Available when the helper is idle`:`Delete git-ignored build folders (bin, obj, node_modules…); work is never touched`,onClick:()=>u(e.agentId),children:[(0,z.jsx)(cf,{size:13}),a===e.agentId?`Cleaning…`:`Clean`]})})]},e.agentId))})]})]}),(0,z.jsxs)(`div`,{className:`small subtle`,children:[`Checked `,new Date(t.checkedAt).toLocaleString(),`.`]})]}):!s&&(0,z.jsx)(`div`,{className:`section-empty`,children:`Checking… (measuring folders can take a moment)`})]})}function qw({project:e,onChanged:t}){let[n,r]=(0,b.useState)(!1);return(0,z.jsxs)(`div`,{className:`settings-scroll`,children:[(0,z.jsxs)(`div`,{className:`settings-inner`,children:[(0,z.jsx)(Yw,{project:e,onChanged:t}),(0,z.jsx)(Qw,{project:e,onChanged:t}),(0,z.jsx)($w,{project:e,onChanged:t}),(0,z.jsx)(Zw,{project:e,onChanged:t}),(0,z.jsx)(lm,{project:e}),(0,z.jsx)(Kw,{project:e}),(0,z.jsx)(eT,{project:e,onChanged:t}),(0,z.jsx)(`section`,{className:`section danger-zone`,children:(0,z.jsxs)(`div`,{className:`section-head`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Remove project`}),(0,z.jsx)(`p`,{children:`Stops the agents and removes their workspaces. Your files are never touched.`})]}),(0,z.jsxs)(`button`,{className:`btn danger`,onClick:()=>r(!0),children:[(0,z.jsx)(Sp,{size:14}),`Remove…`]})]})})]}),(0,z.jsx)(Vl,{children:n&&(0,z.jsx)(em,{project:e,onClose:()=>r(!1),onRemoved:()=>location.hash=`#/`})})]})}function Jw({dirty:e,saving:t,onSave:n,onReset:r}){return e?(0,z.jsxs)(`div`,{className:`row`,style:{justifyContent:`flex-end`,padding:`10px 12px 4px`},children:[(0,z.jsx)(`button`,{className:`btn ghost sm`,onClick:r,disabled:t,children:`Discard`}),(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:n,disabled:t,children:t?`Saving…`:`Save changes`})]}):null}function Yw({project:e,onChanged:t}){let[n,r]=(0,b.useState)(e.name),[i,a]=(0,b.useState)(!1),o=n.trim()!==e.name&&!!n.trim();async function s(){a(!0);try{t(await J.updateProject(e.id,{name:n.trim()}))}catch(e){alert(e.message)}finally{a(!1)}}return(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsx)(`div`,{className:`section-head`,children:(0,z.jsx)(`div`,{children:(0,z.jsx)(`h2`,{children:`General`})})}),(0,z.jsxs)(`div`,{className:`stack`,style:{padding:16,gap:14},children:[(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Name`}),(0,z.jsx)(`input`,{value:n,onChange:e=>r(e.target.value)})]}),(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Folder`}),(0,z.jsx)(`code`,{className:`muted`,children:e.directory})]}),(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Documentation`}),(0,z.jsx)(`div`,{className:`muted small`,children:e.docsLocation===`private`?(0,z.jsxs)(z.Fragment,{children:[`Private — kept in `,(0,z.jsx)(`code`,{children:`.symbio/docs`}),` and handed to agents by Symbio.`]}):(0,z.jsxs)(z.Fragment,{children:[`In the project — `,(0,z.jsx)(`code`,{children:`AGENTS.md`}),` and `,(0,z.jsx)(`code`,{children:`docs/`}),`.`]})})]})]}),(0,z.jsx)(Jw,{dirty:o,saving:i,onSave:s,onReset:()=>r(e.name)})]})}var Xw=20;function Zw({project:e,onChanged:t}){let n=e.messageLimit??Xw,r=e.renewSessions??`manual`,[i,a]=(0,b.useState)(String(n)),[o,s]=(0,b.useState)(r),[c,l]=(0,b.useState)(!1),u=Number(i),d=i.trim()!==``&&Number.isInteger(u)&&u>=0&&u<=1e3,f=d&&(u!==n||o!==r);async function p(){l(!0);try{t(await J.updateProject(e.id,{messageLimit:u,renewSessions:o}))}catch(e){alert(e.message)}finally{l(!1)}}return(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsx)(`div`,{className:`section-head`,children:(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Team`}),(0,z.jsx)(`p`,{children:`How the agents of this project work together.`})]})}),(0,z.jsxs)(`div`,{className:`stack`,style:{padding:16,gap:14},children:[(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Fresh sessions for helpers`}),(0,z.jsxs)(`div`,{className:`seg`,children:[(0,z.jsx)(`button`,{className:o===`manual`?`on`:``,onClick:()=>s(`manual`),children:`When I ask`}),(0,z.jsx)(`button`,{className:o===`after-task`?`on`:``,onClick:()=>s(`after-task`),children:`After each merged task`})]}),(0,z.jsx)(`span`,{className:`hint`,children:`Long conversations get slow and costly, since every step re-reads them. A fresh session keeps the helper's name, folder, tasks and assets and starts from a handoff note; the old conversation stays readable. "When I ask": use New session in the agent's chat.`})]}),(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Messages two agents may exchange in 30 minutes`}),(0,z.jsx)(`input`,{type:`number`,min:0,max:1e3,value:i,onChange:e=>a(e.target.value),style:{maxWidth:140}}),(0,z.jsx)(`span`,{className:`hint`,children:d&&u===0?`No limit: agents can message each other freely.`:`Guards against two agents going back and forth without progress; task assignments, shared-asset requests and review reports don't count. When two agents reach it, further messages between them wait until older ones are 30 minutes old, and you're told. 0 removes the limit. Default ${Xw}.`})]})]}),(0,z.jsx)(Jw,{dirty:f,saving:c,onSave:p,onReset:()=>{a(String(n)),s(r)}})]})}function Qw({project:e,onChanged:t}){let[n,r]=(0,b.useState)(e.connections),[i,a]=(0,b.useState)(!1),o=JSON.stringify(n)!==JSON.stringify(e.connections);async function s(){a(!0);try{t(await J.updateProject(e.id,{connections:n}))}catch(e){alert(e.message)}finally{a(!1)}}return(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsx)(`div`,{className:`section-head`,children:(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Connections`}),(0,z.jsxs)(`p`,{children:[`GitHub accounts and servers this project's agents may use. They act through Symbio and never see the credentials. With`,` `,(0,z.jsx)(`strong`,{children:`Ask me`}),`, every push, deploy or remote command waits for your approval.`]})]})}),(0,z.jsx)(`div`,{style:{padding:12},children:(0,z.jsx)(Ip,{value:n,onChange:r})}),(0,z.jsx)(Jw,{dirty:o,saving:i,onSave:s,onReset:()=>r(e.connections)})]})}function $w({project:e,onChanged:t}){let[n,r]=(0,b.useState)(e.allowedModels),[i,a]=(0,b.useState)(e.coordinatorModel),[o,s]=(0,b.useState)(!1),c=i!==e.coordinatorModel||JSON.stringify(n)!==JSON.stringify(e.allowedModels);async function l(){s(!0);try{t(await J.updateProject(e.id,{allowedModels:n,coordinatorModel:i}))}catch(e){alert(e.message)}finally{s(!1)}}return(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsx)(`div`,{className:`section-head`,children:(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Models`}),(0,z.jsx)(`p`,{children:`Agents may use any selected model and switch to the next one when a model fails. Adding a model also resumes agents that got stuck.`})]})}),(0,z.jsx)(`div`,{style:{padding:12},children:(0,z.jsx)(Bp,{allowed:n,coordinator:i,onChange:(e,t)=>{r(e),a(t)}})}),(0,z.jsx)(Jw,{dirty:c&&n.length>0&&!!i,saving:o,onSave:l,onReset:()=>{r(e.allowedModels),a(e.coordinatorModel)}})]})}function eT({project:e,onChanged:t}){async function n(n,r){try{t(await J.updateProject(e.id,{allowedPatterns:e.allowedPatterns.filter(e=>e.action!==n||e.pattern!==r)}))}catch(e){alert(e.message)}}return(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsx)(`div`,{className:`section-head`,children:(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Always allowed`}),(0,z.jsx)(`p`,{children:`Permission requests you answered with “Always allow”. Matching requests are approved automatically.`})]})}),e.allowedPatterns.length===0?(0,z.jsx)(`div`,{className:`section-empty`,children:`Nothing yet.`}):(0,z.jsx)(`div`,{className:`section-body`,children:e.allowedPatterns.map(e=>(0,z.jsxs)(`div`,{className:`list-row`,children:[(0,z.jsx)(`span`,{className:`tag`,children:e.action}),(0,z.jsx)(`code`,{className:`grow`,children:e.pattern}),(0,z.jsxs)(`button`,{className:`btn ghost sm`,onClick:()=>n(e.action,e.pattern),title:`Ask me again for these`,children:[(0,z.jsx)(Ep,{size:13}),`Revoke`]})]},`${e.action}:${e.pattern}`))})]})}function tT({projectId:e}){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)([]),[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(null),[l,u]=(0,b.useState)(null),[d,f]=(0,b.useState)(!1),[p,m]=(0,b.useState)(`chat`),[h,g]=(0,b.useState)(!1),[_,v]=(0,b.useState)(!1),y=Aw(e),x=Nw(t,y,a);if((0,b.useEffect)(()=>{let t=()=>J.project(e).then(e=>{n(e),c(null)}).catch(e=>c(e.message)),r=()=>J.assets(e).then(i).catch(()=>{}),a=()=>J.plan(e).then(o).catch(()=>{});return t(),r(),a(),Pp(i=>{i.type===`project.updated`&&i.projectId===e&&t(),i.type===`assets.updated`&&i.projectId===e&&r(),i.type===`plan.updated`&&i.projectId===e&&a(),i.type===`agent.status`&&i.projectId===e&&n(e=>e&&{...e,agents:e.agents.map(e=>e.id===i.agentId?{...e,status:i.status}:e)})})},[e]),s)return(0,z.jsx)(`div`,{className:`page-inner`,children:(0,z.jsx)(`div`,{className:`error`,children:s})});if(!t)return null;let S=t.agents.find(e=>e.id===l)??t.agents.find(e=>e.role===`coordinator`),C=t.agents.filter(e=>e.status!==`stopped`),w=t.agents.filter(e=>e.status===`stopped`),T=C.filter(e=>e.problem),E=e=>e===null?`core`:t.agents.find(t=>t.id===e)?.name??`?`,D=a?.tasks.filter(e=>e.status===`done`).length??0,O=e=>{u(e.id),m(`chat`)};async function ee(){f(!0);try{n((await J.start(t.id)).project)}catch(e){c(e.message)}finally{f(!1)}}let te=[{id:`chat`,label:S&&S.role!==`coordinator`?`Chat · ${S.name}`:`Chat`,icon:(0,z.jsx)(Lf,{size:14})},{id:`plan`,label:`Plan`,icon:(0,z.jsx)(bp,{size:14}),extra:a?.status===`proposed`?(0,z.jsxs)(U.span,{className:`tab-alert`,initial:{scale:0},animate:{scale:1},title:`A plan is waiting for your approval`,children:[(0,z.jsx)(`span`,{className:`tab-alert-dot`}),`Review`]}):a&&a.status!==`none`&&a.tasks.length>0?(0,z.jsxs)(`span`,{className:`count`,children:[D,`/`,a.tasks.length]}):null},{id:`messages`,label:`Messages`,icon:(0,z.jsx)(zf,{size:14})},{id:`docs`,label:`Docs`,icon:(0,z.jsx)(Dd,{size:14})},{id:`settings`,label:`Settings`,icon:(0,z.jsx)(mp,{size:14})}];return(0,z.jsxs)(`div`,{className:`project-view`,children:[(0,z.jsxs)(`aside`,{className:`side`,children:[(0,z.jsxs)(`div`,{className:`side-scroll`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`div`,{className:`side-group-title`,children:[`Team`,(0,z.jsx)(`span`,{className:`tnum`,children:C.length})]}),(0,z.jsx)(Vl,{initial:!1,children:C.map(e=>(0,z.jsx)(nT,{agent:e,active:p===`chat`&&S?.id===e.id,onClick:()=>O(e)},e.id))}),t.agents.length===0&&(0,z.jsx)(`div`,{style:{padding:`4px 8px`},children:(0,z.jsx)(`button`,{className:`btn primary block`,onClick:ee,disabled:d,children:d?`Starting…`:`Start core`})}),w.length>0&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`button`,{className:`stopped-toggle`,onClick:()=>v(e=>!e),children:[_?(0,z.jsx)(Fd,{size:13}):(0,z.jsx)(Ld,{size:13}),w.length,` stopped`]}),_&&w.map(e=>(0,z.jsx)(nT,{agent:e,active:p===`chat`&&S?.id===e.id,onClick:()=>O(e)},e.id))]})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`div`,{className:`side-group-title`,children:`Shared assets`}),r.length===0?(0,z.jsx)(`div`,{className:`subtle small`,style:{padding:`0 8px`},children:`None declared yet.`}):r.map(e=>(0,z.jsxs)(`div`,{className:`asset-row ${e.holder?`held`:``}`,title:e.description,children:[e.holder?(0,z.jsx)(Nf,{size:13}):(0,z.jsx)(jf,{size:13}),(0,z.jsxs)(`div`,{className:`grow`,children:[(0,z.jsx)(`div`,{className:`asset-name ellipsis`,children:e.name}),(0,z.jsxs)(`div`,{className:`asset-sub`,children:[e.holder?`Held by ${E(e.holder)}`:`Free`,e.queue.length>0&&` · ${e.queue.length} waiting`]})]})]},e.name))]})]}),(0,z.jsxs)(`div`,{className:`side-foot`,children:[(0,z.jsx)(cm,{project:t,onOpen:()=>{m(`settings`),setTimeout(()=>document.getElementById(`usage`)?.scrollIntoView({behavior:`smooth`,block:`start`}),150)}}),t.agents.length>0&&(0,z.jsxs)(`button`,{className:`btn sm block`,onClick:()=>(t.paused?J.resumeTeam(t.id):J.pauseTeam(t.id)).then(n).catch(e=>alert(e.message)),title:t.paused?`Deliver held messages and let agents continue`:`Interrupt working agents and hold their messages`,children:[t.paused?(0,z.jsx)(qf,{size:13}):(0,z.jsx)(Uf,{size:13}),t.paused?`Resume team`:`Pause team`]})]})]}),(0,z.jsxs)(`section`,{className:`main`,children:[(0,z.jsxs)(`div`,{className:`main-head`,children:[(0,z.jsx)(`div`,{className:`tabs`,children:te.map(e=>(0,z.jsxs)(`button`,{className:`tab ${p===e.id?`active`:``}`,onClick:()=>m(e.id),children:[e.icon,e.label,e.extra,p===e.id&&(0,z.jsx)(U.span,{layoutId:`tab-underline`,className:`tab-underline`,transition:{duration:.15}})]},e.id))}),(0,z.jsxs)(`div`,{className:`main-actions`,children:[x.count>0&&(0,z.jsxs)(U.button,{className:`needs-you`,onClick:()=>g(!0),initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},children:[`Needs you`,(0,z.jsx)(`span`,{className:`count`,children:x.count})]}),(0,z.jsx)(Qp,{project:t,onRemoved:()=>location.hash=`#/`})]})]}),t.paused&&(0,z.jsxs)(`div`,{className:`banner blue`,children:[(0,z.jsx)(Uf,{size:15}),(0,z.jsxs)(`div`,{className:`grow`,children:[(0,z.jsx)(`strong`,{children:`The team is paused.`}),` `,(0,z.jsx)(`span`,{className:`muted`,children:t.heldMessages?.length?`${t.heldMessages.length} message(s) between agents will be delivered when you resume.`:`Agents won't start anything on their own; you can still talk to them.`})]}),(0,z.jsxs)(`button`,{className:`btn sm`,onClick:()=>J.resumeTeam(t.id).then(n).catch(e=>alert(e.message)),children:[(0,z.jsx)(qf,{size:13}),`Resume`]})]}),T.length>0&&(0,z.jsxs)(`div`,{className:`banner red`,children:[(0,z.jsx)(zd,{size:15}),(0,z.jsxs)(`div`,{className:`grow ellipsis`,title:T[0].problem??``,children:[(0,z.jsxs)(`strong`,{children:[T.map(e=>e.name).join(`, `),` can't continue`]}),` `,(0,z.jsx)(`span`,{className:`muted`,children:`— every allowed model failed.`})]}),(0,z.jsx)(`button`,{className:`btn sm`,onClick:()=>J.retryModels(t.id).catch(e=>alert(e.message)),children:`Retry now`}),(0,z.jsx)(`button`,{className:`btn primary sm`,onClick:()=>m(`settings`),children:`Add a model`})]}),(0,z.jsx)(`div`,{className:`main-body`,children:p===`docs`?(0,z.jsx)(Dw,{project:t}):p===`plan`?(0,z.jsx)(Bw,{project:t,plan:a}):p===`messages`?(0,z.jsx)(jw,{project:t,log:y,onOpenAgent:e=>{u(e),m(`chat`)}}):p===`settings`?(0,z.jsx)(qw,{project:t,onChanged:n},t.id):S?(0,z.jsx)(_w,{project:t,agent:S},S.id):(0,z.jsx)(Yp,{icon:(0,z.jsx)(Lf,{size:20}),title:`Start the conversation`,children:`Start core to begin discussing the project.`})})]}),(0,z.jsx)(Vl,{children:h&&(0,z.jsx)(Pw,{project:t,plan:a,data:x,onClose:()=>g(!1),onOpenAgent:e=>{u(e),m(`chat`),g(!1)},onOpenTab:e=>{m(e),g(!1)}})})]})}function nT({agent:e,active:t,onClick:n}){let r=e.problem?`Needs attention`:e.status===`idle`?e.purpose??(e.role===`coordinator`?`Coordinates the team`:`Idle`):Wp(e.status),i=e.problem?`problem`:e.status===`busy`?`working`:e.status===`waiting`?`waiting`:``;return(0,z.jsxs)(U.button,{layout:!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:`agent-row ${t?`active`:``}`,onClick:n,title:[e.purpose,e.model,e.usage&&`${Dp(Op(e.usage))} tokens`].filter(Boolean).join(`
|
|
51
|
-
`),children:[(0,z.jsx)(Up,{name:e.name,status:e.problem?`error`:e.status}),(0,z.jsxs)(`span`,{className:`grow`,children:[(0,z.jsxs)(`span`,{className:`agent-name`,children:[e.name,e.role===`coordinator`&&(0,z.jsx)(`span`,{className:`tag accent`,children:`lead`})]}),(0,z.jsx)(`span`,{className:`agent-sub ellipsis ${i}`,style:{display:`block`},children:r})]})]})}function rT(){let[e,t]=(0,b.useState)(null),[n,r]=(0,b.useState)([]),[i,a]=(0,b.useState)(null),[o,s]=(0,b.useState)(!1),[c,l]=(0,b.useState)(null),u=()=>J.providers().then(e=>{t(e.connected),r(e.catalog),a(null)}).catch(e=>a(e.message));return(0,b.useEffect)(()=>{u()},[]),(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsxs)(`div`,{className:`section-head`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Model providers`}),(0,z.jsx)(`p`,{children:`The AI services OpenCode is signed in to. Every model you can pick for a project comes from one of these; remove the ones you don't use to keep that list short. Keys are handed to OpenCode and not kept by Symbio.`})]}),(0,z.jsxs)(`button`,{className:`btn sm`,onClick:()=>s(!0),disabled:!n.length,children:[(0,z.jsx)(Xf,{size:13}),`Add provider`]})]}),i&&(0,z.jsx)(`div`,{style:{padding:12},children:(0,z.jsx)(`div`,{className:`error`,children:i})}),!e&&!i&&(0,z.jsx)(`div`,{className:`section-empty`,children:`Loading providers…`}),e&&(0,z.jsx)(`div`,{className:`section-body`,children:e.map(e=>(0,z.jsxs)(`div`,{className:`list-row`,children:[(0,z.jsx)(`span`,{className:`conn-icon`,children:(0,z.jsx)(kd,{size:16})}),(0,z.jsxs)(`div`,{className:`grow`,children:[(0,z.jsx)(`div`,{className:`list-title`,children:e.name}),(0,z.jsxs)(`div`,{className:`list-sub ellipsis`,children:[e.models,` model`,e.models===1?``:`s`,` · `,iT(e),e.usedBy.length>0&&` · used by ${e.usedBy.join(`, `)}`]})]}),e.logins.length>0?(0,z.jsx)(`button`,{className:`btn ghost icon sm`,onClick:()=>l(e),title:`Remove`,children:(0,z.jsx)(Sp,{size:13})}):(0,z.jsx)(`span`,{className:`subtle small`,title:aT(e),children:`Can't remove here`})]},e.id))}),(0,z.jsxs)(Vl,{children:[o&&(0,z.jsx)(sT,{catalog:n,connected:new Set(e?.map(e=>e.id)),onClose:()=>s(!1),onAdded:()=>{s(!1),u()}}),c&&(0,z.jsx)(oT,{provider:c,onClose:()=>l(null),onRemoved:()=>{l(null),u()}})]})]})}function iT(e){return e.source===`login`?e.logins.map(e=>e.label).join(`, `):e.source===`config`?`from your OpenCode config file`:e.source===`environment`?`from an environment variable`:`built in`}function aT(e){return e.source===`config`?`Defined in OpenCode's config file (opencode.jsonc). Remove it there.`:e.source===`environment`?`Comes from an environment variable on this computer. Remove the variable to disconnect it.`:`This provider is built into OpenCode.`}function oT({provider:e,onClose:t,onRemoved:n}){let[r,i]=(0,b.useState)(!1),[a,o]=(0,b.useState)(null);async function s(){i(!0);try{for(let t of e.logins)await J.removeProviderLogin(t.id);n()}catch(e){o(e.message),i(!1)}}return(0,z.jsxs)(qp,{title:`Remove ${e.name}?`,onClose:t,footer:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`button`,{className:`btn ghost`,onClick:t,children:`Cancel`}),(0,z.jsx)(`button`,{className:`btn danger-solid`,onClick:s,disabled:r,children:r?`Removing…`:`Remove`})]}),children:[(0,z.jsxs)(`p`,{children:[`OpenCode signs out of `,e.name,` and deletes its saved login (`,e.logins.map(e=>e.label).join(`, `),`). Its`,` `,e.models,` models leave the model list. To use it again, add it back with its key or sign-in.`]}),e.usedBy.length>0&&(0,z.jsxs)(`div`,{className:`notice`,children:[`Selected in `,e.usedBy.join(`, `),`. Agents there switch to the project's other models; if it has none left, they stop and ask for one.`]}),a&&(0,z.jsx)(`div`,{className:`error`,children:a})]})}function sT({catalog:e,connected:t,onClose:n,onAdded:r}){let[i,a]=(0,b.useState)(``),[o,s]=(0,b.useState)(null),c=(0,b.useMemo)(()=>{let t=i.trim().toLowerCase();return e.filter(e=>!t||e.name.toLowerCase().includes(t)||e.id.includes(t))},[e,i]);return o?(0,z.jsx)(uT,{entry:o,onBack:()=>s(null),onClose:n,onAdded:r}):(0,z.jsx)(qp,{title:`Add a model provider`,subtitle:`Pick the service you have an account or API key for.`,onClose:n,children:(0,z.jsxs)(`div`,{className:`model-picker`,children:[(0,z.jsxs)(`div`,{className:`model-picker-head`,children:[(0,z.jsx)(cp,{size:14,className:`subtle`}),(0,z.jsx)(`input`,{autoFocus:!0,placeholder:`Search ${e.length} providers…`,value:i,onChange:e=>a(e.target.value)})]}),(0,z.jsxs)(`div`,{className:`model-groups`,style:{maxHeight:360},children:[c.map(e=>(0,z.jsxs)(`div`,{className:`model-row`,onClick:()=>s(e),children:[(0,z.jsx)(`span`,{className:`model-name`,children:e.name}),t.has(e.id)&&(0,z.jsx)(`span`,{className:`tag green`,children:`Connected`}),(0,z.jsx)(`span`,{className:`subtle small`,children:e.methods.map(e=>e.type===`key`?`API key`:`Sign-in`).filter(cT).join(` · `)})]},e.id)),c.length===0&&(0,z.jsx)(`div`,{className:`section-empty`,children:`No provider matches.`})]})]})})}var cT=(e,t,n)=>n.indexOf(e)===t;function lT(e,t){return e.filter(e=>!e.hidden&&(e.when??[]).every(e=>e.op===`eq`?t[e.key]===e.value:t[e.key]!==e.value))}function uT({entry:e,onBack:t,onClose:n,onAdded:r}){let[i,a]=(0,b.useState)(0),o=e.methods[i],[s,c]=(0,b.useState)({}),[l,u]=(0,b.useState)(``),[d,f]=(0,b.useState)(null),[p,m]=(0,b.useState)(``),[h,g]=(0,b.useState)(!1),[_,v]=(0,b.useState)(null),y=(0,b.useRef)(null);(0,b.useEffect)(()=>{let e={};for(let t of o.form)t.default===void 0?t.options?.length&&(e[t.key]=t.options[0].value):e[t.key]=t.default;c(e),v(null)},[i]),(0,b.useEffect)(()=>{if(y.current=d,!d||d.mode!==`auto`)return;let t=setInterval(async()=>{let n=await J.providerOauthStatus(e.id,d.attemptID).catch(()=>null);n&&n.status!==`pending`&&(clearInterval(t),y.current=null,n.status===`complete`?r():(f(null),v(n.status===`expired`?`The sign-in expired. Try again.`:n.message||`The sign-in failed.`)))},2e3);return()=>clearInterval(t)},[d]),(0,b.useEffect)(()=>()=>void(y.current&&J.cancelProviderOauth(e.id,y.current.attemptID).catch(()=>{})),[]);let x=lT(o.form,s),S=()=>{let e={},t=new Set([...x.map(e=>e.key),...o.form.filter(e=>e.hidden).map(e=>e.key)]);for(let[n,r]of Object.entries(s))t.has(n)&&r.trim()&&(e[n]=r.trim());return e},C=x.some(e=>e.required&&!s[e.key]?.trim())||o.type===`key`&&!l.trim(),w=x.find(e=>e.pattern&&s[e.key]&&!new RegExp(e.pattern).test(s[e.key]));async function T(){g(!0),v(null);try{if(o.type===`key`)await J.connectProviderKey(e.id,l,S()),r();else if(d)await J.completeProviderOauth(e.id,d.attemptID,p),y.current=null,r();else{let t=await J.beginProviderOauth(e.id,o.id,S());f(t),window.open(t.url,`_blank`,`noopener`)}}catch(e){v(e.message)}finally{g(!1)}}let E=o.type===`key`?h?`Connecting…`:`Connect`:d?h?`Finishing…`:`Finish`:h?`Starting…`:`Sign in`;return(0,z.jsxs)(qp,{title:`Connect ${e.name}`,onClose:n,footer:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`button`,{className:`btn ghost`,onClick:t,disabled:h,children:[(0,z.jsx)(xd,{size:14}),`Back`]}),!(d&&d.mode===`auto`)&&(0,z.jsx)(`button`,{className:`btn primary`,onClick:T,disabled:h||(d?!p.trim():C||!!w),children:E})]}),children:[d?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`p`,{children:[`Finish signing in to `,e.name,` in your browser. If it didn't open, use this link:`,` `,(0,z.jsxs)(`a`,{href:d.url,target:`_blank`,rel:`noopener noreferrer`,children:[d.url,` `,(0,z.jsx)(uf,{size:12})]})]}),d.instructions&&(0,z.jsx)(`div`,{className:`notice`,children:d.instructions}),d.mode===`code`?(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Code`}),(0,z.jsx)(`input`,{autoFocus:!0,value:p,onChange:e=>m(e.target.value),placeholder:`Paste the code shown after signing in`})]}):(0,z.jsxs)(`div`,{className:`row subtle small`,children:[(0,z.jsx)(kf,{size:13,className:`spin`}),` Waiting for the sign-in to finish…`]})]}):(0,z.jsxs)(z.Fragment,{children:[e.methods.length>1&&(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`How to connect`}),(0,z.jsx)(`div`,{className:`seg`,children:e.methods.map((e,t)=>(0,z.jsx)(`button`,{className:t===i?`on`:``,onClick:()=>a(t),children:e.label},t))})]}),x.map(e=>(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:e.title}),e.options?(0,z.jsx)(`select`,{value:s[e.key]??``,onChange:t=>c({...s,[e.key]:t.target.value}),children:e.options.map(e=>(0,z.jsxs)(`option`,{value:e.value,children:[e.label,e.description?` — ${e.description}`:``]},e.value))}):(0,z.jsx)(`input`,{value:s[e.key]??``,onChange:t=>c({...s,[e.key]:t.target.value}),placeholder:e.placeholder}),e.description&&(0,z.jsx)(`span`,{className:`hint`,children:e.description}),w===e&&(0,z.jsx)(`span`,{className:`hint`,style:{color:`var(--red)`},children:`This doesn't look right.`})]},e.key)),o.type===`key`?(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`API key`}),(0,z.jsx)(`input`,{type:`password`,autoFocus:x.length===0,value:l,onChange:e=>u(e.target.value)})]}):(0,z.jsxs)(`p`,{className:`subtle`,children:[`You'll sign in on `,e.name,`'s website, then come back here.`]}),e.other.length>0&&(0,z.jsxs)(`p`,{className:`subtle small`,children:[`Also possible outside Symbio: `,e.other.join(`; `),`.`]})]}),_&&(0,z.jsx)(`div`,{className:`error`,children:_})]})}function dT(){let[e,t]=(0,b.useState)(null),n=()=>J.remote().then(t).catch(()=>{});return(0,b.useEffect)(()=>(n(),Pp(e=>{e.type===`remote.updated`&&n()})),[]),[e,n]}var fT=e=>`${e.slice(0,4)}-${e.slice(4)}`;function pT(){let[e]=dT(),[t,n]=(0,b.useState)(!1);if(!e?.active)return null;let r=e.code!==void 0;async function i(){confirm(r?`Turn remote access off? Remote sessions end and the link stops working.`:`Turn remote access off? This page stops working right away.`)&&(n(!0),await J.stopRemote().catch(e=>alert(e.message)),n(!1))}return(0,z.jsxs)(`div`,{className:`remote-banner`,children:[(0,z.jsx)(xf,{size:14}),(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`strong`,{children:`Remote access is on.`}),` `,r?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,children:e.url}),e.code&&(0,z.jsxs)(z.Fragment,{children:[` · code `,(0,z.jsx)(`code`,{className:`remote-code`,children:fT(e.code)})]}),` · `,e.sessions,` remote session`,e.sessions===1?``:`s`]}):`You're using Symbio through a temporary link.`]}),(0,z.jsx)(`span`,{className:`spacer`}),(0,z.jsxs)(`button`,{className:`btn sm`,onClick:i,disabled:t,children:[(0,z.jsx)(Qf,{size:13}),t?`Turning off…`:`Turn off`]})]})}function mT(){let[e,t]=dT(),[n,r]=(0,b.useState)(!1),[i,a]=(0,b.useState)(null),o=e?.code!==void 0;async function s(){r(!0),a(null);try{e?.active?await J.stopRemote():await J.startRemote(),t()}catch(e){a(e.message)}finally{r(!1)}}return(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsxs)(`div`,{className:`section-head`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Remote access`}),(0,z.jsxs)(`p`,{children:[`Opens a temporary Cloudflare link to this Symbio so you can use it from another device. Visitors need the access code; after 10 wrong codes the link is shut down. Whoever gets in controls your agents, which run commands on this computer: share the link and code only with yourself, and turn it off when you're done. Also available as `,(0,z.jsx)(`code`,{children:`sym remote`}),`.`]})]}),o&&(0,z.jsxs)(`button`,{className:`btn sm ${e?.active?``:`primary`}`,onClick:s,disabled:n||!e,children:[(0,z.jsx)(Qf,{size:13}),n?e?.active?`Turning off…`:`Opening…`:e?.active?`Turn off`:`Turn on`]})]}),(0,z.jsxs)(`div`,{className:`stack`,style:{padding:16,gap:10},children:[i&&(0,z.jsx)(`div`,{className:`error`,children:i}),e?.active?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Link`}),(0,z.jsxs)(`div`,{className:`row`,style:{gap:8},children:[(0,z.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noreferrer`,className:`mono small`,children:e.url}),(0,z.jsx)(`button`,{className:`btn ghost icon xs`,title:`Copy`,onClick:()=>navigator.clipboard.writeText(e.url),children:(0,z.jsx)(tf,{size:12})})]})]}),e.code&&(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Access code`}),(0,z.jsx)(`code`,{className:`remote-code big`,children:fT(e.code)})]}),(0,z.jsxs)(`div`,{className:`small subtle`,children:[`On since `,new Date(e.startedAt).toLocaleString(),` · `,e.sessions,` remote session`,e.sessions===1?``:`s`,`. A new link and code are made each time.`]})]}):(0,z.jsxs)(`div`,{className:`small subtle`,children:[`Off.`,e?.lastStop?` Last turned off ${new Date(e.lastStop.at).toLocaleString()}: ${e.lastStop.reason}.`:``,n&&` Opening the link (the first time, cloudflared is downloaded first)…`]})]})]})}function hT(){let e=sessionStorage.getItem(`symbio:previous-page`);location.hash=e&&!e.startsWith(`#/settings`)?e:`#/`}function gT(){let[e,t]=(0,b.useState)(null),[n,r]=(0,b.useState)(null),[i,a]=(0,b.useState)(null),[o,s]=(0,b.useState)(null),c=()=>J.connections().then(t).catch(e=>s(e.message));(0,b.useEffect)(()=>{c()},[]);async function l(e){a(e);try{await J.testConnection(e),await c()}finally{a(null)}}async function u(e){confirm(`Delete the connection “${e.name}”? Its stored credentials are deleted too. Projects using it lose access.`)&&(await J.deleteConnection(e.id).catch(e=>alert(e.message)),await c())}return(0,z.jsxs)(`div`,{className:`page-inner`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`button`,{className:`back`,onClick:hT,children:[(0,z.jsx)(xd,{size:14}),`Back`]}),(0,z.jsx)(`div`,{className:`page-head`,children:(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h1`,{children:`Settings`}),(0,z.jsx)(`p`,{children:`Set these once — every project can use them.`})]})})]}),(0,z.jsxs)(`section`,{className:`section`,children:[(0,z.jsxs)(`div`,{className:`section-head`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Connections`}),(0,z.jsx)(`p`,{children:`GitHub accounts and servers agents can use to push and deploy. Credentials are encrypted on this computer, tied to your Windows login, and never shown to agents — they ask Symbio to act, and Symbio uses the credentials itself.`})]}),(0,z.jsxs)(`div`,{className:`row`,children:[(0,z.jsxs)(`button`,{className:`btn sm`,onClick:()=>r(`new-github`),children:[(0,z.jsx)(Xf,{size:13}),`GitHub`]}),(0,z.jsxs)(`button`,{className:`btn sm`,onClick:()=>r(`new-server`),children:[(0,z.jsx)(Xf,{size:13}),`Server`]})]})]}),o&&(0,z.jsx)(`div`,{style:{padding:12},children:(0,z.jsx)(`div`,{className:`error`,children:o})}),e?.length===0&&(0,z.jsx)(Yp,{icon:(0,z.jsx)(Jf,{size:20}),title:`No connections yet`,children:`Add a GitHub account or a server (SSH) so agents can push code or deploy for you.`}),e&&e.length>0&&(0,z.jsx)(`div`,{className:`section-body`,children:e.map(e=>(0,z.jsxs)(`div`,{className:`list-row`,children:[(0,z.jsx)(Fp,{type:e.type}),(0,z.jsxs)(`div`,{className:`grow`,children:[(0,z.jsx)(`div`,{className:`list-title`,children:e.name}),(0,z.jsx)(`div`,{className:`list-sub ellipsis`,children:e.type===`github`?e.account?`GitHub · ${e.account}`:`GitHub · not tested yet`:`${e.username}@${e.host}${e.port===22?``:`:${e.port}`} · ${e.auth===`password`?`password`:e.keyPath?`key file ${e.keyPath}`:`stored key`}`}),e.lastTest&&(0,z.jsxs)(`div`,{className:`conn-test ${e.lastTest.ok?`ok`:`bad`}`,children:[e.lastTest.ok?(0,z.jsx)(Nd,{size:12}):(0,z.jsx)(Ep,{size:12}),e.lastTest.message]})]}),(0,z.jsxs)(`button`,{className:`btn sm`,onClick:()=>l(e.id),disabled:i===e.id,children:[(0,z.jsx)(gp,{size:13}),i===e.id?`Testing…`:`Test`]}),(0,z.jsx)(`button`,{className:`btn ghost icon sm`,onClick:()=>r(e),title:`Edit`,children:(0,z.jsx)(Gf,{size:13})}),(0,z.jsx)(`button`,{className:`btn ghost icon sm`,onClick:()=>u(e),title:`Delete`,children:(0,z.jsx)(Sp,{size:13})})]},e.id))})]}),(0,z.jsx)(rT,{}),(0,z.jsx)(dm,{}),(0,z.jsx)(mT,{}),(0,z.jsx)(Vl,{children:n&&(0,z.jsx)(_T,{existing:typeof n==`string`?null:n,type:typeof n==`string`?n===`new-github`?`github`:`server`:n.type,onClose:()=>r(null),onSaved:async e=>{r(null),await c(),l(e)}})})]})}function _T({existing:e,type:t,onClose:n,onSaved:r}){let i=e?.type===`server`?e:null,[a,o]=(0,b.useState)(e?.name??``),[s,c]=(0,b.useState)(``),[l,u]=(0,b.useState)(i?.host??``),[d,f]=(0,b.useState)(String(i?.port??22)),[p,m]=(0,b.useState)(i?.username??``),[h,g]=(0,b.useState)(i?.auth??`key`),[_,v]=(0,b.useState)(i?.keyPath?`file`:i?`paste`:`file`),[y,x]=(0,b.useState)(i?.keyPath??`~/.ssh/id_ed25519`),[S,C]=(0,b.useState)(``),[w,T]=(0,b.useState)(``),[E,D]=(0,b.useState)(``),[O,ee]=(0,b.useState)(!1),[te,ne]=(0,b.useState)(null),re=t=>!!e?.secrets?.[t],k=e=>re(e)?`Saved — leave empty to keep`:``;async function ie(){ee(!0),ne(null);let n=t===`github`?{type:t,name:a,token:s}:{type:t,name:a,host:l,port:Number(d)||22,username:p,auth:h,keyPath:h===`key`&&_===`file`?y:null,privateKey:h===`key`&&_===`paste`?S:void 0,passphrase:h===`key`?w:void 0,password:h===`password`?E:void 0};try{r((e?await J.updateConnection(e.id,n):await J.createConnection(n)).id)}catch(e){ne(e.message),ee(!1)}}return(0,z.jsxs)(qp,{title:`${e?`Edit`:`New`} ${t===`github`?`GitHub connection`:`server connection`}`,onClose:n,footer:(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`button`,{className:`btn ghost`,onClick:n,children:`Cancel`}),(0,z.jsx)(`button`,{className:`btn primary`,onClick:ie,disabled:O||!a.trim(),children:O?`Saving…`:`Save and test`})]}),children:[(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Name`}),(0,z.jsx)(`input`,{autoFocus:!0,value:a,onChange:e=>o(e.target.value),placeholder:t===`github`?`My GitHub`:`My VPS`})]}),t===`github`?(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Personal access token`}),(0,z.jsx)(`input`,{type:`password`,value:s,onChange:e=>c(e.target.value),placeholder:k(`token`)||`github_pat_… or ghp_…`}),(0,z.jsx)(`span`,{className:`hint`,children:`GitHub → Settings → Developer settings → Personal access tokens. A fine-grained token limited to the repositories agents should work on is safest; give it Contents (read & write), Pull requests and Issues as needed.`})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`field-row`,children:[(0,z.jsxs)(`label`,{className:`field`,style:{flex:3},children:[(0,z.jsx)(`span`,{children:`Host`}),(0,z.jsx)(`input`,{value:l,onChange:e=>u(e.target.value),placeholder:`203.0.113.10 or vps.example.com`})]}),(0,z.jsxs)(`label`,{className:`field`,style:{flex:1},children:[(0,z.jsx)(`span`,{children:`Port`}),(0,z.jsx)(`input`,{value:d,onChange:e=>f(e.target.value)})]})]}),(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`User`}),(0,z.jsx)(`input`,{value:p,onChange:e=>m(e.target.value),placeholder:`deploy`})]}),(0,z.jsxs)(`div`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Authentication`}),(0,z.jsxs)(`div`,{className:`seg`,children:[(0,z.jsx)(`button`,{className:h===`key`?`on`:``,onClick:()=>g(`key`),children:`SSH key`}),(0,z.jsx)(`button`,{className:h===`password`?`on`:``,onClick:()=>g(`password`),children:`Password`})]})]}),h===`key`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`div`,{className:`seg`,children:[(0,z.jsx)(`button`,{className:_===`file`?`on`:``,onClick:()=>v(`file`),children:`Key file on this computer`}),(0,z.jsx)(`button`,{className:_===`paste`?`on`:``,onClick:()=>v(`paste`),children:`Paste the key`})]}),_===`file`?(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Key file`}),(0,z.jsx)(`input`,{value:y,onChange:e=>x(e.target.value),placeholder:`~/.ssh/id_ed25519`})]}):(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Private key`}),(0,z.jsx)(`textarea`,{rows:5,className:`mono`,value:S,onChange:e=>C(e.target.value),placeholder:k(`privateKey`)||`-----BEGIN OPENSSH PRIVATE KEY-----`}),(0,z.jsx)(`span`,{className:`hint`,children:`Stored encrypted.`})]}),(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Passphrase (if the key has one)`}),(0,z.jsx)(`input`,{type:`password`,value:w,onChange:e=>T(e.target.value),placeholder:k(`passphrase`)})]})]}):(0,z.jsxs)(`label`,{className:`field`,children:[(0,z.jsx)(`span`,{children:`Password`}),(0,z.jsx)(`input`,{type:`password`,value:E,onChange:e=>D(e.target.value),placeholder:k(`password`)})]})]}),te&&(0,z.jsx)(`div`,{className:`error`,children:te})]})}function vT(){let[e,t]=(0,b.useState)(location.hash);(0,b.useEffect)(()=>{let e=e=>{let n=new URL(e.oldURL).hash||`#/`;n!==location.hash&&sessionStorage.setItem(`symbio:previous-page`,n),t(location.hash)};return addEventListener(`hashchange`,e),()=>removeEventListener(`hashchange`,e)},[]);let n=e.match(/^#\/p\/([\w-]+)/);return n?{page:`project`,id:n[1]}:e.startsWith(`#/settings`)?{page:`settings`}:{page:`home`}}function yT(){let e=vT(),[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(null);(0,b.useEffect)(()=>{J.runtime().then(n).catch(()=>{});let e=setInterval(()=>J.runtime().then(n).catch(()=>{}),3e4),t=Pp(e=>{e.type===`runtime`&&n(t=>({...e,memoryMB:e.memoryMB??t?.memoryMB??null}))});return()=>{clearInterval(e),t()}},[]),(0,b.useEffect)(()=>{if(e.page!==`project`)return i(null);let t=e.id,n=()=>J.project(t).then(e=>i(e.name)).catch(()=>i(null));return n(),Pp(e=>{e.type===`project.updated`&&e.projectId===t&&n()})},[e.page===`project`?e.id:null]);let[a,o]=(0,b.useState)(!1);(0,b.useEffect)(()=>{let e=()=>o(!0);return addEventListener(jp,e),()=>removeEventListener(jp,e)},[]);async function s(){if(!confirm(`Pause every project that has agents working? You can resume each project from its page.`))return;let{paused:e}=await J.pauseAll();alert(e.length?`Paused: ${e.join(`, `)}`:`No agents were working.`)}return a?(0,z.jsx)(`div`,{className:`locked`,children:(0,z.jsxs)(Yp,{icon:(0,z.jsx)(Tf,{size:20}),title:`Open Symbio from its link`,children:[`This page doesn't have Symbio's key, so it can't show your projects. Use the link Symbio printed when it started, or start it again (`,(0,z.jsx)(`code`,{children:`sym`}),` or `,(0,z.jsx)(`code`,{children:`npm start`}),`): it opens the right link for you.`]})}):(0,z.jsxs)(`div`,{className:`app`,children:[(0,z.jsxs)(`header`,{className:`topbar`,children:[(0,z.jsxs)(`a`,{className:`brand`,href:`#/`,children:[(0,z.jsx)(Gp,{}),`Symbio`]}),(0,z.jsxs)(`nav`,{className:`crumbs`,children:[(0,z.jsx)(Ld,{size:14}),e.page===`settings`?(0,z.jsx)(`span`,{className:`current`,children:`Settings`}):e.page===`project`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`a`,{href:`#/`,children:`Projects`}),(0,z.jsx)(Ld,{size:14}),(0,z.jsx)(`span`,{className:`current ellipsis`,children:r??`…`})]}):(0,z.jsx)(`span`,{className:`current`,children:`Projects`})]}),(0,z.jsxs)(`div`,{className:`topbar-actions`,children:[(0,z.jsxs)(`button`,{className:`btn ghost sm`,onClick:s,title:`Pause every project that has agents working`,children:[(0,z.jsx)(Gd,{size:15}),`Pause all`]}),(0,z.jsxs)(`a`,{className:`btn ghost sm ${e.page===`settings`?`active`:``}`,href:`#/settings`,title:`Settings`,children:[(0,z.jsx)(fp,{size:15}),`Settings`]}),(0,z.jsx)(bT,{runtime:t})]})]}),(0,z.jsx)(pT,{}),(0,z.jsx)(Vl,{mode:`wait`,children:(0,z.jsx)(U.main,{className:`page`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.12},children:e.page===`project`?(0,z.jsx)(tT,{projectId:e.id}):e.page===`settings`?(0,z.jsx)(gT,{}):(0,z.jsx)(nm,{runtime:t})},e.page===`project`?e.id:e.page)})]})}function bT({runtime:e}){if(!e)return(0,z.jsx)(`span`,{className:`runtime`,children:`Connecting…`});let t=e.memoryMB?e.memoryMB>=1024?`${(e.memoryMB/1024).toFixed(1)} GB`:`${e.memoryMB} MB`:null,n=e.state===`running`?`OpenCode ${e.version??``}`:e.state===`starting`?`Starting OpenCode…`:e.state===`crashed`?`OpenCode restarting`:`OpenCode stopped`;return(0,z.jsxs)(`span`,{className:`runtime`,title:[e.error,t&&`Memory: ${t}`].filter(Boolean).join(`
|
|
52
|
-
`)||void 0,children:[(0,z.jsx)(`span`,{className:`dot ${e.state}`}),n,t&&e.state===`running`&&(0,z.jsx)(`span`,{className:`subtle tnum`,children:t})]})}(0,H.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(b.StrictMode,{children:(0,z.jsx)(yT,{})}));
|