agent-dealer 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,77 +0,0 @@
1
- (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function a(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(s){if(s.ep)return;s.ep=!0;const c=a(s);fetch(s.href,c)}})();function my(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var To={exports:{}},tr={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Gp;function nb(){if(Gp)return tr;Gp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function a(u,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var h in s)h!=="key"&&(c[h]=s[h])}else c=s;return s=c.ref,{$$typeof:n,type:u,key:f,ref:s!==void 0?s:null,props:c}}return tr.Fragment=l,tr.jsx=a,tr.jsxs=a,tr}var Fp;function lb(){return Fp||(Fp=1,To.exports=nb()),To.exports}var g=lb(),zo={exports:{}},we={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Xp;function ib(){if(Xp)return we;Xp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),k=Symbol.iterator;function v(A){return A===null||typeof A!="object"?null:(A=k&&A[k]||A["@@iterator"],typeof A=="function"?A:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,q={};function T(A,F,w){this.props=A,this.context=F,this.refs=q,this.updater=w||_}T.prototype.isReactComponent={},T.prototype.setState=function(A,F){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,F,"setState")},T.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function V(){}V.prototype=T.prototype;function U(A,F,w){this.props=A,this.context=F,this.refs=q,this.updater=w||_}var ie=U.prototype=new V;ie.constructor=U,z(ie,T.prototype),ie.isPureReactComponent=!0;var W=Array.isArray;function O(){}var ee={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function ce(A,F,w){var ue=w.ref;return{$$typeof:n,type:A,key:F,ref:ue!==void 0?ue:null,props:w}}function M(A,F){return ce(A.type,F,A.props)}function Z(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function K(A){var F={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(w){return F[w]})}var pe=/\/+/g;function ae(A,F){return typeof A=="object"&&A!==null&&A.key!=null?K(""+A.key):F.toString(36)}function Y(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(O,O):(A.status="pending",A.then(function(F){A.status==="pending"&&(A.status="fulfilled",A.value=F)},function(F){A.status==="pending"&&(A.status="rejected",A.reason=F)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function j(A,F,w,ue,ve){var ge=typeof A;(ge==="undefined"||ge==="boolean")&&(A=null);var Re=!1;if(A===null)Re=!0;else switch(ge){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(A.$$typeof){case n:case l:Re=!0;break;case b:return Re=A._init,j(Re(A._payload),F,w,ue,ve)}}if(Re)return ve=ve(A),Re=ue===""?"."+ae(A,0):ue,W(ve)?(w="",Re!=null&&(w=Re.replace(pe,"$&/")+"/"),j(ve,F,w,"",function(rn){return rn})):ve!=null&&(Z(ve)&&(ve=M(ve,w+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(pe,"$&/")+"/")+Re)),F.push(ve)),1;Re=0;var at=ue===""?".":ue+":";if(W(A))for(var Xe=0;Xe<A.length;Xe++)ue=A[Xe],ge=at+ae(ue,Xe),Re+=j(ue,F,w,ge,ve);else if(Xe=v(A),typeof Xe=="function")for(A=Xe.call(A),Xe=0;!(ue=A.next()).done;)ue=ue.value,ge=at+ae(ue,Xe++),Re+=j(ue,F,w,ge,ve);else if(ge==="object"){if(typeof A.then=="function")return j(Y(A),F,w,ue,ve);throw F=String(A),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Re}function $(A,F,w){if(A==null)return A;var ue=[],ve=0;return j(A,ue,"","",function(ge){return F.call(w,ge,ve++)}),ue}function re(A){if(A._status===-1){var F=A._result;F=F(),F.then(function(w){(A._status===0||A._status===-1)&&(A._status=1,A._result=w)},function(w){(A._status===0||A._status===-1)&&(A._status=2,A._result=w)}),A._status===-1&&(A._status=0,A._result=F)}if(A._status===1)return A._result.default;throw A._result}var Ce=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},E={map:$,forEach:function(A,F,w){$(A,function(){F.apply(this,arguments)},w)},count:function(A){var F=0;return $(A,function(){F++}),F},toArray:function(A){return $(A,function(F){return F})||[]},only:function(A){if(!Z(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return we.Activity=y,we.Children=E,we.Component=T,we.Fragment=a,we.Profiler=s,we.PureComponent=U,we.StrictMode=u,we.Suspense=p,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,we.__COMPILER_RUNTIME={__proto__:null,c:function(A){return ee.H.useMemoCache(A)}},we.cache=function(A){return function(){return A.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(A,F,w){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var ue=z({},A.props),ve=A.key;if(F!=null)for(ge in F.key!==void 0&&(ve=""+F.key),F)!fe.call(F,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&F.ref===void 0||(ue[ge]=F[ge]);var ge=arguments.length-2;if(ge===1)ue.children=w;else if(1<ge){for(var Re=Array(ge),at=0;at<ge;at++)Re[at]=arguments[at+2];ue.children=Re}return ce(A.type,ve,ue)},we.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},we.createElement=function(A,F,w){var ue,ve={},ge=null;if(F!=null)for(ue in F.key!==void 0&&(ge=""+F.key),F)fe.call(F,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ve[ue]=F[ue]);var Re=arguments.length-2;if(Re===1)ve.children=w;else if(1<Re){for(var at=Array(Re),Xe=0;Xe<Re;Xe++)at[Xe]=arguments[Xe+2];ve.children=at}if(A&&A.defaultProps)for(ue in Re=A.defaultProps,Re)ve[ue]===void 0&&(ve[ue]=Re[ue]);return ce(A,ge,ve)},we.createRef=function(){return{current:null}},we.forwardRef=function(A){return{$$typeof:h,render:A}},we.isValidElement=Z,we.lazy=function(A){return{$$typeof:b,_payload:{_status:-1,_result:A},_init:re}},we.memo=function(A,F){return{$$typeof:m,type:A,compare:F===void 0?null:F}},we.startTransition=function(A){var F=ee.T,w={};ee.T=w;try{var ue=A(),ve=ee.S;ve!==null&&ve(w,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(O,Ce)}catch(ge){Ce(ge)}finally{F!==null&&w.types!==null&&(F.types=w.types),ee.T=F}},we.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},we.use=function(A){return ee.H.use(A)},we.useActionState=function(A,F,w){return ee.H.useActionState(A,F,w)},we.useCallback=function(A,F){return ee.H.useCallback(A,F)},we.useContext=function(A){return ee.H.useContext(A)},we.useDebugValue=function(){},we.useDeferredValue=function(A,F){return ee.H.useDeferredValue(A,F)},we.useEffect=function(A,F){return ee.H.useEffect(A,F)},we.useEffectEvent=function(A){return ee.H.useEffectEvent(A)},we.useId=function(){return ee.H.useId()},we.useImperativeHandle=function(A,F,w){return ee.H.useImperativeHandle(A,F,w)},we.useInsertionEffect=function(A,F){return ee.H.useInsertionEffect(A,F)},we.useLayoutEffect=function(A,F){return ee.H.useLayoutEffect(A,F)},we.useMemo=function(A,F){return ee.H.useMemo(A,F)},we.useOptimistic=function(A,F){return ee.H.useOptimistic(A,F)},we.useReducer=function(A,F,w){return ee.H.useReducer(A,F,w)},we.useRef=function(A){return ee.H.useRef(A)},we.useState=function(A){return ee.H.useState(A)},we.useSyncExternalStore=function(A,F,w){return ee.H.useSyncExternalStore(A,F,w)},we.useTransition=function(){return ee.H.useTransition()},we.version="19.2.7",we}var Kp;function wf(){return Kp||(Kp=1,zo.exports=ib()),zo.exports}var G=wf(),Do={exports:{}},nr={},Oo={exports:{}},Mo={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Jp;function ab(){return Jp||(Jp=1,(function(n){function l(j,$){var re=j.length;j.push($);e:for(;0<re;){var Ce=re-1>>>1,E=j[Ce];if(0<s(E,$))j[Ce]=$,j[re]=E,re=Ce;else break e}}function a(j){return j.length===0?null:j[0]}function u(j){if(j.length===0)return null;var $=j[0],re=j.pop();if(re!==$){j[0]=re;e:for(var Ce=0,E=j.length,A=E>>>1;Ce<A;){var F=2*(Ce+1)-1,w=j[F],ue=F+1,ve=j[ue];if(0>s(w,re))ue<E&&0>s(ve,w)?(j[Ce]=ve,j[ue]=re,Ce=ue):(j[Ce]=w,j[F]=re,Ce=F);else if(ue<E&&0>s(ve,re))j[Ce]=ve,j[ue]=re,Ce=ue;else break e}}return $}function s(j,$){var re=j.sortIndex-$.sortIndex;return re!==0?re:j.id-$.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var p=[],m=[],b=1,y=null,k=3,v=!1,_=!1,z=!1,q=!1,T=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function ie(j){for(var $=a(m);$!==null;){if($.callback===null)u(m);else if($.startTime<=j)u(m),$.sortIndex=$.expirationTime,l(p,$);else break;$=a(m)}}function W(j){if(z=!1,ie(j),!_)if(a(p)!==null)_=!0,O||(O=!0,K());else{var $=a(m);$!==null&&Y(W,$.startTime-j)}}var O=!1,ee=-1,fe=5,ce=-1;function M(){return q?!0:!(n.unstable_now()-ce<fe)}function Z(){if(q=!1,O){var j=n.unstable_now();ce=j;var $=!0;try{e:{_=!1,z&&(z=!1,V(ee),ee=-1),v=!0;var re=k;try{t:{for(ie(j),y=a(p);y!==null&&!(y.expirationTime>j&&M());){var Ce=y.callback;if(typeof Ce=="function"){y.callback=null,k=y.priorityLevel;var E=Ce(y.expirationTime<=j);if(j=n.unstable_now(),typeof E=="function"){y.callback=E,ie(j),$=!0;break t}y===a(p)&&u(p),ie(j)}else u(p);y=a(p)}if(y!==null)$=!0;else{var A=a(m);A!==null&&Y(W,A.startTime-j),$=!1}}break e}finally{y=null,k=re,v=!1}$=void 0}}finally{$?K():O=!1}}}var K;if(typeof U=="function")K=function(){U(Z)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ae=pe.port2;pe.port1.onmessage=Z,K=function(){ae.postMessage(null)}}else K=function(){T(Z,0)};function Y(j,$){ee=T(function(){j(n.unstable_now())},$)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_next=function(j){switch(k){case 1:case 2:case 3:var $=3;break;default:$=k}var re=k;k=$;try{return j()}finally{k=re}},n.unstable_requestPaint=function(){q=!0},n.unstable_runWithPriority=function(j,$){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var re=k;k=j;try{return $()}finally{k=re}},n.unstable_scheduleCallback=function(j,$,re){var Ce=n.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?Ce+re:Ce):re=Ce,j){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=re+E,j={id:b++,callback:$,priorityLevel:j,startTime:re,expirationTime:E,sortIndex:-1},re>Ce?(j.sortIndex=re,l(m,j),a(p)===null&&j===a(m)&&(z?(V(ee),ee=-1):z=!0,Y(W,re-Ce))):(j.sortIndex=E,l(p,j),_||v||(_=!0,O||(O=!0,K()))),j},n.unstable_shouldYield=M,n.unstable_wrapCallback=function(j){var $=k;return function(){var re=k;k=$;try{return j.apply(this,arguments)}finally{k=re}}}})(Mo)),Mo}var $p;function rb(){return $p||($p=1,Oo.exports=ab()),Oo.exports}var Ro={exports:{}},jt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Pp;function ub(){if(Pp)return jt;Pp=1;var n=wf();function l(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var u={d:{f:a,r:function(){throw Error(l(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,m,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:y==null?null:""+y,children:p,containerInfo:m,implementation:b}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,jt.createPortal=function(p,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(l(299));return c(p,m,null,b)},jt.flushSync=function(p){var m=f.T,b=u.p;try{if(f.T=null,u.p=2,p)return p()}finally{f.T=m,u.p=b,u.d.f()}},jt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(p,m))},jt.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},jt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var b=m.as,y=h(b,m.crossOrigin),k=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:k,fetchPriority:v}):b==="script"&&u.d.X(p,{crossOrigin:y,integrity:k,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},jt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=h(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(p)},jt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,y=h(b,m.crossOrigin);u.d.L(p,b,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},jt.preloadModule=function(p,m){if(typeof p=="string")if(m){var b=h(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},jt.requestFormReset=function(p){u.d.r(p)},jt.unstable_batchedUpdates=function(p,m){return p(m)},jt.useFormState=function(p,m,b){return f.H.useFormState(p,m,b)},jt.useFormStatus=function(){return f.H.useHostTransitionStatus()},jt.version="19.2.7",jt}var Wp;function sb(){if(Wp)return Ro.exports;Wp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Ro.exports=ub(),Ro.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var eg;function cb(){if(eg)return nr;eg=1;var n=rb(),l=wf(),a=sb();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var i=e,r=t;;){var o=i.return;if(o===null)break;var d=o.alternate;if(d===null){if(r=o.return,r!==null){i=r;continue}break}if(o.child===d.child){for(d=o.child;d;){if(d===i)return p(o),e;if(d===r)return p(o),t;d=d.sibling}throw Error(u(188))}if(i.return!==r.return)i=o,r=d;else{for(var x=!1,S=o.child;S;){if(S===i){x=!0,i=o,r=d;break}if(S===r){x=!0,r=o,i=d;break}S=S.sibling}if(!x){for(S=d.child;S;){if(S===i){x=!0,i=d,r=o;break}if(S===r){x=!0,r=d,i=o;break}S=S.sibling}if(!x)throw Error(u(189))}}if(i.alternate!==r)throw Error(u(190))}if(i.tag!==3)throw Error(u(188));return i.stateNode.current===i?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,k=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),U=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),Z=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=Z&&e[Z]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case T:return"Profiler";case q:return"StrictMode";case W:return"Suspense";case O:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case U:return e.displayName||"Context";case V:return(e._context.displayName||"Context")+".Consumer";case ie:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var Y=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},Ce=[],E=-1;function A(e){return{current:e}}function F(e){0>E||(e.current=Ce[E],Ce[E]=null,E--)}function w(e,t){E++,Ce[E]=e.current,e.current=t}var ue=A(null),ve=A(null),ge=A(null),Re=A(null);function at(e,t){switch(w(ge,t),w(ve,e),w(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(ue),w(ue,e)}function Xe(){F(ue),F(ve),F(ge)}function rn(e){e.memoizedState!==null&&w(Re,e);var t=ue.current,i=gp(t,e.type);t!==i&&(w(ve,e),w(ue,i))}function Dn(e){ve.current===e&&(F(ue),F(ve)),Re.current===e&&(F(Re),$a._currentValue=re)}var sa,xr;function On(e){if(sa===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);sa=t&&t[1]||"",xr=-1<i.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+sa+e+xr}var ui=!1;function si(e,t){if(!e||ui)return"";ui=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(H){var B=H}Reflect.construct(e,[],P)}else{try{P.call()}catch(H){B=H}e.call(P.prototype)}}else{try{throw Error()}catch(H){B=H}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(H){if(H&&B&&typeof H.stack=="string")return[H.stack,B.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),x=d[0],S=d[1];if(x&&S){var C=x.split(`
44
- `),L=S.split(`
45
- `);for(o=r=0;r<C.length&&!C[r].includes("DetermineComponentFrameRoot");)r++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(r===C.length||o===L.length)for(r=C.length-1,o=L.length-1;1<=r&&0<=o&&C[r]!==L[o];)o--;for(;1<=r&&0<=o;r--,o--)if(C[r]!==L[o]){if(r!==1||o!==1)do if(r--,o--,0>o||C[r]!==L[o]){var I=`
46
- `+C[r].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=r&&0<=o);break}}}finally{ui=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?On(i):""}function br(e,t){switch(e.tag){case 26:case 27:case 5:return On(e.type);case 16:return On("Lazy");case 13:return e.child!==t&&t!==null?On("Suspense Fallback"):On("Suspense");case 19:return On("SuspenseList");case 0:case 15:return si(e.type,!1);case 11:return si(e.type.render,!1);case 1:return si(e.type,!0);case 31:return On("Activity");default:return""}}function vr(e){try{var t="",i=null;do t+=br(e,i),i=e,e=e.return;while(e);return t}catch(r){return`
47
- Error generating stack: `+r.message+`
48
- `+r.stack}}var ci=Object.prototype.hasOwnProperty,oi=n.unstable_scheduleCallback,ca=n.unstable_cancelCallback,ms=n.unstable_shouldYield,ps=n.unstable_requestPaint,Dt=n.unstable_now,gs=n.unstable_getCurrentPriorityLevel,X=n.unstable_ImmediatePriority,le=n.unstable_UserBlockingPriority,ke=n.unstable_NormalPriority,ze=n.unstable_LowPriority,Qe=n.unstable_IdlePriority,Xt=n.log,Mn=n.unstable_setDisableYieldValue,Ot=null,bt=null;function Lt(e){if(typeof Xt=="function"&&Mn(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(Ot,e)}catch{}}var Pe=Math.clz32?Math.clz32:Yx,nl=Math.log,bn=Math.LN2;function Yx(e){return e>>>=0,e===0?32:31-(nl(e)/bn|0)|0}var kr=256,Sr=262144,wr=4194304;function Ll(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _r(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var o=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~d,r!==0?o=Ll(r):(x&=S,x!==0?o=Ll(x):i||(i=S&~e,i!==0&&(o=Ll(i))))):(S=r&~d,S!==0?o=Ll(S):x!==0?o=Ll(x):i||(i=r&~e,i!==0&&(o=Ll(i)))),o===0?0:t!==0&&t!==o&&(t&d)===0&&(d=o&-o,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:o}function oa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Zx(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 Jf(){var e=wr;return wr<<=1,(wr&62914560)===0&&(wr=4194304),e}function ys(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ix(e,t,i,r,o,d){var x=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var S=e.entanglements,C=e.expirationTimes,L=e.hiddenUpdates;for(i=x&~i;0<i;){var I=31-Pe(i),P=1<<I;S[I]=0,C[I]=-1;var B=L[I];if(B!==null)for(L[I]=null,I=0;I<B.length;I++){var H=B[I];H!==null&&(H.lane&=-536870913)}i&=~P}r!==0&&$f(e,r,0),d!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~t))}function $f(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Pe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|i&261930}function Pf(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var r=31-Pe(i),o=1<<r;o&t|e[r]&t&&(e[r]|=t),i&=~o}}function Wf(e,t){var i=t&-t;return i=(i&42)!==0?1:xs(i),(i&(e.suspendedLanes|t))!==0?0:i}function xs(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 bs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ed(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Hp(e.type))}function td(e,t){var i=$.p;try{return $.p=e,t()}finally{$.p=i}}var ll=Math.random().toString(36).slice(2),wt="__reactFiber$"+ll,Bt="__reactProps$"+ll,fi="__reactContainer$"+ll,vs="__reactEvents$"+ll,Qx="__reactListeners$"+ll,Gx="__reactHandles$"+ll,nd="__reactResources$"+ll,da="__reactMarker$"+ll;function ks(e){delete e[wt],delete e[Bt],delete e[vs],delete e[Qx],delete e[Gx]}function di(e){var t=e[wt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[fi]||i[wt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=wp(e);e!==null;){if(i=e[wt])return i;e=wp(e)}return t}e=i,i=e.parentNode}return null}function hi(e){if(e=e[wt]||e[fi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ha(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function mi(e){var t=e[nd];return t||(t=e[nd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function kt(e){e[da]=!0}var ld=new Set,id={};function Bl(e,t){pi(e,t),pi(e+"Capture",t)}function pi(e,t){for(id[e]=t,e=0;e<t.length;e++)ld.add(t[e])}var Fx=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]*$"),ad={},rd={};function Xx(e){return ci.call(rd,e)?!0:ci.call(ad,e)?!1:Fx.test(e)?rd[e]=!0:(ad[e]=!0,!1)}function Er(e,t,i){if(Xx(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){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,""+i)}}function Cr(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function Rn(e,t,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+r)}}function un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ud(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kx(e,t,i){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(x){i=""+x,d.call(this,x)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(x){i=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ss(e){if(!e._valueTracker){var t=ud(e)?"checked":"value";e._valueTracker=Kx(e,t,""+e[t])}}function sd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),r="";return e&&(r=ud(e)?e.checked?"true":"false":e.value),e=r,e!==i?(t.setValue(e),!0):!1}function Ar(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Jx=/[\n"\\]/g;function sn(e){return e.replace(Jx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ws(e,t,i,r,o,d,x,S){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+un(t)):e.value!==""+un(t)&&(e.value=""+un(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?_s(e,x,un(t)):i!=null?_s(e,x,un(i)):r!=null&&e.removeAttribute("value"),o==null&&d!=null&&(e.defaultChecked=!!d),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+un(S):e.removeAttribute("name")}function cd(e,t,i,r,o,d,x,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Ss(e);return}i=i!=null?""+un(i):"",t=t!=null?""+un(t):i,S||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Ss(e)}function _s(e,t,i){t==="number"&&Ar(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function gi(e,t,i,r){if(e=e.options,t){t={};for(var o=0;o<i.length;o++)t["$"+i[o]]=!0;for(i=0;i<e.length;i++)o=t.hasOwnProperty("$"+e[i].value),e[i].selected!==o&&(e[i].selected=o),o&&r&&(e[i].defaultSelected=!0)}else{for(i=""+un(i),t=null,o=0;o<e.length;o++){if(e[o].value===i){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function od(e,t,i){if(t!=null&&(t=""+un(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+un(i):""}function fd(e,t,i,r){if(t==null){if(r!=null){if(i!=null)throw Error(u(92));if(Y(r)){if(1<r.length)throw Error(u(93));r=r[0]}i=r}i==null&&(i=""),t=i}i=un(t),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r),Ss(e)}function yi(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var $x=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 dd(e,t,i){var r=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,i):typeof i!="number"||i===0||$x.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function hd(e,t,i){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&i[o]!==r&&dd(e,o,r)}else for(var d in t)t.hasOwnProperty(d)&&dd(e,d,t[d])}function Es(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 Px=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Wx=/^[\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 Nr(e){return Wx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ln(){}var Cs=null;function As(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xi=null,bi=null;function md(e){var t=hi(e);if(t&&(e=t.stateNode)){var i=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ws(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+sn(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var o=r[Bt]||null;if(!o)throw Error(u(90));ws(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<i.length;t++)r=i[t],r.form===e.form&&sd(r)}break e;case"textarea":od(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&gi(e,!!i.multiple,t,!1)}}}var Ns=!1;function pd(e,t,i){if(Ns)return e(t,i);Ns=!0;try{var r=e(t);return r}finally{if(Ns=!1,(xi!==null||bi!==null)&&(pu(),xi&&(t=xi,e=bi,bi=xi=null,md(t),e)))for(t=0;t<e.length;t++)md(e[t])}}function ma(e,t){var i=e.stateNode;if(i===null)return null;var r=i[Bt]||null;if(r===null)return null;i=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(u(231,t,typeof i));return i}var Bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),js=!1;if(Bn)try{var pa={};Object.defineProperty(pa,"passive",{get:function(){js=!0}}),window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{js=!1}var il=null,Ts=null,jr=null;function gd(){if(jr)return jr;var e,t=Ts,i=t.length,r,o="value"in il?il.value:il.textContent,d=o.length;for(e=0;e<i&&t[e]===o[e];e++);var x=i-e;for(r=1;r<=x&&t[i-r]===o[d-r];r++);return jr=o.slice(e,1<r?1-r:void 0)}function Tr(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 zr(){return!0}function yd(){return!1}function Ut(e){function t(i,r,o,d,x){this._reactName=i,this._targetInst=o,this.type=r,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(i=e[S],this[S]=i?i(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?zr:yd,this.isPropagationStopped=yd,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=zr)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=zr)},persist:function(){},isPersistent:zr}),t}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dr=Ut(Ul),ga=y({},Ul,{view:0,detail:0}),e0=Ut(ga),zs,Ds,ya,Or=y({},ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ms,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!==ya&&(ya&&e.type==="mousemove"?(zs=e.screenX-ya.screenX,Ds=e.screenY-ya.screenY):Ds=zs=0,ya=e),zs)},movementY:function(e){return"movementY"in e?e.movementY:Ds}}),xd=Ut(Or),t0=y({},Or,{dataTransfer:0}),n0=Ut(t0),l0=y({},ga,{relatedTarget:0}),Os=Ut(l0),i0=y({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),a0=Ut(i0),r0=y({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),u0=Ut(r0),s0=y({},Ul,{data:0}),bd=Ut(s0),c0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o0={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"},f0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function d0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=f0[e])?!!t[e]:!1}function Ms(){return d0}var h0=y({},ga,{key:function(e){if(e.key){var t=c0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?o0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ms,charCode:function(e){return e.type==="keypress"?Tr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m0=Ut(h0),p0=y({},Or,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=Ut(p0),g0=y({},ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ms}),y0=Ut(g0),x0=y({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),b0=Ut(x0),v0=y({},Or,{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}),k0=Ut(v0),S0=y({},Ul,{newState:0,oldState:0}),w0=Ut(S0),_0=[9,13,27,32],Rs=Bn&&"CompositionEvent"in window,xa=null;Bn&&"documentMode"in document&&(xa=document.documentMode);var E0=Bn&&"TextEvent"in window&&!xa,kd=Bn&&(!Rs||xa&&8<xa&&11>=xa),Sd=" ",wd=!1;function _d(e,t){switch(e){case"keyup":return _0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ed(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vi=!1;function C0(e,t){switch(e){case"compositionend":return Ed(t);case"keypress":return t.which!==32?null:(wd=!0,Sd);case"textInput":return e=t.data,e===Sd&&wd?null:e;default:return null}}function A0(e,t){if(vi)return e==="compositionend"||!Rs&&_d(e,t)?(e=gd(),jr=Ts=il=null,vi=!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 kd&&t.locale!=="ko"?null:t.data;default:return null}}var N0={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 Cd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N0[e.type]:t==="textarea"}function Ad(e,t,i,r){xi?bi?bi.push(r):bi=[r]:xi=r,t=Su(t,"onChange"),0<t.length&&(i=new Dr("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var ba=null,va=null;function j0(e){cp(e,0)}function Mr(e){var t=ha(e);if(sd(t))return e}function Nd(e,t){if(e==="change")return t}var jd=!1;if(Bn){var Ls;if(Bn){var Bs="oninput"in document;if(!Bs){var Td=document.createElement("div");Td.setAttribute("oninput","return;"),Bs=typeof Td.oninput=="function"}Ls=Bs}else Ls=!1;jd=Ls&&(!document.documentMode||9<document.documentMode)}function zd(){ba&&(ba.detachEvent("onpropertychange",Dd),va=ba=null)}function Dd(e){if(e.propertyName==="value"&&Mr(va)){var t=[];Ad(t,va,e,As(e)),pd(j0,t)}}function T0(e,t,i){e==="focusin"?(zd(),ba=t,va=i,ba.attachEvent("onpropertychange",Dd)):e==="focusout"&&zd()}function z0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mr(va)}function D0(e,t){if(e==="click")return Mr(t)}function O0(e,t){if(e==="input"||e==="change")return Mr(t)}function M0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:M0;function ka(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var o=i[r];if(!ci.call(t,o)||!Kt(e[o],t[o]))return!1}return!0}function Od(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Md(e,t){var i=Od(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=t&&r>=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Od(i)}}function Rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ld(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ar(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Ar(e.document)}return t}function Us(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 R0=Bn&&"documentMode"in document&&11>=document.documentMode,ki=null,Hs=null,Sa=null,qs=!1;function Bd(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;qs||ki==null||ki!==Ar(r)||(r=ki,"selectionStart"in r&&Us(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}),Sa&&ka(Sa,r)||(Sa=r,r=Su(Hs,"onSelect"),0<r.length&&(t=new Dr("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=ki)))}function Hl(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Si={animationend:Hl("Animation","AnimationEnd"),animationiteration:Hl("Animation","AnimationIteration"),animationstart:Hl("Animation","AnimationStart"),transitionrun:Hl("Transition","TransitionRun"),transitionstart:Hl("Transition","TransitionStart"),transitioncancel:Hl("Transition","TransitionCancel"),transitionend:Hl("Transition","TransitionEnd")},Vs={},Ud={};Bn&&(Ud=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);function ql(e){if(Vs[e])return Vs[e];if(!Si[e])return e;var t=Si[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Ud)return Vs[e]=t[i];return e}var Hd=ql("animationend"),qd=ql("animationiteration"),Vd=ql("animationstart"),L0=ql("transitionrun"),B0=ql("transitionstart"),U0=ql("transitioncancel"),Yd=ql("transitionend"),Zd=new Map,Ys="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ys.push("scrollEnd");function vn(e,t){Zd.set(e,t),Bl(t,[e])}var Rr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},cn=[],wi=0,Zs=0;function Lr(){for(var e=wi,t=Zs=wi=0;t<e;){var i=cn[t];cn[t++]=null;var r=cn[t];cn[t++]=null;var o=cn[t];cn[t++]=null;var d=cn[t];if(cn[t++]=null,r!==null&&o!==null){var x=r.pending;x===null?o.next=o:(o.next=x.next,x.next=o),r.pending=o}d!==0&&Id(i,o,d)}}function Br(e,t,i,r){cn[wi++]=e,cn[wi++]=t,cn[wi++]=i,cn[wi++]=r,Zs|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Is(e,t,i,r){return Br(e,t,i,r),Ur(e)}function Vl(e,t){return Br(e,null,null,t),Ur(e)}function Id(e,t,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var o=!1,d=e.return;d!==null;)d.childLanes|=i,r=d.alternate,r!==null&&(r.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(o=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,o&&t!==null&&(o=31-Pe(i),e=d.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=i|536870912),d):null}function Ur(e){if(50<Ia)throw Ia=0,Wc=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _i={};function H0(e,t,i,r){this.tag=e,this.key=i,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 Jt(e,t,i,r){return new H0(e,t,i,r)}function Qs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Un(e,t){var i=e.alternate;return i===null?(i=Jt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Qd(e,t){e.flags&=65011714;var i=e.alternate;return i===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=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hr(e,t,i,r,o,d){var x=0;if(r=e,typeof e=="function")Qs(e)&&(x=1);else if(typeof e=="string")x=I1(e,i,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Jt(31,i,t,o),e.elementType=ce,e.lanes=d,e;case z:return Yl(i.children,o,d,t);case q:x=8,o|=24;break;case T:return e=Jt(12,i,t,o|2),e.elementType=T,e.lanes=d,e;case W:return e=Jt(13,i,t,o),e.elementType=W,e.lanes=d,e;case O:return e=Jt(19,i,t,o),e.elementType=O,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:x=10;break e;case V:x=9;break e;case ie:x=11;break e;case ee:x=14;break e;case fe:x=16,r=null;break e}x=29,i=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=Jt(x,i,t,o),t.elementType=e,t.type=r,t.lanes=d,t}function Yl(e,t,i,r){return e=Jt(7,e,r,t),e.lanes=i,e}function Gs(e,t,i){return e=Jt(6,e,null,t),e.lanes=i,e}function Gd(e){var t=Jt(18,null,null,0);return t.stateNode=e,t}function Fs(e,t,i){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fd=new WeakMap;function on(e,t){if(typeof e=="object"&&e!==null){var i=Fd.get(e);return i!==void 0?i:(t={value:e,source:t,stack:vr(t)},Fd.set(e,t),t)}return{value:e,source:t,stack:vr(t)}}var Ei=[],Ci=0,qr=null,wa=0,fn=[],dn=0,al=null,_n=1,En="";function Hn(e,t){Ei[Ci++]=wa,Ei[Ci++]=qr,qr=e,wa=t}function Xd(e,t,i){fn[dn++]=_n,fn[dn++]=En,fn[dn++]=al,al=e;var r=_n;e=En;var o=32-Pe(r)-1;r&=~(1<<o),i+=1;var d=32-Pe(t)+o;if(30<d){var x=o-o%5;d=(r&(1<<x)-1).toString(32),r>>=x,o-=x,_n=1<<32-Pe(t)+o|i<<o|r,En=d+e}else _n=1<<d|i<<o|r,En=e}function Xs(e){e.return!==null&&(Hn(e,1),Xd(e,1,0))}function Ks(e){for(;e===qr;)qr=Ei[--Ci],Ei[Ci]=null,wa=Ei[--Ci],Ei[Ci]=null;for(;e===al;)al=fn[--dn],fn[dn]=null,En=fn[--dn],fn[dn]=null,_n=fn[--dn],fn[dn]=null}function Kd(e,t){fn[dn++]=_n,fn[dn++]=En,fn[dn++]=al,_n=t.id,En=t.overflow,al=e}var _t=null,nt=null,Ue=!1,rl=null,hn=!1,Js=Error(u(519));function ul(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _a(on(t,e)),Js}function Jd(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[wt]=e,t[Bt]=r,i){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(i=0;i<Ga.length;i++)Oe(Ga[i],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),cd(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),fd(t,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||r.suppressHydrationWarning===!0||hp(t.textContent,i)?(r.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),r.onScroll!=null&&Oe("scroll",t),r.onScrollEnd!=null&&Oe("scrollend",t),r.onClick!=null&&(t.onclick=Ln),t=!0):t=!1,t||ul(e,!0)}function $d(e){for(_t=e.return;_t;)switch(_t.tag){case 5:case 31:case 13:hn=!1;return;case 27:case 3:hn=!0;return;default:_t=_t.return}}function Ai(e){if(e!==_t)return!1;if(!Ue)return $d(e),Ue=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||po(e.type,e.memoizedProps)),i=!i),i&&nt&&ul(e),$d(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));nt=Sp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));nt=Sp(e)}else t===27?(t=nt,kl(e.type)?(e=vo,vo=null,nt=e):nt=t):nt=_t?pn(e.stateNode.nextSibling):null;return!0}function Zl(){nt=_t=null,Ue=!1}function $s(){var e=rl;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),rl=null),e}function _a(e){rl===null?rl=[e]:rl.push(e)}var Ps=A(null),Il=null,qn=null;function sl(e,t,i){w(Ps,t._currentValue),t._currentValue=i}function Vn(e){e._currentValue=Ps.current,F(Ps)}function Ws(e,t,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===i)break;e=e.return}}function ec(e,t,i,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var d=o.dependencies;if(d!==null){var x=o.child;d=d.firstContext;e:for(;d!==null;){var S=d;d=o;for(var C=0;C<t.length;C++)if(S.context===t[C]){d.lanes|=i,S=d.alternate,S!==null&&(S.lanes|=i),Ws(d.return,i,e),r||(x=null);break e}d=S.next}}else if(o.tag===18){if(x=o.return,x===null)throw Error(u(341));x.lanes|=i,d=x.alternate,d!==null&&(d.lanes|=i),Ws(x,i,e),x=null}else x=o.child;if(x!==null)x.return=o;else for(x=o;x!==null;){if(x===e){x=null;break}if(o=x.sibling,o!==null){o.return=x.return,x=o;break}x=x.return}o=x}}function Ni(e,t,i,r){e=null;for(var o=t,d=!1;o!==null;){if(!d){if((o.flags&524288)!==0)d=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var x=o.alternate;if(x===null)throw Error(u(387));if(x=x.memoizedProps,x!==null){var S=o.type;Kt(o.pendingProps.value,x.value)||(e!==null?e.push(S):e=[S])}}else if(o===Re.current){if(x=o.alternate,x===null)throw Error(u(387));x.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push($a):e=[$a])}o=o.return}e!==null&&ec(t,e,i,r),t.flags|=262144}function Vr(e){for(e=e.firstContext;e!==null;){if(!Kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ql(e){Il=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Et(e){return Pd(Il,e)}function Yr(e,t){return Il===null&&Ql(e),Pd(e,t)}function Pd(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},qn===null){if(e===null)throw Error(u(308));qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qn=qn.next=t;return i}var q0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},V0=n.unstable_scheduleCallback,Y0=n.unstable_NormalPriority,dt={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tc(){return{controller:new q0,data:new Map,refCount:0}}function Ea(e){e.refCount--,e.refCount===0&&V0(Y0,function(){e.controller.abort()})}var Ca=null,nc=0,ji=0,Ti=null;function Z0(e,t){if(Ca===null){var i=Ca=[];nc=0,ji=ao(),Ti={status:"pending",value:void 0,then:function(r){i.push(r)}}}return nc++,t.then(Wd,Wd),t}function Wd(){if(--nc===0&&Ca!==null){Ti!==null&&(Ti.status="fulfilled");var e=Ca;Ca=null,ji=0,Ti=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function I0(e,t){var i=[],r={status:"pending",value:null,reason:null,then:function(o){i.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<i.length;o++)(0,i[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<i.length;o++)(0,i[o])(void 0)}),r}var eh=j.S;j.S=function(e,t){Bm=Dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Z0(e,t),eh!==null&&eh(e,t)};var Gl=A(null);function lc(){var e=Gl.current;return e!==null?e:We.pooledCache}function Zr(e,t){t===null?w(Gl,Gl.current):w(Gl,t.pool)}function th(){var e=lc();return e===null?null:{parent:dt._currentValue,pool:e}}var zi=Error(u(460)),ic=Error(u(474)),Ir=Error(u(542)),Qr={then:function(){}};function nh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function lh(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(Ln,Ln),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ah(e),e;default:if(typeof t.status=="string")t.then(Ln,Ln);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ah(e),e}throw Xl=t,zi}}function Fl(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Xl=i,zi):i}}var Xl=null;function ih(){if(Xl===null)throw Error(u(459));var e=Xl;return Xl=null,e}function ah(e){if(e===zi||e===Ir)throw Error(u(483))}var Di=null,Aa=0;function Gr(e){var t=Aa;return Aa+=1,Di===null&&(Di=[]),lh(Di,e,t)}function Na(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fr(e,t){throw t.$$typeof===k?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rh(e){function t(D,N){if(e){var R=D.deletions;R===null?(D.deletions=[N],D.flags|=16):R.push(N)}}function i(D,N){if(!e)return null;for(;N!==null;)t(D,N),N=N.sibling;return null}function r(D){for(var N=new Map;D!==null;)D.key!==null?N.set(D.key,D):N.set(D.index,D),D=D.sibling;return N}function o(D,N){return D=Un(D,N),D.index=0,D.sibling=null,D}function d(D,N,R){return D.index=R,e?(R=D.alternate,R!==null?(R=R.index,R<N?(D.flags|=67108866,N):R):(D.flags|=67108866,N)):(D.flags|=1048576,N)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,N,R,J){return N===null||N.tag!==6?(N=Gs(R,D.mode,J),N.return=D,N):(N=o(N,R),N.return=D,N)}function C(D,N,R,J){var ye=R.type;return ye===z?I(D,N,R.props.children,J,R.key):N!==null&&(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===fe&&Fl(ye)===N.type)?(N=o(N,R.props),Na(N,R),N.return=D,N):(N=Hr(R.type,R.key,R.props,null,D.mode,J),Na(N,R),N.return=D,N)}function L(D,N,R,J){return N===null||N.tag!==4||N.stateNode.containerInfo!==R.containerInfo||N.stateNode.implementation!==R.implementation?(N=Fs(R,D.mode,J),N.return=D,N):(N=o(N,R.children||[]),N.return=D,N)}function I(D,N,R,J,ye){return N===null||N.tag!==7?(N=Yl(R,D.mode,J,ye),N.return=D,N):(N=o(N,R),N.return=D,N)}function P(D,N,R){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Gs(""+N,D.mode,R),N.return=D,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return R=Hr(N.type,N.key,N.props,null,D.mode,R),Na(R,N),R.return=D,R;case _:return N=Fs(N,D.mode,R),N.return=D,N;case fe:return N=Fl(N),P(D,N,R)}if(Y(N)||K(N))return N=Yl(N,D.mode,R,null),N.return=D,N;if(typeof N.then=="function")return P(D,Gr(N),R);if(N.$$typeof===U)return P(D,Yr(D,N),R);Fr(D,N)}return null}function B(D,N,R,J){var ye=N!==null?N.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ye!==null?null:S(D,N,""+R,J);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case v:return R.key===ye?C(D,N,R,J):null;case _:return R.key===ye?L(D,N,R,J):null;case fe:return R=Fl(R),B(D,N,R,J)}if(Y(R)||K(R))return ye!==null?null:I(D,N,R,J,null);if(typeof R.then=="function")return B(D,N,Gr(R),J);if(R.$$typeof===U)return B(D,N,Yr(D,R),J);Fr(D,R)}return null}function H(D,N,R,J,ye){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return D=D.get(R)||null,S(N,D,""+J,ye);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case v:return D=D.get(J.key===null?R:J.key)||null,C(N,D,J,ye);case _:return D=D.get(J.key===null?R:J.key)||null,L(N,D,J,ye);case fe:return J=Fl(J),H(D,N,R,J,ye)}if(Y(J)||K(J))return D=D.get(R)||null,I(N,D,J,ye,null);if(typeof J.then=="function")return H(D,N,R,Gr(J),ye);if(J.$$typeof===U)return H(D,N,R,Yr(N,J),ye);Fr(N,J)}return null}function oe(D,N,R,J){for(var ye=null,Ve=null,he=N,je=N=0,Be=null;he!==null&&je<R.length;je++){he.index>je?(Be=he,he=null):Be=he.sibling;var Ye=B(D,he,R[je],J);if(Ye===null){he===null&&(he=Be);break}e&&he&&Ye.alternate===null&&t(D,he),N=d(Ye,N,je),Ve===null?ye=Ye:Ve.sibling=Ye,Ve=Ye,he=Be}if(je===R.length)return i(D,he),Ue&&Hn(D,je),ye;if(he===null){for(;je<R.length;je++)he=P(D,R[je],J),he!==null&&(N=d(he,N,je),Ve===null?ye=he:Ve.sibling=he,Ve=he);return Ue&&Hn(D,je),ye}for(he=r(he);je<R.length;je++)Be=H(he,D,je,R[je],J),Be!==null&&(e&&Be.alternate!==null&&he.delete(Be.key===null?je:Be.key),N=d(Be,N,je),Ve===null?ye=Be:Ve.sibling=Be,Ve=Be);return e&&he.forEach(function(Cl){return t(D,Cl)}),Ue&&Hn(D,je),ye}function be(D,N,R,J){if(R==null)throw Error(u(151));for(var ye=null,Ve=null,he=N,je=N=0,Be=null,Ye=R.next();he!==null&&!Ye.done;je++,Ye=R.next()){he.index>je?(Be=he,he=null):Be=he.sibling;var Cl=B(D,he,Ye.value,J);if(Cl===null){he===null&&(he=Be);break}e&&he&&Cl.alternate===null&&t(D,he),N=d(Cl,N,je),Ve===null?ye=Cl:Ve.sibling=Cl,Ve=Cl,he=Be}if(Ye.done)return i(D,he),Ue&&Hn(D,je),ye;if(he===null){for(;!Ye.done;je++,Ye=R.next())Ye=P(D,Ye.value,J),Ye!==null&&(N=d(Ye,N,je),Ve===null?ye=Ye:Ve.sibling=Ye,Ve=Ye);return Ue&&Hn(D,je),ye}for(he=r(he);!Ye.done;je++,Ye=R.next())Ye=H(he,D,je,Ye.value,J),Ye!==null&&(e&&Ye.alternate!==null&&he.delete(Ye.key===null?je:Ye.key),N=d(Ye,N,je),Ve===null?ye=Ye:Ve.sibling=Ye,Ve=Ye);return e&&he.forEach(function(tb){return t(D,tb)}),Ue&&Hn(D,je),ye}function $e(D,N,R,J){if(typeof R=="object"&&R!==null&&R.type===z&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case v:e:{for(var ye=R.key;N!==null;){if(N.key===ye){if(ye=R.type,ye===z){if(N.tag===7){i(D,N.sibling),J=o(N,R.props.children),J.return=D,D=J;break e}}else if(N.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===fe&&Fl(ye)===N.type){i(D,N.sibling),J=o(N,R.props),Na(J,R),J.return=D,D=J;break e}i(D,N);break}else t(D,N);N=N.sibling}R.type===z?(J=Yl(R.props.children,D.mode,J,R.key),J.return=D,D=J):(J=Hr(R.type,R.key,R.props,null,D.mode,J),Na(J,R),J.return=D,D=J)}return x(D);case _:e:{for(ye=R.key;N!==null;){if(N.key===ye)if(N.tag===4&&N.stateNode.containerInfo===R.containerInfo&&N.stateNode.implementation===R.implementation){i(D,N.sibling),J=o(N,R.children||[]),J.return=D,D=J;break e}else{i(D,N);break}else t(D,N);N=N.sibling}J=Fs(R,D.mode,J),J.return=D,D=J}return x(D);case fe:return R=Fl(R),$e(D,N,R,J)}if(Y(R))return oe(D,N,R,J);if(K(R)){if(ye=K(R),typeof ye!="function")throw Error(u(150));return R=ye.call(R),be(D,N,R,J)}if(typeof R.then=="function")return $e(D,N,Gr(R),J);if(R.$$typeof===U)return $e(D,N,Yr(D,R),J);Fr(D,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,N!==null&&N.tag===6?(i(D,N.sibling),J=o(N,R),J.return=D,D=J):(i(D,N),J=Gs(R,D.mode,J),J.return=D,D=J),x(D)):i(D,N)}return function(D,N,R,J){try{Aa=0;var ye=$e(D,N,R,J);return Di=null,ye}catch(he){if(he===zi||he===Ir)throw he;var Ve=Jt(29,he,null,D.mode);return Ve.lanes=J,Ve.return=D,Ve}finally{}}}var Kl=rh(!0),uh=rh(!1),cl=!1;function ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rc(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 ol(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fl(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ie&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Ur(e),Id(e,null,i),t}return Br(e,r,t,i),Ur(e)}function ja(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Pf(e,i)}}function uc(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var o=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var x={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?o=d=x:d=d.next=x,i=i.next}while(i!==null);d===null?o=d=t:d=d.next=t}else o=d=t;i={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var sc=!1;function Ta(){if(sc){var e=Ti;if(e!==null)throw e}}function za(e,t,i,r){sc=!1;var o=e.updateQueue;cl=!1;var d=o.firstBaseUpdate,x=o.lastBaseUpdate,S=o.shared.pending;if(S!==null){o.shared.pending=null;var C=S,L=C.next;C.next=null,x===null?d=L:x.next=L,x=C;var I=e.alternate;I!==null&&(I=I.updateQueue,S=I.lastBaseUpdate,S!==x&&(S===null?I.firstBaseUpdate=L:S.next=L,I.lastBaseUpdate=C))}if(d!==null){var P=o.baseState;x=0,I=L=C=null,S=d;do{var B=S.lane&-536870913,H=B!==S.lane;if(H?(Le&B)===B:(r&B)===B){B!==0&&B===ji&&(sc=!0),I!==null&&(I=I.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var oe=e,be=S;B=t;var $e=i;switch(be.tag){case 1:if(oe=be.payload,typeof oe=="function"){P=oe.call($e,P,B);break e}P=oe;break e;case 3:oe.flags=oe.flags&-65537|128;case 0:if(oe=be.payload,B=typeof oe=="function"?oe.call($e,P,B):oe,B==null)break e;P=y({},P,B);break e;case 2:cl=!0}}B=S.callback,B!==null&&(e.flags|=64,H&&(e.flags|=8192),H=o.callbacks,H===null?o.callbacks=[B]:H.push(B))}else H={lane:B,tag:S.tag,payload:S.payload,callback:S.callback,next:null},I===null?(L=I=H,C=P):I=I.next=H,x|=B;if(S=S.next,S===null){if(S=o.shared.pending,S===null)break;H=S,S=H.next,H.next=null,o.lastBaseUpdate=H,o.shared.pending=null}}while(!0);I===null&&(C=P),o.baseState=C,o.firstBaseUpdate=L,o.lastBaseUpdate=I,d===null&&(o.shared.lanes=0),gl|=x,e.lanes=x,e.memoizedState=P}}function sh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function ch(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)sh(i[e],t)}var Oi=A(null),Xr=A(0);function oh(e,t){e=Jn,w(Xr,e),w(Oi,t),Jn=e|t.baseLanes}function cc(){w(Xr,Jn),w(Oi,Oi.current)}function oc(){Jn=Xr.current,F(Oi),F(Xr)}var $t=A(null),mn=null;function dl(e){var t=e.alternate;w(ot,ot.current&1),w($t,e),mn===null&&(t===null||Oi.current!==null||t.memoizedState!==null)&&(mn=e)}function fc(e){w(ot,ot.current),w($t,e),mn===null&&(mn=e)}function fh(e){e.tag===22?(w(ot,ot.current),w($t,e),mn===null&&(mn=e)):hl()}function hl(){w(ot,ot.current),w($t,$t.current)}function Pt(e){F($t),mn===e&&(mn=null),F(ot)}var ot=A(0);function Kr(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||xo(i)||bo(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yn=0,Ae=null,Ke=null,ht=null,Jr=!1,Mi=!1,Jl=!1,$r=0,Da=0,Ri=null,Q0=0;function st(){throw Error(u(321))}function dc(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Kt(e[i],t[i]))return!1;return!0}function hc(e,t,i,r,o,d){return Yn=d,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Xh:Nc,Jl=!1,d=i(r,o),Jl=!1,Mi&&(d=hh(t,i,r,o)),dh(e),d}function dh(e){j.H=Ra;var t=Ke!==null&&Ke.next!==null;if(Yn=0,ht=Ke=Ae=null,Jr=!1,Da=0,Ri=null,t)throw Error(u(300));e===null||mt||(e=e.dependencies,e!==null&&Vr(e)&&(mt=!0))}function hh(e,t,i,r){Ae=e;var o=0;do{if(Mi&&(Ri=null),Da=0,Mi=!1,25<=o)throw Error(u(301));if(o+=1,ht=Ke=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}j.H=Kh,d=t(i,r)}while(Mi);return d}function G0(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?Oa(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Ae.flags|=1024),t}function mc(){var e=$r!==0;return $r=0,e}function pc(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function gc(e){if(Jr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jr=!1}Yn=0,ht=Ke=Ae=null,Mi=!1,Da=$r=0,Ri=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?Ae.memoizedState=ht=e:ht=ht.next=e,ht}function ft(){if(Ke===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=ht===null?Ae.memoizedState:ht.next;if(t!==null)ht=t,Ke=e;else{if(e===null)throw Ae.alternate===null?Error(u(467)):Error(u(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},ht===null?Ae.memoizedState=ht=e:ht=ht.next=e}return ht}function Pr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oa(e){var t=Da;return Da+=1,Ri===null&&(Ri=[]),e=lh(Ri,e,t),t=Ae,(ht===null?t.memoizedState:ht.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Xh:Nc),e}function Wr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Oa(e);if(e.$$typeof===U)return Et(e)}throw Error(u(438,String(e)))}function yc(e){var t=null,i=Ae.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var r=Ae.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=Pr(),Ae.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),r=0;r<e;r++)i[r]=M;return t.index++,i}function Zn(e,t){return typeof t=="function"?t(e):t}function eu(e){var t=ft();return xc(t,Ke,e)}function xc(e,t,i){var r=e.queue;if(r===null)throw Error(u(311));r.lastRenderedReducer=i;var o=e.baseQueue,d=r.pending;if(d!==null){if(o!==null){var x=o.next;o.next=d.next,d.next=x}t.baseQueue=o=d,r.pending=null}if(d=e.baseState,o===null)e.memoizedState=d;else{t=o.next;var S=x=null,C=null,L=t,I=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Le&P)===P:(Yn&P)===P){var B=L.revertLane;if(B===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===ji&&(I=!0);else if((Yn&B)===B){L=L.next,B===ji&&(I=!0);continue}else P={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},C===null?(S=C=P,x=d):C=C.next=P,Ae.lanes|=B,gl|=B;P=L.action,Jl&&i(d,P),d=L.hasEagerState?L.eagerState:i(d,P)}else B={lane:P,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},C===null?(S=C=B,x=d):C=C.next=B,Ae.lanes|=P,gl|=P;L=L.next}while(L!==null&&L!==t);if(C===null?x=d:C.next=S,!Kt(d,e.memoizedState)&&(mt=!0,I&&(i=Ti,i!==null)))throw i;e.memoizedState=d,e.baseState=x,e.baseQueue=C,r.lastRenderedState=d}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function bc(e){var t=ft(),i=t.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=e;var r=i.dispatch,o=i.pending,d=t.memoizedState;if(o!==null){i.pending=null;var x=o=o.next;do d=e(d,x.action),x=x.next;while(x!==o);Kt(d,t.memoizedState)||(mt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,r]}function mh(e,t,i){var r=Ae,o=ft(),d=Ue;if(d){if(i===void 0)throw Error(u(407));i=i()}else i=t();var x=!Kt((Ke||o).memoizedState,i);if(x&&(o.memoizedState=i,mt=!0),o=o.queue,Sc(yh.bind(null,r,o,e),[e]),o.getSnapshot!==t||x||ht!==null&&ht.memoizedState.tag&1){if(r.flags|=2048,Li(9,{destroy:void 0},gh.bind(null,r,o,i,t),null),We===null)throw Error(u(349));d||(Yn&127)!==0||ph(r,t,i)}return i}function ph(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Ae.updateQueue,t===null?(t=Pr(),Ae.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function gh(e,t,i,r){t.value=i,t.getSnapshot=r,xh(t)&&bh(e)}function yh(e,t,i){return i(function(){xh(t)&&bh(e)})}function xh(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Kt(e,i)}catch{return!0}}function bh(e){var t=Vl(e,2);t!==null&&Zt(t,e,2)}function vc(e){var t=Mt();if(typeof e=="function"){var i=e;if(e=i(),Jl){Lt(!0);try{i()}finally{Lt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:e},t}function vh(e,t,i,r){return e.baseState=i,xc(e,Ke,typeof r=="function"?r:Zn)}function F0(e,t,i,r,o){if(lu(e))throw Error(u(485));if(e=t.action,e!==null){var d={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};j.T!==null?i(!0):d.isTransition=!1,r(d),i=t.pending,i===null?(d.next=t.pending=d,kh(t,d)):(d.next=i.next,t.pending=i.next=d)}}function kh(e,t){var i=t.action,r=t.payload,o=e.state;if(t.isTransition){var d=j.T,x={};j.T=x;try{var S=i(o,r),C=j.S;C!==null&&C(x,S),Sh(e,t,S)}catch(L){kc(e,t,L)}finally{d!==null&&x.types!==null&&(d.types=x.types),j.T=d}}else try{d=i(o,r),Sh(e,t,d)}catch(L){kc(e,t,L)}}function Sh(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){wh(e,t,r)},function(r){return kc(e,t,r)}):wh(e,t,i)}function wh(e,t,i){t.status="fulfilled",t.value=i,_h(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,kh(e,i)))}function kc(e,t,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=i,_h(t),t=t.next;while(t!==r)}e.action=null}function _h(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Eh(e,t){return t}function Ch(e,t){if(Ue){var i=We.formState;if(i!==null){e:{var r=Ae;if(Ue){if(nt){t:{for(var o=nt,d=hn;o.nodeType!==8;){if(!d){o=null;break t}if(o=pn(o.nextSibling),o===null){o=null;break t}}d=o.data,o=d==="F!"||d==="F"?o:null}if(o){nt=pn(o.nextSibling),r=o.data==="F!";break e}}ul(r)}r=!1}r&&(t=i[0])}}return i=Mt(),i.memoizedState=i.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eh,lastRenderedState:t},i.queue=r,i=Qh.bind(null,Ae,r),r.dispatch=i,r=vc(!1),d=Ac.bind(null,Ae,!1,r.queue),r=Mt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,i=F0.bind(null,Ae,o,d,i),o.dispatch=i,r.memoizedState=e,[t,i,!1]}function Ah(e){var t=ft();return Nh(t,Ke,e)}function Nh(e,t,i){if(t=xc(e,t,Eh)[0],e=eu(Zn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Oa(t)}catch(x){throw x===zi?Ir:x}else r=t;t=ft();var o=t.queue,d=o.dispatch;return i!==t.memoizedState&&(Ae.flags|=2048,Li(9,{destroy:void 0},X0.bind(null,o,i),null)),[r,d,e]}function X0(e,t){e.action=t}function jh(e){var t=ft(),i=Ke;if(i!==null)return Nh(t,i,e);ft(),t=t.memoizedState,i=ft();var r=i.queue.dispatch;return i.memoizedState=e,[t,r,!1]}function Li(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Pr(),Ae.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,t.lastEffect=e),e}function Th(){return ft().memoizedState}function tu(e,t,i,r){var o=Mt();Ae.flags|=e,o.memoizedState=Li(1|t,{destroy:void 0},i,r===void 0?null:r)}function nu(e,t,i,r){var o=ft();r=r===void 0?null:r;var d=o.memoizedState.inst;Ke!==null&&r!==null&&dc(r,Ke.memoizedState.deps)?o.memoizedState=Li(t,d,i,r):(Ae.flags|=e,o.memoizedState=Li(1|t,d,i,r))}function zh(e,t){tu(8390656,8,e,t)}function Sc(e,t){nu(2048,8,e,t)}function K0(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Pr(),Ae.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Dh(e){var t=ft().memoizedState;return K0({ref:t,nextImpl:e}),function(){if((Ie&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Oh(e,t){return nu(4,2,e,t)}function Mh(e,t){return nu(4,4,e,t)}function Rh(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lh(e,t,i){i=i!=null?i.concat([e]):null,nu(4,4,Rh.bind(null,t,e),i)}function wc(){}function Bh(e,t){var i=ft();t=t===void 0?null:t;var r=i.memoizedState;return t!==null&&dc(t,r[1])?r[0]:(i.memoizedState=[e,t],e)}function Uh(e,t){var i=ft();t=t===void 0?null:t;var r=i.memoizedState;if(t!==null&&dc(t,r[1]))return r[0];if(r=e(),Jl){Lt(!0);try{e()}finally{Lt(!1)}}return i.memoizedState=[r,t],r}function _c(e,t,i){return i===void 0||(Yn&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Hm(),Ae.lanes|=e,gl|=e,i)}function Hh(e,t,i,r){return Kt(i,t)?i:Oi.current!==null?(e=_c(e,i,r),Kt(e,t)||(mt=!0),e):(Yn&42)===0||(Yn&1073741824)!==0&&(Le&261930)===0?(mt=!0,e.memoizedState=i):(e=Hm(),Ae.lanes|=e,gl|=e,t)}function qh(e,t,i,r,o){var d=$.p;$.p=d!==0&&8>d?d:8;var x=j.T,S={};j.T=S,Ac(e,!1,t,i);try{var C=o(),L=j.S;if(L!==null&&L(S,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var I=I0(C,r);Ma(e,t,I,tn(e))}else Ma(e,t,r,tn(e))}catch(P){Ma(e,t,{then:function(){},status:"rejected",reason:P},tn())}finally{$.p=d,x!==null&&S.types!==null&&(x.types=S.types),j.T=x}}function J0(){}function Ec(e,t,i,r){if(e.tag!==5)throw Error(u(476));var o=Vh(e).queue;qh(e,o,t,re,i===null?J0:function(){return Yh(e),i(r)})}function Vh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:re},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yh(e){var t=Vh(e);t.next===null&&(t=e.alternate.memoizedState),Ma(e,t.next.queue,{},tn())}function Cc(){return Et($a)}function Zh(){return ft().memoizedState}function Ih(){return ft().memoizedState}function $0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=tn();e=ol(i);var r=fl(t,e,i);r!==null&&(Zt(r,t,i),ja(r,t,i)),t={cache:tc()},e.payload=t;return}t=t.return}}function P0(e,t,i){var r=tn();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},lu(e)?Gh(t,i):(i=Is(e,t,i,r),i!==null&&(Zt(i,e,r),Fh(i,t,r)))}function Qh(e,t,i){var r=tn();Ma(e,t,i,r)}function Ma(e,t,i,r){var o={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(lu(e))Gh(t,o);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var x=t.lastRenderedState,S=d(x,i);if(o.hasEagerState=!0,o.eagerState=S,Kt(S,x))return Br(e,t,o,0),We===null&&Lr(),!1}catch{}finally{}if(i=Is(e,t,o,r),i!==null)return Zt(i,e,r),Fh(i,t,r),!0}return!1}function Ac(e,t,i,r){if(r={lane:2,revertLane:ao(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lu(e)){if(t)throw Error(u(479))}else t=Is(e,i,r,2),t!==null&&Zt(t,e,2)}function lu(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Gh(e,t){Mi=Jr=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Fh(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Pf(e,i)}}var Ra={readContext:Et,use:Wr,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};Ra.useEffectEvent=st;var Xh={readContext:Et,use:Wr,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:zh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,tu(4194308,4,Rh.bind(null,t,e),i)},useLayoutEffect:function(e,t){return tu(4194308,4,e,t)},useInsertionEffect:function(e,t){tu(4,2,e,t)},useMemo:function(e,t){var i=Mt();t=t===void 0?null:t;var r=e();if(Jl){Lt(!0);try{e()}finally{Lt(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=Mt();if(i!==void 0){var o=i(t);if(Jl){Lt(!0);try{i(t)}finally{Lt(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=P0.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=vc(e);var t=e.queue,i=Qh.bind(null,Ae,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:wc,useDeferredValue:function(e,t){var i=Mt();return _c(i,e,t)},useTransition:function(){var e=vc(!1);return e=qh.bind(null,Ae,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=Ae,o=Mt();if(Ue){if(i===void 0)throw Error(u(407));i=i()}else{if(i=t(),We===null)throw Error(u(349));(Le&127)!==0||ph(r,t,i)}o.memoizedState=i;var d={value:i,getSnapshot:t};return o.queue=d,zh(yh.bind(null,r,d,e),[e]),r.flags|=2048,Li(9,{destroy:void 0},gh.bind(null,r,d,i,t),null),i},useId:function(){var e=Mt(),t=We.identifierPrefix;if(Ue){var i=En,r=_n;i=(r&~(1<<32-Pe(r)-1)).toString(32)+i,t="_"+t+"R_"+i,i=$r++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=Q0++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Cc,useFormState:Ch,useActionState:Ch,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=Ac.bind(null,Ae,!0,i),i.dispatch=t,[e,t]},useMemoCache:yc,useCacheRefresh:function(){return Mt().memoizedState=$0.bind(null,Ae)},useEffectEvent:function(e){var t=Mt(),i={impl:e};return t.memoizedState=i,function(){if((Ie&2)!==0)throw Error(u(440));return i.impl.apply(void 0,arguments)}}},Nc={readContext:Et,use:Wr,useCallback:Bh,useContext:Et,useEffect:Sc,useImperativeHandle:Lh,useInsertionEffect:Oh,useLayoutEffect:Mh,useMemo:Uh,useReducer:eu,useRef:Th,useState:function(){return eu(Zn)},useDebugValue:wc,useDeferredValue:function(e,t){var i=ft();return Hh(i,Ke.memoizedState,e,t)},useTransition:function(){var e=eu(Zn)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:Oa(e),t]},useSyncExternalStore:mh,useId:Zh,useHostTransitionStatus:Cc,useFormState:Ah,useActionState:Ah,useOptimistic:function(e,t){var i=ft();return vh(i,Ke,e,t)},useMemoCache:yc,useCacheRefresh:Ih};Nc.useEffectEvent=Dh;var Kh={readContext:Et,use:Wr,useCallback:Bh,useContext:Et,useEffect:Sc,useImperativeHandle:Lh,useInsertionEffect:Oh,useLayoutEffect:Mh,useMemo:Uh,useReducer:bc,useRef:Th,useState:function(){return bc(Zn)},useDebugValue:wc,useDeferredValue:function(e,t){var i=ft();return Ke===null?_c(i,e,t):Hh(i,Ke.memoizedState,e,t)},useTransition:function(){var e=bc(Zn)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:Oa(e),t]},useSyncExternalStore:mh,useId:Zh,useHostTransitionStatus:Cc,useFormState:jh,useActionState:jh,useOptimistic:function(e,t){var i=ft();return Ke!==null?vh(i,Ke,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:yc,useCacheRefresh:Ih};Kh.useEffectEvent=Dh;function jc(e,t,i,r){t=e.memoizedState,i=i(r,t),i=i==null?t:y({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Tc={enqueueSetState:function(e,t,i){e=e._reactInternals;var r=tn(),o=ol(r);o.payload=t,i!=null&&(o.callback=i),t=fl(e,o,r),t!==null&&(Zt(t,e,r),ja(t,e,r))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var r=tn(),o=ol(r);o.tag=1,o.payload=t,i!=null&&(o.callback=i),t=fl(e,o,r),t!==null&&(Zt(t,e,r),ja(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=tn(),r=ol(i);r.tag=2,t!=null&&(r.callback=t),t=fl(e,r,i),t!==null&&(Zt(t,e,i),ja(t,e,i))}};function Jh(e,t,i,r,o,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,x):t.prototype&&t.prototype.isPureReactComponent?!ka(i,r)||!ka(o,d):!0}function $h(e,t,i,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,r),t.state!==e&&Tc.enqueueReplaceState(t,t.state,null)}function $l(e,t){var i=t;if("ref"in t){i={};for(var r in t)r!=="ref"&&(i[r]=t[r])}if(e=e.defaultProps){i===t&&(i=y({},i));for(var o in e)i[o]===void 0&&(i[o]=e[o])}return i}function Ph(e){Rr(e)}function Wh(e){console.error(e)}function em(e){Rr(e)}function iu(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function tm(e,t,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function zc(e,t,i){return i=ol(i),i.tag=3,i.payload={element:null},i.callback=function(){iu(e,t)},i}function nm(e){return e=ol(e),e.tag=3,e}function lm(e,t,i,r){var o=i.type.getDerivedStateFromError;if(typeof o=="function"){var d=r.value;e.payload=function(){return o(d)},e.callback=function(){tm(t,i,r)}}var x=i.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){tm(t,i,r),typeof o!="function"&&(yl===null?yl=new Set([this]):yl.add(this));var S=r.stack;this.componentDidCatch(r.value,{componentStack:S!==null?S:""})})}function W0(e,t,i,r,o){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&Ni(t,i,o,!0),i=$t.current,i!==null){switch(i.tag){case 31:case 13:return mn===null?gu():i.alternate===null&&ct===0&&(ct=3),i.flags&=-257,i.flags|=65536,i.lanes=o,r===Qr?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([r]):t.add(r),no(e,r,o)),!1;case 22:return i.flags|=65536,r===Qr?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([r]):i.add(r)),no(e,r,o)),!1}throw Error(u(435,i.tag))}return no(e,r,o),gu(),!1}if(Ue)return t=$t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==Js&&(e=Error(u(422),{cause:r}),_a(on(e,i)))):(r!==Js&&(t=Error(u(423),{cause:r}),_a(on(t,i))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=on(r,i),o=zc(e.stateNode,r,o),uc(e,o),ct!==4&&(ct=2)),!1;var d=Error(u(520),{cause:r});if(d=on(d,i),Za===null?Za=[d]:Za.push(d),ct!==4&&(ct=2),t===null)return!0;r=on(r,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=o&-o,i.lanes|=e,e=zc(i.stateNode,r,e),uc(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(yl===null||!yl.has(d))))return i.flags|=65536,o&=-o,i.lanes|=o,o=nm(o),lm(o,e,i,r),uc(i,o),!1}i=i.return}while(i!==null);return!1}var Dc=Error(u(461)),mt=!1;function Ct(e,t,i,r){t.child=e===null?uh(t,null,i,r):Kl(t,e.child,i,r)}function im(e,t,i,r,o){i=i.render;var d=t.ref;if("ref"in r){var x={};for(var S in r)S!=="ref"&&(x[S]=r[S])}else x=r;return Ql(t),r=hc(e,t,i,x,d,o),S=mc(),e!==null&&!mt?(pc(e,t,o),In(e,t,o)):(Ue&&S&&Xs(t),t.flags|=1,Ct(e,t,r,o),t.child)}function am(e,t,i,r,o){if(e===null){var d=i.type;return typeof d=="function"&&!Qs(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,rm(e,t,d,r,o)):(e=Hr(i.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!qc(e,o)){var x=d.memoizedProps;if(i=i.compare,i=i!==null?i:ka,i(x,r)&&e.ref===t.ref)return In(e,t,o)}return t.flags|=1,e=Un(d,r),e.ref=t.ref,e.return=t,t.child=e}function rm(e,t,i,r,o){if(e!==null){var d=e.memoizedProps;if(ka(d,r)&&e.ref===t.ref)if(mt=!1,t.pendingProps=r=d,qc(e,o))(e.flags&131072)!==0&&(mt=!0);else return t.lanes=e.lanes,In(e,t,o)}return Oc(e,t,i,r,o)}function um(e,t,i,r){var o=r.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~d}else r=0,t.child=null;return sm(e,t,d,i,r)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zr(t,d!==null?d.cachePool:null),d!==null?oh(t,d):cc(),fh(t);else return r=t.lanes=536870912,sm(e,t,d!==null?d.baseLanes|i:i,i,r)}else d!==null?(Zr(t,d.cachePool),oh(t,d),hl(),t.memoizedState=null):(e!==null&&Zr(t,null),cc(),hl());return Ct(e,t,o,i),t.child}function La(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sm(e,t,i,r,o){var d=lc();return d=d===null?null:{parent:dt._currentValue,pool:d},t.memoizedState={baseLanes:i,cachePool:d},e!==null&&Zr(t,null),cc(),fh(t),e!==null&&Ni(e,t,r,!0),t.childLanes=o,null}function au(e,t){return t=uu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cm(e,t,i){return Kl(t,e.child,null,i),e=au(t,t.pendingProps),e.flags|=2,Pt(t),t.memoizedState=null,e}function e1(e,t,i){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(r.mode==="hidden")return e=au(t,r),t.lanes=536870912,La(null,e);if(fc(t),(e=nt)?(e=kp(e,hn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:_n,overflow:En}:null,retryLane:536870912,hydrationErrors:null},i=Gd(e),i.return=t,t.child=i,_t=t,nt=null)):e=null,e===null)throw ul(t);return t.lanes=536870912,null}return au(t,r)}var d=e.memoizedState;if(d!==null){var x=d.dehydrated;if(fc(t),o)if(t.flags&256)t.flags&=-257,t=cm(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(mt||Ni(e,t,i,!1),o=(i&e.childLanes)!==0,mt||o){if(r=We,r!==null&&(x=Wf(r,i),x!==0&&x!==d.retryLane))throw d.retryLane=x,Vl(e,x),Zt(r,e,x),Dc;gu(),t=cm(e,t,i)}else e=d.treeContext,nt=pn(x.nextSibling),_t=t,Ue=!0,rl=null,hn=!1,e!==null&&Kd(t,e),t=au(t,r),t.flags|=4096;return t}return e=Un(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ru(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(u(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Oc(e,t,i,r,o){return Ql(t),i=hc(e,t,i,r,void 0,o),r=mc(),e!==null&&!mt?(pc(e,t,o),In(e,t,o)):(Ue&&r&&Xs(t),t.flags|=1,Ct(e,t,i,o),t.child)}function om(e,t,i,r,o,d){return Ql(t),t.updateQueue=null,i=hh(t,r,i,o),dh(e),r=mc(),e!==null&&!mt?(pc(e,t,d),In(e,t,d)):(Ue&&r&&Xs(t),t.flags|=1,Ct(e,t,i,d),t.child)}function fm(e,t,i,r,o){if(Ql(t),t.stateNode===null){var d=_i,x=i.contextType;typeof x=="object"&&x!==null&&(d=Et(x)),d=new i(r,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Tc,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=r,d.state=t.memoizedState,d.refs={},ac(t),x=i.contextType,d.context=typeof x=="object"&&x!==null?Et(x):_i,d.state=t.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(jc(t,i,x,r),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Tc.enqueueReplaceState(d,d.state,null),za(t,r,d,o),Ta(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){d=t.stateNode;var S=t.memoizedProps,C=$l(i,S);d.props=C;var L=d.context,I=i.contextType;x=_i,typeof I=="object"&&I!==null&&(x=Et(I));var P=i.getDerivedStateFromProps;I=typeof P=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,I||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||L!==x)&&$h(t,d,r,x),cl=!1;var B=t.memoizedState;d.state=B,za(t,r,d,o),Ta(),L=t.memoizedState,S||B!==L||cl?(typeof P=="function"&&(jc(t,i,P,r),L=t.memoizedState),(C=cl||Jh(t,i,C,r,B,L,x))?(I||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=L),d.props=r,d.state=L,d.context=x,r=C):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,rc(e,t),x=t.memoizedProps,I=$l(i,x),d.props=I,P=t.pendingProps,B=d.context,L=i.contextType,C=_i,typeof L=="object"&&L!==null&&(C=Et(L)),S=i.getDerivedStateFromProps,(L=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==P||B!==C)&&$h(t,d,r,C),cl=!1,B=t.memoizedState,d.state=B,za(t,r,d,o),Ta();var H=t.memoizedState;x!==P||B!==H||cl||e!==null&&e.dependencies!==null&&Vr(e.dependencies)?(typeof S=="function"&&(jc(t,i,S,r),H=t.memoizedState),(I=cl||Jh(t,i,I,r,B,H,C)||e!==null&&e.dependencies!==null&&Vr(e.dependencies))?(L||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,H,C),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,H,C)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=H),d.props=r,d.state=H,d.context=C,r=I):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),r=!1)}return d=r,ru(e,t),r=(t.flags&128)!==0,d||r?(d=t.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&r?(t.child=Kl(t,e.child,null,o),t.child=Kl(t,null,i,o)):Ct(e,t,i,o),t.memoizedState=d.state,e=t.child):e=In(e,t,o),e}function dm(e,t,i,r){return Zl(),t.flags|=256,Ct(e,t,i,r),t.child}var Mc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(e){return{baseLanes:e,cachePool:th()}}function Lc(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=en),e}function hm(e,t,i){var r=t.pendingProps,o=!1,d=(t.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),x&&(o=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(o?dl(t):hl(),(e=nt)?(e=kp(e,hn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:_n,overflow:En}:null,retryLane:536870912,hydrationErrors:null},i=Gd(e),i.return=t,t.child=i,_t=t,nt=null)):e=null,e===null)throw ul(t);return bo(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,o?(hl(),o=t.mode,S=uu({mode:"hidden",children:S},o),r=Yl(r,o,i,null),S.return=t,r.return=t,S.sibling=r,t.child=S,r=t.child,r.memoizedState=Rc(i),r.childLanes=Lc(e,x,i),t.memoizedState=Mc,La(null,r)):(dl(t),Bc(t,S))}var C=e.memoizedState;if(C!==null&&(S=C.dehydrated,S!==null)){if(d)t.flags&256?(dl(t),t.flags&=-257,t=Uc(e,t,i)):t.memoizedState!==null?(hl(),t.child=e.child,t.flags|=128,t=null):(hl(),S=r.fallback,o=t.mode,r=uu({mode:"visible",children:r.children},o),S=Yl(S,o,i,null),S.flags|=2,r.return=t,S.return=t,r.sibling=S,t.child=r,Kl(t,e.child,null,i),r=t.child,r.memoizedState=Rc(i),r.childLanes=Lc(e,x,i),t.memoizedState=Mc,t=La(null,r));else if(dl(t),bo(S)){if(x=S.nextSibling&&S.nextSibling.dataset,x)var L=x.dgst;x=L,r=Error(u(419)),r.stack="",r.digest=x,_a({value:r,source:null,stack:null}),t=Uc(e,t,i)}else if(mt||Ni(e,t,i,!1),x=(i&e.childLanes)!==0,mt||x){if(x=We,x!==null&&(r=Wf(x,i),r!==0&&r!==C.retryLane))throw C.retryLane=r,Vl(e,r),Zt(x,e,r),Dc;xo(S)||gu(),t=Uc(e,t,i)}else xo(S)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,nt=pn(S.nextSibling),_t=t,Ue=!0,rl=null,hn=!1,e!==null&&Kd(t,e),t=Bc(t,r.children),t.flags|=4096);return t}return o?(hl(),S=r.fallback,o=t.mode,C=e.child,L=C.sibling,r=Un(C,{mode:"hidden",children:r.children}),r.subtreeFlags=C.subtreeFlags&65011712,L!==null?S=Un(L,S):(S=Yl(S,o,i,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,La(null,r),r=t.child,S=e.child.memoizedState,S===null?S=Rc(i):(o=S.cachePool,o!==null?(C=dt._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=th(),S={baseLanes:S.baseLanes|i,cachePool:o}),r.memoizedState=S,r.childLanes=Lc(e,x,i),t.memoizedState=Mc,La(e.child,r)):(dl(t),i=e.child,e=i.sibling,i=Un(i,{mode:"visible",children:r.children}),i.return=t,i.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=i,t.memoizedState=null,i)}function Bc(e,t){return t=uu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uu(e,t){return e=Jt(22,e,null,t),e.lanes=0,e}function Uc(e,t,i){return Kl(t,e.child,null,i),e=Bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mm(e,t,i){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ws(e.return,t,i)}function Hc(e,t,i,r,o,d){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:o,treeForkCount:d}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=r,x.tail=i,x.tailMode=o,x.treeForkCount=d)}function pm(e,t,i){var r=t.pendingProps,o=r.revealOrder,d=r.tail;r=r.children;var x=ot.current,S=(x&2)!==0;if(S?(x=x&1|2,t.flags|=128):x&=1,w(ot,x),Ct(e,t,r,i),r=Ue?wa:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&mm(e,i,t);else if(e.tag===19)mm(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(i=t.child,o=null;i!==null;)e=i.alternate,e!==null&&Kr(e)===null&&(o=i),i=i.sibling;i=o,i===null?(o=t.child,t.child=null):(o=i.sibling,i.sibling=null),Hc(t,!1,o,i,d,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Kr(e)===null){t.child=o;break}e=o.sibling,o.sibling=i,i=o,o=e}Hc(t,!0,i,null,d,r);break;case"together":Hc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function In(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),gl|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Ni(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,i=Un(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Un(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function qc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vr(e)))}function t1(e,t,i){switch(t.tag){case 3:at(t,t.stateNode.containerInfo),sl(t,dt,e.memoizedState.cache),Zl();break;case 27:case 5:rn(t);break;case 4:at(t,t.stateNode.containerInfo);break;case 10:sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fc(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(dl(t),t.flags|=128,null):(i&t.child.childLanes)!==0?hm(e,t,i):(dl(t),e=In(e,t,i),e!==null?e.sibling:null);dl(t);break;case 19:var o=(e.flags&128)!==0;if(r=(i&t.childLanes)!==0,r||(Ni(e,t,i,!1),r=(i&t.childLanes)!==0),o){if(r)return pm(e,t,i);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),w(ot,ot.current),r)break;return null;case 22:return t.lanes=0,um(e,t,i,t.pendingProps);case 24:sl(t,dt,e.memoizedState.cache)}return In(e,t,i)}function gm(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)mt=!0;else{if(!qc(e,i)&&(t.flags&128)===0)return mt=!1,t1(e,t,i);mt=(e.flags&131072)!==0}else mt=!1,Ue&&(t.flags&1048576)!==0&&Xd(t,wa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Fl(t.elementType),t.type=e,typeof e=="function")Qs(e)?(r=$l(e,r),t.tag=1,t=fm(null,t,e,r,i)):(t.tag=0,t=Oc(null,t,e,r,i));else{if(e!=null){var o=e.$$typeof;if(o===ie){t.tag=11,t=im(null,t,e,r,i);break e}else if(o===ee){t.tag=14,t=am(null,t,e,r,i);break e}}throw t=ae(e)||e,Error(u(306,t,""))}}return t;case 0:return Oc(e,t,t.type,t.pendingProps,i);case 1:return r=t.type,o=$l(r,t.pendingProps),fm(e,t,r,o,i);case 3:e:{if(at(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var d=t.memoizedState;o=d.element,rc(e,t),za(t,r,null,i);var x=t.memoizedState;if(r=x.cache,sl(t,dt,r),r!==d.cache&&ec(t,[dt],i,!0),Ta(),r=x.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=dm(e,t,r,i);break e}else if(r!==o){o=on(Error(u(424)),t),_a(o),t=dm(e,t,r,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(nt=pn(e.firstChild),_t=t,Ue=!0,rl=null,hn=!0,i=uh(t,null,r,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Zl(),r===o){t=In(e,t,i);break e}Ct(e,t,r,i)}t=t.child}return t;case 26:return ru(e,t),e===null?(i=Ap(t.type,null,t.pendingProps,null))?t.memoizedState=i:Ue||(i=t.type,e=t.pendingProps,r=wu(ge.current).createElement(i),r[wt]=t,r[Bt]=e,At(r,i,e),kt(r),t.stateNode=r):t.memoizedState=Ap(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rn(t),e===null&&Ue&&(r=t.stateNode=_p(t.type,t.pendingProps,ge.current),_t=t,hn=!0,o=nt,kl(t.type)?(vo=o,nt=pn(r.firstChild)):nt=o),Ct(e,t,t.pendingProps.children,i),ru(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((o=r=nt)&&(r=z1(r,t.type,t.pendingProps,hn),r!==null?(t.stateNode=r,_t=t,nt=pn(r.firstChild),hn=!1,o=!0):o=!1),o||ul(t)),rn(t),o=t.type,d=t.pendingProps,x=e!==null?e.memoizedProps:null,r=d.children,po(o,d)?r=null:x!==null&&po(o,x)&&(t.flags|=32),t.memoizedState!==null&&(o=hc(e,t,G0,null,null,i),$a._currentValue=o),ru(e,t),Ct(e,t,r,i),t.child;case 6:return e===null&&Ue&&((e=i=nt)&&(i=D1(i,t.pendingProps,hn),i!==null?(t.stateNode=i,_t=t,nt=null,e=!0):e=!1),e||ul(t)),null;case 13:return hm(e,t,i);case 4:return at(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kl(t,null,r,i):Ct(e,t,r,i),t.child;case 11:return im(e,t,t.type,t.pendingProps,i);case 7:return Ct(e,t,t.pendingProps,i),t.child;case 8:return Ct(e,t,t.pendingProps.children,i),t.child;case 12:return Ct(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,sl(t,t.type,r.value),Ct(e,t,r.children,i),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Ql(t),o=Et(o),r=r(o),t.flags|=1,Ct(e,t,r,i),t.child;case 14:return am(e,t,t.type,t.pendingProps,i);case 15:return rm(e,t,t.type,t.pendingProps,i);case 19:return pm(e,t,i);case 31:return e1(e,t,i);case 22:return um(e,t,i,t.pendingProps);case 24:return Ql(t),r=Et(dt),e===null?(o=lc(),o===null&&(o=We,d=tc(),o.pooledCache=d,d.refCount++,d!==null&&(o.pooledCacheLanes|=i),o=d),t.memoizedState={parent:r,cache:o},ac(t),sl(t,dt,o)):((e.lanes&i)!==0&&(rc(e,t),za(t,null,null,i),Ta()),o=e.memoizedState,d=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),sl(t,dt,r)):(r=d.cache,sl(t,dt,r),r!==o.cache&&ec(t,[dt],i,!0))),Ct(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Qn(e){e.flags|=4}function Vc(e,t,i,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Zm())e.flags|=8192;else throw Xl=Qr,ic}else e.flags&=-16777217}function ym(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Dp(t))if(Zm())e.flags|=8192;else throw Xl=Qr,ic}function su(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jf():536870912,e.lanes|=t,qi|=t)}function Ba(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(t)for(var o=e.child;o!==null;)i|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)i|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=i,t}function n1(e,t,i){var r=t.pendingProps;switch(Ks(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return i=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Vn(dt),Xe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ai(t)?Qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$s())),lt(t),null;case 26:var o=t.type,d=t.memoizedState;return e===null?(Qn(t),d!==null?(lt(t),ym(t,d)):(lt(t),Vc(t,o,null,r,i))):d?d!==e.memoizedState?(Qn(t),lt(t),ym(t,d)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Qn(t),lt(t),Vc(t,o,e,r,i)),null;case 27:if(Dn(t),i=ge.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Qn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return lt(t),null}e=ue.current,Ai(t)?Jd(t):(e=_p(o,r,i),t.stateNode=e,Qn(t))}return lt(t),null;case 5:if(Dn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Qn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return lt(t),null}if(d=ue.current,Ai(t))Jd(t);else{var x=wu(ge.current);switch(d){case 1:d=x.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:d=x.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":d=x.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":d=x.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":d=x.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?x.createElement("select",{is:r.is}):x.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?x.createElement(o,{is:r.is}):x.createElement(o)}}d[wt]=t,d[Bt]=r;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)d.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=d;e:switch(At(d,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Qn(t)}}return lt(t),Vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Qn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=ge.current,Ai(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,o=_t,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[wt]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||hp(e.nodeValue,i)),e||ul(t,!0)}else e=wu(e).createTextNode(r),e[wt]=t,t.stateNode=e}return lt(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ai(t),i!==null){if(e===null){if(!r)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[wt]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else i=$s(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(Pt(t),t):(Pt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return lt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ai(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[wt]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),o=!1}else o=$s(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Pt(t),t):(Pt(t),null)}return Pt(t),(t.flags&128)!==0?(t.lanes=i,t):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==o&&(r.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),su(t,t.updateQueue),lt(t),null);case 4:return Xe(),e===null&&co(t.stateNode.containerInfo),lt(t),null;case 10:return Vn(t.type),lt(t),null;case 19:if(F(ot),r=t.memoizedState,r===null)return lt(t),null;if(o=(t.flags&128)!==0,d=r.rendering,d===null)if(o)Ba(r,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Kr(e),d!==null){for(t.flags|=128,Ba(r,!1),e=d.updateQueue,t.updateQueue=e,su(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Qd(i,e),i=i.sibling;return w(ot,ot.current&1|2),Ue&&Hn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Dt()>hu&&(t.flags|=128,o=!0,Ba(r,!1),t.lanes=4194304)}else{if(!o)if(e=Kr(d),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,su(t,e),Ba(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Ue)return lt(t),null}else 2*Dt()-r.renderingStartTime>hu&&i!==536870912&&(t.flags|=128,o=!0,Ba(r,!1),t.lanes=4194304);r.isBackwards?(d.sibling=t.child,t.child=d):(e=r.last,e!==null?e.sibling=d:t.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Dt(),e.sibling=null,i=ot.current,w(ot,o?i&1|2:i&1),Ue&&Hn(t,r.treeForkCount),e):(lt(t),null);case 22:case 23:return Pt(t),oc(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),i=t.updateQueue,i!==null&&su(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&F(Gl),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Vn(dt),lt(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function l1(e,t){switch(Ks(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(dt),Xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Dn(t),null;case 31:if(t.memoizedState!==null){if(Pt(t),t.alternate===null)throw Error(u(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ot),null;case 4:return Xe(),null;case 10:return Vn(t.type),null;case 22:case 23:return Pt(t),oc(),e!==null&&F(Gl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vn(dt),null;case 25:return null;default:return null}}function xm(e,t){switch(Ks(t),t.tag){case 3:Vn(dt),Xe();break;case 26:case 27:case 5:Dn(t);break;case 4:Xe();break;case 31:t.memoizedState!==null&&Pt(t);break;case 13:Pt(t);break;case 19:F(ot);break;case 10:Vn(t.type);break;case 22:case 23:Pt(t),oc(),e!==null&&F(Gl);break;case 24:Vn(dt)}}function Ua(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var o=r.next;i=o;do{if((i.tag&e)===e){r=void 0;var d=i.create,x=i.inst;r=d(),x.destroy=r}i=i.next}while(i!==o)}}catch(S){Fe(t,t.return,S)}}function ml(e,t,i){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var d=o.next;r=d;do{if((r.tag&e)===e){var x=r.inst,S=x.destroy;if(S!==void 0){x.destroy=void 0,o=t;var C=i,L=S;try{L()}catch(I){Fe(o,C,I)}}}r=r.next}while(r!==d)}}catch(I){Fe(t,t.return,I)}}function bm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{ch(t,i)}catch(r){Fe(e,e.return,r)}}}function vm(e,t,i){i.props=$l(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){Fe(e,t,r)}}function Ha(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof i=="function"?e.refCleanup=i(r):i.current=r}}catch(o){Fe(e,t,o)}}function Cn(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(o){Fe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(o){Fe(e,t,o)}else i.current=null}function km(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(o){Fe(e,e.return,o)}}function Yc(e,t,i){try{var r=e.stateNode;E1(r,e.type,i,t),r[Bt]=t}catch(o){Fe(e,e.return,o)}}function Sm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&kl(e.type)||e.tag===4}function Zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sm(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&&kl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Ln));else if(r!==4&&(r===27&&kl(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,i),e=e.sibling;e!==null;)Ic(e,t,i),e=e.sibling}function cu(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&kl(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(cu(e,t,i),e=e.sibling;e!==null;)cu(e,t,i),e=e.sibling}function wm(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);At(t,r,i),t[wt]=e,t[Bt]=i}catch(d){Fe(e,e.return,d)}}var Gn=!1,pt=!1,Qc=!1,_m=typeof WeakSet=="function"?WeakSet:Set,St=null;function i1(e,t){if(e=e.containerInfo,ho=Tu,e=Ld(e),Us(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var o=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var x=0,S=-1,C=-1,L=0,I=0,P=e,B=null;t:for(;;){for(var H;P!==i||o!==0&&P.nodeType!==3||(S=x+o),P!==d||r!==0&&P.nodeType!==3||(C=x+r),P.nodeType===3&&(x+=P.nodeValue.length),(H=P.firstChild)!==null;)B=P,P=H;for(;;){if(P===e)break t;if(B===i&&++L===o&&(S=x),B===d&&++I===r&&(C=x),(H=P.nextSibling)!==null)break;P=B,B=P.parentNode}P=H}i=S===-1||C===-1?null:{start:S,end:C}}else i=null}i=i||{start:0,end:0}}else i=null;for(mo={focusedElem:e,selectionRange:i},Tu=!1,St=t;St!==null;)if(t=St,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,St=e;else for(;St!==null;){switch(t=St,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)o=e[i],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,o=d.memoizedProps,d=d.memoizedState,r=i.stateNode;try{var oe=$l(i.type,o);e=r.getSnapshotBeforeUpdate(oe,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(be){Fe(i,i.return,be)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)yo(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,St=e;break}St=t.return}}function Em(e,t,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:Xn(e,i),r&4&&Ua(5,i);break;case 1:if(Xn(e,i),r&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(x){Fe(i,i.return,x)}else{var o=$l(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Fe(i,i.return,x)}}r&64&&bm(i),r&512&&Ha(i,i.return);break;case 3:if(Xn(e,i),r&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{ch(e,t)}catch(x){Fe(i,i.return,x)}}break;case 27:t===null&&r&4&&wm(i);case 26:case 5:Xn(e,i),t===null&&r&4&&km(i),r&512&&Ha(i,i.return);break;case 12:Xn(e,i);break;case 31:Xn(e,i),r&4&&Nm(e,i);break;case 13:Xn(e,i),r&4&&jm(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=h1.bind(null,i),O1(e,i))));break;case 22:if(r=i.memoizedState!==null||Gn,!r){t=t!==null&&t.memoizedState!==null||pt,o=Gn;var d=pt;Gn=r,(pt=t)&&!d?Kn(e,i,(i.subtreeFlags&8772)!==0):Xn(e,i),Gn=o,pt=d}break;case 30:break;default:Xn(e,i)}}function Cm(e){var t=e.alternate;t!==null&&(e.alternate=null,Cm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ks(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 rt=null,Ht=!1;function Fn(e,t,i){for(i=i.child;i!==null;)Am(e,t,i),i=i.sibling}function Am(e,t,i){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(Ot,i)}catch{}switch(i.tag){case 26:pt||Cn(i,t),Fn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:pt||Cn(i,t);var r=rt,o=Ht;kl(i.type)&&(rt=i.stateNode,Ht=!1),Fn(e,t,i),Xa(i.stateNode),rt=r,Ht=o;break;case 5:pt||Cn(i,t);case 6:if(r=rt,o=Ht,rt=null,Fn(e,t,i),rt=r,Ht=o,rt!==null)if(Ht)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(i.stateNode)}catch(d){Fe(i,t,d)}else try{rt.removeChild(i.stateNode)}catch(d){Fe(i,t,d)}break;case 18:rt!==null&&(Ht?(e=rt,bp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Xi(e)):bp(rt,i.stateNode));break;case 4:r=rt,o=Ht,rt=i.stateNode.containerInfo,Ht=!0,Fn(e,t,i),rt=r,Ht=o;break;case 0:case 11:case 14:case 15:ml(2,i,t),pt||ml(4,i,t),Fn(e,t,i);break;case 1:pt||(Cn(i,t),r=i.stateNode,typeof r.componentWillUnmount=="function"&&vm(i,t,r)),Fn(e,t,i);break;case 21:Fn(e,t,i);break;case 22:pt=(r=pt)||i.memoizedState!==null,Fn(e,t,i),pt=r;break;default:Fn(e,t,i)}}function Nm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xi(e)}catch(i){Fe(t,t.return,i)}}}function jm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xi(e)}catch(i){Fe(t,t.return,i)}}function a1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new _m),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new _m),t;default:throw Error(u(435,e.tag))}}function ou(e,t){var i=a1(e);t.forEach(function(r){if(!i.has(r)){i.add(r);var o=m1.bind(null,e,r);r.then(o,o)}})}function qt(e,t){var i=t.deletions;if(i!==null)for(var r=0;r<i.length;r++){var o=i[r],d=e,x=t,S=x;e:for(;S!==null;){switch(S.tag){case 27:if(kl(S.type)){rt=S.stateNode,Ht=!1;break e}break;case 5:rt=S.stateNode,Ht=!1;break e;case 3:case 4:rt=S.stateNode.containerInfo,Ht=!0;break e}S=S.return}if(rt===null)throw Error(u(160));Am(d,x,o),rt=null,Ht=!1,d=o.alternate,d!==null&&(d.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tm(t,e),t=t.sibling}var kn=null;function Tm(e,t){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:qt(t,e),Vt(e),r&4&&(ml(3,e,e.return),Ua(3,e),ml(5,e,e.return));break;case 1:qt(t,e),Vt(e),r&512&&(pt||i===null||Cn(i,i.return)),r&64&&Gn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var o=kn;if(qt(t,e),Vt(e),r&512&&(pt||i===null||Cn(i,i.return)),r&4){var d=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":d=o.getElementsByTagName("title")[0],(!d||d[da]||d[wt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=o.createElement(r),o.head.insertBefore(d,o.querySelector("head > title"))),At(d,r,i),d[wt]=e,kt(d),r=d;break e;case"link":var x=Tp("link","href",o).get(r+(i.href||""));if(x){for(var S=0;S<x.length;S++)if(d=x[S],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){x.splice(S,1);break t}}d=o.createElement(r),At(d,r,i),o.head.appendChild(d);break;case"meta":if(x=Tp("meta","content",o).get(r+(i.content||""))){for(S=0;S<x.length;S++)if(d=x[S],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){x.splice(S,1);break t}}d=o.createElement(r),At(d,r,i),o.head.appendChild(d);break;default:throw Error(u(468,r))}d[wt]=e,kt(d),r=d}e.stateNode=r}else zp(o,e.type,e.stateNode);else e.stateNode=jp(o,r,e.memoizedProps);else d!==r?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,r===null?zp(o,e.type,e.stateNode):jp(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,i.memoizedProps)}break;case 27:qt(t,e),Vt(e),r&512&&(pt||i===null||Cn(i,i.return)),i!==null&&r&4&&Yc(e,e.memoizedProps,i.memoizedProps);break;case 5:if(qt(t,e),Vt(e),r&512&&(pt||i===null||Cn(i,i.return)),e.flags&32){o=e.stateNode;try{yi(o,"")}catch(oe){Fe(e,e.return,oe)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Yc(e,o,i!==null?i.memoizedProps:o)),r&1024&&(Qc=!0);break;case 6:if(qt(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(oe){Fe(e,e.return,oe)}}break;case 3:if(Cu=null,o=kn,kn=_u(t.containerInfo),qt(t,e),kn=o,Vt(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{Xi(t.containerInfo)}catch(oe){Fe(e,e.return,oe)}Qc&&(Qc=!1,zm(e));break;case 4:r=kn,kn=_u(e.stateNode.containerInfo),qt(t,e),Vt(e),kn=r;break;case 12:qt(t,e),Vt(e);break;case 31:qt(t,e),Vt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ou(e,r)));break;case 13:qt(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(du=Dt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ou(e,r)));break;case 22:o=e.memoizedState!==null;var C=i!==null&&i.memoizedState!==null,L=Gn,I=pt;if(Gn=L||o,pt=I||C,qt(t,e),pt=I,Gn=L,Vt(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(i===null||C||Gn||pt||Pl(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){C=i=t;try{if(d=C.stateNode,o)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{S=C.stateNode;var P=C.memoizedProps.style,B=P!=null&&P.hasOwnProperty("display")?P.display:null;S.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(oe){Fe(C,C.return,oe)}}}else if(t.tag===6){if(i===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(oe){Fe(C,C.return,oe)}}}else if(t.tag===18){if(i===null){C=t;try{var H=C.stateNode;o?vp(H,!0):vp(C.stateNode,!1)}catch(oe){Fe(C,C.return,oe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,ou(e,i))));break;case 19:qt(t,e),Vt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ou(e,r)));break;case 30:break;case 21:break;default:qt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var i,r=e.return;r!==null;){if(Sm(r)){i=r;break}r=r.return}if(i==null)throw Error(u(160));switch(i.tag){case 27:var o=i.stateNode,d=Zc(e);cu(e,d,o);break;case 5:var x=i.stateNode;i.flags&32&&(yi(x,""),i.flags&=-33);var S=Zc(e);cu(e,S,x);break;case 3:case 4:var C=i.stateNode.containerInfo,L=Zc(e);Ic(e,L,C);break;default:throw Error(u(161))}}catch(I){Fe(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Xn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Em(e,t.alternate,t),t=t.sibling}function Pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ml(4,t,t.return),Pl(t);break;case 1:Cn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&vm(t,t.return,i),Pl(t);break;case 27:Xa(t.stateNode);case 26:case 5:Cn(t,t.return),Pl(t);break;case 22:t.memoizedState===null&&Pl(t);break;case 30:Pl(t);break;default:Pl(t)}e=e.sibling}}function Kn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,d=t,x=d.flags;switch(d.tag){case 0:case 11:case 15:Kn(o,d,i),Ua(4,d);break;case 1:if(Kn(o,d,i),r=d,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){Fe(r,r.return,L)}if(r=d,o=r.updateQueue,o!==null){var S=r.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)sh(C[o],S)}catch(L){Fe(r,r.return,L)}}i&&x&64&&bm(d),Ha(d,d.return);break;case 27:wm(d);case 26:case 5:Kn(o,d,i),i&&r===null&&x&4&&km(d),Ha(d,d.return);break;case 12:Kn(o,d,i);break;case 31:Kn(o,d,i),i&&x&4&&Nm(o,d);break;case 13:Kn(o,d,i),i&&x&4&&jm(o,d);break;case 22:d.memoizedState===null&&Kn(o,d,i),Ha(d,d.return);break;case 30:break;default:Kn(o,d,i)}t=t.sibling}}function Gc(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Ea(i))}function Fc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ea(e))}function Sn(e,t,i,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dm(e,t,i,r),t=t.sibling}function Dm(e,t,i,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Sn(e,t,i,r),o&2048&&Ua(9,t);break;case 1:Sn(e,t,i,r);break;case 3:Sn(e,t,i,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ea(e)));break;case 12:if(o&2048){Sn(e,t,i,r),e=t.stateNode;try{var d=t.memoizedProps,x=d.id,S=d.onPostCommit;typeof S=="function"&&S(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Fe(t,t.return,C)}}else Sn(e,t,i,r);break;case 31:Sn(e,t,i,r);break;case 13:Sn(e,t,i,r);break;case 23:break;case 22:d=t.stateNode,x=t.alternate,t.memoizedState!==null?d._visibility&2?Sn(e,t,i,r):qa(e,t):d._visibility&2?Sn(e,t,i,r):(d._visibility|=2,Bi(e,t,i,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Gc(x,t);break;case 24:Sn(e,t,i,r),o&2048&&Fc(t.alternate,t);break;default:Sn(e,t,i,r)}}function Bi(e,t,i,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,x=t,S=i,C=r,L=x.flags;switch(x.tag){case 0:case 11:case 15:Bi(d,x,S,C,o),Ua(8,x);break;case 23:break;case 22:var I=x.stateNode;x.memoizedState!==null?I._visibility&2?Bi(d,x,S,C,o):qa(d,x):(I._visibility|=2,Bi(d,x,S,C,o)),o&&L&2048&&Gc(x.alternate,x);break;case 24:Bi(d,x,S,C,o),o&&L&2048&&Fc(x.alternate,x);break;default:Bi(d,x,S,C,o)}t=t.sibling}}function qa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,r=t,o=r.flags;switch(r.tag){case 22:qa(i,r),o&2048&&Gc(r.alternate,r);break;case 24:qa(i,r),o&2048&&Fc(r.alternate,r);break;default:qa(i,r)}t=t.sibling}}var Va=8192;function Ui(e,t,i){if(e.subtreeFlags&Va)for(e=e.child;e!==null;)Om(e,t,i),e=e.sibling}function Om(e,t,i){switch(e.tag){case 26:Ui(e,t,i),e.flags&Va&&e.memoizedState!==null&&Q1(i,kn,e.memoizedState,e.memoizedProps);break;case 5:Ui(e,t,i);break;case 3:case 4:var r=kn;kn=_u(e.stateNode.containerInfo),Ui(e,t,i),kn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Va,Va=16777216,Ui(e,t,i),Va=r):Ui(e,t,i));break;default:Ui(e,t,i)}}function Mm(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 Ya(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];St=r,Lm(r,e)}Mm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rm(e),e=e.sibling}function Rm(e){switch(e.tag){case 0:case 11:case 15:Ya(e),e.flags&2048&&ml(9,e,e.return);break;case 3:Ya(e);break;case 12:Ya(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fu(e)):Ya(e);break;default:Ya(e)}}function fu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];St=r,Lm(r,e)}Mm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ml(8,t,t.return),fu(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,fu(t));break;default:fu(t)}e=e.sibling}}function Lm(e,t){for(;St!==null;){var i=St;switch(i.tag){case 0:case 11:case 15:ml(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ea(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,St=r;else e:for(i=e;St!==null;){r=St;var o=r.sibling,d=r.return;if(Cm(r),r===i){St=null;break e}if(o!==null){o.return=d,St=o;break e}St=d}}}var r1={getCacheForType:function(e){var t=Et(dt),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return Et(dt).controller.signal}},u1=typeof WeakMap=="function"?WeakMap:Map,Ie=0,We=null,De=null,Le=0,Ge=0,Wt=null,pl=!1,Hi=!1,Xc=!1,Jn=0,ct=0,gl=0,Wl=0,Kc=0,en=0,qi=0,Za=null,Yt=null,Jc=!1,du=0,Bm=0,hu=1/0,mu=null,yl=null,vt=0,xl=null,Vi=null,$n=0,$c=0,Pc=null,Um=null,Ia=0,Wc=null;function tn(){return(Ie&2)!==0&&Le!==0?Le&-Le:j.T!==null?ao():ed()}function Hm(){if(en===0)if((Le&536870912)===0||Ue){var e=Sr;Sr<<=1,(Sr&3932160)===0&&(Sr=262144),en=e}else en=536870912;return e=$t.current,e!==null&&(e.flags|=32),en}function Zt(e,t,i){(e===We&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Yi(e,0),bl(e,Le,en,!1)),fa(e,i),((Ie&2)===0||e!==We)&&(e===We&&((Ie&2)===0&&(Wl|=i),ct===4&&bl(e,Le,en,!1)),An(e))}function qm(e,t,i){if((Ie&6)!==0)throw Error(u(327));var r=!i&&(t&127)===0&&(t&e.expiredLanes)===0||oa(e,t),o=r?o1(e,t):to(e,t,!0),d=r;do{if(o===0){Hi&&!r&&bl(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!s1(i)){o=to(e,t,!1),d=!1;continue}if(o===2){if(d=t,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var S=e;o=Za;var C=S.current.memoizedState.isDehydrated;if(C&&(Yi(S,x).flags|=256),x=to(S,x,!1),x!==2){if(Xc&&!C){S.errorRecoveryDisabledLanes|=d,Wl|=d,o=4;break e}d=Yt,Yt=o,d!==null&&(Yt===null?Yt=d:Yt.push.apply(Yt,d))}o=x}if(d=!1,o!==2)continue}}if(o===1){Yi(e,0),bl(e,t,0,!0);break}e:{switch(r=e,d=o,d){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:bl(r,t,en,!pl);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=du+300-Dt(),10<o)){if(bl(r,t,en,!pl),_r(r,0,!0)!==0)break e;$n=t,r.timeoutHandle=yp(Vm.bind(null,r,i,Yt,mu,Jc,t,en,Wl,qi,pl,d,"Throttled",-0,0),o);break e}Vm(r,i,Yt,mu,Jc,t,en,Wl,qi,pl,d,null,-0,0)}}break}while(!0);An(e)}function Vm(e,t,i,r,o,d,x,S,C,L,I,P,B,H){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln},Om(t,d,P);var oe=(d&62914560)===d?du-Dt():(d&4194048)===d?Bm-Dt():0;if(oe=G1(P,oe),oe!==null){$n=d,e.cancelPendingCommit=oe(Km.bind(null,e,t,d,i,r,o,x,S,C,I,P,null,B,H)),bl(e,d,x,!L);return}}Km(e,t,d,i,r,o,x,S,C)}function s1(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var o=i[r],d=o.getSnapshot;o=o.value;try{if(!Kt(d(),o))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 bl(e,t,i,r){t&=~Kc,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var d=31-Pe(o),x=1<<d;r[d]=-1,o&=~x}i!==0&&$f(e,i,t)}function pu(){return(Ie&6)===0?(Qa(0),!1):!0}function eo(){if(De!==null){if(Ge===0)var e=De.return;else e=De,qn=Il=null,gc(e),Di=null,Aa=0,e=De;for(;e!==null;)xm(e.alternate,e),e=e.return;De=null}}function Yi(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,N1(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),$n=0,eo(),We=e,De=i=Un(e.current,null),Le=t,Ge=0,Wt=null,pl=!1,Hi=oa(e,t),Xc=!1,qi=en=Kc=Wl=gl=ct=0,Yt=Za=null,Jc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-Pe(r),d=1<<o;t|=e[o],r&=~d}return Jn=t,Lr(),i}function Ym(e,t){Ae=null,j.H=Ra,t===zi||t===Ir?(t=ih(),Ge=3):t===ic?(t=ih(),Ge=4):Ge=t===Dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wt=t,De===null&&(ct=1,iu(e,on(t,e.current)))}function Zm(){var e=$t.current;return e===null?!0:(Le&4194048)===Le?mn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===mn:!1}function Im(){var e=j.H;return j.H=Ra,e===null?Ra:e}function Qm(){var e=j.A;return j.A=r1,e}function gu(){ct=4,pl||(Le&4194048)!==Le&&$t.current!==null||(Hi=!0),(gl&134217727)===0&&(Wl&134217727)===0||We===null||bl(We,Le,en,!1)}function to(e,t,i){var r=Ie;Ie|=2;var o=Im(),d=Qm();(We!==e||Le!==t)&&(mu=null,Yi(e,t)),t=!1;var x=ct;e:do try{if(Ge!==0&&De!==null){var S=De,C=Wt;switch(Ge){case 8:eo(),x=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var L=Ge;if(Ge=0,Wt=null,Zi(e,S,C,L),i&&Hi){x=0;break e}break;default:L=Ge,Ge=0,Wt=null,Zi(e,S,C,L)}}c1(),x=ct;break}catch(I){Ym(e,I)}while(!0);return t&&e.shellSuspendCounter++,qn=Il=null,Ie=r,j.H=o,j.A=d,De===null&&(We=null,Le=0,Lr()),x}function c1(){for(;De!==null;)Gm(De)}function o1(e,t){var i=Ie;Ie|=2;var r=Im(),o=Qm();We!==e||Le!==t?(mu=null,hu=Dt()+500,Yi(e,t)):Hi=oa(e,t);e:do try{if(Ge!==0&&De!==null){t=De;var d=Wt;t:switch(Ge){case 1:Ge=0,Wt=null,Zi(e,t,d,1);break;case 2:case 9:if(nh(d)){Ge=0,Wt=null,Fm(t);break}t=function(){Ge!==2&&Ge!==9||We!==e||(Ge=7),An(e)},d.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:nh(d)?(Ge=0,Wt=null,Fm(t)):(Ge=0,Wt=null,Zi(e,t,d,7));break;case 5:var x=null;switch(De.tag){case 26:x=De.memoizedState;case 5:case 27:var S=De;if(x?Dp(x):S.stateNode.complete){Ge=0,Wt=null;var C=S.sibling;if(C!==null)De=C;else{var L=S.return;L!==null?(De=L,yu(L)):De=null}break t}}Ge=0,Wt=null,Zi(e,t,d,5);break;case 6:Ge=0,Wt=null,Zi(e,t,d,6);break;case 8:eo(),ct=6;break e;default:throw Error(u(462))}}f1();break}catch(I){Ym(e,I)}while(!0);return qn=Il=null,j.H=r,j.A=o,Ie=i,De!==null?0:(We=null,Le=0,Lr(),ct)}function f1(){for(;De!==null&&!ms();)Gm(De)}function Gm(e){var t=gm(e.alternate,e,Jn);e.memoizedProps=e.pendingProps,t===null?yu(e):De=t}function Fm(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=om(i,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=om(i,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:gc(t);default:xm(i,t),t=De=Qd(t,Jn),t=gm(i,t,Jn)}e.memoizedProps=e.pendingProps,t===null?yu(e):De=t}function Zi(e,t,i,r){qn=Il=null,gc(t),Di=null,Aa=0;var o=t.return;try{if(W0(e,o,t,i,Le)){ct=1,iu(e,on(i,e.current)),De=null;return}}catch(d){if(o!==null)throw De=o,d;ct=1,iu(e,on(i,e.current)),De=null;return}t.flags&32768?(Ue||r===1?e=!0:Hi||(Le&536870912)!==0?e=!1:(pl=e=!0,(r===2||r===9||r===3||r===6)&&(r=$t.current,r!==null&&r.tag===13&&(r.flags|=16384))),Xm(t,e)):yu(t)}function yu(e){var t=e;do{if((t.flags&32768)!==0){Xm(t,pl);return}e=t.return;var i=n1(t.alternate,t,Jn);if(i!==null){De=i;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);ct===0&&(ct=5)}function Xm(e,t){do{var i=l1(e.alternate,e);if(i!==null){i.flags&=32767,De=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=i}while(e!==null);ct=6,De=null}function Km(e,t,i,r,o,d,x,S,C){e.cancelPendingCommit=null;do xu();while(vt!==0);if((Ie&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(d=t.lanes|t.childLanes,d|=Zs,Ix(e,i,d,x,S,C),e===We&&(De=We=null,Le=0),Vi=t,xl=e,$n=i,$c=d,Pc=o,Um=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,p1(ke,function(){return ep(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=j.T,j.T=null,o=$.p,$.p=2,x=Ie,Ie|=4;try{i1(e,t,i)}finally{Ie=x,$.p=o,j.T=r}}vt=1,Jm(),$m(),Pm()}}function Jm(){if(vt===1){vt=0;var e=xl,t=Vi,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=j.T,j.T=null;var r=$.p;$.p=2;var o=Ie;Ie|=4;try{Tm(t,e);var d=mo,x=Ld(e.containerInfo),S=d.focusedElem,C=d.selectionRange;if(x!==S&&S&&S.ownerDocument&&Rd(S.ownerDocument.documentElement,S)){if(C!==null&&Us(S)){var L=C.start,I=C.end;if(I===void 0&&(I=L),"selectionStart"in S)S.selectionStart=L,S.selectionEnd=Math.min(I,S.value.length);else{var P=S.ownerDocument||document,B=P&&P.defaultView||window;if(B.getSelection){var H=B.getSelection(),oe=S.textContent.length,be=Math.min(C.start,oe),$e=C.end===void 0?be:Math.min(C.end,oe);!H.extend&&be>$e&&(x=$e,$e=be,be=x);var D=Md(S,be),N=Md(S,$e);if(D&&N&&(H.rangeCount!==1||H.anchorNode!==D.node||H.anchorOffset!==D.offset||H.focusNode!==N.node||H.focusOffset!==N.offset)){var R=P.createRange();R.setStart(D.node,D.offset),H.removeAllRanges(),be>$e?(H.addRange(R),H.extend(N.node,N.offset)):(R.setEnd(N.node,N.offset),H.addRange(R))}}}}for(P=[],H=S;H=H.parentNode;)H.nodeType===1&&P.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<P.length;S++){var J=P[S];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Tu=!!ho,mo=ho=null}finally{Ie=o,$.p=r,j.T=i}}e.current=t,vt=2}}function $m(){if(vt===2){vt=0;var e=xl,t=Vi,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=j.T,j.T=null;var r=$.p;$.p=2;var o=Ie;Ie|=4;try{Em(e,t.alternate,t)}finally{Ie=o,$.p=r,j.T=i}}vt=3}}function Pm(){if(vt===4||vt===3){vt=0,ps();var e=xl,t=Vi,i=$n,r=Um;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?vt=5:(vt=0,Vi=xl=null,Wm(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(yl=null),bs(i),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(Ot,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=j.T,o=$.p,$.p=2,j.T=null;try{for(var d=e.onRecoverableError,x=0;x<r.length;x++){var S=r[x];d(S.value,{componentStack:S.stack})}}finally{j.T=t,$.p=o}}($n&3)!==0&&xu(),An(e),o=e.pendingLanes,(i&261930)!==0&&(o&42)!==0?e===Wc?Ia++:(Ia=0,Wc=e):Ia=0,Qa(0)}}function Wm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ea(t)))}function xu(){return Jm(),$m(),Pm(),ep()}function ep(){if(vt!==5)return!1;var e=xl,t=$c;$c=0;var i=bs($n),r=j.T,o=$.p;try{$.p=32>i?32:i,j.T=null,i=Pc,Pc=null;var d=xl,x=$n;if(vt=0,Vi=xl=null,$n=0,(Ie&6)!==0)throw Error(u(331));var S=Ie;if(Ie|=4,Rm(d.current),Dm(d,d.current,x,i),Ie=S,Qa(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(Ot,d)}catch{}return!0}finally{$.p=o,j.T=r,Wm(e,t)}}function tp(e,t,i){t=on(i,t),t=zc(e.stateNode,t,2),e=fl(e,t,2),e!==null&&(fa(e,2),An(e))}function Fe(e,t,i){if(e.tag===3)tp(e,e,i);else for(;t!==null;){if(t.tag===3){tp(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(yl===null||!yl.has(r))){e=on(i,e),i=nm(2),r=fl(t,i,2),r!==null&&(lm(i,r,t,e),fa(r,2),An(r));break}}t=t.return}}function no(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new u1;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(i)||(Xc=!0,o.add(i),e=d1.bind(null,e,t,i),t.then(e,e))}function d1(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,We===e&&(Le&i)===i&&(ct===4||ct===3&&(Le&62914560)===Le&&300>Dt()-du?(Ie&2)===0&&Yi(e,0):Kc|=i,qi===Le&&(qi=0)),An(e)}function np(e,t){t===0&&(t=Jf()),e=Vl(e,t),e!==null&&(fa(e,t),An(e))}function h1(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),np(e,i)}function m1(e,t){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(i=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}r!==null&&r.delete(t),np(e,i)}function p1(e,t){return oi(e,t)}var bu=null,Ii=null,lo=!1,vu=!1,io=!1,vl=0;function An(e){e!==Ii&&e.next===null&&(Ii===null?bu=Ii=e:Ii=Ii.next=e),vu=!0,lo||(lo=!0,y1())}function Qa(e,t){if(!io&&vu){io=!0;do for(var i=!1,r=bu;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var d=0;else{var x=r.suspendedLanes,S=r.pingedLanes;d=(1<<31-Pe(42|e)+1)-1,d&=o&~(x&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,rp(r,d))}else d=Le,d=_r(r,r===We?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||oa(r,d)||(i=!0,rp(r,d));r=r.next}while(i);io=!1}}function g1(){lp()}function lp(){vu=lo=!1;var e=0;vl!==0&&A1()&&(e=vl);for(var t=Dt(),i=null,r=bu;r!==null;){var o=r.next,d=ip(r,t);d===0?(r.next=null,i===null?bu=o:i.next=o,o===null&&(Ii=i)):(i=r,(e!==0||(d&3)!==0)&&(vu=!0)),r=o}vt!==0&&vt!==5||Qa(e),vl!==0&&(vl=0)}function ip(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-Pe(d),S=1<<x,C=o[x];C===-1?((S&i)===0||(S&r)!==0)&&(o[x]=Zx(S,t)):C<=t&&(e.expiredLanes|=S),d&=~S}if(t=We,i=Le,i=_r(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ca(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||oa(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(r!==null&&ca(r),bs(i)){case 2:case 8:i=le;break;case 32:i=ke;break;case 268435456:i=Qe;break;default:i=ke}return r=ap.bind(null,e),i=oi(i,r),e.callbackPriority=t,e.callbackNode=i,t}return r!==null&&r!==null&&ca(r),e.callbackPriority=2,e.callbackNode=null,2}function ap(e,t){if(vt!==0&&vt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(xu()&&e.callbackNode!==i)return null;var r=Le;return r=_r(e,e===We?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(qm(e,r,t),ip(e,Dt()),e.callbackNode!=null&&e.callbackNode===i?ap.bind(null,e):null)}function rp(e,t){if(xu())return null;qm(e,t,!0)}function y1(){j1(function(){(Ie&6)!==0?oi(X,g1):lp()})}function ao(){if(vl===0){var e=ji;e===0&&(e=kr,kr<<=1,(kr&261888)===0&&(kr=256)),vl=e}return vl}function up(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nr(""+e)}function sp(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function x1(e,t,i,r,o){if(t==="submit"&&i&&i.stateNode===o){var d=up((o[Bt]||null).action),x=r.submitter;x&&(t=(t=x[Bt]||null)?up(t.formAction):x.getAttribute("formAction"),t!==null&&(d=t,x=null));var S=new Dr("action","action",null,r,o);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(vl!==0){var C=x?sp(o,x):new FormData(o);Ec(i,{pending:!0,data:C,method:o.method,action:d},null,C)}}else typeof d=="function"&&(S.preventDefault(),C=x?sp(o,x):new FormData(o),Ec(i,{pending:!0,data:C,method:o.method,action:d},d,C))},currentTarget:o}]})}}for(var ro=0;ro<Ys.length;ro++){var uo=Ys[ro],b1=uo.toLowerCase(),v1=uo[0].toUpperCase()+uo.slice(1);vn(b1,"on"+v1)}vn(Hd,"onAnimationEnd"),vn(qd,"onAnimationIteration"),vn(Vd,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(L0,"onTransitionRun"),vn(B0,"onTransitionStart"),vn(U0,"onTransitionCancel"),vn(Yd,"onTransitionEnd"),pi("onMouseEnter",["mouseout","mouseover"]),pi("onMouseLeave",["mouseout","mouseover"]),pi("onPointerEnter",["pointerout","pointerover"]),pi("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ga="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(" "),k1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ga));function cp(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],o=r.event;r=r.listeners;e:{var d=void 0;if(t)for(var x=r.length-1;0<=x;x--){var S=r[x],C=S.instance,L=S.currentTarget;if(S=S.listener,C!==d&&o.isPropagationStopped())break e;d=S,o.currentTarget=L;try{d(o)}catch(I){Rr(I)}o.currentTarget=null,d=C}else for(x=0;x<r.length;x++){if(S=r[x],C=S.instance,L=S.currentTarget,S=S.listener,C!==d&&o.isPropagationStopped())break e;d=S,o.currentTarget=L;try{d(o)}catch(I){Rr(I)}o.currentTarget=null,d=C}}}}function Oe(e,t){var i=t[vs];i===void 0&&(i=t[vs]=new Set);var r=e+"__bubble";i.has(r)||(op(t,e,2,!1),i.add(r))}function so(e,t,i){var r=0;t&&(r|=4),op(i,e,r,t)}var ku="_reactListening"+Math.random().toString(36).slice(2);function co(e){if(!e[ku]){e[ku]=!0,ld.forEach(function(i){i!=="selectionchange"&&(k1.has(i)||so(i,!1,e),so(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,so("selectionchange",!1,t))}}function op(e,t,i,r){switch(Hp(t)){case 2:var o=K1;break;case 8:o=J1;break;default:o=Eo}i=o.bind(null,t,i,e),o=void 0,!js||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,i,{capture:!0,passive:o}):e.addEventListener(t,i,!0):o!==void 0?e.addEventListener(t,i,{passive:o}):e.addEventListener(t,i,!1)}function oo(e,t,i,r,o){var d=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var x=r.tag;if(x===3||x===4){var S=r.stateNode.containerInfo;if(S===o)break;if(x===4)for(x=r.return;x!==null;){var C=x.tag;if((C===3||C===4)&&x.stateNode.containerInfo===o)return;x=x.return}for(;S!==null;){if(x=di(S),x===null)return;if(C=x.tag,C===5||C===6||C===26||C===27){r=d=x;continue e}S=S.parentNode}}r=r.return}pd(function(){var L=d,I=As(i),P=[];e:{var B=Zd.get(e);if(B!==void 0){var H=Dr,oe=e;switch(e){case"keypress":if(Tr(i)===0)break e;case"keydown":case"keyup":H=m0;break;case"focusin":oe="focus",H=Os;break;case"focusout":oe="blur",H=Os;break;case"beforeblur":case"afterblur":H=Os;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=xd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=n0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=y0;break;case Hd:case qd:case Vd:H=a0;break;case Yd:H=b0;break;case"scroll":case"scrollend":H=e0;break;case"wheel":H=k0;break;case"copy":case"cut":case"paste":H=u0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=vd;break;case"toggle":case"beforetoggle":H=w0}var be=(t&4)!==0,$e=!be&&(e==="scroll"||e==="scrollend"),D=be?B!==null?B+"Capture":null:B;be=[];for(var N=L,R;N!==null;){var J=N;if(R=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||R===null||D===null||(J=ma(N,D),J!=null&&be.push(Fa(N,J,R))),$e)break;N=N.return}0<be.length&&(B=new H(B,oe,null,i,I),P.push({event:B,listeners:be}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",B&&i!==Cs&&(oe=i.relatedTarget||i.fromElement)&&(di(oe)||oe[fi]))break e;if((H||B)&&(B=I.window===I?I:(B=I.ownerDocument)?B.defaultView||B.parentWindow:window,H?(oe=i.relatedTarget||i.toElement,H=L,oe=oe?di(oe):null,oe!==null&&($e=c(oe),be=oe.tag,oe!==$e||be!==5&&be!==27&&be!==6)&&(oe=null)):(H=null,oe=L),H!==oe)){if(be=xd,J="onMouseLeave",D="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(be=vd,J="onPointerLeave",D="onPointerEnter",N="pointer"),$e=H==null?B:ha(H),R=oe==null?B:ha(oe),B=new be(J,N+"leave",H,i,I),B.target=$e,B.relatedTarget=R,J=null,di(I)===L&&(be=new be(D,N+"enter",oe,i,I),be.target=R,be.relatedTarget=$e,J=be),$e=J,H&&oe)t:{for(be=S1,D=H,N=oe,R=0,J=D;J;J=be(J))R++;J=0;for(var ye=N;ye;ye=be(ye))J++;for(;0<R-J;)D=be(D),R--;for(;0<J-R;)N=be(N),J--;for(;R--;){if(D===N||N!==null&&D===N.alternate){be=D;break t}D=be(D),N=be(N)}be=null}else be=null;H!==null&&fp(P,B,H,be,!1),oe!==null&&$e!==null&&fp(P,$e,oe,be,!0)}}e:{if(B=L?ha(L):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var Ve=Nd;else if(Cd(B))if(jd)Ve=O0;else{Ve=z0;var he=T0}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?L&&Es(L.elementType)&&(Ve=Nd):Ve=D0;if(Ve&&(Ve=Ve(e,L))){Ad(P,Ve,i,I);break e}he&&he(e,B,L),e==="focusout"&&L&&B.type==="number"&&L.memoizedProps.value!=null&&_s(B,"number",B.value)}switch(he=L?ha(L):window,e){case"focusin":(Cd(he)||he.contentEditable==="true")&&(ki=he,Hs=L,Sa=null);break;case"focusout":Sa=Hs=ki=null;break;case"mousedown":qs=!0;break;case"contextmenu":case"mouseup":case"dragend":qs=!1,Bd(P,i,I);break;case"selectionchange":if(R0)break;case"keydown":case"keyup":Bd(P,i,I)}var je;if(Rs)e:{switch(e){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else vi?_d(e,i)&&(Be="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Be="onCompositionStart");Be&&(kd&&i.locale!=="ko"&&(vi||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&vi&&(je=gd()):(il=I,Ts="value"in il?il.value:il.textContent,vi=!0)),he=Su(L,Be),0<he.length&&(Be=new bd(Be,e,null,i,I),P.push({event:Be,listeners:he}),je?Be.data=je:(je=Ed(i),je!==null&&(Be.data=je)))),(je=E0?C0(e,i):A0(e,i))&&(Be=Su(L,"onBeforeInput"),0<Be.length&&(he=new bd("onBeforeInput","beforeinput",null,i,I),P.push({event:he,listeners:Be}),he.data=je)),x1(P,e,L,i,I)}cp(P,t)})}function Fa(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Su(e,t){for(var i=t+"Capture",r=[];e!==null;){var o=e,d=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||d===null||(o=ma(e,i),o!=null&&r.unshift(Fa(e,o,d)),o=ma(e,t),o!=null&&r.push(Fa(e,o,d))),e.tag===3)return r;e=e.return}return[]}function S1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function fp(e,t,i,r,o){for(var d=t._reactName,x=[];i!==null&&i!==r;){var S=i,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,o?(L=ma(i,d),L!=null&&x.unshift(Fa(i,L,C))):o||(L=ma(i,d),L!=null&&x.push(Fa(i,L,C)))),i=i.return}x.length!==0&&e.push({event:t,listeners:x})}var w1=/\r\n?/g,_1=/\u0000|\uFFFD/g;function dp(e){return(typeof e=="string"?e:""+e).replace(w1,`
49
- `).replace(_1,"")}function hp(e,t){return t=dp(t),dp(e)===t}function Je(e,t,i,r,o,d){switch(i){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||yi(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&yi(e,""+r);break;case"className":Cr(e,"class",r);break;case"tabIndex":Cr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Cr(e,i,r);break;case"style":hd(e,r,d);break;case"data":if(t!=="object"){Cr(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Nr(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(i==="formAction"?(t!=="input"&&Je(e,t,"name",o.name,o,null),Je(e,t,"formEncType",o.formEncType,o,null),Je(e,t,"formMethod",o.formMethod,o,null),Je(e,t,"formTarget",o.formTarget,o,null)):(Je(e,t,"encType",o.encType,o,null),Je(e,t,"method",o.method,o,null),Je(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Nr(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=Ln);break;case"onScroll":r!=null&&Oe("scroll",e);break;case"onScrollEnd":r!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(i=r.__html,i!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=i}}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}i=Nr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);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(i,""+r):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Er(e,"popover",r);break;case"xlinkActuate":Rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Rn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Rn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Rn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Rn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Er(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Px.get(i)||i,Er(e,i,r))}}function fo(e,t,i,r,o,d){switch(i){case"style":hd(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(i=r.__html,i!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=i}}break;case"children":typeof r=="string"?yi(e,r):(typeof r=="number"||typeof r=="bigint")&&yi(e,""+r);break;case"onScroll":r!=null&&Oe("scroll",e);break;case"onScrollEnd":r!=null&&Oe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!id.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(o=i.endsWith("Capture"),t=i.slice(2,o?i.length-7:void 0),d=e[Bt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,o),typeof r=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,r,o);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):Er(e,i,r)}}}function At(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var r=!1,o=!1,d;for(d in i)if(i.hasOwnProperty(d)){var x=i[d];if(x!=null)switch(d){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Je(e,t,d,x,i,null)}}o&&Je(e,t,"srcSet",i.srcSet,i,null),r&&Je(e,t,"src",i.src,i,null);return;case"input":Oe("invalid",e);var S=d=x=o=null,C=null,L=null;for(r in i)if(i.hasOwnProperty(r)){var I=i[r];if(I!=null)switch(r){case"name":o=I;break;case"type":x=I;break;case"checked":C=I;break;case"defaultChecked":L=I;break;case"value":d=I;break;case"defaultValue":S=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(u(137,t));break;default:Je(e,t,r,I,i,null)}}cd(e,d,S,C,L,x,o,!1);return;case"select":Oe("invalid",e),r=x=d=null;for(o in i)if(i.hasOwnProperty(o)&&(S=i[o],S!=null))switch(o){case"value":d=S;break;case"defaultValue":x=S;break;case"multiple":r=S;default:Je(e,t,o,S,i,null)}t=d,i=x,e.multiple=!!r,t!=null?gi(e,!!r,t,!1):i!=null&&gi(e,!!r,i,!0);return;case"textarea":Oe("invalid",e),d=o=r=null;for(x in i)if(i.hasOwnProperty(x)&&(S=i[x],S!=null))switch(x){case"value":r=S;break;case"defaultValue":o=S;break;case"children":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(u(91));break;default:Je(e,t,x,S,i,null)}fd(e,r,o,d);return;case"option":for(C in i)if(i.hasOwnProperty(C)&&(r=i[C],r!=null))switch(C){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Je(e,t,C,r,i,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(r=0;r<Ga.length;r++)Oe(Ga[r],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("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(L in i)if(i.hasOwnProperty(L)&&(r=i[L],r!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Je(e,t,L,r,i,null)}return;default:if(Es(t)){for(I in i)i.hasOwnProperty(I)&&(r=i[I],r!==void 0&&fo(e,t,I,r,i,void 0));return}}for(S in i)i.hasOwnProperty(S)&&(r=i[S],r!=null&&Je(e,t,S,r,i,null))}function E1(e,t,i,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,d=null,x=null,S=null,C=null,L=null,I=null;for(H in i){var P=i[H];if(i.hasOwnProperty(H)&&P!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":C=P;default:r.hasOwnProperty(H)||Je(e,t,H,null,r,P)}}for(var B in r){var H=r[B];if(P=i[B],r.hasOwnProperty(B)&&(H!=null||P!=null))switch(B){case"type":d=H;break;case"name":o=H;break;case"checked":L=H;break;case"defaultChecked":I=H;break;case"value":x=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:H!==P&&Je(e,t,B,H,r,P)}}ws(e,x,S,C,L,I,d,o);return;case"select":H=x=S=B=null;for(d in i)if(C=i[d],i.hasOwnProperty(d)&&C!=null)switch(d){case"value":break;case"multiple":H=C;default:r.hasOwnProperty(d)||Je(e,t,d,null,r,C)}for(o in r)if(d=r[o],C=i[o],r.hasOwnProperty(o)&&(d!=null||C!=null))switch(o){case"value":B=d;break;case"defaultValue":S=d;break;case"multiple":x=d;default:d!==C&&Je(e,t,o,d,r,C)}t=S,i=x,r=H,B!=null?gi(e,!!i,B,!1):!!r!=!!i&&(t!=null?gi(e,!!i,t,!0):gi(e,!!i,i?[]:"",!1));return;case"textarea":H=B=null;for(S in i)if(o=i[S],i.hasOwnProperty(S)&&o!=null&&!r.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Je(e,t,S,null,r,o)}for(x in r)if(o=r[x],d=i[x],r.hasOwnProperty(x)&&(o!=null||d!=null))switch(x){case"value":B=o;break;case"defaultValue":H=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==d&&Je(e,t,x,o,r,d)}od(e,B,H);return;case"option":for(var oe in i)if(B=i[oe],i.hasOwnProperty(oe)&&B!=null&&!r.hasOwnProperty(oe))switch(oe){case"selected":e.selected=!1;break;default:Je(e,t,oe,null,r,B)}for(C in r)if(B=r[C],H=i[C],r.hasOwnProperty(C)&&B!==H&&(B!=null||H!=null))switch(C){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Je(e,t,C,B,r,H)}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 be in i)B=i[be],i.hasOwnProperty(be)&&B!=null&&!r.hasOwnProperty(be)&&Je(e,t,be,null,r,B);for(L in r)if(B=r[L],H=i[L],r.hasOwnProperty(L)&&B!==H&&(B!=null||H!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:Je(e,t,L,B,r,H)}return;default:if(Es(t)){for(var $e in i)B=i[$e],i.hasOwnProperty($e)&&B!==void 0&&!r.hasOwnProperty($e)&&fo(e,t,$e,void 0,r,B);for(I in r)B=r[I],H=i[I],!r.hasOwnProperty(I)||B===H||B===void 0&&H===void 0||fo(e,t,I,B,r,H);return}}for(var D in i)B=i[D],i.hasOwnProperty(D)&&B!=null&&!r.hasOwnProperty(D)&&Je(e,t,D,null,r,B);for(P in r)B=r[P],H=i[P],!r.hasOwnProperty(P)||B===H||B==null&&H==null||Je(e,t,P,B,r,H)}function mp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function C1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var o=i[r],d=o.transferSize,x=o.initiatorType,S=o.duration;if(d&&S&&mp(x)){for(x=0,S=o.responseEnd,r+=1;r<i.length;r++){var C=i[r],L=C.startTime;if(L>S)break;var I=C.transferSize,P=C.initiatorType;I&&mp(P)&&(C=C.responseEnd,x+=I*(C<S?1:(S-L)/(C-L)))}if(--r,t+=8*(d+x)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ho=null,mo=null;function wu(e){return e.nodeType===9?e:e.ownerDocument}function pp(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 gp(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 po(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 go=null;function A1(){var e=window.event;return e&&e.type==="popstate"?e===go?!1:(go=e,!0):(go=null,!1)}var yp=typeof setTimeout=="function"?setTimeout:void 0,N1=typeof clearTimeout=="function"?clearTimeout:void 0,xp=typeof Promise=="function"?Promise:void 0,j1=typeof queueMicrotask=="function"?queueMicrotask:typeof xp<"u"?function(e){return xp.resolve(null).then(e).catch(T1)}:yp;function T1(e){setTimeout(function(){throw e})}function kl(e){return e==="head"}function bp(e,t){var i=t,r=0;do{var o=i.nextSibling;if(e.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"||i==="/&"){if(r===0){e.removeChild(o),Xi(t);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")Xa(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Xa(i);for(var d=i.firstChild;d;){var x=d.nextSibling,S=d.nodeName;d[da]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=x}}else i==="body"&&Xa(e.ownerDocument.body);i=o}while(i);Xi(t)}function vp(e,t){var i=e;e=0;do{var r=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=r}while(i)}function yo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":yo(i),ks(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function z1(e,t,i,r){for(;e.nodeType===1;){var o=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[da])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=pn(e.nextSibling),e===null)break}return null}function D1(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=pn(e.nextSibling),e===null))return null;return e}function kp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=pn(e.nextSibling),e===null))return null;return e}function xo(e){return e.data==="$?"||e.data==="$~"}function bo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function O1(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var r=function(){t(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function pn(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 vo=null;function Sp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return pn(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function wp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function _p(e,t,i){switch(t=wu(i),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Xa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ks(e)}var gn=new Map,Ep=new Set;function _u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Pn=$.d;$.d={f:M1,r:R1,D:L1,C:B1,L:U1,m:H1,X:V1,S:q1,M:Y1};function M1(){var e=Pn.f(),t=pu();return e||t}function R1(e){var t=hi(e);t!==null&&t.tag===5&&t.type==="form"?Yh(t):Pn.r(e)}var Qi=typeof document>"u"?null:document;function Cp(e,t,i){var r=Qi;if(r&&typeof t=="string"&&t){var o=sn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),Ep.has(o)||(Ep.add(o),e={rel:e,crossOrigin:i,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),At(t,"link",e),kt(t),r.head.appendChild(t)))}}function L1(e){Pn.D(e),Cp("dns-prefetch",e,null)}function B1(e,t){Pn.C(e,t),Cp("preconnect",e,t)}function U1(e,t,i){Pn.L(e,t,i);var r=Qi;if(r&&e&&t){var o='link[rel="preload"][as="'+sn(t)+'"]';t==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+sn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+sn(i.imageSizes)+'"]')):o+='[href="'+sn(e)+'"]';var d=o;switch(t){case"style":d=Gi(e);break;case"script":d=Fi(e)}gn.has(d)||(e=y({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),gn.set(d,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(Ka(d))||t==="script"&&r.querySelector(Ja(d))||(t=r.createElement("link"),At(t,"link",e),kt(t),r.head.appendChild(t)))}}function H1(e,t){Pn.m(e,t);var i=Qi;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+sn(r)+'"][href="'+sn(e)+'"]',d=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Fi(e)}if(!gn.has(d)&&(e=y({rel:"modulepreload",href:e},t),gn.set(d,e),i.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ja(d)))return}r=i.createElement("link"),At(r,"link",e),kt(r),i.head.appendChild(r)}}}function q1(e,t,i){Pn.S(e,t,i);var r=Qi;if(r&&e){var o=mi(r).hoistableStyles,d=Gi(e);t=t||"default";var x=o.get(d);if(!x){var S={loading:0,preload:null};if(x=r.querySelector(Ka(d)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},i),(i=gn.get(d))&&ko(e,i);var C=x=r.createElement("link");kt(C),At(C,"link",e),C._p=new Promise(function(L,I){C.onload=L,C.onerror=I}),C.addEventListener("load",function(){S.loading|=1}),C.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Eu(x,t,r)}x={type:"stylesheet",instance:x,count:1,state:S},o.set(d,x)}}}function V1(e,t){Pn.X(e,t);var i=Qi;if(i&&e){var r=mi(i).hoistableScripts,o=Fi(e),d=r.get(o);d||(d=i.querySelector(Ja(o)),d||(e=y({src:e,async:!0},t),(t=gn.get(o))&&So(e,t),d=i.createElement("script"),kt(d),At(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(o,d))}}function Y1(e,t){Pn.M(e,t);var i=Qi;if(i&&e){var r=mi(i).hoistableScripts,o=Fi(e),d=r.get(o);d||(d=i.querySelector(Ja(o)),d||(e=y({src:e,async:!0,type:"module"},t),(t=gn.get(o))&&So(e,t),d=i.createElement("script"),kt(d),At(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(o,d))}}function Ap(e,t,i,r){var o=(o=ge.current)?_u(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Gi(i.href),i=mi(o).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Gi(i.href);var d=mi(o).hoistableStyles,x=d.get(e);if(x||(o=o.ownerDocument||o,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=o.querySelector(Ka(e)))&&!d._p&&(x.instance=d,x.state.loading=5),gn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},gn.set(e,i),d||Z1(o,e,i,x.state))),t&&r===null)throw Error(u(528,""));return x}if(t&&r!==null)throw Error(u(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fi(i),i=mi(o).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Gi(e){return'href="'+sn(e)+'"'}function Ka(e){return'link[rel="stylesheet"]['+e+"]"}function Np(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Z1(e,t,i,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),At(t,"link",i),kt(t),e.head.appendChild(t))}function Fi(e){return'[src="'+sn(e)+'"]'}function Ja(e){return"script[async]"+e}function jp(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+sn(i.href)+'"]');if(r)return t.instance=r,kt(r),r;var o=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),kt(r),At(r,"style",o),Eu(r,i.precedence,e),t.instance=r;case"stylesheet":o=Gi(i.href);var d=e.querySelector(Ka(o));if(d)return t.state.loading|=4,t.instance=d,kt(d),d;r=Np(i),(o=gn.get(o))&&ko(r,o),d=(e.ownerDocument||e).createElement("link"),kt(d);var x=d;return x._p=new Promise(function(S,C){x.onload=S,x.onerror=C}),At(d,"link",r),t.state.loading|=4,Eu(d,i.precedence,e),t.instance=d;case"script":return d=Fi(i.src),(o=e.querySelector(Ja(d)))?(t.instance=o,kt(o),o):(r=i,(o=gn.get(d))&&(r=y({},i),So(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),kt(o),At(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Eu(r,i.precedence,e));return t.instance}function Eu(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,d=o,x=0;x<r.length;x++){var S=r[x];if(S.dataset.precedence===t)d=S;else if(d!==o)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function ko(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function So(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cu=null;function Tp(e,t,i){if(Cu===null){var r=new Map,o=Cu=new Map;o.set(i,r)}else o=Cu,r=o.get(i),r||(r=new Map,o.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),o=0;o<i.length;o++){var d=i[o];if(!(d[da]||d[wt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(t)||"";x=e+x;var S=r.get(x);S?S.push(d):r.set(x,[d])}}return r}function zp(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function I1(e,t,i){if(i===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 Dp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Q1(e,t,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var o=Gi(r.href),d=t.querySelector(Ka(o));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Au.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=d,kt(d);return}d=t.ownerDocument||t,r=Np(r),(o=gn.get(o))&&ko(r,o),d=d.createElement("link"),kt(d);var x=d;x._p=new Promise(function(S,C){x.onload=S,x.onerror=C}),At(d,"link",r),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Au.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var wo=0;function G1(e,t){return e.stylesheets&&e.count===0&&ju(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&ju(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&wo===0&&(wo=62500*C1());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ju(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>wo?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ju(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Nu=null;function ju(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Nu=new Map,t.forEach(F1,e),Nu=null,Au.call(e))}function F1(e,t){if(!(t.state.loading&4)){var i=Nu.get(e);if(i)var r=i.get(null);else{i=new Map,Nu.set(e,i);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<o.length;d++){var x=o[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(i.set(x.dataset.precedence,x),r=x)}r&&i.set(null,r)}o=t.instance,x=o.getAttribute("data-precedence"),d=i.get(x)||r,d===r&&i.set(null,o),i.set(x,o),this.count++,r=Au.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),d?d.parentNode.insertBefore(o,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var $a={$$typeof:U,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function X1(e,t,i,r,o,d,x,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=ys(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.hiddenUpdates=ys(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Op(e,t,i,r,o,d,x,S,C,L,I,P){return e=new X1(e,t,i,x,C,L,I,P,S),t=1,d===!0&&(t|=24),d=Jt(3,null,null,t),e.current=d,d.stateNode=e,t=tc(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:r,isDehydrated:i,cache:t},ac(d),e}function Mp(e){return e?(e=_i,e):_i}function Rp(e,t,i,r,o,d){o=Mp(o),r.context===null?r.context=o:r.pendingContext=o,r=ol(t),r.payload={element:i},d=d===void 0?null:d,d!==null&&(r.callback=d),i=fl(e,r,t),i!==null&&(Zt(i,e,t),ja(i,e,t))}function Lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function _o(e,t){Lp(e,t),(e=e.alternate)&&Lp(e,t)}function Bp(e){if(e.tag===13||e.tag===31){var t=Vl(e,67108864);t!==null&&Zt(t,e,67108864),_o(e,67108864)}}function Up(e){if(e.tag===13||e.tag===31){var t=tn();t=xs(t);var i=Vl(e,t);i!==null&&Zt(i,e,t),_o(e,t)}}var Tu=!0;function K1(e,t,i,r){var o=j.T;j.T=null;var d=$.p;try{$.p=2,Eo(e,t,i,r)}finally{$.p=d,j.T=o}}function J1(e,t,i,r){var o=j.T;j.T=null;var d=$.p;try{$.p=8,Eo(e,t,i,r)}finally{$.p=d,j.T=o}}function Eo(e,t,i,r){if(Tu){var o=Co(r);if(o===null)oo(e,t,r,zu,i),qp(e,r);else if(P1(o,e,t,i,r))r.stopPropagation();else if(qp(e,r),t&4&&-1<$1.indexOf(e)){for(;o!==null;){var d=hi(o);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=Ll(d.pendingLanes);if(x!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;x;){var C=1<<31-Pe(x);S.entanglements[1]|=C,x&=~C}An(d),(Ie&6)===0&&(hu=Dt()+500,Qa(0))}}break;case 31:case 13:S=Vl(d,2),S!==null&&Zt(S,d,2),pu(),_o(d,2)}if(d=Co(r),d===null&&oo(e,t,r,zu,i),d===o)break;o=d}o!==null&&r.stopPropagation()}else oo(e,t,r,null,i)}}function Co(e){return e=As(e),Ao(e)}var zu=null;function Ao(e){if(zu=null,e=di(e),e!==null){var t=c(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=f(t),e!==null)return e;e=null}else if(i===31){if(e=h(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return zu=e,null}function Hp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(gs()){case X:return 2;case le:return 8;case ke:case ze:return 32;case Qe:return 268435456;default:return 32}default:return 32}}var No=!1,Sl=null,wl=null,_l=null,Pa=new Map,Wa=new Map,El=[],$1="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 qp(e,t){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":wl=null;break;case"mouseover":case"mouseout":_l=null;break;case"pointerover":case"pointerout":Pa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wa.delete(t.pointerId)}}function er(e,t,i,r,o,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:r,nativeEvent:d,targetContainers:[o]},t!==null&&(t=hi(t),t!==null&&Bp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function P1(e,t,i,r,o){switch(t){case"focusin":return Sl=er(Sl,e,t,i,r,o),!0;case"dragenter":return wl=er(wl,e,t,i,r,o),!0;case"mouseover":return _l=er(_l,e,t,i,r,o),!0;case"pointerover":var d=o.pointerId;return Pa.set(d,er(Pa.get(d)||null,e,t,i,r,o)),!0;case"gotpointercapture":return d=o.pointerId,Wa.set(d,er(Wa.get(d)||null,e,t,i,r,o)),!0}return!1}function Vp(e){var t=di(e.target);if(t!==null){var i=c(t);if(i!==null){if(t=i.tag,t===13){if(t=f(i),t!==null){e.blockedOn=t,td(e.priority,function(){Up(i)});return}}else if(t===31){if(t=h(i),t!==null){e.blockedOn=t,td(e.priority,function(){Up(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Du(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Co(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);Cs=r,i.target.dispatchEvent(r),Cs=null}else return t=hi(i),t!==null&&Bp(t),e.blockedOn=i,!1;t.shift()}return!0}function Yp(e,t,i){Du(e)&&i.delete(t)}function W1(){No=!1,Sl!==null&&Du(Sl)&&(Sl=null),wl!==null&&Du(wl)&&(wl=null),_l!==null&&Du(_l)&&(_l=null),Pa.forEach(Yp),Wa.forEach(Yp)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,No||(No=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,W1)))}var Mu=null;function Zp(e){Mu!==e&&(Mu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Mu===e&&(Mu=null);for(var t=0;t<e.length;t+=3){var i=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(Ao(r||i)===null)continue;break}var d=hi(i);d!==null&&(e.splice(t,3),t-=3,Ec(d,{pending:!0,data:o,method:i.method,action:r},r,o))}}))}function Xi(e){function t(C){return Ou(C,e)}Sl!==null&&Ou(Sl,e),wl!==null&&Ou(wl,e),_l!==null&&Ou(_l,e),Pa.forEach(t),Wa.forEach(t);for(var i=0;i<El.length;i++){var r=El[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<El.length&&(i=El[0],i.blockedOn===null);)Vp(i),i.blockedOn===null&&El.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var o=i[r],d=i[r+1],x=o[Bt]||null;if(typeof d=="function")x||Zp(i);else if(x){var S=null;if(d&&d.hasAttribute("formAction")){if(o=d,x=d[Bt]||null)S=x.formAction;else if(Ao(o)!==null)continue}else S=x.action;typeof S=="function"?i[r+1]=S:(i.splice(r,3),r-=3),Zp(i)}}}function Ip(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(x){return o=x})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(i,20)}function i(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function jo(e){this._internalRoot=e}Ru.prototype.render=jo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var i=t.current,r=tn();Rp(i,r,e,t,null,null)},Ru.prototype.unmount=jo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Rp(e.current,2,null,e,null,null),pu(),t[fi]=null}};function Ru(e){this._internalRoot=e}Ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=ed();e={blockedOn:null,target:e,priority:t};for(var i=0;i<El.length&&t!==0&&t<El[i].priority;i++);El.splice(i,0,e),i===0&&Vp(e)}};var Qp=l.version;if(Qp!=="19.2.7")throw Error(u(527,Qp,"19.2.7"));$.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var eb={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lu.isDisabled&&Lu.supportsFiber)try{Ot=Lu.inject(eb),bt=Lu}catch{}}return nr.createRoot=function(e,t){if(!s(e))throw Error(u(299));var i=!1,r="",o=Ph,d=Wh,x=em;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=Op(e,1,!1,null,null,i,r,null,o,d,x,Ip),e[fi]=t.current,co(e),new jo(t)},nr.hydrateRoot=function(e,t,i){if(!s(e))throw Error(u(299));var r=!1,o="",d=Ph,x=Wh,S=em,C=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(S=i.onRecoverableError),i.formState!==void 0&&(C=i.formState)),t=Op(e,1,!0,t,i??null,r,o,C,d,x,S,Ip),t.context=Mp(null),i=t.current,r=tn(),r=xs(r),o=ol(r),o.callback=null,fl(i,o,r),i=r,t.current.lanes=i,fa(t,i),An(t),e[fi]=t.current,co(e),new Ru(t)},nr.version="19.2.7",nr}var tg;function ob(){if(tg)return Do.exports;tg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Do.exports=cb(),Do.exports}var fb=ob();const py=new Map,Lo=new Map;function nf(n){return py.get(n)??null}function db(n,l){l.models.length!==0&&py.set(n,l)}function hb(n,l){const a=nf(n);if(a)return Promise.resolve(a);const u=Lo.get(n);if(u)return u;const s=l().then(c=>(db(n,c),c)).finally(()=>Lo.delete(n));return Lo.set(n,s),s}const it="";async function ng(){const n=await fetch(`${it}/api/snapshot`);if(!n.ok)throw new Error("Failed to fetch snapshot");return n.json()}async function Pi(n){const l=await fetch(`${it}/api/runs/${n}`);if(!l.ok)throw new Error("Not found");return l.json()}async function mb(){const n=await fetch(`${it}/api/intake/linear`);if(!n.ok)throw new Error(await n.text());return(await n.json()).candidates??[]}async function Zu(){const n=await fetch(`${it}/api/intake/linear/status`);if(!n.ok)throw new Error(await n.text());return n.json()}async function _f(){const n=await fetch(`${it}/api/intake/linear/config`);if(!n.ok)throw new Error(await n.text());return n.json()}async function pb(n){const l=await fetch(`${it}/api/intake/linear/config`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw new Error(await l.text());return l.json()}async function gb(n,l){const a=await fetch(`${it}/api/intake/linear/${n}/promote`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!a.ok)throw new Error(await a.text());return a.json()}async function yb(n){const l=await fetch(`${it}/api/agents`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw new Error(await l.text());return l.json()}async function xb(n,l){const a=await fetch(`${it}/api/agents/${n}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!a.ok)throw new Error(await a.text());return a.json()}async function bb(n){const l=await fetch(`${it}/api/agents/${n}`,{method:"DELETE"});if(!l.ok)throw new Error(await l.text())}async function Ef(n){const l=await fetch(`${it}/api/runs/${n}/cancel`,{method:"POST"});if(!l.ok)throw new Error(await l.text());return l.json()}async function vb(n){const l=await fetch(`${it}/api/runs`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw new Error(await l.text());return l.json()}async function lg(n,l,a,u){const s=await fetch(`${it}/api/runs/${n}/plan`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({planMarkdown:l,approve:a,...(u==null?void 0:u.planModel)!==void 0?{planModel:u.planModel}:{},...(u==null?void 0:u.executeModel)!==void 0?{executeModel:u.executeModel}:{}})});if(!s.ok)throw new Error(await s.text());return s.json()}async function kb(n,l){const a=await fetch(`${it}/api/runs/${n}/draft-plan`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l!==void 0?{planModel:l}:{})});if(!a.ok)throw new Error(await a.text());return a.json()}async function Sb(n,l){const a=await fetch(`${it}/api/runs/${n}/kick`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l!=null&&l.trim()?{executeModel:l.trim()}:{})});if(!a.ok)throw new Error(await a.text());return a.json()}async function wb(n){const l=await fetch(`${it}/api/runs/${n}/approve`,{method:"POST"});if(!l.ok)throw new Error(await l.text());return l.json()}async function _b(n,l,a){const u=await fetch(`${it}/api/runs/${n}/retry`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({feedback:l,...a!==void 0?{executeModel:a}:{}})});if(!u.ok)throw new Error(await u.text());return u.json()}async function Eb(n){const l=await fetch(`${it}/api/runs/${n}/playbook-patch/apply`,{method:"POST"});if(!l.ok)throw new Error(await l.text());return l.json()}async function Cb(n){const l=await fetch(`${it}/api/runs/${n}/playbook-patch/dismiss`,{method:"POST"});if(!l.ok)throw new Error(await l.text());return l.json()}async function Ab(n,l){return hb(n,async()=>{const u=await fetch(`${it}/api/runtimes/${n}/models`);if(!u.ok)throw new Error(await u.text());return u.json()})}async function Nb(){const n=await fetch(`${it}/api/agent-deck/status`);if(!n.ok)throw new Error(await n.text());return n.json()}async function jb(){return(await(await fetch(`${it}/api/agent-deck/decks`)).json()).data??[]}async function Tb(n){return(await(await fetch(`${it}/api/agent-deck/decks/${n}/playbooks`)).json()).data??[]}function zb(n){const l=new EventSource(`${it}/api/events`);return l.onmessage=a=>{try{n(JSON.parse(a.data))}catch{}},l.onerror=()=>{l.close()},()=>l.close()}async function Db(n,l="transcript"){const a=await fetch(`${it}/api/runs/${n}/log-tail?kind=${l}`);if(!a.ok)throw new Error(await a.text());return(await a.json()).content}function Wi(n){if(!n.contentJson)return null;try{return JSON.parse(n.contentJson)}catch{return null}}function Iu(n){if(!n.contentJson)return n.blobPath??"";try{const l=JSON.parse(n.contentJson);return l.markdown??l.resultText??l.excerpt??n.contentJson}catch{return n.contentJson}}function Wn(n,l){return[...n].reverse().find(a=>a.kind===l)}function Ob(n){var a;const l=Wn(n,"task_snapshot");if(!(l!=null&&l.contentJson))return null;try{const s=(a=JSON.parse(l.contentJson).url)==null?void 0:a.trim();return s!=null&&s.startsWith("http")?s:null}catch{return null}}function gy(n,l,a){const u=n.filter(c=>c.kind===l);for(let c=u.length-1;c>=0;c--){const f=Wi(u[c]);if(f&&f.phase===a)return f}const s=u[u.length-1];return s?Wi(s):null}function Qu(n,l=Date.now()){const a=l-new Date(n).getTime();if(a<0)return"just now";const u=Math.floor(a/1e3);if(u<60)return"just now";const s=Math.floor(u/60);if(s<60)return`${s}m ago`;const c=Math.floor(s/60);if(c<24)return`${c}h ago`;const f=Math.floor(c/24);return f<7?`${f}d ago`:new Date(n).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function yy(n){if(n<1e3)return`${Math.round(n)}ms`;const l=Math.round(n/1e3),a=Math.floor(l/60),u=l%60;if(a>=60){const s=Math.floor(a/60),c=a%60;return c>0?`${s}h ${c}m`:`${s}h`}return a>0?u>0?`${a}m ${u}s`:`${a}m`:`${u}s`}function li(n){return n==="claude_code"?"Claude":n==="cursor_local"?"Cursor":"No agent"}function ls(n){return n==="claude_code"?"bg-[#D4A574]/20 text-[#E8C9A8] border-[#D4A574]/40":n==="cursor_local"?"bg-[#7EB8FF]/15 text-[#A8D4FF] border-[#7EB8FF]/35":"bg-white/5 text-white/50 border-white/15"}function Cf(n){return{code:"Code",communication:"Slack",email:"Email",research:"Research",content:"Content",other:"Other"}[n]??n}function Gu(n){return n.source==="linear"&&n.externalLabel?n.externalLabel:n.source==="linear"&&n.externalId?n.externalId:n.source==="linear"?"Linear":"Manual"}function xy(n,l){switch(n){case"plan_pending":return{label:"Planning",hint:"Agent is writing the plan",tone:"bg-cyber-violet/15 text-cyber-violet-light border-cyber-violet/35",accent:"border-l-cyber-violet"};case"plan_approved":return{label:"Queued",hint:"Approved — waiting for slot",tone:"bg-sky-500/15 text-sky-200 border-sky-400/30",accent:"border-l-sky-400"};case"queued":return{label:"Queued",tone:"bg-sky-500/15 text-sky-200 border-sky-400/30",accent:"border-l-sky-400"};case"running":return{label:"Running",hint:"Agent executing",tone:"bg-[#92E4DD]/15 text-[#92E4DD] border-[#92E4DD]/35",accent:"border-l-[#92E4DD]"};case"review":return{label:"Needs Review",hint:"Your sign-off required",tone:"bg-[#C4B643]/20 text-[#E8DC7A] border-[#C4B643]/40",accent:"border-l-[#C4B643]"};case"done":return{label:"Done",tone:"bg-emerald-500/10 text-emerald-300/90 border-emerald-400/25",accent:"border-l-emerald-400/60"};case"failed":return{label:"Failed",hint:"Retry from result review",tone:"bg-red-500/15 text-red-300 border-red-400/30",accent:"border-l-red-400"};case"cancelled":return{label:"Removed",hint:"Dismissed from Operations",tone:"bg-white/5 text-white/40 border-white/10",accent:"border-l-white/20"};default:return{label:n,tone:"bg-white/5 text-white/60 border-white/15",accent:"border-l-white/20"}}}function Af(n){return n.deckName?n.deckName:n.deckId?`deck ${n.deckId.slice(0,8)}…`:null}function ut({children:n,className:l="",title:a}){return g.jsx("span",{title:a,className:`inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium uppercase tracking-wide border ${l}`,children:n})}function by({index:n,total:l,onPrev:a,onNext:u,label:s="In Queue"}){return l<=1?null:g.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[g.jsx("span",{className:"text-xs uppercase tracking-wide text-white/45 hidden sm:inline",children:s}),g.jsx("button",{type:"button",onClick:a,disabled:n<=0,className:"btn-ghost px-2.5 py-1.5 disabled:opacity-30",title:"Previous","aria-label":"Previous in queue",children:"←"}),g.jsxs("span",{className:"text-sm tabular-nums text-white/60 min-w-[3.5rem] text-center",children:[n+1," / ",l]}),g.jsx("button",{type:"button",onClick:u,disabled:n>=l-1,className:"btn-ghost px-2.5 py-1.5 disabled:opacity-30",title:"Next","aria-label":"Next in queue",children:"→"})]})}var Ze;(function(n){n.assertEqual=s=>{};function l(s){}n.assertIs=l;function a(s){throw new Error}n.assertNever=a,n.arrayToEnum=s=>{const c={};for(const f of s)c[f]=f;return c},n.getValidEnumValues=s=>{const c=n.objectKeys(s).filter(h=>typeof s[s[h]]!="number"),f={};for(const h of c)f[h]=s[h];return n.objectValues(f)},n.objectValues=s=>n.objectKeys(s).map(function(c){return s[c]}),n.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const c=[];for(const f in s)Object.prototype.hasOwnProperty.call(s,f)&&c.push(f);return c},n.find=(s,c)=>{for(const f of s)if(c(f))return f},n.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function u(s,c=" | "){return s.map(f=>typeof f=="string"?`'${f}'`:f).join(c)}n.joinValues=u,n.jsonStringifyReplacer=(s,c)=>typeof c=="bigint"?c.toString():c})(Ze||(Ze={}));var ig;(function(n){n.mergeShapes=(l,a)=>({...l,...a})})(ig||(ig={}));const de=Ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),jl=n=>{switch(typeof n){case"undefined":return de.undefined;case"string":return de.string;case"number":return Number.isNaN(n)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(n)?de.array:n===null?de.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?de.promise:typeof Map<"u"&&n instanceof Map?de.map:typeof Set<"u"&&n instanceof Set?de.set:typeof Date<"u"&&n instanceof Date?de.date:de.object;default:return de.unknown}},ne=Ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class el extends Error{get errors(){return this.issues}constructor(l){super(),this.issues=[],this.addIssue=u=>{this.issues=[...this.issues,u]},this.addIssues=(u=[])=>{this.issues=[...this.issues,...u]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=l}format(l){const a=l||function(c){return c.message},u={_errors:[]},s=c=>{for(const f of c.issues)if(f.code==="invalid_union")f.unionErrors.map(s);else if(f.code==="invalid_return_type")s(f.returnTypeError);else if(f.code==="invalid_arguments")s(f.argumentsError);else if(f.path.length===0)u._errors.push(a(f));else{let h=u,p=0;for(;p<f.path.length;){const m=f.path[p];p===f.path.length-1?(h[m]=h[m]||{_errors:[]},h[m]._errors.push(a(f))):h[m]=h[m]||{_errors:[]},h=h[m],p++}}};return s(this),u}static assert(l){if(!(l instanceof el))throw new Error(`Not a ZodError: ${l}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(l=a=>a.message){const a={},u=[];for(const s of this.issues)if(s.path.length>0){const c=s.path[0];a[c]=a[c]||[],a[c].push(l(s))}else u.push(l(s));return{formErrors:u,fieldErrors:a}}get formErrors(){return this.flatten()}}el.create=n=>new el(n);const lf=(n,l)=>{let a;switch(n.code){case ne.invalid_type:n.received===de.undefined?a="Required":a=`Expected ${n.expected}, received ${n.received}`;break;case ne.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(n.expected,Ze.jsonStringifyReplacer)}`;break;case ne.unrecognized_keys:a=`Unrecognized key(s) in object: ${Ze.joinValues(n.keys,", ")}`;break;case ne.invalid_union:a="Invalid input";break;case ne.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${Ze.joinValues(n.options)}`;break;case ne.invalid_enum_value:a=`Invalid enum value. Expected ${Ze.joinValues(n.options)}, received '${n.received}'`;break;case ne.invalid_arguments:a="Invalid function arguments";break;case ne.invalid_return_type:a="Invalid function return type";break;case ne.invalid_date:a="Invalid date";break;case ne.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(a=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?a=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?a=`Invalid input: must end with "${n.validation.endsWith}"`:Ze.assertNever(n.validation):n.validation!=="regex"?a=`Invalid ${n.validation}`:a="Invalid";break;case ne.too_small:n.type==="array"?a=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?a=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?a=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?a=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?a=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:a="Invalid input";break;case ne.too_big:n.type==="array"?a=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?a=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?a=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?a=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?a=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:a="Invalid input";break;case ne.custom:a="Invalid input";break;case ne.invalid_intersection_types:a="Intersection results could not be merged";break;case ne.not_multiple_of:a=`Number must be a multiple of ${n.multipleOf}`;break;case ne.not_finite:a="Number must be finite";break;default:a=l.defaultError,Ze.assertNever(n)}return{message:a}};let Mb=lf;function Rb(){return Mb}const Lb=n=>{const{data:l,path:a,errorMaps:u,issueData:s}=n,c=[...a,...s.path||[]],f={...s,path:c};if(s.message!==void 0)return{...s,path:c,message:s.message};let h="";const p=u.filter(m=>!!m).slice().reverse();for(const m of p)h=m(f,{data:l,defaultError:h}).message;return{...s,path:c,message:h}};function se(n,l){const a=Rb(),u=Lb({issueData:l,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,a,a===lf?void 0:lf].filter(s=>!!s)});n.common.issues.push(u)}class an{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(l,a){const u=[];for(const s of a){if(s.status==="aborted")return _e;s.status==="dirty"&&l.dirty(),u.push(s.value)}return{status:l.value,value:u}}static async mergeObjectAsync(l,a){const u=[];for(const s of a){const c=await s.key,f=await s.value;u.push({key:c,value:f})}return an.mergeObjectSync(l,u)}static mergeObjectSync(l,a){const u={};for(const s of a){const{key:c,value:f}=s;if(c.status==="aborted"||f.status==="aborted")return _e;c.status==="dirty"&&l.dirty(),f.status==="dirty"&&l.dirty(),c.value!=="__proto__"&&(typeof f.value<"u"||s.alwaysSet)&&(u[c.value]=f.value)}return{status:l.value,value:u}}}const _e=Object.freeze({status:"aborted"}),ur=n=>({status:"dirty",value:n}),xn=n=>({status:"valid",value:n}),ag=n=>n.status==="aborted",rg=n=>n.status==="dirty",ea=n=>n.status==="valid",Fu=n=>typeof Promise<"u"&&n instanceof Promise;var me;(function(n){n.errToObj=l=>typeof l=="string"?{message:l}:l||{},n.toString=l=>typeof l=="string"?l:l==null?void 0:l.message})(me||(me={}));class Dl{constructor(l,a,u,s){this._cachedPath=[],this.parent=l,this.data=a,this._path=u,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const ug=(n,l)=>{if(ea(l))return{success:!0,data:l.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const a=new el(n.common.issues);return this._error=a,this._error}}};function Te(n){if(!n)return{};const{errorMap:l,invalid_type_error:a,required_error:u,description:s}=n;if(l&&(a||u))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return l?{errorMap:l,description:s}:{errorMap:(f,h)=>{const{message:p}=n;return f.code==="invalid_enum_value"?{message:p??h.defaultError}:typeof h.data>"u"?{message:p??u??h.defaultError}:f.code!=="invalid_type"?{message:h.defaultError}:{message:p??a??h.defaultError}},description:s}}class qe{get description(){return this._def.description}_getType(l){return jl(l.data)}_getOrReturnCtx(l,a){return a||{common:l.parent.common,data:l.data,parsedType:jl(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}_processInputParams(l){return{status:new an,ctx:{common:l.parent.common,data:l.data,parsedType:jl(l.data),schemaErrorMap:this._def.errorMap,path:l.path,parent:l.parent}}}_parseSync(l){const a=this._parse(l);if(Fu(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(l){const a=this._parse(l);return Promise.resolve(a)}parse(l,a){const u=this.safeParse(l,a);if(u.success)return u.data;throw u.error}safeParse(l,a){const u={common:{issues:[],async:(a==null?void 0:a.async)??!1,contextualErrorMap:a==null?void 0:a.errorMap},path:(a==null?void 0:a.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:jl(l)},s=this._parseSync({data:l,path:u.path,parent:u});return ug(u,s)}"~validate"(l){var u,s;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:jl(l)};if(!this["~standard"].async)try{const c=this._parseSync({data:l,path:[],parent:a});return ea(c)?{value:c.value}:{issues:a.common.issues}}catch(c){(s=(u=c==null?void 0:c.message)==null?void 0:u.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:l,path:[],parent:a}).then(c=>ea(c)?{value:c.value}:{issues:a.common.issues})}async parseAsync(l,a){const u=await this.safeParseAsync(l,a);if(u.success)return u.data;throw u.error}async safeParseAsync(l,a){const u={common:{issues:[],contextualErrorMap:a==null?void 0:a.errorMap,async:!0},path:(a==null?void 0:a.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:l,parsedType:jl(l)},s=this._parse({data:l,path:u.path,parent:u}),c=await(Fu(s)?s:Promise.resolve(s));return ug(u,c)}refine(l,a){const u=s=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(s):a;return this._refinement((s,c)=>{const f=l(s),h=()=>c.addIssue({code:ne.custom,...u(s)});return typeof Promise<"u"&&f instanceof Promise?f.then(p=>p?!0:(h(),!1)):f?!0:(h(),!1)})}refinement(l,a){return this._refinement((u,s)=>l(u)?!0:(s.addIssue(typeof a=="function"?a(u,s):a),!1))}_refinement(l){return new la({schema:this,typeName:Ee.ZodEffects,effect:{type:"refinement",refinement:l}})}superRefine(l){return this._refinement(l)}constructor(l){this.spa=this.safeParseAsync,this._def=l,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return zl.create(this,this._def)}nullable(){return ia.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jn.create(this)}promise(){return $u.create(this,this._def)}or(l){return Ku.create([this,l],this._def)}and(l){return Ju.create(this,l,this._def)}transform(l){return new la({...Te(this._def),schema:this,typeName:Ee.ZodEffects,effect:{type:"transform",transform:l}})}default(l){const a=typeof l=="function"?l:()=>l;return new uf({...Te(this._def),innerType:this,defaultValue:a,typeName:Ee.ZodDefault})}brand(){return new av({typeName:Ee.ZodBranded,type:this,...Te(this._def)})}catch(l){const a=typeof l=="function"?l:()=>l;return new sf({...Te(this._def),innerType:this,catchValue:a,typeName:Ee.ZodCatch})}describe(l){const a=this.constructor;return new a({...this._def,description:l})}pipe(l){return Nf.create(this,l)}readonly(){return cf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Bb=/^c[^\s-]{8,}$/i,Ub=/^[0-9a-z]+$/,Hb=/^[0-9A-HJKMNP-TV-Z]{26}$/i,qb=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Vb=/^[a-z0-9_-]{21}$/i,Yb=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Zb=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ib=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Qb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Bo;const Gb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Fb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Xb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Kb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Jb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$b=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,vy="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Pb=new RegExp(`^${vy}$`);function ky(n){let l="[0-5]\\d";n.precision?l=`${l}\\.\\d{${n.precision}}`:n.precision==null&&(l=`${l}(\\.\\d+)?`);const a=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${l})${a}`}function Wb(n){return new RegExp(`^${ky(n)}$`)}function ev(n){let l=`${vy}T${ky(n)}`;const a=[];return a.push(n.local?"Z?":"Z"),n.offset&&a.push("([+-]\\d{2}:?\\d{2})"),l=`${l}(${a.join("|")})`,new RegExp(`^${l}$`)}function tv(n,l){return!!((l==="v4"||!l)&&Gb.test(n)||(l==="v6"||!l)&&Xb.test(n))}function nv(n,l){if(!Yb.test(n))return!1;try{const[a]=n.split(".");if(!a)return!1;const u=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),s=JSON.parse(atob(u));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||l&&s.alg!==l)}catch{return!1}}function lv(n,l){return!!((l==="v4"||!l)&&Fb.test(n)||(l==="v6"||!l)&&Kb.test(n))}class Tl extends qe{_parse(l){if(this._def.coerce&&(l.data=String(l.data)),this._getType(l)!==de.string){const c=this._getOrReturnCtx(l);return se(c,{code:ne.invalid_type,expected:de.string,received:c.parsedType}),_e}const u=new an;let s;for(const c of this._def.checks)if(c.kind==="min")l.data.length<c.value&&(s=this._getOrReturnCtx(l,s),se(s,{code:ne.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),u.dirty());else if(c.kind==="max")l.data.length>c.value&&(s=this._getOrReturnCtx(l,s),se(s,{code:ne.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),u.dirty());else if(c.kind==="length"){const f=l.data.length>c.value,h=l.data.length<c.value;(f||h)&&(s=this._getOrReturnCtx(l,s),f?se(s,{code:ne.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):h&&se(s,{code:ne.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),u.dirty())}else if(c.kind==="email")Ib.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"email",code:ne.invalid_string,message:c.message}),u.dirty());else if(c.kind==="emoji")Bo||(Bo=new RegExp(Qb,"u")),Bo.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"emoji",code:ne.invalid_string,message:c.message}),u.dirty());else if(c.kind==="uuid")qb.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"uuid",code:ne.invalid_string,message:c.message}),u.dirty());else if(c.kind==="nanoid")Vb.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"nanoid",code:ne.invalid_string,message:c.message}),u.dirty());else if(c.kind==="cuid")Bb.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"cuid",code:ne.invalid_string,message:c.message}),u.dirty());else if(c.kind==="cuid2")Ub.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"cuid2",code:ne.invalid_string,message:c.message}),u.dirty());else if(c.kind==="ulid")Hb.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"ulid",code:ne.invalid_string,message:c.message}),u.dirty());else if(c.kind==="url")try{new URL(l.data)}catch{s=this._getOrReturnCtx(l,s),se(s,{validation:"url",code:ne.invalid_string,message:c.message}),u.dirty()}else c.kind==="regex"?(c.regex.lastIndex=0,c.regex.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"regex",code:ne.invalid_string,message:c.message}),u.dirty())):c.kind==="trim"?l.data=l.data.trim():c.kind==="includes"?l.data.includes(c.value,c.position)||(s=this._getOrReturnCtx(l,s),se(s,{code:ne.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),u.dirty()):c.kind==="toLowerCase"?l.data=l.data.toLowerCase():c.kind==="toUpperCase"?l.data=l.data.toUpperCase():c.kind==="startsWith"?l.data.startsWith(c.value)||(s=this._getOrReturnCtx(l,s),se(s,{code:ne.invalid_string,validation:{startsWith:c.value},message:c.message}),u.dirty()):c.kind==="endsWith"?l.data.endsWith(c.value)||(s=this._getOrReturnCtx(l,s),se(s,{code:ne.invalid_string,validation:{endsWith:c.value},message:c.message}),u.dirty()):c.kind==="datetime"?ev(c).test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{code:ne.invalid_string,validation:"datetime",message:c.message}),u.dirty()):c.kind==="date"?Pb.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{code:ne.invalid_string,validation:"date",message:c.message}),u.dirty()):c.kind==="time"?Wb(c).test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{code:ne.invalid_string,validation:"time",message:c.message}),u.dirty()):c.kind==="duration"?Zb.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"duration",code:ne.invalid_string,message:c.message}),u.dirty()):c.kind==="ip"?tv(l.data,c.version)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"ip",code:ne.invalid_string,message:c.message}),u.dirty()):c.kind==="jwt"?nv(l.data,c.alg)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"jwt",code:ne.invalid_string,message:c.message}),u.dirty()):c.kind==="cidr"?lv(l.data,c.version)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"cidr",code:ne.invalid_string,message:c.message}),u.dirty()):c.kind==="base64"?Jb.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"base64",code:ne.invalid_string,message:c.message}),u.dirty()):c.kind==="base64url"?$b.test(l.data)||(s=this._getOrReturnCtx(l,s),se(s,{validation:"base64url",code:ne.invalid_string,message:c.message}),u.dirty()):Ze.assertNever(c);return{status:u.value,value:l.data}}_regex(l,a,u){return this.refinement(s=>l.test(s),{validation:a,code:ne.invalid_string,...me.errToObj(u)})}_addCheck(l){return new Tl({...this._def,checks:[...this._def.checks,l]})}email(l){return this._addCheck({kind:"email",...me.errToObj(l)})}url(l){return this._addCheck({kind:"url",...me.errToObj(l)})}emoji(l){return this._addCheck({kind:"emoji",...me.errToObj(l)})}uuid(l){return this._addCheck({kind:"uuid",...me.errToObj(l)})}nanoid(l){return this._addCheck({kind:"nanoid",...me.errToObj(l)})}cuid(l){return this._addCheck({kind:"cuid",...me.errToObj(l)})}cuid2(l){return this._addCheck({kind:"cuid2",...me.errToObj(l)})}ulid(l){return this._addCheck({kind:"ulid",...me.errToObj(l)})}base64(l){return this._addCheck({kind:"base64",...me.errToObj(l)})}base64url(l){return this._addCheck({kind:"base64url",...me.errToObj(l)})}jwt(l){return this._addCheck({kind:"jwt",...me.errToObj(l)})}ip(l){return this._addCheck({kind:"ip",...me.errToObj(l)})}cidr(l){return this._addCheck({kind:"cidr",...me.errToObj(l)})}datetime(l){return typeof l=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:l}):this._addCheck({kind:"datetime",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,offset:(l==null?void 0:l.offset)??!1,local:(l==null?void 0:l.local)??!1,...me.errToObj(l==null?void 0:l.message)})}date(l){return this._addCheck({kind:"date",message:l})}time(l){return typeof l=="string"?this._addCheck({kind:"time",precision:null,message:l}):this._addCheck({kind:"time",precision:typeof(l==null?void 0:l.precision)>"u"?null:l==null?void 0:l.precision,...me.errToObj(l==null?void 0:l.message)})}duration(l){return this._addCheck({kind:"duration",...me.errToObj(l)})}regex(l,a){return this._addCheck({kind:"regex",regex:l,...me.errToObj(a)})}includes(l,a){return this._addCheck({kind:"includes",value:l,position:a==null?void 0:a.position,...me.errToObj(a==null?void 0:a.message)})}startsWith(l,a){return this._addCheck({kind:"startsWith",value:l,...me.errToObj(a)})}endsWith(l,a){return this._addCheck({kind:"endsWith",value:l,...me.errToObj(a)})}min(l,a){return this._addCheck({kind:"min",value:l,...me.errToObj(a)})}max(l,a){return this._addCheck({kind:"max",value:l,...me.errToObj(a)})}length(l,a){return this._addCheck({kind:"length",value:l,...me.errToObj(a)})}nonempty(l){return this.min(1,me.errToObj(l))}trim(){return new Tl({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Tl({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Tl({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(l=>l.kind==="datetime")}get isDate(){return!!this._def.checks.find(l=>l.kind==="date")}get isTime(){return!!this._def.checks.find(l=>l.kind==="time")}get isDuration(){return!!this._def.checks.find(l=>l.kind==="duration")}get isEmail(){return!!this._def.checks.find(l=>l.kind==="email")}get isURL(){return!!this._def.checks.find(l=>l.kind==="url")}get isEmoji(){return!!this._def.checks.find(l=>l.kind==="emoji")}get isUUID(){return!!this._def.checks.find(l=>l.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(l=>l.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(l=>l.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(l=>l.kind==="cuid2")}get isULID(){return!!this._def.checks.find(l=>l.kind==="ulid")}get isIP(){return!!this._def.checks.find(l=>l.kind==="ip")}get isCIDR(){return!!this._def.checks.find(l=>l.kind==="cidr")}get isBase64(){return!!this._def.checks.find(l=>l.kind==="base64")}get isBase64url(){return!!this._def.checks.find(l=>l.kind==="base64url")}get minLength(){let l=null;for(const a of this._def.checks)a.kind==="min"&&(l===null||a.value>l)&&(l=a.value);return l}get maxLength(){let l=null;for(const a of this._def.checks)a.kind==="max"&&(l===null||a.value<l)&&(l=a.value);return l}}Tl.create=n=>new Tl({checks:[],typeName:Ee.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...Te(n)});function iv(n,l){const a=(n.toString().split(".")[1]||"").length,u=(l.toString().split(".")[1]||"").length,s=a>u?a:u,c=Number.parseInt(n.toFixed(s).replace(".","")),f=Number.parseInt(l.toFixed(s).replace(".",""));return c%f/10**s}class ta extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(l){if(this._def.coerce&&(l.data=Number(l.data)),this._getType(l)!==de.number){const c=this._getOrReturnCtx(l);return se(c,{code:ne.invalid_type,expected:de.number,received:c.parsedType}),_e}let u;const s=new an;for(const c of this._def.checks)c.kind==="int"?Ze.isInteger(l.data)||(u=this._getOrReturnCtx(l,u),se(u,{code:ne.invalid_type,expected:"integer",received:"float",message:c.message}),s.dirty()):c.kind==="min"?(c.inclusive?l.data<c.value:l.data<=c.value)&&(u=this._getOrReturnCtx(l,u),se(u,{code:ne.too_small,minimum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),s.dirty()):c.kind==="max"?(c.inclusive?l.data>c.value:l.data>=c.value)&&(u=this._getOrReturnCtx(l,u),se(u,{code:ne.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),s.dirty()):c.kind==="multipleOf"?iv(l.data,c.value)!==0&&(u=this._getOrReturnCtx(l,u),se(u,{code:ne.not_multiple_of,multipleOf:c.value,message:c.message}),s.dirty()):c.kind==="finite"?Number.isFinite(l.data)||(u=this._getOrReturnCtx(l,u),se(u,{code:ne.not_finite,message:c.message}),s.dirty()):Ze.assertNever(c);return{status:s.value,value:l.data}}gte(l,a){return this.setLimit("min",l,!0,me.toString(a))}gt(l,a){return this.setLimit("min",l,!1,me.toString(a))}lte(l,a){return this.setLimit("max",l,!0,me.toString(a))}lt(l,a){return this.setLimit("max",l,!1,me.toString(a))}setLimit(l,a,u,s){return new ta({...this._def,checks:[...this._def.checks,{kind:l,value:a,inclusive:u,message:me.toString(s)}]})}_addCheck(l){return new ta({...this._def,checks:[...this._def.checks,l]})}int(l){return this._addCheck({kind:"int",message:me.toString(l)})}positive(l){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(l)})}negative(l){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(l)})}multipleOf(l,a){return this._addCheck({kind:"multipleOf",value:l,message:me.toString(a)})}finite(l){return this._addCheck({kind:"finite",message:me.toString(l)})}safe(l){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(l)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(l)})}get minValue(){let l=null;for(const a of this._def.checks)a.kind==="min"&&(l===null||a.value>l)&&(l=a.value);return l}get maxValue(){let l=null;for(const a of this._def.checks)a.kind==="max"&&(l===null||a.value<l)&&(l=a.value);return l}get isInt(){return!!this._def.checks.find(l=>l.kind==="int"||l.kind==="multipleOf"&&Ze.isInteger(l.value))}get isFinite(){let l=null,a=null;for(const u of this._def.checks){if(u.kind==="finite"||u.kind==="int"||u.kind==="multipleOf")return!0;u.kind==="min"?(a===null||u.value>a)&&(a=u.value):u.kind==="max"&&(l===null||u.value<l)&&(l=u.value)}return Number.isFinite(a)&&Number.isFinite(l)}}ta.create=n=>new ta({checks:[],typeName:Ee.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...Te(n)});class fr extends qe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(l){if(this._def.coerce)try{l.data=BigInt(l.data)}catch{return this._getInvalidInput(l)}if(this._getType(l)!==de.bigint)return this._getInvalidInput(l);let u;const s=new an;for(const c of this._def.checks)c.kind==="min"?(c.inclusive?l.data<c.value:l.data<=c.value)&&(u=this._getOrReturnCtx(l,u),se(u,{code:ne.too_small,type:"bigint",minimum:c.value,inclusive:c.inclusive,message:c.message}),s.dirty()):c.kind==="max"?(c.inclusive?l.data>c.value:l.data>=c.value)&&(u=this._getOrReturnCtx(l,u),se(u,{code:ne.too_big,type:"bigint",maximum:c.value,inclusive:c.inclusive,message:c.message}),s.dirty()):c.kind==="multipleOf"?l.data%c.value!==BigInt(0)&&(u=this._getOrReturnCtx(l,u),se(u,{code:ne.not_multiple_of,multipleOf:c.value,message:c.message}),s.dirty()):Ze.assertNever(c);return{status:s.value,value:l.data}}_getInvalidInput(l){const a=this._getOrReturnCtx(l);return se(a,{code:ne.invalid_type,expected:de.bigint,received:a.parsedType}),_e}gte(l,a){return this.setLimit("min",l,!0,me.toString(a))}gt(l,a){return this.setLimit("min",l,!1,me.toString(a))}lte(l,a){return this.setLimit("max",l,!0,me.toString(a))}lt(l,a){return this.setLimit("max",l,!1,me.toString(a))}setLimit(l,a,u,s){return new fr({...this._def,checks:[...this._def.checks,{kind:l,value:a,inclusive:u,message:me.toString(s)}]})}_addCheck(l){return new fr({...this._def,checks:[...this._def.checks,l]})}positive(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(l)})}negative(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(l)})}nonpositive(l){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(l)})}nonnegative(l){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(l)})}multipleOf(l,a){return this._addCheck({kind:"multipleOf",value:l,message:me.toString(a)})}get minValue(){let l=null;for(const a of this._def.checks)a.kind==="min"&&(l===null||a.value>l)&&(l=a.value);return l}get maxValue(){let l=null;for(const a of this._def.checks)a.kind==="max"&&(l===null||a.value<l)&&(l=a.value);return l}}fr.create=n=>new fr({checks:[],typeName:Ee.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...Te(n)});class af extends qe{_parse(l){if(this._def.coerce&&(l.data=!!l.data),this._getType(l)!==de.boolean){const u=this._getOrReturnCtx(l);return se(u,{code:ne.invalid_type,expected:de.boolean,received:u.parsedType}),_e}return xn(l.data)}}af.create=n=>new af({typeName:Ee.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...Te(n)});class Xu extends qe{_parse(l){if(this._def.coerce&&(l.data=new Date(l.data)),this._getType(l)!==de.date){const c=this._getOrReturnCtx(l);return se(c,{code:ne.invalid_type,expected:de.date,received:c.parsedType}),_e}if(Number.isNaN(l.data.getTime())){const c=this._getOrReturnCtx(l);return se(c,{code:ne.invalid_date}),_e}const u=new an;let s;for(const c of this._def.checks)c.kind==="min"?l.data.getTime()<c.value&&(s=this._getOrReturnCtx(l,s),se(s,{code:ne.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),u.dirty()):c.kind==="max"?l.data.getTime()>c.value&&(s=this._getOrReturnCtx(l,s),se(s,{code:ne.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),u.dirty()):Ze.assertNever(c);return{status:u.value,value:new Date(l.data.getTime())}}_addCheck(l){return new Xu({...this._def,checks:[...this._def.checks,l]})}min(l,a){return this._addCheck({kind:"min",value:l.getTime(),message:me.toString(a)})}max(l,a){return this._addCheck({kind:"max",value:l.getTime(),message:me.toString(a)})}get minDate(){let l=null;for(const a of this._def.checks)a.kind==="min"&&(l===null||a.value>l)&&(l=a.value);return l!=null?new Date(l):null}get maxDate(){let l=null;for(const a of this._def.checks)a.kind==="max"&&(l===null||a.value<l)&&(l=a.value);return l!=null?new Date(l):null}}Xu.create=n=>new Xu({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:Ee.ZodDate,...Te(n)});class sg extends qe{_parse(l){if(this._getType(l)!==de.symbol){const u=this._getOrReturnCtx(l);return se(u,{code:ne.invalid_type,expected:de.symbol,received:u.parsedType}),_e}return xn(l.data)}}sg.create=n=>new sg({typeName:Ee.ZodSymbol,...Te(n)});class cg extends qe{_parse(l){if(this._getType(l)!==de.undefined){const u=this._getOrReturnCtx(l);return se(u,{code:ne.invalid_type,expected:de.undefined,received:u.parsedType}),_e}return xn(l.data)}}cg.create=n=>new cg({typeName:Ee.ZodUndefined,...Te(n)});class og extends qe{_parse(l){if(this._getType(l)!==de.null){const u=this._getOrReturnCtx(l);return se(u,{code:ne.invalid_type,expected:de.null,received:u.parsedType}),_e}return xn(l.data)}}og.create=n=>new og({typeName:Ee.ZodNull,...Te(n)});class fg extends qe{constructor(){super(...arguments),this._any=!0}_parse(l){return xn(l.data)}}fg.create=n=>new fg({typeName:Ee.ZodAny,...Te(n)});class dg extends qe{constructor(){super(...arguments),this._unknown=!0}_parse(l){return xn(l.data)}}dg.create=n=>new dg({typeName:Ee.ZodUnknown,...Te(n)});class Ol extends qe{_parse(l){const a=this._getOrReturnCtx(l);return se(a,{code:ne.invalid_type,expected:de.never,received:a.parsedType}),_e}}Ol.create=n=>new Ol({typeName:Ee.ZodNever,...Te(n)});class hg extends qe{_parse(l){if(this._getType(l)!==de.undefined){const u=this._getOrReturnCtx(l);return se(u,{code:ne.invalid_type,expected:de.void,received:u.parsedType}),_e}return xn(l.data)}}hg.create=n=>new hg({typeName:Ee.ZodVoid,...Te(n)});class jn extends qe{_parse(l){const{ctx:a,status:u}=this._processInputParams(l),s=this._def;if(a.parsedType!==de.array)return se(a,{code:ne.invalid_type,expected:de.array,received:a.parsedType}),_e;if(s.exactLength!==null){const f=a.data.length>s.exactLength.value,h=a.data.length<s.exactLength.value;(f||h)&&(se(a,{code:f?ne.too_big:ne.too_small,minimum:h?s.exactLength.value:void 0,maximum:f?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),u.dirty())}if(s.minLength!==null&&a.data.length<s.minLength.value&&(se(a,{code:ne.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),u.dirty()),s.maxLength!==null&&a.data.length>s.maxLength.value&&(se(a,{code:ne.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),u.dirty()),a.common.async)return Promise.all([...a.data].map((f,h)=>s.type._parseAsync(new Dl(a,f,a.path,h)))).then(f=>an.mergeArray(u,f));const c=[...a.data].map((f,h)=>s.type._parseSync(new Dl(a,f,a.path,h)));return an.mergeArray(u,c)}get element(){return this._def.type}min(l,a){return new jn({...this._def,minLength:{value:l,message:me.toString(a)}})}max(l,a){return new jn({...this._def,maxLength:{value:l,message:me.toString(a)}})}length(l,a){return new jn({...this._def,exactLength:{value:l,message:me.toString(a)}})}nonempty(l){return this.min(1,l)}}jn.create=(n,l)=>new jn({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Ee.ZodArray,...Te(l)});function Ji(n){if(n instanceof yt){const l={};for(const a in n.shape){const u=n.shape[a];l[a]=zl.create(Ji(u))}return new yt({...n._def,shape:()=>l})}else return n instanceof jn?new jn({...n._def,type:Ji(n.element)}):n instanceof zl?zl.create(Ji(n.unwrap())):n instanceof ia?ia.create(Ji(n.unwrap())):n instanceof ii?ii.create(n.items.map(l=>Ji(l))):n}class yt extends qe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const l=this._def.shape(),a=Ze.objectKeys(l);return this._cached={shape:l,keys:a},this._cached}_parse(l){if(this._getType(l)!==de.object){const m=this._getOrReturnCtx(l);return se(m,{code:ne.invalid_type,expected:de.object,received:m.parsedType}),_e}const{status:u,ctx:s}=this._processInputParams(l),{shape:c,keys:f}=this._getCached(),h=[];if(!(this._def.catchall instanceof Ol&&this._def.unknownKeys==="strip"))for(const m in s.data)f.includes(m)||h.push(m);const p=[];for(const m of f){const b=c[m],y=s.data[m];p.push({key:{status:"valid",value:m},value:b._parse(new Dl(s,y,s.path,m)),alwaysSet:m in s.data})}if(this._def.catchall instanceof Ol){const m=this._def.unknownKeys;if(m==="passthrough")for(const b of h)p.push({key:{status:"valid",value:b},value:{status:"valid",value:s.data[b]}});else if(m==="strict")h.length>0&&(se(s,{code:ne.unrecognized_keys,keys:h}),u.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const b of h){const y=s.data[b];p.push({key:{status:"valid",value:b},value:m._parse(new Dl(s,y,s.path,b)),alwaysSet:b in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const m=[];for(const b of p){const y=await b.key,k=await b.value;m.push({key:y,value:k,alwaysSet:b.alwaysSet})}return m}).then(m=>an.mergeObjectSync(u,m)):an.mergeObjectSync(u,p)}get shape(){return this._def.shape()}strict(l){return me.errToObj,new yt({...this._def,unknownKeys:"strict",...l!==void 0?{errorMap:(a,u)=>{var c,f;const s=((f=(c=this._def).errorMap)==null?void 0:f.call(c,a,u).message)??u.defaultError;return a.code==="unrecognized_keys"?{message:me.errToObj(l).message??s}:{message:s}}}:{}})}strip(){return new yt({...this._def,unknownKeys:"strip"})}passthrough(){return new yt({...this._def,unknownKeys:"passthrough"})}extend(l){return new yt({...this._def,shape:()=>({...this._def.shape(),...l})})}merge(l){return new yt({unknownKeys:l._def.unknownKeys,catchall:l._def.catchall,shape:()=>({...this._def.shape(),...l._def.shape()}),typeName:Ee.ZodObject})}setKey(l,a){return this.augment({[l]:a})}catchall(l){return new yt({...this._def,catchall:l})}pick(l){const a={};for(const u of Ze.objectKeys(l))l[u]&&this.shape[u]&&(a[u]=this.shape[u]);return new yt({...this._def,shape:()=>a})}omit(l){const a={};for(const u of Ze.objectKeys(this.shape))l[u]||(a[u]=this.shape[u]);return new yt({...this._def,shape:()=>a})}deepPartial(){return Ji(this)}partial(l){const a={};for(const u of Ze.objectKeys(this.shape)){const s=this.shape[u];l&&!l[u]?a[u]=s:a[u]=s.optional()}return new yt({...this._def,shape:()=>a})}required(l){const a={};for(const u of Ze.objectKeys(this.shape))if(l&&!l[u])a[u]=this.shape[u];else{let c=this.shape[u];for(;c instanceof zl;)c=c._def.innerType;a[u]=c}return new yt({...this._def,shape:()=>a})}keyof(){return Sy(Ze.objectKeys(this.shape))}}yt.create=(n,l)=>new yt({shape:()=>n,unknownKeys:"strip",catchall:Ol.create(),typeName:Ee.ZodObject,...Te(l)});yt.strictCreate=(n,l)=>new yt({shape:()=>n,unknownKeys:"strict",catchall:Ol.create(),typeName:Ee.ZodObject,...Te(l)});yt.lazycreate=(n,l)=>new yt({shape:n,unknownKeys:"strip",catchall:Ol.create(),typeName:Ee.ZodObject,...Te(l)});class Ku extends qe{_parse(l){const{ctx:a}=this._processInputParams(l),u=this._def.options;function s(c){for(const h of c)if(h.result.status==="valid")return h.result;for(const h of c)if(h.result.status==="dirty")return a.common.issues.push(...h.ctx.common.issues),h.result;const f=c.map(h=>new el(h.ctx.common.issues));return se(a,{code:ne.invalid_union,unionErrors:f}),_e}if(a.common.async)return Promise.all(u.map(async c=>{const f={...a,common:{...a.common,issues:[]},parent:null};return{result:await c._parseAsync({data:a.data,path:a.path,parent:f}),ctx:f}})).then(s);{let c;const f=[];for(const p of u){const m={...a,common:{...a.common,issues:[]},parent:null},b=p._parseSync({data:a.data,path:a.path,parent:m});if(b.status==="valid")return b;b.status==="dirty"&&!c&&(c={result:b,ctx:m}),m.common.issues.length&&f.push(m.common.issues)}if(c)return a.common.issues.push(...c.ctx.common.issues),c.result;const h=f.map(p=>new el(p));return se(a,{code:ne.invalid_union,unionErrors:h}),_e}}get options(){return this._def.options}}Ku.create=(n,l)=>new Ku({options:n,typeName:Ee.ZodUnion,...Te(l)});function rf(n,l){const a=jl(n),u=jl(l);if(n===l)return{valid:!0,data:n};if(a===de.object&&u===de.object){const s=Ze.objectKeys(l),c=Ze.objectKeys(n).filter(h=>s.indexOf(h)!==-1),f={...n,...l};for(const h of c){const p=rf(n[h],l[h]);if(!p.valid)return{valid:!1};f[h]=p.data}return{valid:!0,data:f}}else if(a===de.array&&u===de.array){if(n.length!==l.length)return{valid:!1};const s=[];for(let c=0;c<n.length;c++){const f=n[c],h=l[c],p=rf(f,h);if(!p.valid)return{valid:!1};s.push(p.data)}return{valid:!0,data:s}}else return a===de.date&&u===de.date&&+n==+l?{valid:!0,data:n}:{valid:!1}}class Ju extends qe{_parse(l){const{status:a,ctx:u}=this._processInputParams(l),s=(c,f)=>{if(ag(c)||ag(f))return _e;const h=rf(c.value,f.value);return h.valid?((rg(c)||rg(f))&&a.dirty(),{status:a.value,value:h.data}):(se(u,{code:ne.invalid_intersection_types}),_e)};return u.common.async?Promise.all([this._def.left._parseAsync({data:u.data,path:u.path,parent:u}),this._def.right._parseAsync({data:u.data,path:u.path,parent:u})]).then(([c,f])=>s(c,f)):s(this._def.left._parseSync({data:u.data,path:u.path,parent:u}),this._def.right._parseSync({data:u.data,path:u.path,parent:u}))}}Ju.create=(n,l,a)=>new Ju({left:n,right:l,typeName:Ee.ZodIntersection,...Te(a)});class ii extends qe{_parse(l){const{status:a,ctx:u}=this._processInputParams(l);if(u.parsedType!==de.array)return se(u,{code:ne.invalid_type,expected:de.array,received:u.parsedType}),_e;if(u.data.length<this._def.items.length)return se(u,{code:ne.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_e;!this._def.rest&&u.data.length>this._def.items.length&&(se(u,{code:ne.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());const c=[...u.data].map((f,h)=>{const p=this._def.items[h]||this._def.rest;return p?p._parse(new Dl(u,f,u.path,h)):null}).filter(f=>!!f);return u.common.async?Promise.all(c).then(f=>an.mergeArray(a,f)):an.mergeArray(a,c)}get items(){return this._def.items}rest(l){return new ii({...this._def,rest:l})}}ii.create=(n,l)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ii({items:n,typeName:Ee.ZodTuple,rest:null,...Te(l)})};class mg extends qe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(l){const{status:a,ctx:u}=this._processInputParams(l);if(u.parsedType!==de.map)return se(u,{code:ne.invalid_type,expected:de.map,received:u.parsedType}),_e;const s=this._def.keyType,c=this._def.valueType,f=[...u.data.entries()].map(([h,p],m)=>({key:s._parse(new Dl(u,h,u.path,[m,"key"])),value:c._parse(new Dl(u,p,u.path,[m,"value"]))}));if(u.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const p of f){const m=await p.key,b=await p.value;if(m.status==="aborted"||b.status==="aborted")return _e;(m.status==="dirty"||b.status==="dirty")&&a.dirty(),h.set(m.value,b.value)}return{status:a.value,value:h}})}else{const h=new Map;for(const p of f){const m=p.key,b=p.value;if(m.status==="aborted"||b.status==="aborted")return _e;(m.status==="dirty"||b.status==="dirty")&&a.dirty(),h.set(m.value,b.value)}return{status:a.value,value:h}}}}mg.create=(n,l,a)=>new mg({valueType:l,keyType:n,typeName:Ee.ZodMap,...Te(a)});class dr extends qe{_parse(l){const{status:a,ctx:u}=this._processInputParams(l);if(u.parsedType!==de.set)return se(u,{code:ne.invalid_type,expected:de.set,received:u.parsedType}),_e;const s=this._def;s.minSize!==null&&u.data.size<s.minSize.value&&(se(u,{code:ne.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),a.dirty()),s.maxSize!==null&&u.data.size>s.maxSize.value&&(se(u,{code:ne.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),a.dirty());const c=this._def.valueType;function f(p){const m=new Set;for(const b of p){if(b.status==="aborted")return _e;b.status==="dirty"&&a.dirty(),m.add(b.value)}return{status:a.value,value:m}}const h=[...u.data.values()].map((p,m)=>c._parse(new Dl(u,p,u.path,m)));return u.common.async?Promise.all(h).then(p=>f(p)):f(h)}min(l,a){return new dr({...this._def,minSize:{value:l,message:me.toString(a)}})}max(l,a){return new dr({...this._def,maxSize:{value:l,message:me.toString(a)}})}size(l,a){return this.min(l,a).max(l,a)}nonempty(l){return this.min(1,l)}}dr.create=(n,l)=>new dr({valueType:n,minSize:null,maxSize:null,typeName:Ee.ZodSet,...Te(l)});class pg extends qe{get schema(){return this._def.getter()}_parse(l){const{ctx:a}=this._processInputParams(l);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}}pg.create=(n,l)=>new pg({getter:n,typeName:Ee.ZodLazy,...Te(l)});class gg extends qe{_parse(l){if(l.data!==this._def.value){const a=this._getOrReturnCtx(l);return se(a,{received:a.data,code:ne.invalid_literal,expected:this._def.value}),_e}return{status:"valid",value:l.data}}get value(){return this._def.value}}gg.create=(n,l)=>new gg({value:n,typeName:Ee.ZodLiteral,...Te(l)});function Sy(n,l){return new na({values:n,typeName:Ee.ZodEnum,...Te(l)})}class na extends qe{_parse(l){if(typeof l.data!="string"){const a=this._getOrReturnCtx(l),u=this._def.values;return se(a,{expected:Ze.joinValues(u),received:a.parsedType,code:ne.invalid_type}),_e}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(l.data)){const a=this._getOrReturnCtx(l),u=this._def.values;return se(a,{received:a.data,code:ne.invalid_enum_value,options:u}),_e}return xn(l.data)}get options(){return this._def.values}get enum(){const l={};for(const a of this._def.values)l[a]=a;return l}get Values(){const l={};for(const a of this._def.values)l[a]=a;return l}get Enum(){const l={};for(const a of this._def.values)l[a]=a;return l}extract(l,a=this._def){return na.create(l,{...this._def,...a})}exclude(l,a=this._def){return na.create(this.options.filter(u=>!l.includes(u)),{...this._def,...a})}}na.create=Sy;class yg extends qe{_parse(l){const a=Ze.getValidEnumValues(this._def.values),u=this._getOrReturnCtx(l);if(u.parsedType!==de.string&&u.parsedType!==de.number){const s=Ze.objectValues(a);return se(u,{expected:Ze.joinValues(s),received:u.parsedType,code:ne.invalid_type}),_e}if(this._cache||(this._cache=new Set(Ze.getValidEnumValues(this._def.values))),!this._cache.has(l.data)){const s=Ze.objectValues(a);return se(u,{received:u.data,code:ne.invalid_enum_value,options:s}),_e}return xn(l.data)}get enum(){return this._def.values}}yg.create=(n,l)=>new yg({values:n,typeName:Ee.ZodNativeEnum,...Te(l)});class $u extends qe{unwrap(){return this._def.type}_parse(l){const{ctx:a}=this._processInputParams(l);if(a.parsedType!==de.promise&&a.common.async===!1)return se(a,{code:ne.invalid_type,expected:de.promise,received:a.parsedType}),_e;const u=a.parsedType===de.promise?a.data:Promise.resolve(a.data);return xn(u.then(s=>this._def.type.parseAsync(s,{path:a.path,errorMap:a.common.contextualErrorMap})))}}$u.create=(n,l)=>new $u({type:n,typeName:Ee.ZodPromise,...Te(l)});class la extends qe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(l){const{status:a,ctx:u}=this._processInputParams(l),s=this._def.effect||null,c={addIssue:f=>{se(u,f),f.fatal?a.abort():a.dirty()},get path(){return u.path}};if(c.addIssue=c.addIssue.bind(c),s.type==="preprocess"){const f=s.transform(u.data,c);if(u.common.async)return Promise.resolve(f).then(async h=>{if(a.value==="aborted")return _e;const p=await this._def.schema._parseAsync({data:h,path:u.path,parent:u});return p.status==="aborted"?_e:p.status==="dirty"||a.value==="dirty"?ur(p.value):p});{if(a.value==="aborted")return _e;const h=this._def.schema._parseSync({data:f,path:u.path,parent:u});return h.status==="aborted"?_e:h.status==="dirty"||a.value==="dirty"?ur(h.value):h}}if(s.type==="refinement"){const f=h=>{const p=s.refinement(h,c);if(u.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(u.common.async===!1){const h=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});return h.status==="aborted"?_e:(h.status==="dirty"&&a.dirty(),f(h.value),{status:a.value,value:h.value})}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(h=>h.status==="aborted"?_e:(h.status==="dirty"&&a.dirty(),f(h.value).then(()=>({status:a.value,value:h.value}))))}if(s.type==="transform")if(u.common.async===!1){const f=this._def.schema._parseSync({data:u.data,path:u.path,parent:u});if(!ea(f))return _e;const h=s.transform(f.value,c);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:h}}else return this._def.schema._parseAsync({data:u.data,path:u.path,parent:u}).then(f=>ea(f)?Promise.resolve(s.transform(f.value,c)).then(h=>({status:a.value,value:h})):_e);Ze.assertNever(s)}}la.create=(n,l,a)=>new la({schema:n,typeName:Ee.ZodEffects,effect:l,...Te(a)});la.createWithPreprocess=(n,l,a)=>new la({schema:l,effect:{type:"preprocess",transform:n},typeName:Ee.ZodEffects,...Te(a)});class zl extends qe{_parse(l){return this._getType(l)===de.undefined?xn(void 0):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}zl.create=(n,l)=>new zl({innerType:n,typeName:Ee.ZodOptional,...Te(l)});class ia extends qe{_parse(l){return this._getType(l)===de.null?xn(null):this._def.innerType._parse(l)}unwrap(){return this._def.innerType}}ia.create=(n,l)=>new ia({innerType:n,typeName:Ee.ZodNullable,...Te(l)});class uf extends qe{_parse(l){const{ctx:a}=this._processInputParams(l);let u=a.data;return a.parsedType===de.undefined&&(u=this._def.defaultValue()),this._def.innerType._parse({data:u,path:a.path,parent:a})}removeDefault(){return this._def.innerType}}uf.create=(n,l)=>new uf({innerType:n,typeName:Ee.ZodDefault,defaultValue:typeof l.default=="function"?l.default:()=>l.default,...Te(l)});class sf extends qe{_parse(l){const{ctx:a}=this._processInputParams(l),u={...a,common:{...a.common,issues:[]}},s=this._def.innerType._parse({data:u.data,path:u.path,parent:{...u}});return Fu(s)?s.then(c=>({status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new el(u.common.issues)},input:u.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new el(u.common.issues)},input:u.data})}}removeCatch(){return this._def.innerType}}sf.create=(n,l)=>new sf({innerType:n,typeName:Ee.ZodCatch,catchValue:typeof l.catch=="function"?l.catch:()=>l.catch,...Te(l)});class xg extends qe{_parse(l){if(this._getType(l)!==de.nan){const u=this._getOrReturnCtx(l);return se(u,{code:ne.invalid_type,expected:de.nan,received:u.parsedType}),_e}return{status:"valid",value:l.data}}}xg.create=n=>new xg({typeName:Ee.ZodNaN,...Te(n)});class av extends qe{_parse(l){const{ctx:a}=this._processInputParams(l),u=a.data;return this._def.type._parse({data:u,path:a.path,parent:a})}unwrap(){return this._def.type}}class Nf extends qe{_parse(l){const{status:a,ctx:u}=this._processInputParams(l);if(u.common.async)return(async()=>{const c=await this._def.in._parseAsync({data:u.data,path:u.path,parent:u});return c.status==="aborted"?_e:c.status==="dirty"?(a.dirty(),ur(c.value)):this._def.out._parseAsync({data:c.value,path:u.path,parent:u})})();{const s=this._def.in._parseSync({data:u.data,path:u.path,parent:u});return s.status==="aborted"?_e:s.status==="dirty"?(a.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:u.path,parent:u})}}static create(l,a){return new Nf({in:l,out:a,typeName:Ee.ZodPipeline})}}class cf extends qe{_parse(l){const a=this._def.innerType._parse(l),u=s=>(ea(s)&&(s.value=Object.freeze(s.value)),s);return Fu(a)?a.then(s=>u(s)):u(a)}unwrap(){return this._def.innerType}}cf.create=(n,l)=>new cf({innerType:n,typeName:Ee.ZodReadonly,...Te(l)});var Ee;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Ee||(Ee={}));const Q=Tl.create,xt=ta.create,Qt=af.create;Ol.create;const Nt=jn.create,Ne=yt.create;Ku.create;Ju.create;ii.create;const Gt=na.create;$u.create;zl.create;ia.create;const Tn=Gt(["claude_code","cursor_local"]),rv="00000000-0000-4000-a000-000000000001",Pu="auto",uv=Ne({code:Gt(["cli_missing","runtime_auth","deck_offline","workspace_missing","mcp_not_registered"]),message:Q()}),sv=Ne({id:Q().uuid(),name:Q(),runtime:Tn,workspaceRoot:Q().nullable(),deckId:Q().uuid().nullable(),deckName:Q().nullable(),playbookId:Q().nullable(),defaultPlanModel:Q().nullable(),defaultExecuteModel:Q().nullable(),isBuiltin:Qt(),createdAt:Q(),updatedAt:Q()}),wy=sv.extend({healthy:Qt(),issues:Nt(uv)});Ne({name:Q().min(1),runtime:Tn,workspaceRoot:Q().min(1),deckId:Q().uuid().optional(),playbookId:Q().optional(),defaultPlanModel:Q().nullable().optional(),defaultExecuteModel:Q().nullable().optional()});Ne({name:Q().min(1).optional(),runtime:Tn.optional(),workspaceRoot:Q().nullable().optional(),deckId:Q().uuid().nullable().optional(),playbookId:Q().nullable().optional(),defaultPlanModel:Q().nullable().optional(),defaultExecuteModel:Q().nullable().optional()});Ne({agents:Nt(wy),issueCount:xt()});function cv(n){if(!(n!=null&&n.trim()))return{detected:!1};const l=n.match(/\*\*Blocker:\*\*\s*([^\n]+)/i);if(l)return{detected:!0,summary:l[1].trim()};const a=n.match(/^Blocker:\s*([^\n]+)/im);return a?{detected:!0,summary:a[1].trim()}:[/can't complete the deliverable/i,/cannot complete the deliverable/i,/needs explicit approval/i,/permission grant i can't obtain/i,/no prompt available in this session/i,/were both blocked/i,/without that permission being pre-approved/i,/can't obtain \(no prompt available/i].some(s=>s.test(n))?{detected:!0,summary:(n.trim().split(/\n/)[0]??"Execution blocked").slice(0,220)}:{detected:!1}}function _y(n){var a,u,s;if((a=n.blocker)!=null&&a.summary)return{detected:!0,summary:n.blocker.summary};const l=cv(n.resultText);return l.detected?l:n.isError||n.exitCode!==0?{detected:!0,summary:((s=(u=n.resultText)==null?void 0:u.trim().split(/\n/)[0])==null?void 0:s.slice(0,220))||(n.exitCode!==0?`Process exited with code ${n.exitCode}`:"Agent reported an error")}:{detected:!1}}const ov=Gt(["queued","plan_pending","plan_approved","running","review","done","failed","cancelled"]),Ey=Gt(["code","communication","email","research","content","other"]),fv=Gt(["task_snapshot","draft_plan","approved_plan","acceptance_criteria","transcript","stream_trace","usage","agent_session","execution_result","diff","pr","email_draft","slack_draft","document","research_brief","deliverable","feedback","playbook_patch","reflect_status","linear_sync"]),is=Gt(["plan","execute","reflect"]),dv=Gt(["proposed","applied","dismissed"]),Cy=Gt(["retry","approve"]);Ne({playbookId:Q(),playbookTitle:Q().optional(),previousBody:Q(),proposedBody:Q(),rationale:Q(),status:dv,trigger:Cy,appliedAt:Q().optional()});Ne({status:Gt(["pending","completed","failed","skipped"]),trigger:Cy,error:Q().optional()});const hv=Ne({type:Gt(["system","human","context","thinking","assistant","tool","rate_limit","result"]),text:Q(),toolName:Q().optional()});Ne({phase:is,runtime:Tn,entries:Nt(hv)});const mv=Ne({phase:is,runtime:Tn,totalCostUsd:xt().optional(),inputTokens:xt().optional(),outputTokens:xt().optional(),cacheReadTokens:xt().optional(),cacheWriteTokens:xt().optional(),durationMs:xt().optional(),model:Q().optional(),numTurns:xt().optional()}),pv=Ne({label:Q(),usage:mv});Ne({lines:Nt(pv),total:Ne({totalCostUsd:xt(),inputTokens:xt(),outputTokens:xt(),durationMs:xt()})});Ne({phase:is,runtime:Tn,sessionId:Q()});Ne({phase:is,exitCode:xt(),resultText:Q().optional(),isError:Qt().optional(),blocker:Ne({summary:Q().optional()}).optional()});Ne({path:Q(),title:Q(),markdown:Q()});Ne({markdown:Q(),sessionId:Q().optional()});const gv=Gt(["manual","linear"]);Ne({id:Q(),title:Q(),description:Q().optional(),url:Q().optional()});const Al=Ne({id:Q().uuid(),source:gv,externalId:Q().nullable(),externalLabel:Q().nullable(),taskCategory:Ey,title:Q(),description:Q().nullable(),repo:Q().nullable(),artifactWorkspace:Q().nullable(),agentId:Q().uuid().nullable(),agentName:Q().nullable(),deckId:Q().nullable(),deckName:Q().nullable(),playbookId:Q().nullable(),runtime:Tn.nullable(),planModel:Q().nullable(),executeModel:Q().nullable(),status:ov,lineageId:Q().uuid().nullable(),acceptanceCriteria:Q().nullable(),approvalGatesJson:Q().nullable(),budgetJson:Q().nullable(),createdAt:Q(),updatedAt:Q()});Ne({id:Q().uuid(),runId:Q().uuid(),kind:fv,contentJson:Q().nullable(),blobPath:Q().nullable(),author:Gt(["human","agent","system"]),createdAt:Q()});Ne({id:Q().uuid(),runId:Q().uuid(),type:Q(),payloadJson:Q().nullable(),ts:Q()});Ne({title:Q().min(1),description:Q().optional(),taskCategory:Ey.default("other"),repo:Q().optional(),artifactWorkspace:Q().optional(),acceptanceCriteria:Q().optional(),status:Gt(["queued","plan_pending","plan_approved"]).default("plan_pending"),agentId:Q().uuid(),planModel:Q().nullable().optional(),executeModel:Q().nullable().optional()});Ne({runtime:Tn,deckId:Q().uuid().optional(),playbookId:Q().optional(),planModel:Q().nullable().optional(),executeModel:Q().nullable().optional()});Ne({planMarkdown:Q(),approve:Qt().default(!1),planModel:Q().nullable().optional(),executeModel:Q().nullable().optional()});Ne({runtime:Tn.optional(),deckId:Q().uuid().optional(),playbookId:Q().optional(),executeModel:Q().nullable().optional()});Ne({feedback:Q().min(1),planModel:Q().nullable().optional(),executeModel:Q().nullable().optional()});Ne({id:Q(),identifier:Q(),title:Q(),description:Q().optional(),url:Q(),state:Q().optional(),labels:Nt(Q()).optional(),teamId:Q().optional()});const yv=Ne({label:Q().min(1),agentId:Q().uuid()}),of=Ne({stateFilter:Nt(Q()),teamId:Q().nullable(),assigneeMe:Qt(),defaultAgentId:Q().uuid().nullable(),syncEnabled:Qt(),routingRules:Nt(yv)});of.extend({persisted:of,envOverrides:Ne({stateFilter:Qt(),teamId:Qt()})});of.partial();Ne({connected:Qt(),viewer:Ne({id:Q(),name:Q(),email:Q().optional()}).optional(),error:Q().optional()});Ne({agentId:Q().uuid(),reason:Q()});Ne({host:Q(),port:xt().int().min(1).max(65535),envOverride:Qt()});Ne({host:Q().min(1).optional(),port:xt().int().min(1).max(65535).optional()});Ne({connected:Qt(),apiUrl:Q(),mcpUrl:Q(),deckCount:xt().optional(),envOverride:Qt(),error:Q().optional()});Ne({agentId:Q().uuid().optional(),autoAgent:Qt().optional(),planModel:Q().nullable().optional()}).refine(n=>n.agentId!==void 0||n.autoAgent===!0,{message:"Provide agentId or autoAgent: true"});Ne({planModel:Q().nullable().optional()});const xv=Ne({id:Q(),label:Q()});Ne({runtime:Tn,models:Nt(xv),source:Gt(["live","fallback"])});Ne({planReviewCount:xt(),resultReviewCount:xt(),maxConcurrent:xt(),planningActiveRuns:Nt(Al),planningQueuedRuns:Nt(Al),runningRuns:Nt(Al),waitingExecution:Nt(Al),resultReviewRuns:Nt(Al),recentDone:Nt(Al),awaitingPlanReview:Nt(Al),runs:Nt(Al),agentDeckOnline:Qt(),agents:Nt(wy),agentIssueCount:xt()});function bv(n){return n||Pu}function Ml({runtime:n,label:l,value:a,onChange:u,defaultModelId:s,disabled:c}){const f=nf(n),[h,p]=G.useState((f==null?void 0:f.models)??[]),[m,b]=G.useState((f==null?void 0:f.source)??"fallback"),[y,k]=G.useState(!f);G.useEffect(()=>{const z=nf(n);if(z){p(z.models),b(z.source),k(!1);return}k(!0),Ab(n).then(q=>{p(q.models),b(q.source)}).catch(()=>p([])).finally(()=>k(!1))},[n]);const v=G.useMemo(()=>{var z,q;if(n==="cursor_local"){const T=bv(s);return((z=h.find(V=>V.id===T))==null?void 0:z.label)??"Auto (subscription pool)"}return s?((q=h.find(T=>T.id===s))==null?void 0:q.label)??s:"runtime default"},[n,s,h]),_=n==="cursor_local"?y?"Loading models…":`Agent default (${v})`:y?"Loading models…":`Default (${v})`;return g.jsxs("label",{className:"block space-y-1",children:[g.jsx("span",{className:"text-xs text-[#A8C4C0] uppercase",children:l}),g.jsxs("select",{className:"field text-sm",disabled:c||y,value:a,onChange:z=>u(z.target.value),children:[g.jsx("option",{value:"",children:_}),h.map(z=>g.jsx("option",{value:z.id,children:z.label},z.id))]}),n==="cursor_local"&&!y&&g.jsx("p",{className:"text-xs text-white/40",children:"Auto and Composer use your Cursor subscription pool. Other models draw API credits."}),m==="fallback"&&h.length>0&&!y&&n==="cursor_local"&&g.jsx("p",{className:"text-xs text-white/40",children:"Run cursor agent login to load the full model list."})]})}function bg({value:n,onChange:l,agentDeckOnline:a,disabled:u}){const[s,c]=G.useState([]),[f,h]=G.useState([]);G.useEffect(()=>{jb().then(c).catch(()=>c([]))},[]),G.useEffect(()=>{if(!n.deckId){h([]);return}Tb(n.deckId).then(h).catch(()=>h([]))},[n.deckId]);const p=m=>l({...n,...m});return g.jsxs("div",{className:"space-y-2",children:[g.jsx("div",{className:"text-base uppercase tracking-wide text-[#92E4DD]",children:"Agent"}),g.jsx("label",{className:"text-xs text-[#A8C4C0] uppercase",children:"Runtime (required)"}),g.jsxs("select",{className:"field",disabled:u,value:n.runtime,onChange:m=>{const b=m.target.value;p({runtime:b,...b==="cursor_local"?{defaultPlanModel:Pu,defaultExecuteModel:Pu}:{defaultPlanModel:"",defaultExecuteModel:""}})},children:[g.jsx("option",{value:"claude_code",children:"Claude Code (claude -p)"}),g.jsx("option",{value:"cursor_local",children:"Cursor local (cursor agent -p)"})]}),g.jsx(Ml,{runtime:n.runtime,label:"Default planning model",value:n.defaultPlanModel,onChange:m=>p({defaultPlanModel:m}),disabled:u}),g.jsx(Ml,{runtime:n.runtime,label:"Default execution model",value:n.defaultExecuteModel,onChange:m=>p({defaultExecuteModel:m}),disabled:u}),g.jsx("label",{className:"text-xs text-[#A8C4C0] uppercase",children:"Agent Deck (optional)"}),g.jsxs("select",{className:"field",disabled:u||!a,value:n.deckId,onChange:m=>p({deckId:m.target.value,playbookId:""}),children:[g.jsx("option",{value:"",children:a?"No deck — degraded mode":"Agent Deck offline"}),s.map(m=>g.jsxs("option",{value:m.id,children:["◆ ",m.name]},m.id))]}),n.deckId&&f.length>0&&g.jsxs(g.Fragment,{children:[g.jsx("label",{className:"text-xs text-[#A8C4C0] uppercase",children:"Playbook (optional)"}),g.jsxs("select",{className:"field",disabled:u,value:n.playbookId,onChange:m=>p({playbookId:m.target.value}),children:[g.jsx("option",{value:"",children:"No playbook — agent uses task + plan only"}),f.map(m=>g.jsx("option",{value:m.id,children:m.title},m.id))]})]}),!n.deckId&&n.runtime&&g.jsx("p",{className:"text-xs text-white/45",children:"Degraded mode: no deck MCP. Audit trail still captured."})]})}function as(n){if(n.agentName){const a=[n.agentName];return(n.deckName||n.deckId)&&a.push(`◆ ${n.deckName??n.deckId}`),n.planModel&&a.push(`plan:${n.planModel}`),n.executeModel&&a.push(`exec:${n.executeModel}`),a.join(" · ")}const l=[n.runtime??"no runtime"];return(n.deckName||n.deckId)&&l.push(`◆ ${n.deckName??n.deckId}`),n.playbookId&&l.push(`pb:${n.playbookId.slice(0,8)}…`),n.planModel&&l.push(`plan:${n.planModel}`),n.executeModel&&l.push(`exec:${n.executeModel}`),l.join(" · ")}function rs({trace:n,label:l}){var a;return(a=n==null?void 0:n.entries)!=null&&a.length?g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:l??"Reasoning trace"}),g.jsx("div",{className:"space-y-1 max-h-72 overflow-y-auto border border-white/10 rounded p-2 bg-black/20",children:n.entries.map((u,s)=>g.jsxs("div",{className:"text-sm font-mono",children:[g.jsx("span",{className:u.type==="human"?"text-[#C4B643]":u.type==="context"?"text-white/50":"text-[#92E4DD]",children:u.type}),u.toolName&&g.jsxs("span",{className:"text-white/40",children:[" · ",u.toolName]}),g.jsx("div",{className:"text-white/70 whitespace-pre-wrap mt-0.5",children:u.text})]},s))})]}):null}function vv(n){return[n.model&&`model ${n.model}`,n.totalCostUsd!=null&&`$${n.totalCostUsd.toFixed(4)}`,n.inputTokens!=null&&`${n.inputTokens} in`,n.outputTokens!=null&&`${n.outputTokens} out`,n.durationMs!=null&&yy(n.durationMs)].filter(Boolean).join(" · ")}function us({summary:n}){if(!(n!=null&&n.lines.length))return null;const l=n.lines.length>1;return g.jsxs("section",{className:"space-y-1.5",children:[g.jsx("div",{className:"heading-section",children:"Usage"}),n.lines.map((a,u)=>g.jsxs("p",{className:"text-sm text-white/50 font-mono",children:[g.jsxs("span",{className:"text-white/65",children:[a.label,":"]})," ",vv(a.usage)]},u)),l&&g.jsxs("p",{className:"text-sm text-[#92E4DD]/85 font-mono pt-1 border-t border-white/10",children:[g.jsx("span",{className:"text-white/65",children:"total:"})," ",[n.total.totalCostUsd>0&&`$${n.total.totalCostUsd.toFixed(4)}`,n.total.inputTokens>0&&`${n.total.inputTokens} in`,n.total.outputTokens>0&&`${n.total.outputTokens} out`,n.total.durationMs>0&&yy(n.total.durationMs)].filter(Boolean).join(" · ")]})]})}function kv(n,l){const a={};return(n[n.length-1]===""?[...n,""]:n).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const Sv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_v={};function vg(n,l){return(_v.jsx?wv:Sv).test(n)}const Ev=/[ \t\n\f\r]/g;function Cv(n){return typeof n=="object"?n.type==="text"?kg(n.value):!1:kg(n)}function kg(n){return n.replace(Ev,"")===""}class pr{constructor(l,a,u){this.normal=a,this.property=l,u&&(this.space=u)}}pr.prototype.normal={};pr.prototype.property={};pr.prototype.space=void 0;function Ay(n,l){const a={},u={};for(const s of n)Object.assign(a,s.property),Object.assign(u,s.normal);return new pr(a,u,l)}function ff(n){return n.toLowerCase()}class Ft{constructor(l,a){this.attribute=a,this.property=l}}Ft.prototype.attribute="";Ft.prototype.booleanish=!1;Ft.prototype.boolean=!1;Ft.prototype.commaOrSpaceSeparated=!1;Ft.prototype.commaSeparated=!1;Ft.prototype.defined=!1;Ft.prototype.mustUseProperty=!1;Ft.prototype.number=!1;Ft.prototype.overloadedBoolean=!1;Ft.prototype.property="";Ft.prototype.spaceSeparated=!1;Ft.prototype.space=void 0;let Av=0;const Se=ri(),gt=ri(),df=ri(),te=ri(),et=ri(),ni=ri(),nn=ri();function ri(){return 2**++Av}const hf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:gt,commaOrSpaceSeparated:nn,commaSeparated:ni,number:te,overloadedBoolean:df,spaceSeparated:et},Symbol.toStringTag,{value:"Module"})),Uo=Object.keys(hf);class jf extends Ft{constructor(l,a,u,s){let c=-1;if(super(l,a),Sg(this,"space",s),typeof u=="number")for(;++c<Uo.length;){const f=Uo[c];Sg(this,Uo[c],(u&hf[f])===hf[f])}}}jf.prototype.defined=!0;function Sg(n,l,a){a&&(n[l]=a)}function ra(n){const l={},a={};for(const[u,s]of Object.entries(n.properties)){const c=new jf(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),l[u]=c,a[ff(u)]=u,a[ff(c.attribute)]=u}return new pr(l,a,n.space)}const Ny=ra({properties:{ariaActiveDescendant:null,ariaAtomic:gt,ariaAutoComplete:null,ariaBusy:gt,ariaChecked:gt,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:et,ariaCurrent:null,ariaDescribedBy:et,ariaDetails:null,ariaDisabled:gt,ariaDropEffect:et,ariaErrorMessage:null,ariaExpanded:gt,ariaFlowTo:et,ariaGrabbed:gt,ariaHasPopup:null,ariaHidden:gt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:et,ariaLevel:te,ariaLive:null,ariaModal:gt,ariaMultiLine:gt,ariaMultiSelectable:gt,ariaOrientation:null,ariaOwns:et,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:gt,ariaReadOnly:gt,ariaRelevant:null,ariaRequired:gt,ariaRoleDescription:et,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:gt,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(n,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function jy(n,l){return l in n?n[l]:l}function Ty(n,l){return jy(n,l.toLowerCase())}const Nv=ra({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ni,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alpha:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:et,autoFocus:Se,autoPlay:Se,blocking:et,capture:null,charSet:null,checked:Se,cite:null,className:et,closedBy:null,colorSpace:null,cols:te,colSpan:te,command:null,commandFor:null,content:null,contentEditable:gt,controls:Se,controlsList:et,coords:te|ni,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:df,draggable:gt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:et,height:te,hidden:df,high:te,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:et,itemRef:et,itemScope:Se,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Se,optimum:te,pattern:null,ping:et,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:et,required:Se,reversed:Se,rows:te,rowSpan:te,sandbox:et,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootCustomElementRegistry:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shadowRootSerializable:Se,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:gt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:gt,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:gt,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Se,disablePictureInPicture:Se,disableRemotePlayback:Se,exportParts:ni,part:et,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:Ty}),jv=ra({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:nn,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:et,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:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,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:ni,g2:ni,glyphName:ni,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,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:te,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:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:jy}),zy=ra({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,l){return"xlink:"+l.slice(5).toLowerCase()}}),Dy=ra({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ty}),Oy=ra({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,l){return"xml:"+l.slice(3).toLowerCase()}}),Tv={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"},zv=/[A-Z]/g,wg=/-[a-z]/g,Dv=/^data[-\w.:]+$/i;function Ov(n,l){const a=ff(l);let u=l,s=Ft;if(a in n.normal)return n.property[n.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&Dv.test(l)){if(l.charAt(4)==="-"){const c=l.slice(5).replace(wg,Rv);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=l.slice(4);if(!wg.test(c)){let f=c.replace(zv,Mv);f.charAt(0)!=="-"&&(f="-"+f),l="data"+f}}s=jf}return new s(u,l)}function Mv(n){return"-"+n.toLowerCase()}function Rv(n){return n.charAt(1).toUpperCase()}const Lv=Ay([Ny,Nv,zy,Dy,Oy],"html"),Tf=Ay([Ny,jv,zy,Dy,Oy],"svg");function Bv(n){return n.join(" ").trim()}var Ki={},Ho,_g;function Uv(){if(_g)return Ho;_g=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,a=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,h=/^\s+|\s+$/g,p=`
50
- `,m="/",b="*",y="",k="comment",v="declaration";function _(q,T){if(typeof q!="string")throw new TypeError("First argument must be a string");if(!q)return[];T=T||{};var V=1,U=1;function ie(ae){var Y=ae.match(l);Y&&(V+=Y.length);var j=ae.lastIndexOf(p);U=~j?ae.length-j:U+ae.length}function W(){var ae={line:V,column:U};return function(Y){return Y.position=new O(ae),ce(),Y}}function O(ae){this.start=ae,this.end={line:V,column:U},this.source=T.source}O.prototype.content=q;function ee(ae){var Y=new Error(T.source+":"+V+":"+U+": "+ae);if(Y.reason=ae,Y.filename=T.source,Y.line=V,Y.column=U,Y.source=q,!T.silent)throw Y}function fe(ae){var Y=ae.exec(q);if(Y){var j=Y[0];return ie(j),q=q.slice(j.length),Y}}function ce(){fe(a)}function M(ae){var Y;for(ae=ae||[];Y=Z();)Y!==!1&&ae.push(Y);return ae}function Z(){var ae=W();if(!(m!=q.charAt(0)||b!=q.charAt(1))){for(var Y=2;y!=q.charAt(Y)&&(b!=q.charAt(Y)||m!=q.charAt(Y+1));)++Y;if(Y+=2,y===q.charAt(Y-1))return ee("End of comment missing");var j=q.slice(2,Y-2);return U+=2,ie(j),q=q.slice(Y),U+=2,ae({type:k,comment:j})}}function K(){var ae=W(),Y=fe(u);if(Y){if(Z(),!fe(s))return ee("property missing ':'");var j=fe(c),$=ae({type:v,property:z(Y[0].replace(n,y)),value:j?z(j[0].replace(n,y)):y});return fe(f),$}}function pe(){var ae=[];M(ae);for(var Y;Y=K();)Y!==!1&&(ae.push(Y),M(ae));return ae}return ce(),pe()}function z(q){return q?q.replace(h,y):y}return Ho=_,Ho}var Eg;function Hv(){if(Eg)return Ki;Eg=1;var n=Ki&&Ki.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=a;const l=n(Uv());function a(u,s){let c=null;if(!u||typeof u!="string")return c;const f=(0,l.default)(u),h=typeof s=="function";return f.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:b}=p;h?s(m,b,p):b&&(c=c||{},c[m]=b)}),c}return Ki}var lr={},Cg;function qv(){if(Cg)return lr;Cg=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,a=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(m){return!m||a.test(m)||n.test(m)},f=function(m,b){return b.toUpperCase()},h=function(m,b){return"".concat(b,"-")},p=function(m,b){return b===void 0&&(b={}),c(m)?m:(m=m.toLowerCase(),b.reactCompat?m=m.replace(s,h):m=m.replace(u,h),m.replace(l,f))};return lr.camelCase=p,lr}var ir,Ag;function Vv(){if(Ag)return ir;Ag=1;var n=ir&&ir.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},l=n(Hv()),a=qv();function u(s,c){var f={};return!s||typeof s!="string"||(0,l.default)(s,function(h,p){h&&p&&(f[(0,a.camelCase)(h,c)]=p)}),f}return u.default=u,ir=u,ir}var Yv=Vv();const Zv=my(Yv),My=Ry("end"),zf=Ry("start");function Ry(n){return l;function l(a){const u=a&&a.position&&a.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function Iv(n){const l=zf(n),a=My(n);if(l&&a)return{start:l,end:a}}function sr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Ng(n.position):"start"in n||"end"in n?Ng(n):"line"in n||"column"in n?mf(n):""}function mf(n){return jg(n&&n.line)+":"+jg(n&&n.column)}function Ng(n){return mf(n&&n.start)+"-"+mf(n&&n.end)}function jg(n){return n&&typeof n=="number"?n:1}class zt extends Error{constructor(l,a,u){super(),typeof a=="string"&&(u=a,a=void 0);let s="",c={},f=!1;if(a&&("line"in a&&"column"in a?c={place:a}:"start"in a&&"end"in a?c={place:a}:"type"in a?c={ancestors:[a],place:a.position}:c={...a}),typeof l=="string"?s=l:!c.cause&&l&&(f=!0,s=l.message,c.cause=l),!c.ruleId&&!c.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?c.ruleId=u:(c.source=u.slice(0,p),c.ruleId=u.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.position)}const h=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=h?h.line:void 0,this.name=sr(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=f&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}zt.prototype.file="";zt.prototype.name="";zt.prototype.reason="";zt.prototype.message="";zt.prototype.stack="";zt.prototype.column=void 0;zt.prototype.line=void 0;zt.prototype.ancestors=void 0;zt.prototype.cause=void 0;zt.prototype.fatal=void 0;zt.prototype.place=void 0;zt.prototype.ruleId=void 0;zt.prototype.source=void 0;const Df={}.hasOwnProperty,Qv=new Map,Gv=/[A-Z]/g,Fv=new Set(["table","tbody","thead","tfoot","tr"]),Xv=new Set(["td","th"]),Ly="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Kv(n,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=l.filePath||void 0;let u;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=l2(a,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=n2(a,l.jsx,l.jsxs)}const s={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:u,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Tf:Lv,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},c=By(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function By(n,l,a){if(l.type==="element")return Jv(n,l,a);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return $v(n,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return Wv(n,l,a);if(l.type==="mdxjsEsm")return Pv(n,l);if(l.type==="root")return e2(n,l,a);if(l.type==="text")return t2(n,l)}function Jv(n,l,a){const u=n.schema;let s=u;l.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=Tf,n.schema=s),n.ancestors.push(l);const c=Hy(n,l.tagName,!1),f=i2(n,l);let h=Mf(n,l);return Fv.has(l.tagName)&&(h=h.filter(function(p){return typeof p=="string"?!Cv(p):!0})),Uy(n,f,c,l),Of(f,h),n.ancestors.pop(),n.schema=u,n.create(l,c,f,a)}function $v(n,l){if(l.data&&l.data.estree&&n.evaluater){const u=l.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}hr(n,l.position)}function Pv(n,l){if(l.data&&l.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(l.data.estree);hr(n,l.position)}function Wv(n,l,a){const u=n.schema;let s=u;l.name==="svg"&&u.space==="html"&&(s=Tf,n.schema=s),n.ancestors.push(l);const c=l.name===null?n.Fragment:Hy(n,l.name,!0),f=a2(n,l),h=Mf(n,l);return Uy(n,f,c,l),Of(f,h),n.ancestors.pop(),n.schema=u,n.create(l,c,f,a)}function e2(n,l,a){const u={};return Of(u,Mf(n,l)),n.create(l,n.Fragment,u,a)}function t2(n,l){return l.value}function Uy(n,l,a,u){typeof a!="string"&&a!==n.Fragment&&n.passNode&&(l.node=u)}function Of(n,l){if(l.length>0){const a=l.length>1?l:l[0];a&&(n.children=a)}}function n2(n,l,a){return u;function u(s,c,f,h){const m=Array.isArray(f.children)?a:l;return h?m(c,f,h):m(c,f)}}function l2(n,l){return a;function a(u,s,c,f){const h=Array.isArray(c.children),p=zf(u);return l(s,c,f,h,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function i2(n,l){const a={};let u,s;for(s in l.properties)if(s!=="children"&&Df.call(l.properties,s)){const c=r2(n,s,l.properties[s]);if(c){const[f,h]=c;n.tableCellAlignToStyle&&f==="align"&&typeof h=="string"&&Xv.has(l.tagName)?u=h:a[f]=h}}if(u){const c=a.style||(a.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return a}function a2(n,l){const a={};for(const u of l.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const c=u.data.estree.body[0];c.type;const f=c.expression;f.type;const h=f.properties[0];h.type,Object.assign(a,n.evaluater.evaluateExpression(h.argument))}else hr(n,l.position);else{const s=u.name;let c;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const h=u.value.data.estree.body[0];h.type,c=n.evaluater.evaluateExpression(h.expression)}else hr(n,l.position);else c=u.value===null?!0:u.value;a[s]=c}return a}function Mf(n,l){const a=[];let u=-1;const s=n.passKeys?new Map:Qv;for(;++u<l.children.length;){const c=l.children[u];let f;if(n.passKeys){const p=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(p){const m=s.get(p)||0;f=p+"-"+m,s.set(p,m+1)}}const h=By(n,c,f);h!==void 0&&a.push(h)}return a}function r2(n,l,a){const u=Ov(n.schema,l);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=u.commaSeparated?kv(a):Bv(a)),u.property==="style"){let s=typeof a=="object"?a:u2(n,String(a));return n.stylePropertyNameCase==="css"&&(s=s2(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?Tv[u.property]||u.property:u.attribute,a]}}function u2(n,l){try{return Zv(l,{reactCompat:!0})}catch(a){if(n.ignoreInvalidStyle)return{};const u=a,s=new zt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=Ly+"#cannot-parse-style-attribute",s}}function Hy(n,l,a){let u;if(!a)u={type:"Literal",value:l};else if(l.includes(".")){const s=l.split(".");let c=-1,f;for(;++c<s.length;){const h=vg(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};f=f?{type:"MemberExpression",object:f,property:h,computed:!!(c&&h.type==="Literal"),optional:!1}:h}u=f}else u=vg(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(u.type==="Literal"){const s=u.value;return Df.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);hr(n)}function hr(n,l){const a=new zt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=n.filePath||void 0,a.url=Ly+"#cannot-handle-mdx-estrees-without-createevaluater",a}function s2(n){const l={};let a;for(a in n)Df.call(n,a)&&(l[c2(a)]=n[a]);return l}function c2(n){let l=n.replace(Gv,o2);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function o2(n){return"-"+n.toLowerCase()}const qo={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"]},f2={};function Rf(n,l){const a=f2,u=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,s=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return qy(n,u,s)}function qy(n,l,a){if(d2(n)){if("value"in n)return n.type==="html"&&!a?"":n.value;if(l&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Tg(n.children,l,a)}return Array.isArray(n)?Tg(n,l,a):""}function Tg(n,l,a){const u=[];let s=-1;for(;++s<n.length;)u[s]=qy(n[s],l,a);return u.join("")}function d2(n){return!!(n&&typeof n=="object")}const zg=document.createElement("i");function Lf(n){const l="&"+n+";";zg.innerHTML=l;const a=zg.textContent;return a.charCodeAt(a.length-1)===59&&n!=="semi"||a===l?!1:a}function ln(n,l,a,u){const s=n.length;let c=0,f;if(l<0?l=-l>s?0:s+l:l=l>s?s:l,a=a>0?a:0,u.length<1e4)f=Array.from(u),f.unshift(l,a),n.splice(...f);else for(a&&n.splice(l,a);c<u.length;)f=u.slice(c,c+1e4),f.unshift(l,0),n.splice(...f),c+=1e4,l+=1e4}function yn(n,l){return n.length>0?(ln(n,n.length,0,l),n):l}const Dg={}.hasOwnProperty;function Vy(n){const l={};let a=-1;for(;++a<n.length;)h2(l,n[a]);return l}function h2(n,l){let a;for(a in l){const s=(Dg.call(n,a)?n[a]:void 0)||(n[a]={}),c=l[a];let f;if(c)for(f in c){Dg.call(s,f)||(s[f]=[]);const h=c[f];m2(s[f],Array.isArray(h)?h:h?[h]:[])}}}function m2(n,l){let a=-1;const u=[];for(;++a<l.length;)(l[a].add==="after"?n:u).push(l[a]);ln(n,0,0,u)}function Yy(n,l){const a=Number.parseInt(n,l);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function wn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Rt=Rl(/[A-Za-z]/),Tt=Rl(/[\dA-Za-z]/),p2=Rl(/[#-'*+\--9=?A-Z^-~]/);function Wu(n){return n!==null&&(n<32||n===127)}const pf=Rl(/\d/),g2=Rl(/[\dA-Fa-f]/),y2=Rl(/[!-/:-@[-`{-~]/);function xe(n){return n!==null&&n<-2}function tt(n){return n!==null&&(n<0||n===32)}function Me(n){return n===-2||n===-1||n===32}const ss=Rl(new RegExp("\\p{P}|\\p{S}","u")),ai=Rl(/\s/);function Rl(n){return l;function l(a){return a!==null&&a>-1&&n.test(String.fromCharCode(a))}}function ua(n){const l=[];let a=-1,u=0,s=0;for(;++a<n.length;){const c=n.charCodeAt(a);let f="";if(c===37&&Tt(n.charCodeAt(a+1))&&Tt(n.charCodeAt(a+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const h=n.charCodeAt(a+1);c<56320&&h>56319&&h<57344?(f=String.fromCharCode(c,h),s=1):f="�"}else f=String.fromCharCode(c);f&&(l.push(n.slice(u,a),encodeURIComponent(f)),u=a+s+1,f=""),s&&(a+=s,s=0)}return l.join("")+n.slice(u)}function He(n,l,a,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return Me(p)?(n.enter(a),h(p)):l(p)}function h(p){return Me(p)&&c++<s?(n.consume(p),h):(n.exit(a),l(p))}}const x2={tokenize:b2};function b2(n){const l=n.attempt(this.parser.constructs.contentInitial,u,s);let a;return l;function u(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),He(n,l,"linePrefix")}function s(h){return n.enter("paragraph"),c(h)}function c(h){const p=n.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=p),a=p,f(h)}function f(h){if(h===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(h);return}return xe(h)?(n.consume(h),n.exit("chunkText"),c):(n.consume(h),f)}}const v2={tokenize:k2},Og={tokenize:S2};function k2(n){const l=this,a=[];let u=0,s,c,f;return h;function h(U){if(u<a.length){const ie=a[u];return l.containerState=ie[1],n.attempt(ie[0].continuation,p,m)(U)}return m(U)}function p(U){if(u++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,s&&V();const ie=l.events.length;let W=ie,O;for(;W--;)if(l.events[W][0]==="exit"&&l.events[W][1].type==="chunkFlow"){O=l.events[W][1].end;break}T(u);let ee=ie;for(;ee<l.events.length;)l.events[ee][1].end={...O},ee++;return ln(l.events,W+1,0,l.events.slice(ie)),l.events.length=ee,m(U)}return h(U)}function m(U){if(u===a.length){if(!s)return k(U);if(s.currentConstruct&&s.currentConstruct.concrete)return _(U);l.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return l.containerState={},n.check(Og,b,y)(U)}function b(U){return s&&V(),T(u),k(U)}function y(U){return l.parser.lazy[l.now().line]=u!==a.length,f=l.now().offset,_(U)}function k(U){return l.containerState={},n.attempt(Og,v,_)(U)}function v(U){return u++,a.push([l.currentConstruct,l.containerState]),k(U)}function _(U){if(U===null){s&&V(),T(0),n.consume(U);return}return s=s||l.parser.flow(l.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),z(U)}function z(U){if(U===null){q(n.exit("chunkFlow"),!0),T(0),n.consume(U);return}return xe(U)?(n.consume(U),q(n.exit("chunkFlow")),u=0,l.interrupt=void 0,h):(n.consume(U),z)}function q(U,ie){const W=l.sliceStream(U);if(ie&&W.push(null),U.previous=c,c&&(c.next=U),c=U,s.defineSkip(U.start),s.write(W),l.parser.lazy[U.start.line]){let O=s.events.length;for(;O--;)if(s.events[O][1].start.offset<f&&(!s.events[O][1].end||s.events[O][1].end.offset>f))return;const ee=l.events.length;let fe=ee,ce,M;for(;fe--;)if(l.events[fe][0]==="exit"&&l.events[fe][1].type==="chunkFlow"){if(ce){M=l.events[fe][1].end;break}ce=!0}for(T(u),O=ee;O<l.events.length;)l.events[O][1].end={...M},O++;ln(l.events,fe+1,0,l.events.slice(ee)),l.events.length=O}}function T(U){let ie=a.length;for(;ie-- >U;){const W=a[ie];l.containerState=W[1],W[0].exit.call(l,n)}a.length=U}function V(){s.write([null]),c=void 0,s=void 0,l.containerState._closeFlow=void 0}}function S2(n,l,a){return He(n,n.attempt(this.parser.constructs.document,l,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function aa(n){if(n===null||tt(n)||ai(n))return 1;if(ss(n))return 2}function cs(n,l,a){const u=[];let s=-1;for(;++s<n.length;){const c=n[s].resolveAll;c&&!u.includes(c)&&(l=c(l,a),u.push(c))}return l}const gf={name:"attention",resolveAll:w2,tokenize:_2};function w2(n,l){let a=-1,u,s,c,f,h,p,m,b;for(;++a<n.length;)if(n[a][0]==="enter"&&n[a][1].type==="attentionSequence"&&n[a][1]._close){for(u=a;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&l.sliceSerialize(n[u][1]).charCodeAt(0)===l.sliceSerialize(n[a][1]).charCodeAt(0)){if((n[u][1]._close||n[a][1]._open)&&(n[a][1].end.offset-n[a][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[a][1].end.offset-n[a][1].start.offset)%3))continue;p=n[u][1].end.offset-n[u][1].start.offset>1&&n[a][1].end.offset-n[a][1].start.offset>1?2:1;const y={...n[u][1].end},k={...n[a][1].start};Mg(y,-p),Mg(k,p),f={type:p>1?"strongSequence":"emphasisSequence",start:y,end:{...n[u][1].end}},h={type:p>1?"strongSequence":"emphasisSequence",start:{...n[a][1].start},end:k},c={type:p>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[a][1].start}},s={type:p>1?"strong":"emphasis",start:{...f.start},end:{...h.end}},n[u][1].end={...f.start},n[a][1].start={...h.end},m=[],n[u][1].end.offset-n[u][1].start.offset&&(m=yn(m,[["enter",n[u][1],l],["exit",n[u][1],l]])),m=yn(m,[["enter",s,l],["enter",f,l],["exit",f,l],["enter",c,l]]),m=yn(m,cs(l.parser.constructs.insideSpan.null,n.slice(u+1,a),l)),m=yn(m,[["exit",c,l],["enter",h,l],["exit",h,l],["exit",s,l]]),n[a][1].end.offset-n[a][1].start.offset?(b=2,m=yn(m,[["enter",n[a][1],l],["exit",n[a][1],l]])):b=0,ln(n,u-1,a-u+3,m),a=u+m.length-b-2;break}}for(a=-1;++a<n.length;)n[a][1].type==="attentionSequence"&&(n[a][1].type="data");return n}function _2(n,l){const a=this.parser.constructs.attentionMarkers.null,u=this.previous,s=aa(u);let c;return f;function f(p){return c=p,n.enter("attentionSequence"),h(p)}function h(p){if(p===c)return n.consume(p),h;const m=n.exit("attentionSequence"),b=aa(p),y=!b||b===2&&s||a.includes(p),k=!s||s===2&&b||a.includes(u);return m._open=!!(c===42?y:y&&(s||!k)),m._close=!!(c===42?k:k&&(b||!y)),l(p)}}function Mg(n,l){n.column+=l,n.offset+=l,n._bufferIndex+=l}const E2={name:"autolink",tokenize:C2};function C2(n,l,a){let u=0;return s;function s(v){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(v){return Rt(v)?(n.consume(v),f):v===64?a(v):m(v)}function f(v){return v===43||v===45||v===46||Tt(v)?(u=1,h(v)):m(v)}function h(v){return v===58?(n.consume(v),u=0,p):(v===43||v===45||v===46||Tt(v))&&u++<32?(n.consume(v),h):(u=0,m(v))}function p(v){return v===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),l):v===null||v===32||v===60||Wu(v)?a(v):(n.consume(v),p)}function m(v){return v===64?(n.consume(v),b):p2(v)?(n.consume(v),m):a(v)}function b(v){return Tt(v)?y(v):a(v)}function y(v){return v===46?(n.consume(v),u=0,b):v===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),l):k(v)}function k(v){if((v===45||Tt(v))&&u++<63){const _=v===45?k:y;return n.consume(v),_}return a(v)}}const gr={partial:!0,tokenize:A2};function A2(n,l,a){return u;function u(c){return Me(c)?He(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||xe(c)?l(c):a(c)}}const Zy={continuation:{tokenize:j2},exit:T2,name:"blockQuote",tokenize:N2};function N2(n,l,a){const u=this;return s;function s(f){if(f===62){const h=u.containerState;return h.open||(n.enter("blockQuote",{_container:!0}),h.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),c}return a(f)}function c(f){return Me(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),l):(n.exit("blockQuotePrefix"),l(f))}}function j2(n,l,a){const u=this;return s;function s(f){return Me(f)?He(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(Zy,l,a)(f)}}function T2(n){n.exit("blockQuote")}const Iy={name:"characterEscape",tokenize:z2};function z2(n,l,a){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),s}function s(c){return y2(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),l):a(c)}}const Qy={name:"characterReference",tokenize:D2};function D2(n,l,a){const u=this;let s=0,c,f;return h;function h(y){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),p}function p(y){return y===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(y),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),c=31,f=Tt,b(y))}function m(y){return y===88||y===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(y),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=g2,b):(n.enter("characterReferenceValue"),c=7,f=pf,b(y))}function b(y){if(y===59&&s){const k=n.exit("characterReferenceValue");return f===Tt&&!Lf(u.sliceSerialize(k))?a(y):(n.enter("characterReferenceMarker"),n.consume(y),n.exit("characterReferenceMarker"),n.exit("characterReference"),l)}return f(y)&&s++<c?(n.consume(y),b):a(y)}}const Rg={partial:!0,tokenize:M2},Lg={concrete:!0,name:"codeFenced",tokenize:O2};function O2(n,l,a){const u=this,s={partial:!0,tokenize:W};let c=0,f=0,h;return p;function p(O){return m(O)}function m(O){const ee=u.events[u.events.length-1];return c=ee&&ee[1].type==="linePrefix"?ee[2].sliceSerialize(ee[1],!0).length:0,h=O,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(O)}function b(O){return O===h?(f++,n.consume(O),b):f<3?a(O):(n.exit("codeFencedFenceSequence"),Me(O)?He(n,y,"whitespace")(O):y(O))}function y(O){return O===null||xe(O)?(n.exit("codeFencedFence"),u.interrupt?l(O):n.check(Rg,z,ie)(O)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),k(O))}function k(O){return O===null||xe(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),y(O)):Me(O)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),He(n,v,"whitespace")(O)):O===96&&O===h?a(O):(n.consume(O),k)}function v(O){return O===null||xe(O)?y(O):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),_(O))}function _(O){return O===null||xe(O)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),y(O)):O===96&&O===h?a(O):(n.consume(O),_)}function z(O){return n.attempt(s,ie,q)(O)}function q(O){return n.enter("lineEnding"),n.consume(O),n.exit("lineEnding"),T}function T(O){return c>0&&Me(O)?He(n,V,"linePrefix",c+1)(O):V(O)}function V(O){return O===null||xe(O)?n.check(Rg,z,ie)(O):(n.enter("codeFlowValue"),U(O))}function U(O){return O===null||xe(O)?(n.exit("codeFlowValue"),V(O)):(n.consume(O),U)}function ie(O){return n.exit("codeFenced"),l(O)}function W(O,ee,fe){let ce=0;return M;function M(Y){return O.enter("lineEnding"),O.consume(Y),O.exit("lineEnding"),Z}function Z(Y){return O.enter("codeFencedFence"),Me(Y)?He(O,K,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):K(Y)}function K(Y){return Y===h?(O.enter("codeFencedFenceSequence"),pe(Y)):fe(Y)}function pe(Y){return Y===h?(ce++,O.consume(Y),pe):ce>=f?(O.exit("codeFencedFenceSequence"),Me(Y)?He(O,ae,"whitespace")(Y):ae(Y)):fe(Y)}function ae(Y){return Y===null||xe(Y)?(O.exit("codeFencedFence"),ee(Y)):fe(Y)}}}function M2(n,l,a){const u=this;return s;function s(f){return f===null?a(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c)}function c(f){return u.parser.lazy[u.now().line]?a(f):l(f)}}const Vo={name:"codeIndented",tokenize:L2},R2={partial:!0,tokenize:B2};function L2(n,l,a){const u=this;return s;function s(m){return n.enter("codeIndented"),He(n,c,"linePrefix",5)(m)}function c(m){const b=u.events[u.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?f(m):a(m)}function f(m){return m===null?p(m):xe(m)?n.attempt(R2,f,p)(m):(n.enter("codeFlowValue"),h(m))}function h(m){return m===null||xe(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),h)}function p(m){return n.exit("codeIndented"),l(m)}}function B2(n,l,a){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?a(f):xe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):He(n,c,"linePrefix",5)(f)}function c(f){const h=u.events[u.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?l(f):xe(f)?s(f):a(f)}}const U2={name:"codeText",previous:q2,resolve:H2,tokenize:V2};function H2(n){let l=n.length-4,a=3,u,s;if((n[a][1].type==="lineEnding"||n[a][1].type==="space")&&(n[l][1].type==="lineEnding"||n[l][1].type==="space")){for(u=a;++u<l;)if(n[u][1].type==="codeTextData"){n[a][1].type="codeTextPadding",n[l][1].type="codeTextPadding",a+=2,l-=2;break}}for(u=a-1,l++;++u<=l;)s===void 0?u!==l&&n[u][1].type!=="lineEnding"&&(s=u):(u===l||n[u][1].type==="lineEnding")&&(n[s][1].type="codeTextData",u!==s+2&&(n[s][1].end=n[u-1][1].end,n.splice(s+2,u-s-2),l-=u-s-2,u=s+2),s=void 0);return n}function q2(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function V2(n,l,a){let u=0,s,c;return f;function f(y){return n.enter("codeText"),n.enter("codeTextSequence"),h(y)}function h(y){return y===96?(n.consume(y),u++,h):(n.exit("codeTextSequence"),p(y))}function p(y){return y===null?a(y):y===32?(n.enter("space"),n.consume(y),n.exit("space"),p):y===96?(c=n.enter("codeTextSequence"),s=0,b(y)):xe(y)?(n.enter("lineEnding"),n.consume(y),n.exit("lineEnding"),p):(n.enter("codeTextData"),m(y))}function m(y){return y===null||y===32||y===96||xe(y)?(n.exit("codeTextData"),p(y)):(n.consume(y),m)}function b(y){return y===96?(n.consume(y),s++,b):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),l(y)):(c.type="codeTextData",m(y))}}class Y2{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,a){const u=a??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(l,u):l>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(l,a,u){const s=a||0;this.setCursor(Math.trunc(l));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&ar(this.left,u),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),ar(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),ar(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const a=this.left.splice(l,Number.POSITIVE_INFINITY);ar(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);ar(this.left,a.reverse())}}}function ar(n,l){let a=0;if(l.length<1e4)n.push(...l);else for(;a<l.length;)n.push(...l.slice(a,a+1e4)),a+=1e4}function Gy(n){const l={};let a=-1,u,s,c,f,h,p,m;const b=new Y2(n);for(;++a<b.length;){for(;a in l;)a=l[a];if(u=b.get(a),a&&u[1].type==="chunkFlow"&&b.get(a-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(l,Z2(b,a)),a=l[a],m=!0);else if(u[1]._container){for(c=a,s=void 0;c--;)if(f=b.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(u[1].end={...b.get(s)[1].start},h=b.slice(s,a),h.unshift(u),b.splice(s,a-s+1,h))}}return ln(n,0,Number.POSITIVE_INFINITY,b.slice(0)),!m}function Z2(n,l){const a=n.get(l)[1],u=n.get(l)[2];let s=l-1;const c=[];let f=a._tokenizer;f||(f=u.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const h=f.events,p=[],m={};let b,y,k=-1,v=a,_=0,z=0;const q=[z];for(;v;){for(;n.get(++s)[1]!==v;);c.push(s),v._tokenizer||(b=u.sliceStream(v),v.next||b.push(null),y&&f.defineSkip(v.start),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(b),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=v,v=v.next}for(v=a;++k<h.length;)h[k][0]==="exit"&&h[k-1][0]==="enter"&&h[k][1].type===h[k-1][1].type&&h[k][1].start.line!==h[k][1].end.line&&(z=k+1,q.push(z),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):q.pop(),k=q.length;k--;){const T=h.slice(q[k],q[k+1]),V=c.pop();p.push([V,V+T.length-1]),n.splice(V,2,T)}for(p.reverse(),k=-1;++k<p.length;)m[_+p[k][0]]=_+p[k][1],_+=p[k][1]-p[k][0]-1;return m}const I2={resolve:G2,tokenize:F2},Q2={partial:!0,tokenize:X2};function G2(n){return Gy(n),n}function F2(n,l){let a;return u;function u(h){return n.enter("content"),a=n.enter("chunkContent",{contentType:"content"}),s(h)}function s(h){return h===null?c(h):xe(h)?n.check(Q2,f,c)(h):(n.consume(h),s)}function c(h){return n.exit("chunkContent"),n.exit("content"),l(h)}function f(h){return n.consume(h),n.exit("chunkContent"),a.next=n.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,s}}function X2(n,l,a){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),He(n,c,"linePrefix")}function c(f){if(f===null||xe(f))return a(f);const h=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?l(f):n.interrupt(u.parser.constructs.flow,a,l)(f)}}function Fy(n,l,a,u,s,c,f,h,p){const m=p||Number.POSITIVE_INFINITY;let b=0;return y;function y(T){return T===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(T),n.exit(c),k):T===null||T===32||T===41||Wu(T)?a(T):(n.enter(u),n.enter(f),n.enter(h),n.enter("chunkString",{contentType:"string"}),z(T))}function k(T){return T===62?(n.enter(c),n.consume(T),n.exit(c),n.exit(s),n.exit(u),l):(n.enter(h),n.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===62?(n.exit("chunkString"),n.exit(h),k(T)):T===null||T===60||xe(T)?a(T):(n.consume(T),T===92?_:v)}function _(T){return T===60||T===62||T===92?(n.consume(T),v):v(T)}function z(T){return!b&&(T===null||T===41||tt(T))?(n.exit("chunkString"),n.exit(h),n.exit(f),n.exit(u),l(T)):b<m&&T===40?(n.consume(T),b++,z):T===41?(n.consume(T),b--,z):T===null||T===32||T===40||Wu(T)?a(T):(n.consume(T),T===92?q:z)}function q(T){return T===40||T===41||T===92?(n.consume(T),z):z(T)}}function Xy(n,l,a,u,s,c){const f=this;let h=0,p;return m;function m(v){return n.enter(u),n.enter(s),n.consume(v),n.exit(s),n.enter(c),b}function b(v){return h>999||v===null||v===91||v===93&&!p||v===94&&!h&&"_hiddenFootnoteSupport"in f.parser.constructs?a(v):v===93?(n.exit(c),n.enter(s),n.consume(v),n.exit(s),n.exit(u),l):xe(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===null||v===91||v===93||xe(v)||h++>999?(n.exit("chunkString"),b(v)):(n.consume(v),p||(p=!Me(v)),v===92?k:y)}function k(v){return v===91||v===92||v===93?(n.consume(v),h++,y):y(v)}}function Ky(n,l,a,u,s,c){let f;return h;function h(k){return k===34||k===39||k===40?(n.enter(u),n.enter(s),n.consume(k),n.exit(s),f=k===40?41:k,p):a(k)}function p(k){return k===f?(n.enter(s),n.consume(k),n.exit(s),n.exit(u),l):(n.enter(c),m(k))}function m(k){return k===f?(n.exit(c),p(f)):k===null?a(k):xe(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),He(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(k))}function b(k){return k===f||k===null||xe(k)?(n.exit("chunkString"),m(k)):(n.consume(k),k===92?y:b)}function y(k){return k===f||k===92?(n.consume(k),b):b(k)}}function cr(n,l){let a;return u;function u(s){return xe(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),a=!0,u):Me(s)?He(n,u,a?"linePrefix":"lineSuffix")(s):l(s)}}const K2={name:"definition",tokenize:$2},J2={partial:!0,tokenize:P2};function $2(n,l,a){const u=this;let s;return c;function c(v){return n.enter("definition"),f(v)}function f(v){return Xy.call(u,n,h,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function h(v){return s=wn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),v===58?(n.enter("definitionMarker"),n.consume(v),n.exit("definitionMarker"),p):a(v)}function p(v){return tt(v)?cr(n,m)(v):m(v)}function m(v){return Fy(n,b,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function b(v){return n.attempt(J2,y,y)(v)}function y(v){return Me(v)?He(n,k,"whitespace")(v):k(v)}function k(v){return v===null||xe(v)?(n.exit("definition"),u.parser.defined.push(s),l(v)):a(v)}}function P2(n,l,a){return u;function u(h){return tt(h)?cr(n,s)(h):a(h)}function s(h){return Ky(n,c,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function c(h){return Me(h)?He(n,f,"whitespace")(h):f(h)}function f(h){return h===null||xe(h)?l(h):a(h)}}const W2={name:"hardBreakEscape",tokenize:ek};function ek(n,l,a){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return xe(c)?(n.exit("hardBreakEscape"),l(c)):a(c)}}const tk={name:"headingAtx",resolve:nk,tokenize:lk};function nk(n,l){let a=n.length-2,u=3,s,c;return n[u][1].type==="whitespace"&&(u+=2),a-2>u&&n[a][1].type==="whitespace"&&(a-=2),n[a][1].type==="atxHeadingSequence"&&(u===a-1||a-4>u&&n[a-2][1].type==="whitespace")&&(a-=u+1===a?2:4),a>u&&(s={type:"atxHeadingText",start:n[u][1].start,end:n[a][1].end},c={type:"chunkText",start:n[u][1].start,end:n[a][1].end,contentType:"text"},ln(n,u,a-u+1,[["enter",s,l],["enter",c,l],["exit",c,l],["exit",s,l]])),n}function lk(n,l,a){let u=0;return s;function s(b){return n.enter("atxHeading"),c(b)}function c(b){return n.enter("atxHeadingSequence"),f(b)}function f(b){return b===35&&u++<6?(n.consume(b),f):b===null||tt(b)?(n.exit("atxHeadingSequence"),h(b)):a(b)}function h(b){return b===35?(n.enter("atxHeadingSequence"),p(b)):b===null||xe(b)?(n.exit("atxHeading"),l(b)):Me(b)?He(n,h,"whitespace")(b):(n.enter("atxHeadingText"),m(b))}function p(b){return b===35?(n.consume(b),p):(n.exit("atxHeadingSequence"),h(b))}function m(b){return b===null||b===35||tt(b)?(n.exit("atxHeadingText"),h(b)):(n.consume(b),m)}}const ik=["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"],Bg=["pre","script","style","textarea"],ak={concrete:!0,name:"htmlFlow",resolveTo:sk,tokenize:ck},rk={partial:!0,tokenize:fk},uk={partial:!0,tokenize:ok};function sk(n){let l=n.length;for(;l--&&!(n[l][0]==="enter"&&n[l][1].type==="htmlFlow"););return l>1&&n[l-2][1].type==="linePrefix"&&(n[l][1].start=n[l-2][1].start,n[l+1][1].start=n[l-2][1].start,n.splice(l-2,2)),n}function ck(n,l,a){const u=this;let s,c,f,h,p;return m;function m(w){return b(w)}function b(w){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(w),y}function y(w){return w===33?(n.consume(w),k):w===47?(n.consume(w),c=!0,z):w===63?(n.consume(w),s=3,u.interrupt?l:E):Rt(w)?(n.consume(w),f=String.fromCharCode(w),q):a(w)}function k(w){return w===45?(n.consume(w),s=2,v):w===91?(n.consume(w),s=5,h=0,_):Rt(w)?(n.consume(w),s=4,u.interrupt?l:E):a(w)}function v(w){return w===45?(n.consume(w),u.interrupt?l:E):a(w)}function _(w){const ue="CDATA[";return w===ue.charCodeAt(h++)?(n.consume(w),h===ue.length?u.interrupt?l:K:_):a(w)}function z(w){return Rt(w)?(n.consume(w),f=String.fromCharCode(w),q):a(w)}function q(w){if(w===null||w===47||w===62||tt(w)){const ue=w===47,ve=f.toLowerCase();return!ue&&!c&&Bg.includes(ve)?(s=1,u.interrupt?l(w):K(w)):ik.includes(f.toLowerCase())?(s=6,ue?(n.consume(w),T):u.interrupt?l(w):K(w)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?a(w):c?V(w):U(w))}return w===45||Tt(w)?(n.consume(w),f+=String.fromCharCode(w),q):a(w)}function T(w){return w===62?(n.consume(w),u.interrupt?l:K):a(w)}function V(w){return Me(w)?(n.consume(w),V):M(w)}function U(w){return w===47?(n.consume(w),M):w===58||w===95||Rt(w)?(n.consume(w),ie):Me(w)?(n.consume(w),U):M(w)}function ie(w){return w===45||w===46||w===58||w===95||Tt(w)?(n.consume(w),ie):W(w)}function W(w){return w===61?(n.consume(w),O):Me(w)?(n.consume(w),W):U(w)}function O(w){return w===null||w===60||w===61||w===62||w===96?a(w):w===34||w===39?(n.consume(w),p=w,ee):Me(w)?(n.consume(w),O):fe(w)}function ee(w){return w===p?(n.consume(w),p=null,ce):w===null||xe(w)?a(w):(n.consume(w),ee)}function fe(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||tt(w)?W(w):(n.consume(w),fe)}function ce(w){return w===47||w===62||Me(w)?U(w):a(w)}function M(w){return w===62?(n.consume(w),Z):a(w)}function Z(w){return w===null||xe(w)?K(w):Me(w)?(n.consume(w),Z):a(w)}function K(w){return w===45&&s===2?(n.consume(w),j):w===60&&s===1?(n.consume(w),$):w===62&&s===4?(n.consume(w),A):w===63&&s===3?(n.consume(w),E):w===93&&s===5?(n.consume(w),Ce):xe(w)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(rk,F,pe)(w)):w===null||xe(w)?(n.exit("htmlFlowData"),pe(w)):(n.consume(w),K)}function pe(w){return n.check(uk,ae,F)(w)}function ae(w){return n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),Y}function Y(w){return w===null||xe(w)?pe(w):(n.enter("htmlFlowData"),K(w))}function j(w){return w===45?(n.consume(w),E):K(w)}function $(w){return w===47?(n.consume(w),f="",re):K(w)}function re(w){if(w===62){const ue=f.toLowerCase();return Bg.includes(ue)?(n.consume(w),A):K(w)}return Rt(w)&&f.length<8?(n.consume(w),f+=String.fromCharCode(w),re):K(w)}function Ce(w){return w===93?(n.consume(w),E):K(w)}function E(w){return w===62?(n.consume(w),A):w===45&&s===2?(n.consume(w),E):K(w)}function A(w){return w===null||xe(w)?(n.exit("htmlFlowData"),F(w)):(n.consume(w),A)}function F(w){return n.exit("htmlFlow"),l(w)}}function ok(n,l,a){const u=this;return s;function s(f){return xe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c):a(f)}function c(f){return u.parser.lazy[u.now().line]?a(f):l(f)}}function fk(n,l,a){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(gr,l,a)}}const dk={name:"htmlText",tokenize:hk};function hk(n,l,a){const u=this;let s,c,f;return h;function h(E){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(E),p}function p(E){return E===33?(n.consume(E),m):E===47?(n.consume(E),W):E===63?(n.consume(E),U):Rt(E)?(n.consume(E),fe):a(E)}function m(E){return E===45?(n.consume(E),b):E===91?(n.consume(E),c=0,_):Rt(E)?(n.consume(E),V):a(E)}function b(E){return E===45?(n.consume(E),v):a(E)}function y(E){return E===null?a(E):E===45?(n.consume(E),k):xe(E)?(f=y,$(E)):(n.consume(E),y)}function k(E){return E===45?(n.consume(E),v):y(E)}function v(E){return E===62?j(E):E===45?k(E):y(E)}function _(E){const A="CDATA[";return E===A.charCodeAt(c++)?(n.consume(E),c===A.length?z:_):a(E)}function z(E){return E===null?a(E):E===93?(n.consume(E),q):xe(E)?(f=z,$(E)):(n.consume(E),z)}function q(E){return E===93?(n.consume(E),T):z(E)}function T(E){return E===62?j(E):E===93?(n.consume(E),T):z(E)}function V(E){return E===null||E===62?j(E):xe(E)?(f=V,$(E)):(n.consume(E),V)}function U(E){return E===null?a(E):E===63?(n.consume(E),ie):xe(E)?(f=U,$(E)):(n.consume(E),U)}function ie(E){return E===62?j(E):U(E)}function W(E){return Rt(E)?(n.consume(E),O):a(E)}function O(E){return E===45||Tt(E)?(n.consume(E),O):ee(E)}function ee(E){return xe(E)?(f=ee,$(E)):Me(E)?(n.consume(E),ee):j(E)}function fe(E){return E===45||Tt(E)?(n.consume(E),fe):E===47||E===62||tt(E)?ce(E):a(E)}function ce(E){return E===47?(n.consume(E),j):E===58||E===95||Rt(E)?(n.consume(E),M):xe(E)?(f=ce,$(E)):Me(E)?(n.consume(E),ce):j(E)}function M(E){return E===45||E===46||E===58||E===95||Tt(E)?(n.consume(E),M):Z(E)}function Z(E){return E===61?(n.consume(E),K):xe(E)?(f=Z,$(E)):Me(E)?(n.consume(E),Z):ce(E)}function K(E){return E===null||E===60||E===61||E===62||E===96?a(E):E===34||E===39?(n.consume(E),s=E,pe):xe(E)?(f=K,$(E)):Me(E)?(n.consume(E),K):(n.consume(E),ae)}function pe(E){return E===s?(n.consume(E),s=void 0,Y):E===null?a(E):xe(E)?(f=pe,$(E)):(n.consume(E),pe)}function ae(E){return E===null||E===34||E===39||E===60||E===61||E===96?a(E):E===47||E===62||tt(E)?ce(E):(n.consume(E),ae)}function Y(E){return E===47||E===62||tt(E)?ce(E):a(E)}function j(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),l):a(E)}function $(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),re}function re(E){return Me(E)?He(n,Ce,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):Ce(E)}function Ce(E){return n.enter("htmlTextData"),f(E)}}const Bf={name:"labelEnd",resolveAll:yk,resolveTo:xk,tokenize:bk},mk={tokenize:vk},pk={tokenize:kk},gk={tokenize:Sk};function yk(n){let l=-1;const a=[];for(;++l<n.length;){const u=n[l][1];if(a.push(n[l]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",l+=s}}return n.length!==a.length&&ln(n,0,n.length,a),n}function xk(n,l){let a=n.length,u=0,s,c,f,h;for(;a--;)if(s=n[a][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[a][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[a][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=a,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(f=a);const p={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[c][1].start},end:{...n[f][1].end}},b={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[f-2][1].start}};return h=[["enter",p,l],["enter",m,l]],h=yn(h,n.slice(c+1,c+u+3)),h=yn(h,[["enter",b,l]]),h=yn(h,cs(l.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),l)),h=yn(h,[["exit",b,l],n[f-2],n[f-1],["exit",m,l]]),h=yn(h,n.slice(f+1)),h=yn(h,[["exit",p,l]]),ln(n,c,n.length,h),n}function bk(n,l,a){const u=this;let s=u.events.length,c,f;for(;s--;)if((u.events[s][1].type==="labelImage"||u.events[s][1].type==="labelLink")&&!u.events[s][1]._balanced){c=u.events[s][1];break}return h;function h(k){return c?c._inactive?y(k):(f=u.parser.defined.includes(wn(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(k),n.exit("labelMarker"),n.exit("labelEnd"),p):a(k)}function p(k){return k===40?n.attempt(mk,b,f?b:y)(k):k===91?n.attempt(pk,b,f?m:y)(k):f?b(k):y(k)}function m(k){return n.attempt(gk,b,y)(k)}function b(k){return l(k)}function y(k){return c._balanced=!0,a(k)}}function vk(n,l,a){return u;function u(y){return n.enter("resource"),n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),s}function s(y){return tt(y)?cr(n,c)(y):c(y)}function c(y){return y===41?b(y):Fy(n,f,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return tt(y)?cr(n,p)(y):b(y)}function h(y){return a(y)}function p(y){return y===34||y===39||y===40?Ky(n,m,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):b(y)}function m(y){return tt(y)?cr(n,b)(y):b(y)}function b(y){return y===41?(n.enter("resourceMarker"),n.consume(y),n.exit("resourceMarker"),n.exit("resource"),l):a(y)}}function kk(n,l,a){const u=this;return s;function s(h){return Xy.call(u,n,c,f,"reference","referenceMarker","referenceString")(h)}function c(h){return u.parser.defined.includes(wn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?l(h):a(h)}function f(h){return a(h)}}function Sk(n,l,a){return u;function u(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),s}function s(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),l):a(c)}}const wk={name:"labelStartImage",resolveAll:Bf.resolveAll,tokenize:_k};function _k(n,l,a){const u=this;return s;function s(h){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(h),n.exit("labelImageMarker"),c}function c(h){return h===91?(n.enter("labelMarker"),n.consume(h),n.exit("labelMarker"),n.exit("labelImage"),f):a(h)}function f(h){return h===94&&"_hiddenFootnoteSupport"in u.parser.constructs?a(h):l(h)}}const Ek={name:"labelStartLink",resolveAll:Bf.resolveAll,tokenize:Ck};function Ck(n,l,a){const u=this;return s;function s(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in u.parser.constructs?a(f):l(f)}}const Yo={name:"lineEnding",tokenize:Ak};function Ak(n,l){return a;function a(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),He(n,l,"linePrefix")}}const Yu={name:"thematicBreak",tokenize:Nk};function Nk(n,l,a){let u=0,s;return c;function c(m){return n.enter("thematicBreak"),f(m)}function f(m){return s=m,h(m)}function h(m){return m===s?(n.enter("thematicBreakSequence"),p(m)):u>=3&&(m===null||xe(m))?(n.exit("thematicBreak"),l(m)):a(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Me(m)?He(n,h,"whitespace")(m):h(m))}}const It={continuation:{tokenize:Dk},exit:Mk,name:"list",tokenize:zk},jk={partial:!0,tokenize:Rk},Tk={partial:!0,tokenize:Ok};function zk(n,l,a){const u=this,s=u.events[u.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return h;function h(v){const _=u.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!u.containerState.marker||v===u.containerState.marker:pf(v)){if(u.containerState.type||(u.containerState.type=_,n.enter(_,{_container:!0})),_==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(Yu,a,m)(v):m(v);if(!u.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(v)}return a(v)}function p(v){return pf(v)&&++f<10?(n.consume(v),p):(!u.interrupt||f<2)&&(u.containerState.marker?v===u.containerState.marker:v===41||v===46)?(n.exit("listItemValue"),m(v)):a(v)}function m(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||v,n.check(gr,u.interrupt?a:b,n.attempt(jk,k,y))}function b(v){return u.containerState.initialBlankLine=!0,c++,k(v)}function y(v){return Me(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),k):a(v)}function k(v){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,l(v)}}function Dk(n,l,a){const u=this;return u.containerState._closeFlow=void 0,n.check(gr,s,c);function s(h){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,He(n,l,"listItemIndent",u.containerState.size+1)(h)}function c(h){return u.containerState.furtherBlankLines||!Me(h)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(h)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(Tk,l,f)(h))}function f(h){return u.containerState._closeFlow=!0,u.interrupt=void 0,He(n,n.attempt(It,l,a),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function Ok(n,l,a){const u=this;return He(n,s,"listItemIndent",u.containerState.size+1);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?l(c):a(c)}}function Mk(n){n.exit(this.containerState.type)}function Rk(n,l,a){const u=this;return He(n,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const f=u.events[u.events.length-1];return!Me(c)&&f&&f[1].type==="listItemPrefixWhitespace"?l(c):a(c)}}const Ug={name:"setextUnderline",resolveTo:Lk,tokenize:Bk};function Lk(n,l){let a=n.length,u,s,c;for(;a--;)if(n[a][0]==="enter"){if(n[a][1].type==="content"){u=a;break}n[a][1].type==="paragraph"&&(s=a)}else n[a][1].type==="content"&&n.splice(a,1),!c&&n[a][1].type==="definition"&&(c=a);const f={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",c?(n.splice(s,0,["enter",f,l]),n.splice(c+1,0,["exit",n[u][1],l]),n[u][1].end={...n[c][1].end}):n[u][1]=f,n.push(["exit",f,l]),n}function Bk(n,l,a){const u=this;let s;return c;function c(m){let b=u.events.length,y;for(;b--;)if(u.events[b][1].type!=="lineEnding"&&u.events[b][1].type!=="linePrefix"&&u.events[b][1].type!=="content"){y=u.events[b][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||y)?(n.enter("setextHeadingLine"),s=m,f(m)):a(m)}function f(m){return n.enter("setextHeadingLineSequence"),h(m)}function h(m){return m===s?(n.consume(m),h):(n.exit("setextHeadingLineSequence"),Me(m)?He(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||xe(m)?(n.exit("setextHeadingLine"),l(m)):a(m)}}const Uk={tokenize:Hk};function Hk(n){const l=this,a=n.attempt(gr,u,n.attempt(this.parser.constructs.flowInitial,s,He(n,n.attempt(this.parser.constructs.flow,s,n.attempt(I2,s)),"linePrefix")));return a;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),l.currentConstruct=void 0,a}function s(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),l.currentConstruct=void 0,a}}const qk={resolveAll:$y()},Vk=Jy("string"),Yk=Jy("text");function Jy(n){return{resolveAll:$y(n==="text"?Zk:void 0),tokenize:l};function l(a){const u=this,s=this.parser.constructs[n],c=a.attempt(s,f,h);return f;function f(b){return m(b)?c(b):h(b)}function h(b){if(b===null){a.consume(b);return}return a.enter("data"),a.consume(b),p}function p(b){return m(b)?(a.exit("data"),c(b)):(a.consume(b),p)}function m(b){if(b===null)return!0;const y=s[b];let k=-1;if(y)for(;++k<y.length;){const v=y[k];if(!v.previous||v.previous.call(u,u.previous))return!0}return!1}}}function $y(n){return l;function l(a,u){let s=-1,c;for(;++s<=a.length;)c===void 0?a[s]&&a[s][1].type==="data"&&(c=s,s++):(!a[s]||a[s][1].type!=="data")&&(s!==c+2&&(a[c][1].end=a[s-1][1].end,a.splice(c+2,s-c-2),s=c+2),c=void 0);return n?n(a,u):a}}function Zk(n,l){let a=0;for(;++a<=n.length;)if((a===n.length||n[a][1].type==="lineEnding")&&n[a-1][1].type==="data"){const u=n[a-1][1],s=l.sliceStream(u);let c=s.length,f=-1,h=0,p;for(;c--;){const m=s[c];if(typeof m=="string"){for(f=m.length;m.charCodeAt(f-1)===32;)h++,f--;if(f)break;f=-1}else if(m===-2)p=!0,h++;else if(m!==-1){c++;break}}if(l._contentTypeTextTrailing&&a===n.length&&(h=0),h){const m={type:a===n.length||p||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?f:u.start._bufferIndex+f,_index:u.start._index+c,line:u.end.line,column:u.end.column-h,offset:u.end.offset-h},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(n.splice(a,0,["enter",m,l],["exit",m,l]),a+=2)}a++}return n}const Ik={42:It,43:It,45:It,48:It,49:It,50:It,51:It,52:It,53:It,54:It,55:It,56:It,57:It,62:Zy},Qk={91:K2},Gk={[-2]:Vo,[-1]:Vo,32:Vo},Fk={35:tk,42:Yu,45:[Ug,Yu],60:ak,61:Ug,95:Yu,96:Lg,126:Lg},Xk={38:Qy,92:Iy},Kk={[-5]:Yo,[-4]:Yo,[-3]:Yo,33:wk,38:Qy,42:gf,60:[E2,dk],91:Ek,92:[W2,Iy],93:Bf,95:gf,96:U2},Jk={null:[gf,qk]},$k={null:[42,95]},Pk={null:[]},Wk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$k,contentInitial:Qk,disable:Pk,document:Ik,flow:Fk,flowInitial:Gk,insideSpan:Jk,string:Xk,text:Kk},Symbol.toStringTag,{value:"Module"}));function eS(n,l,a){let u={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0};const s={},c=[];let f=[],h=[];const p={attempt:ee(W),check:ee(O),consume:V,enter:U,exit:ie,interrupt:ee(O,{interrupt:!0})},m={code:null,containerState:{},defineSkip:z,events:[],now:_,parser:n,previous:null,sliceSerialize:k,sliceStream:v,write:y};let b=l.tokenize.call(m,p);return l.resolveAll&&c.push(l),m;function y(Z){return f=yn(f,Z),q(),f[f.length-1]!==null?[]:(fe(l,0),m.events=cs(c,m.events,m),m.events)}function k(Z,K){return nS(v(Z),K)}function v(Z){return tS(f,Z)}function _(){const{_bufferIndex:Z,_index:K,line:pe,column:ae,offset:Y}=u;return{_bufferIndex:Z,_index:K,line:pe,column:ae,offset:Y}}function z(Z){s[Z.line]=Z.column,M()}function q(){let Z;for(;u._index<f.length;){const K=f[u._index];if(typeof K=="string")for(Z=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===Z&&u._bufferIndex<K.length;)T(K.charCodeAt(u._bufferIndex));else T(K)}}function T(Z){b=b(Z)}function V(Z){xe(Z)?(u.line++,u.column=1,u.offset+=Z===-3?2:1,M()):Z!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=Z}function U(Z,K){const pe=K||{};return pe.type=Z,pe.start=_(),m.events.push(["enter",pe,m]),h.push(pe),pe}function ie(Z){const K=h.pop();return K.end=_(),m.events.push(["exit",K,m]),K}function W(Z,K){fe(Z,K.from)}function O(Z,K){K.restore()}function ee(Z,K){return pe;function pe(ae,Y,j){let $,re,Ce,E;return Array.isArray(ae)?F(ae):"tokenize"in ae?F([ae]):A(ae);function A(ge){return Re;function Re(at){const Xe=at!==null&&ge[at],rn=at!==null&&ge.null,Dn=[...Array.isArray(Xe)?Xe:Xe?[Xe]:[],...Array.isArray(rn)?rn:rn?[rn]:[]];return F(Dn)(at)}}function F(ge){return $=ge,re=0,ge.length===0?j:w(ge[re])}function w(ge){return Re;function Re(at){return E=ce(),Ce=ge,ge.partial||(m.currentConstruct=ge),ge.name&&m.parser.constructs.disable.null.includes(ge.name)?ve():ge.tokenize.call(K?Object.assign(Object.create(m),K):m,p,ue,ve)(at)}}function ue(ge){return Z(Ce,E),Y}function ve(ge){return E.restore(),++re<$.length?w($[re]):j}}}function fe(Z,K){Z.resolveAll&&!c.includes(Z)&&c.push(Z),Z.resolve&&ln(m.events,K,m.events.length-K,Z.resolve(m.events.slice(K),m)),Z.resolveTo&&(m.events=Z.resolveTo(m.events,m))}function ce(){const Z=_(),K=m.previous,pe=m.currentConstruct,ae=m.events.length,Y=Array.from(h);return{from:ae,restore:j};function j(){u=Z,m.previous=K,m.currentConstruct=pe,m.events.length=ae,h=Y,M()}}function M(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function tS(n,l){const a=l.start._index,u=l.start._bufferIndex,s=l.end._index,c=l.end._bufferIndex;let f;if(a===s)f=[n[a].slice(u,c)];else{if(f=n.slice(a,s),u>-1){const h=f[0];typeof h=="string"?f[0]=h.slice(u):f.shift()}c>0&&f.push(n[s].slice(0,c))}return f}function nS(n,l){let a=-1;const u=[];let s;for(;++a<n.length;){const c=n[a];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
51
- `;break}case-3:{f=`\r
52
- `;break}case-2:{f=l?" ":" ";break}case-1:{if(!l&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,u.push(f)}return u.join("")}function lS(n){const u={constructs:Vy([Wk,...(n||{}).extensions||[]]),content:s(x2),defined:[],document:s(v2),flow:s(Uk),lazy:{},string:s(Vk),text:s(Yk)};return u;function s(c){return f;function f(h){return eS(u,c,h)}}}function iS(n){for(;!Gy(n););return n}const Hg=/[\0\t\n\r]/g;function aS(){let n=1,l="",a=!0,u;return s;function s(c,f,h){const p=[];let m,b,y,k,v;for(c=l+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),y=0,l="",a&&(c.charCodeAt(0)===65279&&y++,a=void 0);y<c.length;){if(Hg.lastIndex=y,m=Hg.exec(c),k=m&&m.index!==void 0?m.index:c.length,v=c.charCodeAt(k),!m){l=c.slice(y);break}if(v===10&&y===k&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),y<k&&(p.push(c.slice(y,k)),n+=k-y),v){case 0:{p.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,p.push(-2);n++<b;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}y=k+1}return h&&(u&&p.push(-5),l&&p.push(l),p.push(null)),p}}const rS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uS(n){return n.replace(rS,sS)}function sS(n,l,a){if(l)return l;if(a.charCodeAt(0)===35){const s=a.charCodeAt(1),c=s===120||s===88;return Yy(a.slice(c?2:1),c?16:10)}return Lf(a)||n}const Py={}.hasOwnProperty;function cS(n,l,a){return l&&typeof l=="object"&&(a=l,l=void 0),oS(a)(iS(lS(a).document().write(aS()(n,l,!0))))}function oS(n){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(ci),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:c(ui),blockQuote:c(rn),characterEscape:ce,characterReference:ce,codeFenced:c(Dn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(Dn,f),codeText:c(sa,f),codeTextData:ce,data:ce,codeFlowValue:ce,definition:c(xr),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(On),hardBreakEscape:c(si),hardBreakTrailing:c(si),htmlFlow:c(br,f),htmlFlowData:ce,htmlText:c(br,f),htmlTextData:ce,image:c(vr),label:f,link:c(ci),listItem:c(ca),listItemValue:k,listOrdered:c(oi,y),listUnordered:c(oi),paragraph:c(ms),reference:w,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(ui),strong:c(ps),thematicBreak:c(gs)},exit:{atxHeading:p(),atxHeadingSequence:W,autolink:p(),autolinkEmail:Xe,autolinkProtocol:at,blockQuote:p(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:ge,characterReference:Re,codeFenced:p(q),codeFencedFence:z,codeFencedFenceInfo:v,codeFencedFenceMeta:_,codeFlowValue:M,codeIndented:p(T),codeText:p(Y),codeTextData:M,data:M,definition:p(),definitionDestinationString:ie,definitionLabelString:V,definitionTitleString:U,emphasis:p(),hardBreakEscape:p(K),hardBreakTrailing:p(K),htmlFlow:p(pe),htmlFlowData:M,htmlText:p(ae),htmlTextData:M,image:p($),label:Ce,labelText:re,lineEnding:Z,link:p(j),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ue,resourceDestinationString:E,resourceTitleString:A,resource:F,setextHeading:p(fe),setextHeadingLineSequence:ee,setextHeadingText:O,strong:p(),thematicBreak:p()}};Wy(l,(n||{}).mdastExtensions||[]);const a={};return u;function u(X){let le={type:"root",children:[]};const ke={stack:[le],tokenStack:[],config:l,enter:h,exit:m,buffer:f,resume:b,data:a},ze=[];let Qe=-1;for(;++Qe<X.length;)if(X[Qe][1].type==="listOrdered"||X[Qe][1].type==="listUnordered")if(X[Qe][0]==="enter")ze.push(Qe);else{const Xt=ze.pop();Qe=s(X,Xt,Qe)}for(Qe=-1;++Qe<X.length;){const Xt=l[X[Qe][0]];Py.call(Xt,X[Qe][1].type)&&Xt[X[Qe][1].type].call(Object.assign({sliceSerialize:X[Qe][2].sliceSerialize},ke),X[Qe][1])}if(ke.tokenStack.length>0){const Xt=ke.tokenStack[ke.tokenStack.length-1];(Xt[1]||qg).call(ke,void 0,Xt[0])}for(le.position={start:Nl(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Nl(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Qe=-1;++Qe<l.transforms.length;)le=l.transforms[Qe](le)||le;return le}function s(X,le,ke){let ze=le-1,Qe=-1,Xt=!1,Mn,Ot,bt,Lt;for(;++ze<=ke;){const Pe=X[ze];switch(Pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pe[0]==="enter"?Qe++:Qe--,Lt=void 0;break}case"lineEndingBlank":{Pe[0]==="enter"&&(Mn&&!Lt&&!Qe&&!bt&&(bt=ze),Lt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Lt=void 0}if(!Qe&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||Qe===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(Mn){let nl=ze;for(Ot=void 0;nl--;){const bn=X[nl];if(bn[1].type==="lineEnding"||bn[1].type==="lineEndingBlank"){if(bn[0]==="exit")continue;Ot&&(X[Ot][1].type="lineEndingBlank",Xt=!0),bn[1].type="lineEnding",Ot=nl}else if(!(bn[1].type==="linePrefix"||bn[1].type==="blockQuotePrefix"||bn[1].type==="blockQuotePrefixWhitespace"||bn[1].type==="blockQuoteMarker"||bn[1].type==="listItemIndent"))break}bt&&(!Ot||bt<Ot)&&(Mn._spread=!0),Mn.end=Object.assign({},Ot?X[Ot][1].start:Pe[1].end),X.splice(Ot||ze,0,["exit",Mn,Pe[2]]),ze++,ke++}if(Pe[1].type==="listItemPrefix"){const nl={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0};Mn=nl,X.splice(ze,0,["enter",nl,Pe[2]]),ze++,ke++,bt=void 0,Lt=!0}}}return X[le][1]._spread=Xt,ke}function c(X,le){return ke;function ke(ze){h.call(this,X(ze),ze),le&&le.call(this,ze)}}function f(){this.stack.push({type:"fragment",children:[]})}function h(X,le,ke){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([le,ke||void 0]),X.position={start:Nl(le.start),end:void 0}}function p(X){return le;function le(ke){X&&X.call(this,ke),m.call(this,ke)}}function m(X,le){const ke=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==X.type&&(le?le.call(this,X,ze[0]):(ze[1]||qg).call(this,X,ze[0]));else throw new Error("Cannot close `"+X.type+"` ("+sr({start:X.start,end:X.end})+"): it’s not open");ke.position.end=Nl(X.end)}function b(){return Rf(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function k(X){if(this.data.expectingFirstListItemValue){const le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function v(){const X=this.resume(),le=this.stack[this.stack.length-1];le.lang=X}function _(){const X=this.resume(),le=this.stack[this.stack.length-1];le.meta=X}function z(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function q(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X.replace(/(\r?\n|\r)$/g,"")}function V(X){const le=this.resume(),ke=this.stack[this.stack.length-1];ke.label=le,ke.identifier=wn(this.sliceSerialize(X)).toLowerCase()}function U(){const X=this.resume(),le=this.stack[this.stack.length-1];le.title=X}function ie(){const X=this.resume(),le=this.stack[this.stack.length-1];le.url=X}function W(X){const le=this.stack[this.stack.length-1];if(!le.depth){const ke=this.sliceSerialize(X).length;le.depth=ke}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function ee(X){const le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function fe(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(X){const ke=this.stack[this.stack.length-1].children;let ze=ke[ke.length-1];(!ze||ze.type!=="text")&&(ze=Dt(),ze.position={start:Nl(X.start),end:void 0},ke.push(ze)),this.stack.push(ze)}function M(X){const le=this.stack.pop();le.value+=this.sliceSerialize(X),le.position.end=Nl(X.end)}function Z(X){const le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ke=le.children[le.children.length-1];ke.position.end=Nl(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(le.type)&&(ce.call(this,X),M.call(this,X))}function K(){this.data.atHardBreak=!0}function pe(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X}function ae(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X}function Y(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X}function j(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=le,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function $(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=le,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function re(X){const le=this.sliceSerialize(X),ke=this.stack[this.stack.length-2];ke.label=uS(le),ke.identifier=wn(le).toLowerCase()}function Ce(){const X=this.stack[this.stack.length-1],le=this.resume(),ke=this.stack[this.stack.length-1];if(this.data.inReference=!0,ke.type==="link"){const ze=X.children;ke.children=ze}else ke.alt=le}function E(){const X=this.resume(),le=this.stack[this.stack.length-1];le.url=X}function A(){const X=this.resume(),le=this.stack[this.stack.length-1];le.title=X}function F(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ue(X){const le=this.resume(),ke=this.stack[this.stack.length-1];ke.label=le,ke.identifier=wn(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function ve(X){this.data.characterReferenceType=X.type}function ge(X){const le=this.sliceSerialize(X),ke=this.data.characterReferenceType;let ze;ke?(ze=Yy(le,ke==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=Lf(le);const Qe=this.stack[this.stack.length-1];Qe.value+=ze}function Re(X){const le=this.stack.pop();le.position.end=Nl(X.end)}function at(X){M.call(this,X);const le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(X)}function Xe(X){M.call(this,X);const le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(X)}function rn(){return{type:"blockquote",children:[]}}function Dn(){return{type:"code",lang:null,meta:null,value:""}}function sa(){return{type:"inlineCode",value:""}}function xr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function On(){return{type:"emphasis",children:[]}}function ui(){return{type:"heading",depth:0,children:[]}}function si(){return{type:"break"}}function br(){return{type:"html",value:""}}function vr(){return{type:"image",title:null,url:"",alt:null}}function ci(){return{type:"link",title:null,url:"",children:[]}}function oi(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function ca(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function ms(){return{type:"paragraph",children:[]}}function ps(){return{type:"strong",children:[]}}function Dt(){return{type:"text",value:""}}function gs(){return{type:"thematicBreak"}}}function Nl(n){return{line:n.line,column:n.column,offset:n.offset}}function Wy(n,l){let a=-1;for(;++a<l.length;){const u=l[a];Array.isArray(u)?Wy(n,u):fS(n,u)}}function fS(n,l){let a;for(a in l)if(Py.call(l,a))switch(a){case"canContainEols":{const u=l[a];u&&n[a].push(...u);break}case"transforms":{const u=l[a];u&&n[a].push(...u);break}case"enter":case"exit":{const u=l[a];u&&Object.assign(n[a],u);break}}}function qg(n,l){throw n?new Error("Cannot close `"+n.type+"` ("+sr({start:n.start,end:n.end})+"): a different token (`"+l.type+"`, "+sr({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+sr({start:l.start,end:l.end})+") is still open")}function dS(n){const l=this;l.parser=a;function a(u){return cS(u,{...l.data("settings"),...n,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function hS(n,l){const a={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(l),!0)};return n.patch(l,a),n.applyData(l,a)}function mS(n,l){const a={type:"element",tagName:"br",properties:{},children:[]};return n.patch(l,a),[n.applyData(l,a),{type:"text",value:`
53
- `}]}function pS(n,l){const a=l.value?l.value+`
54
- `:"",u={},s=l.lang?l.lang.split(/\s+/):[];s.length>0&&(u.className=["language-"+s[0]]);let c={type:"element",tagName:"code",properties:u,children:[{type:"text",value:a}]};return l.meta&&(c.data={meta:l.meta}),n.patch(l,c),c=n.applyData(l,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(l,c),c}function gS(n,l){const a={type:"element",tagName:"del",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function yS(n,l){const a={type:"element",tagName:"em",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function xS(n,l){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(l.identifier).toUpperCase(),s=ua(u.toLowerCase()),c=n.footnoteOrder.indexOf(u);let f,h=n.footnoteCounts.get(u);h===void 0?(h=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=c+1,h+=1,n.footnoteCounts.set(u,h);const p={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+s,id:a+"fnref-"+s+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(l,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(l,m),n.applyData(l,m)}function bS(n,l){const a={type:"element",tagName:"h"+l.depth,properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function vS(n,l){if(n.options.allowDangerousHtml){const a={type:"raw",value:l.value};return n.patch(l,a),n.applyData(l,a)}}function ex(n,l){const a=l.referenceType;let u="]";if(a==="collapsed"?u+="[]":a==="full"&&(u+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+u}];const s=n.all(l),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=u:s.push({type:"text",value:u}),s}function kS(n,l){const a=String(l.identifier).toUpperCase(),u=n.definitionById.get(a);if(!u)return ex(n,l);const s={src:ua(u.url||""),alt:l.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"img",properties:s,children:[]};return n.patch(l,c),n.applyData(l,c)}function SS(n,l){const a={src:ua(l.url)};l.alt!==null&&l.alt!==void 0&&(a.alt=l.alt),l.title!==null&&l.title!==void 0&&(a.title=l.title);const u={type:"element",tagName:"img",properties:a,children:[]};return n.patch(l,u),n.applyData(l,u)}function wS(n,l){const a={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};n.patch(l,a);const u={type:"element",tagName:"code",properties:{},children:[a]};return n.patch(l,u),n.applyData(l,u)}function _S(n,l){const a=String(l.identifier).toUpperCase(),u=n.definitionById.get(a);if(!u)return ex(n,l);const s={href:ua(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"a",properties:s,children:n.all(l)};return n.patch(l,c),n.applyData(l,c)}function ES(n,l){const a={href:ua(l.url)};l.title!==null&&l.title!==void 0&&(a.title=l.title);const u={type:"element",tagName:"a",properties:a,children:n.all(l)};return n.patch(l,u),n.applyData(l,u)}function CS(n,l,a){const u=n.all(l),s=a?AS(a):tx(l),c={},f=[];if(typeof l.checked=="boolean"){const b=u[0];let y;b&&b.type==="element"&&b.tagName==="p"?y=b:(y={type:"element",tagName:"p",properties:{},children:[]},u.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let h=-1;for(;++h<u.length;){const b=u[h];(s||h!==0||b.type!=="element"||b.tagName!=="p")&&f.push({type:"text",value:`
55
- `}),b.type==="element"&&b.tagName==="p"&&!s?f.push(...b.children):f.push(b)}const p=u[u.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&f.push({type:"text",value:`
56
- `});const m={type:"element",tagName:"li",properties:c,children:f};return n.patch(l,m),n.applyData(l,m)}function AS(n){let l=!1;if(n.type==="list"){l=n.spread||!1;const a=n.children;let u=-1;for(;!l&&++u<a.length;)l=tx(a[u])}return l}function tx(n){const l=n.spread;return l??n.children.length>1}function NS(n,l){const a={},u=n.all(l);let s=-1;for(typeof l.start=="number"&&l.start!==1&&(a.start=l.start);++s<u.length;){const f=u[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const c={type:"element",tagName:l.ordered?"ol":"ul",properties:a,children:n.wrap(u,!0)};return n.patch(l,c),n.applyData(l,c)}function jS(n,l){const a={type:"element",tagName:"p",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function TS(n,l){const a={type:"root",children:n.wrap(n.all(l))};return n.patch(l,a),n.applyData(l,a)}function zS(n,l){const a={type:"element",tagName:"strong",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}function DS(n,l){const a=n.all(l),u=a.shift(),s=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(l.children[0],f),s.push(f)}if(a.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(a,!0)},h=zf(l.children[1]),p=My(l.children[l.children.length-1]);h&&p&&(f.position={start:h,end:p}),s.push(f)}const c={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(l,c),n.applyData(l,c)}function OS(n,l,a){const u=a?a.children:void 0,c=(u?u.indexOf(l):1)===0?"th":"td",f=a&&a.type==="table"?a.align:void 0,h=f?f.length:l.children.length;let p=-1;const m=[];for(;++p<h;){const y=l.children[p],k={},v=f?f[p]:void 0;v&&(k.align=v);let _={type:"element",tagName:c,properties:k,children:[]};y&&(_.children=n.all(y),n.patch(y,_),_=n.applyData(y,_)),m.push(_)}const b={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(l,b),n.applyData(l,b)}function MS(n,l){const a={type:"element",tagName:"td",properties:{},children:n.all(l)};return n.patch(l,a),n.applyData(l,a)}const Vg=9,Yg=32;function RS(n){const l=String(n),a=/\r?\n|\r/g;let u=a.exec(l),s=0;const c=[];for(;u;)c.push(Zg(l.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=a.exec(l);return c.push(Zg(l.slice(s),s>0,!1)),c.join("")}function Zg(n,l,a){let u=0,s=n.length;if(l){let c=n.codePointAt(u);for(;c===Vg||c===Yg;)u++,c=n.codePointAt(u)}if(a){let c=n.codePointAt(s-1);for(;c===Vg||c===Yg;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function LS(n,l){const a={type:"text",value:RS(String(l.value))};return n.patch(l,a),n.applyData(l,a)}function BS(n,l){const a={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(l,a),n.applyData(l,a)}const US={blockquote:hS,break:mS,code:pS,delete:gS,emphasis:yS,footnoteReference:xS,heading:bS,html:vS,imageReference:kS,image:SS,inlineCode:wS,linkReference:_S,link:ES,listItem:CS,list:NS,paragraph:jS,root:TS,strong:zS,table:DS,tableCell:MS,tableRow:OS,text:LS,thematicBreak:BS,toml:Bu,yaml:Bu,definition:Bu,footnoteDefinition:Bu};function Bu(){}const nx=-1,os=0,or=1,es=2,Uf=3,Hf=4,qf=5,Vf=6,lx=7,ix=8,HS=typeof self=="object"?self:globalThis,Ig=(n,l)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new HS[n](l)},qS=(n,l)=>{const a=(s,c)=>(n.set(c,s),s),u=s=>{if(n.has(s))return n.get(s);const[c,f]=l[s];switch(c){case os:case nx:return a(f,s);case or:{const h=a([],s);for(const p of f)h.push(u(p));return h}case es:{const h=a({},s);for(const[p,m]of f)h[u(p)]=u(m);return h}case Uf:return a(new Date(f),s);case Hf:{const{source:h,flags:p}=f;return a(new RegExp(h,p),s)}case qf:{const h=a(new Map,s);for(const[p,m]of f)h.set(u(p),u(m));return h}case Vf:{const h=a(new Set,s);for(const p of f)h.add(u(p));return h}case lx:{const{name:h,message:p}=f;return a(Ig(h,p),s)}case ix:return a(BigInt(f),s);case"BigInt":return a(Object(BigInt(f)),s);case"ArrayBuffer":return a(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:h}=new Uint8Array(f);return a(new DataView(h),f)}}return a(Ig(c,f),s)};return u},Qg=n=>qS(new Map,n)(0),ti="",{toString:VS}={},{keys:YS}=Object,rr=n=>{const l=typeof n;if(l!=="object"||!n)return[os,l];const a=VS.call(n).slice(8,-1);switch(a){case"Array":return[or,ti];case"Object":return[es,ti];case"Date":return[Uf,ti];case"RegExp":return[Hf,ti];case"Map":return[qf,ti];case"Set":return[Vf,ti];case"DataView":return[or,a]}return a.includes("Array")?[or,a]:a.includes("Error")?[lx,a]:[es,a]},Uu=([n,l])=>n===os&&(l==="function"||l==="symbol"),ZS=(n,l,a,u)=>{const s=(f,h)=>{const p=u.push(f)-1;return a.set(h,p),p},c=f=>{if(a.has(f))return a.get(f);let[h,p]=rr(f);switch(h){case os:{let b=f;switch(p){case"bigint":h=ix,b=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);b=null;break;case"undefined":return s([nx],f)}return s([h,b],f)}case or:{if(p){let k=f;return p==="DataView"?k=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(k=new Uint8Array(f)),s([p,[...k]],f)}const b=[],y=s([h,b],f);for(const k of f)b.push(c(k));return y}case es:{if(p)switch(p){case"BigInt":return s([p,f.toString()],f);case"Boolean":case"Number":case"String":return s([p,f.valueOf()],f)}if(l&&"toJSON"in f)return c(f.toJSON());const b=[],y=s([h,b],f);for(const k of YS(f))(n||!Uu(rr(f[k])))&&b.push([c(k),c(f[k])]);return y}case Uf:return s([h,isNaN(f.getTime())?ti:f.toISOString()],f);case Hf:{const{source:b,flags:y}=f;return s([h,{source:b,flags:y}],f)}case qf:{const b=[],y=s([h,b],f);for(const[k,v]of f)(n||!(Uu(rr(k))||Uu(rr(v))))&&b.push([c(k),c(v)]);return y}case Vf:{const b=[],y=s([h,b],f);for(const k of f)(n||!Uu(rr(k)))&&b.push(c(k));return y}}const{message:m}=f;return s([h,{name:p,message:m}],f)};return c},Gg=(n,{json:l,lossy:a}={})=>{const u=[];return ZS(!(l||a),!!l,new Map,u)(n),u},ts=typeof structuredClone=="function"?(n,l)=>l&&("json"in l||"lossy"in l)?Qg(Gg(n,l)):structuredClone(n):(n,l)=>Qg(Gg(n,l));function IS(n,l){const a=[{type:"text",value:"↩"}];return l>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),a}function QS(n,l){return"Back to reference "+(n+1)+(l>1?"-"+l:"")}function GS(n){const l=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",a=n.options.footnoteBackContent||IS,u=n.options.footnoteBackLabel||QS,s=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let p=-1;for(;++p<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[p]);if(!m)continue;const b=n.all(m),y=String(m.identifier).toUpperCase(),k=ua(y.toLowerCase());let v=0;const _=[],z=n.footnoteCounts.get(y);for(;z!==void 0&&++v<=z;){_.length>0&&_.push({type:"text",value:" "});let V=typeof a=="string"?a:a(p,v);typeof V=="string"&&(V={type:"text",value:V}),_.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+k+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,v),className:["data-footnote-backref"]},children:Array.isArray(V)?V:[V]})}const q=b[b.length-1];if(q&&q.type==="element"&&q.tagName==="p"){const V=q.children[q.children.length-1];V&&V.type==="text"?V.value+=" ":q.children.push({type:"text",value:" "}),q.children.push(..._)}else b.push(..._);const T={type:"element",tagName:"li",properties:{id:l+"fn-"+k},children:n.wrap(b,!0)};n.patch(m,T),h.push(T)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...ts(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
57
- `},{type:"element",tagName:"ol",properties:{},children:n.wrap(h,!0)},{type:"text",value:`
58
- `}]}}const fs=(function(n){if(n==null)return JS;if(typeof n=="function")return ds(n);if(typeof n=="object")return Array.isArray(n)?FS(n):XS(n);if(typeof n=="string")return KS(n);throw new Error("Expected function, string, or object as test")});function FS(n){const l=[];let a=-1;for(;++a<n.length;)l[a]=fs(n[a]);return ds(u);function u(...s){let c=-1;for(;++c<l.length;)if(l[c].apply(this,s))return!0;return!1}}function XS(n){const l=n;return ds(a);function a(u){const s=u;let c;for(c in n)if(s[c]!==l[c])return!1;return!0}}function KS(n){return ds(l);function l(a){return a&&a.type===n}}function ds(n){return l;function l(a,u,s){return!!($S(a)&&n.call(this,a,typeof u=="number"?u:void 0,s||void 0))}}function JS(){return!0}function $S(n){return n!==null&&typeof n=="object"&&"type"in n}const ax=[],PS=!0,yf=!1,WS="skip";function rx(n,l,a,u){let s;typeof l=="function"&&typeof a!="function"?(u=a,a=l):s=l;const c=fs(s),f=u?-1:1;h(n,void 0,[])();function h(p,m,b){const y=p&&typeof p=="object"?p:{};if(typeof y.type=="string"){const v=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return k;function k(){let v=ax,_,z,q;if((!l||c(p,m,b[b.length-1]||void 0))&&(v=ew(a(p,b)),v[0]===yf))return v;if("children"in p&&p.children){const T=p;if(T.children&&v[0]!==WS)for(z=(u?T.children.length:-1)+f,q=b.concat(T);z>-1&&z<T.children.length;){const V=T.children[z];if(_=h(V,z,q)(),_[0]===yf)return _;z=typeof _[1]=="number"?_[1]:z+f}}return v}}}function ew(n){return Array.isArray(n)?n:typeof n=="number"?[PS,n]:n==null?ax:[n]}function Yf(n,l,a,u){let s,c,f;typeof l=="function"&&typeof a!="function"?(c=void 0,f=l,s=a):(c=l,f=a,s=u),rx(n,c,h,s);function h(p,m){const b=m[m.length-1],y=b?b.children.indexOf(p):void 0;return f(p,y,b)}}const xf={}.hasOwnProperty,tw={};function nw(n,l){const a=l||tw,u=new Map,s=new Map,c=new Map,f={...US,...a.handlers},h={all:m,applyData:iw,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:a,patch:lw,wrap:rw};return Yf(n,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const y=b.type==="definition"?u:s,k=String(b.identifier).toUpperCase();y.has(k)||y.set(k,b)}}),h;function p(b,y){const k=b.type,v=h.handlers[k];if(xf.call(h.handlers,k)&&v)return v(h,b,y);if(h.options.passThrough&&h.options.passThrough.includes(k)){if("children"in b){const{children:z,...q}=b,T=ts(q);return T.children=h.all(b),T}return ts(b)}return(h.options.unknownHandler||aw)(h,b,y)}function m(b){const y=[];if("children"in b){const k=b.children;let v=-1;for(;++v<k.length;){const _=h.one(k[v],b);if(_){if(v&&k[v-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=Fg(_.value)),!Array.isArray(_)&&_.type==="element")){const z=_.children[0];z&&z.type==="text"&&(z.value=Fg(z.value))}Array.isArray(_)?y.push(..._):y.push(_)}}}return y}}function lw(n,l){n.position&&(l.position=Iv(n))}function iw(n,l){let a=l;if(n&&n.data){const u=n.data.hName,s=n.data.hChildren,c=n.data.hProperties;if(typeof u=="string")if(a.type==="element")a.tagName=u;else{const f="children"in a?a.children:[a];a={type:"element",tagName:u,properties:{},children:f}}a.type==="element"&&c&&Object.assign(a.properties,ts(c)),"children"in a&&a.children&&s!==null&&s!==void 0&&(a.children=s)}return a}function aw(n,l){const a=l.data||{},u="value"in l&&!(xf.call(a,"hProperties")||xf.call(a,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:n.all(l)};return n.patch(l,u),n.applyData(l,u)}function rw(n,l){const a=[];let u=-1;for(l&&a.push({type:"text",value:`
59
- `});++u<n.length;)u&&a.push({type:"text",value:`
60
- `}),a.push(n[u]);return l&&n.length>0&&a.push({type:"text",value:`
61
- `}),a}function Fg(n){let l=0,a=n.charCodeAt(l);for(;a===9||a===32;)l++,a=n.charCodeAt(l);return n.slice(l)}function Xg(n,l){const a=nw(n,l),u=a.one(n,void 0),s=GS(a),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
62
- `},s),c}function uw(n,l){return n&&"run"in n?async function(a,u){const s=Xg(a,{file:u,...l});await n.run(s,u)}:function(a,u){return Xg(a,{file:u,...n||l})}}function Kg(n){if(n)throw n}var Zo,Jg;function sw(){if(Jg)return Zo;Jg=1;var n=Object.prototype.hasOwnProperty,l=Object.prototype.toString,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):l.call(m)==="[object Array]"},c=function(m){if(!m||l.call(m)!=="[object Object]")return!1;var b=n.call(m,"constructor"),y=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!b&&!y)return!1;var k;for(k in m);return typeof k>"u"||n.call(m,k)},f=function(m,b){a&&b.name==="__proto__"?a(m,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):m[b.name]=b.newValue},h=function(m,b){if(b==="__proto__")if(n.call(m,b)){if(u)return u(m,b).value}else return;return m[b]};return Zo=function p(){var m,b,y,k,v,_,z=arguments[0],q=1,T=arguments.length,V=!1;for(typeof z=="boolean"&&(V=z,z=arguments[1]||{},q=2),(z==null||typeof z!="object"&&typeof z!="function")&&(z={});q<T;++q)if(m=arguments[q],m!=null)for(b in m)y=h(z,b),k=h(m,b),z!==k&&(V&&k&&(c(k)||(v=s(k)))?(v?(v=!1,_=y&&s(y)?y:[]):_=y&&c(y)?y:{},f(z,{name:b,newValue:p(V,_,k)})):typeof k<"u"&&f(z,{name:b,newValue:k}));return z},Zo}var cw=sw();const Io=my(cw);function bf(n){if(typeof n!="object"||n===null)return!1;const l=Object.getPrototypeOf(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function ow(){const n=[],l={run:a,use:u};return l;function a(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);h(null,...s);function h(p,...m){const b=n[++c];let y=-1;if(p){f(p);return}for(;++y<s.length;)(m[y]===null||m[y]===void 0)&&(m[y]=s[y]);s=m,b?fw(b,h)(...m):f(null,...m)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),l}}function fw(n,l){let a;return u;function u(...f){const h=n.length>f.length;let p;h&&f.push(s);try{p=n.apply(this,f)}catch(m){const b=m;if(h&&a)throw b;return s(b)}h||(p&&p.then&&typeof p.then=="function"?p.then(c,s):p instanceof Error?s(p):c(p))}function s(f,...h){a||(a=!0,l(f,...h))}function c(f){s(null,f)}}const Nn={basename:dw,dirname:hw,extname:mw,join:pw,sep:"/"};function dw(n,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');yr(n);let a=0,u=-1,s=n.length,c;if(l===void 0||l.length===0||l.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(c){a=s+1;break}}else u<0&&(c=!0,u=s+1);return u<0?"":n.slice(a,u)}if(l===n)return"";let f=-1,h=l.length-1;for(;s--;)if(n.codePointAt(s)===47){if(c){a=s+1;break}}else f<0&&(c=!0,f=s+1),h>-1&&(n.codePointAt(s)===l.codePointAt(h--)?h<0&&(u=s):(h=-1,u=f));return a===u?u=f:u<0&&(u=n.length),n.slice(a,u)}function hw(n){if(yr(n),n.length===0)return".";let l=-1,a=n.length,u;for(;--a;)if(n.codePointAt(a)===47){if(u){l=a;break}}else u||(u=!0);return l<0?n.codePointAt(0)===47?"/":".":l===1&&n.codePointAt(0)===47?"//":n.slice(0,l)}function mw(n){yr(n);let l=n.length,a=-1,u=0,s=-1,c=0,f;for(;l--;){const h=n.codePointAt(l);if(h===47){if(f){u=l+1;break}continue}a<0&&(f=!0,a=l+1),h===46?s<0?s=l:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||a<0||c===0||c===1&&s===a-1&&s===u+1?"":n.slice(s,a)}function pw(...n){let l=-1,a;for(;++l<n.length;)yr(n[l]),n[l]&&(a=a===void 0?n[l]:a+"/"+n[l]);return a===void 0?".":gw(a)}function gw(n){yr(n);const l=n.codePointAt(0)===47;let a=yw(n,!l);return a.length===0&&!l&&(a="."),a.length>0&&n.codePointAt(n.length-1)===47&&(a+="/"),l?"/"+a:a}function yw(n,l){let a="",u=0,s=-1,c=0,f=-1,h,p;for(;++f<=n.length;){if(f<n.length)h=n.codePointAt(f);else{if(h===47)break;h=47}if(h===47){if(!(s===f-1||c===1))if(s!==f-1&&c===2){if(a.length<2||u!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(p=a.lastIndexOf("/"),p!==a.length-1){p<0?(a="",u=0):(a=a.slice(0,p),u=a.length-1-a.lastIndexOf("/")),s=f,c=0;continue}}else if(a.length>0){a="",u=0,s=f,c=0;continue}}l&&(a=a.length>0?a+"/..":"..",u=2)}else a.length>0?a+="/"+n.slice(s+1,f):a=n.slice(s+1,f),u=f-s-1;s=f,c=0}else h===46&&c>-1?c++:c=-1}return a}function yr(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const xw={cwd:bw};function bw(){return"/"}function vf(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function vw(n){if(typeof n=="string")n=new URL(n);else if(!vf(n)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(n.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return kw(n)}function kw(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const l=n.pathname;let a=-1;for(;++a<l.length;)if(l.codePointAt(a)===37&&l.codePointAt(a+1)===50){const u=l.codePointAt(a+2);if(u===70||u===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(l)}const Qo=["history","path","basename","stem","extname","dirname"];class ux{constructor(l){let a;l?vf(l)?a={path:l}:typeof l=="string"||Sw(l)?a={value:l}:a=l:a={},this.cwd="cwd"in a?"":xw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Qo.length;){const c=Qo[u];c in a&&a[c]!==void 0&&a[c]!==null&&(this[c]=c==="history"?[...a[c]]:a[c])}let s;for(s in a)Qo.includes(s)||(this[s]=a[s])}get basename(){return typeof this.path=="string"?Nn.basename(this.path):void 0}set basename(l){Fo(l,"basename"),Go(l,"basename"),this.path=Nn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?Nn.dirname(this.path):void 0}set dirname(l){$g(this.basename,"dirname"),this.path=Nn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?Nn.extname(this.path):void 0}set extname(l){if(Go(l,"extname"),$g(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Nn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){vf(l)&&(l=vw(l)),Fo(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?Nn.basename(this.path,this.extname):void 0}set stem(l){Fo(l,"stem"),Go(l,"stem"),this.path=Nn.join(this.dirname||"",l+(this.extname||""))}fail(l,a,u){const s=this.message(l,a,u);throw s.fatal=!0,s}info(l,a,u){const s=this.message(l,a,u);return s.fatal=void 0,s}message(l,a,u){const s=new zt(l,a,u);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Go(n,l){if(n&&n.includes(Nn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+Nn.sep+"`")}function Fo(n,l){if(!n)throw new Error("`"+l+"` cannot be empty")}function $g(n,l){if(!n)throw new Error("Setting `"+l+"` requires `path` to be set too")}function Sw(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const ww=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),_w={}.hasOwnProperty;class Zf extends ww{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=ow()}copy(){const l=new Zf;let a=-1;for(;++a<this.attachers.length;){const u=this.attachers[a];l.use(...u)}return l.data(Io(!0,{},this.namespace)),l}data(l,a){return typeof l=="string"?arguments.length===2?(Jo("data",this.frozen),this.namespace[l]=a,this):_w.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Jo("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const s=a.call(l,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const a=Hu(l),u=this.parser||this.Parser;return Xo("parse",u),u(String(a),a)}process(l,a){const u=this;return this.freeze(),Xo("process",this.parser||this.Parser),Ko("process",this.compiler||this.Compiler),a?s(void 0,a):new Promise(s);function s(c,f){const h=Hu(l),p=u.parse(h);u.run(p,h,function(b,y,k){if(b||!y||!k)return m(b);const v=y,_=u.stringify(v,k);Aw(_)?k.value=_:k.result=_,m(b,k)});function m(b,y){b||!y?f(b):c?c(y):a(void 0,y)}}}processSync(l){let a=!1,u;return this.freeze(),Xo("processSync",this.parser||this.Parser),Ko("processSync",this.compiler||this.Compiler),this.process(l,s),Wg("processSync","process",a),u;function s(c,f){a=!0,Kg(c),u=f}}run(l,a,u){Pg(l),this.freeze();const s=this.transformers;return!u&&typeof a=="function"&&(u=a,a=void 0),u?c(void 0,u):new Promise(c);function c(f,h){const p=Hu(a);s.run(l,p,m);function m(b,y,k){const v=y||l;b?h(b):f?f(v):u(void 0,v,k)}}}runSync(l,a){let u=!1,s;return this.run(l,a,c),Wg("runSync","run",u),s;function c(f,h){Kg(f),s=h,u=!0}}stringify(l,a){this.freeze();const u=Hu(a),s=this.compiler||this.Compiler;return Ko("stringify",s),Pg(l),s(l,u)}use(l,...a){const u=this.attachers,s=this.namespace;if(Jo("use",this.frozen),l!=null)if(typeof l=="function")p(l,a);else if(typeof l=="object")Array.isArray(l)?h(l):f(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function c(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[b,...y]=m;p(b,y)}else f(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function f(m){if(!("plugins"in m)&&!("settings"in m))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");h(m.plugins),m.settings&&(s.settings=Io(!0,s.settings,m.settings))}function h(m){let b=-1;if(m!=null)if(Array.isArray(m))for(;++b<m.length;){const y=m[b];c(y)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,b){let y=-1,k=-1;for(;++y<u.length;)if(u[y][0]===m){k=y;break}if(k===-1)u.push([m,...b]);else if(b.length>0){let[v,..._]=b;const z=u[k][1];bf(z)&&bf(v)&&(v=Io(!0,z,v)),u[k]=[m,v,..._]}}}}const Ew=new Zf().freeze();function Xo(n,l){if(typeof l!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Ko(n,l){if(typeof l!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Jo(n,l){if(l)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Pg(n){if(!bf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Wg(n,l,a){if(!a)throw new Error("`"+n+"` finished async. Use `"+l+"` instead")}function Hu(n){return Cw(n)?n:new ux(n)}function Cw(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function Aw(n){return typeof n=="string"||Nw(n)}function Nw(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const jw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ey=[],ty={allowDangerousHtml:!0},Tw=/^(https?|ircs?|mailto|xmpp)$/i,zw=[{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 Dw(n){const l=Ow(n),a=Mw(n);return Rw(l.runSync(l.parse(a),a),n)}function Ow(n){const l=n.rehypePlugins||ey,a=n.remarkPlugins||ey,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...ty}:ty;return Ew().use(dS).use(a).use(uw,u).use(l)}function Mw(n){const l=n.children||"",a=new ux;return typeof l=="string"&&(a.value=l),a}function Rw(n,l){const a=l.allowedElements,u=l.allowElement,s=l.components,c=l.disallowedElements,f=l.skipHtml,h=l.unwrapDisallowed,p=l.urlTransform||Lw;for(const b of zw)Object.hasOwn(l,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+jw+b.id,void 0);return Yf(n,m),Kv(n,{Fragment:g.Fragment,components:s,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function m(b,y,k){if(b.type==="raw"&&k&&typeof y=="number")return f?k.children.splice(y,1):k.children[y]={type:"text",value:b.value},y;if(b.type==="element"){let v;for(v in qo)if(Object.hasOwn(qo,v)&&Object.hasOwn(b.properties,v)){const _=b.properties[v],z=qo[v];(z===null||z.includes(b.tagName))&&(b.properties[v]=p(String(_||""),v,b))}}if(b.type==="element"){let v=a?!a.includes(b.tagName):c?c.includes(b.tagName):!1;if(!v&&u&&typeof y=="number"&&(v=!u(b,y,k)),v&&k&&typeof y=="number")return h&&b.children?k.children.splice(y,1,...b.children):k.children.splice(y,1),y}}}function Lw(n){const l=n.indexOf(":"),a=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return l===-1||s!==-1&&l>s||a!==-1&&l>a||u!==-1&&l>u||Tw.test(n.slice(0,l))?n:""}function ny(n,l){const a=String(n);if(typeof l!="string")throw new TypeError("Expected character");let u=0,s=a.indexOf(l);for(;s!==-1;)u++,s=a.indexOf(l,s+l.length);return u}function Bw(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Uw(n,l,a){const s=fs((a||{}).ignore||[]),c=Hw(l);let f=-1;for(;++f<c.length;)rx(n,"text",h);function h(m,b){let y=-1,k;for(;++y<b.length;){const v=b[y],_=k?k.children:void 0;if(s(v,_?_.indexOf(v):void 0,k))return;k=v}if(k)return p(m,b)}function p(m,b){const y=b[b.length-1],k=c[f][0],v=c[f][1];let _=0;const q=y.children.indexOf(m);let T=!1,V=[];k.lastIndex=0;let U=k.exec(m.value);for(;U;){const ie=U.index,W={index:U.index,input:U.input,stack:[...b,m]};let O=v(...U,W);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?k.lastIndex=ie+1:(_!==ie&&V.push({type:"text",value:m.value.slice(_,ie)}),Array.isArray(O)?V.push(...O):O&&V.push(O),_=ie+U[0].length,T=!0),!k.global)break;U=k.exec(m.value)}return T?(_<m.value.length&&V.push({type:"text",value:m.value.slice(_)}),y.children.splice(q,1,...V)):V=[m],q+V.length}}function Hw(n){const l=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const a=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<a.length;){const s=a[u];l.push([qw(s[0]),Vw(s[1])])}return l}function qw(n){return typeof n=="string"?new RegExp(Bw(n),"g"):n}function Vw(n){return typeof n=="function"?n:function(){return n}}const $o="phrasing",Po=["autolink","link","image","label"];function Yw(){return{transforms:[Kw],enter:{literalAutolink:Iw,literalAutolinkEmail:Wo,literalAutolinkHttp:Wo,literalAutolinkWww:Wo},exit:{literalAutolink:Xw,literalAutolinkEmail:Fw,literalAutolinkHttp:Qw,literalAutolinkWww:Gw}}}function Zw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$o,notInConstruct:Po},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$o,notInConstruct:Po},{character:":",before:"[ps]",after:"\\/",inConstruct:$o,notInConstruct:Po}]}}function Iw(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Wo(n){this.config.enter.autolinkProtocol.call(this,n)}function Qw(n){this.config.exit.autolinkProtocol.call(this,n)}function Gw(n){this.config.exit.data.call(this,n);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(n)}function Fw(n){this.config.exit.autolinkEmail.call(this,n)}function Xw(n){this.exit(n)}function Kw(n){Uw(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Jw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),$w]],{ignore:["link","linkReference"]})}function Jw(n,l,a,u,s){let c="";if(!sx(s)||(/^w/i.test(l)&&(a=l+a,l="",c="http://"),!Pw(a)))return!1;const f=Ww(a+u);if(!f[0])return!1;const h={type:"link",title:null,url:c+l+f[0],children:[{type:"text",value:l+f[0]}]};return f[1]?[h,{type:"text",value:f[1]}]:h}function $w(n,l,a,u){return!sx(u,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+a,children:[{type:"text",value:l+"@"+a}]}}function Pw(n){const l=n.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function Ww(n){const l=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!l)return[n,void 0];n=n.slice(0,l.index);let a=l[0],u=a.indexOf(")");const s=ny(n,"(");let c=ny(n,")");for(;u!==-1&&s>c;)n+=a.slice(0,u+1),a=a.slice(u+1),u=a.indexOf(")"),c++;return[n,a]}function sx(n,l){const a=n.input.charCodeAt(n.index-1);return(n.index===0||ai(a)||ss(a))&&(!l||a!==47)}cx.peek=s4;function e4(){this.buffer()}function t4(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function n4(){this.buffer()}function l4(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function i4(n){const l=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=wn(this.sliceSerialize(n)).toLowerCase(),a.label=l}function a4(n){this.exit(n)}function r4(n){const l=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=wn(this.sliceSerialize(n)).toLowerCase(),a.label=l}function u4(n){this.exit(n)}function s4(){return"["}function cx(n,l,a,u){const s=a.createTracker(u);let c=s.move("[^");const f=a.enter("footnoteReference"),h=a.enter("reference");return c+=s.move(a.safe(a.associationId(n),{after:"]",before:c})),h(),f(),c+=s.move("]"),c}function c4(){return{enter:{gfmFootnoteCallString:e4,gfmFootnoteCall:t4,gfmFootnoteDefinitionLabelString:n4,gfmFootnoteDefinition:l4},exit:{gfmFootnoteCallString:i4,gfmFootnoteCall:a4,gfmFootnoteDefinitionLabelString:r4,gfmFootnoteDefinition:u4}}}function o4(n){let l=!1;return n&&n.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:a,footnoteReference:cx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(u,s,c,f){const h=c.createTracker(f);let p=h.move("[^");const m=c.enter("footnoteDefinition"),b=c.enter("label");return p+=h.move(c.safe(c.associationId(u),{before:p,after:"]"})),b(),p+=h.move("]:"),u.children&&u.children.length>0&&(h.shift(4),p+=h.move((l?`
63
- `:" ")+c.indentLines(c.containerFlow(u,h.current()),l?ox:f4))),m(),p}}function f4(n,l,a){return l===0?n:ox(n,l,a)}function ox(n,l,a){return(a?"":" ")+n}const d4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];fx.peek=y4;function h4(){return{canContainEols:["delete"],enter:{strikethrough:p4},exit:{strikethrough:g4}}}function m4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:d4}],handlers:{delete:fx}}}function p4(n){this.enter({type:"delete",children:[]},n)}function g4(n){this.exit(n)}function fx(n,l,a,u){const s=a.createTracker(u),c=a.enter("strikethrough");let f=s.move("~~");return f+=a.containerPhrasing(n,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),c(),f}function y4(){return"~"}function x4(n){return n.length}function b4(n,l){const a=l||{},u=(a.align||[]).concat(),s=a.stringLength||x4,c=[],f=[],h=[],p=[];let m=0,b=-1;for(;++b<n.length;){const z=[],q=[];let T=-1;for(n[b].length>m&&(m=n[b].length);++T<n[b].length;){const V=v4(n[b][T]);if(a.alignDelimiters!==!1){const U=s(V);q[T]=U,(p[T]===void 0||U>p[T])&&(p[T]=U)}z.push(V)}f[b]=z,h[b]=q}let y=-1;if(typeof u=="object"&&"length"in u)for(;++y<m;)c[y]=ly(u[y]);else{const z=ly(u);for(;++y<m;)c[y]=z}y=-1;const k=[],v=[];for(;++y<m;){const z=c[y];let q="",T="";z===99?(q=":",T=":"):z===108?q=":":z===114&&(T=":");let V=a.alignDelimiters===!1?1:Math.max(1,p[y]-q.length-T.length);const U=q+"-".repeat(V)+T;a.alignDelimiters!==!1&&(V=q.length+V+T.length,V>p[y]&&(p[y]=V),v[y]=V),k[y]=U}f.splice(1,0,k),h.splice(1,0,v),b=-1;const _=[];for(;++b<f.length;){const z=f[b],q=h[b];y=-1;const T=[];for(;++y<m;){const V=z[y]||"";let U="",ie="";if(a.alignDelimiters!==!1){const W=p[y]-(q[y]||0),O=c[y];O===114?U=" ".repeat(W):O===99?W%2?(U=" ".repeat(W/2+.5),ie=" ".repeat(W/2-.5)):(U=" ".repeat(W/2),ie=U):ie=" ".repeat(W)}a.delimiterStart!==!1&&!y&&T.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&V==="")&&(a.delimiterStart!==!1||y)&&T.push(" "),a.alignDelimiters!==!1&&T.push(U),T.push(V),a.alignDelimiters!==!1&&T.push(ie),a.padding!==!1&&T.push(" "),(a.delimiterEnd!==!1||y!==m-1)&&T.push("|")}_.push(a.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return _.join(`
64
- `)}function v4(n){return n==null?"":String(n)}function ly(n){const l=typeof n=="string"?n.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function k4(n,l,a,u){const s=a.enter("blockquote"),c=a.createTracker(u);c.move("> "),c.shift(2);const f=a.indentLines(a.containerFlow(n,c.current()),S4);return s(),f}function S4(n,l,a){return">"+(a?"":" ")+n}function w4(n,l){return iy(n,l.inConstruct,!0)&&!iy(n,l.notInConstruct,!1)}function iy(n,l,a){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return a;let u=-1;for(;++u<l.length;)if(n.includes(l[u]))return!0;return!1}function ay(n,l,a,u){let s=-1;for(;++s<a.unsafe.length;)if(a.unsafe[s].character===`
65
- `&&w4(a.stack,a.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
66
- `}function _4(n,l){const a=String(n);let u=a.indexOf(l),s=u,c=0,f=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===s?++c>f&&(f=c):c=1,s=u+l.length,u=a.indexOf(l,s);return f}function E4(n,l){return!!(l.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function C4(n){const l=n.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function A4(n,l,a,u){const s=C4(a),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(E4(n,a)){const y=a.enter("codeIndented"),k=a.indentLines(c,N4);return y(),k}const h=a.createTracker(u),p=s.repeat(Math.max(_4(c,s)+1,3)),m=a.enter("codeFenced");let b=h.move(p);if(n.lang){const y=a.enter(`codeFencedLang${f}`);b+=h.move(a.safe(n.lang,{before:b,after:" ",encode:["`"],...h.current()})),y()}if(n.lang&&n.meta){const y=a.enter(`codeFencedMeta${f}`);b+=h.move(" "),b+=h.move(a.safe(n.meta,{before:b,after:`
67
- `,encode:["`"],...h.current()})),y()}return b+=h.move(`
68
- `),c&&(b+=h.move(c+`
69
- `)),b+=h.move(p),m(),b}function N4(n,l,a){return(a?"":" ")+n}function If(n){const l=n.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function j4(n,l,a,u){const s=If(a),c=s==='"'?"Quote":"Apostrophe",f=a.enter("definition");let h=a.enter("label");const p=a.createTracker(u);let m=p.move("[");return m+=p.move(a.safe(a.associationId(n),{before:m,after:"]",...p.current()})),m+=p.move("]: "),h(),!n.url||/[\0- \u007F]/.test(n.url)?(h=a.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(a.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(h=a.enter("destinationRaw"),m+=p.move(a.safe(n.url,{before:m,after:n.title?" ":`
70
- `,...p.current()}))),h(),n.title&&(h=a.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(a.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),h()),f(),m}function T4(n){const l=n.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function mr(n){return"&#x"+n.toString(16).toUpperCase()+";"}function ns(n,l,a){const u=aa(n),s=aa(l);return u===void 0?s===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}dx.peek=z4;function dx(n,l,a,u){const s=T4(a),c=a.enter("emphasis"),f=a.createTracker(u),h=f.move(s);let p=f.move(a.containerPhrasing(n,{after:s,before:h,...f.current()}));const m=p.charCodeAt(0),b=ns(u.before.charCodeAt(u.before.length-1),m,s);b.inside&&(p=mr(m)+p.slice(1));const y=p.charCodeAt(p.length-1),k=ns(u.after.charCodeAt(0),y,s);k.inside&&(p=p.slice(0,-1)+mr(y));const v=f.move(s);return c(),a.attentionEncodeSurroundingInfo={after:k.outside,before:b.outside},h+p+v}function z4(n,l,a){return a.options.emphasis||"*"}function D4(n,l){let a=!1;return Yf(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return a=!0,yf}),!!((!n.depth||n.depth<3)&&Rf(n)&&(l.options.setext||a))}function O4(n,l,a,u){const s=Math.max(Math.min(6,n.depth||1),1),c=a.createTracker(u);if(D4(n,a)){const b=a.enter("headingSetext"),y=a.enter("phrasing"),k=a.containerPhrasing(n,{...c.current(),before:`
71
- `,after:`
72
- `});return y(),b(),k+`
73
- `+(s===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
74
- `))+1))}const f="#".repeat(s),h=a.enter("headingAtx"),p=a.enter("phrasing");c.move(f+" ");let m=a.containerPhrasing(n,{before:"# ",after:`
75
- `,...c.current()});return/^[\t ]/.test(m)&&(m=mr(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,a.options.closeAtx&&(m+=" "+f),p(),h(),m}hx.peek=M4;function hx(n){return n.value||""}function M4(){return"<"}mx.peek=R4;function mx(n,l,a,u){const s=If(a),c=s==='"'?"Quote":"Apostrophe",f=a.enter("image");let h=a.enter("label");const p=a.createTracker(u);let m=p.move("![");return m+=p.move(a.safe(n.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=a.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(a.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(h=a.enter("destinationRaw"),m+=p.move(a.safe(n.url,{before:m,after:n.title?" ":")",...p.current()}))),h(),n.title&&(h=a.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(a.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),h()),m+=p.move(")"),f(),m}function R4(){return"!"}px.peek=L4;function px(n,l,a,u){const s=n.referenceType,c=a.enter("imageReference");let f=a.enter("label");const h=a.createTracker(u);let p=h.move("![");const m=a.safe(n.alt,{before:p,after:"]",...h.current()});p+=h.move(m+"]["),f();const b=a.stack;a.stack=[],f=a.enter("reference");const y=a.safe(a.associationId(n),{before:p,after:"]",...h.current()});return f(),a.stack=b,c(),s==="full"||!m||m!==y?p+=h.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function L4(){return"!"}gx.peek=B4;function gx(n,l,a){let u=n.value||"",s="`",c=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(u);)s+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++c<a.unsafe.length;){const f=a.unsafe[c],h=a.compilePattern(f);let p;if(f.atBreak)for(;p=h.exec(u);){let m=p.index;u.charCodeAt(m)===10&&u.charCodeAt(m-1)===13&&m--,u=u.slice(0,m)+" "+u.slice(p.index+1)}}return s+u+s}function B4(){return"`"}function yx(n,l){const a=Rf(n);return!!(!l.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(a===n.url||"mailto:"+a===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}xx.peek=U4;function xx(n,l,a,u){const s=If(a),c=s==='"'?"Quote":"Apostrophe",f=a.createTracker(u);let h,p;if(yx(n,a)){const b=a.stack;a.stack=[],h=a.enter("autolink");let y=f.move("<");return y+=f.move(a.containerPhrasing(n,{before:y,after:">",...f.current()})),y+=f.move(">"),h(),a.stack=b,y}h=a.enter("link"),p=a.enter("label");let m=f.move("[");return m+=f.move(a.containerPhrasing(n,{before:m,after:"](",...f.current()})),m+=f.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=a.enter("destinationLiteral"),m+=f.move("<"),m+=f.move(a.safe(n.url,{before:m,after:">",...f.current()})),m+=f.move(">")):(p=a.enter("destinationRaw"),m+=f.move(a.safe(n.url,{before:m,after:n.title?" ":")",...f.current()}))),p(),n.title&&(p=a.enter(`title${c}`),m+=f.move(" "+s),m+=f.move(a.safe(n.title,{before:m,after:s,...f.current()})),m+=f.move(s),p()),m+=f.move(")"),h(),m}function U4(n,l,a){return yx(n,a)?"<":"["}bx.peek=H4;function bx(n,l,a,u){const s=n.referenceType,c=a.enter("linkReference");let f=a.enter("label");const h=a.createTracker(u);let p=h.move("[");const m=a.containerPhrasing(n,{before:p,after:"]",...h.current()});p+=h.move(m+"]["),f();const b=a.stack;a.stack=[],f=a.enter("reference");const y=a.safe(a.associationId(n),{before:p,after:"]",...h.current()});return f(),a.stack=b,c(),s==="full"||!m||m!==y?p+=h.move(y+"]"):s==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function H4(){return"["}function Qf(n){const l=n.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function q4(n){const l=Qf(n),a=n.options.bulletOther;if(!a)return l==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+a+"`) to be different");return a}function V4(n){const l=n.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function vx(n){const l=n.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function Y4(n,l,a,u){const s=a.enter("list"),c=a.bulletCurrent;let f=n.ordered?V4(a):Qf(a);const h=n.ordered?f==="."?")":".":q4(a);let p=l&&a.bulletLastUsed?f===a.bulletLastUsed:!1;if(!n.ordered){const b=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&b&&(!b.children||!b.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(p=!0),vx(a)===f&&b){let y=-1;for(;++y<n.children.length;){const k=n.children[y];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(f=h),a.bulletCurrent=f;const m=a.containerFlow(n,u);return a.bulletLastUsed=f,a.bulletCurrent=c,s(),m}function Z4(n){const l=n.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function I4(n,l,a,u){const s=Z4(a);let c=a.bulletCurrent||Qf(a);l&&l.type==="list"&&l.ordered&&(c=(typeof l.start=="number"&&l.start>-1?l.start:1)+(a.options.incrementListMarker===!1?0:l.children.indexOf(n))+c);let f=c.length+1;(s==="tab"||s==="mixed"&&(l&&l.type==="list"&&l.spread||n.spread))&&(f=Math.ceil(f/4)*4);const h=a.createTracker(u);h.move(c+" ".repeat(f-c.length)),h.shift(f);const p=a.enter("listItem"),m=a.indentLines(a.containerFlow(n,h.current()),b);return p(),m;function b(y,k,v){return k?(v?"":" ".repeat(f))+y:(v?c:c+" ".repeat(f-c.length))+y}}function Q4(n,l,a,u){const s=a.enter("paragraph"),c=a.enter("phrasing"),f=a.containerPhrasing(n,u);return c(),s(),f}const G4=fs(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function F4(n,l,a,u){return(n.children.some(function(f){return G4(f)})?a.containerPhrasing:a.containerFlow).call(a,n,u)}function X4(n){const l=n.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}kx.peek=K4;function kx(n,l,a,u){const s=X4(a),c=a.enter("strong"),f=a.createTracker(u),h=f.move(s+s);let p=f.move(a.containerPhrasing(n,{after:s,before:h,...f.current()}));const m=p.charCodeAt(0),b=ns(u.before.charCodeAt(u.before.length-1),m,s);b.inside&&(p=mr(m)+p.slice(1));const y=p.charCodeAt(p.length-1),k=ns(u.after.charCodeAt(0),y,s);k.inside&&(p=p.slice(0,-1)+mr(y));const v=f.move(s+s);return c(),a.attentionEncodeSurroundingInfo={after:k.outside,before:b.outside},h+p+v}function K4(n,l,a){return a.options.strong||"*"}function J4(n,l,a,u){return a.safe(n.value,u)}function $4(n){const l=n.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function P4(n,l,a){const u=(vx(a)+(a.options.ruleSpaces?" ":"")).repeat($4(a));return a.options.ruleSpaces?u.slice(0,-1):u}const Sx={blockquote:k4,break:ay,code:A4,definition:j4,emphasis:dx,hardBreak:ay,heading:O4,html:hx,image:mx,imageReference:px,inlineCode:gx,link:xx,linkReference:bx,list:Y4,listItem:I4,paragraph:Q4,root:F4,strong:kx,text:J4,thematicBreak:P4};function W4(){return{enter:{table:e_,tableData:ry,tableHeader:ry,tableRow:n_},exit:{codeText:l_,table:t_,tableData:ef,tableHeader:ef,tableRow:ef}}}function e_(n){const l=n._align;this.enter({type:"table",align:l.map(function(a){return a==="none"?null:a}),children:[]},n),this.data.inTable=!0}function t_(n){this.exit(n),this.data.inTable=void 0}function n_(n){this.enter({type:"tableRow",children:[]},n)}function ef(n){this.exit(n)}function ry(n){this.enter({type:"tableCell",children:[]},n)}function l_(n){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,i_));const a=this.stack[this.stack.length-1];a.type,a.value=l,this.exit(n)}function i_(n,l){return l==="|"?l:n}function a_(n){const l=n||{},a=l.tableCellPadding,u=l.tablePipeAlign,s=l.stringLength,c=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
76
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:f,tableCell:p,tableRow:h}};function f(v,_,z,q){return m(b(v,z,q),v.align)}function h(v,_,z,q){const T=y(v,z,q),V=m([T]);return V.slice(0,V.indexOf(`
77
- `))}function p(v,_,z,q){const T=z.enter("tableCell"),V=z.enter("phrasing"),U=z.containerPhrasing(v,{...q,before:c,after:c});return V(),T(),U}function m(v,_){return b4(v,{align:_,alignDelimiters:u,padding:a,stringLength:s})}function b(v,_,z){const q=v.children;let T=-1;const V=[],U=_.enter("table");for(;++T<q.length;)V[T]=y(q[T],_,z);return U(),V}function y(v,_,z){const q=v.children;let T=-1;const V=[],U=_.enter("tableRow");for(;++T<q.length;)V[T]=p(q[T],v,_,z);return U(),V}function k(v,_,z){let q=Sx.inlineCode(v,_,z);return z.stack.includes("tableCell")&&(q=q.replace(/\|/g,"\\$&")),q}}function r_(){return{exit:{taskListCheckValueChecked:uy,taskListCheckValueUnchecked:uy,paragraph:s_}}}function u_(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:c_}}}function uy(n){const l=this.stack[this.stack.length-2];l.type,l.checked=n.type==="taskListCheckValueChecked"}function s_(n){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const a=this.stack[this.stack.length-1];a.type;const u=a.children[0];if(u&&u.type==="text"){const s=l.children;let c=-1,f;for(;++c<s.length;){const h=s[c];if(h.type==="paragraph"){f=h;break}}f===a&&(u.value=u.value.slice(1),u.value.length===0?a.children.shift():a.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,a.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function c_(n,l,a,u){const s=n.children[0],c=typeof n.checked=="boolean"&&s&&s.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",h=a.createTracker(u);c&&h.move(f);let p=Sx.listItem(n,l,a,{...u,...h.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(b){return b+f}}function o_(){return[Yw(),c4(),h4(),W4(),r_()]}function f_(n){return{extensions:[Zw(),o4(n),m4(),a_(n),u_()]}}const d_={tokenize:x_,partial:!0},wx={tokenize:b_,partial:!0},_x={tokenize:v_,partial:!0},Ex={tokenize:k_,partial:!0},h_={tokenize:S_,partial:!0},Cx={name:"wwwAutolink",tokenize:g_,previous:Nx},Ax={name:"protocolAutolink",tokenize:y_,previous:jx},tl={name:"emailAutolink",tokenize:p_,previous:Tx},zn={};function m_(){return{text:zn}}let ei=48;for(;ei<123;)zn[ei]=tl,ei++,ei===58?ei=65:ei===91&&(ei=97);zn[43]=tl;zn[45]=tl;zn[46]=tl;zn[95]=tl;zn[72]=[tl,Ax];zn[104]=[tl,Ax];zn[87]=[tl,Cx];zn[119]=[tl,Cx];function p_(n,l,a){const u=this;let s,c;return f;function f(y){return!kf(y)||!Tx.call(u,u.previous)||Gf(u.events)?a(y):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),h(y))}function h(y){return kf(y)?(n.consume(y),h):y===64?(n.consume(y),p):a(y)}function p(y){return y===46?n.check(h_,b,m)(y):y===45||y===95||Tt(y)?(c=!0,n.consume(y),p):b(y)}function m(y){return n.consume(y),s=!0,p}function b(y){return c&&s&&Rt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),l(y)):a(y)}}function g_(n,l,a){const u=this;return s;function s(f){return f!==87&&f!==119||!Nx.call(u,u.previous)||Gf(u.events)?a(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(d_,n.attempt(wx,n.attempt(_x,c),a),a)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),l(f)}}function y_(n,l,a){const u=this;let s="",c=!1;return f;function f(y){return(y===72||y===104)&&jx.call(u,u.previous)&&!Gf(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(y),n.consume(y),h):a(y)}function h(y){if(Rt(y)&&s.length<5)return s+=String.fromCodePoint(y),n.consume(y),h;if(y===58){const k=s.toLowerCase();if(k==="http"||k==="https")return n.consume(y),p}return a(y)}function p(y){return y===47?(n.consume(y),c?m:(c=!0,p)):a(y)}function m(y){return y===null||Wu(y)||tt(y)||ai(y)||ss(y)?a(y):n.attempt(wx,n.attempt(_x,b),a)(y)}function b(y){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),l(y)}}function x_(n,l,a){let u=0;return s;function s(f){return(f===87||f===119)&&u<3?(u++,n.consume(f),s):f===46&&u===3?(n.consume(f),c):a(f)}function c(f){return f===null?a(f):l(f)}}function b_(n,l,a){let u,s,c;return f;function f(m){return m===46||m===95?n.check(Ex,p,h)(m):m===null||tt(m)||ai(m)||m!==45&&ss(m)?p(m):(c=!0,n.consume(m),f)}function h(m){return m===95?u=!0:(s=u,u=void 0),n.consume(m),f}function p(m){return s||u||!c?a(m):l(m)}}function v_(n,l){let a=0,u=0;return s;function s(f){return f===40?(a++,n.consume(f),s):f===41&&u<a?c(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(Ex,l,c)(f):f===null||tt(f)||ai(f)?l(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function k_(n,l,a){return u;function u(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(n.consume(h),u):h===38?(n.consume(h),c):h===93?(n.consume(h),s):h===60||h===null||tt(h)||ai(h)?l(h):a(h)}function s(h){return h===null||h===40||h===91||tt(h)||ai(h)?l(h):u(h)}function c(h){return Rt(h)?f(h):a(h)}function f(h){return h===59?(n.consume(h),u):Rt(h)?(n.consume(h),f):a(h)}}function S_(n,l,a){return u;function u(c){return n.consume(c),s}function s(c){return Tt(c)?a(c):l(c)}}function Nx(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||tt(n)}function jx(n){return!Rt(n)}function Tx(n){return!(n===47||kf(n))}function kf(n){return n===43||n===45||n===46||n===95||Tt(n)}function Gf(n){let l=n.length,a=!1;for(;l--;){const u=n[l][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){a=!0;break}if(u._gfmAutolinkLiteralWalkedInto){a=!1;break}}return n.length>0&&!a&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}const w_={tokenize:z_,partial:!0};function __(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:N_,continuation:{tokenize:j_},exit:T_}},text:{91:{name:"gfmFootnoteCall",tokenize:A_},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:E_,resolveTo:C_}}}}function E_(n,l,a){const u=this;let s=u.events.length;const c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f;for(;s--;){const p=u.events[s][1];if(p.type==="labelImage"){f=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return h;function h(p){if(!f||!f._balanced)return a(p);const m=wn(u.sliceSerialize({start:f.end,end:u.now()}));return m.codePointAt(0)!==94||!c.includes(m.slice(1))?a(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),l(p))}}function C_(n,l){let a=n.length;for(;a--;)if(n[a][1].type==="labelImage"&&n[a][0]==="enter"){n[a][1];break}n[a+1][1].type="data",n[a+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[a+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[a+3][1].end),end:Object.assign({},n[a+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},h=[n[a+1],n[a+2],["enter",u,l],n[a+3],n[a+4],["enter",s,l],["exit",s,l],["enter",c,l],["enter",f,l],["exit",f,l],["exit",c,l],n[n.length-2],n[n.length-1],["exit",u,l]];return n.splice(a,n.length-a+1,...h),n}function A_(n,l,a){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c=0,f;return h;function h(y){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),p}function p(y){return y!==94?a(y):(n.enter("gfmFootnoteCallMarker"),n.consume(y),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",m)}function m(y){if(c>999||y===93&&!f||y===null||y===91||tt(y))return a(y);if(y===93){n.exit("chunkString");const k=n.exit("gfmFootnoteCallString");return s.includes(wn(u.sliceSerialize(k)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(y),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),l):a(y)}return tt(y)||(f=!0),c++,n.consume(y),y===92?b:m}function b(y){return y===91||y===92||y===93?(n.consume(y),c++,m):m(y)}}function N_(n,l,a){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c,f=0,h;return p;function p(_){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(_),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(_){return _===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(_),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",b):a(_)}function b(_){if(f>999||_===93&&!h||_===null||_===91||tt(_))return a(_);if(_===93){n.exit("chunkString");const z=n.exit("gfmFootnoteDefinitionLabelString");return c=wn(u.sliceSerialize(z)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(_),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),k}return tt(_)||(h=!0),f++,n.consume(_),_===92?y:b}function y(_){return _===91||_===92||_===93?(n.consume(_),f++,b):b(_)}function k(_){return _===58?(n.enter("definitionMarker"),n.consume(_),n.exit("definitionMarker"),s.includes(c)||s.push(c),He(n,v,"gfmFootnoteDefinitionWhitespace")):a(_)}function v(_){return l(_)}}function j_(n,l,a){return n.check(gr,l,n.attempt(w_,l,a))}function T_(n){n.exit("gfmFootnoteDefinition")}function z_(n,l,a){const u=this;return He(n,s,"gfmFootnoteDefinitionIndent",5);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?l(c):a(c)}}function D_(n){let a=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:c,resolveAll:s};return a==null&&(a=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function s(f,h){let p=-1;for(;++p<f.length;)if(f[p][0]==="enter"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._close){let m=p;for(;m--;)if(f[m][0]==="exit"&&f[m][1].type==="strikethroughSequenceTemporary"&&f[m][1]._open&&f[p][1].end.offset-f[p][1].start.offset===f[m][1].end.offset-f[m][1].start.offset){f[p][1].type="strikethroughSequence",f[m][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},f[m][1].start),end:Object.assign({},f[p][1].end)},y={type:"strikethroughText",start:Object.assign({},f[m][1].end),end:Object.assign({},f[p][1].start)},k=[["enter",b,h],["enter",f[m][1],h],["exit",f[m][1],h],["enter",y,h]],v=h.parser.constructs.insideSpan.null;v&&ln(k,k.length,0,cs(v,f.slice(m+1,p),h)),ln(k,k.length,0,[["exit",y,h],["enter",f[p][1],h],["exit",f[p][1],h],["exit",b,h]]),ln(f,m-1,p-m+3,k),p=m+k.length-2;break}}for(p=-1;++p<f.length;)f[p][1].type==="strikethroughSequenceTemporary"&&(f[p][1].type="data");return f}function c(f,h,p){const m=this.previous,b=this.events;let y=0;return k;function k(_){return m===126&&b[b.length-1][1].type!=="characterEscape"?p(_):(f.enter("strikethroughSequenceTemporary"),v(_))}function v(_){const z=aa(m);if(_===126)return y>1?p(_):(f.consume(_),y++,v);if(y<2&&!a)return p(_);const q=f.exit("strikethroughSequenceTemporary"),T=aa(_);return q._open=!T||T===2&&!!z,q._close=!z||z===2&&!!T,h(_)}}}class O_{constructor(){this.map=[]}add(l,a,u){M_(this,l,a,u)}consume(l){if(this.map.sort(function(c,f){return c[0]-f[0]}),this.map.length===0)return;let a=this.map.length;const u=[];for(;a>0;)a-=1,u.push(l.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),l.length=this.map[a][0];u.push(l.slice()),l.length=0;let s=u.pop();for(;s;){for(const c of s)l.push(c);s=u.pop()}this.map.length=0}}function M_(n,l,a,u){let s=0;if(!(a===0&&u.length===0)){for(;s<n.map.length;){if(n.map[s][0]===l){n.map[s][1]+=a,n.map[s][2].push(...u);return}s+=1}n.map.push([l,a,u])}}function R_(n,l){let a=!1;const u=[];for(;l<n.length;){const s=n[l];if(a){if(s[0]==="enter")s[1].type==="tableContent"&&u.push(n[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[l-1][1].type==="tableDelimiterMarker"){const c=u.length-1;u[c]=u[c]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(a=!0);l+=1}return u}function L_(){return{flow:{null:{name:"table",tokenize:B_,resolveAll:U_}}}}function B_(n,l,a){const u=this;let s=0,c=0,f;return h;function h(M){let Z=u.events.length-1;for(;Z>-1;){const ae=u.events[Z][1].type;if(ae==="lineEnding"||ae==="linePrefix")Z--;else break}const K=Z>-1?u.events[Z][1].type:null,pe=K==="tableHead"||K==="tableRow"?O:p;return pe===O&&u.parser.lazy[u.now().line]?a(M):pe(M)}function p(M){return n.enter("tableHead"),n.enter("tableRow"),m(M)}function m(M){return M===124||(f=!0,c+=1),b(M)}function b(M){return M===null?a(M):xe(M)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(M),n.exit("lineEnding"),v):a(M):Me(M)?He(n,b,"whitespace")(M):(c+=1,f&&(f=!1,s+=1),M===124?(n.enter("tableCellDivider"),n.consume(M),n.exit("tableCellDivider"),f=!0,b):(n.enter("data"),y(M)))}function y(M){return M===null||M===124||tt(M)?(n.exit("data"),b(M)):(n.consume(M),M===92?k:y)}function k(M){return M===92||M===124?(n.consume(M),y):y(M)}function v(M){return u.interrupt=!1,u.parser.lazy[u.now().line]?a(M):(n.enter("tableDelimiterRow"),f=!1,Me(M)?He(n,_,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):_(M))}function _(M){return M===45||M===58?q(M):M===124?(f=!0,n.enter("tableCellDivider"),n.consume(M),n.exit("tableCellDivider"),z):W(M)}function z(M){return Me(M)?He(n,q,"whitespace")(M):q(M)}function q(M){return M===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(M),n.exit("tableDelimiterMarker"),T):M===45?(c+=1,T(M)):M===null||xe(M)?ie(M):W(M)}function T(M){return M===45?(n.enter("tableDelimiterFiller"),V(M)):W(M)}function V(M){return M===45?(n.consume(M),V):M===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(M),n.exit("tableDelimiterMarker"),U):(n.exit("tableDelimiterFiller"),U(M))}function U(M){return Me(M)?He(n,ie,"whitespace")(M):ie(M)}function ie(M){return M===124?_(M):M===null||xe(M)?!f||s!==c?W(M):(n.exit("tableDelimiterRow"),n.exit("tableHead"),l(M)):W(M)}function W(M){return a(M)}function O(M){return n.enter("tableRow"),ee(M)}function ee(M){return M===124?(n.enter("tableCellDivider"),n.consume(M),n.exit("tableCellDivider"),ee):M===null||xe(M)?(n.exit("tableRow"),l(M)):Me(M)?He(n,ee,"whitespace")(M):(n.enter("data"),fe(M))}function fe(M){return M===null||M===124||tt(M)?(n.exit("data"),ee(M)):(n.consume(M),M===92?ce:fe)}function ce(M){return M===92||M===124?(n.consume(M),fe):fe(M)}}function U_(n,l){let a=-1,u=!0,s=0,c=[0,0,0,0],f=[0,0,0,0],h=!1,p=0,m,b,y;const k=new O_;for(;++a<n.length;){const v=n[a],_=v[1];v[0]==="enter"?_.type==="tableHead"?(h=!1,p!==0&&(sy(k,l,p,m,b),b=void 0,p=0),m={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},k.add(a,0,[["enter",m,l]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(u=!0,y=void 0,c=[0,0,0,0],f=[0,a+1,0,0],h&&(h=!1,b={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},k.add(a,0,[["enter",b,l]])),s=_.type==="tableDelimiterRow"?2:b?3:1):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],y=qu(k,l,c,s,void 0,y),c=[0,0,0,0]),f[2]=a)):_.type==="tableCellDivider"&&(u?u=!1:(c[1]!==0&&(f[0]=f[1],y=qu(k,l,c,s,void 0,y)),c=f,f=[c[1],a,0,0])):_.type==="tableHead"?(h=!0,p=a):_.type==="tableRow"||_.type==="tableDelimiterRow"?(p=a,c[1]!==0?(f[0]=f[1],y=qu(k,l,c,s,a,y)):f[1]!==0&&(y=qu(k,l,f,s,a,y)),s=0):s&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(f[3]=a)}for(p!==0&&sy(k,l,p,m,b),k.consume(l.events),a=-1;++a<l.events.length;){const v=l.events[a];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=R_(l.events,a))}return n}function qu(n,l,a,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",h="tableContent";a[0]!==0&&(c.end=Object.assign({},$i(l.events,a[0])),n.add(a[0],0,[["exit",c,l]]));const p=$i(l.events,a[1]);if(c={type:f,start:Object.assign({},p),end:Object.assign({},p)},n.add(a[1],0,[["enter",c,l]]),a[2]!==0){const m=$i(l.events,a[2]),b=$i(l.events,a[3]),y={type:h,start:Object.assign({},m),end:Object.assign({},b)};if(n.add(a[2],0,[["enter",y,l]]),u!==2){const k=l.events[a[2]],v=l.events[a[3]];if(k[1].end=Object.assign({},v[1].end),k[1].type="chunkText",k[1].contentType="text",a[3]>a[2]+1){const _=a[2]+1,z=a[3]-a[2]-1;n.add(_,z,[])}}n.add(a[3]+1,0,[["exit",y,l]])}return s!==void 0&&(c.end=Object.assign({},$i(l.events,s)),n.add(s,0,[["exit",c,l]]),c=void 0),c}function sy(n,l,a,u,s){const c=[],f=$i(l.events,a);s&&(s.end=Object.assign({},f),c.push(["exit",s,l])),u.end=Object.assign({},f),c.push(["exit",u,l]),n.add(a+1,0,c)}function $i(n,l){const a=n[l],u=a[0]==="enter"?"start":"end";return a[1][u]}const H_={name:"tasklistCheck",tokenize:V_};function q_(){return{text:{91:H_}}}function V_(n,l,a){const u=this;return s;function s(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?a(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),c)}function c(p){return tt(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),f):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),f):a(p)}function f(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),h):a(p)}function h(p){return xe(p)?l(p):Me(p)?n.check({tokenize:Y_},l,a)(p):a(p)}}function Y_(n,l,a){return He(n,u,"whitespace");function u(s){return s===null?a(s):l(s)}}function Z_(n){return Vy([m_(),__(),D_(n),L_(),q_()])}const I_={};function Q_(n){const l=this,a=n||I_,u=l.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(Z_(a)),c.push(o_()),f.push(f_(a))}function hs({source:n,className:l=""}){return n.trim()?g.jsx("div",{className:`markdown-body ${l}`.trim(),children:g.jsx(Dw,{remarkPlugins:[Q_],children:n})}):g.jsx("p",{className:"text-sm text-white/40 italic",children:"Empty"})}function zx({execResult:n}){if(!n.resultText)return null;const l=_y(n),a=l.detected;return g.jsxs("section",{className:"space-y-2",children:[a&&g.jsxs("div",{className:"rounded-lg border border-red-400/35 bg-red-500/10 px-3 py-2.5",children:[g.jsx("p",{className:"text-sm font-semibold text-red-300",children:"Blocker — agent could not finish"}),l.summary&&g.jsx("p",{className:"text-sm text-red-200/85 mt-1 leading-snug",children:l.summary}),g.jsx("p",{className:"text-xs text-red-200/60 mt-2",children:"Grant the missing permission or adjust settings, then retry with instructions below."})]}),g.jsx("div",{className:`heading-section ${a?"text-red-300":""}`,children:a?"Blocker details":"Result"}),g.jsx("div",{className:`markdown-body-panel markdown-body-panel--compact ${a?"border-red-400/30 bg-red-950/20":""}`,children:g.jsx(hs,{source:n.resultText})})]})}function G_(n){return n?_y(n).detected:!1}function F_(n){const l=Wn(n,"playbook_patch");if(!l)return null;try{return Wi(l)}catch{return null}}function X_(n){const l=Wn(n,"reflect_status");if(!l)return null;try{return Wi(l)}catch{return null}}function Dx({run:n,artifacts:l,busy:a,act:u}){if(!n.playbookId)return null;const s=F_(l),c=X_(l);if((n.runtime??"claude_code")==="cursor_local")return g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Playbook learning"}),g.jsx("p",{className:"text-sm text-white/45",children:"Playbook learning requires Claude Code runtime (Cursor has no Agent Deck MCP)."})]});if((c==null?void 0:c.status)==="pending"&&!s)return g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Playbook learning"}),g.jsx("p",{className:"text-sm text-white/45",children:"Analyzing for playbook improvements…"})]});if(!s)return(c==null?void 0:c.status)==="failed"?g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Playbook learning"}),g.jsx("p",{className:"text-sm text-white/45",children:c.error??"Reflect step failed"})]}):(c==null?void 0:c.status)==="completed"&&c.error?g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Playbook learning"}),g.jsx("p",{className:"text-sm text-white/45",children:c.error})]}):null;const h=s.status==="proposed",p=s.status==="applied",m=s.status==="dismissed";return g.jsxs("section",{className:"space-y-3",children:[g.jsx("div",{className:"heading-section",children:"Playbook learning"}),s.playbookTitle&&g.jsxs("p",{className:"text-sm text-white/45",children:[s.playbookTitle," ",g.jsxs("span",{className:"text-white/30",children:["(",s.playbookId,")"]})]}),g.jsx("p",{className:"text-sm text-white/55",children:s.rationale}),g.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[g.jsxs("div",{className:"space-y-1",children:[g.jsx("div",{className:"text-xs text-white/40 uppercase tracking-wide",children:"Current"}),g.jsx("textarea",{className:"field-mono min-h-[120px] resize-y text-sm",value:s.previousBody,readOnly:!0})]}),g.jsxs("div",{className:"space-y-1",children:[g.jsx("div",{className:"text-xs text-white/40 uppercase tracking-wide",children:"Proposed"}),g.jsx("textarea",{className:"field-mono min-h-[120px] resize-y text-sm",value:s.proposedBody,readOnly:!0})]})]}),h&&g.jsxs("div",{className:"flex gap-2 flex-wrap",children:[g.jsx("button",{type:"button",disabled:a,onClick:()=>u(()=>Eb(n.id)),className:"btn-gold px-4 py-2 disabled:opacity-40",children:"Apply to playbook"}),g.jsx("button",{type:"button",disabled:a,onClick:()=>u(()=>Cb(n.id)),className:"btn-ghost px-4 py-2 disabled:opacity-40",children:"Dismiss"})]}),p&&g.jsxs("p",{className:"text-sm text-[#92E4DD]/80",children:["Applied to playbook",s.appliedAt?` · ${new Date(s.appliedAt).toLocaleString()}`:""]}),m&&g.jsx("p",{className:"text-sm text-white/40",children:"Dismissed — playbook unchanged"})]})}function K_({run:n}){const[l,a]=G.useState([]),[u,s]=G.useState(null),[c,f]=G.useState(null),[h,p]=G.useState(!1),m=G.useCallback(async()=>{const z=await Pi(n.id);a(z.artifacts),s(z.usageSummary??null),f(z.traceSummary??null)},[n.id]),b=async z=>{p(!0);try{await z(),await m()}catch(q){alert(String(q))}finally{p(!1)}},y=gy(l,"execution_result","execute"),k=Wn(l,"document"),v=k?Wi(k):null,_=l.find(z=>z.kind==="approved_plan");return G.useEffect(()=>{m().catch(console.error)},[m]),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("section",{className:"space-y-1",children:[g.jsx("div",{className:"heading-section",children:"Completed Run (Read-Only)"}),g.jsx("p",{className:"text-body",children:as(n)})]}),_&&g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Approved Plan"}),g.jsx("div",{className:"markdown-body-panel markdown-body-panel--short",children:g.jsx(hs,{source:Iu(_)})})]}),v&&g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Document"}),g.jsx("textarea",{className:"field-mono min-h-[160px] resize-y",value:v.markdown,readOnly:!0})]}),y&&g.jsx(zx,{execResult:y}),g.jsx(Dx,{run:n,artifacts:l,busy:h,act:b}),u&&g.jsx(us,{summary:u}),c&&g.jsx(rs,{trace:c})]})}function J_({run:n,agents:l,onRefresh:a}){const[u,s]=G.useState([]),[c,f]=G.useState(null),[h,p]=G.useState(null),[m,b]=G.useState(""),[y,k]=G.useState(""),[v,_]=G.useState(!1),z=l.find(W=>W.id===n.agentId),q=n.runtime??(z==null?void 0:z.runtime)??"claude_code",T=G.useCallback(async()=>{const W=await Pi(n.id);s(W.artifacts),f(W.usageSummary??null),p(W.traceSummary??null)},[n.id]),V=n.status==="running",U=n.status==="plan_approved";G.useEffect(()=>{T().catch(console.error)},[T]),G.useEffect(()=>{k(n.executeModel??"")},[n.id,n.executeModel]),G.useEffect(()=>{if(!V&&!U)return;const W=setInterval(()=>T().catch(console.error),3e3);return()=>clearInterval(W)},[V,U,T]),G.useEffect(()=>{V&&Db(n.id,"stream_trace").then(b).catch(()=>b(""))},[V,n.id,u.length]);const ie=async W=>{_(!0);try{await W(),await T(),a()}catch(O){alert(String(O))}finally{_(!1)}};return g.jsxs("div",{className:"space-y-4",children:[g.jsxs("section",{className:"space-y-1",children:[g.jsx("div",{className:"heading-section",children:"Agent"}),g.jsx("p",{className:"text-body",children:as(n)}),U&&g.jsx("p",{className:"text-sm text-[#92E4DD]",children:"Approved — waiting for execution slot…"}),V&&g.jsx("p",{className:"text-sm text-[#92E4DD] animate-pulse",children:"Executing…"})]}),U&&g.jsxs(g.Fragment,{children:[g.jsx(Ml,{runtime:q,label:"Execution model",value:y,onChange:k,defaultModelId:z==null?void 0:z.defaultExecuteModel,disabled:v}),g.jsx("button",{type:"button",disabled:v,onClick:()=>ie(()=>Sb(n.id,y||null)),className:"btn-ghost px-3 py-2 w-full",children:"Run now (skip queue wait)"})]}),h&&g.jsx(rs,{trace:h}),c&&g.jsx(us,{summary:c}),m&&g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Log Tail"}),g.jsx("textarea",{className:"field-mono min-h-[140px] resize-y text-sm",value:m,readOnly:!0})]}),(V||U)&&g.jsx("button",{type:"button",disabled:v,onClick:()=>ie(()=>Ef(n.id)),className:"btn-ghost-danger w-full py-2",children:"Cancel run"})]})}function Ox({busy:n,onRemoved:l}){const a=()=>{confirm("Remove this task from Operations? It won't be marked done and can't be brought back here.")&&l()};return g.jsxs("div",{className:"pt-2 border-t border-white/10",children:[g.jsx("button",{type:"button",disabled:n,onClick:a,className:"btn-ghost-danger w-full py-2 disabled:cursor-not-allowed disabled:opacity-60",children:"Remove from Operations"}),g.jsx("p",{className:"text-xs text-white/35 text-center mt-1.5",children:"Dismisses the task — not archived to Done."})]})}function $_({run:n,agents:l,onRefresh:a,onApproved:u,onApprovedAndNext:s}){const[c,f]=G.useState([]),[h,p]=G.useState(null),[m,b]=G.useState(null),[y,k]=G.useState(""),[v,_]=G.useState(""),[z,q]=G.useState(""),[T,V]=G.useState(!1),[U,ie]=G.useState(!1),[W,O]=G.useState(!1),ee=l.find(Y=>Y.id===n.agentId),fe=n.runtime??(ee==null?void 0:ee.runtime)??"claude_code",ce=G.useCallback(async()=>{const Y=await Pi(n.id);f(Y.artifacts),p(Y.usageSummary??null),b(Y.traceSummary??null);const j=Wn(Y.artifacts,"approved_plan"),$=Wn(Y.artifacts,"draft_plan"),re=j??$;re&&k(Iu(re))},[n.id]),M=c.some(Y=>Y.kind==="draft_plan"),K=n.status==="plan_pending"&&!M||U;G.useEffect(()=>{ce().catch(console.error)},[ce]),G.useEffect(()=>{_(n.planModel??""),q(n.executeModel??""),ie(!1),O(!1)},[n.id,n.planModel,n.executeModel]),G.useEffect(()=>{if(!K)return;const Y=setInterval(()=>{ce().catch(console.error),a()},3e3);return()=>clearInterval(Y)},[K,ce,a]);const pe=async()=>{var j;const Y=(j=Wn(c,"draft_plan"))==null?void 0:j.createdAt;ie(!0),V(!0);try{await kb(n.id,v||null);const $=Date.now()+12e4;for(;Date.now()<$;){const re=await Pi(n.id);f(re.artifacts);const Ce=Wn(re.artifacts,"draft_plan");if(Ce&&Ce.createdAt!==Y){k(Iu(Ce));break}await new Promise(E=>setTimeout(E,2e3))}a()}catch($){alert(String($))}finally{ie(!1),V(!1)}},ae=async Y=>{V(!0);try{await Y(),await ce(),a()}catch(j){alert(String(j))}finally{V(!1)}};return g.jsxs("div",{className:"space-y-4",children:[g.jsxs("section",{className:"space-y-1",children:[g.jsx("div",{className:"heading-section",children:"Agent"}),g.jsx("p",{className:"text-body",children:as(n)})]}),g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Plan"}),K&&g.jsx("p",{className:"text-sm text-[#92E4DD] animate-pulse",children:U?"Agent is replanning…":"Agent is writing the plan…"}),g.jsx(Ml,{runtime:fe,label:"Planning model",value:v,onChange:_,defaultModelId:ee==null?void 0:ee.defaultPlanModel,disabled:T||K}),K?g.jsx("div",{className:"field-mono min-h-[min(420px,45vh)] flex items-center justify-center text-sm text-white/40",children:"Plan will appear here when the agent finishes…"}):W||!y.trim()?g.jsx("textarea",{className:"field-mono min-h-[min(420px,45vh)] resize-y leading-relaxed",value:y,onChange:Y=>k(Y.target.value),placeholder:"Edit if needed, then approve"}):g.jsx("div",{className:"markdown-body-panel",children:g.jsx(hs,{source:y})}),M&&!K&&g.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 -mt-1",children:[g.jsxs("div",{className:"flex flex-wrap gap-2",children:[g.jsx("button",{type:"button",disabled:T,onClick:()=>O(Y=>!Y),className:"btn-ghost text-xs px-2 py-1 disabled:opacity-40",children:W?"Show preview":"Edit markdown"}),W&&g.jsx("button",{type:"button",disabled:T||!y.trim(),onClick:()=>ae(()=>lg(n.id,y,!1)),className:"btn-ghost text-xs px-2 py-1 disabled:opacity-40",children:"Save edits"})]}),g.jsx("button",{type:"button",disabled:T,onClick:()=>pe(),className:"btn-ghost text-xs px-2 py-1 disabled:opacity-40",children:"Ask agent to replan"})]}),M&&!K&&g.jsxs("section",{className:"space-y-2 pt-3 border-t border-white/10",children:[g.jsx("div",{className:"heading-section",children:"Your Decision"}),g.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end gap-2",children:[g.jsx("div",{className:"flex-1 min-w-0",children:g.jsx(Ml,{runtime:fe,label:"Execution model",value:z,onChange:q,defaultModelId:ee==null?void 0:ee.defaultExecuteModel,disabled:T})}),g.jsx("button",{type:"button",disabled:T||!y.trim(),onClick:()=>ae(async()=>{await lg(n.id,y,!0,{planModel:v||null,executeModel:z||null}),u==null||u(),s==null||s()}),className:"btn-gold px-5 py-2 disabled:opacity-40 shrink-0 sm:min-w-[11rem]",children:"Approve & next →"})]})]})]}),m&&g.jsx(rs,{trace:m}),h&&g.jsx(us,{summary:h}),g.jsx(Ox,{busy:T,onRemoved:()=>ae(async()=>{await Ef(n.id),s==null||s()})})]})}function P_({run:n,agents:l,onRefresh:a,onRetry:u,onDoneAndNext:s}){var ae;const[c,f]=G.useState([]),[h,p]=G.useState(null),[m,b]=G.useState(null),[y,k]=G.useState(""),[v,_]=G.useState(""),[z,q]=G.useState(!1),[T,V]=G.useState(!1),U=l.find(Y=>Y.id===n.agentId),ie=n.runtime??(U==null?void 0:U.runtime)??"claude_code",W=G.useCallback(async()=>{const Y=await Pi(n.id);f(Y.artifacts),p(Y.usageSummary??null),b(Y.traceSummary??null)},[n.id]),O=gy(c,"execution_result","execute"),ee=Wn(c,"document"),fe=ee?Wi(ee):null,ce=c.find(Y=>Y.kind==="approved_plan"),M=G_(O),Z=!!y.trim();G.useEffect(()=>{W().catch(console.error)},[W]);const K=c.some(Y=>{if(Y.kind!=="reflect_status"||!Y.contentJson)return!1;try{return JSON.parse(Y.contentJson).status==="pending"}catch{return!1}});G.useEffect(()=>{if(!K)return;const Y=setInterval(()=>{W().catch(console.error)},3e3);return()=>clearInterval(Y)},[K,W]),G.useEffect(()=>{V(!1),k(""),_("")},[n.id]),G.useEffect(()=>{var j;if(T||!M)return;const Y=(j=O==null?void 0:O.blocker)==null?void 0:j.summary;Y&&(k(`Please resolve: ${Y}`),V(!0))},[T,M,(ae=O==null?void 0:O.blocker)==null?void 0:ae.summary]);const pe=async Y=>{q(!0);try{await Y(),await W(),a()}catch(j){alert(String(j))}finally{q(!1)}};return g.jsxs("div",{className:"space-y-4",children:[g.jsxs("section",{className:"space-y-1",children:[g.jsx("div",{className:"heading-section",children:"Agent"}),g.jsx("p",{className:"text-body",children:as(n)}),M&&g.jsx("p",{className:"text-sm text-red-400/90",children:"Blocked — resolve the issue below, then retry"}),n.status==="failed"&&!M&&g.jsx("p",{className:"text-sm text-red-400/90",children:"Execution failed — retry with new instructions"})]}),fe&&!M&&g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Deliverable"}),g.jsx("p",{className:"text-sm text-white/45",children:fe.path}),g.jsx("textarea",{className:"field-mono min-h-[160px] resize-y",value:fe.markdown,readOnly:!0})]}),O&&g.jsx(zx,{execResult:O}),ce&&g.jsxs("section",{className:"space-y-2",children:[g.jsx("div",{className:"heading-section",children:"Approved Plan"}),g.jsx("div",{className:"markdown-body-panel markdown-body-panel--short",children:g.jsx(hs,{source:Iu(ce)})})]}),m&&g.jsx(rs,{trace:m}),h&&g.jsx(us,{summary:h}),g.jsx(Dx,{run:n,artifacts:c,busy:z,act:pe}),g.jsxs("section",{className:"space-y-4",children:[g.jsx("div",{className:"heading-section",children:"Your Decision"}),n.status==="review"&&!M&&g.jsxs("div",{className:"space-y-2",children:[g.jsx("p",{className:"text-sm text-white/45",children:"Looks good? Accept and move on."}),g.jsx("button",{type:"button",disabled:z||!!y.trim(),title:y.trim()?"Clear retry instructions below to mark done":void 0,onClick:()=>pe(async()=>{await wb(n.id),s==null||s()}),className:"btn-gold w-full py-2 disabled:opacity-40",children:"Mark done & next →"}),y.trim()&&g.jsx("p",{className:"text-xs text-white/40",children:"Clear the retry field below to accept this result."})]}),n.status==="review"&&!M&&g.jsxs("div",{className:"flex items-center gap-3 text-xs text-white/30 uppercase tracking-wide",children:[g.jsx("span",{className:"h-px flex-1 bg-white/10"}),"or send back",g.jsx("span",{className:"h-px flex-1 bg-white/10"})]}),g.jsxs("div",{className:"space-y-2",children:[(M||n.status==="failed")&&g.jsx("p",{className:"text-sm text-white/45",children:"Add instructions and retry — re-runs execution with the same approved plan."}),g.jsx("label",{htmlFor:`retry-${n.id}`,className:"text-xs text-white/40 uppercase tracking-wide",children:"Retry instructions"}),g.jsx("textarea",{id:`retry-${n.id}`,className:"field-mono min-h-[min(140px,22vh)] resize-y leading-relaxed",placeholder:M?"What to change after fixing the blocker":"What should the agent do differently?",value:y,onChange:Y=>k(Y.target.value)}),g.jsx(Ml,{runtime:ie,label:"Execution model (retry)",value:v,onChange:_,defaultModelId:U==null?void 0:U.defaultExecuteModel,disabled:z}),g.jsx("button",{type:"button",disabled:z||!Z,onClick:()=>pe(async()=>{const Y=await _b(n.id,y,v||null);k(""),u==null||u(Y)}),className:`w-full py-2 ${Z?"btn-retry-ready":"btn-retry"}`,children:"Retry with new instructions"})]}),g.jsx(Ox,{busy:z,onRemoved:()=>pe(async()=>{await Ef(n.id),s==null||s()})})]})]})}function Ff({onClose:n,header:l,children:a,onKeyDown:u}){return G.useEffect(()=>{const s=c=>{if(c.key==="Escape"){c.preventDefault(),n();return}u==null||u(c)};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[n,u]),g.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6",children:[g.jsx("button",{type:"button",className:"absolute inset-0 bg-black/65 backdrop-blur-[2px]",onClick:n,"aria-label":"Close"}),g.jsxs("div",{role:"dialog","aria-modal":"true",className:"relative w-[min(1200px,96vw)] h-[min(92vh,960px)] panel-surface flex flex-col text-[#E8F6F4] rounded-2xl overflow-hidden",children:[g.jsx("div",{className:"p-4 border-b border-white/10 space-y-3 shrink-0",children:l}),g.jsx("div",{className:"flex-1 overflow-y-auto p-5",children:a})]})]})}function W_({run:n,agents:l,onClose:a,onRefresh:u,onApproved:s,onApprovedAndNext:c,onDoneAndNext:f,onRetry:h,queueNav:p}){const[m,b]=G.useState(null),y=xy(n.status),k=Af(n);G.useEffect(()=>{if(n.source!=="linear"){b(null);return}Pi(n.id).then(_=>b(Ob(_.artifacts))).catch(()=>b(null))},[n.id,n.source]);const v=G.useCallback(_=>{p&&(_.key==="ArrowLeft"&&p.index>0&&(_.preventDefault(),p.onPrev()),_.key==="ArrowRight"&&p.index<p.runs.length-1&&(_.preventDefault(),p.onNext()))},[p]);return g.jsxs(Ff,{onClose:a,onKeyDown:v,header:g.jsxs("div",{className:"flex justify-between items-start gap-3",children:[g.jsxs("div",{className:"min-w-0 flex-1 space-y-2",children:[g.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[n.source==="linear"&&m?g.jsx("a",{href:m,target:"_blank",rel:"noreferrer",className:"inline-flex",title:"Open in Linear",children:g.jsxs(ut,{className:"bg-[#5E6AD2]/15 text-[#AEB4FF] border-[#5E6AD2]/35 hover:bg-[#5E6AD2]/25 transition-colors",children:[Gu(n)," ↗"]})}):g.jsx(ut,{className:"bg-[#5E6AD2]/15 text-[#AEB4FF] border-[#5E6AD2]/35",children:Gu(n)}),g.jsx(ut,{className:"bg-white/5 text-white/45 border-white/10 normal-case",children:Cf(n.taskCategory)}),g.jsx(ut,{className:ls(n.runtime),children:li(n.runtime)}),k&&g.jsxs(ut,{className:"bg-[#92E4DD]/10 text-[#92E4DD] border-[#92E4DD]/25 normal-case truncate max-w-[160px]",title:k,children:["◆ ",k]})]}),g.jsx("h2",{className:"font-semibold text-2xl leading-snug pr-2",children:n.title}),g.jsxs("p",{className:"text-sm text-white/45 flex flex-wrap gap-x-2 gap-y-0.5 items-center",children:[g.jsx(ut,{className:y.tone,children:y.label}),g.jsxs("span",{title:new Date(n.updatedAt).toLocaleString(),children:["Updated ",Qu(n.updatedAt)]})]})]}),g.jsxs("div",{className:"flex items-start gap-2 shrink-0",children:[p&&g.jsx(by,{index:p.index,total:p.runs.length,onPrev:p.onPrev,onNext:p.onNext}),g.jsx("button",{type:"button",onClick:a,className:"text-white/60 hover:text-white px-1","aria-label":"Close",children:"✕"})]})]}),children:[(n.status==="plan_pending"||n.status==="queued")&&g.jsx($_,{run:n,agents:l,onRefresh:u,onApproved:s,onApprovedAndNext:c}),(n.status==="plan_approved"||n.status==="running")&&g.jsx(J_,{run:n,agents:l,onRefresh:u}),(n.status==="review"||n.status==="failed")&&g.jsx(P_,{run:n,agents:l,onRefresh:u,onRetry:h,onDoneAndNext:f}),n.status==="done"&&g.jsx(K_,{run:n}),n.status==="cancelled"&&g.jsx("p",{className:"text-sm text-white/50",children:"This task was removed from Operations."})]})}function cy(n,l){const a=n.find(s=>s.runtime===l);if(!a)return{ok:!1,detail:"no agent"};const u=a.issues.find(s=>s.code==="cli_missing"||s.code==="runtime_auth");return u?{ok:!1,detail:u.message}:{ok:!0,detail:"CLI ready"}}function tf({ok:n}){return g.jsx("span",{className:`inline-block w-1.5 h-1.5 rounded-full shrink-0 ${n?"bg-emerald-400":"bg-amber-400"}`,"aria-hidden":!0})}function eE({agents:n,agentDeckOnline:l}){const[a,u]=G.useState(null);G.useEffect(()=>{Nb().then(h=>u(h.mcpUrl)).catch(()=>u(null))},[l]);const s=cy(n,"claude_code"),c=cy(n,"cursor_local"),f=n.flatMap(h=>h.issues).find(h=>h.code==="mcp_not_registered");return g.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-x-4 gap-y-1.5 text-xs text-white/45",children:[g.jsx("span",{className:"uppercase tracking-wider text-white/30",children:"Connections"}),g.jsxs("span",{className:"inline-flex items-center gap-1.5",title:s.detail,children:[g.jsx(tf,{ok:s.ok}),g.jsx("span",{className:s.ok?"text-white/55":"text-amber-200/90",children:"Claude"})]}),g.jsxs("span",{className:"inline-flex items-center gap-1.5",title:c.detail,children:[g.jsx(tf,{ok:c.ok}),g.jsx("span",{className:c.ok?"text-white/55":"text-amber-200/90",children:"Cursor"})]}),g.jsxs("span",{className:"inline-flex items-center gap-1.5",title:(f==null?void 0:f.message)??(a?`MCP ${a}`:"Agent Deck optional"),children:[g.jsx(tf,{ok:l&&!f}),g.jsxs("span",{className:l&&!f?"text-[#92E4DD]/80":f?"text-amber-200/90":"text-white/35",children:["Agent Deck MCP",l?f?" (setup needed)":"":" (optional)"]})]})]})}const Mx="data:image/svg+xml,%3csvg%20viewBox='0%200%20248%20248'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20aria-hidden='true'%3e%3cpath%20d='M52.4285%20162.873L98.7844%20136.879L99.5485%20134.602L98.7844%20133.334H96.4921L88.7237%20132.862L62.2346%20132.153L39.3113%20131.207L17.0249%20130.026L11.4214%20128.844L6.2%20121.873L6.7094%20118.447L11.4214%20115.257L18.171%20115.847L33.0711%20116.911L55.485%20118.447L71.6586%20119.392L95.728%20121.873H99.5485L100.058%20120.337L98.7844%20119.392L97.7656%20118.447L74.5877%20102.732L49.4995%2086.1905L36.3823%2076.62L29.3779%2071.7757L25.8121%2067.2858L24.2839%2057.3608L30.6515%2050.2716L39.3113%2050.8623L41.4763%2051.4531L50.2636%2058.1879L68.9842%2072.7209L93.4357%2090.6804L97.0015%2093.6343L98.4374%2092.6652L98.6571%2091.9801L97.0015%2089.2625L83.757%2065.2772L69.621%2040.8192L63.2534%2030.6579L61.5978%2024.632C60.9565%2022.1032%2060.579%2020.0111%2060.579%2017.4246L67.8381%207.49965L71.9133%206.19995L81.7193%207.49965L85.7946%2011.0443L91.9074%2024.9865L101.714%2046.8451L116.996%2076.62L121.453%2085.4816L123.873%2093.6343L124.764%2096.1155H126.292V94.6976L127.566%2077.9197L129.858%2057.3608L132.15%2030.8942L132.915%2023.4505L136.608%2014.4708L143.994%209.62643L149.725%2012.344L154.437%2019.0788L153.8%2023.4505L150.998%2041.6463L145.522%2070.1215L141.957%2089.2625H143.994L146.414%2086.7813L156.093%2074.0206L172.266%2053.698L179.398%2045.6635L187.803%2036.802L193.152%2032.5484H203.34L210.726%2043.6549L207.415%2055.1159L196.972%2068.3492L188.312%2079.5739L175.896%2096.2095L168.191%20109.585L168.882%20110.689L170.738%20110.53L198.755%20104.504L213.91%20101.787L231.994%2098.7149L240.144%20102.496L241.036%20106.395L237.852%20114.311L218.495%20119.037L195.826%20123.645L162.07%20131.592L161.696%20131.893L162.137%20132.547L177.36%20133.925L183.855%20134.279H199.774L229.447%20136.524L237.215%20141.605L241.8%20147.867L241.036%20152.711L229.065%20158.737L213.019%20154.956L175.45%20145.977L162.587%20142.787H160.805V143.85L171.502%20154.366L191.242%20172.089L215.82%20195.011L217.094%20200.682L213.91%20205.172L210.599%20204.699L188.949%20188.394L180.544%20181.069L161.696%20165.118H160.422V166.772L164.752%20173.152L187.803%20207.771L188.949%20218.405L187.294%20221.832L181.308%20223.959L174.813%20222.777L161.187%20203.754L147.305%20182.486L136.098%20163.345L134.745%20164.2L128.075%20235.42L125.019%20239.082L117.887%20241.8L111.902%20237.31L108.718%20229.984L111.902%20215.452L115.722%20196.547L118.779%20181.541L121.58%20162.873L123.291%20156.636L123.14%20156.219L121.773%20156.449L107.699%20175.752L86.304%20204.699L69.3663%20222.777L65.291%20224.431L58.2867%20220.768L58.9235%20214.27L62.8713%20208.48L86.304%20178.705L100.44%20160.155L109.551%20149.507L109.462%20147.967L108.959%20147.924L46.6977%20188.512L35.6182%20189.93L30.7788%20185.44L31.4156%20178.115L33.7079%20175.752L52.4285%20162.873Z'%20fill='%23D97757'/%3e%3c/svg%3e",Rx="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20aria-hidden='true'%3e%3cpath%20fill='%23EDEDED'%20d='M11.503.131%201.891%205.678a.84.84%200%200%200-.42.726v11.188c0%20.3.162.575.42.724l9.609%205.55a1%201%200%200%200%20.998%200l9.61-5.55a.84.84%200%200%200%20.42-.724V6.404a.84.84%200%200%200-.42-.726L12.497.131a1.01%201.01%200%200%200-.996%200M2.657%206.338h18.55c.263%200%20.43.287.297.515L12.23%2022.918c-.062.107-.229.064-.229-.06V12.335a.59.59%200%200%200-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23'/%3e%3c/svg%3e";function Lx({src:n,className:l}){return g.jsx("span",{className:`inline-flex items-center justify-center rounded-lg bg-white/[0.04] ${l??"h-8 w-8"}`,children:g.jsx("img",{src:n,alt:"",className:"h-[70%] w-[70%] object-contain",draggable:!1})})}function tE({className:n="h-8 w-8"}){return g.jsx(Lx,{src:Mx,className:n})}function nE({className:n="h-8 w-8"}){return g.jsx(Lx,{src:Rx,className:n})}function lE({className:n="h-8 w-8"}){return g.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":!0,children:[g.jsx("rect",{width:"32",height:"32",rx:"8",fill:"white",fillOpacity:"0.06"}),g.jsx("circle",{cx:"16",cy:"13",r:"4.5",stroke:"#92E4DD",strokeWidth:"1.75"}),g.jsx("path",{d:"M8.5 24.5c1.2-3.5 3.8-5.5 7.5-5.5s6.3 2 7.5 5.5",stroke:"#92E4DD",strokeWidth:"1.75",strokeLinecap:"round"})]})}function Bx({runtime:n,className:l="h-3.5 w-3.5 shrink-0"}){return n==="claude_code"?g.jsx("img",{src:Mx,alt:"",className:`object-contain ${l}`,draggable:!1}):n==="cursor_local"?g.jsx("img",{src:Rx,alt:"",className:`object-contain ${l}`,draggable:!1}):null}function Ux({runtime:n,className:l="h-8 w-8 shrink-0"}){return n==="claude_code"?g.jsx(tE,{className:l}):n==="cursor_local"?g.jsx(nE,{className:l}):g.jsx(lE,{className:l})}const Vu=()=>({runtime:"claude_code",deckId:"",playbookId:"",defaultPlanModel:"",defaultExecuteModel:""});function iE({agents:n,agentDeckOnline:l,onRefresh:a}){const[u,s]=G.useState(!1),[c,f]=G.useState(""),[h,p]=G.useState(""),[m,b]=G.useState(Vu()),[y,k]=G.useState(!1),[v,_]=G.useState(null),[z,q]=G.useState(""),[T,V]=G.useState(""),[U,ie]=G.useState(Vu()),W=async Z=>{if(Z.preventDefault(),!(!c.trim()||!h.trim())){k(!0);try{const K={name:c.trim(),runtime:m.runtime,workspaceRoot:h.trim(),deckId:m.deckId||void 0,playbookId:m.playbookId||void 0,defaultPlanModel:m.defaultPlanModel||null,defaultExecuteModel:m.defaultExecuteModel||null};await yb(K),f(""),p(""),b(Vu()),s(!1),a()}catch(K){alert(String(K))}finally{k(!1)}}},O=Z=>{_(Z.id),q(Z.name),V(Z.workspaceRoot??""),ie({runtime:Z.runtime,deckId:Z.deckId??"",playbookId:Z.playbookId??"",defaultPlanModel:Z.defaultPlanModel??"",defaultExecuteModel:Z.defaultExecuteModel??""})},ee=()=>{_(null),ie(Vu())},fe=async Z=>{k(!0);try{const K={name:z.trim(),workspaceRoot:T.trim()||null,runtime:U.runtime,deckId:U.deckId||null,playbookId:U.playbookId||null,defaultPlanModel:U.defaultPlanModel||null,defaultExecuteModel:U.defaultExecuteModel||null};await xb(Z.id,K),ee(),a()}catch(K){alert(String(K))}finally{k(!1)}},ce=async Z=>{if(confirm(`Delete agent "${Z.name}"?`)){k(!0);try{await bb(Z.id),a()}catch(K){alert(String(K))}finally{k(!1)}}},M=n.filter(Z=>!Z.healthy).length;return g.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-4 max-w-6xl mx-auto w-full",children:[g.jsxs("div",{className:"mb-6 flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",children:[g.jsxs("div",{className:"min-w-0",children:[g.jsx("h1",{className:"heading-page",children:"Agents"}),g.jsx("p",{className:"text-sm text-white/50 mt-1",children:"Saved execution profiles — pick one at Inbox instead of configuring each task"}),g.jsxs("p",{className:"text-sm text-white/45 mt-2",children:[n.length," agent",n.length===1?"":"s",M>0&&g.jsxs("span",{className:"text-red-400 ml-2",children:["· ",M," need",M===1?"s":""," attention"]})]})]}),g.jsx(eE,{agents:n,agentDeckOnline:l})]}),g.jsx("div",{className:"space-y-3 mb-6",children:n.map(Z=>g.jsxs("div",{className:"panel flex flex-col sm:flex-row sm:items-start gap-3 justify-between",children:[g.jsxs("div",{className:"flex gap-3 min-w-0 flex-1",children:[g.jsx(Ux,{runtime:Z.runtime}),g.jsxs("div",{className:"space-y-2 min-w-0 flex-1",children:[g.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[g.jsx("span",{className:"text-lg font-semibold text-[#E8F6F4]",children:Z.name}),!Z.healthy&&g.jsx(ut,{className:"bg-red-500/15 text-red-300 border-red-400/30 normal-case",children:"Needs fix"})]}),g.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[g.jsx(ut,{className:"bg-white/5 text-white/55 border-white/15 normal-case",children:li(Z.runtime)}),Z.deckName?g.jsxs(ut,{className:"bg-[#92E4DD]/10 text-[#92E4DD] border-[#92E4DD]/25 normal-case",children:["◆ ",Z.deckName]}):g.jsx(ut,{className:"bg-white/5 text-white/40 border-white/10 normal-case",children:"No deck"}),Z.defaultPlanModel&&g.jsxs(ut,{className:"bg-white/5 text-white/50 border-white/10 normal-case truncate max-w-[10rem]",title:Z.defaultPlanModel,children:["plan: ",Z.defaultPlanModel]}),Z.defaultExecuteModel&&g.jsxs(ut,{className:"bg-white/5 text-white/50 border-white/10 normal-case truncate max-w-[10rem]",title:Z.defaultExecuteModel,children:["exec: ",Z.defaultExecuteModel]})]}),v===Z.id?g.jsxs("div",{className:"space-y-3 pt-2 border-t border-white/10",children:[g.jsxs("label",{className:"block space-y-1",children:[g.jsx("span",{className:"text-xs text-[#A8C4C0] uppercase",children:"Name"}),g.jsx("input",{className:"field text-sm",value:z,onChange:K=>q(K.target.value)})]}),g.jsxs("label",{className:"block space-y-1",children:[g.jsx("span",{className:"text-xs text-[#A8C4C0] uppercase",children:"Workspace"}),g.jsx("input",{className:"field text-sm font-mono",placeholder:"/Users/me/projects/my-app",value:T,onChange:K=>V(K.target.value)})]}),g.jsx(bg,{value:U,onChange:ie,agentDeckOnline:l}),g.jsxs("div",{className:"flex gap-2 pt-1",children:[g.jsx("button",{type:"button",disabled:y||!z.trim()||!T.trim(),onClick:()=>fe(Z),className:"btn-gold text-sm px-3 py-1.5",children:"Save"}),g.jsx("button",{type:"button",onClick:ee,className:"btn-ghost text-sm px-3 py-1.5",children:"Cancel"})]})]}):g.jsx("p",{className:"text-sm text-white/50 font-mono truncate",title:Z.workspaceRoot??void 0,children:Z.workspaceRoot?Z.workspaceRoot:"No workspace configured"}),Z.issues.length>0&&g.jsx("ul",{className:"text-sm text-red-300/90 space-y-1",children:Z.issues.map((K,pe)=>g.jsxs("li",{children:["· ",K.message]},pe))})]})]}),g.jsxs("div",{className:"flex gap-2 shrink-0",children:[v!==Z.id&&g.jsx("button",{type:"button",disabled:y,onClick:()=>O(Z),className:"btn-ghost text-sm px-3 py-1.5",children:"Edit"}),g.jsx("button",{type:"button",disabled:y,onClick:()=>ce(Z),className:"btn-ghost text-sm px-3 py-1.5",children:"Delete"})]})]},Z.id))}),u?g.jsxs("form",{onSubmit:W,className:"panel space-y-3",children:[g.jsx("h2",{className:"heading-panel",children:"New Agent"}),g.jsxs("label",{className:"block space-y-1",children:[g.jsx("span",{className:"text-xs text-[#A8C4C0] uppercase",children:"Name"}),g.jsx("input",{className:"field",placeholder:"e.g. Claude · Work",value:c,onChange:Z=>f(Z.target.value)})]}),g.jsxs("label",{className:"block space-y-1",children:[g.jsx("span",{className:"text-xs text-[#A8C4C0] uppercase",children:"Workspace"}),g.jsx("input",{className:"field font-mono text-sm",placeholder:"/Users/me/projects/my-app",value:h,onChange:Z=>p(Z.target.value)})]}),g.jsx(bg,{value:m,onChange:b,agentDeckOnline:l}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx("button",{type:"submit",disabled:y||!c.trim()||!h.trim(),className:"btn-gold px-4 py-2",children:y?"Saving…":"Create agent"}),g.jsx("button",{type:"button",onClick:()=>s(!1),className:"btn-ghost px-4 py-2",children:"Cancel"})]})]}):g.jsx("button",{type:"button",onClick:()=>s(!0),className:"btn-gold px-4 py-2",children:"Add agent"})]})}function aE({run:n,selected:l,onSelect:a}){const u=Af(n),s=n.updatedAt;return g.jsx("button",{type:"button",onClick:a,className:`task-card w-full text-left rounded-xl border-l-[3px] border-l-emerald-400/60 transition-colors ${l?"glass-plate-selected":""}`,children:g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[7rem_minmax(0,1fr)_8rem_6rem_7rem_5rem] gap-x-4 gap-y-1.5 items-center px-4 py-3",children:[g.jsxs("div",{className:"flex items-center gap-1.5 md:contents",children:[g.jsx(ut,{className:n.source==="linear"?"bg-[#5E6AD2]/15 text-[#AEB4FF] border-[#5E6AD2]/35 shrink-0 w-fit":"bg-white/5 text-white/55 border-white/15 shrink-0 w-fit",children:Gu(n)}),g.jsx("time",{className:"text-xs text-white/40 tabular-nums md:hidden ml-auto shrink-0",title:new Date(s).toLocaleString(),children:Qu(s)})]}),g.jsxs("div",{className:"min-w-0 md:col-start-2",children:[g.jsx("p",{className:"font-semibold text-[#E8F6F4] leading-snug truncate",title:n.title,children:n.title}),n.description&&g.jsx("p",{className:"text-xs text-white/40 truncate mt-0.5",title:n.description,children:n.description})]}),g.jsx("div",{className:"hidden md:flex items-center min-w-0",children:g.jsxs(ut,{className:`${ls(n.runtime)} normal-case truncate max-w-full`,title:n.agentName??li(n.runtime),children:[n.runtime&&g.jsx(Bx,{runtime:n.runtime,className:"h-3 w-3"}),g.jsx("span",{className:"truncate",children:n.agentName??li(n.runtime)})]})}),g.jsx("span",{className:"hidden md:block text-xs text-white/45 uppercase tracking-wide",children:Cf(n.taskCategory)}),g.jsx("span",{className:"hidden md:block text-xs text-[#92E4DD]/80 truncate",title:u??void 0,children:u?`◆ ${u}`:"—"}),g.jsx("time",{className:"hidden md:block text-xs text-white/40 tabular-nums text-right",title:new Date(s).toLocaleString(),children:Qu(s)})]})})}function rE({runs:n,selectedRunId:l,onSelectRun:a}){const[u,s]=G.useState(""),c=G.useMemo(()=>n.filter(h=>h.status==="done").sort((h,p)=>p.updatedAt.localeCompare(h.updatedAt)),[n]),f=G.useMemo(()=>{const h=u.trim().toLowerCase();return h?c.filter(p=>{var m,b,y,k;return p.title.toLowerCase().includes(h)||((m=p.externalLabel)==null?void 0:m.toLowerCase().includes(h))||((b=p.externalId)==null?void 0:b.toLowerCase().includes(h))||p.source.toLowerCase().includes(h)||p.taskCategory.toLowerCase().includes(h)||((y=p.deckName)==null?void 0:y.toLowerCase().includes(h))||((k=p.agentName)==null?void 0:k.toLowerCase().includes(h))}):c},[c,u]);return g.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[g.jsx("div",{className:"px-6 pt-4 pb-3 border-b border-white/[0.06] shrink-0",children:g.jsxs("div",{className:"max-w-6xl mx-auto w-full",children:[g.jsx("h1",{className:"heading-page",children:"Done"}),g.jsx("p",{className:"text-sm text-white/50 mt-1",children:"Completed runs — read-only audit trail"}),g.jsx("input",{className:"field mt-3 max-w-xl",placeholder:"Search title, issue id, category, deck…",value:u,onChange:h=>s(h.target.value)}),g.jsxs("p",{className:"text-sm text-white/45 mt-2",children:[f.length," of ",c.length," completed"]})]})}),g.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-4 min-h-0",children:g.jsxs("div",{className:"max-w-6xl mx-auto w-full space-y-1.5",children:[f.length>0&&g.jsxs("div",{className:"hidden md:grid grid-cols-[7rem_minmax(0,1fr)_8rem_6rem_7rem_5rem] gap-x-4 px-4 pb-1 text-[10px] uppercase tracking-wider text-white/30","aria-hidden":!0,children:[g.jsx("span",{children:"Source"}),g.jsx("span",{children:"Title"}),g.jsx("span",{children:"Agent"}),g.jsx("span",{children:"Type"}),g.jsx("span",{children:"Deck"}),g.jsx("span",{className:"text-right",children:"Done"})]}),f.length===0?g.jsx("p",{className:"text-sm text-white/45 py-8 text-center",children:c.length===0?"No completed runs yet":"No matches for your search"}):f.map(h=>g.jsx(aE,{run:h,selected:l===h.id,onSelect:()=>a(h)},h.id))]})})]})}function uE({candidate:n,selected:l,onSelect:a}){return g.jsx("button",{type:"button",onClick:a,className:`task-card w-full text-left rounded-xl border transition-colors ${l?"glass-plate-selected":""}`,children:g.jsxs("div",{className:"p-3 space-y-1.5",children:[g.jsxs("div",{className:"flex items-center justify-between gap-2",children:[g.jsx(ut,{className:"bg-[#5E6AD2]/15 text-[#AEB4FF] border-[#5E6AD2]/35",children:n.identifier}),n.state&&g.jsx("span",{className:"text-xs text-white/45 uppercase tracking-wide",children:n.state})]}),g.jsx("h3",{className:"text-lg font-semibold text-[#E8F6F4] leading-snug line-clamp-2",children:n.title}),n.description&&g.jsx("p",{className:"text-sm text-white/45 line-clamp-2 leading-relaxed",children:n.description})]})})}function oy({title:n,subtitle:l,onClose:a,children:u}){return g.jsx(Ff,{onClose:a,header:g.jsxs("div",{className:"flex justify-between items-start gap-3",children:[g.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[g.jsx("h2",{className:"font-semibold text-2xl leading-snug",children:n}),l&&g.jsx("p",{className:"text-sm text-white/55 leading-snug",children:l})]}),g.jsx("button",{type:"button",onClick:a,className:"text-white/60 hover:text-white px-1 shrink-0","aria-label":"Close",children:"✕"})]}),children:g.jsx("div",{className:"space-y-4",children:u})})}function Hx({className:n="w-3.5 h-3.5"}){return g.jsx("svg",{viewBox:"0 0 16 16",fill:"currentColor",className:n,"aria-hidden":!0,children:g.jsx("path",{fillRule:"evenodd",d:"M8.982 1.566a1.13 1.13 0 0 0-1.964 0L.165 13.233c-.457.778.091 1.767.982 1.767h13.706c.891 0 1.439-.99.982-1.767L8.982 1.566zM8 5.697a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 5.697zm0 7.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"})})}function qx({agents:n,selectedId:l,onSelect:a,onManage:u,requireHealthy:s}){return n.length===0?g.jsx("p",{className:"text-sm text-white/45",children:"No agents configured."}):g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"flex items-center justify-between gap-2",children:[g.jsx("div",{className:"heading-section normal-case",children:"Agent"}),u&&g.jsx("button",{type:"button",onClick:u,className:"text-sm text-[#92E4DD] hover:underline",children:"Manage"})]}),g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:n.map(c=>{var p;const f=c.id===l,h=s&&!c.healthy;return g.jsx("button",{type:"button",disabled:h,onClick:()=>a(c.id),className:`text-left rounded-xl border p-3 transition-colors glass-plate glass-plate-hover ${h?"opacity-50 cursor-not-allowed":f?"glass-plate-selected":""}`,children:g.jsxs("div",{className:"flex items-start gap-2.5",children:[g.jsx(Ux,{runtime:c.runtime,className:"h-7 w-7 shrink-0 mt-0.5"}),g.jsxs("div",{className:"min-w-0 flex-1",children:[g.jsxs("div",{className:"flex items-start justify-between gap-2",children:[g.jsx("span",{className:"font-semibold text-[#E8F6F4]",children:c.name}),!c.healthy&&g.jsx("span",{title:c.issues.map(m=>m.message).join("; "),children:g.jsx(Hx,{className:"w-3.5 h-3.5 text-red-400 shrink-0"})})]}),g.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-2",children:[g.jsx(ut,{className:ls(c.runtime),children:li(c.runtime)}),c.deckName&&g.jsxs(ut,{className:"bg-[#92E4DD]/10 text-[#92E4DD] border-[#92E4DD]/25 normal-case",children:["◆ ",c.deckName]})]}),!c.healthy&&g.jsx("p",{className:"text-xs text-red-300/90 mt-2 leading-snug",children:(p=c.issues[0])==null?void 0:p.message})]})]})},c.id)})})]})}function sE({issue:n,agents:l,onPromoted:a,onManageAgents:u}){const[s,c]=G.useState(""),[f,h]=G.useState(""),[p,m]=G.useState(!1);G.useEffect(()=>{_f().then(k=>{k.defaultAgentId&&c(k.defaultAgentId)}).catch(()=>{})},[]),G.useEffect(()=>{l.length>0&&s&&!l.some(k=>k.id===s)&&c(l[0].id),l.length>0&&!s&&c(l[0].id)},[l,s]),G.useEffect(()=>{h("")},[n.id,s]);const b=l.find(k=>k.id===s),y=async()=>{if(s){m(!0);try{await gb(n.id,{agentId:s,planModel:f||null}),a()}catch(k){alert(String(k))}finally{m(!1)}}};return g.jsxs(g.Fragment,{children:[n.description&&g.jsx("div",{className:"rounded-xl p-4 glass-plate font-mono text-sm text-white/70 leading-relaxed whitespace-pre-wrap",children:n.description}),n.url&&g.jsx("a",{href:n.url,target:"_blank",rel:"noreferrer",className:"text-sm text-[#AEB4FF] hover:underline inline-block",children:"Open in Linear ↗"}),g.jsx(qx,{agents:l,selectedId:s,onSelect:c,onManage:u,requireHealthy:!0}),b&&g.jsx(Ml,{runtime:b.runtime,label:"Planning model",value:f,onChange:h,defaultModelId:b.defaultPlanModel,disabled:p}),g.jsx("button",{type:"button",disabled:p||!s||!((b==null?void 0:b.healthy)??!1),onClick:y,className:"btn-gold w-full py-2",children:p?"Starting…":"Kick plan & next →"})]})}function cE({issue:n,agents:l,onClose:a,onPromoted:u,onManageAgents:s,queueNav:c}){const f=G.useCallback(h=>{c&&(h.key==="ArrowLeft"&&c.index>0&&(h.preventDefault(),c.onPrev()),h.key==="ArrowRight"&&c.index<c.total-1&&(h.preventDefault(),c.onNext()))},[c]);return g.jsx(Ff,{onClose:a,onKeyDown:f,header:g.jsxs("div",{className:"flex justify-between items-start gap-3",children:[g.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[g.jsx("h2",{className:"font-semibold text-2xl leading-snug",children:n.identifier}),g.jsx("p",{className:"text-sm text-white/55 leading-snug",children:n.title})]}),g.jsxs("div",{className:"flex items-start gap-2 shrink-0",children:[c&&g.jsx(by,{index:c.index,total:c.total,onPrev:c.onPrev,onNext:c.onNext,label:"In Inbox"}),g.jsx("button",{type:"button",onClick:a,className:"text-white/60 hover:text-white px-1","aria-label":"Close",children:"✕"})]})]}),children:g.jsx(sE,{issue:n,agents:l,onPromoted:u,onManageAgents:s})})}function oE({agents:n,onSaved:l}){const[a,u]=G.useState(!1),[s,c]=G.useState(null),[f,h]=G.useState(null),[p,m]=G.useState(null),[b,y]=G.useState(null),[k,v]=G.useState("Todo"),[_,z]=G.useState(""),[q,T]=G.useState(!0),[V,U]=G.useState(""),[ie,W]=G.useState(!0),[O,ee]=G.useState(!1),[fe,ce]=G.useState(null),M=s==null?void 0:s.envOverrides,Z=!!(M!=null&&M.stateFilter||M!=null&&M.teamId),K=async()=>{var j;try{const[$,re]=await Promise.all([Zu(),_f()]);h($.connected),m(((j=$.viewer)==null?void 0:j.name)??null),y($.error??null),c(re),v(re.persisted.stateFilter.join(", ")),z(re.persisted.teamId??""),T(re.persisted.assigneeMe),U(re.persisted.defaultAgentId??""),W(re.persisted.syncEnabled)}catch($){y(String($))}};G.useEffect(()=>{a&&K()},[a]);const pe=async()=>{var j;ee(!0),ce(null);try{const $=await Zu();h($.connected),m(((j=$.viewer)==null?void 0:j.name)??null),y($.error??null),ce($.connected?"Connected":"Not connected")}catch($){y(String($))}finally{ee(!1)}},ae=async()=>{ee(!0),ce(null);try{const j=k.split(",").map(re=>re.trim()).filter(Boolean),$=await pb({stateFilter:j.length>0?j:["Todo"],teamId:_.trim()||null,assigneeMe:q,defaultAgentId:V||null,syncEnabled:ie});c($),ce(Z?"Saved locally — env still overrides filters (see note below)":"Saved"),l==null||l()}catch(j){ce(String(j))}finally{ee(!1)}},Y=f===null?g.jsx("span",{className:"text-xs text-white/45",children:"Checking…"}):f?g.jsxs("span",{className:"text-xs text-emerald-300/90 bg-emerald-500/10 px-2 py-0.5 rounded-full border border-emerald-400/25",children:["Connected",p?` · ${p}`:""]}):g.jsx("span",{className:"text-xs text-amber-200/90 bg-amber-500/10 px-2 py-0.5 rounded-full border border-amber-400/25",children:"Missing API key"});return g.jsxs("div",{className:"rounded-xl glass-plate overflow-hidden",children:[g.jsxs("button",{type:"button",onClick:()=>u(j=>!j),className:"w-full flex items-center justify-between px-3 py-2 text-sm text-white/70 hover:text-white/90",children:[g.jsx("span",{children:"Linear settings"}),g.jsxs("span",{className:"flex items-center gap-2",children:[Y,g.jsx("span",{className:"text-white/35",children:a?"▾":"▸"})]})]}),a&&g.jsxs("div",{className:"border-t border-white/10 px-3 py-3 space-y-3 text-sm",children:[b&&f===!1&&g.jsx("p",{className:"text-red-400/90 text-xs",children:b}),s&&g.jsxs("p",{className:"text-xs text-white/50 rounded-lg bg-black/20 border border-white/10 px-2 py-1.5",children:[g.jsx("span",{className:"text-white/70",children:"Inbox uses:"})," ",s.stateFilter.join(", "),s.assigneeMe?" · assigned to me":"",s.teamId?` · team ${s.teamId.slice(0,8)}…`:""]}),Z&&g.jsxs("p",{className:"text-xs text-amber-200/90 rounded-lg bg-amber-500/10 border border-amber-400/20 px-2 py-1.5",children:[g.jsx("code",{className:"text-amber-100/90",children:"LINEAR_STATE_FILTER"})," or"," ",g.jsx("code",{className:"text-amber-100/90",children:"LINEAR_TEAM_ID"})," in env override saved filters. Remove from ",g.jsx("code",{className:"text-white/55",children:"~/.agent-dealer-dev/.env"})," to use the values below."]}),g.jsxs("p",{className:"text-xs text-white/45",children:["API key stays in ",g.jsx("code",{className:"text-white/60",children:"LINEAR_API_KEY"})," env — not stored here."]}),g.jsxs("label",{className:"block space-y-1",children:[g.jsx("span",{className:"text-xs uppercase tracking-wide text-white/45",children:"State filter (saved)"}),g.jsx("input",{type:"text",value:k,onChange:j=>v(j.target.value),placeholder:"Todo, Backlog",className:"w-full rounded-lg bg-black/20 border border-white/10 px-2 py-1.5 text-[#E8F6F4]"})]}),g.jsxs("label",{className:"block space-y-1",children:[g.jsx("span",{className:"text-xs uppercase tracking-wide text-white/45",children:"Team ID (optional, saved)"}),g.jsx("input",{type:"text",value:_,onChange:j=>z(j.target.value),placeholder:"UUID",className:"w-full rounded-lg bg-black/20 border border-white/10 px-2 py-1.5 text-[#E8F6F4] font-mono text-xs"})]}),g.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[g.jsx("input",{type:"checkbox",checked:q,onChange:j=>T(j.target.checked),className:"rounded"}),g.jsx("span",{children:"Assigned to me"})]}),g.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[g.jsx("input",{type:"checkbox",checked:ie,onChange:j=>W(j.target.checked),className:"rounded"}),g.jsx("span",{children:"Sync status + comments to Linear"})]}),g.jsxs("label",{className:"block space-y-1",children:[g.jsx("span",{className:"text-xs uppercase tracking-wide text-white/45",children:"Default agent"}),g.jsxs("select",{value:V,onChange:j=>U(j.target.value),className:"w-full rounded-lg bg-black/20 border border-white/10 px-2 py-1.5 text-[#E8F6F4]",children:[g.jsx("option",{value:"",children:"None"}),n.map(j=>g.jsxs("option",{value:j.id,children:[j.name,j.healthy?"":" (needs setup)"]},j.id))]})]}),g.jsxs("div",{className:"flex gap-2 pt-1",children:[g.jsx("button",{type:"button",onClick:ae,disabled:O,className:"btn-gold px-3 py-1.5 flex-1",children:O?"Saving…":"Save"}),g.jsx("button",{type:"button",onClick:pe,disabled:O,className:"btn-ghost px-3 py-1.5",children:"Test"})]}),fe&&g.jsx("p",{className:"text-xs text-white/50",children:fe})]})]})}function fE({agents:n,loading:l,candidateCount:a,onRefresh:u,onConfigSaved:s}){var h;const[c,f]=G.useState(null);return G.useEffect(()=>{Zu().then(f).catch(()=>f({connected:!1,error:"Failed to check"}))},[]),g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"rounded-xl p-3 glass-plate space-y-2",children:[g.jsxs("div",{className:"flex items-center justify-between gap-2",children:[g.jsx("span",{className:"text-sm text-white/70",children:"Connection"}),c!=null&&c.connected?g.jsxs("span",{className:"text-xs text-emerald-300/90",children:["Connected · ",(h=c.viewer)==null?void 0:h.name]}):g.jsx("span",{className:"text-xs text-amber-200/90",children:(c==null?void 0:c.error)??"Not connected"})]}),g.jsx("p",{className:"text-sm text-white/45",children:l?"Fetching from Linear…":a===0?"No matching issues — adjust filters below or create issues in Linear.":`${a} issue${a===1?"":"s"} in inbox`}),g.jsx("button",{type:"button",onClick:u,disabled:l,className:"btn-gold w-full py-2",children:l?"Importing…":"Import from Linear"})]}),g.jsx(oE,{agents:n,onSaved:()=>{s(),u()}}),g.jsxs("p",{className:"text-xs text-white/40",children:["Set ",g.jsx("code",{className:"text-white/55",children:"LINEAR_API_KEY"})," in env. Filters are saved locally — not the API key."]})]})}function dE({agents:n,onCreated:l,onManageAgents:a,embedded:u}){const[s,c]=G.useState(""),[f,h]=G.useState(""),[p,m]=G.useState("other"),[b,y]=G.useState(""),[k,v]=G.useState(rv),[_,z]=G.useState(""),[q,T]=G.useState(!1);G.useEffect(()=>{n.length>0&&!n.some(W=>W.id===k)&&v(n[0].id)},[n,k]),G.useEffect(()=>{const W=n.find(O=>O.id===k);if(!W){z("");return}z(W.defaultPlanModel??(W.runtime==="cursor_local"?Pu:""))},[k,n]);const V=n.find(W=>W.id===k),U=!!k&&!!s.trim()&&(!!b.trim()||((V==null?void 0:V.healthy)??!1)),ie=async W=>{if(W.preventDefault(),!(!s.trim()||!k)){T(!0);try{await vb({title:s.trim(),description:f.trim()||void 0,taskCategory:p,repo:b.trim()||void 0,agentId:k,planModel:_||null}),c(""),h(""),l()}catch(O){alert(String(O))}finally{T(!1)}}};return g.jsxs("form",{onSubmit:ie,className:u?"space-y-3":"panel space-y-3",children:[!u&&g.jsx("h2",{className:"heading-panel",children:"Manual Task"}),g.jsx(qx,{agents:n,selectedId:k,onSelect:v,onManage:a}),V&&g.jsx(Ml,{runtime:V.runtime,label:"Planning model",value:_,onChange:z,defaultModelId:V.defaultPlanModel,disabled:q}),g.jsx("input",{className:"field",placeholder:"Title",value:s,onChange:W=>c(W.target.value)}),g.jsx("textarea",{className:"field-mono h-16 resize-y",placeholder:"Description",value:f,onChange:W=>h(W.target.value)}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx("select",{className:"field flex-1",value:p,onChange:W=>m(W.target.value),children:["code","communication","email","research","content","other"].map(W=>g.jsx("option",{value:W,children:W},W))}),g.jsx("input",{className:"field flex-1",placeholder:"Repo override (optional)",value:b,onChange:W=>y(W.target.value)})]}),g.jsx("p",{className:"text-xs text-white/40 -mt-1",children:"Uses agent workspace by default. Override here for a one-off path."}),g.jsx("button",{type:"submit",disabled:q||!U,className:"btn-gold w-full py-2",children:q?"Starting…":"Kick plan"})]})}const hE=["plan_pending","queued"],mE=["review","failed"];function fy(n,l,a){return hE.includes(n.status)?l.awaitingPlanReview:mE.includes(n.status)?l.resultReviewRuns:n.status==="done"&&a==="done"?l.runs.filter(u=>u.status==="done").sort((u,s)=>s.updatedAt.localeCompare(u.updatedAt)):[]}function Xf(n,l){return n.findIndex(a=>a.id===l)}function Sf(n,l){const a=Xf(n,l);if(a<0)return n[0]??null;const u=n.filter(s=>s.id!==l);return u.length===0?null:u[Math.min(a,u.length-1)]??null}function pE({agents:n,onRefresh:l,onGoOperations:a,onManageAgents:u}){const[s,c]=G.useState([]),[f,h]=G.useState(!1),[p,m]=G.useState(null),[b,y]=G.useState(null),[k,v]=G.useState(null),[_,z]=G.useState(null),[q,T]=G.useState(!1),V=G.useCallback(()=>(h(!0),m(null),Promise.all([mb(),_f(),Zu()]).then(([K,pe,ae])=>(c(K),z(pe),T(ae.connected),K)).catch(K=>(m(String(K)),c([]),[])).finally(()=>h(!1))),[]);G.useEffect(()=>{V()},[V]);const U=s.find(K=>K.id===b)??null,ie=b?Xf(s,b):-1,W=G.useCallback(K=>{const pe=s[K];pe&&(y(pe.id),v("issue"))},[s]),O=G.useCallback(async K=>{const pe=Sf(s,K);l();const ae=await V();if(!pe){v(null),y(null);return}const Y=ae.find($=>$.id===pe.id);if(Y){y(Y.id),v("issue");return}const j=Sf(ae,K);j?(y(j.id),v("issue")):(v(null),y(null))},[s,l,V]),ee=()=>{l(),v(null),y(null),V(),a()},fe=()=>{v("import"),V()},ce=()=>{y(null),v("manual")},M=K=>{y(K),v("issue")},Z=()=>{v(null),y(null)};return g.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[g.jsx("div",{className:"px-6 pt-4 pb-3 border-b border-white/[0.06] shrink-0",children:g.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-4 max-w-6xl mx-auto w-full",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"heading-page",children:"Inbox"}),g.jsx("p",{className:"text-sm text-white/50 mt-1",children:"Tasks waiting to kick — import from Linear or add manually"})]}),g.jsxs("div",{className:"flex gap-2 shrink-0",children:[g.jsx("button",{type:"button",onClick:fe,className:"btn-ghost px-4 py-2 text-sm",children:"Linear Import"}),g.jsx("button",{type:"button",onClick:ce,className:"btn-gold px-4 py-2 text-sm",children:"+ Manual Task"})]})]})}),g.jsxs("div",{className:"flex-1 flex flex-col min-h-0 max-w-6xl mx-auto w-full px-6 py-4",children:[p&&g.jsx("p",{className:"text-sm text-red-400/90 mb-3",children:p}),g.jsxs("div",{className:"flex items-center justify-between gap-2 mb-3",children:[g.jsx("p",{className:"text-sm text-white/45",children:f?"Loading…":`${s.length} task${s.length===1?"":"s"}`}),g.jsx("button",{type:"button",onClick:()=>V(),disabled:f,className:"btn-ghost px-2 py-1 text-xs",children:"Refresh"})]}),g.jsx("div",{className:"flex-1 overflow-y-auto space-y-2 min-h-0",children:s.length===0&&!f?g.jsxs("div",{className:"py-12 text-center space-y-3",children:[g.jsx("p",{className:"text-sm text-white/45",children:"No tasks in inbox"}),q&&_&&g.jsxs("p",{className:"text-xs text-white/40 max-w-md mx-auto",children:["Filtering Linear: ",_.stateFilter.join(", "),_.assigneeMe?" · assigned to you":"",_.envOverrides.stateFilter||_.envOverrides.teamId?" · some filters from env":""]}),g.jsxs("div",{className:"flex justify-center gap-2",children:[g.jsx("button",{type:"button",onClick:fe,className:"btn-ghost px-3 py-1.5 text-sm",children:"Linear settings"}),g.jsx("button",{type:"button",onClick:ce,className:"btn-gold px-3 py-1.5 text-sm",children:"+ Manual Task"})]})]}):s.map(K=>g.jsx(uE,{candidate:K,selected:b===K.id&&k==="issue",onSelect:()=>M(K.id)},K.id))})]}),k==="import"&&g.jsx(oy,{title:"Linear Import",subtitle:"Fetch issues assigned to you",onClose:Z,children:g.jsx(fE,{agents:n,loading:f,candidateCount:s.length,onRefresh:V,onConfigSaved:V})}),k==="manual"&&g.jsx(oy,{title:"Manual Task",subtitle:"Add work that isn't in Linear yet",onClose:Z,children:g.jsx(dE,{agents:n,onCreated:ee,onManageAgents:u,embedded:!0})}),k==="issue"&&U&&g.jsx(cE,{issue:U,agents:n,onClose:Z,onPromoted:()=>O(U.id),onManageAgents:u,queueNav:s.length>1?{index:ie,total:s.length,onPrev:()=>W(ie-1),onNext:()=>W(ie+1)}:void 0})]})}const gE=3;function yE(n){const l=Number.isFinite(n)?n:0;return String(Math.min(999,Math.max(0,l))).padStart(gE,"0")}function xE({value:n,label:l}){const a=yE(n).split("");return g.jsx("div",{className:"nixie-housing","aria-hidden":!l,"aria-label":l,children:a.map((u,s)=>g.jsxs("span",{className:"nixie-tube",children:[g.jsx("span",{className:"nixie-tube-ghost",children:"8"}),g.jsx("span",{className:"nixie-tube-digit",children:u})]},`${s}-${u}`))})}function dy({title:n,total:l,open:a,onToggle:u,accent:s,titleAccent:c,openRing:f="ring-[#92E4DD]/25"}){return g.jsx("section",{className:`flex flex-col self-start glass-column rounded-xl overflow-hidden border-t-2 ${s} ${a?`ring-1 ${f}`:""}`,children:g.jsxs("header",{className:"px-2 pt-2 pb-2 border-b border-white/[0.06] shrink-0 w-full",children:[g.jsx("h2",{className:`text-xs font-semibold leading-tight text-center ${c}`,children:n}),g.jsx("button",{type:"button",onClick:u,className:"nixie-stack-toggle w-full rounded mt-1.5 focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#92E4DD]/45","aria-expanded":a,"aria-label":`${l} in ${n.toLowerCase()}. Click to ${a?"close":"show"} tickets.`,children:g.jsx("div",{className:"nixie-display-wrap",children:g.jsx(xE,{value:l})})})]})})}function Kf({run:n,selected:l,onSelect:a,statusOverride:u,timeField:s="updated",compact:c=!1,queueBadge:f,queueActiveLabel:h="Running",queueQueuedLabel:p="In queue",hideStatusBadge:m=!1}){const b=u??n.status,y=xy(b),k=s==="created"?n.createdAt:n.updatedAt,v=Af(n),_=f==="active"||f==="running"?"bg-[#92E4DD]/15 text-[#92E4DD] border-[#92E4DD]/35":f==="queued"||f==="waiting"?"bg-sky-500/15 text-sky-200 border-sky-400/30":null,z=f==="active"||f==="running";return g.jsx("button",{type:"button",onClick:a,className:`task-card w-full text-left rounded-xl border-l-[3px] transition-colors ${y.accent} ${l?"glass-plate-selected":""}`,children:g.jsxs("div",{className:`${c?"p-2.5":"p-3"} space-y-2`,children:[g.jsxs("div",{className:"flex items-center justify-between gap-2 min-w-0",children:[g.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[g.jsx(ut,{className:n.source==="linear"?"bg-[#5E6AD2]/15 text-[#AEB4FF] border-[#5E6AD2]/35 shrink-0":"bg-white/5 text-white/55 border-white/15 shrink-0",children:Gu(n)}),g.jsx(ut,{className:"bg-white/5 text-white/45 border-white/10 shrink-0 normal-case",children:Cf(n.taskCategory)})]}),g.jsx("time",{className:"text-xs text-white/40 tabular-nums shrink-0",title:new Date(k).toLocaleString(),children:Qu(k)})]}),g.jsx("h3",{className:`font-semibold text-[#E8F6F4] leading-snug ${c?"text-base line-clamp-2":"text-lg line-clamp-2"}`,children:n.title}),!c&&n.description&&g.jsx("p",{className:"text-sm text-white/45 line-clamp-2 leading-relaxed",children:n.description}),g.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pt-0.5",children:[g.jsxs(ut,{className:`${ls(n.runtime)} normal-case`,title:n.runtime?li(n.runtime):void 0,children:[n.runtime&&g.jsx(Bx,{runtime:n.runtime}),n.agentName??li(n.runtime)]}),v&&g.jsxs(ut,{className:"bg-[#92E4DD]/10 text-[#92E4DD] border-[#92E4DD]/25 normal-case max-w-[140px] truncate",title:v,children:["◆ ",v]}),f?g.jsxs(ut,{className:`${_} ml-auto`,children:[z&&g.jsx("span",{className:"inline-block w-1.5 h-1.5 rounded-full bg-[#92E4DD] animate-pulse mr-0.5"}),z?h:p]}):m?null:g.jsx(ut,{className:`${y.tone} ml-auto`,title:y.hint,children:y.label})]})]})})}function hy({title:n,items:l,activeBadgeLabel:a,selectedId:u,onSelect:s,onClose:c,accent:f,titleAccent:h,empty:p}){return g.jsxs("section",{className:`absolute inset-0 z-10 flex flex-col min-h-0 glass-column rounded-xl overflow-hidden border-t-2 ${f} bg-[#0A0A07]/95`,children:[g.jsxs("header",{className:"px-4 pt-3 pb-2.5 border-b border-white/[0.06] shrink-0 flex items-center justify-between gap-3",children:[g.jsx("h2",{className:`heading-column ${h}`,children:n}),g.jsx("button",{type:"button",onClick:c,className:"text-xs text-white/45 hover:text-white/70 px-2 py-1 rounded border border-white/10 hover:border-white/20 transition-colors shrink-0",children:"Close"})]}),g.jsx("div",{className:"flex-1 min-h-0 p-2 space-y-2 overflow-y-auto",children:l.length===0?g.jsx("p",{className:"text-sm text-white/45 py-4 text-center",children:p}):l.map(({run:m,queueBadge:b})=>g.jsx(Kf,{run:m,selected:u===m.id,onSelect:()=>s(m),queueBadge:b,queueActiveLabel:a,queueQueuedLabel:"In queue",hideStatusBadge:!0},m.id))})]})}function Vx({title:n,count:l,children:a,empty:u,isEmpty:s,accent:c,titleAccent:f}){return g.jsxs("section",{className:`flex flex-col min-w-0 h-full glass-column rounded-xl overflow-hidden ${c?`border-t-2 ${c}`:"border-t border-white/[0.06]"}`,children:[g.jsx("header",{className:"px-4 pt-3 pb-2.5 border-b border-white/[0.06] shrink-0",children:g.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[g.jsx("h2",{className:`heading-column ${f??""}`,children:n}),l!==void 0&&g.jsx("span",{className:"text-base tabular-nums text-white/45",children:l})]})}),g.jsx("div",{className:"flex-1 min-h-0 p-2 space-y-2 overflow-y-auto",children:s?u:a})]})}function bE({runs:n,selectedId:l,onSelect:a}){return g.jsx(Vx,{title:"Review Plan",count:n.length,accent:"border-t-cyber-violet",titleAccent:"text-cyber-violet-light",isEmpty:n.length===0,empty:g.jsx("p",{className:"text-sm text-white/45 py-4 text-center",children:"No plans ready yet"}),children:n.map(u=>g.jsx(Kf,{run:u,selected:l===u.id,onSelect:()=>a(u),hideStatusBadge:!0},u.id))})}function vE({snapshot:n,selectedRunId:l,onSelectRun:a}){const[u,s]=G.useState(null),c=(n==null?void 0:n.awaitingPlanReview)??[],f=(n==null?void 0:n.planningActiveRuns)??[],h=(n==null?void 0:n.planningQueuedRuns)??[],p=(n==null?void 0:n.runningRuns)??[],m=(n==null?void 0:n.waitingExecution)??[],b=(n==null?void 0:n.resultReviewRuns)??[],y=[...f.map(_=>({run:_,queueBadge:"active"})),...h.map(_=>({run:_,queueBadge:"queued"}))],k=[...p.map(_=>({run:_,queueBadge:"active"})),...m.map(_=>({run:_,queueBadge:"queued"}))],v=_=>{s(z=>z===_?null:_)};return g.jsx("div",{className:"flex-1 min-h-0 px-6 py-4 w-full",children:g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 h-full w-full min-h-0",children:[g.jsxs("div",{className:"grid grid-cols-[8rem_minmax(0,1fr)] gap-3 h-full min-h-0 items-start",children:[g.jsx(dy,{title:"In Planning",total:y.length,open:u==="planning",onToggle:()=>v("planning"),accent:"border-t-cyber-violet/60",titleAccent:"text-cyber-violet-light/80",openRing:"ring-cyber-violet/25"}),g.jsxs("div",{className:"relative min-h-0 h-full w-full self-stretch",children:[g.jsx(bE,{runs:c,selectedId:l,onSelect:a}),u==="planning"&&g.jsx(hy,{title:"In Planning",items:y,activeBadgeLabel:"Planning",selectedId:l,onSelect:a,onClose:()=>s(null),accent:"border-t-cyber-violet",titleAccent:"text-cyber-violet-light",empty:"Nothing planning — promote from Inbox"})]})]}),g.jsxs("div",{className:"grid grid-cols-[8rem_minmax(0,1fr)] gap-3 h-full min-h-0 items-start",children:[g.jsx(dy,{title:"In Progress",total:k.length,open:u==="progress",onToggle:()=>v("progress"),accent:"border-t-[#C4B643]",titleAccent:"text-[#E8DC7A]",openRing:"ring-[#C4B643]/25"}),g.jsxs("div",{className:"relative min-h-0 h-full w-full self-stretch",children:[g.jsx(Vx,{title:"Review Result",count:b.length,accent:"border-t-[#C4B643]",titleAccent:"text-[#E8DC7A]",isEmpty:b.length===0,empty:g.jsx("p",{className:"text-sm text-white/45 py-4 text-center",children:"Nothing awaiting sign-off"}),children:b.map(_=>g.jsx(Kf,{run:_,selected:l===_.id,onSelect:()=>a(_),hideStatusBadge:_.status==="review"},_.id))}),u==="progress"&&g.jsx(hy,{title:"In Progress",items:k,activeBadgeLabel:"Running",selectedId:l,onSelect:a,onClose:()=>s(null),accent:"border-t-[#C4B643]",titleAccent:"text-[#E8DC7A]",empty:"Queue empty — approve a plan to start"})]})]})]})})}function kE(){return g.jsxs("div",{className:"fixed inset-0 pointer-events-none z-0 overflow-hidden","aria-hidden":!0,children:[g.jsx("div",{className:"absolute top-16 left-12",children:g.jsx("div",{className:"ambient-orb ambient-orb-a w-[26rem] h-[26rem] rounded-full bg-cyan-500/10 blur-3xl"})}),g.jsx("div",{className:"absolute bottom-20 right-12",children:g.jsx("div",{className:"ambient-orb ambient-orb-b w-[26rem] h-[26rem] rounded-full bg-pink-500/10 blur-3xl"})}),g.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",children:g.jsx("div",{className:"ambient-orb ambient-orb-c w-[22rem] h-[22rem] rounded-full bg-blue-500/[0.07] blur-3xl"})})]})}function SE({className:n="w-5 h-5"}){return g.jsxs("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:n,"aria-hidden":!0,children:[g.jsx("circle",{cx:"6.75",cy:"6.25",r:"3.25"}),g.jsx("circle",{cx:"13.5",cy:"6.75",r:"2.85",opacity:"0.85"}),g.jsx("path",{d:"M1.75 16v-1.1c0-2.35 1.928-4.25 4.3-4.25 1.16 0 2.21.456 3 1.2.79-.744 1.84-1.2 3-1.2 2.372 0 4.3 1.9 4.3 4.25V16H1.75z"})]})}const wE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAN5UlEQVR4AeydXagdVxmGF7loIKSpN/WHttqKktpAvWkVoRctp4gRtf4QbxRrREEb0wtRGkRovLCmKC1Y641CFGpBCtpIsVfHRvAm5KpIrMGfCCJUa8GmTWl6k+5nznlPvzOZ2Xtmz5o1a/Z8Ie/+vjU/a6351nPe/Xv22bFr185LLq9BbAZ2BP/nFeihAg5WD0X1LkNwsJyCXirgYPVSVu/UwXIGeqmAg9VLWTPsNPGUHKzEBZ/KcA7WVFY68XU6WIkLPpXhHKyprHTi63SwEhc89nDv37cndpdR+nOwopQxfScA9dDRfQGRM4O1ew+Fd3/wVtLB5WANtgTLDQxEwITI6eXoDz8dHvjrmbB2+J6ZDrFpcDlYgy9BswkAETAhcnvWnlfOBsS2G2aOlYNrOVisRsYCImBC5HVTveb5327tWjs8vGs5WFvLkVcCRMCEyO3szu/ea5tFjmMhGjm4loPFSmQkIAImRG6nBlDPvedbAZHbfeQ5uZaDxYpkICACJkRupwREwIR+c3w9fPu9+8LRb/7aHlLkOBaiMbRrOViswoACImBC5HYqVUCt/+jR4pBnz5wPqGiYm1xcy8F6c1GSZkAETIjcDj4PKHvcL574l20WuRyLxpCu5WCxAgkFRMCEyO3QTYHSOTgWUlvx2gyeITpYWo2eIxABEyK3w7UFyp5b5Vr27nAo13Kw7Cr1kAMRMCFyO0QXoNQPjoXUVhzatRwsrUTkCETAhMht9zGAsv3l6FoOll2hCDkQARMit13GBkp941hIbcUhXcvB0ip0jEAETIjcdtcXUHaM3Fwra7Bs4XLNgQiYELmdZwqgNB6OhdRWHMq1HCytQMsIRMCEyO3pKYGy4+bkWg6WXZkGORABEyK3pwwFlOaAYyG1FYdwLQdL1V8QgQiYELk93AJ16dyt4R2PXxNueXm/PSRZnotrOVgLlhyIgAmR28MtULw5/NID58LuP11ZHHLj9bcFVDQS3uBYqDxkatdysMorsNkGImBC5Jubi1AGik8b8ObwiWeOFft1c9cdR5QmjTm4loNVWnIgAiZEbnfXAaVj/vLPPwakNo6F1E4VcSxUHi+la7UDqzzTFWsDE2oLlC2Du9ZGNRysjTrU3sqliOdOnQ7c5dUePNuBY6FZWvzHsVDRSHiDY6HykKlcy8EylT91+l2mtZHy+SZEq+knBdy1gn+jH8DgKPcdfCp85AOPh4uv3symbbIfQ2nyGzA4FlIn9I/UThVxLFQeL4VrTdqxWGyAQhQfGF564XOk24RjITa6a1GFxZokWGWgHjz+sYC4C3vtws0r5Vp1CPTtWpMCqw4onIoFIKJVcC2e2fIMF3FtVjwRQdpW4cLatXScBFiLgLLVS+lad3/2urD+xIcCENg5dMnpC5gQue2Lx49/3/Odyt9LbPLY0fa1KF9psNoApULhWKhP1xJQXzhwbTHs3QeuK2KXGyACJkRu++IB/DeOngl/OPnxcOncLXbXVh7btVYSrGWA2qrwLDk7ewW9j8daV139y/Dhj34vCKjZUMV/QEBFo+UN5wETIrenCyigIseNr/jPznDFf3faw7bymK61UmB1BUoVfnLzPb9YrvX8ha+Fd960P1x19WMa4rLY1rWACJgQue0QiIAJkWsfToyu3HyjXNsVY7rWSoAVCygVmHji5LHQ1bXKd3n0WyfgQHX7tZ1jgAmRazsRiIAJkbOtrFSuNWqw+gBKC9HVtVj08l0effNsjO9gINK2muda9AdMiNyeB0TAhMjtvnKOY6G+XWuUYPUJlF2ILq718u69oQoe+mf7v9/+CdJtAhhkN9IGJkRu9wERMCFyu29ensK1RgVWKqC0KMu4Ft+m95XHfh6+PFMVPLyCj4ALaSxFuRYQARMi134iEAETImdbG+FYqE/XGgVYqYGyi9TGtQQUD4Lpg0VH5FZ677EKPCACJkRuz6MvYELkdl/bvG/XyhqsIYHSQrVxLQHFx2t+9vkvhp/OVPVpThwL4VhIYyn2CZTGwLFQX66VJVg5AKUFIDZ1LY4VUP84dZpm8R1WVe4i1+KxWHFgxQ3n4U6IvOKQTpv6dK2swMoNKK1aU9fS8eVY51rv+9sPggArnwNIfQGlsXAs1IdrZQFWrkBpAYi4FndbiLaVhaPq1WsgQfYccu4OiUOqL9caFKwxAKVFx7V4O+SFHQc2NplbAEFs4nEWzwzJrZ7983nbrM0Bl9e5fvz0rtpjYu7AsVBs1xoErDEBZRcR1+JNXBbfbievcy0eiPMMr+rFUs6T6BOgfvfi7eGhr34/6DGa9vcZ+3CtpGCNFSgtahvX+tSX7iz+zg1QAZf6KMcyUDyTTAkV88GxUEzXSgLW2IGi+NIi19rzytnAg/Kv779w2eesgAjRF9E61BBAMQ8ptmv1CtYqAaUFWORaQAVcOp4oiACJF0WJussbGijmh3AsFMu1egFrFYGi+NI819IxRAsUOdt4dshjqFyAYk5STNeKCtaqA6UFmOdaHANEuBIiZ5t9NT71YyjGbyIcC8VwrShg5QFUk9LFO6bKtYAImBC5Riu/Gq/tOcZYrtUJrCkCJRisawERMCFyHTPGiGOhrq61FFhTBsrCgms99/vXKn/rxR5X9Wq83Z9bHsO1WoHlQG1HANd6+MHPBB4/ofVHfrL9gM1W3avxm7uzCzgW6uJajcByoOavPc/wEN9EA2BVR0/NteaC5UBVITJ/2/ojj1YeMDXXqgTLgapko9FGXkpw1yp9jVFkoBotxCoeNCXXqlu/wrEsUOQ82+HbV3gAV3eib6+vwKRc695DlYUowGIPQBHR3utvI7g6VGAqrrV2+J7KKhVg4UxIRwAZUttj+wpM3bUKsCgbL4oRpaG+o1zjr0KcsmttgYVjIS0ojoXU9ti+AlN2rS2wKJu7FlWIq0m41qxk5cda28DCsdDsuOI/joWKht8sVYGputY2sKicuxZViKsputZlYOFYSKXFsZDaHttXYIqudRlYlM1diyrE1dRcqxIsHAuptDgWUttj+wpMzbUqwaJs7lpUIa6m5Fq1YOFYSKXFsZDaHttXIJ1rtZ9b2zMwHr5yoOobmPl0Ry1YDMTJRMlfjVcllo+r4lqvv+1iePHO/4XX33pxqxgApV8cmQsWjoV0Jo6F1PbYvgJjdy2+8ETfXCioLFBcH1WZCxYHuGtRhbgao2tZoPg0LBWpAortaCFYOBbiYIRjIXLXchXgp5pFqTp77XD155uqjk2xrS1QmtNCsDjQXYsqxFXurrUsUKpSI7BwLKSTcCyktsf2FcjVtboCpUo0AouD3bWowtKqPDEn14oFlC60MVg4FtKJOBZS22P7CuTgWrGBUhUag8UJ7lpUIa6Gcq2+gFJ1WoGFYyGdjGMhtT22r0Bq1+obKFWgFVic5K5FFeIqhWulAkqVaQ0WjoXUAY6F1PbYvgJ9ulZqoHT1rcHiRHctqhBXsV1rKKBUlaXAwrGQOsGxkNpjiLnNMZZrDQ2U6roUWJzsrkUV4qqLa+UClCqyNFg4FlJHOBZS22P7CizjWrkBpateGiw6cNeiCnHV1LVyBUrV6AQWjoXUGY6F1PbYvgKLXCt3oHTFncCiE3ctqhBX81yLvzXd5PNQcWfUvrfOYOFYSEPjWEhtj+0rMM+16I3PcukjwBzLttzUGSwuKIpr0ZFrqwJVrjUGoHQBUcDCsZA6xbGQ2h7bVYDaHbjp/qDfgBkTULrSKGDRmbsWVegmgLrv4FMB0RNf7537XR7zrFI0sHAspEEoElLbY30FqBMwIY7i+1/R0796OOlfWmXsWIoGFhNy16IKzVUHlP0Bbd5bXkdGBYuCIF0ihUNqe9yoADXBnRBbcCdka8f2MSsqWBTCXYsqVGsKQOnK54ClQ9pFfuqQzqKYSO0pRq4fd0JcP+6EbJ3YvkqKDhbFcdeiCiFMEaiNKy/9yRNt7Br5SUTqhwIjtVc9cq24E+JacSdka8L2VVYvjkXBpuhaDhQrv6HewOKnE20Ms3G3QOHVXqXIdeFOiOvCnZC9frZPSb2BRRFX3bUcKFa5Wr2CxU8s0tAsBFJ7rJFrwJ0Q14A7IXutbB+L+phnr2Ax4VVyLQeKFW2m3sHipxhpOiwOUnsMkfniToj54k7IXhfbXW9WoHewGGqsruVAsXrLKQlY/GQjTZEFQ2rnFpkb7oSYG+6E7DWw3VVfgSRgMfwYXOuTdxwJx7/7/63PQwETcqBYwXZKBhaLgzQ9XAGpPWQUUHfdfiQwR2BC5EPOa8xjJwOLIpVd68Ybhv3b09kCRbFGrqRg4QBINcMhlKeMDlT/1U4KFpdTdi0Wme0pxFg8hgJoAOfuDpGnGH9KYyQHi0VEKjKLrLyv6ED1Vdn6fpODxVRSuZYDRbWH0SBg4VhIlxzbtSxQJ04eCwfvf0vwuzxVO00cBCwurQ/XqgLqyWeOMZwrcQUGAwvHQrreLq7VP1CapcemFRgMLCbY1bUcKKqYpwYFC8dCKk1T13KgVLF846BgUZY2ruVAUbFxaHCwcCykclW5lgOl6ownDg4WpapzLQeK6oxTWYCFYyGVENfSWy96HcpfNlB1xhGzAItSlV1rAVCc4sq4AtmAhWMhBypjWlpMLRuwmDNvu/hdHpUYv7ICa/zl9CtQBRwsVcJj1Ao4WFHL6Z2pAg6WKuExagWigRV1Vt7Z6CvgYI1+CfO8AAcrz3UZ/awcrNEvYZ4X4GDluS6jn5WDNfolzPMCHKw81yXjWTWb2hsAAAD//0DhVxwAAAAGSURBVAMA8NLI/5AoLlwAAAAASUVORK5CYII=";function _E({className:n="",size:l=36}){return g.jsx("img",{src:wE,alt:"",width:l,height:l,className:`shrink-0 object-contain ${n}`,"aria-hidden":!0,draggable:!1})}function EE(){var U,ie,W;const[n,l]=G.useState("ops"),[a,u]=G.useState(null),[s,c]=G.useState(null),f=G.useCallback(()=>{ng().then(u).catch(console.error)},[]);G.useEffect(()=>{f();const O=zb(u),ee=setInterval(f,5e3);return()=>{O(),clearInterval(ee)}},[f]),G.useEffect(()=>{if(!s||!a)return;const O=a.runs.find(ee=>ee.id===s.id);O&&c(O)},[a,s==null?void 0:s.id]);const h=((U=a==null?void 0:a.resultReviewRuns)==null?void 0:U.length)??0,p=((ie=a==null?void 0:a.awaitingPlanReview)==null?void 0:ie.length)??0,m=(a==null?void 0:a.runs.filter(O=>O.status==="done").length)??0,b=((W=a==null?void 0:a.agents)==null?void 0:W.length)??0,y=(a==null?void 0:a.agentIssueCount)??0,k=p+h,v=G.useMemo(()=>!s||!a?[]:fy(s,a,n),[s,a,n]),_=s?Xf(v,s.id):-1,z=G.useCallback(O=>{const ee=v[O];ee&&c(ee)},[v]),q=G.useCallback(async O=>{if(!a)return;const ee=fy(a.runs.find(M=>M.id===O)??s,a,n),fe=Sf(ee,O),ce=await ng();if(u(ce),!fe){c(null);return}c(ce.runs.find(M=>M.id===fe.id)??null)},[a,s,n]),T=O=>`px-3 py-2 text-base rounded ${n===O?"bg-[#92E4DD]/20 text-[#92E4DD]":"text-white/60 hover:text-white"}`,V=()=>l("agents");return g.jsxs(g.Fragment,{children:[g.jsx(kE,{}),g.jsxs("div",{className:"relative z-10 min-h-screen flex flex-col",children:[g.jsxs("header",{className:"px-6 py-4 border-b border-white/10 flex flex-wrap gap-4 items-center justify-between glass-header shrink-0",children:[g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsxs("button",{type:"button",onClick:()=>{l("ops"),c(null)},className:"flex items-center gap-3 text-left rounded cursor-pointer hover:opacity-90 transition-opacity focus-visible:outline focus-visible:outline-2 focus-visible:outline-[#92E4DD]/45","aria-label":"AgentDealer — go to Operations",children:[g.jsx(_E,{size:40}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-bold sm:text-2xl",style:{background:"linear-gradient(to right, #C4B643, #D4C760)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"AgentDealer"}),g.jsx("p",{className:"text-sm text-[#92E4DD]",children:"Kick tasks, approve plans, review results"})]})]}),g.jsxs("nav",{className:"flex gap-1",children:[g.jsxs("button",{type:"button",onClick:()=>l("ops"),className:T("ops"),children:["Operations",k>0&&g.jsxs("span",{className:"ml-1.5 inline-flex items-center gap-1 align-middle",children:[p>0&&g.jsx("span",{className:"text-xs leading-none bg-cyber-violet/20 text-cyber-violet-light px-1.5 py-0.5 rounded tabular-nums border border-cyber-violet/35",title:`${p} plan${p===1?"":"s"} ready to review`,children:p}),h>0&&g.jsx("span",{className:"text-xs leading-none bg-[#C4B643]/30 text-[#E8DC7A] px-1.5 py-0.5 rounded tabular-nums",title:`${h} result${h===1?"":"s"} to review`,children:h})]})]}),g.jsx("button",{type:"button",onClick:()=>l("intake"),className:T("intake"),children:"Inbox"}),g.jsxs("button",{type:"button",onClick:()=>l("done"),className:T("done"),children:["Done",m>0&&g.jsx("span",{className:"ml-1 text-xs bg-white/10 px-1.5 py-0.5 rounded",children:m})]})]})]}),g.jsxs("button",{type:"button",onClick:V,className:`${T("agents")} inline-flex items-center gap-1.5 transition-colors`,"aria-label":"Agents",title:"Agents",children:[g.jsx(SE,{className:"w-6 h-6 shrink-0"}),b>0&&g.jsx("span",{className:"text-xs leading-none bg-white/10 text-white/55 px-1.5 py-0.5 rounded tabular-nums border border-white/10",title:`${b} configured agent${b===1?"":"s"}`,children:b}),y>0&&g.jsxs("span",{className:"inline-flex items-center gap-0.5 text-xs leading-none bg-red-500/20 text-red-300 px-1.5 py-0.5 rounded tabular-nums border border-red-400/30",title:`${y} need${y===1?"s":""} attention`,children:[g.jsx(Hx,{className:"w-3 h-3 shrink-0"}),y]})]})]}),g.jsxs("main",{className:"flex-1 flex overflow-hidden",children:[n==="ops"&&g.jsx(vE,{snapshot:a,selectedRunId:(s==null?void 0:s.id)??null,onSelectRun:c}),n==="intake"&&g.jsx(pE,{agents:(a==null?void 0:a.agents)??[],onRefresh:f,onGoOperations:()=>l("ops"),onManageAgents:V}),n==="agents"&&g.jsx(iE,{agents:(a==null?void 0:a.agents)??[],agentDeckOnline:(a==null?void 0:a.agentDeckOnline)??!1,onRefresh:f}),n==="done"&&g.jsx(rE,{runs:(a==null?void 0:a.runs)??[],selectedRunId:(s==null?void 0:s.id)??null,onSelectRun:c})]}),s&&g.jsx(W_,{run:s,agents:(a==null?void 0:a.agents)??[],onClose:()=>c(null),onRefresh:f,onApproved:f,onApprovedAndNext:()=>q(s.id),onDoneAndNext:()=>q(s.id),queueNav:v.length>1?{runs:v,index:_,onPrev:()=>z(_-1),onNext:()=>z(_+1)}:void 0,onRetry:O=>{c(O),l("ops"),f()}})]})]})}function CE(){return typeof document>"u"?Promise.resolve():document.fonts.load('13px "Monaco"').then(()=>{}).catch(()=>{})}CE();fb.createRoot(document.getElementById("root")).render(g.jsx(G.StrictMode,{children:g.jsx(EE,{})}));