pi-central 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,45 @@
1
+ (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function s(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function c(o){if(o.ep)return;o.ep=!0;const f=s(o);fetch(o.href,f)}})();var V0={exports:{}},sc={};var Fm;function Sg(){if(Fm)return sc;Fm=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(c,o,f){var m=null;if(f!==void 0&&(m=""+f),o.key!==void 0&&(m=""+o.key),"key"in o){f={};for(var p in o)p!=="key"&&(f[p]=o[p])}else f=o;return o=f.ref,{$$typeof:t,type:c,key:m,ref:o!==void 0?o:null,props:f}}return sc.Fragment=a,sc.jsx=s,sc.jsxs=s,sc}var Bm;function Ag(){return Bm||(Bm=1,V0.exports=Sg()),V0.exports}var d=Ag(),Z0={exports:{}},be={};var Hm;function Tg(){if(Hm)return be;Hm=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),k=Symbol.for("react.view_transition"),R=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=R&&T[R]||T["@@iterator"],typeof T=="function"?T:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,I={};function ie(T,V,$){this.props=T,this.context=V,this.refs=I,this.updater=$||L}ie.prototype.isReactComponent={},ie.prototype.setState=function(T,V){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,V,"setState")},ie.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function ne(){}ne.prototype=ie.prototype;function Y(T,V,$){this.props=T,this.context=V,this.refs=I,this.updater=$||L}var Q=Y.prototype=new ne;Q.constructor=Y,Z(Q,ie.prototype),Q.isPureReactComponent=!0;var ae=Array.isArray;function W(){}var ce={H:null,A:null,T:null,S:null},$e=Object.prototype.hasOwnProperty;function Be(T,V,$){var re=$.ref;return{$$typeof:t,type:T,key:V,ref:re!==void 0?re:null,props:$}}function te(T,V){return Be(T.type,V,T.props)}function ge(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function Je(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function($){return V[$]})}var nu=/\/+/g;function xe(T,V){return typeof T=="object"&&T!==null&&T.key!=null?Je(""+T.key):V.toString(36)}function J(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(W,W):(T.status="pending",T.then(function(V){T.status==="pending"&&(T.status="fulfilled",T.value=V)},function(V){T.status==="pending"&&(T.status="rejected",T.reason=V)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function oe(T,V,$,re,Ae){var ze=typeof T;(ze==="undefined"||ze==="boolean")&&(T=null);var Me=!1;if(T===null)Me=!0;else switch(ze){case"bigint":case"string":case"number":Me=!0;break;case"object":switch(T.$$typeof){case t:case a:Me=!0;break;case _:return Me=T._init,oe(Me(T._payload),V,$,re,Ae)}}if(Me)return Ae=Ae(T),Me=re===""?"."+xe(T,0):re,ae(Ae)?($="",Me!=null&&($=Me.replace(nu,"$&/")+"/"),oe(Ae,V,$,"",function(Qu){return Qu})):Ae!=null&&(ge(Ae)&&(Ae=te(Ae,$+(Ae.key==null||T&&T.key===Ae.key?"":(""+Ae.key).replace(nu,"$&/")+"/")+Me)),V.push(Ae)),1;Me=0;var ee=re===""?".":re+":";if(ae(T))for(var he=0;he<T.length;he++)re=T[he],ze=ee+xe(re,he),Me+=oe(re,V,$,ze,Ae);else if(he=S(T),typeof he=="function")for(T=he.call(T),he=0;!(re=T.next()).done;)re=re.value,ze=ee+xe(re,he++),Me+=oe(re,V,$,ze,Ae);else if(ze==="object"){if(typeof T.then=="function")return oe(J(T),V,$,re,Ae);throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Me}function de(T,V,$){if(T==null)return T;var re=[],Ae=0;return oe(T,re,"","",function(ze){return V.call($,ze,Ae++)}),re}function ve(T){if(T._status===-1){var V=T._result,$=V();$.then(function(re){(T._status===0||T._status===-1)&&(T._status=1,T._result=re,$.status===void 0&&($.status="fulfilled",$.value=re))},function(re){(T._status===0||T._status===-1)&&(T._status=2,T._result=re,$.status===void 0&&($.status="rejected",$.reason=re))}),T._status===-1&&(T._status=0,T._result=$)}if(T._status===1)return T._result.default;throw T._result}var ye=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function yu(T){var V=ce.T,$={};$.types=V!==null?V.types:null,ce.T=$;try{var re=T(),Ae=ce.S;Ae!==null&&Ae($,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(W,ye)}catch(ze){ye(ze)}finally{V!==null&&$.types!==null&&(V.types=$.types),ce.T=V}}function De(T){var V=ce.T;if(V!==null){var $=V.types;$===null?V.types=[T]:$.indexOf(T)===-1&&$.push(T)}else yu(De.bind(null,T))}var K={map:de,forEach:function(T,V,$){de(T,function(){V.apply(this,arguments)},$)},count:function(T){var V=0;return de(T,function(){V++}),V},toArray:function(T){return de(T,function(V){return V})||[]},only:function(T){if(!ge(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return be.Activity=x,be.Children=K,be.Component=ie,be.Fragment=s,be.Profiler=o,be.PureComponent=Y,be.StrictMode=c,be.Suspense=b,be.ViewTransition=k,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ce,be.__COMPILER_RUNTIME={__proto__:null,c:function(T){return ce.H.useMemoCache(T)}},be.addTransitionType=De,be.cache=function(T){return function(){return T.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(T,V,$){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var re=Z({},T.props),Ae=T.key;if(V!=null)for(ze in V.key!==void 0&&(Ae=""+V.key),V)!$e.call(V,ze)||ze==="key"||ze==="__self"||ze==="__source"||ze==="ref"&&V.ref===void 0||(re[ze]=V[ze]);var ze=arguments.length-2;if(ze===1)re.children=$;else if(1<ze){for(var Me=Array(ze),ee=0;ee<ze;ee++)Me[ee]=arguments[ee+2];re.children=Me}return Be(T.type,Ae,re)},be.createContext=function(T){return T={$$typeof:m,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},be.createElement=function(T,V,$){var re,Ae={},ze=null;if(V!=null)for(re in V.key!==void 0&&(ze=""+V.key),V)$e.call(V,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(Ae[re]=V[re]);var Me=arguments.length-2;if(Me===1)Ae.children=$;else if(1<Me){for(var ee=Array(Me),he=0;he<Me;he++)ee[he]=arguments[he+2];Ae.children=ee}if(T&&T.defaultProps)for(re in Me=T.defaultProps,Me)Ae[re]===void 0&&(Ae[re]=Me[re]);return Be(T,ze,Ae)},be.createRef=function(){return{current:null}},be.forwardRef=function(T){return{$$typeof:p,render:T}},be.isValidElement=ge,be.lazy=function(T){return{$$typeof:_,_payload:{_status:-1,_result:T},_init:ve}},be.memo=function(T,V){return{$$typeof:y,type:T,compare:V===void 0?null:V}},be.startTransition=yu,be.unstable_useCacheRefresh=function(){return ce.H.useCacheRefresh()},be.use=function(T){return ce.H.use(T)},be.useActionState=function(T,V,$){return ce.H.useActionState(T,V,$)},be.useCallback=function(T,V){return ce.H.useCallback(T,V)},be.useContext=function(T){return ce.H.useContext(T)},be.useDebugValue=function(){},be.useDeferredValue=function(T,V){return ce.H.useDeferredValue(T,V)},be.useEffect=function(T,V){return ce.H.useEffect(T,V)},be.useEffectEvent=function(T){return ce.H.useEffectEvent(T)},be.useId=function(){return ce.H.useId()},be.useImperativeHandle=function(T,V,$){return ce.H.useImperativeHandle(T,V,$)},be.useInsertionEffect=function(T,V){return ce.H.useInsertionEffect(T,V)},be.useLayoutEffect=function(T,V){return ce.H.useLayoutEffect(T,V)},be.useMemo=function(T,V){return ce.H.useMemo(T,V)},be.useOptimistic=function(T,V){return ce.H.useOptimistic(T,V)},be.useReducer=function(T,V,$){return ce.H.useReducer(T,V,$)},be.useRef=function(T){return ce.H.useRef(T)},be.useState=function(T){return ce.H.useState(T)},be.useSyncExternalStore=function(T,V,$){return ce.H.useSyncExternalStore(T,V,$)},be.useTransition=function(){return ce.H.useTransition()},be.version="19.3.1",be}var qm;function Cf(){return qm||(qm=1,Z0.exports=Tg()),Z0.exports}var B=Cf(),X0={exports:{}},oc={},I0={exports:{}},Q0={};var Gm;function Cg(){return Gm||(Gm=1,(function(t){function a(J,oe){var de=J.length;J.push(oe);e:for(;0<de;){var ve=de-1>>>1,ye=J[ve];if(0<o(ye,oe))J[ve]=oe,J[de]=ye,de=ve;else break e}}function s(J){return J.length===0?null:J[0]}function c(J){if(J.length===0)return null;var oe=J[0],de=J.pop();if(de!==oe){J[0]=de;e:for(var ve=0,ye=J.length,yu=ye>>>1;ve<yu;){var De=2*(ve+1)-1,K=J[De],T=De+1,V=J[T];if(0>o(K,de))T<ye&&0>o(V,K)?(J[ve]=V,J[T]=de,ve=T):(J[ve]=K,J[De]=de,ve=De);else if(T<ye&&0>o(V,de))J[ve]=V,J[T]=de,ve=T;else break e}}return oe}function o(J,oe){var de=J.sortIndex-oe.sortIndex;return de!==0?de:J.id-oe.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var m=Date,p=m.now();t.unstable_now=function(){return m.now()-p}}var b=[],y=[],_=1,x=null,k=3,R=!1,S=!1,L=!1,Z=!1,I=typeof setTimeout=="function"?setTimeout:null,ie=typeof clearTimeout=="function"?clearTimeout:null,ne=typeof setImmediate<"u"?setImmediate:null;function Y(J){for(var oe=s(y);oe!==null;){if(oe.callback===null)c(y);else if(oe.startTime<=J)c(y),oe.sortIndex=oe.expirationTime,a(b,oe);else break;oe=s(y)}}function Q(J){if(L=!1,Y(J),!S)if(s(b)!==null)S=!0,ae||(ae=!0,ge());else{var oe=s(y);oe!==null&&xe(Q,oe.startTime-J)}}var ae=!1,W=-1,ce=5,$e=-1;function Be(){return Z?!0:!(t.unstable_now()-$e<ce)}function te(){if(Z=!1,ae){var J=t.unstable_now();$e=J;var oe=!0;try{e:{S=!1,L&&(L=!1,ie(W),W=-1),R=!0;var de=k;try{u:{for(Y(J),x=s(b);x!==null&&!(x.expirationTime>J&&Be());){var ve=x.callback;if(typeof ve=="function"){x.callback=null,k=x.priorityLevel;var ye=ve(x.expirationTime<=J);if(J=t.unstable_now(),typeof ye=="function"){x.callback=ye,Y(J),oe=!0;break u}x===s(b)&&c(b),Y(J)}else c(b);x=s(b)}if(x!==null)oe=!0;else{var yu=s(y);yu!==null&&xe(Q,yu.startTime-J),oe=!1}}break e}finally{x=null,k=de,R=!1}oe=void 0}}finally{oe?ge():ae=!1}}}var ge;if(typeof ne=="function")ge=function(){ne(te)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,nu=Je.port2;Je.port1.onmessage=te,ge=function(){nu.postMessage(null)}}else ge=function(){I(te,0)};function xe(J,oe){W=I(function(){J(t.unstable_now())},oe)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(J){J.callback=null},t.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"):ce=0<J?Math.floor(1e3/J):5},t.unstable_getCurrentPriorityLevel=function(){return k},t.unstable_next=function(J){switch(k){case 1:case 2:case 3:var oe=3;break;default:oe=k}var de=k;k=oe;try{return J()}finally{k=de}},t.unstable_requestPaint=function(){Z=!0},t.unstable_runWithPriority=function(J,oe){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var de=k;k=J;try{return oe()}finally{k=de}},t.unstable_scheduleCallback=function(J,oe,de){var ve=t.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?ve+de:ve):de=ve,J){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=de+ye,J={id:_++,callback:oe,priorityLevel:J,startTime:de,expirationTime:ye,sortIndex:-1},de>ve?(J.sortIndex=de,a(y,J),s(b)===null&&J===s(y)&&(L?(ie(W),W=-1):L=!0,xe(Q,de-ve))):(J.sortIndex=ye,a(b,J),S||R||(S=!0,ae||(ae=!0,ge()))),J},t.unstable_shouldYield=Be,t.unstable_wrapCallback=function(J){var oe=k;return function(){var de=k;k=oe;try{return J.apply(this,arguments)}finally{k=de}}}})(Q0)),Q0}var Ym;function Dg(){return Ym||(Ym=1,I0.exports=Cg()),I0.exports}var K0={exports:{}},zu={};var Vm;function Ng(){if(Vm)return zu;Vm=1;var t=Cf();function a(_){var x="https://react.dev/errors/"+_;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var k=2;k<arguments.length;k++)x+="&args[]="+encodeURIComponent(arguments[k])}return"Minified React error #"+_+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal"),f=Symbol.for("react.recoverable"),m=Symbol.for("react.optimistic_key");function p(_,x,k){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:R==null?null:R===m?m:""+R,children:_,containerInfo:x,implementation:k}}var b=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(_,x){if(_==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return zu.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,zu.browser=function(_){return{$$typeof:f,_reason:_}},zu.createPortal=function(_,x){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(a(299));return p(_,x,null,k)},zu.flushSync=function(_){var x=b.T,k=c.p;try{if(b.T=null,c.p=2,_)return _()}finally{b.T=x,c.p=k,c.d.f()}},zu.preconnect=function(_,x){typeof _=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,c.d.C(_,x))},zu.prefetchDNS=function(_){typeof _=="string"&&c.d.D(_)},zu.preinit=function(_,x){if(typeof _=="string"&&x&&typeof x.as=="string"){var k=x.as,R=y(k,x.crossOrigin),S=typeof x.integrity=="string"?x.integrity:void 0,L=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;k==="style"?c.d.S(_,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:R,integrity:S,fetchPriority:L}):k==="script"&&c.d.X(_,{crossOrigin:R,integrity:S,fetchPriority:L,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},zu.preinitModule=function(_,x){if(typeof _=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var k=y(x.as,x.crossOrigin);c.d.M(_,{crossOrigin:k,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}}else x==null&&c.d.M(_)},zu.preload=function(_,x){if(typeof _=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var k=x.as,R=y(k,x.crossOrigin);c.d.L(_,k,{crossOrigin:R,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},zu.preloadModule=function(_,x){if(typeof _=="string")if(x){var k=y(x.as,x.crossOrigin);c.d.m(_,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:k,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}else c.d.m(_)},zu.requestFormReset=function(_){c.d.r(_)},zu.unstable_batchedUpdates=function(_,x){return _(x)},zu.useFormState=function(_,x,k){return b.H.useFormState(_,x,k)},zu.useFormStatus=function(){return b.H.useHostTransitionStatus()},zu.version="19.3.1",zu}var Zm;function kg(){if(Zm)return K0.exports;Zm=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),K0.exports=Ng(),K0.exports}var Xm;function Og(){if(Xm)return oc;Xm=1;var t=Dg(),a=Cf(),s=kg();function c(e){var u="https://react.dev/errors/"+e;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)u+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){for(var u=e,n=u;n&&!n.alternate;)u=n,(u.flags&4098)!==0&&(e=u.return),n=u.return;for(;u.return;)u=u.return;return u.tag===3?e:null}function m(e){if(e.tag===13){var u=e.memoizedState;if(u===null&&(e=e.alternate,e!==null&&(u=e.memoizedState)),u!==null)return u.dehydrated}return null}function p(e){if(e.tag===31){var u=e.memoizedState;if(u===null&&(e=e.alternate,e!==null&&(u=e.memoizedState)),u!==null)return u.dehydrated}return null}function b(e){if(f(e)!==e)throw Error(c(188))}function y(e){var u=e.alternate;if(!u){if(u=f(e),u===null)throw Error(c(188));return u!==e?null:e}for(var n=e,l=u;;){var i=n.return;if(i===null)break;var r=i.alternate;if(r===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return b(i),e;if(r===l)return b(i),u;r=r.sibling}throw Error(c(188))}if(n.return!==l.return)n=i,l=r;else{for(var h=!1,g=i.child;g;){if(g===n){h=!0,n=i,l=r;break}if(g===l){h=!0,l=i,n=r;break}g=g.sibling}if(!h){for(g=r.child;g;){if(g===n){h=!0,n=r,l=i;break}if(g===l){h=!0,l=r,n=i;break}g=g.sibling}if(!h)throw Error(c(189))}}if(n.alternate!==l)throw Error(c(190))}if(n.tag!==3)throw Error(c(188));return n.stateNode.current===n?e:u}function _(e){var u=e.tag;if(u===5||u===26||u===27||u===6)return e;for(e=e.child;e!==null;){if(u=_(e),u!==null)return u;e=e.sibling}return null}function x(e,u,n,l,i,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,l,i,r)||(e.tag!==22||e.memoizedState===null)&&(u||e.tag!==5&&e.tag!==27)&&x(e.child,u,n,l,i,r))return!0;e=e.sibling}return!1}function k(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function R(e){var u=!1;for(e=e.return;e!==null&&(e.tag===4&&(u=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return u}function S(e){var u=[null,null],n=k(e);return n===null||L(u,e,n.child,{foundSelf:!1}),u}function L(e,u,n,l){for(;n!==null;){if(n===u)l.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(l.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&L(e,u,n.child,l))return!0;n=n.sibling}return!1}function Z(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(c(559))}}var I=null,ie=null;function ne(e,u,n){return e===n?!0:e===u?(I=e,!0):!1}function Y(e,u,n){return e===n?(ie=e,!1):e===u?(ie!==null&&(I=e),!0):!1}function Q(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ae(e,u,n){for(var l=0,i=e;i;i=n(i))l++;i=0;for(var r=u;r;r=n(r))i++;for(;0<l-i;)e=n(e),l--;for(;0<i-l;)u=n(u),i--;for(;l--;){if(e===u||u!==null&&e===u.alternate)return e;e=n(e),u=n(u)}return null}var W=Object.assign,ce=Symbol.for("react.element"),$e=Symbol.for("react.transitional.element"),Be=Symbol.for("react.portal"),te=Symbol.for("react.fragment"),ge=Symbol.for("react.strict_mode"),Je=Symbol.for("react.profiler"),nu=Symbol.for("react.consumer"),xe=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),ve=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),yu=Symbol.for("react.activity"),De=Symbol.for("react.legacy_hidden"),K=Symbol.for("react.memo_cache_sentinel"),T=Symbol.for("react.view_transition"),V=Symbol.for("react.recoverable"),$=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Symbol.for("react.client.reference");function ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case te:return"Fragment";case Je:return"Profiler";case ge:return"StrictMode";case oe:return"Suspense";case de:return"SuspenseList";case yu:return"Activity";case T:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Be:return"Portal";case xe:return e.displayName||"Context";case nu:return(e._context.displayName||"Context")+".Consumer";case J:var u=e.render;return e=e.displayName,e||(e=u.displayName||u.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ve:return u=e.displayName||null,u!==null?u:ze(e.type)||"Memo";case ye:u=e._payload,e=e._init;try{return ze(e(u))}catch{}}return null}var Me=Array.isArray,ee=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qu={pending:!1,data:null,method:null,action:null},Nn=[],Nt=-1;function Ne(e){return{current:e}}function eu(e){0>Nt||(e.current=Nn[Nt],Nn[Nt]=null,Nt--)}function M(e,u){Nt++,Nn[Nt]=e.current,e.current=u}var X=Ne(null),ke=Ne(null),ru=Ne(null),El=Ne(null);function lt(e,u){switch(M(ru,u),M(ke,e),M(X,null),u.nodeType){case 9:case 11:e=(e=u.documentElement)&&(e=e.namespaceURI)?Ih(e):0;break;default:if(e=u.tagName,u=u.namespaceURI)u=Ih(u),e=Qh(u,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}eu(X),M(X,e)}function cn(){eu(X),eu(ke),eu(ru)}function Sl(e){var u=e.memoizedState;u!==null&&(Ja._currentValue=u.memoizedState,M(El,e)),u=X.current;var n=Qh(u,e.type);u!==n&&(M(ke,e),M(X,n))}function Al(e){ke.current===e&&(eu(X),eu(ke)),El.current===e&&(eu(El),Ja._currentValue=Qu)}var Tl,pt;function Mu(e){if(Tl===void 0)try{throw Error()}catch(n){var u=n.stack.trim().match(/\n( *(at )?)/);Tl=u&&u[1]||"",pt=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Tl+e+pt}var kt=!1;function Cl(e,u){if(!e||kt)return"";kt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(u){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(P){var D=P}Reflect.construct(e,[],F)}else{try{F.call()}catch(P){D=P}F=!1;try{var z=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),F=!0,new e}finally{F&&(z!==void 0?Object.defineProperty(e.prototype,"props",z):delete e.prototype.props)}}}else{try{throw Error()}catch(P){D=P}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(P){if(P&&D&&typeof P.stack=="string")return[P.stack,D.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),h=r[0],g=r[1];if(h&&g){var E=h.split(`
4
+ `),O=g.split(`
5
+ `);for(i=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;if(l===E.length||i===O.length)for(l=E.length-1,i=O.length-1;1<=l&&0<=i&&E[l]!==O[i];)i--;for(;1<=l&&0<=i;l--,i--)if(E[l]!==O[i]){if(l!==1||i!==1)do if(l--,i--,0>i||E[l]!==O[i]){var w=`
6
+ `+E[l].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=l&&0<=i);break}}}finally{kt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Mu(n):""}function la(e,u){switch(e.tag){case 26:case 27:case 5:return Mu(e.type);case 16:return Mu("Lazy");case 13:return e.child!==u&&u!==null?Mu("Suspense Fallback"):Mu("Suspense");case 19:return Mu("SuspenseList");case 0:case 15:return Cl(e.type,!1);case 11:return Cl(e.type.render,!1);case 1:return Cl(e.type,!0);case 31:return Mu("Activity");case 30:return Mu("ViewTransition");default:return""}}function Dl(e){try{var u="",n=null;do u+=la(e,n),n=e,e=e.return;while(e);return u}catch(l){return`
7
+ Error generating stack: `+l.message+`
8
+ `+l.stack}}var Nl=Object.prototype.hasOwnProperty,Bt=t.unstable_scheduleCallback,kn=t.unstable_cancelCallback,aa=t.unstable_shouldYield,Dc=t.unstable_requestPaint,Lu=t.unstable_now,Nc=t.unstable_getCurrentPriorityLevel,ia=t.unstable_ImmediatePriority,ca=t.unstable_UserBlockingPriority,bt=t.unstable_NormalPriority,On=t.unstable_LowPriority,Ht=t.unstable_IdlePriority,kc=t.log,Oc=t.unstable_setDisableYieldValue,jn=null,Uu=null;function Ot(e){if(typeof kc=="function"&&Oc(e),Uu&&typeof Uu.setStrictMode=="function")try{Uu.setStrictMode(jn,e)}catch{}}var xu=Math.clz32?Math.clz32:zn,ra=Math.log,gt=Math.LN2;function zn(e){return e>>>=0,e===0?32:31-(ra(e)/gt|0)|0}var Rn=256,wn=262144,sa=4194304;function qt(e){var u=e&42;if(u!==0)return u;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Mn(e,u,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,r=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var g=l&134217727;return g!==0?(l=g&~r,l!==0?i=qt(l):(h&=g,h!==0?i=qt(h):n||(n=g&~e,n!==0&&(i=qt(n))))):(g=l&~r,g!==0?i=qt(g):h!==0?i=qt(h):n||(n=l&~e,n!==0&&(i=qt(n)))),i===0?0:u!==0&&u!==i&&(u&r)===0&&(r=i&-i,n=u&-u,r>=n||r===32&&(n&4194048)!==0)?u:i}function Ln(e,u){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&u)===0}function oa(e,u){(u&8)!==0&&(u|=u&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=u;0<n;){var l=31-xu(n),i=1<<l;u|=e[l],n&=~i}return u}function As(e,u){switch(e){case 1:case 2:case 4:case 8:case 64:return u+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 u+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 Un(){var e=sa;return sa<<=1,(sa&62914560)===0&&(sa=4194304),e}function oi(e){for(var u=[],n=0;31>n;n++)u.push(e);return u}function kl(e,u){e.pendingLanes|=u,u!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uu(e,u,n,l,i,r){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,E=e.expirationTimes,O=e.hiddenUpdates;for(n=h&~n;0<n;){var w=31-xu(n),F=1<<w;g[w]=0,E[w]=-1;var D=O[w];if(D!==null)for(O[w]=null,w=0;w<D.length;w++){var z=D[w];z!==null&&(z.lane&=-536870913)}n&=~F}l!==0&&rn(e,l,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(h&~u))}function rn(e,u,n){e.pendingLanes|=u,e.suspendedLanes&=~u;var l=31-xu(u);e.entangledLanes|=u,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function jc(e,u){var n=e.entangledLanes|=u;for(e=e.entanglements;n;){var l=31-xu(n),i=1<<l;i&u|e[l]&u&&(e[l]|=u),n&=~i}}function fi(e,u){var n=u&-u;return n=(n&42)!==0?1:Ol(n),(n&(e.suspendedLanes|u))!==0?0:n}function Ol(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 fa(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function di(){var e=he.p;return e!==0?e:(e=window.event,e===void 0?32:jm(e.type))}function zc(e,u){var n=he.p;try{return he.p=e,u()}finally{he.p=n}}var jt=Math.random().toString(36).slice(2),pu="__reactFiber$"+jt,Fu="__reactProps$"+jt,qu="__reactContainer$"+jt,hi="__reactEvents$"+jt,mi="__reactListeners$"+jt,Fn="__reactHandles$"+jt,pi="__reactResources$"+jt,sn="__reactMarker$"+jt,Bn="__reactLoad$"+jt;function Hn(e){delete e[pu],delete e[Fu],delete e[mi],delete e[Fn]}function on(e){var u;if(u=e[pu])return u;for(var n=e.parentNode;n;){if(u=n[qu]||n[pu]){if(n=u.alternate,u.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[pu])return n;e=fm(e)}return u}e=n,n=e.parentNode}return null}function fn(e){if(e=e[pu]||e[qu]){var u=e.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return e}return null}function jl(e){var u=e.tag;if(u===5||u===26||u===27||u===6)return e.stateNode;throw Error(c(33))}function qn(e){var u=e[pi];return u||(u=e[pi]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function su(e){e[sn]=!0}function Rc(e){e[Bn]=void 0}var bi=new Set,wc={};function Gt(e,u){Yt(e,u),Yt(e+"Capture",u)}function Yt(e,u){for(wc[e]=u,e=0;e<u.length;e++)bi.add(u[e])}var da=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]*$"),ha={},gi={};function ma(e){return Nl.call(gi,e)?!0:Nl.call(ha,e)?!1:da.test(e)?gi[e]=!0:(ha[e]=!0,!1)}var Te=!1;function Gn(){var e=Te;return Te=!1,e}function Bu(e,u,n){if(ma(u))if(n===null)e.removeAttribute(u);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(u);return;case"boolean":var l=u.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(u);return}}e.setAttribute(u,n)}}function pa(e,u,n){if(n===null)e.removeAttribute(u);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(u);return}e.setAttribute(u,n)}}function Ku(e,u,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(u,n,l)}}function Gu(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yi(e){var u=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Yn(e,u,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,u);if(!e.hasOwnProperty(u)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,r=l.set;return Object.defineProperty(e,u,{configurable:!0,get:function(){return i.call(this)},set:function(h){n=""+h,r.call(this,h)}}),Object.defineProperty(e,u,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[u]}}}}function zl(e){if(!e._valueTracker){var u=yi(e)?"checked":"value";e._valueTracker=Yn(e,u,""+e[u])}}function xi(e){if(!e)return!1;var u=e._valueTracker;if(!u)return!0;var n=u.getValue(),l="";return e&&(l=yi(e)?e.checked?"true":"false":e.value),e=l,e!==n?(u.setValue(e),!0):!1}var Ts=/[\n"\\]/g;function Yu(e){return e.replace(Ts,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function vi(e,u,n,l,i,r,h,g){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),u!=null?h==="number"?(u===0&&e.value===""||e.value!=u)&&(e.value=""+Gu(u)):e.value!==""+Gu(u)&&(e.value=""+Gu(u)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),u!=null?h==="number"&&e.value==u?ba(e,Gu(e.value)):ba(e,Gu(u)):n!=null?ba(e,Gu(n)):l!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Gu(g):e.removeAttribute("name")}function Mc(e,u,n,l,i,r,h,g){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),u!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||u!=null)){zl(e);return}n=n!=null?""+Gu(n):"",u=u!=null?""+Gu(u):n,g||u===e.value||(e.value=u),e.defaultValue=u}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=g?e.checked:!!l,e.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),zl(e)}function ba(e,u){e.defaultValue!==""+u&&(e.defaultValue=""+u)}function Vt(e,u,n,l){if(e=e.options,u){u={};for(var i=0;i<n.length;i++)u["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=u.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Gu(n),u=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}u!==null||e[i].disabled||(u=e[i])}u!==null&&(u.selected=!0)}}function Vn(e,u,n){if(u!=null&&(u=""+Gu(u),u!==e.value&&(e.value=u),n==null)){e.defaultValue!==u&&(e.defaultValue=u);return}e.defaultValue=n!=null?""+Gu(n):""}function ga(e,u,n,l){if(u==null){if(l!=null){if(n!=null)throw Error(c(92));if(Me(l)){if(1<l.length)throw Error(c(93));l=l[0]}n=l}n==null&&(n=""),u=n}n=Gu(u),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),zl(e)}function G(e,u){if(u){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=u;return}}e.textContent=u}var v=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 C(e,u,n){var l=u.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="":l?e.setProperty(u,n):typeof n!="number"||n===0||v.has(u)?u==="float"?e.cssFloat=n:e[u]=(""+n).trim():e[u]=n+"px"}function q(e,u,n){if(u!=null&&typeof u!="object")throw Error(c(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||u!=null&&u.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="",Te=!0);for(var i in u)l=u[i],u.hasOwnProperty(i)&&n[i]!==l&&(C(e,i,l),Te=!0)}else for(var r in u)u.hasOwnProperty(r)&&C(e,r,u[r])}function H(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 se=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),me=/^[\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 _e(e){return me.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function He(){}var $u=null;function bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var iu=null,at=null;function Cu(e){var u=fn(e);if(u&&(e=u.stateNode)){var n=e[Fu]||null;e:switch(e=u.stateNode,u.type){case"input":if(vi(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),u=n.name,n.type==="radio"&&u!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Yu(""+u)+'"][type="radio"]'),u=0;u<n.length;u++){var l=n[u];if(l!==e&&l.form===e.form){var i=l[Fu]||null;if(!i)throw Error(c(90));vi(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(u=0;u<n.length;u++)l=n[u],l.form===e.form&&xi(l)}break e;case"textarea":Vn(e,n.value,n.defaultValue);break e;case"select":u=n.value,u!=null&&Vt(e,!!n.multiple,u,!1)}}}var ya=!1;function Gf(e,u,n){if(ya)return e(u,n);ya=!0;try{var l=e(u);return l}finally{if(ya=!1,(iu!==null||at!==null)&&(Mr(),iu&&(u=iu,e=at,at=iu=null,Cu(u),e)))for(u=0;u<e.length;u++)Cu(e[u])}}function _i(e,u){var n=e.stateNode;if(n===null)return null;var l=n[Fu]||null;if(l===null)return null;n=l[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(c(231,u,typeof n));return n}var dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=!1;if(dn)try{var Ei={};Object.defineProperty(Ei,"passive",{get:function(){Cs=!0}}),window.addEventListener("test",Ei,Ei),window.removeEventListener("test",Ei,Ei)}catch{Cs=!1}var Zn=null,Ds=null,Lc=null;function Yf(){if(Lc)return Lc;var e,u=Ds,n=u.length,l,i="value"in Zn?Zn.value:Zn.textContent,r=i.length;for(e=0;e<n&&u[e]===i[e];e++);var h=n-e;for(l=1;l<=h&&u[n-l]===i[r-l];l++);return Lc=i.slice(e,1<l?1-l:void 0)}function Uc(e){var u=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&u===13&&(e=13)):e=u,e===10&&(e=13),32<=e||e===13?e:0}function Fc(){return!0}function Vf(){return!1}function Vu(e){function u(n,l,i,r,h){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=r,this.target=h,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(r):r[g]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Fc:Vf,this.isPropagationStopped=Vf,this}return W(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fc)},persist:function(){},isPersistent:Fc}),u}var Xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bc=Vu(Xn),Si=W({},Xn,{view:0,detail:0}),Qp=Vu(Si),Ns,ks,Ai,Hc=W({},Si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:js,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!==Ai&&(Ai&&e.type==="mousemove"?(Ns=e.screenX-Ai.screenX,ks=e.screenY-Ai.screenY):ks=Ns=0,Ai=e),Ns)},movementY:function(e){return"movementY"in e?e.movementY:ks}}),Zf=Vu(Hc),Kp=W({},Hc,{dataTransfer:0}),$p=Vu(Kp),Jp=W({},Si,{relatedTarget:0}),Os=Vu(Jp),Pp=W({},Xn,{animationName:0,elapsedTime:0,pseudoElement:0}),Wp=Vu(Pp),e3=W({},Xn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),u3=Vu(e3),t3=W({},Xn,{data:0}),Xf=Vu(t3),n3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l3={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"},a3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i3(e){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(e):(e=a3[e])?!!u[e]:!1}function js(){return i3}var c3=W({},Si,{key:function(e){if(e.key){var u=n3[e.key]||e.key;if(u!=="Unidentified")return u}return e.type==="keypress"?(e=Uc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?l3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:js,charCode:function(e){return e.type==="keypress"?Uc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),r3=Vu(c3),s3=W({},Hc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),If=Vu(s3),o3=W({},Xn,{submitter:0}),f3=Vu(o3),d3=W({},Si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:js}),h3=Vu(d3),m3=W({},Xn,{propertyName:0,elapsedTime:0,pseudoElement:0}),p3=Vu(m3),b3=W({},Hc,{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}),g3=Vu(b3),y3=W({},Xn,{newState:0,oldState:0,source:0}),x3=Vu(y3),v3=[9,13,27,32],zs=dn&&"CompositionEvent"in window,Ti=null;dn&&"documentMode"in document&&(Ti=document.documentMode);var _3=dn&&"TextEvent"in window&&!Ti,Qf=dn&&(!zs||Ti&&8<Ti&&11>=Ti),Kf=" ",$f=!1;function Jf(e,u){switch(e){case"keyup":return v3.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xa=!1;function E3(e,u){switch(e){case"compositionend":return Pf(u);case"keypress":return u.which!==32?null:($f=!0,Kf);case"textInput":return e=u.data,e===Kf&&$f?null:e;default:return null}}function S3(e,u){if(xa)return e==="compositionend"||!zs&&Jf(e,u)?(e=Yf(),Lc=Ds=Zn=null,xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return Qf&&u.locale!=="ko"?null:u.data;default:return null}}var A3={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 Wf(e){var u=e&&e.nodeName&&e.nodeName.toLowerCase();return u==="input"?!!A3[e.type]:u==="textarea"}function ed(e,u,n,l){iu?at?at.push(l):at=[l]:iu=l,u=qr(u,"onChange"),0<u.length&&(n=new Bc("onChange","change",null,n,l),e.push({event:n,listeners:u}))}var Ci=null,Di=null;function T3(e){qh(e,0)}function qc(e){var u=jl(e);if(xi(u))return e}function ud(e,u){if(e==="change")return u}var td=!1;if(dn){var Rs;if(dn){var ws="oninput"in document;if(!ws){var nd=document.createElement("div");nd.setAttribute("oninput","return;"),ws=typeof nd.oninput=="function"}Rs=ws}else Rs=!1;td=Rs&&(!document.documentMode||9<document.documentMode)}function ld(){Ci&&(Ci.detachEvent("onpropertychange",ad),Di=Ci=null)}function ad(e){if(e.propertyName==="value"&&qc(Di)){var u=[];ed(u,Di,e,bu(e)),Gf(T3,u)}}function C3(e,u,n){e==="focusin"?(ld(),Ci=u,Di=n,Ci.attachEvent("onpropertychange",ad)):e==="focusout"&&ld()}function D3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qc(Di)}function N3(e,u){if(e==="click")return qc(u)}function k3(e,u){if(e==="input"||e==="change")return qc(u)}function O3(e,u){return e===u&&(e!==0||1/e===1/u)||e!==e&&u!==u}var it=typeof Object.is=="function"?Object.is:O3;function Ni(e,u){if(it(e,u))return!0;if(typeof e!="object"||e===null||typeof u!="object"||u===null)return!1;var n=Object.keys(e),l=Object.keys(u);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!Nl.call(u,i)||!it(e[i],u[i]))return!1}return!0}function Ms(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}}function id(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cd(e,u){var n=id(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=u&&l>=u)return{node:n,offset:u-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=id(n)}}function rd(e,u){return e&&u?e===u?!0:e&&e.nodeType===3?!1:u&&u.nodeType===3?rd(e,u.parentNode):"contains"in e?e.contains(u):e.compareDocumentPosition?!!(e.compareDocumentPosition(u)&16):!1:!1}function sd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var u=Ms(e.document);u instanceof e.HTMLIFrameElement;){try{var n=typeof u.contentWindow.location.href=="string"}catch{n=!1}if(n)e=u.contentWindow;else break;u=Ms(e.document)}return u}function Ls(e){var u=e&&e.nodeName&&e.nodeName.toLowerCase();return u&&(u==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||u==="textarea"||e.contentEditable==="true")}var j3=dn&&"documentMode"in document&&11>=document.documentMode,va=null,Us=null,ki=null,Fs=!1;function od(e,u,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fs||va==null||va!==Ms(l)||(l=va,"selectionStart"in l&&Ls(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ki&&Ni(ki,l)||(ki=l,l=qr(Us,"onSelect"),0<l.length&&(u=new Bc("onSelect","select",null,u,n),e.push({event:u,listeners:l}),u.target=va)))}function Rl(e,u){var n={};return n[e.toLowerCase()]=u.toLowerCase(),n["Webkit"+e]="webkit"+u,n["Moz"+e]="moz"+u,n}var _a={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},Bs={},fd={};dn&&(fd=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);function wl(e){if(Bs[e])return Bs[e];if(!_a[e])return e;var u=_a[e],n;for(n in u)if(u.hasOwnProperty(n)&&n in fd)return Bs[e]=u[n];return e}var dd=wl("animationend"),hd=wl("animationiteration"),md=wl("animationstart"),z3=wl("transitionrun"),R3=wl("transitionstart"),w3=wl("transitioncancel"),pd=wl("transitionend"),bd=new Map,Hs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hs.push("scrollEnd");function zt(e,u){bd.set(e,u),Gt(u,[e])}var M3=0;function hn(e,u){if(e.name!=null&&e.name!=="auto")return e.name;if(u.autoName!==null)return u.autoName;e=Lt.identifierPrefix;var n=M3++;return e="_"+e+"t_"+n.toString(32)+"_",u.autoName=e}function gd(e){if(e==null||typeof e=="string")return e;var u=null,n=qa;if(n!==null)for(var l=0;l<n.length;l++){var i=e[n[l]];if(i!=null){if(i==="none")return"none";u=u==null?i:u+(" "+i)}}return u??e.default}function mn(e,u){return e=gd(e),u=gd(u),u==null?e==="auto"?null:e:u==="auto"?null:u}var Gc=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=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(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},yt=[],Ea=0,qs=0;function Yc(){for(var e=Ea,u=qs=Ea=0;u<e;){var n=yt[u];yt[u++]=null;var l=yt[u];yt[u++]=null;var i=yt[u];yt[u++]=null;var r=yt[u];if(yt[u++]=null,l!==null&&i!==null){var h=l.pending;h===null?i.next=i:(i.next=h.next,h.next=i),l.pending=i}r!==0&&yd(n,i,r)}}function Vc(e,u,n,l){yt[Ea++]=e,yt[Ea++]=u,yt[Ea++]=n,yt[Ea++]=l,qs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Gs(e,u,n,l){return Vc(e,u,n,l),Zc(e)}function Ml(e,u){return Vc(e,null,null,u),Zc(e)}function yd(e,u,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,r=e.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&u!==null&&(i=31-xu(n),e=r.hiddenUpdates,l=e[i],l===null?e[i]=[u]:l.push(u),u.lane=n|536870912),r):null}function Zc(e){if(50<Ji)throw Ji=0,wr=null,Error(c(185));for(var u=e.return;u!==null;)e=u,u=e.return;return e.tag===3?e.stateNode:null}var Sa={};function L3(e,u,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ju(e,u,n,l){return new L3(e,u,n,l)}function Ys(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pn(e,u){var n=e.alternate;return n===null?(n=Ju(e.tag,u,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=u,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,u=e.dependencies,n.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function xd(e,u){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=u,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,u=n.dependencies,e.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),e}function Xc(e,u,n,l,i,r){var h=0;if(l=e,typeof l=="function")Ys(l)&&(h=1);else if(typeof l=="string")h=og(e,n,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(l){case yu:return e=Ju(31,n,u,i),e.elementType=yu,e.lanes=r,e;case te:return Ll(n.children,i,r,u);case ge:h=8,i|=24;break;case Je:return e=Ju(12,n,u,i|2),e.elementType=Je,e.lanes=r,e;case oe:return e=Ju(13,n,u,i),e.elementType=oe,e.lanes=r,e;case de:return e=Ju(19,n,u,i),e.elementType=de,e.lanes=r,e;case De:case T:return e=i|32,e=Ju(30,n,u,e),e.elementType=T,e.lanes=r,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case xe:h=10;break e;case nu:h=9;break e;case J:h=11;break e;case ve:h=14;break e;case ye:h=16,l=null;break e}h=29,n=Error(c(130,e===null?"null":typeof e,"")),l=null}return u=Ju(h,n,u,i),u.elementType=e,u.type=l,u.lanes=r,u}function Ll(e,u,n,l){return e=Ju(7,e,l,u),e.lanes=n,e}function Vs(e,u,n){return e=Ju(6,e,null,u),e.lanes=n,e}function vd(e){var u=Ju(18,null,null,0);return u.stateNode=e,u}function Zs(e,u,n){return u=Ju(4,e.children!==null?e.children:[],e.key,u),u.lanes=n,u.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},u}var _d=new WeakMap;function xt(e,u){if(typeof e=="object"&&e!==null){var n=_d.get(e);return n!==void 0?n:(u={value:e,source:u,stack:Dl(u)},_d.set(e,u),u)}return{value:e,source:u,stack:Dl(u)}}var Aa=[],Ta=0,Ic=null,Oi=0,vt=[],_t=0,In=null,Zt=1,Xt="";function bn(e,u){Aa[Ta++]=Oi,Aa[Ta++]=Ic,Ic=e,Oi=u}function Ed(e,u,n){vt[_t++]=Zt,vt[_t++]=Xt,vt[_t++]=In,In=e;var l=Zt;e=Xt;var i=32-xu(l)-1;l&=~(1<<i),n+=1;var r=32-xu(u)+i;if(30<r){var h=i-i%5;r=(l&(1<<h)-1).toString(32),l>>=h,i-=h,Zt=1<<32-xu(u)+i|n<<i|l,Xt=r+e}else Zt=1<<r|n<<i|l,Xt=e}function Qc(e){e.return!==null&&(bn(e,1),Ed(e,1,0))}function Xs(e){for(;e===Ic;)Ic=Aa[--Ta],Aa[Ta]=null,Oi=Aa[--Ta],Aa[Ta]=null;for(;e===In;)In=vt[--_t],vt[_t]=null,Xt=vt[--_t],vt[_t]=null,Zt=vt[--_t],vt[_t]=null}function Sd(e,u){vt[_t++]=Zt,vt[_t++]=Xt,vt[_t++]=In,Zt=u.id,Xt=u.overflow,In=e}var vu=null,Ie=null,Ce=!1,Qn=null,Et=!1,Is=Error(c(519));function Kn(e){var u=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ji(xt(u,e)),Is}function Ad(e){var u=e.stateNode,n=e.type,l=e.memoizedProps;switch(u[pu]=e,u[Fu]=l,n){case"dialog":je("cancel",u),je("close",u);break;case"iframe":case"object":case"embed":je("load",u);break;case"video":case"audio":for(n=0;n<Wi.length;n++)je(Wi[n],u);break;case"source":je("error",u);break;case"img":case"image":case"link":je("error",u),je("load",u);break;case"details":je("toggle",u);break;case"input":je("invalid",u),Mc(u,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":je("invalid",u);break;case"textarea":je("invalid",u),ga(u,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||u.textContent===""+n||l.suppressHydrationWarning===!0||Zh(u.textContent,n)?(l.popover!=null&&(je("beforetoggle",u),je("toggle",u)),l.onScroll!=null&&je("scroll",u),l.onScrollEnd!=null&&je("scrollend",u),l.onClick!=null&&(u.onclick=He),u=!0):u=!1,u||Kn(e,!0)}function Kc(e){for(vu=e.return;vu;)switch(vu.tag){case 5:case 31:case 13:Et=!1;return;case 27:case 3:Et=!0;return;default:vu=vu.return}}function Ca(e){if(e!==vu)return!1;if(!Ce)return Kc(e),Ce=!0,!1;var u=e.tag,n;if((n=u!==3&&u!==27)&&((n=u===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||A0(e.type,e.memoizedProps)),n=!n),n&&Ie&&Kn(e),Kc(e),u===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ie=om(e)}else if(u===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ie=om(e)}else u===27?(u=Ie,fl(e.type)?(e=R0,R0=null,Ie=e):Ie=u):Ie=vu?At(e.stateNode.nextSibling):null;return!0}function Ul(){Ie=vu=null,Ce=!1}function Qs(){var e=Qn;return e!==null&&(et===null?et=e:et.push.apply(et,e),Qn=null),e}function ji(e){Qn===null?Qn=[e]:Qn.push(e)}var Ks=Ne(null),Fl=null,gn=null;function $n(e,u,n){M(Ks,u._currentValue),u._currentValue=n}function yn(e){e._currentValue=Ks.current,eu(Ks)}function $c(e,u,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&u)!==u?(e.childLanes|=u,l!==null&&(l.childLanes|=u)):l!==null&&(l.childLanes&u)!==u&&(l.childLanes|=u),e===n)break;e=e.return}}function $s(e,u,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var h=i.child;r=r.firstContext;e:for(;r!==null;){var g=r;r=i;for(var E=0;E<u.length;E++)if(g.context===u[E]){r.lanes|=n,g=r.alternate,g!==null&&(g.lanes|=n),$c(r.return,n,e),l||(h=null);break e}r=g.next}}else if(i.tag===18){if(h=i.return,h===null)throw Error(c(341));h.lanes|=n,r=h.alternate,r!==null&&(r.lanes|=n),$c(h,n,e),h=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,h=i.alternate,h!==null&&(h.lanes|=n),$c(i.return,n,e),h=i.child,h=h!==null?h.sibling:null):h=i.child;if(h!==null)h.return=i;else for(h=i;h!==null;){if(h===e){h=null;break}if(i=h.sibling,i!==null){i.return=h.return,h=i;break}h=h.return}i=h}}function Bl(e,u,n,l){e=null;for(var i=u,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var h=i.alternate;if(h===null)throw Error(c(387));if(h=h.memoizedProps,h!==null){var g=i.type;it(i.pendingProps.value,h.value)||(e!==null?e.push(g):e=[g])}}else if(i===El.current){if(h=i.alternate,h===null)throw Error(c(387));h.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Ja):e=[Ja])}i=i.return}return e!==null&&$s(u,e,n,l),u.flags|=262144,e!==null}function Jc(e){for(e=e.firstContext;e!==null;){if(!it(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hl(e){Fl=e,gn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Du(e){return Td(Fl,e)}function Pc(e,u){return Fl===null&&Hl(e),Td(e,u)}function Td(e,u){var n=u._currentValue;if(u={context:u,memoizedValue:n,next:null},gn===null){if(e===null)throw Error(c(308));gn=u,e.dependencies={lanes:0,firstContext:u},e.flags|=524288}else gn=gn.next=u;return n}var U3=typeof AbortController<"u"?AbortController:function(){var e=[],u=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){u.aborted=!0,e.forEach(function(n){return n()})}},F3=t.unstable_scheduleCallback,B3=t.unstable_NormalPriority,ou={$$typeof:xe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Js(){return{controller:new U3,data:new Map,refCount:0}}function zi(e){e.refCount--,e.refCount===0&&F3(B3,function(){e.controller.abort()})}function Cd(e,u){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<u.length;e++){var l=u[e];n.indexOf(l)===-1&&n.push(l)}}}var Ri=null;function H3(e){var u=e.transitionTypes;return e.transitionTypes=null,u}var wi=null,Ps=0,ql=0,Da=null;function q3(e,u){if(wi===null){var n=wi=[];Ps=0,ql=p0(),Da={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Ps++,u.then(Dd,Dd),u}function Dd(){if(--Ps===0&&(Ri=null,wi!==null)){Da!==null&&(Da.status="fulfilled");var e=wi;wi=null,ql=0,Da=null;for(var u=0;u<e.length;u++)(0,e[u])()}}function G3(e,u){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){l.status="fulfilled",l.value=u;for(var i=0;i<n.length;i++)(0,n[i])(u)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var Nd=ee.S;ee.S=function(e,u){if(vh=Lu(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&q3(e,u),Ri!==null)for(var n=Za;n!==null;)Cd(n,Ri),n=n.next;if(n=e.types,n!==null){for(var l=Za;l!==null;)Cd(l,n),l=l.next;if(ql!==0){l=Ri,l===null&&(l=Ri=[]);for(var i=0;i<n.length;i++){var r=n[i];l.indexOf(r)===-1&&l.push(r)}}}Nd!==null&&Nd(e,u)};var Gl=Ne(null);function Ws(){var e=Gl.current;return e!==null?e:Xe.pooledCache}function Wc(e,u){u===null?M(Gl,Gl.current):M(Gl,u.pool)}function kd(){var e=Ws();return e===null?null:{parent:ou._currentValue,pool:e}}var Na=Error(c(460)),eo=Error(c(474)),er=Error(c(542)),ur={then:function(){}};function Od(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jd(e,u,n){switch(n=e[n],n===void 0?e.push(u):n!==u&&(u.then(He,He),u=n),u.status){case"fulfilled":return u.value;case"rejected":throw e=u.reason,Rd(e),e===void 0&&!("reason"in u)?Error(c(600)):e;default:if(typeof u.status=="string")u.then(He,He);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=u,e.status="pending",e.then(function(l){if(u.status==="pending"){var i=u;i.status="fulfilled",i.value=l}},function(l){if(u.status==="pending"){var i=u;i.status="rejected",i.reason=l}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw e=u.reason,Rd(e),e}throw Vl=u,Na}}function Yl(e){try{var u=e._init;return u(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Vl=n,Na):n}}var Vl=null;function zd(){if(Vl===null)throw Error(c(459));var e=Vl;return Vl=null,e}function Rd(e){if(e===Na||e===er)throw Error(c(483))}var ka=null,Mi=0;function tr(e){var u=Mi;return Mi+=1,ka===null&&(ka=[]),jd(ka,e,u)}function Jn(e,u){u=u.props.ref,e.ref=u!==void 0?u:null}function nr(e,u){throw u.$$typeof===ce?Error(c(525)):(e=Object.prototype.toString.call(u),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":e)))}function wd(e){function u(N,A){if(e){var j=N.deletions;j===null?(N.deletions=[A],N.flags|=16):j.push(A)}}function n(N,A){if(!e)return null;for(;A!==null;)u(N,A),A=A.sibling;return null}function l(N){for(var A=new Map;N!==null;)N.key===null?A.set(N.index,N):A.set(N.key,N),N=N.sibling;return A}function i(N,A){return N=pn(N,A),N.index=0,N.sibling=null,N}function r(N,A,j){return N.index=j,e?(j=N.alternate,j!==null?(j=j.index,j<A?(N.flags|=2,A):j):(N.flags|=134217730,A)):(N.flags|=1048576,A)}function h(N){return e&&N.alternate===null&&(N.flags|=134217730),N}function g(N,A,j,U){return A===null||A.tag!==6?(A=Vs(j,N.mode,U),A.return=N,A):(A=i(A,j),A.return=N,A)}function E(N,A,j,U){var ue=j.type;return ue===te?(N=w(N,A,j.props.children,U,j.key),Jn(N,j),N):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ye&&Yl(ue)===A.type)?(A=i(A,j.props),Jn(A,j),A.return=N,A):(A=Xc(j.type,j.key,j.props,null,N.mode,U),Jn(A,j),A.return=N,A)}function O(N,A,j,U){return A===null||A.tag!==4||A.stateNode.containerInfo!==j.containerInfo||A.stateNode.implementation!==j.implementation?(A=Zs(j,N.mode,U),A.return=N,A):(A=i(A,j.children||[]),A.return=N,A)}function w(N,A,j,U,ue){return A===null||A.tag!==7?(A=Ll(j,N.mode,U,ue),A.return=N,A):(A=i(A,j),A.return=N,A)}function F(N,A,j){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Vs(""+A,N.mode,j),A.return=N,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case $e:return j=Xc(A.type,A.key,A.props,null,N.mode,j),Jn(j,A),j.return=N,j;case Be:return A=Zs(A,N.mode,j),A.return=N,A;case ye:return A=Yl(A),F(N,A,j)}if(Me(A)||re(A))return A=Ll(A,N.mode,j,null),A.return=N,A;if(typeof A.then=="function")return F(N,tr(A),j);if(A.$$typeof===xe)return F(N,Pc(N,A),j);nr(N,A)}return null}function D(N,A,j,U){var ue=A!==null?A.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ue!==null?null:g(N,A,""+j,U);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case $e:return j.key===ue?E(N,A,j,U):null;case Be:return j.key===ue?O(N,A,j,U):null;case ye:return j=Yl(j),D(N,A,j,U)}if(Me(j)||re(j))return ue!==null?null:w(N,A,j,U,null);if(typeof j.then=="function")return D(N,A,tr(j),U);if(j.$$typeof===xe)return D(N,A,Pc(N,j),U);nr(N,j)}return null}function z(N,A,j,U,ue){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return N=N.get(j)||null,g(A,N,""+U,ue);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case $e:return N=N.get(U.key===null?j:U.key)||null,E(A,N,U,ue);case Be:return N=N.get(U.key===null?j:U.key)||null,O(A,N,U,ue);case ye:return U=Yl(U),z(N,A,j,U,ue)}if(Me(U)||re(U))return N=N.get(j)||null,w(A,N,U,ue,null);if(typeof U.then=="function")return z(N,A,j,tr(U),ue);if(U.$$typeof===xe)return z(N,A,j,Pc(A,U),ue);nr(A,U)}return null}function P(N,A,j,U){for(var ue=null,we=null,fe=A,pe=A=0,hu=null;fe!==null&&pe<j.length;pe++){fe.index>pe?(hu=fe,fe=null):hu=fe.sibling;var Le=D(N,fe,j[pe],U);if(Le===null){fe===null&&(fe=hu);break}e&&fe&&Le.alternate===null&&u(N,fe),A=r(Le,A,pe),we===null?ue=Le:we.sibling=Le,we=Le,fe=hu}if(pe===j.length)return n(N,fe),Ce&&bn(N,pe),ue;if(fe===null){for(;pe<j.length;pe++)fe=F(N,j[pe],U),fe!==null&&(A=r(fe,A,pe),we===null?ue=fe:we.sibling=fe,we=fe);return Ce&&bn(N,pe),ue}for(fe=l(fe);pe<j.length;pe++)hu=z(fe,N,pe,j[pe],U),hu!==null&&(e&&(Le=hu.alternate,Le!==null&&fe.delete(Le.key===null?pe:Le.key)),A=r(hu,A,pe),we===null?ue=hu:we.sibling=hu,we=hu);return e&&fe.forEach(function(bl){return u(N,bl)}),Ce&&bn(N,pe),ue}function le(N,A,j,U){if(j==null)throw Error(c(151));for(var ue=null,we=null,fe=A,pe=A=0,hu=null,Le=j.next();fe!==null&&!Le.done;pe++,Le=j.next()){fe.index>pe?(hu=fe,fe=null):hu=fe.sibling;var bl=D(N,fe,Le.value,U);if(bl===null){fe===null&&(fe=hu);break}e&&fe&&bl.alternate===null&&u(N,fe),A=r(bl,A,pe),we===null?ue=bl:we.sibling=bl,we=bl,fe=hu}if(Le.done)return n(N,fe),Ce&&bn(N,pe),ue;if(fe===null){for(;!Le.done;pe++,Le=j.next())Le=F(N,Le.value,U),Le!==null&&(A=r(Le,A,pe),we===null?ue=Le:we.sibling=Le,we=Le);return Ce&&bn(N,pe),ue}for(fe=l(fe);!Le.done;pe++,Le=j.next())Le=z(fe,N,pe,Le.value,U),Le!==null&&(e&&(hu=Le.alternate,hu!==null&&fe.delete(hu.key===null?pe:hu.key)),A=r(Le,A,pe),we===null?ue=Le:we.sibling=Le,we=Le);return e&&fe.forEach(function(Eg){return u(N,Eg)}),Ce&&bn(N,pe),ue}function Se(N,A,j,U){if(typeof j=="object"&&j!==null&&j.type===te&&j.key===null&&j.props.ref===void 0&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case $e:e:{for(var ue=j.key;A!==null;){if(A.key===ue){if(ue=j.type,ue===te){if(A.tag===7){n(N,A.sibling),U=i(A,j.props.children),Jn(U,j),U.return=N,N=U;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ye&&Yl(ue)===A.type){n(N,A.sibling),U=i(A,j.props),Jn(U,j),U.return=N,N=U;break e}n(N,A);break}else u(N,A);A=A.sibling}j.type===te?(U=Ll(j.props.children,N.mode,U,j.key),Jn(U,j),U.return=N,N=U):(U=Xc(j.type,j.key,j.props,null,N.mode,U),Jn(U,j),U.return=N,N=U)}return h(N);case Be:e:{for(ue=j.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===j.containerInfo&&A.stateNode.implementation===j.implementation){n(N,A.sibling),U=i(A,j.children||[]),U.return=N,N=U;break e}else{n(N,A);break}else u(N,A);A=A.sibling}U=Zs(j,N.mode,U),U.return=N,N=U}return h(N);case ye:return j=Yl(j),Se(N,A,j,U)}if(Me(j))return P(N,A,j,U);if(re(j)){if(ue=re(j),typeof ue!="function")throw Error(c(150));return j=ue.call(j),le(N,A,j,U)}if(typeof j.then=="function")return Se(N,A,tr(j),U);if(j.$$typeof===xe)return Se(N,A,Pc(N,j),U);nr(N,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,A!==null&&A.tag===6?(n(N,A.sibling),U=i(A,j),U.return=N,N=U):(n(N,A),U=Vs(j,N.mode,U),U.return=N,N=U),h(N)):n(N,A)}return function(N,A,j,U){try{Mi=0;var ue=Se(N,A,j,U);return ka=null,ue}catch(fe){if(fe===Na||fe===er)throw fe;var we=Ju(29,fe,null,N.mode);return we.lanes=U,we.return=N,we}}}var Zl=wd(!0),Md=wd(!1),Pn=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function to(e,u){e=e.updateQueue,u.updateQueue===e&&(u.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function el(e,u,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Fe&2)!==0){var i=l.pending;return i===null?u.next=u:(u.next=i.next,i.next=u),l.pending=u,u=Zc(e),yd(e,null,n),u}return Vc(e,l,u,n),Zc(e)}function Li(e,u,n){if(u=u.updateQueue,u!==null&&(u=u.shared,(n&4194048)!==0)){var l=u.lanes;l&=e.pendingLanes,n|=l,u.lanes=n,jc(e,n)}}function no(e,u){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?i=r=h:r=r.next=h,n=n.next}while(n!==null);r===null?i=r=u:r=r.next=u}else i=r=u;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=u:e.next=u,n.lastBaseUpdate=u}var lo=!1;function Ui(){if(lo){var e=Da;if(e!==null)throw e}}function Fi(e,u,n,l){lo=!1;var i=e.updateQueue;Pn=!1;var r=i.firstBaseUpdate,h=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var E=g,O=E.next;E.next=null,h===null?r=O:h.next=O,h=E;var w=e.alternate;w!==null&&(w=w.updateQueue,g=w.lastBaseUpdate,g!==h&&(g===null?w.firstBaseUpdate=O:g.next=O,w.lastBaseUpdate=E))}if(r!==null){var F=i.baseState;h=0,w=O=E=null,g=r;do{var D=g.lane&-536870913,z=D!==g.lane;if(z?(Re&D)===D:(l&D)===D){D!==0&&D===ql&&(lo=!0),w!==null&&(w=w.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var P=e,le=g;D=u;var Se=n;switch(le.tag){case 1:if(P=le.payload,typeof P=="function"){F=P.call(Se,F,D);break e}F=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=le.payload,D=typeof P=="function"?P.call(Se,F,D):P,D==null)break e;F=W({},F,D);break e;case 2:Pn=!0}}D=g.callback,D!==null&&(e.flags|=64,z&&(e.flags|=8192),z=i.callbacks,z===null?i.callbacks=[D]:z.push(D))}else z={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},w===null?(O=w=z,E=F):w=w.next=z,h|=D;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;z=g,g=z.next,z.next=null,i.lastBaseUpdate=z,i.shared.pending=null}}while(!0);w===null&&(E=F),i.baseState=E,i.firstBaseUpdate=O,i.lastBaseUpdate=w,r===null&&(i.shared.lanes=0),cl|=h,e.lanes=h,e.memoizedState=F}}function Ld(e,u){if(typeof e!="function")throw Error(c(191,e));e.call(u)}function Ud(e,u){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ld(n[e],u)}var ul=Ne(null),lr=Ne(0);function Fd(e,u){e=Sn,M(lr,e),M(ul,u),Sn=e|u.baseLanes}function ao(){M(lr,Sn),M(ul,ul.current)}function io(){Sn=lr.current,eu(ul),eu(lr)}var Nu=Ne(null),Hu=null;function tl(e){var u=e.alternate;M(ku,ku.current&1),M(Nu,e),Hu===null&&(u===null||ul.current!==null||u.memoizedState!==null)&&(Hu=e)}function co(e){M(ku,ku.current),M(Nu,e),Hu===null&&(Hu=e)}function Bd(e){e.tag===22?(M(ku,ku.current),M(Nu,e),Hu===null&&(Hu=e)):nl()}function nl(){M(ku,ku.current),M(Nu,Nu.current)}function ct(e){eu(Nu),Hu===e&&(Hu=null),eu(ku)}var ku=Ne(0);function Bi(e,u){M(Nu,Nu.current),M(ku,u)}function ro(e){eu(ku),eu(Nu),Hu===e&&(Hu=null)}function ar(e){for(var u=e;u!==null;){if(u.tag===13){var n=u.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||j0(n)||z0(n)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!=="independent"){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break;for(;u.sibling===null;){if(u.return===null||u.return===e)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var xn=0,Ee=null,Ze=null,fu=null,ir=!1,Oa=!1,Xl=!1,cr=0,Hi=0,ja=null,Y3=0;function lu(){throw Error(c(321))}function so(e,u){if(u===null)return!1;for(var n=0;n<u.length&&n<e.length;n++)if(!it(e[n],u[n]))return!1;return!0}function oo(e,u,n,l,i,r){return xn=r,Ee=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,ee.H=e===null||e.memoizedState===null?E1:S1,Xl=!1,r=n(l,i),Xl=!1,Oa&&(r=qd(u,n,l,i)),Hd(e),r}function Hd(e){ee.H=mr;var u=Ze!==null&&Ze.next!==null;if(xn=0,fu=Ze=Ee=null,ir=!1,Hi=0,ja=null,u)throw Error(c(300));e===null||du||(e=e.dependencies,e!==null&&Jc(e)&&(du=!0))}function qd(e,u,n,l){Ee=e;var i=0;do{if(Oa&&(ja=null),Hi=0,Oa=!1,25<=i)throw Error(c(301));if(i+=1,fu=Ze=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}ee.H=J3,r=u(n,l)}while(Oa);return r}function V3(){var e=ee.H,u=e.useState()[0];return u=typeof u.then=="function"?qi(u):u,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(Ee.flags|=1024),u}function fo(){var e=cr!==0;return cr=0,e}function ho(e,u,n){u.updateQueue=e.updateQueue,u.flags&=-2053,e.lanes&=~n}function mo(e){if(ir){for(e=e.memoizedState;e!==null;){var u=e.queue;u!==null&&(u.pending=null),e=e.next}ir=!1}xn=0,fu=Ze=Ee=null,Oa=!1,Hi=cr=0,ja=null}function Zu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fu===null?Ee.memoizedState=fu=e:fu=fu.next=e,fu}function cu(){if(Ze===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var u=fu===null?Ee.memoizedState:fu.next;if(u!==null)fu=u,Ze=e;else{if(e===null)throw Ee.alternate===null?Error(c(467)):Error(c(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},fu===null?Ee.memoizedState=fu=e:fu=fu.next=e}return fu}function rr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qi(e){var u=Hi;return Hi+=1,ja===null&&(ja=[]),e=jd(ja,e,u),u=Ee,(fu===null?u.memoizedState:fu.next)===null&&(u=u.alternate,ee.H=u===null||u.memoizedState===null?E1:S1),e}function sr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return qi(e);if(e.$$typeof===V)return;if(e.$$typeof===xe)return Du(e)}throw Error(c(438,String(e)))}function po(e){var u=null,n=Ee.updateQueue;if(n!==null&&(u=n.memoCache),u==null){var l=Ee.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(u={data:l.data.map(function(i){return i.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),n===null&&(n=rr(),Ee.updateQueue=n),n.memoCache=u,n=u.data[u.index],n===void 0)for(n=u.data[u.index]=Array(e),l=0;l<e;l++)n[l]=K;return u.index++,n}function vn(e,u){return typeof u=="function"?u(e):u}function or(e){var u=cu();return bo(u,Ze,e)}function bo(e,u,n){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=n;var i=e.baseQueue,r=l.pending;if(r!==null){if(i!==null){var h=i.next;i.next=r.next,r.next=h}u.baseQueue=i=r,l.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{u=i.next;var g=h=null,E=null,O=u,w=!1;do{var F=O.lane&-536870913;if(F!==O.lane?(Re&F)===F:(xn&F)===F){var D=O.revertLane;if(D===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),F===ql&&(w=!0);else if((xn&D)===D){O=O.next,D===ql&&(w=!0);continue}else F={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},E===null?(g=E=F,h=r):E=E.next=F,Ee.lanes|=D,cl|=D;F=O.action,Xl&&n(r,F),r=O.hasEagerState?O.eagerState:n(r,F)}else D={lane:F,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},E===null?(g=E=D,h=r):E=E.next=D,Ee.lanes|=F,cl|=F;O=O.next}while(O!==null&&O!==u);if(E===null?h=r:E.next=g,!it(r,e.memoizedState)&&(du=!0,w&&(n=Da,n!==null)))throw n;e.memoizedState=r,e.baseState=h,e.baseQueue=E,l.lastRenderedState=r}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function go(e){var u=cu(),n=u.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,r=u.memoizedState;if(i!==null){n.pending=null;var h=i=i.next;do r=e(r,h.action),h=h.next;while(h!==i);it(r,u.memoizedState)||(du=!0),u.memoizedState=r,u.baseQueue===null&&(u.baseState=r),n.lastRenderedState=r}return[r,l]}function Gd(e,u,n){var l=Ee,i=cu(),r=Ce;if(r){if(n===void 0)throw Error(c(407));n=n()}else n=u();var h=!it((Ze||i).memoizedState,n);if(h&&(i.memoizedState=n,du=!0),i=i.queue,vo(Zd.bind(null,l,i,e),[e]),e=i.getSnapshot!==u||h||fu!==null&&(fu.memoizedState.tag&1)!==0,za(e?9:8,{destroy:void 0},Vd.bind(null,l,i,n,u),null),e){if(l.flags|=2048,Xe===null)throw Error(c(349));r||(xn&127)!==0||Yd(l,u,n)}return n}function Yd(e,u,n){e.flags|=16384,e={getSnapshot:u,value:n},u=Ee.updateQueue,u===null?(u=rr(),Ee.updateQueue=u,u.stores=[e]):(n=u.stores,n===null?u.stores=[e]:n.push(e))}function Vd(e,u,n,l){u.value=n,u.getSnapshot=l,Xd(u)&&Id(e)}function Zd(e,u,n){return n(function(){Xd(u)&&Id(e)})}function Xd(e){var u=e.getSnapshot;e=e.value;try{var n=u();return!it(e,n)}catch{return!0}}function Id(e){var u=Ml(e,2);u!==null&&ut(u,e,2)}function yo(e){var u=Zu();if(typeof e=="function"){var n=e;if(e=n(),Xl){Ot(!0);try{n()}finally{Ot(!1)}}}return u.memoizedState=u.baseState=e,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:e},u}function Qd(e,u,n,l){return e.baseState=n,bo(e,Ze,typeof l=="function"?l:vn)}function Z3(e,u,n,l,i){if(hr(e))throw Error(c(485));if(e=u.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){r.listeners.push(h)}};ee.T!==null?n(!0):r.isTransition=!1,l(r),n=u.pending,n===null?(r.next=u.pending=r,Kd(u,r)):(r.next=n.next,u.pending=n.next=r)}}function Kd(e,u){var n=u.action,l=u.payload,i=e.state;if(u.isTransition){var r=ee.T,h={};h.types=r!==null?r.types:null,ee.T=h;try{var g=n(i,l),E=ee.S;E!==null&&E(h,g),$d(e,u,g)}catch(O){xo(e,u,O)}finally{r!==null&&h.types!==null&&(r.types=h.types),ee.T=r}}else try{r=n(i,l),$d(e,u,r)}catch(O){xo(e,u,O)}}function $d(e,u,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Jd(e,u,l)},function(l){return xo(e,u,l)}):Jd(e,u,n)}function Jd(e,u,n){u.status="fulfilled",u.value=n,Pd(u),e.state=n,u=e.pending,u!==null&&(n=u.next,n===u?e.pending=null:(n=n.next,u.next=n,Kd(e,n)))}function xo(e,u,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do u.status="rejected",u.reason=n,Pd(u),u=u.next;while(u!==l)}e.action=null}function Pd(e){e=e.listeners;for(var u=0;u<e.length;u++)(0,e[u])()}function Wd(e,u){return u}function e1(e,u){if(Ce){var n=Xe.formState;if(n!==null){e:{var l=Ee;if(Ce){if(Ie){u:{for(var i=Ie,r=Et;i.nodeType!==8;){if(!r){i=null;break u}if(i=At(i.nextSibling),i===null){i=null;break u}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Ie=At(i.nextSibling),l=i.data==="F!";break e}}Kn(l)}l=!1}l&&(u=n[0])}}return n=Zu(),n.memoizedState=n.baseState=u,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wd,lastRenderedState:u},n.queue=l,n=x1.bind(null,Ee,l),l.dispatch=n,l=yo(!1),r=To.bind(null,Ee,!1,l.queue),l=Zu(),i={state:u,dispatch:null,action:e,pending:null},l.queue=i,n=Z3.bind(null,Ee,i,r,n),i.dispatch=n,l.memoizedState=e,[u,n,!1]}function u1(e){var u=cu();return t1(u,Ze,e)}function t1(e,u,n){if(u=bo(e,u,Wd)[0],e=or(vn)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var l=qi(u)}catch(h){throw h===Na?er:h}else l=u;u=cu();var i=u.queue,r=i.dispatch;return n!==u.memoizedState&&(Ee.flags|=2048,za(9,{destroy:void 0},X3.bind(null,i,n),null)),[l,r,e]}function X3(e,u){e.action=u}function n1(e){var u=cu(),n=Ze;if(n!==null)return t1(u,n,e);cu(),u=u.memoizedState,n=cu();var l=n.queue.dispatch;return n.memoizedState=e,[u,l,!1]}function za(e,u,n,l){return e={tag:e,create:n,deps:l,inst:u,next:null},u=Ee.updateQueue,u===null&&(u=rr(),Ee.updateQueue=u),n=u.lastEffect,n===null?u.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,u.lastEffect=e),e}function l1(){return cu().memoizedState}function fr(e,u,n,l){var i=Zu();Ee.flags|=e,i.memoizedState=za(1|u,{destroy:void 0},n,l===void 0?null:l)}function dr(e,u,n,l){var i=cu();l=l===void 0?null:l;var r=i.memoizedState.inst;Ze!==null&&l!==null&&so(l,Ze.memoizedState.deps)?i.memoizedState=za(u,r,n,l):(Ee.flags|=e,i.memoizedState=za(1|u,r,n,l))}function a1(e,u){fr(8390656,8,e,u)}function vo(e,u){dr(2048,8,e,u)}function I3(e){Ee.flags|=4;var u=Ee.updateQueue;if(u===null)u=rr(),Ee.updateQueue=u,u.events=[e];else{var n=u.events;n===null?u.events=[e]:n.push(e)}}function i1(e){var u=cu().memoizedState;return I3({ref:u,nextImpl:e}),function(){if((Fe&2)!==0)throw Error(c(440));return u.impl.apply(void 0,arguments)}}function c1(e,u){return dr(4,2,e,u)}function r1(e,u){return dr(4,4,e,u)}function s1(e,u){if(typeof u=="function"){e=e();var n=u(e);return function(){typeof n=="function"?n():u(null)}}if(u!=null)return e=e(),u.current=e,function(){u.current=null}}function o1(e,u,n){n=n!=null?n.concat([e]):null,dr(4,4,s1.bind(null,u,e),n)}function _o(){}function f1(e,u){var n=cu();u=u===void 0?null:u;var l=n.memoizedState;return u!==null&&so(u,l[1])?l[0]:(n.memoizedState=[e,u],e)}function d1(e,u){var n=cu();u=u===void 0?null:u;var l=n.memoizedState;if(u!==null&&so(u,l[1]))return l[0];if(l=e(),Xl){Ot(!0);try{e()}finally{Ot(!1)}}return n.memoizedState=[l,u],l}function Eo(e,u,n){return n===void 0||(xn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=u:(e.memoizedState=n,e=Eh(),Ee.lanes|=e,cl|=e,n)}function h1(e,u,n,l){return it(n,u)?n:ul.current!==null?(e=Eo(e,n,l),it(e,u)||(du=!0),e):(xn&106)===0||(xn&1073741824)!==0&&(Re&261930)===0?(du=!0,e.memoizedState=n):(e=Eh(),Ee.lanes|=e,cl|=e,u)}function m1(e,u,n,l,i){var r=he.p;he.p=r!==0&&8>r?r:8;var h=ee.T,g={};g.types=h!==null?h.types:null,ee.T=g,To(e,!1,u,n);try{var E=i(),O=ee.S;if(O!==null&&O(g,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var w=G3(E,l);Gi(e,u,w,ft(e))}else Gi(e,u,l,ft(e))}catch(F){Gi(e,u,{then:function(){},status:"rejected",reason:F},ft())}finally{he.p=r,h!==null&&g.types!==null&&(h.types=g.types),ee.T=h}}function Q3(){}function So(e,u,n,l){if(e.tag!==5)throw Error(c(476));var i=p1(e).queue;m1(e,i,u,Qu,n===null?Q3:function(){return b1(e),n(l)})}function p1(e){var u=e.memoizedState;if(u!==null)return u;u={memoizedState:Qu,baseState:Qu,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:Qu},next:null};var n={};return u.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:n},next:null},e.memoizedState=u,e=e.alternate,e!==null&&(e.memoizedState=u),u}function b1(e){var u=p1(e);u.next===null&&(u=e.alternate.memoizedState),Gi(e,u.next.queue,{},ft())}function Ao(){return Du(Ja)}function g1(){return cu().memoizedState}function y1(){return cu().memoizedState}function K3(e){for(var u=e.return;u!==null;){switch(u.tag){case 24:case 3:var n=ft();e=Wn(n);var l=el(u,e,n);l!==null&&(ut(l,u,n),Li(l,u,n)),u={cache:Js()},e.payload=u;return}u=u.return}}function $3(e,u,n){var l=ft();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hr(e)?v1(u,n):(n=Gs(e,u,n,l),n!==null&&(ut(n,e,l),_1(n,u,l)))}function x1(e,u,n){var l=ft();Gi(e,u,n,l)}function Gi(e,u,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hr(e))v1(u,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=u.lastRenderedReducer,r!==null))try{var h=u.lastRenderedState,g=r(h,n);if(i.hasEagerState=!0,i.eagerState=g,it(g,h))return Vc(e,u,i,0),Xe===null&&Yc(),!1}catch{}if(n=Gs(e,u,i,l),n!==null)return ut(n,e,l),_1(n,u,l),!0}return!1}function To(e,u,n,l){if(l={lane:2,revertLane:p0(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},hr(e)){if(u)throw Error(c(479))}else u=Gs(e,n,l,2),u!==null&&ut(u,e,2)}function hr(e){var u=e.alternate;return e===Ee||u!==null&&u===Ee}function v1(e,u){Oa=ir=!0;var n=e.pending;n===null?u.next=u:(u.next=n.next,n.next=u),e.pending=u}function _1(e,u,n){if((n&4194048)!==0){var l=u.lanes;l&=e.pendingLanes,n|=l,u.lanes=n,jc(e,n)}}var mr={readContext:Du,use:sr,useCallback:lu,useContext:lu,useEffect:lu,useImperativeHandle:lu,useLayoutEffect:lu,useInsertionEffect:lu,useMemo:lu,useReducer:lu,useRef:lu,useState:lu,useDebugValue:lu,useDeferredValue:lu,useTransition:lu,useSyncExternalStore:lu,useId:lu,useHostTransitionStatus:lu,useFormState:lu,useActionState:lu,useOptimistic:lu,useMemoCache:lu,useCacheRefresh:lu,useEffectEvent:lu},E1={readContext:Du,use:sr,useCallback:function(e,u){return Zu().memoizedState=[e,u===void 0?null:u],e},useContext:Du,useEffect:a1,useImperativeHandle:function(e,u,n){n=n!=null?n.concat([e]):null,fr(4194308,4,s1.bind(null,u,e),n)},useLayoutEffect:function(e,u){return fr(4194308,4,e,u)},useInsertionEffect:function(e,u){fr(4,2,e,u)},useMemo:function(e,u){var n=Zu();u=u===void 0?null:u;var l=e();if(Xl){Ot(!0);try{e()}finally{Ot(!1)}}return n.memoizedState=[l,u],l},useReducer:function(e,u,n){var l=Zu();if(n!==void 0){var i=n(u);if(Xl){Ot(!0);try{n(u)}finally{Ot(!1)}}}else i=u;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=$3.bind(null,Ee,e),[l.memoizedState,e]},useRef:function(e){var u=Zu();return e={current:e},u.memoizedState=e},useState:function(e){e=yo(e);var u=e.queue,n=x1.bind(null,Ee,u);return u.dispatch=n,[e.memoizedState,n]},useDebugValue:_o,useDeferredValue:function(e,u){var n=Zu();return Eo(n,e,u)},useTransition:function(){var e=yo(!1);return e=m1.bind(null,Ee,e.queue,!0,!1),Zu().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,u,n){var l=Ee,i=Zu();if(Ce){if(n===void 0)throw Error(c(407));n=n()}else{if(n=u(),Xe===null)throw Error(c(349));(Re&127)!==0||Yd(l,u,n)}i.memoizedState=n;var r={value:n,getSnapshot:u};return i.queue=r,a1(Zd.bind(null,l,r,e),[e]),l.flags|=2048,za(9,{destroy:void 0},Vd.bind(null,l,r,n,u),null),n},useId:function(){var e=Zu(),u=Xe.identifierPrefix;if(Ce){var n=Xt,l=Zt;n=(l&~(1<<32-xu(l)-1)).toString(32)+n,u="_"+u+"R_"+n,n=cr++,0<n&&(u+="H"+n.toString(32)),u+="_"}else n=Y3++,u="_"+u+"r_"+n.toString(32)+"_";return e.memoizedState=u},useHostTransitionStatus:Ao,useFormState:e1,useActionState:e1,useOptimistic:function(e){var u=Zu();u.memoizedState=u.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=n,u=To.bind(null,Ee,!0,n),n.dispatch=u,[e,u]},useMemoCache:po,useCacheRefresh:function(){return Zu().memoizedState=K3.bind(null,Ee)},useEffectEvent:function(e){var u=Zu(),n={impl:e};return u.memoizedState=n,function(){if((Fe&2)!==0)throw Error(c(440));return n.impl.apply(void 0,arguments)}}},S1={readContext:Du,use:sr,useCallback:f1,useContext:Du,useEffect:vo,useImperativeHandle:o1,useInsertionEffect:c1,useLayoutEffect:r1,useMemo:d1,useReducer:or,useRef:l1,useState:function(){return or(vn)},useDebugValue:_o,useDeferredValue:function(e,u){var n=cu();return h1(n,Ze.memoizedState,e,u)},useTransition:function(){var e=or(vn)[0],u=cu().memoizedState;return[typeof e=="boolean"?e:qi(e),u]},useSyncExternalStore:Gd,useId:g1,useHostTransitionStatus:Ao,useFormState:u1,useActionState:u1,useOptimistic:function(e,u){var n=cu();return Qd(n,Ze,e,u)},useMemoCache:po,useCacheRefresh:y1,useEffectEvent:i1},J3={readContext:Du,use:sr,useCallback:f1,useContext:Du,useEffect:vo,useImperativeHandle:o1,useInsertionEffect:c1,useLayoutEffect:r1,useMemo:d1,useReducer:go,useRef:l1,useState:function(){return go(vn)},useDebugValue:_o,useDeferredValue:function(e,u){var n=cu();return Ze===null?Eo(n,e,u):h1(n,Ze.memoizedState,e,u)},useTransition:function(){var e=go(vn)[0],u=cu().memoizedState;return[typeof e=="boolean"?e:qi(e),u]},useSyncExternalStore:Gd,useId:g1,useHostTransitionStatus:Ao,useFormState:n1,useActionState:n1,useOptimistic:function(e,u){var n=cu();return Ze!==null?Qd(n,Ze,e,u):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:po,useCacheRefresh:y1,useEffectEvent:i1};function Co(e,u,n,l){u=e.memoizedState,n=n(l,u),n=n==null?u:W({},u,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Do={enqueueSetState:function(e,u,n){e=e._reactInternals;var l=ft(),i=Wn(l);i.payload=u,n!=null&&(i.callback=n),u=el(e,i,l),u!==null&&(ut(u,e,l),Li(u,e,l))},enqueueReplaceState:function(e,u,n){e=e._reactInternals;var l=ft(),i=Wn(l);i.tag=1,i.payload=u,n!=null&&(i.callback=n),u=el(e,i,l),u!==null&&(ut(u,e,l),Li(u,e,l))},enqueueForceUpdate:function(e,u){e=e._reactInternals;var n=ft(),l=Wn(n);l.tag=2,u!=null&&(l.callback=u),u=el(e,l,n),u!==null&&(ut(u,e,n),Li(u,e,n))}};function A1(e,u,n,l,i,r,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,h):u.prototype&&u.prototype.isPureReactComponent?!Ni(n,l)||!Ni(i,r):!0}function T1(e,u,n,l){e=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(n,l),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(n,l),u.state!==e&&Do.enqueueReplaceState(u,u.state,null)}function Il(e,u){var n=u;if("ref"in u){n={};for(var l in u)l!=="ref"&&(n[l]=u[l])}if(e=e.defaultProps){n===u&&(n=W({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function C1(e){Gc(e)}function D1(e){console.error(e)}function N1(e){Gc(e)}function pr(e,u){try{var n=e.onUncaughtError;n(u.value,{componentStack:u.stack})}catch(l){setTimeout(function(){throw l})}}function k1(e,u,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function No(e,u,n){return n=Wn(n),n.tag=3,n.payload={element:null},n.callback=function(){pr(e,u)},n}function O1(e){return e=Wn(e),e.tag=3,e}function j1(e,u,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=l.value;e.payload=function(){return i(r)},e.callback=function(){k1(u,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){k1(u,n,l),typeof i!="function"&&(rl===null?rl=new Set([this]):rl.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function P3(e,u,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(u=n.alternate,u!==null&&Bl(u,n,i,!0),n=Nu.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Hu===null?Lr():n.alternate===null&&au===0&&(au=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===ur?n.flags|=16384:(u=n.updateQueue,u===null?n.updateQueue=new Set([l]):u.add(l),d0(e,l,i)),!1;case 22:return n.flags|=65536,l===ur?n.flags|=16384:(u=n.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=u):(n=u.retryQueue,n===null?u.retryQueue=new Set([l]):n.add(l)),d0(e,l,i)),!1}throw Error(c(435,n.tag))}return d0(e,l,i),Lr(),!1}if(Ce)return u=Nu.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=i,l!==Is&&(e=Error(c(422),{cause:l}),ji(xt(e,n)))):(l!==Is&&(u=Error(c(423),{cause:l}),ji(xt(u,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=xt(l,n),i=No(e.stateNode,l,i),no(e,i),au!==4&&(au=2)),!1;var r=Error(c(520),{cause:l});if(r=xt(r,n),$i===null?$i=[r]:$i.push(r),au!==4&&(au=2),u===null)return!0;l=xt(l,n),n=u;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=No(n.stateNode,l,e),no(n,e),!1;case 1:if(u=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(rl===null||!rl.has(r))))return n.flags|=65536,i&=-i,n.lanes|=i,i=O1(i),j1(i,e,n,l),no(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var ko=Error(c(461)),du=!1;function gu(e,u,n,l){u.child=e===null?Md(u,null,n,l):Zl(u,e.child,n,l)}function z1(e,u,n,l,i){n=n.render;var r=u.ref;if("ref"in l){var h={};for(var g in l)g!=="ref"&&(h[g]=l[g])}else h=l;return Hl(u),l=oo(e,u,n,h,r,i),g=fo(),e!==null&&!du?(ho(e,u,i),_n(e,u,i)):(Ce&&g&&Qc(u),u.flags|=1,gu(e,u,l,i),u.child)}function R1(e,u,n,l,i){if(e===null){var r=n.type;return typeof r=="function"&&!Ys(r)&&r.defaultProps===void 0&&n.compare===null?(u.tag=15,u.type=r,w1(e,u,r,l,i)):(e=Xc(n.type,null,l,u,u.mode,i),e.ref=u.ref,e.return=u,u.child=e)}if(r=e.child,!Uo(e,i)){var h=r.memoizedProps;if(n=n.compare,n=n!==null?n:Ni,n(h,l)&&e.ref===u.ref)return _n(e,u,i)}return u.flags|=1,e=pn(r,l),e.ref=u.ref,e.return=u,u.child=e}function w1(e,u,n,l,i){if(e!==null){var r=e.memoizedProps;if(Ni(r,l)&&e.ref===u.ref)if(du=!1,u.pendingProps=l=r,Uo(e,i))(e.flags&131072)!==0&&(du=!0);else return u.lanes=e.lanes,_n(e,u,i)}return Oo(e,u,n,l,i)}function M1(e,u,n,l){var i=l.children,r=e!==null?e.memoizedState:null;if(e===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((u.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,e!==null){for(l=u.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~r}else l=0,u.child=null;return L1(e,u,r,n,l)}if((n&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wc(u,r!==null?r.cachePool:null),r!==null?Fd(u,r):ao(),Bd(u);else return l=u.lanes=536870912,L1(e,u,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(Wc(u,r.cachePool),Fd(u,r),nl(),u.memoizedState=null):(e!==null&&Wc(u,null),ao(),nl());return gu(e,u,i,n),u.child}function Yi(e,u){return e!==null&&e.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function L1(e,u,n,l,i){var r=Ws();return r=r===null?null:{parent:ou._currentValue,pool:r},u.memoizedState={baseLanes:n,cachePool:r},e!==null&&Wc(u,null),ao(),Bd(u),e!==null&&Bl(e,u,l,!0),u.childLanes=i,null}function br(e,u){return u=gr({mode:u.mode,children:u.children},e.mode),u.ref=e.ref,e.child=u,u.return=e,u}function U1(e,u,n){return Zl(u,e.child,null,n),e=br(u,u.pendingProps),e.flags|=2,ct(u),u.memoizedState=null,e}function W3(e,u,n){var l=u.pendingProps,i=(u.flags&128)!==0;if(u.flags&=-129,e===null){if(Ce){if(l.mode==="hidden")return e=br(u,l),u.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Yi(null,e);if(co(u),(e=Ie)?(e=sm(e,Et),e=e!==null&&e.data==="&"?e:null,e!==null&&(u.memoizedState={dehydrated:e,treeContext:In!==null?{id:Zt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},n=vd(e),n.return=u,u.child=n,vu=u,Ie=null)):e=null,e===null)throw Kn(u);return u.lanes=536870912,null}return br(u,l)}var r=e.memoizedState;if(r!==null){var h=r.dehydrated;if(co(u),i)if(u.flags&256)u.flags&=-257,u=U1(e,u,n);else if(u.memoizedState!==null)u.child=e.child,u.flags|=128,u=null;else throw Error(c(558));else if(du||Bl(e,u,n,!1),i=(n&e.childLanes)!==0,du||i){if(ul.current===null){if(l=Xe,l!==null&&(h=fi(l,n),h!==0&&h!==r.retryLane))throw r.retryLane=h,Ml(e,h),ut(l,e,h),ko;Lr()}u=U1(e,u,n)}else e=r.treeContext,Ie=At(h.nextSibling),vu=u,Ce=!0,Qn=null,Et=!1,e!==null&&Sd(u,e),u=br(u,l),u.flags|=134221824;return u}return e=pn(e.child,{mode:l.mode,children:l.children}),e.ref=u.ref,u.child=e,e.return=u,e}function Ra(e,u){var n=u.ref;if(n===null)e!==null&&e.ref!==null&&(u.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(c(284));(e===null||e.ref!==n)&&(u.flags|=4194816)}}function Oo(e,u,n,l,i){return Hl(u),n=oo(e,u,n,l,void 0,i),l=fo(),e!==null&&!du?(ho(e,u,i),_n(e,u,i)):(Ce&&l&&Qc(u),u.flags|=1,gu(e,u,n,i),u.child)}function F1(e,u,n,l,i,r){return Hl(u),u.updateQueue=null,n=qd(u,l,n,i),Hd(e),l=fo(),e!==null&&!du?(ho(e,u,r),_n(e,u,r)):(Ce&&l&&Qc(u),u.flags|=1,gu(e,u,n,r),u.child)}function B1(e,u,n,l,i){if(Hl(u),u.stateNode===null){var r=Sa,h=n.contextType;typeof h=="object"&&h!==null&&(r=Du(h)),r=new n(l,r),u.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Do,u.stateNode=r,r._reactInternals=u,r=u.stateNode,r.props=l,r.state=u.memoizedState,r.refs={},uo(u),h=n.contextType,r.context=typeof h=="object"&&h!==null?Du(h):Sa,r.state=u.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Co(u,n,h,l),r.state=u.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(h=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),h!==r.state&&Do.enqueueReplaceState(r,r.state,null),Fi(u,l,r,i),Ui(),r.state=u.memoizedState),typeof r.componentDidMount=="function"&&(u.flags|=4194308),l=!0}else if(e===null){r=u.stateNode;var g=u.memoizedProps,E=Il(n,g);r.props=E;var O=r.context,w=n.contextType;h=Sa,typeof w=="object"&&w!==null&&(h=Du(w));var F=n.getDerivedStateFromProps;w=typeof F=="function"||typeof r.getSnapshotBeforeUpdate=="function",g=u.pendingProps!==g,w||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(g||O!==h)&&T1(u,r,l,h),Pn=!1;var D=u.memoizedState;r.state=D,Fi(u,l,r,i),Ui(),O=u.memoizedState,g||D!==O||Pn?(typeof F=="function"&&(Co(u,n,F,l),O=u.memoizedState),(E=Pn||A1(u,n,E,l,D,O,h))?(w||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(u.flags|=4194308)):(typeof r.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=l,u.memoizedState=O),r.props=l,r.state=O,r.context=h,l=E):(typeof r.componentDidMount=="function"&&(u.flags|=4194308),l=!1)}else{r=u.stateNode,to(e,u),h=u.memoizedProps,w=Il(n,h),r.props=w,F=u.pendingProps,D=r.context,O=n.contextType,E=Sa,typeof O=="object"&&O!==null&&(E=Du(O)),g=n.getDerivedStateFromProps,(O=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(h!==F||D!==E)&&T1(u,r,l,E),Pn=!1,D=u.memoizedState,r.state=D,Fi(u,l,r,i),Ui();var z=u.memoizedState;h!==F||D!==z||Pn||e!==null&&e.dependencies!==null&&Jc(e.dependencies)?(typeof g=="function"&&(Co(u,n,g,l),z=u.memoizedState),(w=Pn||A1(u,n,w,l,D,z,E)||e!==null&&e.dependencies!==null&&Jc(e.dependencies))?(O||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,z,E),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,z,E)),typeof r.componentDidUpdate=="function"&&(u.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof r.componentDidUpdate!="function"||h===e.memoizedProps&&D===e.memoizedState||(u.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&D===e.memoizedState||(u.flags|=1024),u.memoizedProps=l,u.memoizedState=z),r.props=l,r.state=z,r.context=E,l=w):(typeof r.componentDidUpdate!="function"||h===e.memoizedProps&&D===e.memoizedState||(u.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&D===e.memoizedState||(u.flags|=1024),l=!1)}return r=l,Ra(e,u),l=(u.flags&128)!==0,r||l?(r=u.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),u.flags|=1,e!==null&&l?(u.child=Zl(u,e.child,null,i),u.child=Zl(u,null,n,i)):gu(e,u,n,i),u.memoizedState=r.state,e=u.child):e=_n(e,u,i),e}function H1(e,u,n,l){return Ul(),u.flags|=256,gu(e,u,n,l),u.child}var jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zo(e){return{baseLanes:e,cachePool:kd()}}function Ro(e,u,n){return e=e!==null?e.childLanes&~n:0,u&&(e|=ot),e}function q1(e,u,n){var l=u.pendingProps,i=!1,r=(u.flags&128)!==0,h;if((h=r)||(h=e!==null&&e.memoizedState===null?!1:(ku.current&2)!==0),h&&(i=!0,u.flags&=-129),h=(u.flags&32)!==0,u.flags&=-33,e===null){if(Ce){if(i?tl(u):nl(),(e=Ie)?(e=sm(e,Et),e=e!==null&&e.data!=="&"?e:null,e!==null&&(u.memoizedState={dehydrated:e,treeContext:In!==null?{id:Zt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},n=vd(e),n.return=u,u.child=n,vu=u,Ie=null)):e=null,e===null)throw Kn(u);return z0(e)?u.lanes=32:u.lanes=536870912,null}return r=l.children,l=l.fallback,i?(nl(),i=u.mode,r=gr({mode:"hidden",children:r},i),l=Ll(l,i,n,null),r.return=u,l.return=u,r.sibling=l,u.child=r,l=u.child,l.memoizedState=zo(n),l.childLanes=Ro(e,h,n),u.memoizedState=jo,Yi(null,l)):(tl(u),wo(u,r))}var g=e.memoizedState;if(g!==null){var E=g.dehydrated;if(E!==null)return eb(e,u,r,h,l,E,g,n)}return i?(nl(),i=l.fallback,r=u.mode,g=e.child,E=g.sibling,l=pn(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&1206910976,E!==null?i=pn(E,i):(i=Ll(i,r,n,null),i.flags|=2),i.return=u,l.return=u,l.sibling=i,u.child=l,Yi(null,l),l=u.child,i=e.child.memoizedState,i===null?i=zo(n):(r=i.cachePool,r!==null?(g=ou._currentValue,r=r.parent!==g?{parent:g,pool:g}:r):r=kd(),i={baseLanes:i.baseLanes|n,cachePool:r}),l.memoizedState=i,l.childLanes=Ro(e,h,n),u.memoizedState=jo,Yi(e.child,l)):(tl(u),n=e.child,e=n.sibling,n=pn(n,{mode:"visible",children:l.children}),n.return=u,n.sibling=null,e!==null&&(h=u.deletions,h===null?(u.deletions=[e],u.flags|=16):h.push(e)),u.child=n,u.memoizedState=null,n)}function wo(e,u){return u=gr({mode:"visible",children:u},e.mode),u.return=e,e.child=u}function gr(e,u){return e=Ju(22,e,null,u),e.lanes=0,e}function yr(e,u,n){return Zl(u,e.child,null,n),e=wo(u,u.pendingProps.children),e.flags|=2,u.memoizedState=null,e}function eb(e,u,n,l,i,r,h,g){if(n)return u.flags&256?(tl(u),u.flags&=-257,yr(e,u,g)):u.memoizedState!==null?(nl(),u.child=e.child,u.flags|=128,null):(nl(),r=i.fallback,h=u.mode,i=gr({mode:"visible",children:i.children},h),r=Ll(r,h,g,null),r.flags|=2,i.return=u,r.return=u,i.sibling=r,u.child=i,Zl(u,e.child,null,g),i=u.child,i.memoizedState=zo(g),i.childLanes=Ro(e,l,g),u.memoizedState=jo,Yi(null,i));if(tl(u),z0(r)){if(l=r.nextSibling&&r.nextSibling.dataset,l)var E=l.dgst;return l=E,l!==""&&(i=Error(c(419)),i.stack="",i.digest=l,ji({value:i,source:null,stack:null})),yr(e,u,g)}if(du||Bl(e,u,g,!1),l=(g&e.childLanes)!==0,du||l){if(ul.current!==null)return yr(e,u,g);if(l=Xe,l!==null&&(i=fi(l,g),i!==0&&i!==h.retryLane))throw h.retryLane=i,Ml(e,i),ut(l,e,i),ko;return j0(r)||Lr(),yr(e,u,g)}return j0(r)?(u.flags|=192,u.child=e.child,null):(e=h.treeContext,Ie=At(r.nextSibling),vu=u,Ce=!0,Qn=null,Et=!1,e!==null&&Sd(u,e),u=wo(u,i.children),u.flags|=134221824,u)}function G1(e,u,n){e.lanes|=u;var l=e.alternate;l!==null&&(l.lanes|=u),$c(e.return,u,n)}function Y1(e){for(var u=null;e!==null;){var n=e.alternate;n!==null&&ar(n)===null&&(u=e),e=e.sibling}return u}function xr(e,u,n,l,i,r){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:r}:(h.isBackwards=u,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=i,h.treeForkCount=r)}function Mo(e){var u=e.child;for(e.child=null;u!==null;){var n=u.sibling;u.sibling=e.child,e.child=u,u=n}}function Lo(e,u,n){var l=u.pendingProps,i=l.revealOrder,r=l.tail;l=l.children;var h=ku.current;if(u.flags&128)return Bi(u,h),null;var g=(h&2)!==0;if(g?(h=h&1|2,u.flags|=128):h&=1,Bi(u,h),i==="backwards"&&e!==null?(Mo(e),gu(e,u,l,n),Mo(e)):gu(e,u,l,n),l=Ce?Oi:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=u.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&G1(e,n,u);else if(e.tag===19)G1(e,n,u);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===u)break e;for(;e.sibling===null;){if(e.return===null||e.return===u)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":n=Y1(u.child),n===null?(i=u.child,u.child=null):(i=n.sibling,n.sibling=null,Mo(u)),xr(u,!0,i,null,r,l);break;case"unstable_legacy-backwards":for(n=null,i=u.child,u.child=null;i!==null;){if(e=i.alternate,e!==null&&ar(e)===null){u.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xr(u,!0,n,null,r,l);break;case"together":xr(u,!1,null,null,void 0,l);break;case"independent":u.memoizedState=null;break;default:n=Y1(u.child),n===null?(i=u.child,u.child=null):(i=n.sibling,n.sibling=null),xr(u,!1,i,n,r,l)}return u.child}function V1(e,u,n){var l=u.pendingProps;return $n(u,u.type,l.value),gu(e,u,l.children,n),u.child}function _n(e,u,n){if(e!==null&&(u.dependencies=e.dependencies),cl|=u.lanes,(n&u.childLanes)===0)if(e!==null){if(Bl(e,u,n,!1),(n&u.childLanes)===0)return null}else return null;if(e!==null&&u.child!==e.child)throw Error(c(153));if(u.child!==null){for(e=u.child,n=pn(e,e.pendingProps),u.child=n,n.return=u;e.sibling!==null;)e=e.sibling,n=n.sibling=pn(e,e.pendingProps),n.return=u;n.sibling=null}return u.child}function Uo(e,u){return(e.lanes&u)!==0?!0:(e=e.dependencies,!!(e!==null&&Jc(e)))}function ub(e,u,n){switch(u.tag){case 3:lt(u,u.stateNode.containerInfo),$n(u,ou,e.memoizedState.cache),Ul();break;case 27:case 5:Sl(u);break;case 4:lt(u,u.stateNode.containerInfo);break;case 10:$n(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,co(u),null;break;case 13:var l=u.memoizedState;if(l!==null){if(l.dehydrated!==null)return tl(u),u.flags|=128,null;l=Bl(e,u,n,!1);var i=u.child.childLanes;return l||(n&i)!==0?q1(e,u,n):(tl(u),e=_n(e,u,n),e!==null?e.sibling:null)}tl(u);break;case 19:if(u.flags&128)return Lo(e,u,n);if(i=(e.flags&128)!==0,l=(n&u.childLanes)!==0,l||(Bl(e,u,n,!1),l=(n&u.childLanes)!==0),i){if(l)return Lo(e,u,n);u.flags|=128}if(i=u.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Bi(u,ku.current),l)break;return null;case 22:return u.lanes=0,M1(e,u,n,u.pendingProps);case 24:$n(u,ou,e.memoizedState.cache)}return _n(e,u,n)}function Z1(e,u,n){if(e!==null)if(e.memoizedProps!==u.pendingProps)du=!0;else{if(!Uo(e,n)&&(u.flags&128)===0)return du=!1,ub(e,u,n);du=(e.flags&131072)!==0}else du=!1,Ce&&(u.flags&1048576)!==0&&Ed(u,Oi,u.index);switch(u.lanes=0,u.tag){case 16:e:{var l=u.pendingProps;if(e=Yl(u.elementType),u.type=e,typeof e=="function")Ys(e)?(l=Il(e,l),u.tag=1,u=B1(null,u,e,l,n)):(u.tag=0,u=Oo(null,u,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===J){u.tag=11,u=z1(null,u,e,l,n);break e}else if(i===ve){u.tag=14,u=R1(null,u,e,l,n);break e}else if(i===xe){u.tag=10,u.type=e,u=V1(null,u,n);break e}}throw u=ze(e)||e,Error(c(306,u,""))}}return u;case 0:return Oo(e,u,u.type,u.pendingProps,n);case 1:return l=u.type,i=Il(l,u.pendingProps),B1(e,u,l,i,n);case 3:e:{if(lt(u,u.stateNode.containerInfo),e===null)throw Error(c(387));l=u.pendingProps;var r=u.memoizedState;i=r.element,to(e,u),Fi(u,l,null,n);var h=u.memoizedState;if(l=h.cache,$n(u,ou,l),l!==r.cache&&$s(u,[ou],n,!0),Ui(),l=h.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:h.cache},u.updateQueue.baseState=r,u.memoizedState=r,u.flags&256){u=H1(e,u,l,n);break e}else if(l!==i){i=xt(Error(c(424)),u),ji(i),u=H1(e,u,l,n);break e}else for(e=u.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ie=At(e.firstChild),vu=u,Ce=!0,Qn=null,Et=!0,n=Md(u,null,l,n),u.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling;else{if(Ul(),l===i){u=_n(e,u,n);break e}gu(e,u,l,n)}u=u.child}return u;case 26:return Ra(e,u),e===null?(n=bm(u.type,null,u.pendingProps,null))?u.memoizedState=n:Ce||(u.stateNode=Kh(u.type,u.pendingProps,ru.current,u)):u.memoizedState=bm(u.type,e.memoizedProps,u.pendingProps,e.memoizedState),null;case 27:return Sl(u),e===null&&Ce&&(l=u.stateNode=dm(u.type,u.pendingProps,ru.current),vu=u,Et=!0,i=Ie,fl(u.type)?(R0=i,Ie=At(l.firstChild)):Ie=i),gu(e,u,u.pendingProps.children,n),Ra(e,u),e===null&&(u.flags|=4194304),u.child;case 5:return e===null&&Ce&&((i=l=Ie)&&(l=Kb(l,u.type,u.pendingProps,Et),l!==null?(u.stateNode=l,vu=u,Ie=At(l.firstChild),Et=!1,i=!0):i=!1),i||Kn(u)),Sl(u),i=u.type,r=u.pendingProps,h=e!==null?e.memoizedProps:null,l=r.children,A0(i,r)?l=null:h!==null&&A0(i,h)&&(u.flags|=32),u.memoizedState!==null&&(i=oo(e,u,V3,null,null,n),Ja._currentValue=i),Ra(e,u),gu(e,u,l,n),u.child;case 6:return e===null&&Ce&&((e=n=Ie)&&(n=$b(n,u.pendingProps,Et),n!==null?(u.stateNode=n,vu=u,Ie=null,e=!0):e=!1),e||Kn(u)),null;case 13:return q1(e,u,n);case 4:return lt(u,u.stateNode.containerInfo),l=u.pendingProps,e===null?u.child=Zl(u,null,l,n):gu(e,u,l,n),u.child;case 11:return z1(e,u,u.type,u.pendingProps,n);case 7:return l=u.pendingProps,Ra(e,u),gu(e,u,l,n),u.child;case 8:return gu(e,u,u.pendingProps.children,n),u.child;case 12:return gu(e,u,u.pendingProps.children,n),u.child;case 10:return V1(e,u,n);case 9:return i=u.type._context,l=u.pendingProps.children,Hl(u),i=Du(i),l=l(i),u.flags|=1,gu(e,u,l,n),u.child;case 14:return R1(e,u,u.type,u.pendingProps,n);case 15:return w1(e,u,u.type,u.pendingProps,n);case 19:return Lo(e,u,n);case 31:return W3(e,u,n);case 22:return M1(e,u,n,u.pendingProps);case 24:return Hl(u),l=Du(ou),e===null?(i=Ws(),i===null&&(i=Xe,r=Js(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=n),i=r),u.memoizedState={parent:l,cache:i},uo(u),$n(u,ou,i)):((e.lanes&n)!==0&&(to(e,u),Fi(u,null,null,n),Ui()),i=e.memoizedState,r=u.memoizedState,i.parent!==l?(i={parent:l,cache:l},u.memoizedState=i,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=i),$n(u,ou,l)):(l=r.cache,$n(u,ou,l),l!==i.cache&&$s(u,[ou],n,!0))),gu(e,u,u.pendingProps.children,n),u.child;case 30:return u.stateNode===null&&(u.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=u.pendingProps,l.name!=null&&l.name!=="auto"?u.flags|=e===null?18882560:18874368:Ce&&Qc(u),e!==null&&e.memoizedProps.name!==l.name?u.flags|=4194816:Ra(e,u),gu(e,u,l.children,n),u.child;case 29:throw u.pendingProps}throw Error(c(156,u.tag))}function En(e){e.flags|=4}function Fo(e,u,n,l,i){var r;if((r=(e.mode&32)!==0)&&(r=n===null?vm(u,l):vm(u,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),r){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Ch())e.flags|=8192;else throw Vl=ur,eo}else e.flags&=-16777217}function X1(e,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_m(u))if(Ch())e.flags|=8192;else throw Vl=ur,eo}function vr(e,u){u!==null&&(e.flags|=4),e.flags&16384&&(u=e.tag!==22?Un():536870912,e.lanes|=u,Fa|=u)}function Vi(e,u){if(!Ce)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?u||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null;break;default:for(u=e.tail,n=null;u!==null;)u.alternate!==null&&(n=u),u=u.sibling;n===null?e.tail=null:n.sibling=null}}function Qe(e){var u=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(u)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&1206910976,l|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=n,u}function tb(e,u,n){var l=u.pendingProps;switch(Xs(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(u),null;case 1:return Qe(u),null;case 3:return n=u.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),u.memoizedState.cache!==l&&(u.flags|=2048),yn(ou),cn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ca(u)?En(u):e===null||e.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Qs())),Qe(u),null;case 26:var i=u.type,r=u.memoizedState;return e===null?(En(u),r!==null?(Qe(u),X1(u,r)):(Qe(u),Fo(u,i,null,l,n))):r?r!==e.memoizedState?(En(u),Qe(u),X1(u,r)):(Qe(u),u.flags&=-16777217):(e=e.memoizedProps,e!==l&&En(u),Qe(u),Fo(u,i,e,l,n)),null;case 27:if(Al(u),n=ru.current,i=u.type,e!==null&&u.stateNode!=null)e.memoizedProps!==l&&En(u);else{if(!l){if(u.stateNode===null)throw Error(c(166));return Qe(u),u.subtreeFlags&=-33554433,null}e=X.current,Ca(u)?Ad(u):(e=dm(i,l,n),u.stateNode=e,En(u))}return Qe(u),u.subtreeFlags&=-33554433,null;case 5:if(Al(u),i=u.type,e!==null&&u.stateNode!=null)e.memoizedProps!==l&&En(u);else{if(!l){if(u.stateNode===null)throw Error(c(166));return Qe(u),u.subtreeFlags&=-33554433,null}if(r=X.current,Ca(u))Ad(u);else{var h=uc(ru.current);switch(r){case 1:r=h.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=h.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=h.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=h.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=h.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?h.createElement(i,{is:l.is}):h.createElement(i)}}r[pu]=u,r[Fu]=l;e:for(h=u.child;h!==null;){if(h.tag===5||h.tag===6)r.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break e;for(;h.sibling===null;){if(h.return===null||h.return===u)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}u.stateNode=r;e:switch(ju(r,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&En(u)}}return Qe(u),u.subtreeFlags&=-33554433,Fo(u,u.type,e===null?null:e.memoizedProps,u.pendingProps,n),null;case 6:if(e&&u.stateNode!=null)e.memoizedProps!==l&&En(u);else{if(typeof l!="string"&&u.stateNode===null)throw Error(c(166));if(e=ru.current,Ca(u)){if(e=u.stateNode,n=u.memoizedProps,l=null,i=vu,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[pu]=u,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Zh(e.nodeValue,n)),e||Kn(u,!0)}else e=uc(e).createTextNode(l),e[pu]=u,u.stateNode=e}return Qe(u),null;case 31:if(n=u.memoizedState,e===null||e.memoizedState!==null){if(l=Ca(u),n!==null){if(e===null){if(!l)throw Error(c(318));if(e=u.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[pu]=u}else Ul(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Qe(u),e=!1}else n=Qs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return u.flags&256?(ct(u),u):(ct(u),null);if((u.flags&128)!==0)throw Error(c(558))}return Qe(u),null;case 13:if(l=u.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Ca(u),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=u.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[pu]=u}else Ul(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Qe(u),i=!1}else i=Qs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return u.flags&256?(ct(u),u):(ct(u),null)}return ct(u),(u.flags&128)!==0?(u.lanes=n,u):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=u.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==i&&(l.flags|=2048)),n!==e&&n&&(u.child.flags|=8192),vr(u,u.updateQueue),Qe(u),null);case 4:return cn(),e===null&&x0(u.stateNode.containerInfo),u.flags|=67108864,Qe(u),null;case 10:return yn(u.type),Qe(u),null;case 19:if(ro(u),l=u.memoizedState,l===null)return Qe(u),null;if(i=(u.flags&128)!==0,r=l.rendering,r===null)if(i)Vi(l,!1);else{if(au!==0||e!==null&&(e.flags&128)!==0)for(e=u.child;e!==null;){if(r=ar(e),r!==null){for(u.flags|=128,Vi(l,!1),e=r.updateQueue,u.updateQueue=e,vr(u,e),u.subtreeFlags=0,e=n,n=u.child;n!==null;)xd(n,e),n=n.sibling;return Bi(u,ku.current&1|2),Ce&&bn(u,l.treeForkCount),u.child}e=e.sibling}l.tail!==null&&Lu()>zr&&(u.flags|=128,i=!0,Vi(l,!1),u.lanes=4194304)}else{if(!i)if(e=ar(r),e!==null){if(u.flags|=128,i=!0,e=e.updateQueue,u.updateQueue=e,vr(u,e),Vi(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!r.alternate&&!Ce)return Qe(u),null}else 2*Lu()-l.renderingStartTime>zr&&n!==536870912&&(u.flags|=128,i=!0,Vi(l,!1),u.lanes=4194304);l.isBackwards?(r.sibling=u.child,u.child=r):(e=l.last,e!==null?e.sibling=r:u.child=r,l.last=r)}if(l.tail!==null){e=l.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Lu(),e.sibling=null,r=ku.current,r=i?r&1|2:r&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||Ce?Bi(u,r):(n=r,M(Nu,u),M(ku,n),Hu===null&&(Hu=u)),Ce&&bn(u,l.treeForkCount),e}return Qe(u),null;case 22:case 23:return ct(u),io(),l=u.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(u.flags|=8192):l&&(u.flags|=8192),l?(n&536870912)!==0&&(u.flags&128)===0&&(Qe(u),u.subtreeFlags&6&&(u.flags|=8192)):Qe(u),n=u.updateQueue,n!==null&&vr(u,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(l=u.memoizedState.cachePool.pool),l!==n&&(u.flags|=2048),e!==null&&eu(Gl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),u.memoizedState.cache!==n&&(u.flags|=2048),yn(ou),Qe(u),null;case 25:return null;case 30:return u.flags|=33554432,Qe(u),null}throw Error(c(156,u.tag))}function nb(e,u){switch(Xs(u),u.tag){case 1:return e=u.flags,e&65536?(u.flags=e&-65537|128,u):null;case 3:return yn(ou),cn(),e=u.flags,(e&65536)!==0&&(e&128)===0?(u.flags=e&-65537|128,u):null;case 26:case 27:case 5:return Al(u),null;case 31:if(u.memoizedState!==null){if(ct(u),u.alternate===null)throw Error(c(340));Ul()}return e=u.flags,e&65536?(u.flags=e&-65537|128,u):null;case 13:if(ct(u),e=u.memoizedState,e!==null&&e.dehydrated!==null){if(u.alternate===null)throw Error(c(340));Ul()}return e=u.flags,e&65536?(u.flags=e&-65537|128,u):null;case 19:return ro(u),e=u.flags,e&65536?(u.flags=e&-65537|128,e=u.memoizedState,e!==null&&(e.rendering=null,e.tail=null),u.flags|=4,u):null;case 4:return cn(),null;case 10:return yn(u.type),null;case 22:case 23:return ct(u),io(),e!==null&&eu(Gl),e=u.flags,e&65536?(u.flags=e&-65537|128,u):null;case 24:return yn(ou),null;case 25:return null;default:return null}}function I1(e,u){switch(Xs(u),u.tag){case 3:yn(ou),cn();break;case 26:case 27:case 5:Al(u);break;case 4:cn();break;case 31:u.memoizedState!==null&&ct(u);break;case 13:ct(u);break;case 19:ro(u);break;case 10:yn(u.type);break;case 22:case 23:ct(u),io(),e!==null&&eu(Gl);break;case 24:yn(ou)}}function Zi(e,u){try{var n=u.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&e)===e){l=void 0;var r=n.create,h=n.inst;l=r(),h.destroy=l}n=n.next}while(n!==i)}}catch(g){Ye(u,u.return,g)}}function ll(e,u,n){try{var l=u.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var r=i.next;l=r;do{if((l.tag&e)===e){var h=l.inst,g=h.destroy;if(g!==void 0){h.destroy=void 0,i=u;var E=n,O=g;try{O()}catch(w){Ye(i,E,w)}}}l=l.next}while(l!==r)}}catch(w){Ye(u,u.return,w)}}function Q1(e){var u=e.updateQueue;if(u!==null){var n=e.stateNode;try{Ud(u,n)}catch(l){Ye(e,e.return,l)}}}function K1(e,u,n){n.props=Il(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Ye(e,u,l)}}function It(e,u){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:var i=e.stateNode,r=hn(e.memoizedProps,i);(i.ref===null||i.ref.name!==r)&&(i.ref=tm(r)),l=i.ref;break;case 7:if(e.stateNode===null){var h=new dt(e);x(e.child,!1,Ib,h,void 0,void 0),e.stateNode=h}l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(g){Ye(e,u,g)}}function Ou(e,u){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Ye(e,u,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ye(e,u,i)}else n.current=null}function _r(e,u){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&u!==null)for(var n=0;n<u.length;n++)rm(e.stateNode,u[n])}function $1(e){for(var u=e.return;u!==null&&(Ho(u)&&rm(e.stateNode,u.stateNode),!Bo(u));)u=u.return}function Xi(e){for(var u=e.return;u!==null&&(Ho(u)&&Qb(e.stateNode,u.stateNode),!Bo(u));)u=u.return}function Bo(e){return e.tag===5||e.tag===3||e.tag===27}function Ho(e){return e&&e.tag===7&&e.stateNode!==null}function qo(e){var u=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Ye(e,e.return,i)}}function Go(e,u,n){try{var l=e.stateNode;kb(l,e.type,n,u),l[Fu]=u}catch(i){Ye(e,e.return,i)}}function J1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fl(e.type)||e.tag===4}function Yo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||J1(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&&fl(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 Vo(e,u,n,l){var i=e.tag;if(i===5||i===6)i=e.stateNode,u?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(i,u):(u=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.appendChild(i),n=n._reactRootContainer,n!=null||u.onclick!==null||(u.onclick=He)),_r(e,l),Te=!0;else if(i!==4&&(i===27&&(_r(e,l),l=null,fl(e.type)&&(n=e.stateNode,u=null)),e=e.child,e!==null))for(Vo(e,u,n,l),e=e.sibling;e!==null;)Vo(e,u,n,l),e=e.sibling}function Er(e,u,n,l){var i=e.tag;if(i===5||i===6)i=e.stateNode,u?n.insertBefore(i,u):n.appendChild(i),_r(e,l),Te=!0;else if(i!==4&&(i===27&&(_r(e,l),l=null,fl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Er(e,u,n,l),e=e.sibling;e!==null;)Er(e,u,n,l),e=e.sibling}function P1(e){var u=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=u.attributes;i.length;)u.removeAttributeNode(i[0]);ju(u,l,n),u[pu]=e,u[Fu]=n}catch(r){Ye(e,e.return,r)}}var Sr=!1,rt=null;function W1(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Sr=!0)}var Qt=null;function eh(){var e=Qt;return Qt=null,e}var Pu=0;function wa(e,u,n,l,i){return Pu=0,uh(e.child,u,n,l,i)}function uh(e,u,n,l,i){for(var r=!1;e!==null;){if(e.tag===5){var h=e.stateNode;if(l!==null){var g=D0(h);l.push(g),g.view&&(r=!0)}else r||D0(h).view&&(r=!0);Sr=!0,em(h,Pu===0?u:u+"_"+Pu,n),Pu++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||uh(e.child,u,n,l,i)&&(r=!0));e=e.sibling}return r}function Kt(e,u){for(;e!==null;)e.tag===5?um(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&u||Kt(e.child,u)),e=e.sibling}function Ar(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ar(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var u=e.memoizedProps;if(u.name==null||u.name==="auto")throw Error(c(544));var n=u.name;u=mn(u.default,u.share),u!=="none"&&(wa(e,n,u,null,!1)||Kt(e.child,!1))}e=e.sibling}}function Zo(e,u){if(e.tag===30){var n=e.stateNode,l=e.memoizedProps,i=hn(l,n),r=mn(l.default,n.paired?l.share:l.enter);r!=="none"?wa(e,i,r,null,!1)?(Ar(e),n.paired||u||Ga(e,l.onEnter)):Kt(e.child,!1):Ar(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Zo(e,u),e=e.sibling;else Ar(e)}function Xo(e){if(rt!==null&&rt.size!==0){var u=rt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,l=n.name;if(l!=null&&l!=="auto"){var i=u.get(l);if(i!==void 0){var r=mn(n.default,n.share);if(r!=="none"&&(wa(e,l,r,null,!1)?(r=e.stateNode,i.paired=r,r.paired=i,Ga(e,n.onShare)):Kt(e.child,!1)),u.delete(l),u.size===0)break}}}Xo(e)}e=e.sibling}}}function Io(e){if(e.tag===30){var u=e.memoizedProps,n=hn(u,e.stateNode),l=rt!==null?rt.get(n):void 0,i=mn(u.default,l!==void 0?u.share:u.exit);i!=="none"&&(wa(e,n,i,null,!1)?l!==void 0?(i=e.stateNode,l.paired=i,i.paired=l,rt.delete(n),Ga(e,u.onShare)):Ga(e,u.onExit):Kt(e.child,!1)),rt!==null&&Xo(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Io(e),e=e.sibling;else rt!==null&&Xo(e)}function th(e){for(e=e.child;e!==null;){if(e.tag===30){var u=e.memoizedProps,n=hn(u,e.stateNode);u=mn(u.default,u.update),e.flags&=-5,u!=="none"&&wa(e,n,u,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&th(e);e=e.sibling}}function Qo(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var u=e.stateNode;u.paired!==null&&(u.paired=null,Kt(e.child,!1))}Qo(e)}e=e.sibling}}function Tr(e){if(e.tag===30)e.stateNode.paired=null,Kt(e.child,!1),Qo(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Tr(e),e=e.sibling;else Qo(e)}function nh(e){for(e=e.child;e!==null;)e.tag===30?Kt(e.child,!1):(e.subtreeFlags&33554432)!==0&&nh(e),e=e.sibling}function Ko(e,u,n,l,i,r,h){for(var g=!1;u!==null;){if(u.tag===5){var E=u.stateNode;if(r!==null&&Pu<r.length){var O=r[Pu],w=D0(E);(O.view||w.view)&&(g=!0);var F;if(F=(e.flags&4)===0)if(w.clip)F=!0;else{F=O.rect;var D=w.rect;F=F.y!==D.y||F.x!==D.x||F.height!==D.height||F.width!==D.width}F&&(e.flags|=4),w.abs?w=!O.abs:(O=O.rect,w=w.rect,w=O.height!==w.height||O.width!==w.width),w&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&em(E,Pu===0?n:n+"_"+Pu,i),g&&(e.flags&4)!==0||(Qt===null&&(Qt=[]),Qt.push(E,Pu===0?l:l+"_"+Pu,u.memoizedProps)),Pu++}else(u.tag!==22||u.memoizedState===null)&&(u.tag===30&&h?e.flags|=u.flags&32:Ko(e,u.child,n,l,i,r,h)&&(g=!0));u=u.sibling}return g}function lh(e,u){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,l=e.stateNode,i=hn(n,l),r=mn(n.default,n.update),h;h=e.memoizedState,e.memoizedState=null,l=e;var g=e.child;Pu=0,i=Ko(l,g,i,i,r,h,!1),(e.flags&4)!==0&&i&&Ga(e,n.onUpdate)}else(e.subtreeFlags&33554432)!==0&&lh(e);e=e.sibling}}var _u=!1,qe=!1,$t=!1,$o=!1,ah=typeof WeakSet=="function"?WeakSet:Set,Eu=null,Jt=!1,Ii=!1,Cr=!1,Jo=!1;function lb(e,u,n){if(e=e.containerInfo,E0=Pa,e=sd(e),Ls(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var r=i.anchorOffset,h=i.focusNode;i=i.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var g=0,E=-1,O=-1,w=0,F=0,D=e,z=null;u:for(;;){for(var P;D!==l||r!==0&&D.nodeType!==3||(E=g+r),D!==h||i!==0&&D.nodeType!==3||(O=g+i),D.nodeType===3&&(g+=D.nodeValue.length),(P=D.firstChild)!==null;)z=D,D=P;for(;;){if(D===e)break u;if(z===l&&++w===r&&(E=g),z===h&&++F===i&&(O=g),(P=D.nextSibling)!==null)break;D=z,z=D.parentNode}D=P}l=E===-1||O===-1?null:{start:E,end:O}}else l=null}l=l||{start:0,end:0}}else l=null;for(S0={focusedElem:e,selectionRange:l},Pa=!1,n=(n&335544064)===n,Eu=u,u=n?9270:1024;Eu!==null;){if(e=Eu,n&&(l=e.deletions,l!==null))for(r=0;r<l.length;r++)n&&Io(l[r]);if(e.alternate===null&&(e.flags&2)!==0)n&&W1(e),Dr(n);else{if(e.tag===22){if(l=e.alternate,e.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&Io(l),Dr(n);continue}else if(l!==null&&l.memoizedState!==null){n&&W1(e),Dr(n);continue}}l=e.child,(e.subtreeFlags&u)!==0&&l!==null?(l.return=e,Eu=l):(n&&th(e),Dr(n))}}rt=null}function Dr(e){for(;Eu!==null;){var u=Eu,n=e,l=u.alternate,i=u.flags;switch(u.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&l!==null){n=void 0,i=l.memoizedProps,l=l.memoizedState;var r=u.stateNode;try{var h=Il(u.type,i);n=r.getSnapshotBeforeUpdate(h,l),r.__reactInternalSnapshotBeforeUpdate=n}catch(g){Ye(u,u.return,g)}}break;case 3:if((i&1024)!==0){if(l=u.stateNode.containerInfo,n=l.nodeType,n===9)O0(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":O0(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&l!==null&&(n=hn(l.memoizedProps,l.stateNode),i=u.memoizedProps,i=mn(i.default,i.update),i!=="none"&&wa(l,n,i,l.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(c(163))}if(l=u.sibling,l!==null){l.return=u.return,Eu=l;break}Eu=u.return}}function ih(e,u,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Pt(e,n),l&4&&Zi(5,n);break;case 1:if(Pt(e,n),l&4)if(e=n.stateNode,u===null)try{e.componentDidMount()}catch(h){Ye(n,n.return,h)}else{var i=Il(n.type,u.memoizedProps);u=u.memoizedState;try{e.componentDidUpdate(i,u,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ye(n,n.return,h)}}l&64&&Q1(n),l&512&&It(n,n.return);break;case 3:if(Pt(e,n),l&64&&(e=n.updateQueue,e!==null)){if(u=null,n.child!==null)switch(n.child.tag){case 27:case 5:u=n.child.stateNode;break;case 1:u=n.child.stateNode}try{Ud(e,u)}catch(h){Ye(n,n.return,h)}}break;case 27:u===null&&l&4&&P1(n);case 26:case 5:Pt(e,n),u===null&&l&4&&qo(n),l&512&&It(n,n.return);break;case 12:Pt(e,n);break;case 31:Pt(e,n),l&4&&oh(e,n);break;case 13:Pt(e,n),l&4&&fh(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=bb.bind(null,n),Jb(e,n))));break;case 22:if(l=n.memoizedState!==null||_u,!l){var r=u!==null&&u.memoizedState!==null||qe;u=_u,i=qe,_u=l,(qe=r)&&!i?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),Mt(e,n,l)):Pt(e,n),_u=u,qe=i}break;case 30:Pt(e,n),l&512&&It(n,n.return);break;case 7:l&512&&It(n,n.return);default:Pt(e,n)}}function Po(e,u){for(e=e.child;e!==null;)ch(e,u),e=e.sibling}function ch(e,u){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(u){var l=n.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var i=e.stateNode,r=e.memoizedProps.style,h=r!=null&&r.hasOwnProperty("display")?r.display:null;i.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(E){Ye(e,e.return,E)}Wo(e,u);break;case 6:try{e.stateNode.nodeValue=u?"":e.memoizedProps,Te=!0}catch(E){Ye(e,e.return,E)}break;case 18:try{var g=e.stateNode;u?Wh(g,!0):Wh(e.stateNode,!1)}catch(E){Ye(e,e.return,E)}break;case 22:case 23:e.memoizedState===null&&Po(e,u);break;default:Po(e,u)}}function Wo(e,u){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,l=u;switch(n.tag){case 4:ch(n,l);break e;case 22:n.memoizedState===null&&Wo(n,l);break e;default:Wo(n,l)}}e=e.sibling}}function rh(e){var u=e.alternate;u!==null&&(e.alternate=null,rh(u)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(u=e.stateNode,u!==null&&Hn(u)),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 Pe=null,Wu=!1;function Rt(e,u,n){for(n=n.child;n!==null;)sh(e,u,n),n=n.sibling}function sh(e,u,n){if(Uu&&typeof Uu.onCommitFiberUnmount=="function")try{Uu.onCommitFiberUnmount(jn,n)}catch{}switch(n.tag){case 26:qe||Ou(n,u),Rt(e,u,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!qe&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:qe||Ou(n,u),Xi(n);var l=Pe,i=Wu;fl(n.type)&&(Pe=n.stateNode,Wu=!1),Rt(e,u,n),hm(n.stateNode,n.type,n.memoizedProps),Pe=l,Wu=i;break;case 5:qe||Ou(n,u),Xi(n);case 6:if(n.tag===6&&Xi(n),l=Pe,i=Wu,Pe=null,Rt(e,u,n),Pe=l,Wu=i,Pe!==null)if(Wu)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode),Te=!0}catch(r){Ye(n,u,r)}else try{Pe.removeChild(n.stateNode),Te=!0}catch(r){Ye(n,u,r)}break;case 18:Pe!==null&&(Wu?(e=Pe,Ph(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Wa(e)):Ph(Pe,n.stateNode));break;case 4:l=Pe,i=Wu,Pe=n.stateNode.containerInfo,Wu=!0,Rt(e,u,n),Pe=l,Wu=i;break;case 0:case 11:case 14:case 15:ll(2,n,u),qe||ll(4,n,u),Rt(e,u,n);break;case 1:qe||(Ou(n,u),l=n.stateNode,typeof l.componentWillUnmount=="function"&&K1(n,u,l)),Rt(e,u,n);break;case 21:Rt(e,u,n);break;case 22:qe=(l=qe)||n.memoizedState!==null,Rt(e,u,n),qe=l;break;case 30:Ou(n,u),Rt(e,u,n);break;case 7:qe||Ou(n,u),Rt(e,u,n);break;default:Rt(e,u,n)}}function oh(e,u){if(u.memoizedState===null&&(e=u.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wa(e)}catch(n){Ye(u,u.return,n)}}}function fh(e,u){if(u.memoizedState===null&&(e=u.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wa(e)}catch(n){Ye(u,u.return,n)}}function ab(e){switch(e.tag){case 31:case 13:case 19:var u=e.stateNode;return u===null&&(u=e.stateNode=new ah),u;case 22:return e=e.stateNode,u=e._retryCache,u===null&&(u=e._retryCache=new ah),u;default:throw Error(c(435,e.tag))}}function Nr(e,u){var n=ab(e);u.forEach(function(l){if(!n.has(l)){n.add(l);var i=gb.bind(null,e,l);l.then(i,i)}})}function Xu(e,u,n){var l=u.deletions;if(l!==null)for(var i=0;i<l.length;i++){var r=l[i],h=e,g=u,E=g;e:for(;E!==null;){switch(E.tag){case 27:if(fl(E.type)){Pe=E.stateNode,Wu=!1;break e}break;case 5:Pe=E.stateNode,Wu=!1;break e;case 3:case 4:Pe=E.stateNode.containerInfo,Wu=!0;break e}E=E.return}if(Pe===null)throw Error(c(160));sh(h,g,r),Pe=null,Wu=!1,h=r.alternate,h!==null&&(h.return=null),r.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)dh(u,e,n),u=u.sibling}var wt=null;function dh(e,u,n){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(var r=0;r<l.length;r++){var h=l[r];h.ref.impl=h.nextImpl}Xu(u,e,n),Iu(e),i&4&&(ll(3,e,e.return),Zi(3,e),ll(5,e,e.return));break;case 1:Xu(u,e,n),Iu(e),i&512&&(qe||l===null||Ou(l,l.return)),i&64&&_u&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?u:n.concat(u))));break;case 26:if(r=wt,Xu(u,e,n),Iu(e),i&512&&(qe||l===null||Ou(l,l.return)),i&4)if(i=l!==null?l.memoizedState:null,n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null)if(_u)e.stateNode=Kh(e.type,e.memoizedProps,u.containerInfo,e);else{e:{u=e.type,n=e.memoizedProps,i=r.ownerDocument||r;u:switch(u){case"title":l=i.getElementsByTagName("title")[0],(!l||l[sn]||l[pu]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=i.createElement(u),i.head.insertBefore(l,i.querySelector("head > title"))),ju(l,u,n),l[pu]=e,su(l),u=l;break e;case"link":if(r=xm("link","href",i).get(u+(n.href||""))){for(h=0;h<r.length;h++)if(l=r[h],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(h,1);break u}}l=i.createElement(u),ju(l,u,n),i.head.appendChild(l);break;case"meta":if(r=xm("meta","content",i).get(u+(n.content||""))){for(h=0;h<r.length;h++)if(l=r[h],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(h,1);break u}}l=i.createElement(u),ju(l,u,n),i.head.appendChild(l);break;default:throw Error(c(468,u))}l[pu]=e,su(l),u=l}e.stateNode=u}else _u||U0(r,e.type,e.stateNode);else e.stateNode=ym(r,n,e.memoizedProps);else i!==n?(i===null?(u=l.stateNode,u===null||qe||u.parentNode.removeChild(u)):i.count--,n===null?_u||U0(r,e.type,e.stateNode):ym(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Go(e,e.memoizedProps,l.memoizedProps);break;case 27:Xu(u,e,n),Iu(e),i&512&&(qe||l===null||Ou(l,l.return)),l!==null&&i&4&&Go(e,e.memoizedProps,l.memoizedProps);break;case 5:if(r=$t,$t=!1,Xu(u,e,n),$t=r,Iu(e),i&512&&(qe||l===null||Ou(l,l.return)),e.flags&32){u=e.stateNode;try{G(u,""),Te=!0}catch(w){Ye(e,e.return,w)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,Go(e,u,l!==null?l.memoizedProps:u)),i&1024&&($o=!0);break;case 6:if(Xu(u,e,n),Iu(e),i&4){if(e.stateNode===null)throw Error(c(162));u=e.memoizedProps,n=e.stateNode;try{n.nodeValue=u,Te=!0}catch(w){Ye(e,e.return,w)}}break;case 3:if(Te=!1,Yr=null,r=wt,wt=tc(u.containerInfo),Xu(u,e,n),wt=r,Iu(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Wa(u.containerInfo)}catch(w){Ye(e,e.return,w)}$o&&($o=!1,hh(e)),Te=!1;break;case 4:i=$t,$t=_u,l=Gn(),r=wt,wt=tc(e.stateNode.containerInfo),Xu(u,e,n),Iu(e),wt=r,Te&&Ii&&(Cr=!0),Te=l,$t=i;break;case 12:Xu(u,e,n),Iu(e);break;case 31:Xu(u,e,n),Iu(e),i&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Nr(e,u)));break;case 13:Xu(u,e,n),Iu(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(jr=Lu()),i&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Nr(e,u)));break;case 22:r=e.memoizedState!==null,h=l!==null&&l.memoizedState!==null;var g=_u,E=qe,O=$t;_u=g||r,$t=O||r,qe=E||h,Xu(u,e,n),qe=E,$t=O,_u=g,Iu(e),i&8192&&(u=e.stateNode,u._visibility=r?u._visibility&-2:u._visibility|1,!r||l===null||h||_u||qe||(u=h||qe,n=_u,l=qe,_u=r||_u,qe=u,al(e,2),_u=n,qe=l),!r&&$t||Po(e,r)),i&4&&(u=e.updateQueue,u!==null&&(n=u.retryQueue,n!==null&&(u.retryQueue=null,Nr(e,n))));break;case 19:Xu(u,e,n),Iu(e),i&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Nr(e,u)));break;case 30:i&512&&(qe||l===null||Ou(l,l.return)),i=Gn(),r=Ii,h=(n&335544064)===n,g=e.memoizedProps,Ii=h&&mn(g.default,g.update)!=="none",Xu(u,e,n),Iu(e),h&&l!==null&&Te&&(e.flags|=4),Ii=r,Te=i;break;case 21:break;case 7:i&512&&(qe||l===null||Ou(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=e);default:Xu(u,e,n),Iu(e)}}function Iu(e){var u=e.flags;if(u&2){try{for(var n,l=e.return;l!==null;){if(J1(l)){n=l;break}l=l.return}l=null;for(var i=e.return;i!==null;){if(Ho(i)){var r=i.stateNode;l===null?l=[r]:l.push(r)}if(Bo(i))break;i=i.return}var h=l;if(n==null)throw Error(c(160));switch(n.tag){case 27:var g=n.stateNode,E=Yo(e);Er(e,E,g,h);break;case 5:var O=n.stateNode;n.flags&32&&(G(O,""),n.flags&=-33);var w=Yo(e);Er(e,w,O,h);break;case 3:case 4:var F=n.stateNode.containerInfo,D=Yo(e);Vo(e,D,F,h);break;default:throw Error(c(161))}}catch(z){Ye(e,e.return,z)}e.flags&=-3}u&4096&&(e.flags&=-4097)}function hh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var u=e;hh(u),u.tag===5&&u.flags&1024&&(u=u.stateNode,Pa=!0,u.reset(),Pa=!1),e=e.sibling}}function Ma(e,u){if(u.subtreeFlags&9270)for(u=u.child;u!==null;)mh(u,e),u=u.sibling;else lh(u)}function mh(e,u){var n=e.alternate;if(n===null)Zo(e,!1);else switch(e.tag){case 3:if(Jo=Jt=!1,eh(),Ma(u,e),!Jt&&!Cr){if(e=Qt,e!==null)for(var l=0;l<e.length;l+=3){n=e[l];var i=e[l+1];um(n,e[l+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}e=u.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Jo=!0}Qt=null;break;case 5:Ma(u,e);break;case 4:l=Jt,Jt=!1,Ma(u,e),Jt&&(Cr=!0),Jt=l;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?Zo(e,!1):Ma(u,e));break;case 30:l=Jt,i=eh(),Jt=!1,Ma(u,e),Jt&&(e.flags|=4);var r=e.memoizedProps,h=e.stateNode;u=hn(r,h),h=hn(n.memoizedProps,h);var g=mn(r.default,r.update);g==="none"?u=!1:(r=n.memoizedState,n.memoizedState=null,n=e.child,Pu=0,u=Ko(e,n,u,h,g,r,!0),Pu!==(r===null?0:r.length)&&(e.flags|=32)),(e.flags&4)!==0&&u?(Ga(e,e.memoizedProps.onUpdate),Qt=i):i!==null&&(i.push.apply(i,Qt),Qt=i),Jt=(e.flags&32)!==0?!0:l;break;default:Ma(u,e)}}function Pt(e,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)ih(e,u.alternate,u),u=u.sibling}function al(e,u){for(e=e.child;e!==null;){var n=e,l=u;switch(n.tag){case 0:case 11:case 14:case 15:ll(4,n,n.return),al(n,l);break;case 1:Ou(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&K1(n,n.return,i),al(n,l);break;case 27:(l&2)!==0&&hm(n.stateNode,n.type,n.memoizedProps);case 5:Ou(n,n.return),n.tag!==5&&n.tag!==27||Xi(n),al(n,l);break;case 6:Xi(n);break;case 26:Ou(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||qe||i.parentNode.removeChild(i),al(n,l);break;case 22:n.memoizedState===null&&al(n,l);break;case 30:Ou(n,n.return),al(n,l);break;case 7:Ou(n,n.return);default:al(n,l)}e=e.sibling}}function Mt(e,u,n){for(n=(u.subtreeFlags&8772)!==0?n:n&-2,u=u.child;u!==null;){var l=u.alternate,i=e,r=u,h=r.flags,g=(n&1)!==0;switch(r.tag){case 0:case 11:case 15:Mt(i,r,n),Zi(4,r);break;case 1:if(Mt(i,r,n),l=r,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(w){Ye(l,l.return,w)}if(l=r,i=l.updateQueue,i!==null){var E=l.stateNode;try{var O=i.shared.hiddenCallbacks;if(O!==null)for(i.shared.hiddenCallbacks=null,i=0;i<O.length;i++)Ld(O[i],E)}catch(w){Ye(l,l.return,w)}}g&&h&64&&Q1(r),It(r,r.return);break;case 27:(n&2)!==0&&P1(r);case 5:r.tag!==5&&r.tag!==27||$1(r),Mt(i,r,n),g&&l===null&&h&4&&qo(r),It(r,r.return);break;case 6:$1(r);break;case 26:E=r.stateNode,r.memoizedState!==null||E===null||_u||U0(tc(E.ownerDocument),r.type,E),Mt(i,r,n),g&&l===null&&h&4&&qo(r),It(r,r.return);break;case 12:Mt(i,r,n);break;case 31:Mt(i,r,n),g&&h&4&&oh(i,r);break;case 13:Mt(i,r,n),g&&h&4&&fh(i,r);break;case 22:r.memoizedState===null&&Mt(i,r,n),It(r,r.return);break;case 30:Mt(i,r,n),It(r,r.return);break;case 7:It(r,r.return);default:Mt(i,r,n)}u=u.sibling}}function e0(e,u){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(e=u.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&zi(n))}function u0(e,u){e=null,u.alternate!==null&&(e=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==e&&(u.refCount++,e!=null&&zi(e))}function St(e,u,n,l){var i=(n&335544064)===n;if(u.subtreeFlags&(i?10262:10256))for(u=u.child;u!==null;)ph(e,u,n,l),u=u.sibling;else i&&nh(u)}function ph(e,u,n,l){var i=(n&335544064)===n;i&&u.alternate===null&&u.return!==null&&u.return.alternate!==null&&Tr(u);var r=u.flags;switch(u.tag){case 0:case 11:case 15:St(e,u,n,l),r&2048&&Zi(9,u);break;case 1:St(e,u,n,l);break;case 3:St(e,u,n,l),i&&Jo&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),r&2048&&(r=null,u.alternate!==null&&(r=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==r&&(u.refCount++,r!=null&&zi(r)));break;case 12:if(r&2048){St(e,u,n,l),r=u.stateNode;try{var h=u.memoizedProps,g=h.id,E=h.onPostCommit;typeof E=="function"&&E(g,u.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(O){Ye(u,u.return,O)}}else St(e,u,n,l);break;case 31:St(e,u,n,l);break;case 13:St(e,u,n,l);break;case 23:break;case 22:h=u.stateNode,g=u.alternate,u.memoizedState!==null?(i&&g!==null&&g.memoizedState===null&&Tr(g),h._visibility&2?St(e,u,n,l):Qi(e,u)):(i&&g!==null&&g.memoizedState!==null&&Tr(u),h._visibility&2?St(e,u,n,l):(h._visibility|=2,La(e,u,n,l,(u.subtreeFlags&10256)!==0||!1))),r&2048&&e0(g,u);break;case 24:St(e,u,n,l),r&2048&&u0(u.alternate,u);break;case 30:i&&(r=u.alternate,r!==null&&(Kt(r.child,!0),Kt(u.child,!0))),St(e,u,n,l);break;default:St(e,u,n,l)}}function La(e,u,n,l,i){for(i=i&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var r=e,h=u,g=n,E=l,O=h.flags;switch(h.tag){case 0:case 11:case 15:La(r,h,g,E,i),Zi(8,h);break;case 23:break;case 22:var w=h.stateNode;h.memoizedState!==null?w._visibility&2?La(r,h,g,E,i):Qi(r,h):(w._visibility|=2,La(r,h,g,E,i)),i&&O&2048&&e0(h.alternate,h);break;case 24:La(r,h,g,E,i),i&&O&2048&&u0(h.alternate,h);break;default:La(r,h,g,E,i)}u=u.sibling}}function Qi(e,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var n=e,l=u,i=l.flags;switch(l.tag){case 22:Qi(n,l),i&2048&&e0(l.alternate,l);break;case 24:Qi(n,l),i&2048&&u0(l.alternate,l);break;default:Qi(n,l)}u=u.sibling}}var Ql=8192;function Kl(e,u,n){if(e.subtreeFlags&Ql)for(e=e.child;e!==null;)bh(e,u,n),e=e.sibling}function bh(e,u,n){switch(e.tag){case 26:Kl(e,u,n),e.flags&Ql&&(e.memoizedState!==null?fg(n,wt,e.memoizedState,e.memoizedProps):(e=e.stateNode,(u&335544128)===u&&Sm(n,e)));break;case 5:Kl(e,u,n),e.flags&Ql&&(e=e.stateNode,(u&335544128)===u&&Sm(n,e));break;case 3:case 4:var l=wt;wt=tc(e.stateNode.containerInfo),Kl(e,u,n),wt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ql,Ql=16777216,Kl(e,u,n),Ql=l):Kl(e,u,n));break;case 30:if((e.flags&Ql)!==0&&(l=e.memoizedProps.name,l!=null&&l!=="auto")){var i=e.stateNode;i.paired=null,rt===null&&(rt=new Map),rt.set(l,i)}Kl(e,u,n);break;default:Kl(e,u,n)}}function gh(e){var u=e.alternate;if(u!==null&&(e=u.child,e!==null)){u.child=null;do u=e.sibling,e.sibling=null,e=u;while(e!==null)}}function Ki(e){var u=e.deletions;if((e.flags&16)!==0){if(u!==null)for(var n=0;n<u.length;n++){var l=u[n];Eu=l,xh(l,e)}gh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yh(e),e=e.sibling}function yh(e){switch(e.tag){case 0:case 11:case 15:Ki(e),e.flags&2048&&ll(9,e,e.return);break;case 3:Ki(e);break;case 12:Ki(e);break;case 22:var u=e.stateNode;e.memoizedState!==null&&u._visibility&2&&(e.return===null||e.return.tag!==13)?(u._visibility&=-3,kr(e)):Ki(e);break;default:Ki(e)}}function kr(e){var u=e.deletions;if((e.flags&16)!==0){if(u!==null)for(var n=0;n<u.length;n++){var l=u[n];Eu=l,xh(l,e)}gh(e)}for(e=e.child;e!==null;){switch(u=e,u.tag){case 0:case 11:case 15:ll(8,u,u.return),kr(u);break;case 22:n=u.stateNode,n._visibility&2&&(n._visibility&=-3,kr(u));break;default:kr(u)}e=e.sibling}}function xh(e,u){for(;Eu!==null;){var n=Eu;switch(n.tag){case 0:case 11:case 15:ll(8,n,u);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:zi(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Eu=l;else e:for(n=e;Eu!==null;){l=Eu;var i=l.sibling,r=l.return;if(rh(l),l===n){Eu=null;break e}if(i!==null){i.return=r,Eu=i;break e}Eu=r}}}var ib={getCacheForType:function(e){var u=Du(ou),n=u.data.get(e);return n===void 0&&(n=e(),u.data.set(e,n)),n},cacheSignal:function(){return Du(ou).controller.signal}},cb=typeof WeakMap=="function"?WeakMap:Map,Fe=0,Xe=null,Oe=null,Re=0,Ge=0,st=null,il=!1,Ua=!1,t0=!1,Sn=0,au=0,cl=0,$l=0,Or=0,ot=0,Fa=0,$i=null,et=null,n0=!1,jr=0,vh=0,zr=1/0,Rr=null,rl=null,tu=0,Lt=null,Jl=null,Wt=0,l0=0,a0=null,_h=null,Ba=null,Ha=null,qa=null,Ji=0,wr=null;function ft(){return(Fe&2)!==0&&Re!==0?Re&-Re:ee.T!==null?p0():di()}function Eh(){if(ot===0)if((Re&536870912)===0||Ce){var e=wn;wn<<=1,(wn&3932160)===0&&(wn=262144),ot=e}else ot=536870912;return e=Nu.current,e!==null&&(e.flags|=32),ot}function Ga(e,u){if(u!=null){var n=e.stateNode,l=n.ref;l===null&&(l=n.ref=tm(hn(e.memoizedProps,n))),Ha===null&&(Ha=[]),Ha.push(u.bind(null,l))}}function ut(e,u,n){(e===Xe&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Ya(e,0),sl(e,Re,ot,!1)),kl(e,n),((Fe&2)===0||e!==Xe)&&(e===Xe&&((Fe&2)===0&&($l|=n),au===4&&sl(e,Re,ot,!1)),en(e))}function Sh(e,u,n){if((Fe&6)!==0)throw Error(c(327));var l=!n&&(u&127)===0&&(u&e.expiredLanes)===0||Ln(e,u),i=l?ob(e,u):c0(e,u,!0),r=l;do{if(i===0){Ua&&!l&&sl(e,u,0,!1);break}else{if(n=e.current.alternate,r&&!rb(n)){i=c0(e,u,!1),r=!1;continue}if(i===2){if(r=u,e.errorRecoveryDisabledLanes&r)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){u=h;e:{var g=e;i=$i;var E=g.current.memoizedState.isDehydrated;if(E&&(Ya(g,h).flags|=256),h=c0(g,h,!1),h!==2&&h!==6){if(t0&&!E){g.errorRecoveryDisabledLanes|=r,$l|=r,i=4;break e}r=et,et=i,r!==null&&(et===null?et=r:et.push.apply(et,r))}i=h}if(r=!1,i!==2)continue}}if(i===1){Ya(e,0),sl(e,u,0,!0);break}e:{switch(l=e,r=i,r){case 0:case 1:throw Error(c(345));case 4:if((u&4194048)!==u&&(u&62914560)!==u)break;case 6:sl(l,u,ot,!il);break e;case 2:et=null;break;case 3:case 5:break;default:throw Error(c(329))}if((u&62914560)===u&&(i=jr+300-Lu(),10<i)){if(sl(l,u,ot,!il),Mn(l,0,!0)!==0)break e;Wt=u,l.timeoutHandle=C0(Ah.bind(null,l,n,et,Rr,n0,u,ot,$l,Fa,il,r,"Throttled",-0,0),i);break e}Ah(l,n,et,Rr,n0,u,ot,$l,Fa,il,r,null,-0,0)}}break}while(!0);en(e)}function Ah(e,u,n,l,i,r,h,g,E,O,w,F,D,z){e.timeoutHandle=-1;var P=u.subtreeFlags,le=(r&335544064)===r;if(F=null,(le||P&8192||(P&16785408)===16785408)&&(F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:He},rt=null,bh(u,r,F),le&&(P=F,le=e.containerInfo,le=(le.nodeType===9?le:le.ownerDocument).__reactViewTransition,le!=null&&(P.count++,P.waitingForViewTransition=!0,P=ac.bind(P),le.finished.then(P,P))),P=(r&62914560)===r?jr-Lu():(r&4194048)===r?vh-Lu():0,P=dg(F,P),P!==null)){Wt=r,e.cancelPendingCommit=P(zh.bind(null,e,u,r,n,l,i,h,g,E,O,w,F,null,D,z)),sl(e,r,h,!O);return}zh(e,u,r,n,l,i,h,g,E,O,w,F)}function rb(e){for(var u=e;;){var n=u.tag;if((n===0||n===11||n===15)&&u.flags&16384&&(n=u.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],r=i.getSnapshot;i=i.value;try{if(!it(r(),i))return!1}catch{return!1}}if(n=u.child,u.subtreeFlags&16384&&n!==null)n.return=u,u=n;else{if(u===e)break;for(;u.sibling===null;){if(u.return===null||u.return===e)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function sl(e,u,n,l){u=oa(e,u),u&=~Or,u&=~$l,e.suspendedLanes|=u,e.pingedLanes&=~u,l&&(e.warmLanes|=u),l=e.expirationTimes;for(var i=u;0<i;){var r=31-xu(i),h=1<<r;l[r]=-1,i&=~h}n!==0&&rn(e,n,u)}function Mr(){return(Fe&6)===0?(Pi(0),!1):!0}function i0(){if(Oe!==null){if(Ge===0)var e=Oe.return;else e=Oe,gn=Fl=null,mo(e),ka=null,Mi=0,e=Oe;for(;e!==null;)I1(e.alternate,e),e=e.return;Oe=null}}function Ya(e,u){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,zb(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Wt=0,i0(),Xe=e,Oe=n=pn(e.current,null),Re=u,Ge=0,st=null,il=!1,Ua=Ln(e,u),t0=!1,Fa=ot=Or=$l=cl=au=0,et=$i=null,n0=!1,Sn=oa(e,u),Yc(),n}function Th(e,u){Ee=null,ee.H=mr,u===Na||u===er?(u=zd(),Ge=3):u===eo?(u=zd(),Ge=4):Ge=u===ko?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,st=u,Oe===null&&(au=1,pr(e,xt(u,e.current)))}function Ch(){var e=Nu.current;return e===null?!0:(Re&4194048)===Re?Hu===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Hu:!1}function Dh(){var e=ee.H;return ee.H=mr,e===null?mr:e}function Nh(){var e=ee.A;return ee.A=ib,e}function Lr(){au=4,il||(Re&4194048)!==Re&&Nu.current!==null||(Ua=!0),(cl&134217727)===0&&($l&134217727)===0||Xe===null||sl(Xe,Re,ot,!1)}function c0(e,u,n){var l=Fe;Fe|=2;var i=Dh(),r=Nh();(Xe!==e||Re!==u)&&(Rr=null,Ya(e,u)),u=!1;var h=au;e:do try{if(Ge!==0&&Oe!==null){var g=Oe,E=st;switch(Ge){case 8:i0(),h=6;break e;case 3:case 2:case 9:case 6:Nu.current===null&&(u=!0);var O=Ge;if(Ge=0,st=null,Va(e,g,E,O),n&&Ua){h=0;break e}break;default:O=Ge,Ge=0,st=null,Va(e,g,E,O)}}sb(),h=au;break}catch(w){Th(e,w)}while(!0);return u&&e.shellSuspendCounter++,gn=Fl=null,Fe=l,ee.H=i,ee.A=r,Oe===null&&(Xe=null,Re=0,Yc()),h}function sb(){for(;Oe!==null;)kh(Oe)}function ob(e,u){var n=Fe;Fe|=2;var l=Dh(),i=Nh();Xe!==e||Re!==u?(Rr=null,zr=Lu()+500,Ya(e,u)):Ua=Ln(e,u);e:do try{if(Ge!==0&&Oe!==null){u=Oe;var r=st;u:switch(Ge){case 1:Ge=0,st=null,Va(e,u,r,1);break;case 2:case 9:if(Od(r)){Ge=0,st=null,Oh(u);break}u=function(){Ge!==2&&Ge!==9||Xe!==e||(Ge=7),en(e)},r.then(u,u);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Od(r)?(Ge=0,st=null,Oh(u)):(Ge=0,st=null,Va(e,u,r,7));break;case 5:var h=null;switch(Oe.tag){case 26:h=Oe.memoizedState;case 5:case 27:var g=Oe;if(h?_m(h):g.stateNode.complete){Ge=0,st=null;var E=g.sibling;if(E!==null)Oe=E;else{var O=g.return;O!==null?(Oe=O,Ur(O)):Oe=null}break u}}Ge=0,st=null,Va(e,u,r,5);break;case 6:Ge=0,st=null,Va(e,u,r,6);break;case 8:i0(),au=6;break e;default:throw Error(c(462))}}fb();break}catch(w){Th(e,w)}while(!0);return gn=Fl=null,ee.H=l,ee.A=i,Fe=n,Oe!==null?0:(Xe=null,Re=0,Yc(),au)}function fb(){for(;Oe!==null&&!aa();)kh(Oe)}function kh(e){var u=Z1(e.alternate,e,Sn);e.memoizedProps=e.pendingProps,u===null?Ur(e):Oe=u}function Oh(e){var u=e,n=u.alternate;switch(u.tag){case 15:case 0:u=F1(n,u,u.pendingProps,u.type,void 0,Re);break;case 11:u=F1(n,u,u.pendingProps,u.type.render,u.ref,Re);break;case 5:mo(u);var l=u;l===vu&&(Ce?(Kc(l),l.tag===5&&l.stateNode!=null&&(Ie=l.stateNode)):(Kc(l),Ce=!0));default:I1(n,u),u=Oe=xd(u,Sn),u=Z1(n,u,Sn)}e.memoizedProps=e.pendingProps,u===null?Ur(e):Oe=u}function Va(e,u,n,l){gn=Fl=null,mo(u),ka=null,Mi=0;var i=u.return;try{if(P3(e,i,u,n,Re)){au=1,pr(e,xt(n,e.current)),Oe=null;return}}catch(r){if(i!==null)throw Oe=i,r;au=1,pr(e,xt(n,e.current)),Oe=null;return}u.flags&32768?(Ce||l===1?e=!0:Ua||(Re&536870912)!==0?e=!1:(il=e=!0,(l===2||l===9||l===3||l===6)&&(l=Nu.current,l!==null&&l.tag===13&&(l.flags|=16384))),jh(u,e)):Ur(u)}function Ur(e){var u=e;do{if((u.flags&32768)!==0){jh(u,il);return}e=u.return;var n=tb(u.alternate,u,Sn);if(n!==null){Oe=n;return}if(u=u.sibling,u!==null){Oe=u;return}Oe=u=e}while(u!==null);au===0&&(au=5)}function jh(e,u){do{var n=nb(e.alternate,e);if(n!==null){n.flags&=32767,Oe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!u&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=n}while(e!==null);au=6,Oe=null}function zh(e,u,n,l,i,r,h,g,E,O,w,F){e.cancelPendingCommit=null;do Fr();while(tu!==0);if((Fe&6)!==0)throw Error(c(327));if(u!==null){if(u===e.current)throw Error(c(177));e===Xe&&(Oe=Xe=null,Re=0),Jl=u,Lt=e,Wt=n,a0=i,_h=l,db(e,u,n,h,g,E,F)}}function db(e,u,n,l,i,r,h){var g=u.lanes|u.childLanes;if(l0=g,g|=qs,uu(e,n,g,l,i,r),Ha=null,(n&335544064)===n?(qa=H3(e),l=10262):(qa=null,l=10256),(u.subtreeFlags&l)!==0||(u.flags&l)!==0?(e.callbackNode=null,e.callbackPriority=0,yb(bt,function(){return f0(),null})):(e.callbackNode=null,e.callbackPriority=0),Sr=!1,l=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||l){l=ee.T,ee.T=null,i=he.p,he.p=2,r=Fe,Fe|=4;try{lb(e,u,n)}finally{Fe=r,he.p=i,ee.T=l}}tu=1,Sr?Ba=Fb(h,e.containerInfo,qa,r0,s0,mb,o0,f0,hb):(r0(),s0(),o0())}function hb(e){if(tu!==0){var u=Lt.onRecoverableError;u(e,{componentStack:null})}}function mb(){tu===3&&(tu=0,mh(Jl,Lt),tu=4)}function r0(){if(tu===1){tu=0;var e=Lt,u=Jl,n=Wt,l=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||l){l=ee.T,ee.T=null;var i=he.p;he.p=2;var r=Fe;Fe|=4;try{Ii=Cr=!1,dh(u,e,n),n=S0;var h=sd(e.containerInfo),g=n.focusedElem,E=n.selectionRange;if(h!==g&&g&&g.ownerDocument&&rd(g.ownerDocument.documentElement,g)){if(E!==null&&Ls(g)){var O=E.start,w=E.end;if(w===void 0&&(w=O),"selectionStart"in g)g.selectionStart=O,g.selectionEnd=Math.min(w,g.value.length);else{var F=g.ownerDocument||document,D=F&&F.defaultView||window;if(D.getSelection){var z=D.getSelection(),P=g.textContent.length,le=Math.min(E.start,P),Se=E.end===void 0?le:Math.min(E.end,P);!z.extend&&le>Se&&(h=Se,Se=le,le=h);var N=cd(g,le),A=cd(g,Se);if(N&&A&&(z.rangeCount!==1||z.anchorNode!==N.node||z.anchorOffset!==N.offset||z.focusNode!==A.node||z.focusOffset!==A.offset)){var j=F.createRange();j.setStart(N.node,N.offset),z.removeAllRanges(),le>Se?(z.addRange(j),z.extend(A.node,A.offset)):(j.setEnd(A.node,A.offset),z.addRange(j))}}}}for(F=[],z=g;z=z.parentNode;)z.nodeType===1&&F.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<F.length;g++){var U=F[g];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Pa=!!E0,S0=E0=null}finally{Fe=r,he.p=i,ee.T=l}}e.current=u,tu=2}}function s0(){if(tu===2){tu=0;var e=Lt,u=Jl,n=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||n){n=ee.T,ee.T=null;var l=he.p;he.p=2;var i=Fe;Fe|=4;try{ih(e,u.alternate,u)}finally{Fe=i,he.p=l,ee.T=n}}tu=3}}function o0(){if(tu===4||tu===3){tu=0;var e=Ba;Ba=null,Dc();var u=Lt,n=Jl,l=Wt,i=_h,r=(l&335544064)===l?10262:10256;if((n.subtreeFlags&r)!==0||(n.flags&r)!==0?tu=5:(tu=0,Jl=Lt=null,Rh(u,u.pendingLanes)),r=u.pendingLanes,r===0&&(rl=null),fa(l),n=n.stateNode,Uu&&typeof Uu.onCommitFiberRoot=="function")try{Uu.onCommitFiberRoot(jn,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=ee.T,r=he.p,he.p=2,ee.T=null;try{for(var h=u.onRecoverableError,g=0;g<i.length;g++){var E=i[g];h(E.value,{componentStack:E.stack})}}finally{ee.T=n,he.p=r}}if(i=Ha,h=qa,qa=null,i!==null&&(Ha=null,h===null&&(h=[]),e!==null))for(E=0;E<i.length;E++)n=(0,i[E])(h),n!==void 0&&e.finished.finally(n);(Wt&3)!==0&&Fr(),en(u),r=u.pendingLanes,(l&261930)!==0&&(r&42)!==0?u===wr?Ji++:(Ji=0,wr=u):(Ji=0,wr=null),Pi(0)}}function Rh(e,u){(e.pooledCacheLanes&=u)===0&&(u=e.pooledCache,u!=null&&(e.pooledCache=null,zi(u)))}function Fr(){return Ba!==null&&(Ba.skipTransition(),Ba=null),r0(),s0(),o0(),f0()}function f0(){if(tu!==5)return!1;var e=Lt,u=l0;l0=0;var n=fa(Wt),l=ee.T,i=he.p;try{he.p=32>n?32:n,ee.T=null,n=a0,a0=null;var r=Lt,h=Wt;if(tu=0,Jl=Lt=null,Wt=0,(Fe&6)!==0)throw Error(c(331));var g=Fe;if(Fe|=4,yh(r.current),ph(r,r.current,h,n),Fe=g,Pi(0,!1),Uu&&typeof Uu.onPostCommitFiberRoot=="function")try{Uu.onPostCommitFiberRoot(jn,r)}catch{}return!0}finally{he.p=i,ee.T=l,Rh(e,u)}}function wh(e,u,n){u=xt(n,u),u=No(e.stateNode,u,2),e=el(e,u,2),e!==null&&(kl(e,2),en(e))}function Ye(e,u,n){if(e.tag===3)wh(e,e,n);else for(;u!==null;){if(u.tag===3){wh(u,e,n);break}else if(u.tag===1){var l=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(rl===null||!rl.has(l))){e=xt(n,e),n=O1(2),l=el(u,n,2),l!==null&&(j1(n,l,u,e),kl(l,2),en(l));break}}u=u.return}}function d0(e,u,n){var l=e.pingCache;if(l===null){l=e.pingCache=new cb;var i=new Set;l.set(u,i)}else i=l.get(u),i===void 0&&(i=new Set,l.set(u,i));i.has(n)||(t0=!0,i.add(n),e=pb.bind(null,e,u,n),u.then(e,e))}function pb(e,u,n){var l=e.pingCache;l!==null&&l.delete(u),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xe===e&&(Re&n)===n&&((au===4||au===3&&(Re&62914560)===Re&&300>Lu()-jr)&&(Fe&2)===0?Ya(e,0):Or|=n,Fa===Re&&(Fa=0)),en(e)}function Mh(e,u){u===0&&(u=Un()),e=Ml(e,u),e!==null&&(kl(e,u),en(e))}function bb(e){var u=e.memoizedState,n=0;u!==null&&(n=u.retryLane),Mh(e,n)}function gb(e,u){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(u),Mh(e,n)}function yb(e,u){return Bt(e,u)}var Za=null,Xa=null,h0=!1,Br=!1,m0=!1,ol=0;function en(e){e!==Xa&&e.next===null&&(Xa===null?Za=Xa=e:Xa=Xa.next=e),Br=!0,h0||(h0=!0,vb())}function Pi(e,u){if(!m0&&Br){m0=!0;do for(var n=!1,l=Za;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var r=0;else{var h=l.suspendedLanes,g=l.pingedLanes;r=(1<<31-xu(42|e)+1)-1,r&=i&~(h&~g),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Bh(l,r))}else r=Re,r=Mn(l,l===Xe?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||Ln(l,r)||(n=!0,Bh(l,r));l=l.next}while(n);m0=!1}}function xb(){Lh()}function Lh(){Br=h0=!1;var e=0;ol!==0&&jb()&&(e=ol);for(var u=Lu(),n=null,l=Za;l!==null;){var i=l.next,r=Uh(l,u);r===0?(l.next=null,n===null?Za=i:n.next=i,i===null&&(Xa=n)):(n=l,(e!==0||(r&3)!==0)&&(Br=!0)),l=i}tu!==0&&tu!==5||Pi(e),ol!==0&&(ol=0)}function Uh(e,u){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var h=31-xu(r),g=1<<h,E=i[h];E===-1?((g&n)===0||(g&l)!==0)&&(i[h]=As(g,u)):E<=u&&(e.expiredLanes|=g),r&=~g}if(u=Xe,n=Re,n=Mn(e,e===u?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===u&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&kn(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ln(e,n)){if(u=n&-n,u===e.callbackPriority)return u;switch(l!==null&&kn(l),fa(n)){case 2:case 8:n=ca;break;case 32:n=bt;break;case 268435456:n=Ht;break;default:n=bt}return l=Fh.bind(null,e),n=Bt(n,l),e.callbackPriority=u,e.callbackNode=n,u}return l!==null&&l!==null&&kn(l),e.callbackPriority=2,e.callbackNode=null,2}function Fh(e,u){if(tu!==0&&tu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Fr()&&e.callbackNode!==n)return null;var l=Re;return l=Mn(e,e===Xe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Sh(e,l,u),Uh(e,Lu()),e.callbackNode!=null&&e.callbackNode===n?Fh.bind(null,e):null)}function Bh(e,u){if(Fr())return null;Sh(e,u,!0)}function vb(){Rb(function(){(Fe&6)!==0?Bt(ia,xb):Lh()})}function p0(){if(ol===0){var e=ql;e===0&&(e=Rn,Rn<<=1,(Rn&261888)===0&&(Rn=256)),ol=e}return ol}function Hh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_e(e)}function _b(e,u,n,l,i){if(u==="submit"&&n&&n.stateNode===i){var r=Hh((i[Fu]||null).action),h=l.submitter;h&&(u=(u=h[Fu]||null)?Hh(u.formAction):h.getAttribute("formAction"),u!==null&&(r=u,h=null));var g=new Bc("action","action",null,l,i);e.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ol!==0){var E=new FormData(i,h);So(n,{pending:!0,data:E,method:i.method,action:r},null,E)}}else typeof r=="function"&&(g.preventDefault(),E=new FormData(i,h),So(n,{pending:!0,data:E,method:i.method,action:r},r,E))},currentTarget:i}]})}}for(var b0=0;b0<Hs.length;b0++){var g0=Hs[b0],Eb=g0.toLowerCase(),Sb=g0[0].toUpperCase()+g0.slice(1);zt(Eb,"on"+Sb)}zt(dd,"onAnimationEnd"),zt(hd,"onAnimationIteration"),zt(md,"onAnimationStart"),zt("dblclick","onDoubleClick"),zt("focusin","onFocus"),zt("focusout","onBlur"),zt(z3,"onTransitionRun"),zt(R3,"onTransitionStart"),zt(w3,"onTransitionCancel"),zt(pd,"onTransitionEnd"),Yt("onMouseEnter",["mouseout","mouseover"]),Yt("onMouseLeave",["mouseout","mouseover"]),Yt("onPointerEnter",["pointerout","pointerover"]),Yt("onPointerLeave",["pointerout","pointerover"]),Gt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wi="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(" "),Ab=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wi));function qh(e,u){u=(u&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],i=l.event;l=l.listeners;e:{var r=void 0;if(u)for(var h=l.length-1;0<=h;h--){var g=l[h],E=g.instance,O=g.currentTarget;if(g=g.listener,E!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=O;try{r(i)}catch(w){Gc(w)}i.currentTarget=null,r=E}else for(h=0;h<l.length;h++){if(g=l[h],E=g.instance,O=g.currentTarget,g=g.listener,E!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=O;try{r(i)}catch(w){Gc(w)}i.currentTarget=null,r=E}}}}function je(e,u){var n=u[hi];n===void 0&&(n=u[hi]=new Set);var l=e+"__bubble";n.has(l)||(Gh(u,e,2,!1),n.add(l))}function y0(e,u,n){var l=0;u&&(l|=4),Gh(n,e,l,u)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function x0(e){if(!e[Hr]){e[Hr]=!0,bi.forEach(function(n){n!=="selectionchange"&&(Ab.has(n)||y0(n,!1,e),y0(n,!0,e))});var u=e.nodeType===9?e:e.ownerDocument;u===null||u[Hr]||(u[Hr]=!0,y0("selectionchange",!1,u))}}function Gh(e,u,n,l){switch(jm(u)){case 2:var i=bg;break;case 8:i=gg;break;default:i=B0}n=i.bind(null,u,n,e),i=void 0,!Cs||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(u,n,{capture:!0,passive:i}):e.addEventListener(u,n,!0):i!==void 0?e.addEventListener(u,n,{passive:i}):e.addEventListener(u,n,!1)}function v0(e,u,n,l,i){var r=l;if((u&1)===0&&(u&2)===0&&l!==null)e:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var g=l.stateNode.containerInfo;if(g===i)break;if(h===4)for(h=l.return;h!==null;){var E=h.tag;if((E===3||E===4)&&h.stateNode.containerInfo===i)return;h=h.return}for(;g!==null;){if(h=on(g),h===null)return;if(E=h.tag,E===5||E===6||E===26||E===27){l=r=h;continue e}g=g.parentNode}}l=l.return}Gf(function(){var O=r,w=bu(n),F=[];e:{var D=bd.get(e);if(D!==void 0){var z=Bc,P=e;switch(e){case"keypress":if(Uc(n)===0)break e;case"keydown":case"keyup":z=r3;break;case"focusin":P="focus",z=Os;break;case"focusout":P="blur",z=Os;break;case"beforeblur":case"afterblur":z=Os;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=$p;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=h3;break;case dd:case hd:case md:z=Wp;break;case pd:z=p3;break;case"scroll":case"scrollend":z=Qp;break;case"wheel":z=g3;break;case"copy":case"cut":case"paste":z=u3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=If;break;case"submit":z=f3;break;case"toggle":case"beforetoggle":z=x3}var le=(u&4)!==0,Se=!le&&(e==="scroll"||e==="scrollend"),N=le?D!==null?D+"Capture":null:D;le=[];for(var A=O,j;A!==null;){var U=A;if(j=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||j===null||N===null||(U=_i(A,N),U!=null&&le.push(ec(A,U,j))),Se)break;A=A.return}0<le.length&&(D=new z(D,P,null,n,w),F.push({event:D,listeners:le}))}}if((u&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",z&&n!==$u&&(P=n.relatedTarget||n.fromElement)&&(on(P)||P[qu]))break e;(D||z)&&(P=w.window===w?w:(z=w.ownerDocument)?z.defaultView||z.parentWindow:window,D?(z=n.relatedTarget||n.toElement,D=O,z=z?on(z):null,z!==null&&(Se=f(z),le=z.tag,z!==Se||le!==5&&le!==27&&le!==6)&&(z=null)):(D=null,z=O),D!==z&&(le=Zf,U="onMouseLeave",N="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(le=If,U="onPointerLeave",N="onPointerEnter",A="pointer"),Se=D==null?P:jl(D),j=z==null?P:jl(z),P=new le(U,A+"leave",D,n,w),P.target=Se,P.relatedTarget=j,U=null,on(w)===O&&(le=new le(N,A+"enter",z,n,w),le.target=j,le.relatedTarget=Se,U=le),Se=U,le=D&&z?ae(D,z,Tb):null,D!==null&&Yh(F,P,D,le,!1),z!==null&&Se!==null&&Yh(F,Se,z,le,!0)))}e:{if(D=O?jl(O):window,z=D.nodeName&&D.nodeName.toLowerCase(),z==="select"||z==="input"&&D.type==="file")var ue=ud;else if(Wf(D))if(td)ue=k3;else{ue=D3;var we=C3}else z=D.nodeName,!z||z.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?O&&H(O.elementType)&&(ue=ud):ue=N3;if(ue&&(ue=ue(e,O))){ed(F,ue,n,w);break e}we&&we(e,D,O)}switch(we=O?jl(O):window,e){case"focusin":(Wf(we)||we.contentEditable==="true")&&(va=we,Us=O,ki=null);break;case"focusout":ki=Us=va=null;break;case"mousedown":Fs=!0;break;case"contextmenu":case"mouseup":case"dragend":Fs=!1,od(F,n,w);break;case"selectionchange":if(j3)break;case"keydown":case"keyup":od(F,n,w)}var fe;if(zs)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else xa?Jf(e,n)&&(pe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(pe="onCompositionStart");pe&&(Qf&&n.locale!=="ko"&&(xa||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&xa&&(fe=Yf()):(Zn=w,Ds="value"in Zn?Zn.value:Zn.textContent,xa=!0)),we=qr(O,pe),0<we.length&&(pe=new Xf(pe,e,null,n,w),F.push({event:pe,listeners:we}),fe?pe.data=fe:(fe=Pf(n),fe!==null&&(pe.data=fe)))),(fe=_3?E3(e,n):S3(e,n))&&(pe=qr(O,"onBeforeInput"),0<pe.length&&(we=new Xf("onBeforeInput","beforeinput",null,n,w),F.push({event:we,listeners:pe}),we.data=fe)),_b(F,e,O,n,w)}qh(F,u)})}function ec(e,u,n){return{instance:e,listener:u,currentTarget:n}}function qr(e,u){for(var n=u+"Capture",l=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=_i(e,n),i!=null&&l.unshift(ec(e,i,r)),i=_i(e,u),i!=null&&l.push(ec(e,i,r))),e.tag===3)return l;e=e.return}return[]}function Tb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yh(e,u,n,l,i){for(var r=u._reactName,h=[];n!==null&&n!==l;){var g=n,E=g.alternate,O=g.stateNode;if(g=g.tag,E!==null&&E===l)break;g!==5&&g!==26&&g!==27||O===null||(E=O,i?(O=_i(n,r),O!=null&&h.unshift(ec(n,O,E))):i||(O=_i(n,r),O!=null&&h.push(ec(n,O,E)))),n=n.return}h.length!==0&&e.push({event:u,listeners:h})}var Cb=/\r\n?/g,Db=/\u0000|\uFFFD/g;function Vh(e){return(typeof e=="string"?e:""+e).replace(Cb,`
9
+ `).replace(Db,"")}function Zh(e,u){return u=Vh(u),Vh(e)===u}function Ve(e,u,n,l,i,r){switch(n){case"children":if(typeof l=="string")u==="body"||u==="textarea"&&l===""||G(e,l);else if(typeof l=="number"||typeof l=="bigint")u!=="body"&&G(e,""+l);else return;break;case"className":pa(e,"class",l);break;case"tabIndex":pa(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":pa(e,n,l);break;case"style":q(e,l,r);return;case"data":if(u!=="object"){pa(e,"data",l);break}case"src":case"href":if(l===""&&(u!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=_e(l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(u!=="input"&&Ve(e,u,"name",i.name,i,null),Ve(e,u,"formEncType",i.formEncType,i,null),Ve(e,u,"formMethod",i.formMethod,i,null),Ve(e,u,"formTarget",i.formTarget,i,null)):(Ve(e,u,"encType",i.encType,i,null),Ve(e,u,"method",i.method,i,null),Ve(e,u,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=_e(l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=He);return;case"onScroll":l!=null&&je("scroll",e);return;case"onScrollEnd":l!=null&&je("scrollend",e);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(c(60));r?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=_e(l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":je("beforetoggle",e),je("toggle",e),Bu(e,"popover",l);break;case"xlinkActuate":Ku(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ku(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ku(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ku(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ku(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ku(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ku(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ku(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ku(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Bu(e,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=se.get(n)||n,Bu(e,n,l);else return}Te=!0}function _0(e,u,n,l,i,r){switch(n){case"style":q(e,l,r);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(c(60));r?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof l=="string")G(e,l);else if(typeof l=="number"||typeof l=="bigint")G(e,""+l);else return;break;case"onScroll":l!=null&&je("scroll",e);return;case"onScrollEnd":l!=null&&je("scrollend",e);return;case"onClick":l!=null&&(e.onclick=He);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!wc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),r=n.slice(2,i?n.length-7:void 0),u=e[Fu]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(r,u,i),typeof l=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(r,l,i);break e}Te=!0,n in e?e[n]=l:l===!0?e.setAttribute(n,""):Bu(e,n,l)}return}Te=!0}function ju(e,u,n){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var l=!1,i=!1,r;for(r in n)if(n.hasOwnProperty(r)){var h=n[r];if(h!=null)switch(r){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,u));default:Ve(e,u,r,h,n,null)}}i&&Ve(e,u,"srcSet",n.srcSet,n,null),l&&Ve(e,u,"src",n.src,n,null);return;case"input":je("invalid",e);var g=r=h=i=null,E=null,O=null;for(l in n)if(n.hasOwnProperty(l)){var w=n[l];if(w!=null)switch(l){case"name":i=w;break;case"type":h=w;break;case"checked":E=w;break;case"defaultChecked":O=w;break;case"value":r=w;break;case"defaultValue":g=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,u));break;default:Ve(e,u,l,w,n,null)}}Mc(e,r,g,E,O,h,i,!1);return;case"select":je("invalid",e),l=h=r=null;for(i in n)if(n.hasOwnProperty(i)&&(g=n[i],g!=null))switch(i){case"value":r=g;break;case"defaultValue":h=g;break;case"multiple":l=g;default:Ve(e,u,i,g,n,null)}u=r,n=h,e.multiple=!!l,u!=null?Vt(e,!!l,u,!1):n!=null&&Vt(e,!!l,n,!0);return;case"textarea":je("invalid",e),r=i=l=null;for(h in n)if(n.hasOwnProperty(h)&&(g=n[h],g!=null))switch(h){case"value":l=g;break;case"defaultValue":i=g;break;case"children":r=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(c(91));break;default:Ve(e,u,h,g,n,null)}ga(e,l,i,r);return;case"option":for(E in n)n.hasOwnProperty(E)&&(l=n[E],l!=null)&&(E==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ve(e,u,E,l,n,null));return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(l=0;l<Wi.length;l++)je(Wi[l],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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(O in n)if(n.hasOwnProperty(O)&&(l=n[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,u));default:Ve(e,u,O,l,n,null)}return;default:if(H(u)){for(w in n)n.hasOwnProperty(w)&&(l=n[w],l!==void 0&&_0(e,u,w,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&Ve(e,u,g,l,n,null))}var Nb={};function kb(e,u,n,l){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,h=null,g=null,E=null,O=null,w=null;for(z in n){var F=n[z];if(n.hasOwnProperty(z)&&F!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":E=F;default:l.hasOwnProperty(z)||Ve(e,u,z,null,l,F)}}for(var D in l){var z=l[D];if(F=n[D],l.hasOwnProperty(D)&&(z!=null||F!=null))switch(D){case"type":z!==F&&(Te=!0),r=z;break;case"name":z!==F&&(Te=!0),i=z;break;case"checked":z!==F&&(Te=!0),O=z;break;case"defaultChecked":z!==F&&(Te=!0),w=z;break;case"value":z!==F&&(Te=!0),h=z;break;case"defaultValue":z!==F&&(Te=!0),g=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,u));break;default:z!==F&&Ve(e,u,D,z,l,F)}}vi(e,h,g,E,O,w,r,i);return;case"select":z=h=g=D=null;for(r in n)if(E=n[r],n.hasOwnProperty(r)&&E!=null)switch(r){case"value":break;case"multiple":z=E;default:l.hasOwnProperty(r)||Ve(e,u,r,null,l,E)}for(i in l)if(r=l[i],E=n[i],l.hasOwnProperty(i)&&(r!=null||E!=null))switch(i){case"value":r!==E&&(Te=!0),D=r;break;case"defaultValue":r!==E&&(Te=!0),g=r;break;case"multiple":r!==E&&(Te=!0),h=r;default:r!==E&&Ve(e,u,i,r,l,E)}u=g,n=h,l=z,D!=null?Vt(e,!!n,D,!1):!!l!=!!n&&(u!=null?Vt(e,!!n,u,!0):Vt(e,!!n,n?[]:"",!1));return;case"textarea":z=D=null;for(g in n)if(i=n[g],n.hasOwnProperty(g)&&i!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ve(e,u,g,null,l,i)}for(h in l)if(i=l[h],r=n[h],l.hasOwnProperty(h)&&(i!=null||r!=null))switch(h){case"value":i!==r&&(Te=!0),D=i;break;case"defaultValue":i!==r&&(Te=!0),z=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==r&&Ve(e,u,h,i,l,r)}Vn(e,D,z);return;case"option":for(var P in n)D=n[P],n.hasOwnProperty(P)&&D!=null&&!l.hasOwnProperty(P)&&(P==="selected"?e.selected=!1:Ve(e,u,P,null,l,D));for(E in l)D=l[E],z=n[E],l.hasOwnProperty(E)&&D!==z&&(D!=null||z!=null)&&(E==="selected"?(D!==z&&(Te=!0),e.selected=D&&typeof D!="function"&&typeof D!="symbol"):Ve(e,u,E,D,l,z));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 le in n)D=n[le],n.hasOwnProperty(le)&&D!=null&&!l.hasOwnProperty(le)&&Ve(e,u,le,null,l,D);for(O in l)if(D=l[O],z=n[O],l.hasOwnProperty(O)&&D!==z&&(D!=null||z!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,u));break;default:Ve(e,u,O,D,l,z)}return;default:if(H(u)){for(var Se in n)D=n[Se],n.hasOwnProperty(Se)&&D!==void 0&&!l.hasOwnProperty(Se)&&_0(e,u,Se,void 0,l,D);for(w in l)D=l[w],z=n[w],!l.hasOwnProperty(w)||D===z||D===void 0&&z===void 0||_0(e,u,w,D,l,z);return}}for(var N in n)D=n[N],n.hasOwnProperty(N)&&D!=null&&!l.hasOwnProperty(N)&&Ve(e,u,N,null,l,D);for(F in l)D=l[F],z=n[F],!l.hasOwnProperty(F)||D===z||D==null&&z==null||Ve(e,u,F,D,l,z)}function Xh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ob(){if(typeof performance.getEntriesByType=="function"){for(var e=0,u=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],r=i.transferSize,h=i.initiatorType,g=i.duration;if(r&&g&&Xh(h)){for(h=0,g=i.responseEnd,l+=1;l<n.length;l++){var E=n[l],O=E.startTime;if(O>g)break;var w=E.transferSize,F=E.initiatorType;w&&Xh(F)&&(E=E.responseEnd,h+=w*(E<g?1:(g-O)/(E-O)))}if(--l,u+=8*(r+h)/(i.duration/1e3),e++,10<e)break}}if(0<e)return u/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var E0=null,S0=null;function uc(e){return e.nodeType===9?e:e.ownerDocument}function Ih(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 Qh(e,u){if(e===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&u==="foreignObject"?0:e}function Kh(e,u,n,l){return n=uc(n).createElement(e),n[pu]=l,n[Fu]=u,ju(n,e,u),su(n),n}function A0(e,u){return e==="textarea"||e==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var T0=null;function jb(){var e=window.event;return e&&e.type==="popstate"?e===T0?!1:(T0=e,!0):(T0=null,!1)}var C0=typeof setTimeout=="function"?setTimeout:void 0,zb=typeof clearTimeout=="function"?clearTimeout:void 0,$h=typeof Promise=="function"?Promise:void 0,Jh=typeof requestAnimationFrame=="function"?requestAnimationFrame:C0,Rb=typeof queueMicrotask=="function"?queueMicrotask:typeof $h<"u"?function(e){return $h.resolve(null).then(e).catch(wb)}:C0;function wb(e){setTimeout(function(){throw e})}function fl(e){return e==="head"}function Ph(e,u){var n=u,l=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(i),Wa(u);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")w0(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,w0(n);for(var r=n.firstChild;r;){var h=r.nextSibling,g=r.nodeName;r[sn]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=h}}else n==="body"&&w0(e.ownerDocument.body);n=i}while(n);Wa(u)}function Wh(e,u){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?u?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(u?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function em(e,u,n){if(u=CSS.escape(u)!==u?"r-"+btoa(u).replace(/=/g,""):u,e.style.viewTransitionName=u,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(u=e.getClientRects(),u.length===1)var l=1;else for(var i=l=0;i<u.length;i++){var r=u[i];0<r.width&&0<r.height&&l++}l===1&&(e=e.style,e.display=u.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function um(e,u){e=e.style,u=u.style;var n=u!=null?u.hasOwnProperty("viewTransitionName")?u.viewTransitionName:u.hasOwnProperty("view-transition-name")?u["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=u!=null?u.hasOwnProperty("viewTransitionClass")?u.viewTransitionClass:u.hasOwnProperty("view-transition-class")?u["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(u==null?e.display=e.margin="":(n=u.display,e.display=n==null||typeof n=="boolean"?"":n,n=u.margin,n!=null?e.margin=n:(n=u.hasOwnProperty("marginTop")?u.marginTop:u["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,u=u.hasOwnProperty("marginBottom")?u.marginBottom:u["margin-bottom"],e.marginBottom=u==null||typeof u=="boolean"?"":u)))}function Mb(e,u,n){return n=n.ownerDocument.defaultView,{rect:e,abs:u.position==="absolute"||u.position==="fixed",clip:u.clipPath!=="none"||u.overflow!=="visible"||u.filter!=="none"||u.mask!=="none"||u.mask!=="none"||u.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function D0(e){var u=e.getBoundingClientRect(),n=getComputedStyle(e);return Mb(u,n,e)}function Lb(e){return e.documentElement.clientHeight}function Ub(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Fb(e,u,n,l,i,r,h,g,E){var O=u.nodeType===9?u:u.ownerDocument;try{var w=O.startViewTransition({update:function(){var D=O.defaultView,z=D.navigation&&D.navigation.transition,P=O.fonts.status;l();var le=[];if(P==="loaded"&&(Lb(O),O.fonts.status==="loading"&&le.push(O.fonts.ready)),P=le.length,e!==null)for(var Se=e.suspenseyImages,N=0,A=0;A<Se.length;A++){var j=Se[A];if(!j.complete){var U=j.getBoundingClientRect();if(0<U.bottom&&0<U.right&&U.top<D.innerHeight&&U.left<D.innerWidth){if(N+=Em(j),N>Vr){le.length=P;break}j=new Promise(Ub.bind(j)),le.push(j)}}}if(0<le.length)return D=Promise.race([Promise.all(le),new Promise(function(ue){return setTimeout(ue,500)})]).then(i,i),(z?Promise.allSettled([z.finished,D]):D).then(r,r);if(i(),z)return z.finished.then(r,r);r()},types:n});O.__reactViewTransition=w;var F=[];return w.ready.then(function(){for(var D=O.documentElement.getAnimations({subtree:!0}),z=0;z<D.length;z++){var P=D[z],le=P.effect,Se=le.pseudoElement;if(Se!=null&&Se.startsWith("::view-transition")){F.push(P),P=le.getKeyframes();for(var N=Se=void 0,A=!0,j=0;j<P.length;j++){var U=P[j],ue=U.width;if(Se===void 0)Se=ue;else if(Se!==ue){A=!1;break}if(ue=U.height,N===void 0)N=ue;else if(N!==ue){A=!1;break}delete U.width,delete U.height,U.transform==="none"&&delete U.transform}A&&Se!==void 0&&N!==void 0&&(le.setKeyframes(P),A=getComputedStyle(le.target,le.pseudoElement),A.width!==Se||A.height!==N)&&(A=P[0],A.width=Se,A.height=N,A=P[P.length-1],A.width=Se,A.height=N,le.setKeyframes(P))}}h()},function(D){O.__reactViewTransition===w&&(O.__reactViewTransition=null);try{typeof D=="object"&&D!==null&&D.name==="InvalidStateError"&&(D.message==="View transition was skipped because document visibility state is hidden."||D.message==="Skipping view transition because document visibility state has become hidden."||D.message==="Skipping view transition because viewport size changed."||D.message==="Transition was aborted because of invalid state")&&(D=null),D!==null&&E(D)}finally{l(),i(),h()}}),w.finished.finally(function(){for(var D=0;D<F.length;D++)F[D].cancel();O.__reactViewTransition===w&&(O.__reactViewTransition=null),g()}),w}catch{return l(),i(),h(),null}}function Pl(e,u){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+u+")"}Pl.prototype.animate=function(e,u){return u=typeof u=="number"?{duration:u}:W({},u),u.pseudoElement=this._selector,this._scope.animate(e,u)},Pl.prototype.getAnimations=function(){for(var e=this._scope,u=this._selector,n=e.getAnimations({subtree:!0}),l=[],i=0;i<n.length;i++){var r=n[i].effect;r!==null&&r.target===e&&r.pseudoElement===u&&l.push(n[i])}return l},Pl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function tm(e){return{name:e,group:new Pl("group",e),imagePair:new Pl("image-pair",e),old:new Pl("old",e),new:new Pl("new",e)}}function dt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}dt.prototype.addEventListener=function(e,u,n){var l=null,i=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(lm(r,e,u,n)===-1){var h=this,g=u;n!=null&&typeof n!="boolean"&&n.once===!0&&(g=function(E){h.removeEventListener(e,u,n),typeof u=="function"?u.call(this,E):u.handleEvent(E)}),l!==null&&(i=h.removeEventListener.bind(h,e,u,n),l.addEventListener("abort",i,{once:!0}),i=l.removeEventListener.bind(l,"abort",i)),l=Ia(n),r.push({type:e,listener:u,optionsOrUseCapture:n,attachedListener:g,cleanup:i}),x(this._fragmentFiber.child,!1,Bb,e,g,l)}this._eventListeners=r}};function Bb(e,u,n,l){return Z(e).addEventListener(u,n,l),!1}dt.prototype.removeEventListener=function(e,u,n){var l=this._eventListeners;if(l!==null&&(u=lm(l,e,u,n),u!==-1)){var i=l[u];n=i.attachedListener;var r=i.cleanup;i=Ia(i.optionsOrUseCapture),x(this._fragmentFiber.child,!1,Hb,e,n,i),l.splice(u,1),r!==null&&r()}};function Hb(e,u,n,l){return Z(e).removeEventListener(u,n,l),!1}function Ia(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function nm(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function lm(e,u,n,l){if(e.length===0)return-1;l=nm(l);for(var i=0;i<e.length;i++){var r=e[i];if(r.type===u&&r.listener===n&&nm(r.optionsOrUseCapture)===l)return i}return-1}dt.prototype.dispatchEvent=function(e){var u=k(this._fragmentFiber);if(u===null)return!0;u=Z(u);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var l=u.nodeType===9?u.createComment(""):document.createTextNode("");if(n)for(var i=0;i<n.length;i++){var r=n[i];l.addEventListener(r.type,r.attachedListener,Ia(r.optionsOrUseCapture))}if(u.appendChild(l),e=l.dispatchEvent(e),n)for(i=0;i<n.length;i++)r=n[i],l.removeEventListener(r.type,r.attachedListener,Ia(r.optionsOrUseCapture));return u.removeChild(l),e}return u.dispatchEvent(e)},dt.prototype.focus=function(e){x(this._fragmentFiber.child,!0,am,e,void 0,void 0)};function am(e,u){return e.tag===6?!1:(e=Z(e),Pb(e,u))}dt.prototype.focusLast=function(e){var u=[];x(this._fragmentFiber.child,!0,N0,u,void 0,void 0);for(var n=u.length-1;0<=n&&!am(u[n],e);n--);};function N0(e,u){return u.push(e),!1}dt.prototype.blur=function(){var e=k(this._fragmentFiber);e!==null&&(e=Z(e),e=uc(e).activeElement,e!==null&&x(this._fragmentFiber.child,!1,qb,e,void 0,void 0))};function qb(e,u){return e.tag===6?!1:(e=Z(e),e===u||e.contains(u)?(u.blur(),!0):!1)}dt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),x(this._fragmentFiber.child,!1,Gb,e,void 0,void 0)};function Gb(e,u){return e.tag===6||(e=Z(e),u.observe(e)),!1}dt.prototype.unobserveUsing=function(e){var u=this._observers;if(u!==null&&u.has(e)){u.delete(e),x(this._fragmentFiber.child,!1,Yb,e,void 0,void 0);for(var n=u=0;n<Ut.length;n++){var l=Ut[n];l.fragmentInstance===this&&l.observer===e?e.unobserve(l.instance):Ut[u++]=l}Ut.length=u}};function Yb(e,u){return e.tag===6||(e=Z(e),u.unobserve(e)),!1}var Ut=[],k0=!1;function Vb(e,u,n){Ut.push({fragmentInstance:e,observer:u,instance:n}),k0||(k0=!0,Wb(function(){k0=!1;var l=Ut;Ut=[];for(var i=0;i<l.length;i++){var r=l[i];r.observer.unobserve(r.instance)}}))}dt.prototype.getClientRects=function(){var e=[];return x(this._fragmentFiber.child,!1,Zb,e,void 0,void 0),e};function Zb(e,u){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),u.push.apply(u,n.getClientRects())}else e=Z(e),u.push.apply(u,e.getClientRects());return!1}dt.prototype.getRootNode=function(e){var u=k(this._fragmentFiber);return u===null?this:Z(u).getRootNode(e)},dt.prototype.compareDocumentPosition=function(e){var u=k(this._fragmentFiber);if(u===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];x(this._fragmentFiber.child,!1,N0,n,void 0,void 0);var l=Z(u);if(n.length===0){if(n=l,R(this._fragmentFiber)){e:{for(u=this._fragmentFiber.return;u!==null;){if(u.tag===4){u=u.stateNode.containerInfo;break e}if(u.tag===3||u.tag===5||u.tag===27)break;u=u.return}u=null}u!=null&&(n=u)}u=this._fragmentFiber;var i=l=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=S(u)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=Z(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}u=Z(n[0]),i=Z(n[n.length-1]);var r=R(this._fragmentFiber)?u.parentElement:l;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=r.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var h=u.compareDocumentPosition(e),g=i.compareDocumentPosition(e),E=h&Node.DOCUMENT_POSITION_CONTAINED_BY||g&Node.DOCUMENT_POSITION_CONTAINED_BY;return g=l&&r&&h&Node.DOCUMENT_POSITION_FOLLOWING&&g&Node.DOCUMENT_POSITION_PRECEDING,u=l&&u===e||r&&i===e||E||g?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&u===e||!r&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:h,u&Node.DOCUMENT_POSITION_DISCONNECTED||u&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Xb(u,this._fragmentFiber,n[0],n[n.length-1],e)?u:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xb(e,u,n,l,i){var r=on(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!r)e:{for(;r!==null;){if(r.tag===7&&(r===u||r.alternate===u)){n=!0;break e}r=r.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=i.ownerDocument,i===r||i===r.documentElement||i===r.body;e:{for(r=u,u=k(u);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==u&&r.alternate!==u)){r=!0;break e}r=r.return}r=!1}return r}return e&Node.DOCUMENT_POSITION_PRECEDING?((u=!!r)&&!(u=r===n)&&(u=ae(n,r,Q),u===null?u=!1:(x(u,!0,ne,r,n),r=I,I=null,u=r!==null)),u):e&Node.DOCUMENT_POSITION_FOLLOWING?((u=!!r)&&!(u=r===l)&&(u=ae(l,r,Q),u===null?u=!1:(x(u,!0,Y,r,l),r=I,ie=I=null,u=r!==null)),u):!1}function im(e,u){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,u?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}dt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(c(566));var u=[];x(this._fragmentFiber.child,!1,N0,u,void 0,void 0);var n=e!==!1;if(u.length===0){var l=S(this._fragmentFiber);if(l=n?l[1]||l[0]||k(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){e=Z(l),im(e,n);return}if(l=Z(l),l.nodeType!==9){if(l.nodeType===11){n="host"in l?l.host:null,n!==null&&n.scrollIntoView(e);return}l.scrollIntoView(e)}}for(l=n?u.length-1:0;l!==(n?-1:u.length);){var i=u[l];i.tag===6?(i=Z(i),im(i,n)):Z(i).scrollIntoView(e),l+=n?-1:1}};function Ib(e,u){return e=Z(e),cm(e,u),!1}function cm(e,u){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(u)}function rm(e,u){var n=u._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];e.addEventListener(i.type,i.attachedListener,Ia(i.optionsOrUseCapture))}e.nodeType!==3&&(n=u._observers,n!==null&&n.forEach(function(r){for(var h=0,g=0;g<Ut.length;g++){var E=Ut[g];(E.fragmentInstance!==u||E.observer!==r||E.instance!==e)&&(Ut[h++]=E)}Ut.length=h,r.observe(e)}),cm(e,u))}function Qb(e,u){var n=u._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l];e.removeEventListener(i.type,i.attachedListener,Ia(i.optionsOrUseCapture))}e.nodeType!==3&&(n=u._observers,n!==null&&n.forEach(function(r){typeof r.rootMargin=="string"?Vb(u,r,e):r.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(u))}function O0(e){var u=e.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var n=u;switch(u=u.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":O0(n),Hn(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Kb(e,u,n,l){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==u.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[sn])switch(u){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(u==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=At(e.nextSibling),e===null)break}return null}function $b(e,u,n){if(u==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=At(e.nextSibling),e===null))return null;return e}function sm(e,u){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!u||(e=At(e.nextSibling),e===null))return null;return e}function j0(e){return e.data==="$?"||e.data==="$~"}function z0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Jb(e,u){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=u;else if(e.data!=="$?"||n.readyState!=="loading")u();else{var l=function(){u(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function At(e){for(;e!=null;e=e.nextSibling){var u=e.nodeType;if(u===1||u===3)break;if(u===8){if(u=e.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;if(u==="/$"||u==="/&")return null}}return e}var R0=null;function om(e){e=e.nextSibling;for(var u=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(u===0)return At(e.nextSibling);u--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||u++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var u=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(u===0)return e;u--}else n!=="/$"&&n!=="/&"||u++}e=e.previousSibling}return null}function Pb(e,u){function n(){l=!0}if(e.ownerDocument.activeElement===e)return!0;var l=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,u)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return l}function Wb(e){Jh(function(){Jh(function(u){return e(u)})})}function dm(e,u,n){switch(u=uc(n),e){case"html":if(e=u.documentElement,!e)throw Error(c(452));return e;case"head":if(e=u.head,!e)throw Error(c(453));return e;case"body":if(e=u.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function hm(e,u,n){for(var l in n){var i=n[l];n.hasOwnProperty(l)&&i!=null&&Ve(e,u,l,null,Nb,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===He&&(e.onclick=null),Hn(e)}function w0(e){for(var u=e.attributes;u.length;)e.removeAttributeNode(u[0]);Hn(e)}var Tt=new Map,mm=new Set;function tc(e){if(typeof e.getRootNode=="function"){var u=e.getRootNode();if(u.nodeType===9||u.nodeType===11)return u}return e.nodeType===9?e:e.ownerDocument}var An=he.d;he.d={f:eg,r:ug,D:tg,C:ng,L:lg,m:ag,X:cg,S:ig,M:rg};function eg(){var e=An.f(),u=Mr();return e||u}function ug(e){var u=fn(e);u!==null&&u.tag===5&&u.type==="form"?b1(u):An.r(e)}var Qa=typeof document>"u"?null:document;function pm(e,u,n){var l=Qa;if(l&&typeof u=="string"&&u){var i=Yu(u);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),mm.has(i)||(mm.add(i),e={rel:e,crossOrigin:n,href:u},l.querySelector(i)===null&&(u=l.createElement("link"),ju(u,"link",e),su(u),l.head.appendChild(u)))}}function tg(e){An.D(e),pm("dns-prefetch",e,null)}function ng(e,u){An.C(e,u),pm("preconnect",e,u)}function lg(e,u,n){An.L(e,u,n);var l=Qa;if(l&&e&&u){var i='link[rel="preload"][as="'+Yu(u)+'"]';u==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Yu(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Yu(n.imageSizes)+'"]')):i+='[href="'+Yu(e)+'"]';var r=i;switch(u){case"style":r=Ka(e);break;case"script":r=$a(e)}if(!(Tt.has(r)||(e=W({rel:"preload",href:u==="image"&&n&&n.imageSrcSet?void 0:e,as:u},n),Tt.set(r,e),l.querySelector(i)!==null||u==="style"&&l.querySelector(nc(r))||u==="script"&&l.querySelector(lc(r))))){var h=l.createElement("link");ju(h,"link",e),u==="style"&&(h[Bn]=!0,h.onload=h.onerror=function(){Rc(h)}),su(h),l.head.appendChild(h)}}}function ag(e,u){An.m(e,u);var n=Qa;if(n&&e){var l=u&&typeof u.as=="string"?u.as:"script",i='link[rel="modulepreload"][as="'+Yu(l)+'"][href="'+Yu(e)+'"]',r=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=$a(e)}if(!Tt.has(r)&&(e=W({rel:"modulepreload",href:e},u),Tt.set(r,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(lc(r)))return}l=n.createElement("link"),ju(l,"link",e),su(l),n.head.appendChild(l)}}}function ig(e,u,n){An.S(e,u,n);var l=Qa;if(l&&e){var i=qn(l).hoistableStyles,r=Ka(e);u=u||"default";var h=i.get(r);if(!h){var g={loading:0,preload:null};if(h=l.querySelector(nc(r)))g.loading=5;else{e=W({rel:"stylesheet",href:e,"data-precedence":u},n),(n=Tt.get(r))&&M0(e,n);var E=h=l.createElement("link");su(E),ju(E,"link",e),E._p=new Promise(function(O,w){E.onload=O,E.onerror=w}),E.addEventListener("load",function(){g.loading|=1}),E.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Gr(h,u,l)}h={type:"stylesheet",instance:h,count:1,state:g},i.set(r,h)}}}function cg(e,u){An.X(e,u);var n=Qa;if(n&&e){var l=qn(n).hoistableScripts,i=$a(e),r=l.get(i);r||(r=n.querySelector(lc(i)),r||(e=W({src:e,async:!0},u),(u=Tt.get(i))&&L0(e,u),r=n.createElement("script"),su(r),ju(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(i,r))}}function rg(e,u){An.M(e,u);var n=Qa;if(n&&e){var l=qn(n).hoistableScripts,i=$a(e),r=l.get(i);r||(r=n.querySelector(lc(i)),r||(e=W({src:e,async:!0,type:"module"},u),(u=Tt.get(i))&&L0(e,u),r=n.createElement("script"),su(r),ju(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(i,r))}}function bm(e,u,n,l){var i=(i=ru.current)?tc(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ka(n.href),u=qn(i).hoistableStyles,l=u.get(n),l||(l={type:"style",instance:null,count:0,state:null},u.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ka(n.href);var r=qn(i).hoistableStyles,h=r.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,h),(r=i.querySelector(nc(e)))?r._p||(h.instance=r,h.state.loading=5):(r=Tt.get(e),r||(r={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Tt.set(e,r)),sg(i,e,r,h.state))),u&&l===null)throw Error(c(528,""));return h}if(u&&l!==null)throw Error(c(529,""));return null;case"script":return u=n.async,n=n.src,typeof n=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(n=$a(n),u=qn(i).hoistableScripts,l=u.get(n),l||(l={type:"script",instance:null,count:0,state:null},u.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Ka(e){return'href="'+Yu(e)+'"'}function nc(e){return'link[rel="stylesheet"]['+e+"]"}function gm(e){return W({},e,{"data-precedence":e.precedence,precedence:null})}function sg(e,u,n,l){if(u=e.querySelector('link[rel="preload"][as="style"]['+u+"]")){if(u[Bn]!==!0){l.loading=1;return}}else u=e.createElement("link"),u[Bn]=!0,u.onload=u.onerror=Rc.bind(null,u),ju(u,"link",n),su(u),e.head.appendChild(u);l.preload=u,u.addEventListener("load",function(){return l.loading|=1}),u.addEventListener("error",function(){return l.loading|=2})}function $a(e){return'[src="'+Yu(e)+'"]'}function lc(e){return"script[async]"+e}function ym(e,u,n){if(u.count++,u.instance===null)switch(u.type){case"style":var l=e.querySelector('style[data-href~="'+Yu(n.href)+'"]');if(l)return u.instance=l,su(l),l;var i=W({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),su(l),ju(l,"style",i),Gr(l,n.precedence,e),u.instance=l;case"stylesheet":i=Ka(n.href);var r=e.querySelector(nc(i));if(r)return u.state.loading|=4,u.instance=r,su(r),r;l=gm(n),(i=Tt.get(i))&&M0(l,i),r=(e.ownerDocument||e).createElement("link"),su(r);var h=r;return h._p=new Promise(function(g,E){h.onload=g,h.onerror=E}),ju(r,"link",l),u.state.loading|=4,Gr(r,n.precedence,e),u.instance=r;case"script":return r=$a(n.src),(i=e.querySelector(lc(r)))?(u.instance=i,su(i),i):(l=n,(i=Tt.get(r))&&(l=W({},n),L0(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),su(i),ju(i,"link",l),e.head.appendChild(i),u.instance=i);case"void":return null;default:throw Error(c(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(l=u.instance,u.state.loading|=4,Gr(l,n.precedence,e));return u.instance}function Gr(e,u,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,r=i,h=0;h<l.length;h++){var g=l[h];if(g.dataset.precedence===u)r=g;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(u=n.nodeType===9?n.head:n,u.insertBefore(e,u.firstChild))}function M0(e,u){e.crossOrigin==null&&(e.crossOrigin=u.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=u.referrerPolicy),e.title==null&&(e.title=u.title)}function L0(e,u){e.crossOrigin==null&&(e.crossOrigin=u.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=u.referrerPolicy),e.integrity==null&&(e.integrity=u.integrity)}var Yr=null;function xm(e,u,n){if(Yr===null){var l=new Map,i=Yr=new Map;i.set(n,l)}else i=Yr,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var r=n[i];if(!(r[sn]||r[pu]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var h=r.getAttribute(u)||"";h=e+h;var g=l.get(h);g?g.push(r):l.set(h,[r])}}return l}function U0(e,u,n){e=e.ownerDocument||e,e.head.insertBefore(n,u==="title"?e.querySelector("head > title"):null)}function og(e,u,n){if(n===1||u.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;return u.rel==="stylesheet"?(e=u.disabled,typeof u.precedence=="string"&&e==null):!0;case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function vm(e,u){return e==="img"&&u.src!=null&&u.src!==""&&u.onLoad==null&&u.loading!=="lazy"}function _m(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Em(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Sm(e,u){typeof u.decode=="function"&&(e.imgCount++,u.complete||(e.imgBytes+=Em(u),e.suspenseyImages.push(u)),e=hg.bind(e),u.decode().then(e,e))}function fg(e,u,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Ka(l.href),r=u.querySelector(nc(i));if(r){u=r._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(e.count++,e=ac.bind(e),u.then(e,e)),n.state.loading|=4,n.instance=r,su(r);return}r=u.ownerDocument||u,l=gm(l),(i=Tt.get(i))&&M0(l,i),r=r.createElement("link"),su(r);var h=r;h._p=new Promise(function(g,E){h.onload=g,h.onerror=E}),ju(r,"link",l),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,u),(u=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ac.bind(e),u.addEventListener("load",n),u.addEventListener("error",n))}}var Vr=0;function dg(e,u){return e.stylesheets&&e.count===0&&Xr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+u);0<e.imgBytes&&Vr===0&&(Vr=62500*Ob());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Vr?50:800)+u);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Am(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Xr(e,e.stylesheets);else if(e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}}}function ac(){this.count--,Am(this)}function hg(){this.imgCount--,Am(this)}var Zr=null;function Xr(e,u){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zr=new Map,u.forEach(mg,e),Zr=null,ac.call(e))}function mg(e,u){if(!(u.state.loading&4)){var n=Zr.get(e);if(n)var l=n.get(null);else{n=new Map,Zr.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var h=i[r];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}i=u.instance,h=i.getAttribute("data-precedence"),r=n.get(h)||l,r===l&&n.set(null,i),n.set(h,i),this.count++,l=ac.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),u.state.loading|=4}}var Ja={$$typeof:xe,Provider:null,Consumer:null,_currentValue:Qu,_currentValue2:Qu,_threadCount:0};function pg(e,u,n,l,i,r,h,g,E){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=oi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.hiddenUpdates=oi(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.transitionTypes=null,this.incompleteTransitions=new Map}function Tm(e,u,n,l,i,r,h,g,E,O,w,F){return e=new pg(e,u,n,h,E,O,w,F,g),u=1,r===!0&&(u|=24),r=Ju(3,null,null,u),e.current=r,r.stateNode=e,u=Js(),u.refCount++,e.pooledCache=u,u.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:u},uo(r),e}function Cm(e){return e?(e=Sa,e):Sa}function Dm(e,u,n,l,i,r){i=Cm(i),l.context===null?l.context=i:l.pendingContext=i,l=Wn(u),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=el(e,l,u),n!==null&&(ut(n,e,u),Li(n,e,u))}function Nm(e,u){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<u?n:u}}function F0(e,u){Nm(e,u),(e=e.alternate)&&Nm(e,u)}function km(e){if(e.tag===13||e.tag===31){var u=Ml(e,67108864);u!==null&&ut(u,e,67108864),F0(e,67108864)}}function Om(e){if(e.tag===13||e.tag===31){var u=ft();u=Ol(u);var n=Ml(e,u);n!==null&&ut(n,e,u),F0(e,u)}}var Pa=!0;function bg(e,u,n,l){var i=ee.T;ee.T=null;var r=he.p;try{he.p=2,B0(e,u,n,l)}finally{he.p=r,ee.T=i}}function gg(e,u,n,l){var i=ee.T;ee.T=null;var r=he.p;try{he.p=8,B0(e,u,n,l)}finally{he.p=r,ee.T=i}}function B0(e,u,n,l){if(Pa){var i=H0(l);if(i===null)v0(e,u,l,Ir,n),zm(e,l);else if(xg(i,e,u,n,l))l.stopPropagation();else if(zm(e,l),u&4&&-1<yg.indexOf(e)){for(;i!==null;){var r=fn(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var h=qt(r.pendingLanes);if(h!==0){var g=r;for(g.pendingLanes|=2,g.entangledLanes|=2;h;){var E=1<<31-xu(h);g.entanglements[1]|=E,h&=~E}en(r),(Fe&6)===0&&(zr=Lu()+500,Pi(0))}}break;case 31:case 13:g=Ml(r,2),g!==null&&ut(g,r,2),Mr(),F0(r,2)}if(r=H0(l),r===null&&v0(e,u,l,Ir,n),r===i)break;i=r}i!==null&&l.stopPropagation()}else v0(e,u,l,null,n)}}function H0(e){return e=bu(e),q0(e)}var Ir=null;function q0(e){if(Ir=null,e=on(e),e!==null){var u=f(e);if(u===null)e=null;else{var n=u.tag;if(n===13){if(e=m(u),e!==null)return e;e=null}else if(n===31){if(e=p(u),e!==null)return e;e=null}else if(n===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;e=null}else u!==e&&(e=null)}}return Ir=e,null}function jm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Nc()){case ia:return 2;case ca:return 8;case bt:case On:return 32;case Ht:return 268435456;default:return 32}default:return 32}}var G0=!1,dl=null,hl=null,ml=null,ic=new Map,cc=new Map,pl=[],yg="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 zm(e,u){switch(e){case"focusin":case"focusout":dl=null;break;case"dragenter":case"dragleave":hl=null;break;case"mouseover":case"mouseout":ml=null;break;case"pointerover":case"pointerout":ic.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":cc.delete(u.pointerId)}}function rc(e,u,n,l,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:u,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[i]},u!==null&&(u=fn(u),u!==null&&km(u)),e):(e.eventSystemFlags|=l,u=e.targetContainers,i!==null&&u.indexOf(i)===-1&&u.push(i),e)}function xg(e,u,n,l,i){switch(u){case"focusin":return dl=rc(dl,e,u,n,l,i),!0;case"dragenter":return hl=rc(hl,e,u,n,l,i),!0;case"mouseover":return ml=rc(ml,e,u,n,l,i),!0;case"pointerover":var r=i.pointerId;return ic.set(r,rc(ic.get(r)||null,e,u,n,l,i)),!0;case"gotpointercapture":return r=i.pointerId,cc.set(r,rc(cc.get(r)||null,e,u,n,l,i)),!0}return!1}function Rm(e){var u=on(e.target);if(u!==null){var n=f(u);if(n!==null){if(u=n.tag,u===13){if(u=m(n),u!==null){e.blockedOn=u,zc(e.priority,function(){Om(n)});return}}else if(u===31){if(u=p(n),u!==null){e.blockedOn=u,zc(e.priority,function(){Om(n)});return}}else if(u===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qr(e){if(e.blockedOn!==null)return!1;for(var u=e.targetContainers;0<u.length;){var n=H0(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);$u=l,n.target.dispatchEvent(l),$u=null}else return u=fn(n),u!==null&&km(u),e.blockedOn=n,!1;u.shift()}return!0}function wm(e,u,n){Qr(e)&&n.delete(u)}function vg(){G0=!1,dl!==null&&Qr(dl)&&(dl=null),hl!==null&&Qr(hl)&&(hl=null),ml!==null&&Qr(ml)&&(ml=null),ic.forEach(wm),cc.forEach(wm)}function Kr(e,u){e.blockedOn===u&&(e.blockedOn=null,G0||(G0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,vg)))}var $r=null;function Mm(e){$r!==e&&($r=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){$r===e&&($r=null);for(var u=0;u<e.length;u+=3){var n=e[u],l=e[u+1],i=e[u+2];if(typeof l!="function"){if(q0(l||n)===null)continue;break}var r=fn(n);r!==null&&(e.splice(u,3),u-=3,So(r,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function Wa(e){function u(E){return Kr(E,e)}dl!==null&&Kr(dl,e),hl!==null&&Kr(hl,e),ml!==null&&Kr(ml,e),ic.forEach(u),cc.forEach(u);for(var n=0;n<pl.length;n++){var l=pl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<pl.length&&(n=pl[0],n.blockedOn===null);)Rm(n),n.blockedOn===null&&pl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],r=n[l+1],h=i[Fu]||null;if(typeof r=="function")h||Mm(n);else if(h){var g=null;if(r&&r.hasAttribute("formAction")){if(i=r,h=r[Fu]||null)g=h.formAction;else if(q0(i)!==null)continue}else g=h.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),Mm(n)}}}function Lm(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(h){return i=h})},focusReset:"manual",scroll:"manual"})}function u(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),i!==null&&(i(),i=null)}}}function Y0(e){this._internalRoot=e}Jr.prototype.render=Y0.prototype.render=function(e){var u=this._internalRoot;if(u===null)throw Error(c(409));var n=u.current,l=ft();Dm(n,l,e,u,null,null)},Jr.prototype.unmount=Y0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var u=e.containerInfo;Dm(e.current,2,null,e,null,null),Mr(),u[qu]=null}};function Jr(e){this._internalRoot=e}Jr.prototype.unstable_scheduleHydration=function(e){if(e){var u=di();e={blockedOn:null,target:e,priority:u};for(var n=0;n<pl.length&&u!==0&&u<pl[n].priority;n++);pl.splice(n,0,e),n===0&&Rm(e)}};var Um=a.version;if(Um!=="19.3.1")throw Error(c(527,Um,"19.3.1"));he.findDOMNode=function(e){var u=e._reactInternals;if(u===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=y(u),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var _g={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pr.isDisabled&&Pr.supportsFiber)try{jn=Pr.inject(_g),Uu=Pr}catch{}}return oc.createRoot=function(e,u){if(!o(e))throw Error(c(299));var n=!1,l="",i=C1,r=D1,h=N1;return u!=null&&(u.unstable_strictMode===!0&&(n=!0),u.identifierPrefix!==void 0&&(l=u.identifierPrefix),u.onUncaughtError!==void 0&&(i=u.onUncaughtError),u.onCaughtError!==void 0&&(r=u.onCaughtError),u.onRecoverableError!==void 0&&(h=u.onRecoverableError)),u=Tm(e,1,!1,null,null,n,l,null,i,r,h,Lm),e[qu]=u.current,x0(e),new Y0(u)},oc.hydrateRoot=function(e,u,n){if(!o(e))throw Error(c(299));var l=!1,i="",r=C1,h=D1,g=N1,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),u=Tm(e,1,!0,u,n??null,l,i,E,r,h,g,Lm),u.context=Cm(null),n=u.current,l=ft(),l=Ol(l),i=Wn(l),i.callback=null,el(n,i,l),n=l,u.current.lanes=n,kl(u,n),en(u),e[qu]=u.current,x0(e),new Jr(u)},oc.version="19.3.1",oc}var Im;function jg(){if(Im)return X0.exports;Im=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),X0.exports=Og(),X0.exports}var zg=jg();const Rg=["select","confirm","input","editor"],wg=new Set(Rg),Y2=["notify","setStatus","setWidget","setTitle","set_editor_text"];new Set(Y2);function Mg(t){return wg.has(t)}const ti=4,Lg=4;function Ug(t){return t===void 0?!0:t>=Lg}function Qm(t){const a=[];for(const c of t.split("/"))if(!(c===""||c===".")){if(c===".."){a.pop();continue}a.push(c)}const s=a.join("/");return t.startsWith("/")?`/${s}`:s}function Fg(t,a){const s=Qm(t),c=Qm(a);return s.length===0||c.length===0?!1:s===c?!0:Km(s,c)||Km(c,s)}function Km(t,a){return a==="/"?t!=="/":t.startsWith(`${a}/`)}const Bg="This is the checkout Pi Central is running from. Editing it can hot-reload this UI, desynchronise it from the orchestrator on a branch switch, and leave Pi Central unable to restart if the orchestrator's source is broken — exactly when you need it. Use a separate clone (see docs/DOGFOODING.md).";function Hg(t,a){if(a!==void 0)return Fg(t,a)?Bg:void 0}function ai(t){return!Number.isFinite(t)||t<0?"—":t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const qg={},$m=[500,1e3,2e3,3e3,5e3];function Gg(t){if(t!==ti)return`protocol mismatch: the orchestrator speaks v${t} and this UI speaks v${ti}. Reload the UI; if that fails, restart the orchestrator.`}class Yg{#e;#u;#i;#l=0;#a=!1;#c="connecting";#n;constructor(a,s){this.#i=a,this.#u=s}get status(){return this.#c}connect(){this.#a=!1,this.#r()}#r(){this.#t("connecting");let a;try{a=new WebSocket(this.#i)}catch(s){this.#t("closed",s.message);return}this.#e=a,a.onopen=()=>{this.#l=0,this.#t("open")},a.onmessage=s=>{let c;try{c=JSON.parse(String(s.data)).payload}catch{this.#u.onEvent({kind:"error",message:"received a malformed frame from the orchestrator"});return}if(c.kind==="hello"){const o=Gg(c.protocol);o!==void 0&&this.#u.onEvent({kind:"error",message:o});return}this.#u.onEvent(c)},a.onerror=()=>{},a.onclose=()=>{if(this.#e=void 0,this.#a){this.#t("closed");return}const s=$m[Math.min(this.#l,$m.length-1)];this.#l+=1,this.#t("closed",`reconnecting in ${(s/1e3).toFixed(1)}s`),this.#n=setTimeout(()=>this.#r(),s)}}#t(a,s){this.#c=a,this.#u.onStatus(a,s)}send(a){if(this.#e?.readyState!==WebSocket.OPEN)return!1;const s={dir:"client→orchestrator",protocol:ti,payload:a};return this.#e.send(JSON.stringify(s)),!0}disconnect(){this.#a=!0,this.#n&&clearTimeout(this.#n),this.#n=void 0,this.#e?.close(1e3,"client disconnected"),this.#e=void 0}}function Vg(){const t=qg.VITE_PI_CENTRAL_WS;return typeof t=="string"&&t.length>0?t:`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`}const Zg="/assets/logo-icon-BCSgj5RT.svg";function Xg(t){return t===void 0?{kind:"follow-end"}:t.pinned?{kind:"follow-end"}:{kind:"restore",scrollTop:t.scrollTop,pinned:!1}}function Ig(t,a){return t>a}function Qg(t,a){const s=Math.max(0,a.scrollHeight-t.scrollHeight);return a.scrollHeight-a.scrollTop-a.clientHeight-s}function Kg(t,a,s){return Qg(t,a)<s}function $0(t){return Number.isFinite(t.scrollTop)&&Number.isFinite(t.scrollHeight)&&Number.isFinite(t.clientHeight)&&t.scrollHeight>0&&t.clientHeight>0}function $g(t,a){return t&&a}const V2="pi-central.trace";function Jm(t){const a={};if(typeof t!="object"||t===null||Array.isArray(t))return a;for(const[s,c]of Object.entries(t))typeof c=="boolean"&&(a[s]=c);return a}function Pm(){try{const t=localStorage.getItem(V2);if(t===null||t==="")return{collapsed:{},markers:{}};const a=JSON.parse(t);if(typeof a!="object"||a===null)return{collapsed:{},markers:{}};const s=a;return{collapsed:Jm(s.collapsed),markers:Jm(s.markers)}}catch{return{collapsed:{},markers:{}}}}function Jg(t){try{localStorage.setItem(V2,JSON.stringify({collapsed:t.collapsed,markers:t.markers}))}catch{}}function Pg(){return{directories:{},files:{},expanded:{},openFile:{},showHidden:{},wrapLines:{}}}function un(t,a){return`${t}\0${a}`}function Wg(t){const a=t.indexOf("\0");return{sessionId:t.slice(0,a),path:t.slice(a+1)}}function fs(t,a,s){return t.directories[un(a,s)]??{status:"unloaded"}}function e6(t,a,s){return t.files[un(a,s)]??{status:"unloaded"}}function u6(t,a,s){return t.expanded[un(a,s)]===!0}function ss(t,a){return t.showHidden[a]===!0}function t6(t,a){return t.wrapLines[a]!==!1}function n6(t,a){const s=t.openFile[a];if(s!==void 0)return{path:s,state:e6(t,a,s)}}function l6(t){return t.kind==="directory"?!0:t.kind==="symlink"&&t.linkTarget==="directory"}function Wm(t){return t.kind==="symlink"&&t.linkTarget==="missing"}function a6(t,a){return t===""?a:`${t.replace(/\/+$/,"")}/${a}`}function i6(t,a){switch(a.kind){case"filesLoading":return{...t,directories:{...t.directories,[un(a.sessionId,a.path)]:{status:"loading"}}};case"filesLoaded":return{...t,directories:{...t.directories,[un(a.sessionId,a.path)]:{status:"loaded",entries:a.entries,truncated:a.truncated}}};case"filesFailed":return{...t,directories:{...t.directories,[un(a.sessionId,a.path)]:{status:"error",reason:a.reason,...a.code===void 0?{}:{code:a.code},message:a.message}}};case"fileLoading":return{...t,files:{...t.files,[un(a.sessionId,a.path)]:{status:"loading"}}};case"fileLoaded":return{...t,files:{...t.files,[un(a.sessionId,a.path)]:{status:"loaded",content:a.content,bytes:a.bytes}}};case"fileFailed":return{...t,files:{...t.files,[un(a.sessionId,a.path)]:{status:"error",reason:a.reason,...a.code===void 0?{}:{code:a.code},message:a.message}}};case"toggleExpanded":case"setExpanded":{const s=un(a.sessionId,a.path),c=a.kind==="toggleExpanded"?t.expanded[s]!==!0:a.expanded;return{...t,expanded:{...t.expanded,[s]:c}}}case"openFile":return{...t,openFile:{...t.openFile,[a.sessionId]:a.path}};case"closeFile":return{...t,openFile:{...t.openFile,[a.sessionId]:void 0}};case"toggleHidden":return{...t,showHidden:{...t.showHidden,[a.sessionId]:t.showHidden[a.sessionId]!==!0}};case"toggleWrap":return{...t,wrapLines:{...t.wrapLines,[a.sessionId]:t.wrapLines[a.sessionId]===!1}};case"forgetSession":{const s=`${a.sessionId}\0`,c=_=>Object.fromEntries(Object.entries(_).filter(([x])=>!x.startsWith(s))),{[a.sessionId]:o,...f}=t.openFile,{[a.sessionId]:m,...p}=t.showHidden,{[a.sessionId]:b,...y}=t.wrapLines;return{directories:c(t.directories),files:c(t.files),expanded:c(t.expanded),openFile:f,showHidden:p,wrapLines:y}}}}function ds(){return{messages:[],tools:[],notices:[]}}function c6(t){if(typeof t=="string")return t.length>0?[{kind:"text",text:t,complete:!0}]:[];if(!Array.isArray(t))return[];const a=[];for(const s of t){if(typeof s!="object"||s===null)continue;const c=s;if(c.type==="text"&&typeof c.text=="string")a.push({kind:"text",text:c.text,complete:!0});else if(c.type==="thinking"&&typeof c.thinking=="string")a.push({kind:"thinking",text:c.thinking,complete:!0});else if(c.type==="toolCall"||c.type==="tool_use"||c.type==="tool_call"){const o=c.arguments??c.input;a.push({kind:"toolcall",contentIndex:a.length,...c.id!==void 0?{id:c.id}:{},...c.name!==void 0?{name:c.name}:{},argsText:"",...o!==void 0?{args:o}:{},complete:!0})}}return a}function J0(t,a){const s=t.findIndex(c=>c.toolCallId===a.toolCallId);return s===-1?[...t,a]:t.map((c,o)=>o!==s?c:{...c,toolName:c.toolName&&c.toolName!=="tool"?c.toolName:a.toolName,args:c.args??a.args,result:a.result.length>c.result.length?a.result:c.result,isError:c.isError||a.isError,running:a.running?!0:a.durationMs!==void 0||a.result.length>0?!1:c.running,durationMs:c.durationMs??a.durationMs,afterMessage:c.afterMessage})}function Wl(t,a,s){for(;t.length<=a;)t.push({kind:"text",text:"",complete:!1});const c=t[a];if(c===void 0||c.kind==="text"&&c.text===""&&!c.complete&&s().kind!=="text"){const o=s();return t[a]=o,o}return c}function Z2(t){const a=t.messages[t.messages.length-1];return a?.role==="assistant"?a:void 0}function X2(t,a){const s=String(a.type??""),c={...t,messages:[...t.messages],tools:[...t.tools],notices:[...t.notices??[]],lastRecordType:s,lastRecordAt:Date.now()};switch(s){case"compaction_start":return c.notices=[...c.notices,{kind:"compaction",reason:String(a.reason??"unknown"),startedAt:Date.now()}],c;case"compaction_end":{const o=a.result;return c.notices=P0(c.notices,"compaction",f=>({...f,ended:{aborted:a.aborted===!0,willRetry:a.willRetry===!0,...typeof a.errorMessage=="string"?{errorMessage:a.errorMessage}:{}},...typeof o?.tokensBefore=="number"?{tokensBefore:o.tokensBefore}:{},...typeof o?.tokensAfter=="number"?{tokensAfter:o.tokensAfter}:{}})),c}case"auto_retry_start":return c.notices=[...c.notices,{kind:"retry",attempt:Number(a.attempt??1),maxAttempts:Number(a.maxAttempts??1),delayMs:Number(a.delayMs??0),errorMessage:String(a.errorMessage??"")}],c;case"auto_retry_end":return c.notices=P0(c.notices,"retry",o=>({...o,ended:{success:a.success===!0,...typeof a.finalError=="string"?{finalError:a.finalError}:{}}})),c;case"summarization_retry_scheduled":return c.notices=[...c.notices,{kind:"summarization",source:"unknown",attempt:Number(a.attempt??1),maxAttempts:Number(a.maxAttempts??1),...typeof a.errorMessage=="string"?{errorMessage:a.errorMessage}:{},finished:!1}],c;case"summarization_retry_attempt_start":{let o=!1;return c.notices=c.notices.map(f=>o||f.kind!=="summarization"||f.finished?f:(o=!0,{...f,source:String(a.source??"unknown")})),o||(c.notices=[...c.notices,{kind:"summarization",source:String(a.source??"unknown"),attempt:1,maxAttempts:1,finished:!1}]),c}case"summarization_retry_finished":return c.notices=P0(c.notices,"summarization",o=>({...o,finished:!0})),c;case"message_start":{const f=a.message?.role??"assistant";return c.messages=c.messages.map(m=>m.streaming?{...m,streaming:!1}:m),c.messages.push({id:`m${c.messages.length}`,role:f,blocks:[],complete:!1,streaming:!0}),c}case"message_update":{const o=a.assistantMessageEvent;if(!o)return c;const f=a.usage;if(f){const m=Z2(c);m&&(c.messages[c.messages.length-1]={...m,usage:f})}return r6(c,o)}case"message_end":{const o=a.message,f=o?.role;if(f==="system")return c;if(f==="toolResult"||f==="bashExecution"){const y=o?.toolCallId??`history-${c.tools.length}`;return c.tools=J0(c.tools,{toolCallId:y,toolName:o?.toolName??(f==="bashExecution"?"bash":"tool"),args:o?.command!==void 0?{command:o.command}:void 0,result:bc(o?.content)||String(o?.output??""),isError:o?.isError===!0,running:!1,startedAt:Date.now(),afterMessage:c.messages.length}),c}const m=c6(o?.content),p=o?s6(o):void 0;p&&m.push({kind:"text",text:p,complete:!0});const b=c.messages[c.messages.length-1];return b&&b.role==="assistant"&&!b.complete&&f!=="user"?c.messages[c.messages.length-1]={...b,blocks:m.length>0?m:b.blocks,complete:!0,streaming:!1}:o&&c.messages.push({id:`m${c.messages.length}`,role:o6(f),blocks:m,complete:!0,streaming:!1}),c}case"tool_execution_start":{const o=String(a.toolCallId??"");return c.tools=J0(c.tools,{toolCallId:o,toolName:String(a.toolName??""),args:a.args,result:"",isError:!1,running:!0,startedAt:Date.now(),afterMessage:c.messages.length}),c}case"tool_execution_update":{const o=String(a.toolCallId??"");return c.tools=c.tools.map(f=>f.toolCallId===o?{...f,result:bc(a.partialResult)}:f),c}case"tool_execution_end":{const o=String(a.toolCallId??"");let f=!1;return c.tools=c.tools.map(m=>m.toolCallId!==o?m:(f=!0,{...m,result:bc(a.result),isError:a.isError===!0,running:!1,...typeof a.durationMs=="number"?{durationMs:a.durationMs}:{}})),f||(c.tools=J0(c.tools,{toolCallId:o,toolName:String(a.toolName??""),args:a.args,result:bc(a.result),isError:a.isError===!0,running:!1,...typeof a.durationMs=="number"?{durationMs:a.durationMs}:{},startedAt:Date.now(),afterMessage:c.messages.length})),c}default:return c}}function r6(t,a){const s=String(a.type??""),c=typeof a.contentIndex=="number"?a.contentIndex:0,o=Z2(t);if(!o)return t;const f=[...t.messages],m=[...o.blocks],p=b=>{f[f.length-1]=b};switch(s){case"text_start":Wl(m,c,()=>({kind:"text",text:"",complete:!1}));break;case"text_delta":{const b=Wl(m,c,()=>({kind:"text",text:"",complete:!1}));b.kind==="text"&&(m[c]={...b,text:b.text+String(a.delta??"")});break}case"text_end":{const b=String(a.content??"");Wl(m,c,()=>({kind:"text",text:"",complete:!1})),m[c]={kind:"text",text:b,complete:!0};break}case"thinking_start":Wl(m,c,()=>({kind:"thinking",text:"",complete:!1}));break;case"thinking_delta":{const b=Wl(m,c,()=>({kind:"thinking",text:"",complete:!1}));b.kind==="thinking"&&(m[c]={...b,text:b.text+String(a.delta??"")});break}case"thinking_end":{m[c]={kind:"thinking",text:String(a.content??""),complete:!0};break}case"toolcall_start":{const b={kind:"toolcall",contentIndex:c,argsText:"",complete:!1,...a.id!==void 0?{id:String(a.id)}:{},...a.toolName!==void 0?{name:String(a.toolName)}:{}};Wl(m,c,()=>b),m[c]=b;break}case"toolcall_delta":{const b=m[c];b?.kind==="toolcall"&&(m[c]={...b,argsText:b.argsText+String(a.delta??"")});break}case"toolcall_end":{const b=m[c],y=a.toolCall,_=b?.kind==="toolcall"?b:{kind:"toolcall",contentIndex:c,argsText:"",complete:!1};m[c]={..._,...y?.id!==void 0?{id:y.id}:{},...y?.name!==void 0?{name:y.name}:{},...y?.input!==void 0?{args:y.input}:{},complete:!0};break}case"error":{const b=Wl(m,c,()=>({kind:"text",text:"",complete:!1})),y=String(a.reason??a.error??"the provider stream ended with an error");b.kind==="text"&&(m[c]={...b,text:`${b.text}
10
+
11
+ [${y}]`,complete:!1});break}default:return t}return p({...o,blocks:m}),{...t,messages:f}}function bc(t){if(t==null)return"";if(typeof t=="string")return t;if(Array.isArray(t))return t.map(a=>{if(typeof a=="string")return a;if(typeof a=="object"&&a!==null){const s=a;if(typeof s.text=="string")return s.text}return""}).filter(Boolean).join(`
12
+ `);if(typeof t=="object"){const a=t;if(typeof a.text=="string")return a.text;if(typeof a.output=="string")return a.output;if(a.content!==void 0)return bc(a.content);try{return JSON.stringify(t,null,2)}catch{return String(t)}}return String(t)}function s6(t){const a=t.stopReason;if(a!=="error"&&a!=="aborted")return;const s=t.errorMessage?.trim();return`⚠ ${a==="aborted"?"This response was interrupted.":"This response did not complete."}${s?` ${s}`:""}`}function o6(t){switch(t){case"user":return"user";case"system":return"system";case"toolResult":case"bashExecution":return"tool";default:return"assistant"}}function f6(t){let a=ds();for(const s of t)typeof s!="object"||s===null||(a=X2(a,{type:"message_end",message:s}));return d6(a)}function d6(t){const a=new Map;if(t.messages.forEach((f,m)=>{for(const p of f.blocks)p.kind!=="toolcall"||p.id===void 0||a.set(p.id,{name:p.name,args:p.args,index:m})}),a.size===0)return t;const s=new Set(t.tools.map(f=>f.toolCallId)),c=t.tools.map(f=>{const m=a.get(f.toolCallId);return m?{...f,args:f.args??m.args,toolName:f.toolName==="tool"&&m.name?m.name:f.toolName}:f}),o=[];for(const[f,m]of a)s.has(f)||o.push({toolCallId:f,toolName:m.name??"tool",args:m.args,result:"",isError:!1,running:!1,startedAt:Date.now(),afterMessage:m.index+1,unfinished:!0});return{...t,tools:[...c,...o].sort((f,m)=>f.afterMessage-m.afterMessage)}}function h6(t){return t.blocks.filter(a=>a.kind==="text").map(a=>a.text).join("")}function m6(t){const a=new Map;for(const s of t){const c=a.get(s.afterMessage);c===void 0?a.set(s.afterMessage,[s]):c.push(s)}return a}function p6(t,a=5){const s=t.length;if(s===0)return[];const c=t.slice(Math.max(0,s-a));return[...t.filter(f=>f.running&&!c.includes(f)),...c]}function e2(t){const a=t.args;if(a==null)return"";if(typeof a=="string")return a;if(typeof a=="object"){const s=a;for(const o of["command","path","file_path","pattern","query","url","prompt","name"]){const f=s[o];if(typeof f=="string"&&f.length>0)return o==="command"?f:`${f}`}const c=Object.keys(s);return c.length>0?c.join(", "):""}return String(a)}function b6(t){const a=[];for(const s of t)a.includes(s.toolName)||a.push(s.toolName);return{count:t.length,names:a,failed:t.filter(s=>s.isError).length}}function g6(t,a=72){const s=t.replace(/\s+/g," ").replace(/^[\s*_#>\-]+/,"").trim();if(s.length===0)return"";if(s.length<=a)return s;const c=s.slice(0,a),o=c.lastIndexOf(" ");return`${(o>a*.5?c.slice(0,o):c).replace(/[,;:.\u2014-]+$/,"")}…`}function I2(t){return t.blocks.some(a=>a.kind==="text"&&a.text.trim().length>0)||t.blocks.some(a=>a.kind==="thinking"&&a.text.trim().length>0)}function P0(t,a,s){for(let c=t.length-1;c>=0;c-=1){const o=t[c];if(o.kind!==a||("ended"in o?o.ended!==void 0:o.finished===!0))continue;const m=[...t];return m[c]=s(o),m}return t}function y6(t){return t.kind==="summarization"?!t.finished:t.ended===void 0}function x6(t){const a=[],s=m6(t.tools),c=s.get(0)??[];c.length>0&&a.push({kind:"tools",tools:c});let o=[];return t.messages.forEach((f,m)=>{const p=s.get(m+1)??[];I2(f)&&(o.length>0&&(a.push({kind:"tools",tools:o}),o=[]),a.push({kind:"turn",message:f})),o.push(...p)}),o.length>0&&a.push({kind:"tools",tools:o}),a}const u2="pi-central.roster",Df=200;function hs(t){return typeof t!="string"||t.length===0||t.length>4096||t.includes("\0")?!1:t.startsWith("/")}function t2(t,a){if(typeof t!="string")return;const s=t.trim();if(s.length!==0)return s.length>a?s.slice(0,a):s}function v6(t){const a={};return t.sessionId!==void 0&&(a.sessionId=t.sessionId),t.cwd!==void 0&&(a.cwd=t.cwd),t.name!==void 0&&(a.name=t.name),t.scratch!==void 0&&(a.scratch=t.scratch),a}function _6(t){if(t===null||t==="")return[];let a;try{a=JSON.parse(t)}catch{return[]}const s=Array.isArray(a)?a:typeof a=="object"&&a!==null&&Array.isArray(a.entries)?a.entries:[],c=new Set,o=[];for(const f of s){if(o.length>=Df)break;if(typeof f!="object"||f===null)continue;const m=f,p=m.path;if(!hs(p)||c.has(p))continue;c.add(p);const b={path:p},y=t2(m.sessionId,128);y!==void 0&&(b.sessionId=y),hs(m.cwd)&&(b.cwd=m.cwd);const _=t2(m.name,200);_!==void 0&&(b.name=_),typeof m.scratch=="boolean"&&(b.scratch=m.scratch),o.push(b)}return o}function E6(t){return JSON.stringify(t.slice(0,Df))}function S6(t,a){if(!hs(a.path))return[...t];const s=t.findIndex(c=>c.path===a.path);if(s>=0){const c=[...t];return c[s]={...t[s],...v6(a)},c}return[a,...t].slice(0,Df)}function A6(t,a){return t.filter(s=>s.path!==a)}function Q2(t){if(!hs(t.sessionFile))return;const a={path:t.sessionFile};return t.sessionId&&(a.sessionId=t.sessionId),t.cwd&&(a.cwd=t.cwd),t.name&&(a.name=t.name),a.scratch=t.scratch,a}function T6(t,a){const s=new Map;for(const f of a)f.sessionFile!==void 0&&s.set(f.sessionFile,f);const c=t.map(f=>({entry:f,session:s.get(f.path)})),o=new Set(t.map(f=>f.path));for(const f of a){const m=f.sessionFile;if(m!==void 0&&o.has(m))continue;const p=Q2(f)??{path:`live:${f.id}`,name:f.name,cwd:f.cwd};c.push({entry:p,session:f})}return c}function C6(t){return t.session===void 0?"stopped":t.session.state}function D6(t){switch(t.session?.state){case"awaiting-approval":return"needs";case"failed":return"failed";case"streaming":case"starting":return"running";case"idle":return"idle";default:return"stopped"}}function N6(t){return["needs","failed","running","idle","stopped"].map(s=>({group:s,rows:t.filter(c=>D6(c)===s)})).filter(s=>s.rows.length>0)}function k6(t,a){if(t!==void 0)return a.find(s=>s.sessionFile===t.path)}function K2(){return{live:[],history:[],historyTotal:0,home:void 0,installationRoot:void 0,install:void 0,transcripts:{},transcriptErrors:{},models:{},modelErrors:{},thinkingLevels:{},thinkingLevelErrors:{},queues:{},restoredQueue:{},focusedId:void 0,focusNextNewSession:!1,roster:[],pendingPrompt:void 0,connection:"connecting",connectionDetail:void 0,errors:[],ready:!1}}const O6=20;function j6(t,a){if(a.kind==="queueRestored"){const{[a.sessionId]:s,...c}=t.restoredQueue;return{...t,restoredQueue:c}}if(a.kind==="expectNewSession")return t.focusNextNewSession?t:{...t,focusNextNewSession:!0};if(a.kind==="dismissError")return t.errors.length===0?t:{...t,errors:t.errors.slice(1)};if(a.kind==="loadRoster")return{...t,roster:a.entries};if(a.kind==="remember")return{...t,roster:S6(t.roster,a.entry)};if(a.kind==="forget")return{...t,roster:A6(t.roster,a.path)};if(a.kind==="queuePrompt")return{...t,pendingPrompt:{path:a.path,message:a.message,...a.behavior?{behavior:a.behavior}:{}}};if(a.kind==="clearPendingPrompt")return t.pendingPrompt===void 0?t:{...t,pendingPrompt:void 0};if(a.kind==="focusRow"){const s=t.live.some(o=>o.id===a.key),c=t.roster.some(o=>o.path===a.key);return!s&&!c||t.focusedId===a.key?t:{...t,focusedId:a.key}}return z6(t,a)}function z6(t,a){switch(a.kind){case"snapshot":{const c=t.focusedId&&a.live.some(o=>o.id===t.focusedId)?t.focusedId:a.live[0]?.id;return{...t,live:a.live,history:a.history,historyTotal:a.historyTotal,home:a.home,installationRoot:a.installationRoot,install:a.install,focusedId:c,ready:!0}}case"session":{const s=t.live.findIndex(b=>b.id===a.session.id),c=s===-1?[...t.live,a.session]:t.live.map(b=>b.id===a.session.id?a.session:b),o=s===-1,f=t.focusNextNewSession&&o?a.session.id:t.focusedId??a.session.id,m=a.session.sessionFile,p=t.history.map(b=>b.path===m?{...b,...a.session.name?{name:a.session.name}:{}}:b);return{...t,live:c,history:p,focusedId:f,focusNextNewSession:o?!1:t.focusNextNewSession}}case"record":{const s=t.transcripts[a.sessionId]??ds();return{...t,transcripts:{...t.transcripts,[a.sessionId]:X2(s,a.record)}}}case"transcript":{const{[a.sessionId]:s,...c}=t.transcriptErrors;return{...t,transcripts:{...t.transcripts,[a.sessionId]:f6(a.messages)},transcriptErrors:c}}case"transcriptError":return{...t,transcriptErrors:{...t.transcriptErrors,[a.sessionId]:a.message}};case"models":{const{[a.sessionId]:s,...c}=t.modelErrors;return{...t,models:{...t.models,[a.sessionId]:a.models},modelErrors:c}}case"modelsError":return{...t,modelErrors:{...t.modelErrors,[a.sessionId]:a.message}};case"thinkingLevels":{const{[a.sessionId]:s,...c}=t.thinkingLevelErrors;return{...t,thinkingLevels:{...t.thinkingLevels,[a.sessionId]:a.levels},thinkingLevelErrors:c}}case"thinkingLevelsError":return{...t,thinkingLevelErrors:{...t.thinkingLevelErrors,[a.sessionId]:a.message}};case"queue":return{...t,queues:{...t.queues,[a.sessionId]:{steering:a.steering,followUp:a.followUp}}};case"queueCleared":{const s=[...a.steering,...a.followUp];return{...t,queues:{...t.queues,[a.sessionId]:{steering:[],followUp:[]}},restoredQueue:{...t.restoredQueue,[a.sessionId]:s}}}case"history":return{...t,history:a.history,historyTotal:a.total,ready:!0};case"files":case"file":case"fileError":return t;case"error":return{...t,focusNextNewSession:!1,errors:[a.message,...t.errors].slice(0,O6)}}}function R6(t){const a=c=>c.state==="streaming"||c.state==="starting",s=c=>c.state==="awaiting-approval"||c.state==="failed";return{total:t.live.length,running:t.live.filter(a).length,idle:t.live.filter(c=>c.state==="idle").length,needs:t.live.filter(s).length,scratch:t.live.filter(c=>c.scratch).length}}function w6(t){return t.live.some(a=>a.mode==="direct")}function M6(t){return t.live.find(a=>a.id===t.focusedId)}function L6(t,a){return a?t.transcripts[a]??ds():ds()}function U6(t){return t.live.reduce((a,s)=>a+s.dialogs.length,0)}function F6(t){if(!t)return{mode:"unavailable",reason:"No session selected."};switch(t.state){case"starting":return{mode:"unavailable",reason:"Starting up. The session will accept a prompt shortly."};case"idle":return{mode:"prompt"};case"streaming":return{mode:"steer"};case"awaiting-approval":return{mode:"unavailable",reason:"Waiting for your answer to a dialog below."};case"failed":return{mode:"unavailable",reason:"This session failed to start. Retry it from the rail."};case"stopped":return{mode:"unavailable",reason:"This session has stopped."};case"registered":return{mode:"unavailable",reason:"Not yet started."}}}function B6(t,a){if(!a)return{steering:[],followUp:[],total:0,textsKnown:!0};const s=t.queues[a.id],c=s?.steering??[],o=s?.followUp??[],f=s!==void 0&&c.length+o.length>=a.pending;return{steering:c,followUp:o,total:a.pending,textsKnown:f}}function H6(t,a,s=200){const c=a.trim().toLowerCase();if(c.length===0)return t.slice(0,s);const o=[];for(const f of t){let m=0;const p=(f.name??"").toLowerCase(),b=f.cwd.toLowerCase(),y=f.firstMessage.toLowerCase();p.includes(c)&&(m+=100),b.includes(c)&&(m+=50),y.includes(c)&&(m+=20),m>0&&o.push({session:f,score:m})}return o.sort((f,m)=>m.score-f.score||m.session.modifiedMs-f.session.modifiedMs),o.slice(0,s).map(f=>f.session)}function $2(t){switch(t.state){case"registered":return"registered";case"starting":return"starting";case"idle":return"idle";case"streaming":return"working";case"awaiting-approval":return"needs you";case"stopped":return"stopped";case"failed":return"failed"}}function q6(t){const a=[];for(const s of t){const c=a.at(-1);c&&c.provider===s.provider?c.models.push(s):a.push({provider:s.provider,models:[s]})}return a}function J2(t,a){return t.model===a.id&&(t.provider===void 0||t.provider===a.provider)}function G6(t){return t&&t.state==="streaming"?"Applies to the next turn; this run is already using the current model.":""}function Nf(t){return t===null||!Number.isFinite(t)?"—":t===0?"$0.00":t<1?`$${t.toFixed(4)}`:`$${t.toFixed(2)}`}function ms(t){return t===null||!Number.isFinite(t)?"—":t<1e3?`${t}`:t<1e6?`${(t/1e3).toFixed(1)}k`:`${(t/1e6).toFixed(1)}M`}function P2(t){if(t===null||!Number.isFinite(t))return"ctx —";const a=Math.round(t);return a>=80?`ctx ${a}% full`:`ctx ${a}%`}function Y6(t){return t?t.length>4?t.slice(0,3):t:"—"}function V6(t,a=Date.now()){const s=Math.max(0,Math.floor((a-t)/1e3));if(s<60)return"just now";const c=Math.floor(s/60);if(c<60)return`${c}m ago`;const o=Math.floor(c/60);if(o<24)return`${o}h ago`;const f=Math.floor(o/24);return f<30?`${f}d ago`:new Date(t).toLocaleDateString()}function kf(t,a){if(t.length<=a)return t;const s=a-1,c=Math.ceil(s*.55),o=s-c;return`${t.slice(0,c)}…${t.slice(t.length-o)}`}function ii(t,a=34,s){let c=t;return s&&s.length>1&&c.startsWith(s)&&(c=`~${c.slice(s.length)}`),kf(c,a)}function Z6(t,a=14){return t?kf(t,a):"model —"}function W2(t,a,s){const c=t?.trim(),o=c===void 0||c.length===0||/^(undefined|null)$/i.test(c)||/^s\d+$/.test(c);return a?o?"Scratch session":c:o?s:c}function ps(t){return W2(t.name,t.scratch,t.id)}function ep(t,a){return t.scratch?`scratch · ${t.id}`:ii(t.cwd,34,a)}function X6(t,a,s=70){return t.scratch?`${ep(t,a)} · ${ii(t.cwd,s,a)}`:ii(t.cwd,s,a)}async function I6(t){try{return await navigator.clipboard.writeText(t),!0}catch{return!1}}const Q6=[{key:"needs",label:"Needs you"},{key:"failed",label:"Failed"},{key:"running",label:"Running"},{key:"idle",label:"Idle"},{key:"stopped",label:"Stopped"}];function K6({rows:t,focusedId:a,onFocusRow:s,onForgetRow:c,onRetryRow:o,retryAvailable:f,onStartSession:m,onOpenDirectory:p,home:b,historyTotal:y}){const[_,x]=B.useState(""),k=B.useMemo(()=>{const S=_.trim().toLowerCase();return S.length===0?t:t.filter(L=>{const Z=up(L).toLowerCase(),I=(L.entry.cwd??"").toLowerCase(),ie=L.session?.id.toLowerCase()??"";return Z.includes(S)||I.includes(S)||ie.includes(S)})},[t,_]),R=B.useMemo(()=>N6(k),[k]);return d.jsxs("nav",{className:"rail","aria-label":"Sessions",children:[d.jsxs("div",{className:"rail-start",children:[d.jsxs("button",{type:"button",className:"btn-primary",onClick:m,children:["New session",d.jsx("small",{children:"runs in a scratch workspace"})]}),d.jsxs("button",{type:"button",className:"btn-quiet",onClick:p,children:[d.jsx("span",{children:"Open in a directory…"}),d.jsx("span",{className:"mono",children:"⌘⇧O"})]})]}),d.jsx("div",{className:"rail-filter",children:d.jsx("input",{type:"search",value:_,placeholder:"Filter sessions","aria-label":"Filter sessions",onChange:S=>x(S.target.value)})}),d.jsxs("div",{className:"rail-list",children:[t.length===0?d.jsxs("p",{className:"rail-empty",children:["No sessions yet. Start one with ",d.jsx("kbd",{children:"⌘N"}),"."]}):R.length===0?d.jsxs("p",{className:"rail-empty",children:["No sessions match “",_,"”."]}):R.map(S=>d.jsxs("section",{"aria-label":n2(S.group),children:[d.jsxs("h3",{className:"group-header",children:[d.jsx("span",{children:n2(S.group)}),d.jsx("span",{className:"count",children:S.rows.length})]}),S.rows.map(L=>d.jsx(P6,{row:L,focused:l2(L)===a,onFocus:()=>s(L),onForget:()=>c(L),onRetry:()=>o(L),retryAvailable:f,home:b},l2(L)))]},S.group)),y>0&&d.jsx("p",{className:"rail-empty",style:{borderTop:"1px solid var(--line)",marginTop:8},children:`${y} session${y===1?"":"s"} on disk — see the History tab.`})]})]})}function n2(t){return Q6.find(a=>a.key===t)?.label??t}function l2(t){return t.session?.id??t.entry.path}function up(t){return t.session!==void 0?ps(t.session):W2(t.entry.name,t.entry.scratch===!0,J6(t.entry.path))}function $6(t){return t.split(`
13
+ `)[0]??t}function J6(t){return(t.split("/").filter(s=>s.length>0).pop()??t).replace(/\.jsonl$/,"")}function P6({row:t,focused:a,onFocus:s,onForget:c,onRetry:o,retryAvailable:f,home:m}){const p=t.session,b=p?.dialogs[0]?.message??p?.dialogs[0]?.title,y=C6(t),_=t.entry.cwd===void 0?"directory unknown":ii(t.entry.cwd,34,m);return d.jsxs("div",{className:`rail-row state-${y}${a?" is-focused":""}`,children:[d.jsxs("button",{type:"button",className:"rail-row-main","aria-current":a?"true":void 0,onClick:s,children:[d.jsxs("span",{className:"r1",children:[d.jsx("span",{className:"name",children:up(t)}),p?.scratch&&d.jsx("span",{className:"chip chip-scratch",children:"scratch"}),d.jsx("span",{className:`chip chip-${y}`,children:p===void 0?"stopped":$2(p)})]}),b?d.jsxs("span",{className:"r2 ask",title:b,children:["⚠ ",b]}):d.jsx("span",{className:"r2",title:t.entry.cwd,children:p===void 0?_:ep(p,m)}),p!==void 0&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"r3",children:[d.jsx("span",{children:Z6(p.model)}),d.jsx("span",{children:Y6(p.thinkingLevel)}),d.jsx("span",{children:P2(p.contextPercent)}),d.jsx("span",{children:Nf(p.cost)}),p.pending>0&&d.jsxs("span",{children:["+",p.pending," queued"]})]}),p.warnings.length>0&&d.jsxs("span",{className:"r3",style:{color:"var(--warn-text)"},title:p.warnings.join(`
14
+ `),children:["⚠ ",p.warnings[0]]})]})]}),p?.state==="failed"&&d.jsx("span",{className:"rail-row-actions",children:f?d.jsx("button",{type:"button",className:"rail-row-retry",onClick:o,title:"Try this session again in the same directory",children:"Retry"}):d.jsx("span",{className:"rail-row-earlier",children:"restart the orchestrator to retry (it speaks an older protocol)"})}),p?.previousError!==void 0&&d.jsxs("span",{className:"rail-row-earlier",children:["last failure: ",$6(p.previousError)]}),p===void 0&&d.jsx("button",{type:"button",className:"rail-row-forget",onClick:c,title:"Remove from the rail. The session file is not deleted.",children:"Forget"})]})}const W6="modulepreload",ey=function(t){return"/"+t},a2={},os=function(a,s,c){let o=Promise.resolve();if(s&&s.length>0){let b=function(y){return Promise.all(y.map(_=>Promise.resolve(_).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),p=m?.nonce||m?.getAttribute("nonce");o=b(s.map(y=>{if(y=ey(y),y in a2)return;a2[y]=!0;const _=y.endsWith(".css"),x=_?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${x}`))return;const k=document.createElement("link");if(k.rel=_?"stylesheet":W6,_||(k.as="script"),k.crossOrigin="",k.href=y,p&&k.setAttribute("nonce",p),document.head.appendChild(k),_)return new Promise((R,S)=>{k.addEventListener("load",R),k.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(m){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=m,window.dispatchEvent(p),!p.defaultPrevented)throw m}return o.then(m=>{for(const p of m||[])p.status==="rejected"&&f(p.reason);return a().catch(f)})},uy="github-dark-default";let Wr,es;async function tp(){return Wr||(es||(es=os(()=>import("./grammar-map-zNF3jzH0.js"),[]).then(t=>(Wr=t.grammars,Wr)).catch(()=>(es=void 0,{}))),es)}let us,ts;const ty=new Set,W0=new Map;function np(t){return t.trim().toLowerCase()}async function lp(t){if(t.length===0)return;const a=await tp(),s=t.replace(/[^a-z0-9]/g,"");return[`../../../node_modules/@shikijs/langs/dist/${t}.mjs`,`../../../node_modules/@shikijs/langs/dist/${s}.mjs`].find(o=>a[o]!==void 0)}async function ny(t){return await lp(np(t))!==void 0}async function ly(t){const a=W0.get(t);if(a)return a;const s=await lp(t),c=s?(await tp())[s]:void 0;if(!c)return;const o=c().then(f=>f,()=>{W0.delete(t)});return W0.set(t,o),o}async function ay(){return us||(ts||(ts=(async()=>{try{const[{createHighlighterCore:t},{createJavaScriptRegexEngine:a},s]=await Promise.all([os(()=>import("./core-CcaQSRDK.js"),[]),os(()=>import("./engine-javascript-CuxHA8oH.js"),[]),os(()=>import("./github-dark-default-Cuk6v7N8.js"),[])]);return us=await t({themes:[s],langs:[],engine:a()}),us}catch{ts=void 0;return}})()),ts)}function iy(t){return typeof t=="number"&&(t&1)===1}async function cy(t,a){if(t.length===0)return;const s=np(a);if(!await ny(s))return;const c=await ay();if(c)try{if(!c.getLoadedLanguages().includes(s)){const f=await ly(s);if(!f)return;await c.loadLanguage(f.default),ty.add(s)}const{tokens:o}=c.codeToTokens(t,{lang:s,theme:uy});return{lang:s,lines:o.map(f=>f.map(m=>({text:m.content,...m.color!==void 0?{color:m.color}:{},...iy(m.fontStyle)?{italic:!0}:{}})))}}catch{return}}function ry(t){if(!t)return;const a=t.replace(/^#/,"").toLowerCase(),s=a.length===3?a.split("").map(c=>c+c).join(""):a;return/^[0-9a-f]{6}$/.test(s)?`tk-${s}`:void 0}function sy(t){return B.createElement("pre",{className:`shiki shiki-${t.lang}`},B.createElement("code",null,t.lines.map((a,s)=>B.createElement("span",{className:"line",key:s},a.length===0?`
15
+ `:[...a.map((c,o)=>B.createElement("span",{key:o,className:[ry(c.color),c.italic?"tk-i":void 0].filter(Boolean).join(" ")||void 0},c.text)),`
16
+ `]))))}const oy=/^(`{3,}|~{3,})\s*([^`\s]*)\s*$/;function fy(t){if(!t.includes("```")&&!t.includes("~~~"))return[{kind:"prose",text:t}];const a=t.split(`
17
+ `),s=[];let c=[];const o=()=>{c.length>0&&(s.push({kind:"prose",text:c.join(`
18
+ `)}),c=[])};for(let f=0;f<a.length;f+=1){const m=a[f]??"",p=oy.exec(m);if(!p){c.push(m);continue}const b=p[1],y=(p[2]??"").toLowerCase();let _=-1;for(let x=f+1;x<a.length;x+=1){const R=(a[x]??"").trimEnd();if(R.length>=b.length&&/^(`{3,}|~{3,})$/.test(R)&&R[0]===b[0]){_=x;break}}if(_===-1){c.push(m);continue}o(),s.push({kind:"code",lang:y,code:a.slice(f+1,_).join(`
19
+ `)}),f=_}return o(),s.length>0?s:[{kind:"prose",text:t}]}function dy(t){const a=new Set;for(const s of t)s.kind==="code"&&s.lang.length>0&&a.add(s.lang);return[...a].sort()}const i2={};function hy(t){let a=i2[t];if(a)return a;a=i2[t]=[];for(let s=0;s<128;s++){const c=String.fromCharCode(s);a.push(c)}for(let s=0;s<t.length;s++){const c=t.charCodeAt(s);a[c]="%"+("0"+c.toString(16).toUpperCase()).slice(-2)}return a}function ci(t,a){typeof a!="string"&&(a=ci.defaultChars);const s=hy(a);return t.replace(/(%[a-f0-9]{2})+/gi,function(c){let o="";for(let f=0,m=c.length;f<m;f+=3){const p=parseInt(c.slice(f+1,f+3),16);if(p<128){o+=s[p];continue}if((p&224)===192&&f+3<m){const b=parseInt(c.slice(f+4,f+6),16);if((b&192)===128){const y=p<<6&1984|b&63;y<128?o+="��":o+=String.fromCharCode(y),f+=3;continue}}if((p&240)===224&&f+6<m){const b=parseInt(c.slice(f+4,f+6),16),y=parseInt(c.slice(f+7,f+9),16);if((b&192)===128&&(y&192)===128){const _=p<<12&61440|b<<6&4032|y&63;_<2048||_>=55296&&_<=57343?o+="���":o+=String.fromCharCode(_),f+=6;continue}}if((p&248)===240&&f+9<m){const b=parseInt(c.slice(f+4,f+6),16),y=parseInt(c.slice(f+7,f+9),16),_=parseInt(c.slice(f+10,f+12),16);if((b&192)===128&&(y&192)===128&&(_&192)===128){let x=p<<18&1835008|b<<12&258048|y<<6&4032|_&63;x<65536||x>1114111?o+="����":(x-=65536,o+=String.fromCharCode(55296+(x>>10),56320+(x&1023))),f+=9;continue}}o+="�"}return o})}ci.defaultChars=";/?:@&=+$,#";ci.componentChars="";const c2={};function my(t){let a=c2[t];if(a)return a;a=c2[t]=[];for(let s=0;s<128;s++){const c=String.fromCharCode(s);/^[0-9a-z]$/i.test(c)?a.push(c):a.push("%"+("0"+s.toString(16).toUpperCase()).slice(-2))}for(let s=0;s<t.length;s++)a[t.charCodeAt(s)]=t[s];return a}function Ac(t,a,s){typeof a!="string"&&(s=a,a=Ac.defaultChars),typeof s>"u"&&(s=!0);const c=my(a);let o="";for(let f=0,m=t.length;f<m;f++){const p=t.charCodeAt(f);if(s&&p===37&&f+2<m&&/^[0-9a-f]{2}$/i.test(t.slice(f+1,f+3))){o+=t.slice(f,f+3),f+=2;continue}if(p<128){o+=c[p];continue}if(p>=55296&&p<=57343){if(p>=55296&&p<=56319&&f+1<m){const b=t.charCodeAt(f+1);if(b>=56320&&b<=57343){o+=encodeURIComponent(t[f]+t[f+1]),f++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(t[f])}return o}Ac.defaultChars=";/?:@&=+$,-_.!~*'()#";Ac.componentChars="-_.!~*'()";function Of(t){let a="";return a+=t.protocol||"",a+=t.slashes?"//":"",a+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?a+="["+t.hostname+"]":a+=t.hostname||"",a+=t.port?":"+t.port:"",a+=t.pathname||"",a+=t.search||"",a+=t.hash||"",a}function bs(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const py=/^([a-z0-9.+-]+:)/i,by=/:[0-9]*$/,gy=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,yy=["<",">",'"',"`"," ","\r",`
20
+ `," "],xy=["{","}","|","\\","^","`"].concat(yy),vy=["'"].concat(xy),r2=["%","/","?",";","#"].concat(vy),s2=["/","?","#"],_y=255,o2=/^[+a-z0-9A-Z_-]{0,63}$/,Ey=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f2={javascript:!0,"javascript:":!0},d2={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function jf(t,a){if(t&&t instanceof bs)return t;const s=new bs;return s.parse(t,a),s}bs.prototype.parse=function(t,a){let s,c,o,f=t;if(f=f.trim(),!a&&t.split("#").length===1){const y=gy.exec(f);if(y)return this.pathname=y[1],y[2]&&(this.search=y[2]),this}let m=py.exec(f);if(m&&(m=m[0],s=m.toLowerCase(),this.protocol=m,f=f.substr(m.length)),(a||m||f.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=f.substr(0,2)==="//",o&&!(m&&f2[m])&&(f=f.substr(2),this.slashes=!0)),!f2[m]&&(o||m&&!d2[m])){let y=-1;for(let S=0;S<s2.length;S++)c=f.indexOf(s2[S]),c!==-1&&(y===-1||c<y)&&(y=c);let _,x;y===-1?x=f.lastIndexOf("@"):x=f.lastIndexOf("@",y),x!==-1&&(_=f.slice(0,x),f=f.slice(x+1),this.auth=_),y=-1;for(let S=0;S<r2.length;S++)c=f.indexOf(r2[S]),c!==-1&&(y===-1||c<y)&&(y=c);y===-1&&(y=f.length),f[y-1]===":"&&y--;const k=f.slice(0,y);f=f.slice(y),this.parseHost(k),this.hostname=this.hostname||"";const R=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!R){const S=this.hostname.split(/\./);for(let L=0,Z=S.length;L<Z;L++){const I=S[L];if(I&&!I.match(o2)){let ie="";for(let ne=0,Y=I.length;ne<Y;ne++)I.charCodeAt(ne)>127?ie+="x":ie+=I[ne];if(!ie.match(o2)){const ne=S.slice(0,L),Y=S.slice(L+1),Q=I.match(Ey);Q&&(ne.push(Q[1]),Y.unshift(Q[2])),Y.length&&(f=Y.join(".")+f),this.hostname=ne.join(".");break}}}}this.hostname.length>_y&&(this.hostname=""),R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const p=f.indexOf("#");p!==-1&&(this.hash=f.substr(p),f=f.slice(0,p));const b=f.indexOf("?");return b!==-1&&(this.search=f.substr(b),f=f.slice(0,b)),f&&(this.pathname=f),d2[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this};bs.prototype.parseHost=function(t){let a=by.exec(t);a&&(a=a[0],a!==":"&&(this.port=a.substr(1)),t=t.substr(0,t.length-a.length)),t&&(this.hostname=t)};const Sy=Object.freeze(Object.defineProperty({__proto__:null,decode:ci,encode:Ac,format:Of,parse:jf},Symbol.toStringTag,{value:"Module"})),ap=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ip=/[\0-\x1F\x7F-\x9F]/,Ay=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,zf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,cp=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,rp=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ty=Object.freeze(Object.defineProperty({__proto__:null,Any:ap,Cc:ip,Cf:Ay,P:zf,S:cp,Z:rp},Symbol.toStringTag,{value:"Module"})),Cy=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),Dy=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var ef;const Ny=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ky=(ef=String.fromCodePoint)!==null&&ef!==void 0?ef:function(t){let a="";return t>65535&&(t-=65536,a+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),a+=String.fromCharCode(t),a};function Oy(t){var a;return t>=55296&&t<=57343||t>1114111?65533:(a=Ny.get(t))!==null&&a!==void 0?a:t}var Au;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Au||(Au={}));const jy=32;var vl;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(vl||(vl={}));function _f(t){return t>=Au.ZERO&&t<=Au.NINE}function zy(t){return t>=Au.UPPER_A&&t<=Au.UPPER_F||t>=Au.LOWER_A&&t<=Au.LOWER_F}function Ry(t){return t>=Au.UPPER_A&&t<=Au.UPPER_Z||t>=Au.LOWER_A&&t<=Au.LOWER_Z||_f(t)}function wy(t){return t===Au.EQUALS||Ry(t)}var Su;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Su||(Su={}));var Dn;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Dn||(Dn={}));class My{constructor(a,s,c){this.decodeTree=a,this.emitCodePoint=s,this.errors=c,this.state=Su.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Dn.Strict}startEntity(a){this.decodeMode=a,this.state=Su.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(a,s){switch(this.state){case Su.EntityStart:return a.charCodeAt(s)===Au.NUM?(this.state=Su.NumericStart,this.consumed+=1,this.stateNumericStart(a,s+1)):(this.state=Su.NamedEntity,this.stateNamedEntity(a,s));case Su.NumericStart:return this.stateNumericStart(a,s);case Su.NumericDecimal:return this.stateNumericDecimal(a,s);case Su.NumericHex:return this.stateNumericHex(a,s);case Su.NamedEntity:return this.stateNamedEntity(a,s)}}stateNumericStart(a,s){return s>=a.length?-1:(a.charCodeAt(s)|jy)===Au.LOWER_X?(this.state=Su.NumericHex,this.consumed+=1,this.stateNumericHex(a,s+1)):(this.state=Su.NumericDecimal,this.stateNumericDecimal(a,s))}addToNumericResult(a,s,c,o){if(s!==c){const f=c-s;this.result=this.result*Math.pow(o,f)+parseInt(a.substr(s,f),o),this.consumed+=f}}stateNumericHex(a,s){const c=s;for(;s<a.length;){const o=a.charCodeAt(s);if(_f(o)||zy(o))s+=1;else return this.addToNumericResult(a,c,s,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(a,c,s,16),-1}stateNumericDecimal(a,s){const c=s;for(;s<a.length;){const o=a.charCodeAt(s);if(_f(o))s+=1;else return this.addToNumericResult(a,c,s,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(a,c,s,10),-1}emitNumericEntity(a,s){var c;if(this.consumed<=s)return(c=this.errors)===null||c===void 0||c.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(a===Au.SEMI)this.consumed+=1;else if(this.decodeMode===Dn.Strict)return 0;return this.emitCodePoint(Oy(this.result),this.consumed),this.errors&&(a!==Au.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(a,s){const{decodeTree:c}=this;let o=c[this.treeIndex],f=(o&vl.VALUE_LENGTH)>>14;for(;s<a.length;s++,this.excess++){const m=a.charCodeAt(s);if(this.treeIndex=Ly(c,o,this.treeIndex+Math.max(1,f),m),this.treeIndex<0)return this.result===0||this.decodeMode===Dn.Attribute&&(f===0||wy(m))?0:this.emitNotTerminatedNamedEntity();if(o=c[this.treeIndex],f=(o&vl.VALUE_LENGTH)>>14,f!==0){if(m===Au.SEMI)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);this.decodeMode!==Dn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var a;const{result:s,decodeTree:c}=this,o=(c[s]&vl.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,o,this.consumed),(a=this.errors)===null||a===void 0||a.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(a,s,c){const{decodeTree:o}=this;return this.emitCodePoint(s===1?o[a]&~vl.VALUE_LENGTH:o[a+1],c),s===3&&this.emitCodePoint(o[a+2],c),c}end(){var a;switch(this.state){case Su.NamedEntity:return this.result!==0&&(this.decodeMode!==Dn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Su.NumericDecimal:return this.emitNumericEntity(0,2);case Su.NumericHex:return this.emitNumericEntity(0,3);case Su.NumericStart:return(a=this.errors)===null||a===void 0||a.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Su.EntityStart:return 0}}}function sp(t){let a="";const s=new My(t,c=>a+=ky(c));return function(o,f){let m=0,p=0;for(;(p=o.indexOf("&",p))>=0;){a+=o.slice(m,p),s.startEntity(f);const y=s.write(o,p+1);if(y<0){m=p+s.end();break}m=p+y,p=y===0?m+1:m}const b=a+o.slice(m);return a="",b}}function Ly(t,a,s,c){const o=(a&vl.BRANCH_LENGTH)>>7,f=a&vl.JUMP_TABLE;if(o===0)return f!==0&&c===f?s:-1;if(f){const b=c-f;return b<0||b>=o?-1:t[s+b]-1}let m=s,p=m+o-1;for(;m<=p;){const b=m+p>>>1,y=t[b];if(y<c)m=b+1;else if(y>c)p=b-1;else return t[b+o]}return-1}const op=sp(Cy);sp(Dy);function Uy(t,a=Dn.Legacy){return op(t,a)}function Fy(t){return op(t,Dn.Strict)}function By(t){return Object.prototype.toString.call(t)}function Rf(t){return By(t)==="[object String]"}const Hy=Object.prototype.hasOwnProperty;function qy(t,a){return Hy.call(t,a)}function ys(t){return Array.prototype.slice.call(arguments,1).forEach(function(s){if(s){if(typeof s!="object")throw new TypeError(s+"must be object");Object.keys(s).forEach(function(c){t[c]=s[c]})}}),t}function Gy(t,a,s){return[].concat(t.slice(0,a),s,t.slice(a+1))}function wf(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function yc(t){if(t>65535){t-=65536;const a=55296+(t>>10),s=56320+(t&1023);return String.fromCharCode(a,s)}return String.fromCharCode(t)}const fp=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Yy=/&([a-z#][a-z0-9]{1,31});/gi,Vy=new RegExp(fp.source+"|"+Yy.source,"gi"),Zy=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Xy(t,a){if(a.charCodeAt(0)===35&&Zy.test(a)){const c=a[1].toLowerCase()==="x"?parseInt(a.slice(2),16):parseInt(a.slice(1),10);return wf(c)?yc(c):t}const s=Uy(t);return s!==t?s:t}function Iy(t){return t.indexOf("\\")<0?t:t.replace(fp,"$1")}function ri(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(Vy,function(a,s,c){return s||Xy(a,c)})}const Qy=/[&<>"]/,Ky=/[&<>"]/g,$y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Jy(t){return $y[t]}function _l(t){return Qy.test(t)?t.replace(Ky,Jy):t}const Py=/[.?*+^$[\]\\(){}|-]/g;function Wy(t){return t.replace(Py,"\\$&")}function Ke(t){switch(t){case 9:case 32:return!0}return!1}function xc(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function dp(t){return zf.test(t)||cp.test(t)}function vc(t){return dp(yc(t))}function _c(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function xs(t){return t=t.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}function h2(t){return t===32||t===9||t===10||t===13}function vs(t){let a=0;for(;a<t.length&&h2(t.charCodeAt(a));a++);let s=t.length-1;for(;s>=a&&h2(t.charCodeAt(s));s--);return t.slice(a,s+1)}const ex={mdurl:Sy,ucmicro:Ty},ux=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Gy,asciiTrim:vs,assign:ys,escapeHtml:_l,escapeRE:Wy,fromCodePoint:yc,has:qy,isMdAsciiPunct:_c,isPunctChar:dp,isPunctCharCode:vc,isSpace:Ke,isString:Rf,isValidEntityCode:wf,isWhiteSpace:xc,lib:ex,normalizeReference:xs,unescapeAll:ri,unescapeMd:Iy},Symbol.toStringTag,{value:"Module"}));function tx(t,a,s){let c,o,f,m;const p=t.posMax,b=t.pos;for(t.pos=a+1,c=1;t.pos<p;){if(f=t.src.charCodeAt(t.pos),f===93&&(c--,c===0)){o=!0;break}if(m=t.pos,t.md.inline.skipToken(t),f===91){if(m===t.pos-1)c++;else if(s)return t.pos=b,-1}}let y=-1;return o&&(y=t.pos),t.pos=b,y}function nx(t,a,s){let c,o=a;const f={ok:!1,pos:0,str:""};if(t.charCodeAt(o)===60){for(o++;o<s;){if(c=t.charCodeAt(o),c===10||c===60)return f;if(c===62)return f.pos=o+1,f.str=ri(t.slice(a+1,o)),f.ok=!0,f;if(c===92&&o+1<s){o+=2;continue}o++}return f}let m=0;for(;o<s&&(c=t.charCodeAt(o),!(c===32||c<32||c===127));){if(c===92&&o+1<s){if(t.charCodeAt(o+1)===32){o++;continue}o+=2;continue}if(c===40&&(m++,m>32))return f;if(c===41){if(m===0)break;m--}o++}return a===o||m!==0||(f.str=ri(t.slice(a,o)),f.pos=o,f.ok=!0),f}function lx(t,a,s,c){let o,f=a;const m={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(c)m.str=c.str,m.marker=c.marker;else{if(f>=s)return m;let p=t.charCodeAt(f);if(p!==34&&p!==39&&p!==40)return m;a++,f++,p===40&&(p=41),m.marker=p}for(;f<s;){if(o=t.charCodeAt(f),o===m.marker)return m.pos=f+1,m.str+=ri(t.slice(a,f)),m.ok=!0,m;if(o===40&&m.marker===41)return m;o===92&&f+1<s&&f++,f++}return m.can_continue=!0,m.str+=ri(t.slice(a,f)),m}const ax=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:nx,parseLinkLabel:tx,parseLinkTitle:lx},Symbol.toStringTag,{value:"Module"})),ln={};ln.code_inline=function(t,a,s,c,o){const f=t[a];return"<code"+o.renderAttrs(f)+">"+_l(f.content)+"</code>"};ln.code_block=function(t,a,s,c,o){const f=t[a];return"<pre"+o.renderAttrs(f)+"><code>"+_l(t[a].content)+`</code></pre>
21
+ `};ln.fence=function(t,a,s,c,o){const f=t[a],m=f.info?ri(f.info).trim():"";let p="",b="";if(m){const _=m.split(/(\s+)/g);p=_[0],b=_.slice(2).join("")}let y;if(s.highlight?y=s.highlight(f.content,p,b)||_l(f.content):y=_l(f.content),y.indexOf("<pre")===0)return y+`
22
+ `;if(m){const _=f.attrIndex("class"),x=f.attrs?f.attrs.slice():[];_<0?x.push(["class",s.langPrefix+p]):(x[_]=x[_].slice(),x[_][1]+=" "+s.langPrefix+p);const k={attrs:x};return`<pre><code${o.renderAttrs(k)}>${y}</code></pre>
23
+ `}return`<pre><code${o.renderAttrs(f)}>${y}</code></pre>
24
+ `};ln.image=function(t,a,s,c,o){const f=t[a];return f.attrs[f.attrIndex("alt")][1]=o.renderInlineAsText(f.children,s,c),o.renderToken(t,a,s)};ln.hardbreak=function(t,a,s){return s.xhtmlOut?`<br />
25
+ `:`<br>
26
+ `};ln.softbreak=function(t,a,s){return s.breaks?s.xhtmlOut?`<br />
27
+ `:`<br>
28
+ `:`
29
+ `};ln.text=function(t,a){return _l(t[a].content)};ln.html_block=function(t,a){return t[a].content};ln.html_inline=function(t,a){return t[a].content};function si(){this.rules=ys({},ln)}si.prototype.renderAttrs=function(a){let s,c,o;if(!a.attrs)return"";for(o="",s=0,c=a.attrs.length;s<c;s++)o+=" "+_l(a.attrs[s][0])+'="'+_l(a.attrs[s][1])+'"';return o};si.prototype.renderToken=function(a,s,c){const o=a[s];let f="";if(o.hidden)return"";o.block&&o.nesting!==-1&&s&&a[s-1].hidden&&(f+=`
30
+ `),f+=(o.nesting===-1?"</":"<")+o.tag,f+=this.renderAttrs(o),o.nesting===0&&c.xhtmlOut&&(f+=" /");let m=!1;if(o.block&&(m=!0,o.nesting===1&&s+1<a.length)){const p=a[s+1];(p.type==="inline"||p.hidden||p.nesting===-1&&p.tag===o.tag)&&(m=!1)}return f+=m?`>
31
+ `:">",f};si.prototype.renderInline=function(t,a,s){let c="";const o=this.rules;for(let f=0,m=t.length;f<m;f++){const p=t[f].type;typeof o[p]<"u"?c+=o[p](t,f,a,s,this):c+=this.renderToken(t,f,a)}return c};si.prototype.renderInlineAsText=function(t,a,s){let c="";for(let o=0,f=t.length;o<f;o++)switch(t[o].type){case"text":c+=t[o].content;break;case"image":c+=this.renderInlineAsText(t[o].children,a,s);break;case"html_inline":case"html_block":c+=t[o].content;break;case"softbreak":case"hardbreak":c+=`
32
+ `;break}return c};si.prototype.render=function(t,a,s){let c="";const o=this.rules;for(let f=0,m=t.length;f<m;f++){const p=t[f].type;p==="inline"?c+=this.renderInline(t[f].children,a,s):typeof o[p]<"u"?c+=o[p](t,f,a,s,this):c+=this.renderToken(t,f,a,s)}return c};function nt(){this.__rules__=[],this.__cache__=null}nt.prototype.__find__=function(t){for(let a=0;a<this.__rules__.length;a++)if(this.__rules__[a].name===t)return a;return-1};nt.prototype.__compile__=function(){const t=this,a=[""];t.__rules__.forEach(function(s){s.enabled&&s.alt.forEach(function(c){a.indexOf(c)<0&&a.push(c)})}),t.__cache__={},a.forEach(function(s){t.__cache__[s]=[],t.__rules__.forEach(function(c){c.enabled&&(s&&c.alt.indexOf(s)<0||t.__cache__[s].push(c.fn))})})};nt.prototype.at=function(t,a,s){const c=this.__find__(t),o=s||{};if(c===-1)throw new Error("Parser rule not found: "+t);this.__rules__[c].fn=a,this.__rules__[c].alt=o.alt||[],this.__cache__=null};nt.prototype.before=function(t,a,s,c){const o=this.__find__(t),f=c||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:a,enabled:!0,fn:s,alt:f.alt||[]}),this.__cache__=null};nt.prototype.after=function(t,a,s,c){const o=this.__find__(t),f=c||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:a,enabled:!0,fn:s,alt:f.alt||[]}),this.__cache__=null};nt.prototype.push=function(t,a,s){const c=s||{};this.__rules__.push({name:t,enabled:!0,fn:a,alt:c.alt||[]}),this.__cache__=null};nt.prototype.enable=function(t,a){Array.isArray(t)||(t=[t]);const s=[];return t.forEach(function(c){const o=this.__find__(c);if(o<0){if(a)return;throw new Error("Rules manager: invalid rule name "+c)}this.__rules__[o].enabled=!0,s.push(c)},this),this.__cache__=null,s};nt.prototype.enableOnly=function(t,a){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(s){s.enabled=!1}),this.enable(t,a)};nt.prototype.disable=function(t,a){Array.isArray(t)||(t=[t]);const s=[];return t.forEach(function(c){const o=this.__find__(c);if(o<0){if(a)return;throw new Error("Rules manager: invalid rule name "+c)}this.__rules__[o].enabled=!1,s.push(c)},this),this.__cache__=null,s};nt.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function Ft(t,a,s){this.type=t,this.tag=a,this.attrs=null,this.map=null,this.nesting=s,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Ft.prototype.attrIndex=function(a){if(!this.attrs)return-1;const s=this.attrs;for(let c=0,o=s.length;c<o;c++)if(s[c][0]===a)return c;return-1};Ft.prototype.attrPush=function(a){this.attrs?this.attrs.push(a):this.attrs=[a]};Ft.prototype.attrSet=function(a,s){const c=this.attrIndex(a),o=[a,s];c<0?this.attrPush(o):this.attrs[c]=o};Ft.prototype.attrGet=function(a){const s=this.attrIndex(a);let c=null;return s>=0&&(c=this.attrs[s][1]),c};Ft.prototype.attrJoin=function(a,s){const c=this.attrIndex(a);c<0?this.attrPush([a,s]):this.attrs[c][1]=this.attrs[c][1]+" "+s};function hp(t,a,s){this.src=t,this.env=s,this.tokens=[],this.inlineMode=!1,this.md=a}hp.prototype.Token=Ft;const ix=/\r\n?|\n/g,cx=/\0/g;function rx(t){let a;a=t.src.replace(ix,`
33
+ `),a=a.replace(cx,"�"),t.src=a}function sx(t){let a;t.inlineMode?(a=new t.Token("inline","",0),a.content=t.src,a.map=[0,1],a.children=[],t.tokens.push(a)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function ox(t){const a=t.tokens;for(let s=0,c=a.length;s<c;s++){const o=a[s];o.type==="inline"&&t.md.inline.parse(o.content,t.md,t.env,o.children)}}function fx(t){return/^<a[>\s]/i.test(t)}function dx(t){return/^<\/a\s*>/i.test(t)}function hx(t){const a=t.tokens;if(t.md.options.linkify)for(let s=0,c=a.length;s<c;s++){if(a[s].type!=="inline"||!t.md.linkify.pretest(a[s].content))continue;const o=a[s].children,f=[];let m=0;for(let p=o.length-1;p>=0;p--){const b=o[p];if(b.type==="link_close"){for(p--;o[p].level!==b.level&&o[p].type!=="link_open";)p--;continue}if(b.type==="html_inline"&&(fx(b.content)&&m>0&&m--,dx(b.content)&&m++),!(m>0)&&b.type==="text"&&t.md.linkify.test(b.content)){const y=b.content;let _=t.md.linkify.match(y);const x=[];let k=b.level,R=0;_.length>0&&_[0].index===0&&p>0&&o[p-1].type==="text_special"&&(_=_.slice(1));for(let S=0;S<_.length;S++){const L=_[S].url,Z=t.md.normalizeLink(L);if(!t.md.validateLink(Z))continue;let I=_[S].text;_[S].schema?_[S].schema==="mailto:"&&!/^mailto:/i.test(I)?I=t.md.normalizeLinkText("mailto:"+I).replace(/^mailto:/,""):I=t.md.normalizeLinkText(I):I=t.md.normalizeLinkText("http://"+I).replace(/^http:\/\//,"");const ie=_[S].index;if(ie>R){const ae=new t.Token("text","",0);ae.content=y.slice(R,ie),ae.level=k,x.push(ae)}const ne=new t.Token("link_open","a",1);ne.attrs=[["href",Z]],ne.level=k++,ne.markup="linkify",ne.info="auto",x.push(ne);const Y=new t.Token("text","",0);Y.content=I,Y.level=k,x.push(Y);const Q=new t.Token("link_close","a",-1);Q.level=--k,Q.markup="linkify",Q.info="auto",x.push(Q),R=_[S].lastIndex}if(R<y.length){const S=new t.Token("text","",0);S.content=y.slice(R),S.level=k,x.push(S)}f.push({index:p,nodes:x})}}if(f.length>0){let p=o.length;for(const x of f)p+=x.nodes.length-1;const b=new Array(p);let y=0,_=0;f.reverse();for(let x=0;x<o.length;x++){const k=f[y];if(k?.index===x){for(const R of k.nodes)b[_++]=R;y++}else b[_++]=o[x]}a[s].children=b}}}const mp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,mx=/\((c|tm|r)\)/i,px=/\((c|tm|r)\)/ig,bx={c:"©",r:"®",tm:"™"};function gx(t,a){return bx[a.toLowerCase()]}function yx(t){let a=0;for(let s=t.length-1;s>=0;s--){const c=t[s];c.type==="text"&&!a&&(c.content=c.content.replace(px,gx)),c.type==="link_open"&&c.info==="auto"&&a--,c.type==="link_close"&&c.info==="auto"&&a++}}function xx(t){let a=0;for(let s=t.length-1;s>=0;s--){const c=t[s];c.type==="text"&&!a&&mp.test(c.content)&&(c.content=c.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),c.type==="link_open"&&c.info==="auto"&&a--,c.type==="link_close"&&c.info==="auto"&&a++}}function vx(t){let a;if(t.md.options.typographer)for(a=t.tokens.length-1;a>=0;a--)t.tokens[a].type==="inline"&&(mx.test(t.tokens[a].content)&&yx(t.tokens[a].children),mp.test(t.tokens[a].content)&&xx(t.tokens[a].children))}const _x=/['"]/,m2=/['"]/g,p2="’",Ex=1e3;function b2(t,a,s){for(;t.length>s;){const c=t.pop();c.isSingleQuote?a.single=c.prevSameQuoteIdx:a.double=c.prevSameQuoteIdx}}function ns(t,a,s,c){t[a]||(t[a]=[]),t[a].push({pos:s,ch:c})}function Sx(t,a){let s="",c=0;a.sort((o,f)=>o.pos-f.pos);for(let o=0;o<a.length;o++){const f=a[o];s+=t.slice(c,f.pos)+f.ch,c=f.pos+1}return s+t.slice(c)}function Ax(t,a){let s;const c=[],o={single:-1,double:-1},f={};for(let m=0;m<t.length;m++){const p=t[m],b=t[m].level;for(s=c.length-1;s>=0&&!(c[s].level<=b);s--);if(b2(c,o,s+1),p.type!=="text")continue;const y=p.content;let _=0;const x=y.length;e:for(;_<x;){m2.lastIndex=_;const k=m2.exec(y);if(!k)break;let R=!0,S=!0;_=k.index+1;const L=k[0]==="'";let Z=32;if(k.index-1>=0)Z=y.charCodeAt(k.index-1);else for(s=m-1;s>=0&&!(t[s].type==="softbreak"||t[s].type==="hardbreak");s--)if(t[s].content){Z=t[s].content.charCodeAt(t[s].content.length-1);break}let I=32;if(_<x)I=y.charCodeAt(_);else for(s=m+1;s<t.length&&!(t[s].type==="softbreak"||t[s].type==="hardbreak");s++)if(t[s].content){I=t[s].content.charCodeAt(0);break}const ie=_c(Z)||vc(Z),ne=_c(I)||vc(I),Y=xc(Z),Q=xc(I);if(Q?R=!1:ne&&(Y||ie||(R=!1)),Y?S=!1:ie&&(Q||ne||(S=!1)),I===34&&k[0]==='"'&&Z>=48&&Z<=57&&(S=R=!1),R&&S&&(R=ie,S=ne),!R&&!S){L&&ns(f,m,k.index,p2);continue}if(S&&(s=L?o.single:o.double,s>=0&&c[s].level===b)){const ae=c[s];let W,ce;L?(W=a.md.options.quotes[2],ce=a.md.options.quotes[3]):(W=a.md.options.quotes[0],ce=a.md.options.quotes[1]),ns(f,m,k.index,ce),ns(f,ae.tokenIdx,ae.contentPos,W),b2(c,o,s);continue e}if(R){if(c.length>=Ex)return;c.push({tokenIdx:m,contentPos:k.index,isSingleQuote:L,level:b,prevSameQuoteIdx:L?o.single:o.double}),L?o.single=c.length-1:o.double=c.length-1}else S&&L&&ns(f,m,k.index,p2)}}Object.keys(f).forEach(function(m){t[m].content=Sx(t[m].content,f[m])})}function Tx(t){if(t.md.options.typographer)for(let a=t.tokens.length-1;a>=0;a--)t.tokens[a].type!=="inline"||!_x.test(t.tokens[a].content)||Ax(t.tokens[a].children,t)}function Cx(t){let a,s;const c=t.tokens,o=c.length;for(let f=0;f<o;f++){if(c[f].type!=="inline")continue;const m=c[f].children,p=m.length;for(a=0;a<p;a++)m[a].type==="text_special"&&(m[a].type="text");for(a=s=0;a<p;a++)m[a].type==="text"&&a+1<p&&m[a+1].type==="text"?m[a+1].content=m[a].content+m[a+1].content:(a!==s&&(m[s]=m[a]),s++);a!==s&&(m.length=s)}}const uf=[["normalize",rx],["block",sx],["inline",ox],["linkify",hx],["replacements",vx],["smartquotes",Tx],["text_join",Cx]];function Mf(){this.ruler=new nt;for(let t=0;t<uf.length;t++)this.ruler.push(uf[t][0],uf[t][1])}Mf.prototype.process=function(t){const a=this.ruler.getRules("");for(let s=0,c=a.length;s<c;s++)a[s](t)};Mf.prototype.State=hp;function an(t,a,s,c){this.src=t,this.md=a,this.env=s,this.tokens=c,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let f=0,m=0,p=0,b=0,y=o.length,_=!1;m<y;m++){const x=o.charCodeAt(m);if(!_)if(Ke(x)){p++,x===9?b+=4-b%4:b++;continue}else _=!0;(x===10||m===y-1)&&(x!==10&&m++,this.bMarks.push(f),this.eMarks.push(m),this.tShift.push(p),this.sCount.push(b),this.bsCount.push(0),_=!1,p=0,b=0,f=m+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}an.prototype.push=function(t,a,s){const c=new Ft(t,a,s);return c.block=!0,s<0&&this.level--,c.level=this.level,s>0&&this.level++,this.tokens.push(c),c};an.prototype.isEmpty=function(a){return this.bMarks[a]+this.tShift[a]>=this.eMarks[a]};an.prototype.skipEmptyLines=function(a){for(let s=this.lineMax;a<s&&!(this.bMarks[a]+this.tShift[a]<this.eMarks[a]);a++);return a};an.prototype.skipSpaces=function(a){for(let s=this.src.length;a<s;a++){const c=this.src.charCodeAt(a);if(!Ke(c))break}return a};an.prototype.skipSpacesBack=function(a,s){if(a<=s)return a;for(;a>s;)if(!Ke(this.src.charCodeAt(--a)))return a+1;return a};an.prototype.skipChars=function(a,s){for(let c=this.src.length;a<c&&this.src.charCodeAt(a)===s;a++);return a};an.prototype.skipCharsBack=function(a,s,c){if(a<=c)return a;for(;a>c;)if(s!==this.src.charCodeAt(--a))return a+1;return a};an.prototype.getLines=function(a,s,c,o){if(a>=s)return"";const f=new Array(s-a);for(let m=0,p=a;p<s;p++,m++){let b=0;const y=this.bMarks[p];let _=y,x;for(p+1<s||o?x=this.eMarks[p]+1:x=this.eMarks[p];_<x&&b<c;){const k=this.src.charCodeAt(_);if(Ke(k))k===9?b+=4-(b+this.bsCount[p])%4:b++;else if(_-y<this.tShift[p])b++;else break;_++}b>c?f[m]=new Array(b-c+1).join(" ")+this.src.slice(_,x):f[m]=this.src.slice(_,x)}return f.join("")};an.prototype.Token=Ft;const Dx=65536;function tf(t,a){const s=t.bMarks[a]+t.tShift[a],c=t.eMarks[a];return t.src.slice(s,c)}function g2(t){const a=[],s=t.length;let c=0,o=t.charCodeAt(c),f=!1,m=0,p="";for(;c<s;)o===124&&(f?(p+=t.substring(m,c-1),m=c):(a.push(p+t.substring(m,c)),p="",m=c+1)),f=o===92,c++,o=t.charCodeAt(c);return a.push(p+t.substring(m)),a}function Nx(t,a,s,c){if(a+2>s)return!1;let o=a+1;if(t.sCount[o]<t.blkIndent||t.sCount[o]-t.blkIndent>=4)return!1;let f=t.bMarks[o]+t.tShift[o];if(f>=t.eMarks[o])return!1;const m=t.src.charCodeAt(f++);if(m!==124&&m!==45&&m!==58||f>=t.eMarks[o])return!1;const p=t.src.charCodeAt(f++);if(p!==124&&p!==45&&p!==58&&!Ke(p)||m===45&&Ke(p))return!1;for(;f<t.eMarks[o];){const Y=t.src.charCodeAt(f);if(Y!==124&&Y!==45&&Y!==58&&!Ke(Y))return!1;f++}let b=tf(t,a+1),y=b.split("|");const _=[];for(let Y=0;Y<y.length;Y++){const Q=y[Y].trim();if(!Q){if(Y===0||Y===y.length-1)continue;return!1}if(!/^:?-+:?$/.test(Q))return!1;Q.charCodeAt(Q.length-1)===58?_.push(Q.charCodeAt(0)===58?"center":"right"):Q.charCodeAt(0)===58?_.push("left"):_.push("")}if(b=tf(t,a).trim(),b.indexOf("|")===-1||t.sCount[a]-t.blkIndent>=4)return!1;y=g2(b),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop();const x=y.length;if(x===0||x!==_.length)return!1;if(c)return!0;const k=t.parentType;t.parentType="table";const R=t.md.block.ruler.getRules("blockquote"),S=t.push("table_open","table",1),L=[a,0];S.map=L;const Z=t.push("thead_open","thead",1);Z.map=[a,a+1];const I=t.push("tr_open","tr",1);I.map=[a,a+1];for(let Y=0;Y<y.length;Y++){const Q=t.push("th_open","th",1);_[Y]&&(Q.attrs=[["style","text-align:"+_[Y]]]);const ae=t.push("inline","",0);ae.content=y[Y].trim(),ae.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let ie,ne=0;for(o=a+2;o<s&&!(t.sCount[o]<t.blkIndent);o++){let Y=!1;for(let ae=0,W=R.length;ae<W;ae++)if(R[ae](t,o,s,!0)){Y=!0;break}if(Y||(b=tf(t,o).trim(),!b)||t.sCount[o]-t.blkIndent>=4||(y=g2(b),y.length&&y[0]===""&&y.shift(),y.length&&y[y.length-1]===""&&y.pop(),ne+=x-y.length,ne>Dx))break;if(o===a+2){const ae=t.push("tbody_open","tbody",1);ae.map=ie=[a+2,0]}const Q=t.push("tr_open","tr",1);Q.map=[o,o+1];for(let ae=0;ae<x;ae++){const W=t.push("td_open","td",1);_[ae]&&(W.attrs=[["style","text-align:"+_[ae]]]);const ce=t.push("inline","",0);ce.content=y[ae]?y[ae].trim():"",ce.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return ie&&(t.push("tbody_close","tbody",-1),ie[1]=o),t.push("table_close","table",-1),L[1]=o,t.parentType=k,t.line=o,!0}function kx(t,a,s){if(t.sCount[a]-t.blkIndent<4)return!1;let c=a+1,o=c;for(;c<s;){if(t.isEmpty(c)){c++;continue}if(t.sCount[c]-t.blkIndent>=4){c++,o=c;continue}break}t.line=o;const f=t.push("code_block","code",0);return f.content=t.getLines(a,o,4+t.blkIndent,!1)+`
34
+ `,f.map=[a,t.line],!0}function Ox(t,a,s,c){let o=t.bMarks[a]+t.tShift[a],f=t.eMarks[a];if(t.sCount[a]-t.blkIndent>=4||o+3>f)return!1;const m=t.src.charCodeAt(o);if(m!==126&&m!==96)return!1;let p=o;o=t.skipChars(o,m);let b=o-p;if(b<3)return!1;const y=t.src.slice(p,o),_=t.src.slice(o,f);if(m===96&&_.indexOf(String.fromCharCode(m))>=0)return!1;if(c)return!0;let x=a,k=!1;for(;x++,!(x>=s||(o=p=t.bMarks[x]+t.tShift[x],f=t.eMarks[x],o<f&&t.sCount[x]<t.blkIndent));)if(t.src.charCodeAt(o)===m&&!(t.sCount[x]-t.blkIndent>=4)&&(o=t.skipChars(o,m),!(o-p<b)&&(o=t.skipSpaces(o),!(o<f)))){k=!0;break}b=t.sCount[a],t.line=x+(k?1:0);const R=t.push("fence","code",0);return R.info=_,R.content=t.getLines(a+1,x,b,!0),R.markup=y,R.map=[a,t.line],!0}function jx(t,a,s,c){let o=t.bMarks[a]+t.tShift[a],f=t.eMarks[a];const m=t.lineMax;if(t.sCount[a]-t.blkIndent>=4||t.src.charCodeAt(o)!==62)return!1;if(c)return!0;const p=[],b=[],y=[],_=[],x=t.md.block.ruler.getRules("blockquote"),k=t.parentType;t.parentType="blockquote";let R=!1,S;for(S=a;S<s;S++){const ne=t.sCount[S]<t.blkIndent;if(o=t.bMarks[S]+t.tShift[S],f=t.eMarks[S],o>=f)break;if(t.src.charCodeAt(o++)===62&&!ne){let Q=t.sCount[S]+1,ae,W;t.src.charCodeAt(o)===32?(o++,Q++,W=!1,ae=!0):t.src.charCodeAt(o)===9?(ae=!0,(t.bsCount[S]+Q)%4===3?(o++,Q++,W=!1):W=!0):ae=!1;let ce=Q;for(p.push(t.bMarks[S]),t.bMarks[S]=o;o<f;){const $e=t.src.charCodeAt(o);if(Ke($e))$e===9?ce+=4-(ce+t.bsCount[S]+(W?1:0))%4:ce++;else break;o++}R=o>=f,b.push(t.bsCount[S]),t.bsCount[S]=t.sCount[S]+1+(ae?1:0),y.push(t.sCount[S]),t.sCount[S]=ce-Q,_.push(t.tShift[S]),t.tShift[S]=o-t.bMarks[S];continue}if(R)break;let Y=!1;for(let Q=0,ae=x.length;Q<ae;Q++)if(x[Q](t,S,s,!0)){Y=!0;break}if(Y){t.lineMax=S,t.blkIndent!==0&&(p.push(t.bMarks[S]),b.push(t.bsCount[S]),_.push(t.tShift[S]),y.push(t.sCount[S]),t.sCount[S]-=t.blkIndent);break}p.push(t.bMarks[S]),b.push(t.bsCount[S]),_.push(t.tShift[S]),y.push(t.sCount[S]),t.sCount[S]=-1}const L=t.blkIndent;t.blkIndent=0;const Z=t.push("blockquote_open","blockquote",1);Z.markup=">";const I=[a,0];Z.map=I,t.md.block.tokenize(t,a,S);const ie=t.push("blockquote_close","blockquote",-1);ie.markup=">",t.lineMax=m,t.parentType=k,I[1]=t.line;for(let ne=0;ne<_.length;ne++)t.bMarks[ne+a]=p[ne],t.tShift[ne+a]=_[ne],t.sCount[ne+a]=y[ne],t.bsCount[ne+a]=b[ne];return t.blkIndent=L,!0}function zx(t,a,s,c){const o=t.eMarks[a];if(t.sCount[a]-t.blkIndent>=4)return!1;let f=t.bMarks[a]+t.tShift[a];const m=t.src.charCodeAt(f++);if(m!==42&&m!==45&&m!==95)return!1;let p=1;for(;f<o;){const y=t.src.charCodeAt(f++);if(y!==m&&!Ke(y))return!1;y===m&&p++}if(p<3)return!1;if(c)return!0;t.line=a+1;const b=t.push("hr","hr",0);return b.map=[a,t.line],b.markup=Array(p+1).join(String.fromCharCode(m)),!0}function y2(t,a){const s=t.eMarks[a];let c=t.bMarks[a]+t.tShift[a];const o=t.src.charCodeAt(c++);if(o!==42&&o!==45&&o!==43)return-1;if(c<s){const f=t.src.charCodeAt(c);if(!Ke(f))return-1}return c}function x2(t,a){const s=t.bMarks[a]+t.tShift[a],c=t.eMarks[a];let o=s;if(o+1>=c)return-1;let f=t.src.charCodeAt(o++);if(f<48||f>57)return-1;for(;;){if(o>=c)return-1;if(f=t.src.charCodeAt(o++),f>=48&&f<=57){if(o-s>=10)return-1;continue}if(f===41||f===46)break;return-1}return o<c&&(f=t.src.charCodeAt(o),!Ke(f))?-1:o}function Rx(t,a){const s=t.level+2;for(let c=a+2,o=t.tokens.length-2;c<o;c++)t.tokens[c].level===s&&t.tokens[c].type==="paragraph_open"&&(t.tokens[c+2].hidden=!0,t.tokens[c].hidden=!0,c+=2)}function wx(t,a,s,c){let o,f,m,p,b=a,y=!0;if(t.sCount[b]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[b]-t.listIndent>=4&&t.sCount[b]<t.blkIndent)return!1;let _=!1;c&&t.parentType==="paragraph"&&t.sCount[b]>=t.blkIndent&&(_=!0);let x,k,R;if((R=x2(t,b))>=0){if(x=!0,m=t.bMarks[b]+t.tShift[b],k=Number(t.src.slice(m,R-1)),_&&k!==1)return!1}else if((R=y2(t,b))>=0)x=!1;else return!1;if(_&&t.skipSpaces(R)>=t.eMarks[b])return!1;if(c)return!0;const S=t.src.charCodeAt(R-1),L=t.tokens.length;x?(p=t.push("ordered_list_open","ol",1),k!==1&&(p.attrs=[["start",k]])):p=t.push("bullet_list_open","ul",1);const Z=[b,0];p.map=Z,p.markup=String.fromCharCode(S);let I=!1;const ie=t.md.block.ruler.getRules("list"),ne=t.parentType;for(t.parentType="list";b<s;){f=R,o=t.eMarks[b];const Y=t.sCount[b]+R-(t.bMarks[b]+t.tShift[b]);let Q=Y;for(;f<o;){const xe=t.src.charCodeAt(f);if(xe===9)Q+=4-(Q+t.bsCount[b])%4;else if(xe===32)Q++;else break;f++}const ae=f;let W;ae>=o?W=1:W=Q-Y,W>4&&(W=1);const ce=Y+W;p=t.push("list_item_open","li",1),p.markup=String.fromCharCode(S);const $e=[b,0];p.map=$e,x&&(p.info=t.src.slice(m,R-1));const Be=t.tight,te=t.tShift[b],ge=t.sCount[b],Je=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=ce,t.tight=!0,t.tShift[b]=ae-t.bMarks[b],t.sCount[b]=Q,ae>=o&&t.isEmpty(b+1)?t.line=Math.min(t.line+2,s):t.md.block.tokenize(t,b,s,!0),(!t.tight||I)&&(y=!1),I=t.line-b>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=Je,t.tShift[b]=te,t.sCount[b]=ge,t.tight=Be,p=t.push("list_item_close","li",-1),p.markup=String.fromCharCode(S),b=t.line,$e[1]=b,b>=s||t.sCount[b]<t.blkIndent||t.sCount[b]-t.blkIndent>=4)break;let nu=!1;for(let xe=0,J=ie.length;xe<J;xe++)if(ie[xe](t,b,s,!0)){nu=!0;break}if(nu)break;if(x){if(R=x2(t,b),R<0)break;m=t.bMarks[b]+t.tShift[b]}else if(R=y2(t,b),R<0)break;if(S!==t.src.charCodeAt(R-1))break}return x?p=t.push("ordered_list_close","ol",-1):p=t.push("bullet_list_close","ul",-1),p.markup=String.fromCharCode(S),Z[1]=b,t.line=b,t.parentType=ne,y&&Rx(t,L),!0}const nf=999;function Mx(t){let a=t.length;for(let s=0;s<t.length-1;s++){const c=t.charCodeAt(s);if(c<55296||c>56319)continue;const o=t.charCodeAt(s+1);o>=56320&&o<=57343&&(a--,s++)}return a}function fc(t,a){return Math.min(t.eMarks[a]+1,t.src.length)}function ls(t,a){const s=t.lineMax;if(a>=s||t.isEmpty(a))return-1;let c=!1;if(t.sCount[a]-t.blkIndent>3&&(c=!0),t.sCount[a]<0&&(c=!0),!c){const o=t.md.block.ruler.getRules("reference"),f=t.parentType;t.parentType="reference";let m=!1;for(let p=0,b=o.length;p<b;p++)if(o[p](t,a,s,!0)){m=!0;break}if(t.parentType=f,m)return-1}return t.bMarks[a]+t.tShift[a]}function Lx(t,a,s,c){const o=t.src;let f=t.bMarks[a]+t.tShift[a],m=a+1;if(t.sCount[a]-t.blkIndent>=4||o.charCodeAt(f)!==91)return!1;let p=fc(t,a),b="",y=-1,_=++f;for(;f<p;){if(b.length+f-_>nf*2)return!1;let Y=o.charCodeAt(f);if(Y===91)return!1;if(Y===93){y=f;break}if(Y===92&&(Y=o.charCodeAt(++f)),Y===10&&f<p){const Q=ls(t,m);if(Q<0)return!1;b+=o.slice(_,p),f=_=Q,p=fc(t,m++);continue}f++}if(y<0||o.charCodeAt(y+1)!==58||(b+=o.slice(_,y),b.length>nf&&Mx(b)>nf))return!1;for(f=y+2;f<p;){const Y=o.charCodeAt(f);if(Y===10){const Q=ls(t,m);if(Q<0)break;f=Q,p=fc(t,m++)}else if(Ke(Y))f++;else break}const x=t.md.helpers.parseLinkDestination(o,f,p);if(!x.ok)return!1;const k=t.md.normalizeLink(x.str);if(!t.md.validateLink(k))return!1;f=x.pos;const R=f,S=p,L=m;for(;f<p;){const Y=o.charCodeAt(f);if(Y===10){const Q=ls(t,m);if(Q<0)break;f=Q,p=fc(t,m++)}else if(Ke(Y))f++;else break}const Z=f;let I=t.md.helpers.parseLinkTitle(o,f,p);for(;I.can_continue;){const Y=ls(t,m);if(Y<0)break;f=Y,p=fc(t,m++),I=t.md.helpers.parseLinkTitle(o,f,p,I)}let ie;for(Z!==R&&I.ok?(ie=I.str,f=I.pos):(ie="",f=R,p=S,m=L);f<p;){const Y=o.charCodeAt(f);if(!Ke(Y))break;f++}if(f<p&&o.charCodeAt(f)!==10&&ie)for(ie="",f=R,p=S,m=L;f<p;){const Y=o.charCodeAt(f);if(!Ke(Y))break;f++}if(f<p&&o.charCodeAt(f)!==10)return!1;const ne=xs(b);return ne?(c||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[ne]>"u"&&(t.env.references[ne]={title:ie,href:k}),t.line=m),!0):!1}const Ux=["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"],Fx="[a-zA-Z_:][a-zA-Z0-9:._-]*",Bx="[^\"'=<>`\\x00-\\x20]+",Hx="'[^']*'",qx='"[^"]*"',Gx="(?:"+Bx+"|"+Hx+"|"+qx+")",Yx="(?:\\s+"+Fx+"(?:\\s*=\\s*"+Gx+")?)",Vx="<[A-Za-z][A-Za-z0-9\\-]*"+Yx+"*\\s*\\/?>",Zx="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",pp=new RegExp("^(?:"+Vx+"|"+Zx+")"),ea=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Ux.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(pp.source+"\\s*$"),/^$/,!1]];function Xx(t,a,s,c){let o=t.bMarks[a]+t.tShift[a],f=t.eMarks[a];if(t.sCount[a]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(o)!==60)return!1;let m=t.src.slice(o,f),p=0;for(;p<ea.length&&!ea[p][0].test(m);p++);if(p===ea.length)return!1;if(c)return ea[p][2];let b=a+1;const y=ea[p][1].test("");if(!ea[p][1].test(m)){for(;b<s&&!(t.sCount[b]<t.blkIndent&&(y||!t.isEmpty(b)));b++)if(o=t.bMarks[b]+t.tShift[b],f=t.eMarks[b],m=t.src.slice(o,f),ea[p][1].test(m)){m.length!==0&&b++;break}}t.line=b;const _=t.push("html_block","",0);return _.map=[a,b],_.content=t.getLines(a,b,t.blkIndent,!0),!0}function Ix(t,a,s,c){let o=t.bMarks[a]+t.tShift[a],f=t.eMarks[a];if(t.sCount[a]-t.blkIndent>=4)return!1;let m=t.src.charCodeAt(o);if(m!==35||o>=f)return!1;let p=1;for(m=t.src.charCodeAt(++o);m===35&&o<f&&p<=6;)p++,m=t.src.charCodeAt(++o);if(p>6||o<f&&!Ke(m))return!1;if(c)return!0;f=t.skipSpacesBack(f,o);const b=t.skipCharsBack(f,35,o);b>o&&Ke(t.src.charCodeAt(b-1))&&(f=b),t.line=a+1;const y=t.push("heading_open","h"+String(p),1);y.markup="########".slice(0,p),y.map=[a,t.line];const _=t.push("inline","",0);_.content=vs(t.src.slice(o,f)),_.map=[a,t.line],_.children=[];const x=t.push("heading_close","h"+String(p),-1);return x.markup="########".slice(0,p),!0}function Qx(t,a,s){const c=t.md.block.ruler.getRules("paragraph");if(t.sCount[a]-t.blkIndent>=4)return!1;const o=t.parentType;t.parentType="paragraph";let f=0,m,p=a+1;for(;p<s&&!t.isEmpty(p);p++){if(t.sCount[p]-t.blkIndent>3)continue;if(t.sCount[p]>=t.blkIndent){let R=t.bMarks[p]+t.tShift[p];const S=t.eMarks[p];if(R<S&&(m=t.src.charCodeAt(R),(m===45||m===61)&&(R=t.skipChars(R,m),R=t.skipSpaces(R),R>=S))){f=m===61?1:2;break}}if(t.sCount[p]<0)continue;let k=!1;for(let R=0,S=c.length;R<S;R++)if(c[R](t,p,s,!0)){k=!0;break}if(k)break}if(!f)return t.parentType=o,!1;const b=vs(t.getLines(a,p,t.blkIndent,!1));t.line=p+1;const y=t.push("heading_open","h"+String(f),1);y.markup=String.fromCharCode(m),y.map=[a,t.line];const _=t.push("inline","",0);_.content=b,_.map=[a,t.line-1],_.children=[];const x=t.push("heading_close","h"+String(f),-1);return x.markup=String.fromCharCode(m),t.parentType=o,!0}function Kx(t,a,s){const c=t.md.block.ruler.getRules("paragraph"),o=t.parentType;let f=a+1;for(t.parentType="paragraph";f<s&&!t.isEmpty(f);f++){if(t.sCount[f]-t.blkIndent>3||t.sCount[f]<0)continue;let y=!1;for(let _=0,x=c.length;_<x;_++)if(c[_](t,f,s,!0)){y=!0;break}if(y)break}const m=vs(t.getLines(a,f,t.blkIndent,!1));t.line=f;const p=t.push("paragraph_open","p",1);p.map=[a,t.line];const b=t.push("inline","",0);return b.content=m,b.map=[a,t.line],b.children=[],t.push("paragraph_close","p",-1),t.parentType=o,!0}const as=[["table",Nx,["paragraph","reference"]],["code",kx],["fence",Ox,["paragraph","reference","blockquote","list"]],["blockquote",jx,["paragraph","reference","blockquote","list"]],["hr",zx,["paragraph","reference","blockquote","list"]],["list",wx,["paragraph","reference","blockquote"]],["reference",Lx],["html_block",Xx,["paragraph","reference","blockquote"]],["heading",Ix,["paragraph","reference","blockquote"]],["lheading",Qx],["paragraph",Kx]];function _s(){this.ruler=new nt;for(let t=0;t<as.length;t++)this.ruler.push(as[t][0],as[t][1],{alt:(as[t][2]||[]).slice()})}_s.prototype.tokenize=function(t,a,s){const c=this.ruler.getRules(""),o=c.length,f=t.md.options.maxNesting;let m=a,p=!1;for(;m<s&&(t.line=m=t.skipEmptyLines(m),!(m>=s||t.sCount[m]<t.blkIndent));){if(t.level>=f){t.line=s;break}const b=t.line;let y=!1;for(let _=0;_<o;_++)if(y=c[_](t,m,s,!1),y){if(b>=t.line)throw new Error("block rule didn't increment state.line");break}if(!y)throw new Error("none of the block rules matched");t.tight=!p,t.isEmpty(t.line-1)&&(p=!0),m=t.line,m<s&&t.isEmpty(m)&&(p=!0,m++,t.line=m)}};_s.prototype.parse=function(t,a,s,c){if(!t)return;const o=new this.State(t,a,s,c);this.tokenize(o,o.line,o.lineMax)};_s.prototype.State=an;function Tc(t,a,s,c){this.src=t,this.env=s,this.md=a,this.tokens=c,this.tokens_meta=Array(c.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.skipHtmlSpecial=!1,this.linkLevel=0}Tc.prototype.pushPending=function(){const t=new Ft("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};Tc.prototype.push=function(t,a,s){this.pending&&this.pushPending();const c=new Ft(t,a,s);let o=null;return s<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),c.level=this.level,s>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(c),this.tokens_meta.push(o),c};Tc.prototype.scanDelims=function(t,a){const s=this.posMax,c=this.src.charCodeAt(t);let o;if(t===0)o=32;else if(t===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(t-1),(o&64512)===56320){const Z=this.src.charCodeAt(t-2);o=(Z&64512)===55296?65536+(Z-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let f=t;for(;f<s&&this.src.charCodeAt(f)===c;)f++;const m=f-t;let p=f<s?this.src.charCodeAt(f):32;if((p&64512)===55296){const Z=this.src.charCodeAt(f+1);p=(Z&64512)===56320?65536+(p-55296<<10)+(Z-56320):65533}else(p&64512)===56320&&(p=65533);const b=_c(o)||vc(o),y=_c(p)||vc(p),_=xc(o),x=xc(p),k=!x&&(!y||_||b),R=!_&&(!b||x||y);return{can_open:k&&(a||!R||b),can_close:R&&(a||!k||y),length:m}};Tc.prototype.Token=Ft;function $x(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Jx(t,a){let s=t.pos;for(;s<t.posMax&&!$x(t.src.charCodeAt(s));)s++;return s===t.pos?!1:(a||(t.pending+=t.src.slice(t.pos,s)),t.pos=s,!0)}function Px(t){return t>=65&&t<=90||t>=97&&t<=122}function Wx(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===43||t===45||t===46}function e4(t,a){if(!t.md.options.linkify||t.linkLevel>0)return!1;const s=t.pos,c=t.posMax;if(s+3>c||t.src.charCodeAt(s)!==58||t.src.charCodeAt(s+1)!==47||t.src.charCodeAt(s+2)!==47)return!1;const o=s-Math.min(10,t.pending.length,s);let f=s;for(;f>o&&Wx(t.src.charCodeAt(f-1));)f--;if(f===s||!Px(t.src.charCodeAt(f)))return!1;const m=s-f,p=t.md.linkify.matchAtStart(t.src.slice(f));if(!p)return!1;let b=p.url;if(b.length<=m)return!1;let y=b.length;for(;y>0&&b.charCodeAt(y-1)===42;)y--;y!==b.length&&(b=b.slice(0,y));const _=t.md.normalizeLink(b);if(!t.md.validateLink(_))return!1;if(!a){t.pending=t.pending.slice(0,-m);const x=t.push("link_open","a",1);x.attrs=[["href",_]],x.markup="linkify",x.info="auto";const k=t.push("text","",0);k.content=t.md.normalizeLinkText(b);const R=t.push("link_close","a",-1);R.markup="linkify",R.info="auto"}return t.pos+=b.length-m,!0}function u4(t,a){let s=t.pos;if(t.src.charCodeAt(s)!==10)return!1;const c=t.pending.length-1,o=t.posMax;if(!a)if(c>=0&&t.pending.charCodeAt(c)===32)if(c>=1&&t.pending.charCodeAt(c-1)===32){let f=c-1;for(;f>=1&&t.pending.charCodeAt(f-1)===32;)f--;t.pending=t.pending.slice(0,f),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(s++;s<o&&Ke(t.src.charCodeAt(s));)s++;return t.pos=s,!0}const Lf=[];for(let t=0;t<256;t++)Lf.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Lf[t.charCodeAt(0)]=1});function t4(t,a){let s=t.pos;const c=t.posMax;if(t.src.charCodeAt(s)!==92||(s++,s>=c))return!1;let o=t.src.charCodeAt(s);if(o===10){for(a||t.push("hardbreak","br",0),s++;s<c&&(o=t.src.charCodeAt(s),!!Ke(o));)s++;return t.pos=s,!0}if(o===32){if(!a){const p=t.push("text_special","",0);p.content="\\",p.markup="\\",p.info="escape"}return t.pos=s,!0}let f=t.src[s];if(o>=55296&&o<=56319&&s+1<c){const p=t.src.charCodeAt(s+1);p>=56320&&p<=57343&&(f+=t.src[s+1],s++)}const m="\\"+f;if(!a){const p=t.push("text_special","",0);o<256&&Lf[o]!==0?p.content=f:p.content=m,p.markup=m,p.info="escape"}return t.pos=s+1,!0}function n4(t,a){let s=t.pos;if(t.src.charCodeAt(s)!==96)return!1;const o=s;s++;const f=t.posMax;for(;s<f&&t.src.charCodeAt(s)===96;)s++;const m=t.src.slice(o,s),p=m.length;if(t.backticksScanned&&(t.backticks[p]||0)<=o)return a||(t.pending+=m),t.pos+=p,!0;let b=s,y;for(;(y=t.src.indexOf("`",b))!==-1;){for(b=y+1;b<f&&t.src.charCodeAt(b)===96;)b++;const _=b-y;if(_===p){if(!a){const x=t.push("code_inline","code",0);x.markup=m,x.content=t.src.slice(s,y).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=b,!0}t.backticks[_]=y}return t.backticksScanned=!0,a||(t.pending+=m),t.pos+=p,!0}function l4(t,a){const s=t.pos,c=t.src.charCodeAt(s);if(a||c!==126)return!1;const o=t.scanDelims(t.pos,!0);let f=o.length;const m=String.fromCharCode(c);if(f<2)return!1;let p;f%2&&(p=t.push("text","",0),p.content=m,f--);for(let b=0;b<f;b+=2)p=t.push("text","",0),p.content=m+m,t.delimiters.push({marker:c,length:0,token:t.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return t.pos+=o.length,!0}function v2(t,a){let s;const c=[],o=a.length;for(let f=0;f<o;f++){const m=a[f];if(m.marker!==126||m.end===-1)continue;const p=a[m.end];s=t.tokens[m.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=t.tokens[p.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",t.tokens[p.token-1].type==="text"&&t.tokens[p.token-1].content==="~"&&c.push(p.token-1)}for(;c.length;){const f=c.pop();let m=f+1;for(;m<t.tokens.length&&t.tokens[m].type==="s_close";)m++;m--,f!==m&&(s=t.tokens[m],t.tokens[m]=t.tokens[f],t.tokens[f]=s)}}function a4(t){const a=t.tokens_meta,s=t.tokens_meta.length;v2(t,t.delimiters);for(let c=0;c<s;c++)a[c]&&a[c].delimiters&&v2(t,a[c].delimiters)}const bp={tokenize:l4,postProcess:a4};function i4(t,a){const s=t.pos,c=t.src.charCodeAt(s);if(a||c!==95&&c!==42)return!1;const o=t.scanDelims(t.pos,c===42);for(let f=0;f<o.length;f++){const m=t.push("text","",0);m.content=String.fromCharCode(c),t.delimiters.push({marker:c,length:o.length,token:t.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return t.pos+=o.length,!0}function _2(t,a){const s=a.length;for(let c=s-1;c>=0;c--){const o=a[c];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const f=a[o.end],m=c>0&&a[c-1].end===o.end+1&&a[c-1].marker===o.marker&&a[c-1].token===o.token-1&&a[o.end+1].token===f.token+1,p=String.fromCharCode(o.marker),b=t.tokens[o.token];b.type=m?"strong_open":"em_open",b.tag=m?"strong":"em",b.nesting=1,b.markup=m?p+p:p,b.content="";const y=t.tokens[f.token];y.type=m?"strong_close":"em_close",y.tag=m?"strong":"em",y.nesting=-1,y.markup=m?p+p:p,y.content="",m&&(t.tokens[a[c-1].token].content="",t.tokens[a[o.end+1].token].content="",c--)}}function c4(t){const a=t.tokens_meta,s=t.tokens_meta.length;_2(t,t.delimiters);for(let c=0;c<s;c++)a[c]&&a[c].delimiters&&_2(t,a[c].delimiters)}const gp={tokenize:i4,postProcess:c4};function r4(t,a){let s,c,o,f,m="",p="",b=t.pos,y=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;const _=t.pos,x=t.posMax,k=t.pos+1,R=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(R<0)return!1;let S=R+1;if(S<x&&t.src.charCodeAt(S)===40){for(y=!1,S++;S<x&&(s=t.src.charCodeAt(S),!(!Ke(s)&&s!==10));S++);if(S>=x)return!1;if(b=S,o=t.md.helpers.parseLinkDestination(t.src,S,t.posMax),o.ok){for(m=t.md.normalizeLink(o.str),t.md.validateLink(m)?S=o.pos:m="",b=S;S<x&&(s=t.src.charCodeAt(S),!(!Ke(s)&&s!==10));S++);if(o=t.md.helpers.parseLinkTitle(t.src,S,t.posMax),S<x&&b!==S&&o.ok)for(p=o.str,S=o.pos;S<x&&(s=t.src.charCodeAt(S),!(!Ke(s)&&s!==10));S++);}(S>=x||t.src.charCodeAt(S)!==41)&&(y=!0),S++}if(y){if(typeof t.env.references>"u")return!1;if(S<x&&t.src.charCodeAt(S)===91?(b=S+1,S=t.md.helpers.parseLinkLabel(t,S),S>=0?c=t.src.slice(b,S++):S=R+1):S=R+1,c||(c=t.src.slice(k,R)),f=t.env.references[xs(c)],!f)return t.pos=_,!1;m=f.href,p=f.title}if(!a){t.pos=k,t.posMax=R;const L=t.push("link_open","a",1),Z=[["href",m]];L.attrs=Z,p&&Z.push(["title",p]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=S,t.posMax=x,!0}function s4(t,a){let s,c,o,f,m,p,b,y,_="";const x=t.pos,k=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const R=t.pos+2,S=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(S<0)return!1;if(f=S+1,f<k&&t.src.charCodeAt(f)===40){for(f++;f<k&&(s=t.src.charCodeAt(f),!(!Ke(s)&&s!==10));f++);if(f>=k)return!1;for(y=f,p=t.md.helpers.parseLinkDestination(t.src,f,t.posMax),p.ok&&(_=t.md.normalizeLink(p.str),t.md.validateLink(_)?f=p.pos:_=""),y=f;f<k&&(s=t.src.charCodeAt(f),!(!Ke(s)&&s!==10));f++);if(p=t.md.helpers.parseLinkTitle(t.src,f,t.posMax),f<k&&y!==f&&p.ok)for(b=p.str,f=p.pos;f<k&&(s=t.src.charCodeAt(f),!(!Ke(s)&&s!==10));f++);else b="";if(f>=k||t.src.charCodeAt(f)!==41)return t.pos=x,!1;f++}else{if(typeof t.env.references>"u")return!1;if(f<k&&t.src.charCodeAt(f)===91?(y=f+1,f=t.md.helpers.parseLinkLabel(t,f),f>=0?o=t.src.slice(y,f++):f=S+1):f=S+1,o||(o=t.src.slice(R,S)),m=t.env.references[xs(o)],!m)return t.pos=x,!1;_=m.href,b=m.title}if(!a){c=t.src.slice(R,S);const L=[];t.md.inline.parse(c,t.md,t.env,L);const Z=t.push("image","img",0),I=[["src",_],["alt",""]];Z.attrs=I,Z.children=L,Z.content=c,b&&I.push(["title",b])}return t.pos=f,t.posMax=k,!0}const o4=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,f4=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function d4(t,a){let s=t.pos;if(t.src.charCodeAt(s)!==60)return!1;const c=t.pos,o=t.posMax;for(;;){if(++s>=o)return!1;const m=t.src.charCodeAt(s);if(m===60)return!1;if(m===62)break}const f=t.src.slice(c+1,s);if(f4.test(f)){const m=t.md.normalizeLink(f);if(!t.md.validateLink(m))return!1;if(!a){const p=t.push("link_open","a",1);p.attrs=[["href",m]],p.markup="autolink",p.info="auto";const b=t.push("text","",0);b.content=t.md.normalizeLinkText(f);const y=t.push("link_close","a",-1);y.markup="autolink",y.info="auto"}return t.pos+=f.length+2,!0}if(o4.test(f)){const m=t.md.normalizeLink("mailto:"+f);if(!t.md.validateLink(m))return!1;if(!a){const p=t.push("link_open","a",1);p.attrs=[["href",m]],p.markup="autolink",p.info="auto";const b=t.push("text","",0);b.content=t.md.normalizeLinkText(f);const y=t.push("link_close","a",-1);y.markup="autolink",y.info="auto"}return t.pos+=f.length+2,!0}return!1}function h4(t){return/^<a[>\s]/i.test(t)}function m4(t){return/^<\/a\s*>/i.test(t)}function yp(t){const a=t|32;return a>=97&&a<=122}function p4(t,a){const s=t.src;let c,o;if(s.startsWith("<!--",a)){if(s.startsWith(">",a+4))return a+5;if(s.startsWith("->",a+4))return a+6;c=a+4,o="-->"}else if(s.startsWith("<![CDATA[",a))c=a+9,o="]]>";else if(s.charCodeAt(a+1)===63)c=a+2,o="?>";else if(yp(s.charCodeAt(a+2)))c=a+3,o=">";else return-1;if(t.skipHtmlSpecial)return-1;const f=s.indexOf(o,c);return f<0?(t.skipHtmlSpecial=!0,-1):f+o.length}function b4(t,a){if(!t.md.options.html)return!1;const s=t.posMax,c=t.pos;if(t.src.charCodeAt(c)!==60||c+2>=s)return!1;let o;const f=t.src.charCodeAt(c+1);if(f===33||f===63)o=p4(t,c);else if(f===47||yp(f)){const m=t.src.slice(c).match(pp);o=m?c+m[0].length:-1}else return!1;if(o<0)return!1;if(!a){const m=t.push("html_inline","",0);m.content=t.src.slice(c,o),h4(m.content)&&t.linkLevel++,m4(m.content)&&t.linkLevel--}return t.pos=o,!0}const g4=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,y4=/^&([a-z][a-z0-9]{1,31});/i;function x4(t,a){const s=t.pos,c=t.posMax;if(t.src.charCodeAt(s)!==38||s+1>=c)return!1;if(t.src.charCodeAt(s+1)===35){const f=t.src.slice(s).match(g4);if(f){if(!a){const m=f[1][0].toLowerCase()==="x"?parseInt(f[1].slice(1),16):parseInt(f[1],10),p=t.push("text_special","",0);p.content=wf(m)?yc(m):yc(65533),p.markup=f[0],p.info="entity"}return t.pos+=f[0].length,!0}}else{const f=t.src.slice(s).match(y4);if(f){const m=Fy(f[0]);if(m!==f[0]){if(!a){const p=t.push("text_special","",0);p.content=m,p.markup=f[0],p.info="entity"}return t.pos+=f[0].length,!0}}}return!1}function E2(t){const a={},s=t.length;if(!s)return;let c=0,o=-2;const f=[];for(let m=0;m<s;m++){const p=t[m];if(f.push(0),(t[c].marker!==p.marker||o!==p.token-1)&&(c=m),o=p.token,p.length=p.length||0,!p.close)continue;a.hasOwnProperty(p.marker)||(a[p.marker]=[-1,-1,-1,-1,-1,-1]);const b=a[p.marker][(p.open?3:0)+p.length%3];let y=c-f[c]-1,_=y;for(;y>b;y-=f[y]+1){const x=t[y];if(x.marker===p.marker&&x.open&&x.end<0){let k=!1;if((x.close||p.open)&&(x.length+p.length)%3===0&&(x.length%3!==0||p.length%3!==0)&&(k=!0),!k){const R=y>0&&!t[y-1].open?f[y-1]+1:0;f[m]=m-y+R,f[y]=R,p.open=!1,x.end=m,x.close=!1,_=-1,o=-2;break}}}_!==-1&&(a[p.marker][(p.open?3:0)+(p.length||0)%3]=_)}}function v4(t){const a=t.tokens_meta,s=t.tokens_meta.length;E2(t.delimiters);for(let c=0;c<s;c++)a[c]&&a[c].delimiters&&E2(a[c].delimiters)}function _4(t){let a,s,c=0;const o=t.tokens,f=t.tokens.length;for(a=s=0;a<f;a++)o[a].nesting<0&&c--,o[a].level=c,o[a].nesting>0&&c++,o[a].type==="text"&&a+1<f&&o[a+1].type==="text"?o[a+1].content=o[a].content+o[a+1].content:(a!==s&&(o[s]=o[a]),s++);a!==s&&(o.length=s)}const lf=[["text",Jx],["linkify",e4],["newline",u4],["escape",t4],["backticks",n4],["strikethrough",bp.tokenize],["emphasis",gp.tokenize],["link",r4],["image",s4],["autolink",d4],["html_inline",b4],["entity",x4]],af=[["balance_pairs",v4],["strikethrough",bp.postProcess],["emphasis",gp.postProcess],["fragments_join",_4]];function Cc(){this.ruler=new nt;for(let t=0;t<lf.length;t++)this.ruler.push(lf[t][0],lf[t][1]);this.ruler2=new nt;for(let t=0;t<af.length;t++)this.ruler2.push(af[t][0],af[t][1])}Cc.prototype.skipToken=function(t){const a=t.pos,s=this.ruler.getRules(""),c=s.length,o=t.md.options.maxNesting,f=t.cache;if(typeof f[a]<"u"){t.pos=f[a];return}let m=!1;if(t.level<o){for(let p=0;p<c;p++)if(t.level++,m=s[p](t,!0),t.level--,m){if(a>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;m||t.pos++,f[a]=t.pos};Cc.prototype.tokenize=function(t){const a=this.ruler.getRules(""),s=a.length,c=t.posMax,o=t.md.options.maxNesting;for(;t.pos<c;){const f=t.pos;let m=!1;if(t.level<o){for(let p=0;p<s;p++)if(m=a[p](t,!1),m){if(f>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(m){if(t.pos>=c)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Cc.prototype.parse=function(t,a,s,c){const o=new this.State(t,a,s,c);this.tokenize(o);const f=this.ruler2.getRules(""),m=f.length;for(let p=0;p<m;p++)f[p](o)};Cc.prototype.State=Tc;function E4(t){const a={};t=t||{},a.src_Any=ap.source,a.src_Cc=ip.source,a.src_Z=rp.source,a.src_P=zf.source,a.src_ZPCc=[a.src_Z,a.src_P,a.src_Cc].join("|"),a.src_ZCc=[a.src_Z,a.src_Cc].join("|");const s="[><|]";return a.src_pseudo_letter=`(?:(?!${s}|${a.src_ZPCc})${a.src_Any})`,a.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",a.src_auth=`(?:(?:(?!${a.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,a.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",a.src_host_terminator=`(?=$|${s}|${a.src_ZPCc})(?!${t["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${a.src_ZPCc}))`,a.src_path=`(?:[/?#](?:(?!${a.src_ZCc}|${s}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${a.src_ZCc}|\\]).)*\\]|\\((?:(?!${a.src_ZCc}|[)]).)*\\)|\\{(?:(?!${a.src_ZCc}|[}]).)*\\}|\\"(?:(?!${a.src_ZCc}|["]).)+\\"|\\'(?:(?!${a.src_ZCc}|[']).)+\\'|\\'(?=${a.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${a.src_ZCc}|[.]|$)|`+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${a.src_ZCc}|$)|;(?!${a.src_ZCc}|$)|\\!+(?!${a.src_ZCc}|[!]|$)|\\?(?!${a.src_ZCc}|[?]|$))+|\\/)?`,a.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',a.src_xn="xn--[a-z0-9\\-]{1,59}",a.src_domain_root="(?:"+a.src_xn+`|${a.src_pseudo_letter}{1,63})`,a.src_domain="(?:"+a.src_xn+`|(?:${a.src_pseudo_letter})|(?:${a.src_pseudo_letter}(?:-|${a.src_pseudo_letter}){0,61}${a.src_pseudo_letter}))`,a.src_host=`(?:(?:(?:(?:${a.src_domain})\\.)*${a.src_domain}))`,a.tpl_host_fuzzy="(?:"+a.src_ip4+`|(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%)))`,a.tpl_host_no_ip_fuzzy=`(?:(?:(?:${a.src_domain})\\.)+(?:%TLDS%))`,a.src_host_strict=a.src_host+a.src_host_terminator,a.tpl_host_fuzzy_strict=a.tpl_host_fuzzy+a.src_host_terminator,a.src_host_port_strict=a.src_host+a.src_port+a.src_host_terminator,a.tpl_host_port_fuzzy_strict=a.tpl_host_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_port_no_ip_fuzzy_strict=a.tpl_host_no_ip_fuzzy+a.src_port+a.src_host_terminator,a.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${a.src_ZPCc}|>|$))`,a.tpl_email_fuzzy=`(^|${s}|"|\\(|${a.src_ZCc})(${a.src_email_name}@${a.tpl_host_fuzzy_strict})`,a.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${a.src_ZPCc}))((?![$+<=>^\`||])${a.tpl_host_port_fuzzy_strict}${a.src_path})`,a.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${a.src_ZPCc}))((?![$+<=>^\`||])${a.tpl_host_port_no_ip_fuzzy_strict}${a.src_path})`,a}function Ef(t){return Array.prototype.slice.call(arguments,1).forEach(function(s){s&&Object.keys(s).forEach(function(c){t[c]=s[c]})}),t}function Es(t){return Object.prototype.toString.call(t)}function S4(t){return Es(t)==="[object String]"}function A4(t){return Es(t)==="[object Object]"}function T4(t){return Es(t)==="[object RegExp]"}function S2(t){return Es(t)==="[object Function]"}function C4(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const xp={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function D4(t){return Object.keys(t||{}).reduce(function(a,s){return a||xp.hasOwnProperty(s)},!1)}const N4={"http:":{validate:function(t,a,s){const c=t.slice(a);return s.re.http||(s.re.http=new RegExp(`^\\/\\/${s.re.src_auth}${s.re.src_host_port_strict}${s.re.src_path}`,"i")),s.re.http.test(c)?c.match(s.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,a,s){const c=t.slice(a);return s.re.no_http||(s.re.no_http=new RegExp("^"+s.re.src_auth+`(?:localhost|(?:(?:${s.re.src_domain})\\.)+${s.re.src_domain_root})`+s.re.src_port+s.re.src_host_terminator+s.re.src_path,"i")),s.re.no_http.test(c)?a>=3&&t[a-3]===":"||a>=3&&t[a-3]==="/"?0:c.match(s.re.no_http)[0].length:0}},"mailto:":{validate:function(t,a,s){const c=t.slice(a);return s.re.mailto||(s.re.mailto=new RegExp(`^${s.re.src_email_name}@${s.re.src_host_strict}`,"i")),s.re.mailto.test(c)?c.match(s.re.mailto)[0].length:0}}},k4="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",O4="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function j4(t){return function(a,s){const c=a.slice(s);return t.test(c)?c.match(t)[0].length:0}}function A2(){return function(t,a){a.normalize(t)}}function gs(t){const a=t.re=E4(t.__opts__),s=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||s.push(k4),s.push(a.src_xn),a.src_tlds=s.join("|");function c(p){return p.replace("%TLDS%",a.src_tlds)}a.email_fuzzy=RegExp(c(a.tpl_email_fuzzy),"i"),a.email_fuzzy_global=RegExp(c(a.tpl_email_fuzzy),"ig"),a.link_fuzzy=RegExp(c(a.tpl_link_fuzzy),"i"),a.link_fuzzy_global=RegExp(c(a.tpl_link_fuzzy),"ig"),a.link_no_ip_fuzzy=RegExp(c(a.tpl_link_no_ip_fuzzy),"i"),a.link_no_ip_fuzzy_global=RegExp(c(a.tpl_link_no_ip_fuzzy),"ig"),a.host_fuzzy_test=RegExp(c(a.tpl_host_fuzzy_test),"i");const o=[];t.__compiled__={};function f(p,b){throw new Error(`(LinkifyIt) Invalid schema "${p}": ${b}`)}Object.keys(t.__schemas__).forEach(function(p){const b=t.__schemas__[p];if(b===null)return;const y={validate:null,link:null};if(t.__compiled__[p]=y,A4(b)){T4(b.validate)?y.validate=j4(b.validate):S2(b.validate)?y.validate=b.validate:f(p,b),S2(b.normalize)?y.normalize=b.normalize:b.normalize?f(p,b):y.normalize=A2();return}if(S4(b)){o.push(p);return}f(p,b)}),o.forEach(function(p){t.__compiled__[t.__schemas__[p]]&&(t.__compiled__[p].validate=t.__compiled__[t.__schemas__[p]].validate,t.__compiled__[p].normalize=t.__compiled__[t.__schemas__[p]].normalize)}),t.__compiled__[""]={validate:null,normalize:A2()};const m=Object.keys(t.__compiled__).filter(function(p){return p.length>0&&t.__compiled__[p]}).map(C4).join("|");t.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${a.src_ZPCc}))(${m})`,"i"),t.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${a.src_ZPCc}))(${m})`,"ig"),t.re.schema_at_start=RegExp(`^${t.re.schema_search.source}`,"i"),t.re.pretest=RegExp(`(${t.re.schema_test.source})|(${t.re.host_fuzzy_test.source})|@`,"i")}function vp(t,a,s,c){const o=t.slice(s,c);this.schema=a.toLowerCase(),this.index=s,this.lastIndex=c,this.raw=o,this.text=o,this.url=o}function mt(t,a){if(!(this instanceof mt))return new mt(t,a);a||D4(t)&&(a=t,t={}),this.__opts__=Ef({},xp,a),this.__schemas__=Ef({},N4,t),this.__compiled__={},this.__tlds__=O4,this.__tlds_replaced__=!1,this.re={},gs(this)}mt.prototype.add=function(a,s){return this.__schemas__[a]=s,gs(this),this};mt.prototype.set=function(a){return this.__opts__=Ef(this.__opts__,a),this};mt.prototype.test=function(a){if(!a.length)return!1;let s,c;if(this.re.schema_test.test(a)){for(c=this.re.schema_search,c.lastIndex=0;(s=c.exec(a))!==null;)if(this.testSchemaAt(a,s[2],c.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&a.search(this.re.host_fuzzy_test)>=0&&a.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&a.indexOf("@")>=0&&a.match(this.re.email_fuzzy)!==null)};mt.prototype.pretest=function(a){return this.re.pretest.test(a)};mt.prototype.testSchemaAt=function(a,s,c){return this.__compiled__[s.toLowerCase()]?this.__compiled__[s.toLowerCase()].validate(a,c,this):0};mt.prototype.match=function(a){const s=[],c=[],o=[],f=[];let m,p,b;function y(k,R){return k?R?k.index!==R.index?k.index<R.index?k:R:k.lastIndex>=R.lastIndex?k:R:k:R}if(!a.length)return null;if(this.re.schema_test.test(a))for(b=this.re.schema_search,b.lastIndex=0;(m=b.exec(a))!==null;)p=this.testSchemaAt(a,m[2],b.lastIndex),p&&c.push({schema:m[2],index:m.index+m[1].length,lastIndex:m.index+m[0].length+p});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(b=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,b.lastIndex=0;(m=b.exec(a))!==null;)o.push({schema:"",index:m.index+m[1].length,lastIndex:m.index+m[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(b=this.re.email_fuzzy_global,b.lastIndex=0;(m=b.exec(a))!==null;)f.push({schema:"mailto:",index:m.index+m[1].length,lastIndex:m.index+m[0].length});const _=[0,0,0];let x=0;for(;;){const k=[c[_[0]],f[_[1]],o[_[2]]],R=y(y(k[0],k[1]),k[2]);if(!R)break;if(R===k[0]?_[0]++:R===k[1]?_[1]++:_[2]++,R.index<x)continue;const S=new vp(a,R.schema,R.index,R.lastIndex);this.__compiled__[S.schema].normalize(S,this),s.push(S),x=R.lastIndex}return s.length?s:null};mt.prototype.matchAtStart=function(a){if(!a.length)return null;const s=this.re.schema_at_start.exec(a);if(!s)return null;const c=this.testSchemaAt(a,s[2],s[0].length);if(!c)return null;const o=new vp(a,s[2],s.index+s[1].length,s.index+s[0].length+c);return this.__compiled__[o.schema].normalize(o,this),o};mt.prototype.tlds=function(a,s){return a=Array.isArray(a)?a:[a],s?(this.__tlds__=this.__tlds__.concat(a).sort().filter(function(c,o,f){return c!==f[o-1]}).reverse(),gs(this),this):(this.__tlds__=a.slice(),this.__tlds_replaced__=!0,gs(this),this)};mt.prototype.normalize=function(a){a.schema||(a.url=`http://${a.url}`),a.schema==="mailto:"&&!/^mailto:/i.test(a.url)&&(a.url=`mailto:${a.url}`)};mt.prototype.onCompile=function(){};const ni=2147483647,tn=36,Uf=1,Ec=26,z4=38,R4=700,_p=72,Ep=128,Sp="-",w4=/^xn--/,M4=/[^\0-\x7F]/,L4=/[\x2E\u3002\uFF0E\uFF61]/g,U4={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},cf=tn-Uf,nn=Math.floor,rf=String.fromCharCode;function yl(t){throw new RangeError(U4[t])}function F4(t,a){const s=[];let c=t.length;for(;c--;)s[c]=a(t[c]);return s}function Ap(t,a){const s=t.split("@");let c="";s.length>1&&(c=s[0]+"@",t=s[1]),t=t.replace(L4,".");const o=t.split("."),f=F4(o,a).join(".");return c+f}function Tp(t){const a=[];let s=0;const c=t.length;for(;s<c;){const o=t.charCodeAt(s++);if(o>=55296&&o<=56319&&s<c){const f=t.charCodeAt(s++);(f&64512)==56320?a.push(((o&1023)<<10)+(f&1023)+65536):(a.push(o),s--)}else a.push(o)}return a}const B4=t=>String.fromCodePoint(...t),H4=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:tn},T2=function(t,a){return t+22+75*(t<26)-((a!=0)<<5)},Cp=function(t,a,s){let c=0;for(t=s?nn(t/R4):t>>1,t+=nn(t/a);t>cf*Ec>>1;c+=tn)t=nn(t/cf);return nn(c+(cf+1)*t/(t+z4))},Dp=function(t){const a=[],s=t.length;let c=0,o=Ep,f=_p,m=t.lastIndexOf(Sp);m<0&&(m=0);for(let p=0;p<m;++p)t.charCodeAt(p)>=128&&yl("not-basic"),a.push(t.charCodeAt(p));for(let p=m>0?m+1:0;p<s;){const b=c;for(let _=1,x=tn;;x+=tn){p>=s&&yl("invalid-input");const k=H4(t.charCodeAt(p++));k>=tn&&yl("invalid-input"),k>nn((ni-c)/_)&&yl("overflow"),c+=k*_;const R=x<=f?Uf:x>=f+Ec?Ec:x-f;if(k<R)break;const S=tn-R;_>nn(ni/S)&&yl("overflow"),_*=S}const y=a.length+1;f=Cp(c-b,y,b==0),nn(c/y)>ni-o&&yl("overflow"),o+=nn(c/y),c%=y,a.splice(c++,0,o)}return String.fromCodePoint(...a)},Np=function(t){const a=[];t=Tp(t);const s=t.length;let c=Ep,o=0,f=_p;for(const b of t)b<128&&a.push(rf(b));const m=a.length;let p=m;for(m&&a.push(Sp);p<s;){let b=ni;for(const _ of t)_>=c&&_<b&&(b=_);const y=p+1;b-c>nn((ni-o)/y)&&yl("overflow"),o+=(b-c)*y,c=b;for(const _ of t)if(_<c&&++o>ni&&yl("overflow"),_===c){let x=o;for(let k=tn;;k+=tn){const R=k<=f?Uf:k>=f+Ec?Ec:k-f;if(x<R)break;const S=x-R,L=tn-R;a.push(rf(T2(R+S%L,0))),x=nn(S/L)}a.push(rf(T2(x,0))),f=Cp(o,y,p===m),o=0,++p}++o,++c}return a.join("")},q4=function(t){return Ap(t,function(a){return w4.test(a)?Dp(a.slice(4).toLowerCase()):a})},G4=function(t){return Ap(t,function(a){return M4.test(a)?"xn--"+Np(a):a})},kp={version:"2.3.1",ucs2:{decode:Tp,encode:B4},decode:Dp,encode:Np,toASCII:G4,toUnicode:q4},Y4={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},V4={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Z4={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},X4={default:Y4,zero:V4,commonmark:Z4},I4=/^(vbscript|javascript|file|data):/,Q4=/^data:image\/(gif|png|jpeg|webp);/;function K4(t){const a=t.trim().toLowerCase();return I4.test(a)?Q4.test(a):!0}const Op=["http:","https:","mailto:"];function $4(t){const a=jf(t,!0);if(a.hostname&&(!a.protocol||Op.indexOf(a.protocol)>=0))try{a.hostname=kp.toASCII(a.hostname)}catch{}return Ac(Of(a))}function J4(t){const a=jf(t,!0);if(a.hostname&&(!a.protocol||Op.indexOf(a.protocol)>=0))try{a.hostname=kp.toUnicode(a.hostname)}catch{}return ci(Of(a),ci.defaultChars+"%")}function Dt(t,a){if(!(this instanceof Dt))return new Dt(t,a);a||Rf(t)||(a=t||{},t="default"),this.inline=new Cc,this.block=new _s,this.core=new Mf,this.renderer=new si,this.linkify=new mt,this.validateLink=K4,this.normalizeLink=$4,this.normalizeLinkText=J4,this.utils=ux,this.helpers=ys({},ax),this.options={},this.configure(t),a&&this.set(a)}Dt.prototype.set=function(t){return ys(this.options,t),this};Dt.prototype.configure=function(t){const a=this;if(Rf(t)){const s=t;if(t=X4[s],!t)throw new Error('Wrong `markdown-it` preset "'+s+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&a.set(t.options),t.components&&Object.keys(t.components).forEach(function(s){t.components[s].rules&&a[s].ruler.enableOnly(t.components[s].rules),t.components[s].rules2&&a[s].ruler2.enableOnly(t.components[s].rules2)}),this};Dt.prototype.enable=function(t,a){let s=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){s=s.concat(this[o].ruler.enable(t,!0))},this),s=s.concat(this.inline.ruler2.enable(t,!0));const c=t.filter(function(o){return s.indexOf(o)<0});if(c.length&&!a)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+c);return this};Dt.prototype.disable=function(t,a){let s=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){s=s.concat(this[o].ruler.disable(t,!0))},this),s=s.concat(this.inline.ruler2.disable(t,!0));const c=t.filter(function(o){return s.indexOf(o)<0});if(c.length&&!a)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+c);return this};Dt.prototype.use=function(t){const a=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,a),this};Dt.prototype.parse=function(t,a){if(typeof t!="string")throw new Error("Input data should be a String");const s=new this.core.State(t,this,a);return this.core.process(s),s.tokens};Dt.prototype.render=function(t,a){return a=a||{},this.renderer.render(this.parse(t,a),this.options,a)};Dt.prototype.parseInline=function(t,a){const s=new this.core.State(t,this,a);return s.inlineMode=!0,this.core.process(s),s.tokens};Dt.prototype.renderInline=function(t,a){return a=a||{},this.renderer.render(this.parseInline(t,a),this.options,a)};function C2(t,a){(a==null||a>t.length)&&(a=t.length);for(var s=0,c=Array(a);s<a;s++)c[s]=t[s];return c}function P4(t){if(Array.isArray(t))return t}function W4(t,a){var s=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(s!=null){var c,o,f,m,p=[],b=!0,y=!1;try{if(f=(s=s.call(t)).next,a!==0)for(;!(b=(c=f.call(s)).done)&&(p.push(c.value),p.length!==a);b=!0);}catch(_){y=!0,o=_}finally{try{if(!b&&s.return!=null&&(m=s.return(),Object(m)!==m))return}finally{if(y)throw o}}return p}}function e8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
35
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u8(t,a){return P4(t)||W4(t,a)||t8(t,a)||e8()}function t8(t,a){if(t){if(typeof t=="string")return C2(t,a);var s={}.toString.call(t).slice(8,-1);return s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set"?Array.from(t):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?C2(t,a):void 0}}const jp=Object.entries,D2=Object.setPrototypeOf,n8=Object.isFrozen,zp=Object.getPrototypeOf,Rp=Object.getOwnPropertyDescriptor;let Tu=Object.freeze,wu=Object.seal,ui=Object.create,wp=typeof Reflect<"u"&&Reflect,Sf=wp.apply,Af=wp.construct;Tu||(Tu=function(a){return a});wu||(wu=function(a){return a});Sf||(Sf=function(a,s){for(var c=arguments.length,o=new Array(c>2?c-2:0),f=2;f<c;f++)o[f-2]=arguments[f];return a.apply(s,o)});Af||(Af=function(a){for(var s=arguments.length,c=new Array(s>1?s-1:0),o=1;o<s;o++)c[o-1]=arguments[o];return new a(...c)});const Tn=We(Array.prototype.forEach),l8=We(Array.prototype.lastIndexOf),N2=We(Array.prototype.pop),dc=We(Array.prototype.push),a8=We(Array.prototype.slice),i8=We(Array.prototype.splice),li=Array.isArray,sf=Mp(Set),of=We(Set.prototype.add),hc=We(Set.prototype.has),ta=We(String.prototype.toLowerCase),ff=We(String.prototype.toString),k2=We(String.prototype.match),mc=We(String.prototype.replace),O2=We(String.prototype.indexOf),c8=We(String.prototype.trim),r8=We(Number.prototype.toString),s8=We(Boolean.prototype.toString),j2=typeof BigInt>"u"?null:We(BigInt.prototype.toString),z2=typeof Symbol>"u"?null:We(Symbol.prototype.toString),tt=We(Object.prototype.hasOwnProperty),pc=We(Object.prototype.toString),Ru=We(RegExp.prototype.test),Cn=Mp(TypeError);function We(t){return function(a){a instanceof RegExp&&(a.lastIndex=0);for(var s=arguments.length,c=new Array(s>1?s-1:0),o=1;o<s;o++)c[o-1]=arguments[o];return Sf(t,a,c)}}function Mp(t){return function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return Af(t,s)}}function Ue(t,a){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ta;if(D2&&D2(t,null),!li(a))return t;let c=a.length;for(;c--;){let o=a[c];if(typeof o=="string"){const f=s(o);f!==o&&(n8(a)||(a[c]=f),o=f)}t[o]=!0}return t}function o8(t){for(let a=0;a<t.length;a++)tt(t,a)||(t[a]=null);return t}function ht(t){const a=ui(null);for(const c of jp(t)){var s=u8(c,2);const o=s[0],f=s[1];tt(t,o)&&(li(f)?a[o]=o8(f):f&&typeof f=="object"&&f.constructor===Object?a[o]=ht(f):a[o]=f)}return a}function f8(t){switch(typeof t){case"string":return t;case"number":return r8(t);case"boolean":return s8(t);case"bigint":return j2?j2(t):"0";case"symbol":return z2?z2(t):"Symbol()";case"undefined":return pc(t);case"function":case"object":{if(t===null)return pc(t);const a=t,s=Ct(a,"toString");if(typeof s=="function"){const c=s(a);return typeof c=="string"?c:pc(c)}return pc(t)}default:return pc(t)}}function Ct(t,a){for(;t!==null;){const c=Rp(t,a);if(c){if(c.get)return We(c.get);if(typeof c.value=="function")return We(c.value)}t=zp(t)}function s(){return null}return s}function d8(t,a){for(;t!==null;){const s=Rp(t,a);if(s)return s.get?We(s.get):null;t=zp(t)}return null}function h8(t){try{return Ru(t,""),!0}catch{return!1}}const R2=Tu(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),df=Tu(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),hf=Tu(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),m8=Tu(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mf=Tu(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),p8=Tu(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),w2=Tu(["#text"]),M2=Tu(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),pf=Tu(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),L2=Tu(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),is=Tu(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),b8=wu(/{{[\w\W]*|^[\w\W]*}}/g),g8=wu(/<%[\w\W]*|^[\w\W]*%>/g),y8=wu(/\${[\w\W]*/g),x8=wu(/^data-[\-\w.\u00B7-\uFFFF]+$/),v8=wu(/^aria-[\-\w]+$/),U2=wu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_8=wu(/^(?:\w+script|data):/i),E8=wu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),S8=wu(/^html$/i),A8=wu(/^[a-z][.\w]*(-[.\w]+)+$/i),bf=wu(/<[/\w!]/g),F2=wu(/<[/\w]/g),T8=wu(/<\/no(script|embed|frames)/i),B2=wu(/\/>/i),mu={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},C8=Tu(Ue({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),D8=function(){return typeof window>"u"?null:window},N8=function(a,s){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let c=null;const o="data-tt-policy-suffix";s&&s.hasAttribute(o)&&(c=s.getAttribute(o));const f="dompurify"+(c?"#"+c:"");try{return a.createPolicy(f,{createHTML(m){return m},createScriptURL(m){return m}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},H2=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},gl=function(a,s,c,o){return tt(a,s)&&li(a[s])?Ue(o.base?ht(o.base):{},a[s],o.transform):c},gf=function(a,s,c){const o=tt(a,s)?a[s]:void 0;return o&&typeof o=="object"?ht(o):c()};function Lp(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:D8();const a=G=>Lp(G);if(a.version="3.4.17",a.removed=[],!t||!t.document||t.document.nodeType!==mu.document||!t.Element)return a.isSupported=!1,a;let s=t.document;const c=s,o=c.currentScript;t.DocumentFragment;const f=t.HTMLTemplateElement,m=t.Node,p=t.Element,b=t.NodeFilter;t.NamedNodeMap===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const y=t.DOMParser,_=t.trustedTypes,x=p.prototype,k=Ct(x,"cloneNode"),R=Ct(x,"remove"),S=Ct(x,"removeAttributeNode"),L=Ct(x,"nextSibling"),Z=Ct(x,"childNodes"),I=Ct(x,"parentNode"),ie=Ct(x,"shadowRoot"),ne=Ct(x,"attributes"),Y=m&&m.prototype?Ct(m.prototype,"nodeType"):null,Q=m&&m.prototype?Ct(m.prototype,"nodeName"):null,ae=m&&m.prototype?Ct(m.prototype,"ownerDocument"):null,W=function(v){return Y?Y(v):v.nodeType},ce=function(v){return Q?Q(v):v.nodeName},$e=d8(x,"namespaceURI"),Be=function(v){return $e?$e(v):v.namespaceURI};if(typeof f=="function"){const G=s.createElement("template");G.content&&G.content.ownerDocument&&(s=G.content.ownerDocument)}let te,ge="",Je,nu=!1,xe=0;const J=function(){if(xe>0)throw Cn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},oe=function(v){J(),xe++;try{return te.createHTML(v)}finally{xe--}},de=function(v){J(),xe++;try{return te.createScriptURL(v)}finally{xe--}},ve=function(){return nu||(Je=N8(_,o),nu=!0),Je},ye=s,yu=ye.implementation,De=ye.createNodeIterator,K=ye.createDocumentFragment,T=ye.getElementsByTagName,V=c.importNode;let $=H2();a.isSupported=typeof jp=="function"&&typeof I=="function"&&yu&&yu.createHTMLDocument!==void 0;const re=b8,Ae=g8,ze=y8,Me=x8,ee=v8,he=_8,Qu=E8,Nn=A8;let Nt=U2,Ne=null;const eu=Ue({},[...R2,...df,...hf,...mf,...w2]);let M=null;const X=Ue({},[...M2,...pf,...L2,...is]);let ke=Object.seal(ui(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ru=null,El=null;const lt=Object.seal(ui(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let cn=!0,Sl=!0,Al=!1,Tl=!0,pt=!1,Mu=!0,kt=!1,Cl=!1,la=null,Dl=null,Nl=!1,Bt=!1,kn=!1,aa=!1,Dc=!0,Lu=!1;const Nc="user-content-";let ia=!0,ca=!1,bt=null,On={},Ht=null;const kc=Ue({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Oc=null;const jn=Ue({},["audio","video","img","source","image","track"]);let Uu=null;const Ot=Ue({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xu="http://www.w3.org/1998/Math/MathML",ra="http://www.w3.org/2000/svg",gt="http://www.w3.org/1999/xhtml";let zn=gt,Rn=!1,wn=null;const sa=Ue({},[xu,ra,gt],ff),qt=Tu(["mi","mo","mn","ms","mtext"]);let Mn=Ue({},qt);const Ln=Tu(["annotation-xml"]);let oa=Ue({},Ln);const As=Ue({},["title","style","font","a","script"]);let Un=null;const oi=["application/xhtml+xml","text/html"],kl="text/html";let uu=null,rn=null;const jc=s.createElement("form"),fi=function(v){return v instanceof RegExp||v instanceof Function},Ol=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rn&&rn===v)return;(!v||typeof v!="object")&&(v={}),v=ht(v),Un=oi.indexOf(v.PARSER_MEDIA_TYPE)===-1?kl:v.PARSER_MEDIA_TYPE,uu=Un==="application/xhtml+xml"?ff:ta,Ne=gl(v,"ALLOWED_TAGS",eu,{transform:uu}),M=gl(v,"ALLOWED_ATTR",X,{transform:uu}),wn=gl(v,"ALLOWED_NAMESPACES",sa,{transform:ff}),Uu=gl(v,"ADD_URI_SAFE_ATTR",Ot,{transform:uu,base:Ot}),Oc=gl(v,"ADD_DATA_URI_TAGS",jn,{transform:uu,base:jn}),Ht=gl(v,"FORBID_CONTENTS",kc,{transform:uu}),ru=gl(v,"FORBID_TAGS",ht({}),{transform:uu}),El=gl(v,"FORBID_ATTR",ht({}),{transform:uu}),On=tt(v,"USE_PROFILES")?v.USE_PROFILES&&typeof v.USE_PROFILES=="object"?ht(v.USE_PROFILES):v.USE_PROFILES:!1,cn=v.ALLOW_ARIA_ATTR!==!1,Sl=v.ALLOW_DATA_ATTR!==!1,Al=v.ALLOW_UNKNOWN_PROTOCOLS||!1,Tl=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,pt=v.SAFE_FOR_TEMPLATES||!1,Mu=v.SAFE_FOR_XML!==!1,kt=v.WHOLE_DOCUMENT||!1,Bt=v.RETURN_DOM||!1,kn=v.RETURN_DOM_FRAGMENT||!1,aa=v.RETURN_TRUSTED_TYPE||!1,Nl=v.FORCE_BODY||!1,Dc=v.SANITIZE_DOM!==!1,Lu=v.SANITIZE_NAMED_PROPS||!1,ia=v.KEEP_CONTENT!==!1,ca=v.IN_PLACE||!1,Nt=h8(v.ALLOWED_URI_REGEXP)?v.ALLOWED_URI_REGEXP:U2,zn=typeof v.NAMESPACE=="string"?v.NAMESPACE:gt,Mn=gf(v,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ue({},qt)),oa=gf(v,"HTML_INTEGRATION_POINTS",()=>Ue({},Ln));const C=gf(v,"CUSTOM_ELEMENT_HANDLING",()=>ui(null));if(ke=ui(null),tt(C,"tagNameCheck")&&fi(C.tagNameCheck)&&(ke.tagNameCheck=C.tagNameCheck),tt(C,"attributeNameCheck")&&fi(C.attributeNameCheck)&&(ke.attributeNameCheck=C.attributeNameCheck),tt(C,"allowCustomizedBuiltInElements")&&typeof C.allowCustomizedBuiltInElements=="boolean"&&(ke.allowCustomizedBuiltInElements=C.allowCustomizedBuiltInElements),wu(ke),pt&&(Sl=!1),kn&&(Bt=!0),On&&(Ne=Ue({},w2),M=ui(null),On.html===!0&&(Ue(Ne,R2),Ue(M,M2)),On.svg===!0&&(Ue(Ne,df),Ue(M,pf),Ue(M,is)),On.svgFilters===!0&&(Ue(Ne,hf),Ue(M,pf),Ue(M,is)),On.mathMl===!0&&(Ue(Ne,mf),Ue(M,L2),Ue(M,is))),lt.tagCheck=null,lt.attributeCheck=null,tt(v,"ADD_TAGS")&&(typeof v.ADD_TAGS=="function"?lt.tagCheck=v.ADD_TAGS:li(v.ADD_TAGS)&&(Ne===eu&&(Ne=ht(Ne)),Ue(Ne,v.ADD_TAGS,uu))),tt(v,"ADD_ATTR")&&(typeof v.ADD_ATTR=="function"?lt.attributeCheck=v.ADD_ATTR:li(v.ADD_ATTR)&&(M===X&&(M=ht(M)),Ue(M,v.ADD_ATTR,uu))),tt(v,"ADD_FORBID_CONTENTS")&&li(v.ADD_FORBID_CONTENTS)&&(Ht===kc&&(Ht=ht(Ht)),Ue(Ht,v.ADD_FORBID_CONTENTS,uu)),ia&&(Ne["#text"]=!0),kt&&Ue(Ne,["html","head","body"]),Ne.table&&(Ue(Ne,["tbody"]),delete ru.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!="function")throw Cn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Cn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const q=te;te=v.TRUSTED_TYPES_POLICY;try{ge=oe("")}catch(H){throw te=q,H}}else v.TRUSTED_TYPES_POLICY===null?(te=void 0,ge=""):(te===void 0&&(te=ve()),te&&typeof ge=="string"&&(ge=oe("")));Tu&&Tu(v),rn=v},fa=Ue({},[...df,...hf,...m8]),di=Ue({},[...mf,...p8]),zc=function(v,C,q){return C.namespaceURI===gt?v==="svg":C.namespaceURI===xu?v==="svg"&&(q==="annotation-xml"||Mn[q]):!!fa[v]},jt=function(v,C,q){return C.namespaceURI===gt?v==="math":C.namespaceURI===ra?v==="math"&&oa[q]:!!di[v]},pu=function(v,C,q){return C.namespaceURI===ra&&!oa[q]||C.namespaceURI===xu&&!Mn[q]?!1:!di[v]&&(As[v]||!fa[v])},Fu=function(v){const C=Be(v),q=ta(ce(v)),H=I(v);let se,me;return H&&W(H)===mu.element?(se={namespaceURI:Be(H)},me=ta(ce(H))):(se={namespaceURI:zn},me="template"),wn[C]?C===ra?zc(q,se,me):C===xu?jt(q,se,me):C===gt?pu(q,se,me):!!(Un==="application/xhtml+xml"&&wn[C]):!1},qu=function(v){dc(a.removed,{element:v});try{I(v).removeChild(v)}catch{if(R(v),!I(v))throw Cn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},hi=function(v,C,q){try{S(v,C)}catch{try{v.removeAttribute(q)}catch{}}},mi=function(v){Bn(v);const C=Z(v);C&&Tn(a8(C),H=>{try{R(H)}catch{}});const q=W(v)===mu.element?ne(v):null;if(q)for(let H=q.length-1;H>=0;--H){const se=q[H],me=se&&se.name;typeof me=="string"&&hi(v,se,me)}},Fn=function(v,C,q){if(!q)try{q=C.getAttributeNode(v)}catch{q=null}dc(a.removed,{attribute:q||null,from:C});try{q?S(C,q):C.removeAttribute(v)}catch{try{C.removeAttribute(v)}catch{}}if(v==="is")if(Bt||kn)try{qu(C)}catch{}else try{C.setAttribute(v,"")}catch{}},pi=function(v){const C=ne(v);if(C)for(let q=C.length-1;q>=0;--q){const H=C[q],se=H&&H.name;typeof se!="string"||M[uu(se)]||hi(v,H,se)}},sn=function(v,C){let q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const H=[v];for(;H.length>0;){const se=H.pop();if(C(se)===!1)continue;if(q&&W(se)===mu.element){const _e=ie(se);Te(_e)&&H.push(_e)}const me=Z(se);if(me)for(let _e=me.length-1;_e>=0;--_e)H.push(me[_e])}},Bn=function(v){sn(v,C=>{W(C)===mu.element&&pi(C)})},Hn=function(v){const C=[];return sn(v,q=>{C.push(q)},!0),C},on=function(v,C){const q=sf();Tn(Hn(v),H=>{W(H)===mu.element&&of(q,H)}),Tn(C,H=>{W(H)===mu.element&&!hc(q,H)&&pi(H)})},fn=function(v,C){let q=!1;return Tn(a.removed,H=>{H.element&&(q=q||H.element===v,Bn(H.element))}),on(v,C),q},jl=8,qn=function(v,C){const q=bt;let H=null;const se=()=>(H||(H=sf(),Tn(C,me=>{of(H,me)})),H);for(let me=0;;me++){const _e=Hn(v),He=[v];let $u=!1;if(Tn(_e,bu=>{W(bu)===mu.documentFragment?dc(He,bu):!$u&&!hc(q,bu)&&($u=hc(se(),bu))}),!$u)return;if(me>=jl)throw Cn("the tree kept changing during in-place sanitization; refusing to return it");Tn(He,(bu,iu)=>{su(bu,iu>0,v,se())})}},su=function(v,C,q,H){const se=Yt(v);let me;for(;me=se.nextNode();)!hc(H,me)||hc(bt,me)||(C&&Bu($.uponSanitizeShadowNode,me,null),zl(me,q),Vt(me,q),Te(me.content)&&Vn(me.content))},Rc=function(v){bt&&of(bt,v)},bi=function(v,C){return Mu?v==="patchsrc"?!0:v==="for"&&C!=="label"&&C!=="output":!1},wc=function(v){Mu&&sn(v,C=>{const q=W(C);if(q===mu.processingInstruction||q===mu.comment&&Ru(F2,C.data)){try{R(C)}catch{}return!1}if(q===mu.element){const H=C,se=uu(ce(C));try{H.hasAttribute&&H.hasAttribute("patchsrc")&&H.removeAttribute("patchsrc"),H.hasAttribute&&H.hasAttribute("for")&&bi("for",se)&&H.removeAttribute("for")}catch{}}return!0})},Gt=function(v){let C=null,q=null;if(Nl)v="<remove></remove>"+v;else{const me=k2(v,/^[\r\n\t ]+/);q=me&&me[0]}Un==="application/xhtml+xml"&&zn===gt&&(v='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+v+"</body></html>");const H=te?oe(v):v;if(zn===gt)try{C=new y().parseFromString(H,Un)}catch{}if(!C||!C.documentElement){C=yu.createDocument(zn,"template",null);try{C.documentElement.innerHTML=Rn?ge:H}catch{}}const se=C.body||C.documentElement;return v&&q&&se.insertBefore(s.createTextNode(q),se.childNodes[0]||null),zn===gt?T.call(C,kt?"html":"body")[0]:kt?C.documentElement:se},Yt=function(v){const C=ae?ae(v):v.ownerDocument;return De.call(C||v,v,b.SHOW_ELEMENT|b.SHOW_COMMENT|b.SHOW_TEXT|b.SHOW_PROCESSING_INSTRUCTION|b.SHOW_CDATA_SECTION,null)},da=function(v){return v=mc(v,re," "),v=mc(v,Ae," "),v=mc(v,ze," "),v},ha=function(v){var C;gi(v);const q=(C=v.querySelectorAll)===null||C===void 0?void 0:C.call(v,"template");q&&Tn(q,H=>{Te(H.content)&&ha(H.content)})},gi=function(v){v.normalize();const C=ae?ae(v):v.ownerDocument,q=De.call(C||v,v,b.SHOW_TEXT|b.SHOW_COMMENT|b.SHOW_CDATA_SECTION|b.SHOW_PROCESSING_INSTRUCTION,null);let H=q.nextNode();for(;H;)H.data=da(H.data),H=q.nextNode()},ma=function(v){const C=Q?Q(v):null;return typeof C!="string"||uu(C)!=="form"?!1:typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||v.attributes!==ne(v)||typeof v.removeAttribute!="function"||typeof v.removeAttributeNode!="function"||typeof v.getAttributeNode!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function"||typeof v.hasChildNodes!="function"||v.nodeType!==Y(v)||v.childNodes!==Z(v)},Te=function(v){if(!Y||typeof v!="object"||v===null)return!1;try{return Y(v)===mu.documentFragment}catch{return!1}},Gn=function(v){if(!Y||typeof v!="object"||v===null)return!1;try{return typeof Y(v)=="number"}catch{return!1}};function Bu(G,v,C){G.length!==0&&Tn(G,q=>{q.call(a,v,C,rn)})}const pa=function(v,C){return!!(Mu&&v.hasChildNodes()&&!Gn(v.firstElementChild)&&Ru(bf,v.textContent)&&Ru(bf,v.innerHTML)||Mu&&C8[C]&&W(v)===mu.element&&Be(v)===gt&&(Gn(v.firstElementChild)||typeof v.textContent=="string"&&Ru(bf,v.textContent))||v.nodeType===mu.processingInstruction||Mu&&v.nodeType===mu.comment&&Ru(F2,v.data))},Ku=function(v,C){if(v instanceof RegExp)return Ru(v,C);if(v instanceof Function){for(var q=arguments.length,H=new Array(q>2?q-2:0),se=2;se<q;se++)H[se-2]=arguments[se];return!!v(C,...H)}return!1},Gu=function(v,C,q){if(!ru[C]&&Yu(C)&&Ku(ke.tagNameCheck,C))return!1;if(ia&&!Ht[C]&&!Ht[ta(C)]){const H=I(v),se=Z(v);if(se&&H){const me=se.length;for(let _e=me-1;_e>=0;--_e){const He=v===q?k(se[_e],!0):se[_e];H.insertBefore(He,L(v))}}}return qu(v),!0},yi=function(v,C,q,H){return v.length===0?C:C===q||C===H?ht(C):C},Yn=function(v,C){return v===C||I(v)!==null?!1:(ca&&Bn(v),!0)},zl=function(v,C){if(Rc(v),Bu($.beforeSanitizeElements,v,null),Yn(v,C))return!0;if(ma(v))return qu(v),!0;const q=uu(ce(v));if(Ne=yi($.uponSanitizeElement,Ne,eu,la),Bu($.uponSanitizeElement,v,{tagName:q,allowedTags:Ne}),Yn(v,C))return!0;if(pa(v,q))return qu(v),!0;if(ru[q]||!(lt.tagCheck instanceof Function&&lt.tagCheck(q))&&!Ne[q]){const H=Gu(v,q,C);return H===!1&&(Bu($.afterSanitizeElements,v,null),Yn(v,C))?!0:H}if(W(v)===mu.element&&!Fu(v)||(q==="noscript"||q==="noembed"||q==="noframes")&&Ru(T8,v.innerHTML))return qu(v),!0;if(pt&&v.nodeType===mu.text){const H=da(v.textContent);v.textContent!==H&&(dc(a.removed,{element:v.cloneNode()}),v.textContent=H)}return Bu($.afterSanitizeElements,v,null),Yn(v,C)},xi=function(v,C,q){if(El[C]||bi(C,v)||Dc&&(C==="id"||C==="name")&&(q in s||q in jc))return!1;const H=M[C]||lt.attributeCheck instanceof Function&&lt.attributeCheck(C,v);return Sl&&Ru(Me,C)||cn&&Ru(ee,C)?!0:H?Uu[C]||Ru(Nt,mc(q,Qu,""))||(C==="src"||C==="xlink:href"||C==="href")&&v!=="script"&&O2(q,"data:")===0&&Oc[v]||Al&&!Ru(he,mc(q,Qu,""))?!0:!q:Yu(v)&&Ku(ke.tagNameCheck,v)&&Ku(ke.attributeNameCheck,C,v)||C==="is"&&ke.allowCustomizedBuiltInElements&&Ku(ke.tagNameCheck,q)},Ts=Ue({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Yu=function(v){return!Ts[ta(v)]&&Ru(Nn,v)},vi=function(v,C,q,H){if(te&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!q)switch(_.getAttributeType(v,C)){case"TrustedHTML":return oe(H);case"TrustedScriptURL":return de(H)}return H},Mc=function(v,C,q,H){try{return q?v.setAttributeNS(q,C,H):v.setAttribute(C,H),ma(v)?(qu(v),!1):!0}catch{return Fn(C,v),!1}},ba=function(v,C){return Mu&&Ru(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,C)?!0:ta(v)==="attributename"&&k2(C,"href")!==null},Vt=function(v,C){if(Bu($.beforeSanitizeAttributes,v,null),Yn(v,C))return;const q=v.attributes;if(!q||ma(v))return;M=yi($.uponSanitizeAttribute,M,X,Dl);const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0};let se=q.length;const me=uu(v.nodeName);for(;se--;){const _e=q[se],He=_e.name,$u=_e.namespaceURI,bu=_e.value,iu=uu(He),at=bu;let Cu=He==="value"?at:c8(at),ya=!1;if(H.attrName=iu,H.attrValue=Cu,H.keepAttr=!0,H.forceKeepAttr=void 0,Bu($.uponSanitizeAttribute,v,H),Cu=H.attrValue,Lu&&(iu==="id"||iu==="name")&&O2(Cu,Nc)!==0&&(Fn(He,v,_e),Cu=Nc+Cu,ya=!0),ba(He,Cu)){Fn(He,v,_e);continue}if(!H.forceKeepAttr){if(!H.keepAttr){Fn(He,v,_e);continue}if(!Tl&&Ru(B2,Cu)){Fn(He,v,_e);continue}if(pt&&(Cu=da(Cu)),!xi(me,iu,Cu)){Fn(He,v,_e);continue}Cu=vi(me,iu,$u,Cu),Cu!==at&&Mc(v,He,$u,Cu)&&ya&&N2(a.removed)}}Bu($.afterSanitizeAttributes,v,null),Yn(v,C)},Vn=function(v){let C=null;const q=Yt(v);for(Bu($.beforeSanitizeShadowDOM,v,null);C=q.nextNode();)if(Bu($.uponSanitizeShadowNode,C,null),zl(C,v),Vt(C,v),Te(C.content)&&Vn(C.content),W(C)===mu.element){const H=ie(C);Te(H)&&(ga(H),Vn(H))}pt&&gi(v),Bu($.afterSanitizeShadowDOM,v,null)},ga=function(v){const C=[{node:v,shadow:null}];for(;C.length>0;){const q=C.pop();if(q.shadow){Vn(q.shadow);continue}const H=q.node,se=W(H)===mu.element,me=Z(H);if(me)for(let _e=me.length-1;_e>=0;--_e)C.push({node:me[_e],shadow:null});if(se){const _e=Q?Q(H):null;if(typeof _e=="string"&&uu(_e)==="template"){const He=H.content;Te(He)&&C.push({node:He,shadow:null})}}if(se){const _e=ie(H);Te(_e)&&C.push({node:null,shadow:_e},{node:_e,shadow:null})}}};return a.sanitize=function(G){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,q=null,H=null,se=null;if(Rn=!G,Rn&&(G="<!-->"),typeof G!="string"&&!Gn(G)&&(G=f8(G),typeof G!="string"))throw Cn("dirty is not a string, aborting");if(!a.isSupported)return G;Cl?(Ne=la,M=Dl):Ol(v),($.uponSanitizeElement.length>0||$.uponSanitizeAttribute.length>0)&&(Ne=ht(Ne)),$.uponSanitizeAttribute.length>0&&(M=ht(M)),a.removed=[];const me=ca&&typeof G!="string"&&Gn(G);let _e=[];const He=bt;if(me){wc(G);const iu=ce(G);if(typeof iu=="string"){const at=uu(iu);if(!Ne[at]||ru[at])throw mi(G),Cn("root node is forbidden and cannot be sanitized in-place")}if(ma(G))throw mi(G),Cn("root node is clobbered and cannot be sanitized in-place");_e=Hn(G),bt=sf()}else if(Gn(G))C=Gt("<!---->"),q=C.ownerDocument.importNode(G,!0),q.nodeType===mu.element&&q.nodeName==="BODY"||q.nodeName==="HTML"?C=q:C.appendChild(q),ga(C);else{if(!Bt&&!pt&&!kt&&G.indexOf("<")===-1)return te&&aa?oe(G):G;if(C=Gt(G),!C)return Bt?null:aa?ge:""}C&&Nl&&qu(C.firstChild);const $u=me?G:C;try{me&&ga(G);const iu=Yt($u);for(;H=iu.nextNode();)zl(H,$u),Vt(H,$u),Te(H.content)&&Vn(H.content);me&&qn(G,_e)}catch(iu){throw me&&(mi(G),fn(G,_e)),iu}finally{bt=He}if(me){if(fn(G,_e))throw Cn("a node selected for removal could not be safely returned; refusing to sanitize in place");return pt&&ha(G),G}if(Bt){if(pt&&ha(C),kn)for(se=K.call(C.ownerDocument);C.firstChild;)se.appendChild(C.firstChild);else se=C;return(M.shadowroot||M.shadowrootmode)&&(se=V.call(c,se,!0)),se}let bu=kt?C.outerHTML:C.innerHTML;return kt&&Ne["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&Ru(S8,C.ownerDocument.doctype.name)&&(bu="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
36
+ `+bu),pt&&(bu=da(bu)),te&&aa?oe(bu):bu},a.setConfig=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ol(G),Cl=!0,la=Ne,Dl=M},a.clearConfig=function(){rn=null,Cl=!1,la=null,Dl=null,te=Je,ge=""},a.isValidAttribute=function(G,v,C){rn||Ol({});const q=uu(G),H=uu(v);return typeof C=="string"&&(ba(v,C)||!Tl&&Ru(B2,C))?!1:xi(q,H,C)},a.addHook=function(G,v){typeof v=="function"&&tt($,G)&&dc($[G],v)},a.removeHook=function(G,v){if(tt($,G)){if(v!==void 0){const C=l8($[G],v);return C===-1?void 0:i8($[G],C,1)[0]}return N2($[G])}},a.removeHooks=function(G){tt($,G)&&($[G]=[])},a.removeAllHooks=function(){$=H2()},a}var k8=Lp();let yf;function O8(){if(yf)return yf;const t=k8,s=typeof t=="function"?t(globalThis.window):t;return s.addHook("afterSanitizeAttributes",c=>{const o=c;o.tagName==="A"&&typeof o.setAttribute=="function"&&(o.setAttribute("rel","noopener noreferrer nofollow"),o.setAttribute("target","_blank"))}),yf=s,s}const j8=new Dt({html:!1,linkify:!0,breaks:!1,typographer:!1}),z8=4e6,R8=2e4,ua=new Map;let xf=0;function w8(t){if(!t)return"";const a=t.length<=R8;if(a){const c=ua.get(t);if(c!==void 0)return ua.delete(t),ua.set(t,c),c}const s=M8(t);if(a)for(ua.set(t,s),xf+=t.length+s.length;xf>z8;){const c=ua.keys().next();if(c.done===!0)break;const o=ua.get(c.value)??"";xf-=c.value.length+o.length,ua.delete(c.value)}return s}function M8(t){return O8().sanitize(j8.render(t),{ALLOWED_TAGS:["p","br","hr","strong","em","del","s","blockquote","code","pre","ul","ol","li","h1","h2","h3","h4","h5","h6","a","img","table","thead","tbody","tr","th","td","span","div","sup","sub"],ALLOWED_ATTR:["href","src","alt","title","class","target","rel","colspan","rowspan"],ALLOWED_URI_REGEXP:/^(?:https?|mailto):/i})}function q2({text:t,streaming:a=!1}){const s=B.useMemo(()=>w8(t),[t]);return d.jsx("div",{className:"prose",dangerouslySetInnerHTML:{__html:s},"data-streaming":a||void 0})}const L8=B.memo(function({code:a,lang:s}){const[c,o]=B.useState(void 0),[f,m]=B.useState("pending");B.useEffect(()=>{if(s.length===0){m("unavailable");return}let b=!0;return cy(a,s).then(y=>{b&&(o(y),m(y?"highlighted":"unavailable"))}),()=>{b=!1}},[a,s]);const p=c&&c.lang.toLowerCase()===s.toLowerCase();return d.jsxs("div",{className:"code-block",children:[s.length>0&&d.jsxs("div",{className:"code-lang",children:[s,f==="unavailable"&&d.jsx("span",{className:"code-lang-note",children:" · not highlighted"})]}),p?d.jsx("div",{className:"code-body","data-lang":s,children:sy(c)}):d.jsx("pre",{className:"code-plain",children:d.jsx("code",{children:a})})]})}),U8=B.memo(function({text:a,streaming:s=!1}){const c=B.useMemo(()=>fy(a),[a]),o=B.useMemo(()=>dy(c),[c]);return c.some(m=>m.kind==="code")?d.jsx("div",{className:"prose","data-streaming":s||void 0,"data-has-code":o.length>0||void 0,children:c.map((m,p)=>m.kind==="prose"?m.text.trim().length===0?null:d.jsx(q2,{text:m.text},`p${p}`):d.jsx(L8,{code:m.code,lang:m.lang},`c${p}`))}):d.jsx(q2,{text:a,streaming:s})});function F8(t){const a=t.ended;if(!a)return"Compacting context…";if(a.aborted)return"Context compaction stopped.";if(a.errorMessage!==void 0)return`Context compaction failed: ${a.errorMessage}`;if(a.willRetry)return"Context compaction failed; retrying…";const s=t.tokensBefore,c=t.tokensAfter;return typeof s=="number"&&typeof c=="number"?`Context compacted: ${ms(s)} → ${ms(c)} tokens.`:"Context compacted."}function B8(t){switch(t){case"overflow":return"the context was full";case"threshold":return"the context crossed the threshold";case"manual":return"you asked for it";default:return}}function H8({notice:t}){const a=y6(t);if(t.kind==="compaction"){const c=B8(t.reason);return d.jsxs("div",{className:"run-notice","data-kind":"compaction","data-open":a||void 0,children:[d.jsx("span",{className:"notice-glyph","aria-hidden":"true",children:a?"◐":t.ended?.aborted||t.ended?.errorMessage?"✕":"✓"}),d.jsx("span",{className:"notice-text",children:F8(t)}),a&&c!==void 0&&d.jsxs("span",{className:"notice-note",children:["(",c,")"]})]})}if(t.kind==="retry"){const c=t.ended,o=`Retrying (${t.attempt}/${t.maxAttempts})`,f=t.delayMs>0?` in ${Math.round(t.delayMs/1e3)}s`:"";return c?d.jsxs("div",{className:"run-notice","data-kind":"retry",children:[d.jsx("span",{className:"notice-glyph","aria-hidden":"true",children:c.success?"✓":"✕"}),d.jsx("span",{className:"notice-text",children:c.success?`Recovered after ${t.attempt} ${t.attempt===1?"retry":"retries"}.`:`Gave up after ${t.attempt} ${t.attempt===1?"attempt":"attempts"}: ${c.finalError??t.errorMessage}`})]}):d.jsxs("div",{className:"run-notice","data-kind":"retry","data-open":!0,children:[d.jsx("span",{className:"notice-glyph","aria-hidden":"true",children:"↻"}),d.jsxs("span",{className:"notice-text",children:[o,f," after ",t.errorMessage||"a provider error"]})]})}const s=t.source==="branchSummary"?"summary of the earlier branch":"context summary";return d.jsxs("div",{className:"run-notice","data-kind":"summarization","data-open":a||void 0,children:[d.jsx("span",{className:"notice-glyph","aria-hidden":"true",children:t.finished?"✓":"↻"}),d.jsx("span",{className:"notice-text",children:t.finished?`Recovered while building the ${s}.`:`Retrying the ${s} (${t.attempt}/${t.maxAttempts})${t.errorMessage!==void 0?`: ${t.errorMessage}`:""}`})]})}function q8({notices:t}){return t===void 0||t.length===0?null:d.jsx("div",{className:"run-notices",children:t.map((a,s)=>d.jsx(H8,{notice:a},`${a.kind}-${s}`))})}const cs=12;function G8(t){try{return JSON.stringify(t,null,2)??String(t)}catch{return"(arguments could not be shown)"}}function Y8({tool:t,header:a}){const s=t.result.length>0?t.result.split(`
37
+ `):[],c=s.slice(0,cs).join(`
38
+ `),o=s.length>cs;return d.jsxs("div",{className:"tool-detail","data-tool":t.toolName,children:[a,t.args!==void 0&&d.jsx("pre",{className:"tool-detail-args mono",children:G8(t.args)}),d.jsx("pre",{className:`tool-detail-output mono${t.isError?" error":""}`,children:t.result.length>0?c:t.running?"waiting for output…":t.unfinished?"No result was recorded for this call. The run was interrupted or aborted before it finished.":"This tool returned no output."}),o&&d.jsxs("details",{className:"tool-detail-rest",children:[d.jsxs("summary",{children:[s.length-cs," more lines"]}),d.jsx("pre",{className:`tool-detail-output mono${t.isError?" error":""}`,children:s.slice(cs).join(`
39
+ `)})]})]})}const Up=80;function V8(t,a=Up){const{scrollHeight:s,scrollTop:c,clientHeight:o}=t;return!Number.isFinite(s)||!Number.isFinite(c)||!Number.isFinite(o)||o<=0?!0:s-c-o<a}function Z8({initialScroll:t,onScrollMemory:a,transcript:s,busy:c,sessionLabel:o,followToken:f=0,autoFollow:m=!0,expectedCount:p=0,loading:b=!1,onOpenTool:y,showMarkers:_=!0,historyError:x}){const k=B.useRef(null),R=B.useRef(null),S=B.useRef(!0),[L,Z]=B.useState(!0),I=B.useRef(a);I.current=a;const ie=B.useRef(void 0);B.useEffect(()=>{const te=R.current;if(!te)return;const ge=()=>{const Je={scrollTop:te.scrollTop,scrollHeight:te.scrollHeight,clientHeight:te.clientHeight},nu=ie.current;$0(Je)&&(ie.current=Je);const xe=nu!==void 0&&$0(nu)?Kg(nu,Je,Up):V8(te);Y.current||(S.current=xe,Z(xe),$0(Je)&&I.current?.({scrollTop:Je.scrollTop,pinned:xe}))};return te.addEventListener("scroll",ge,{passive:!0}),ge(),Y.current=!1,()=>te.removeEventListener("scroll",ge)},[]);const ne=B.useRef(void 0),Y=B.useRef(!0);B.useLayoutEffect(()=>{const te=Xg(t);if(te.kind==="follow-end"){S.current=!0,Z(!0);return}S.current=te.pinned,Z(te.pinned),ne.current={scrollTop:te.scrollTop,pinned:te.pinned}},[]),B.useLayoutEffect(()=>{const te=ne.current;if(!te)return;const ge=R.current;ge&&Ig(ge.scrollHeight,ge.clientHeight)&&(ge.scrollTop=te.scrollTop,ne.current=void 0)});const Q=B.useRef(f);B.useEffect(()=>{if(Q.current===f)return;Q.current=f,S.current=!0,Z(!0);const te=R.current;te&&(te.scrollTop=te.scrollHeight)},[f]),B.useEffect(()=>{$g(m,S.current)&&k.current?.scrollIntoView({block:"end"})});const ae=B.useCallback(()=>{S.current=!0,Z(!0);const te=k.current;if(!te)return;typeof te.scrollIntoView=="function"&&te.scrollIntoView({block:"end",behavior:"smooth"});const ge=R.current;ge&&(ge.scrollTop=ge.scrollHeight)},[]),W=s.messages.length===0&&s.tools.length===0,ce=W&&p>0&&x===void 0,$e=W&&x!==void 0,Be=B.useMemo(()=>x6(s),[s]);return d.jsxs("div",{className:"transcript-wrap",children:[d.jsxs("div",{className:"transcript",ref:R,tabIndex:0,role:"region","aria-label":`Transcript for ${o}`,"aria-busy":c||void 0,children:[$e?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsx("h2",{children:"Could not load this session's history"}),d.jsx("p",{children:x}),d.jsxs("p",{className:"dim",children:[`Pi reports ${p} message${p===1?"":"s"} in this session, `,"so they exist — the request for them failed. Reconnect, or reload the page, to try again."]})]}):ce?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsx("h2",{children:"Loading this session's history…"}),d.jsxs("p",{children:[`Pi reports ${p} message${p===1?"":"s"} in this session. `,"They are being fetched; nothing is missing."]})]}):W&&!b?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsx("h2",{children:"No messages yet."}),d.jsxs("p",{children:["This session works in its own scratch workspace. Anything it writes stays there. To work in a project, use ",d.jsx("strong",{children:"Open in a directory"}),"."]})]}):d.jsx(d.Fragment,{children:Be.map((te,ge)=>te.kind==="tools"?_?d.jsx(X8,{tools:te.tools},`tools-${ge}`):null:d.jsx(I8,{message:te.message},te.message.id))}),d.jsx(q8,{notices:s.notices}),d.jsx("div",{ref:k})]}),!L&&d.jsxs("button",{type:"button",className:"jump-latest",onClick:ae,title:"Scroll to the newest message and follow along again",children:[d.jsx("span",{"aria-hidden":"true",children:"↓"})," Jump to latest"]})]})}function X8({tools:t}){if(t.length===0)return null;const a=b6(t),s=t[t.length-1],c=t.some(o=>o.running);return d.jsxs("details",{className:`tool-marker${a.failed>0?" has-error":""}${c?" running":""}`,children:[d.jsxs("summary",{className:"tool-marker-summary",title:"Show this call's arguments and output here",children:[d.jsx("span",{className:"m-glyph","aria-hidden":"true",children:c?"●":a.failed>0?"✕":"⌁"}),d.jsxs("span",{className:"m-count",children:[a.count," tool",a.count===1?"":"s"]}),d.jsx("span",{className:"m-names mono",children:a.names.join(" · ")}),a.failed>0&&d.jsxs("span",{className:"m-failed",children:[a.failed," failed"]}),c&&d.jsx("span",{className:"m-running",children:"running"}),d.jsx("span",{className:"spacer"}),d.jsx("span",{className:"tool-detail-meta",children:ai(s.result.length)}),d.jsx("span",{className:"m-open","aria-hidden":"true",children:"⌄"})]}),t.map((o,f)=>d.jsx(Y8,{tool:o,header:f===0?void 0:d.jsxs("div",{className:"tool-detail-head",children:[d.jsx("span",{className:"mono",children:o.toolName}),o.isError&&d.jsx("span",{className:"err",children:"failed"}),o.running&&d.jsx("span",{className:"m-running",children:"running"}),d.jsx("span",{className:"spacer"}),d.jsx("span",{className:"tool-detail-meta",children:ai(o.result.length)})]})},o.toolCallId))]})}const I8=B.memo(function({message:a}){const s=a.role==="user"?"You":a.role==="assistant"?"Assistant":a.role,c=h6(a),o=a.blocks.filter(f=>f.kind==="thinking");return I2(a)?d.jsxs("article",{className:`turn measure turn-${a.role}`,children:[d.jsxs("div",{className:"role",children:[d.jsx("span",{children:s}),a.streaming&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"live-dot","aria-hidden":"true"}),d.jsx("span",{children:"responding…"})]})]}),o.map((f,m)=>{const p=f.kind==="thinking"?g6(f.text):"";return d.jsxs("details",{className:"quarantine",style:{marginBottom:8},children:[d.jsxs("summary",{className:"quarantine-head",children:[d.jsx("span",{className:"label",children:"Thinking"}),f.kind==="thinking"&&!f.complete&&d.jsx("span",{className:"quarantine-state",children:"thinking…"}),p.length>0&&d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"spacer"}),d.jsx("span",{className:"quarantine-gist",children:p})]})]}),d.jsx("pre",{className:"quarantine-body",children:f.kind==="thinking"?f.text:""})]},m)}),c.length>0&&d.jsx(U8,{text:c,streaming:a.streaming})]}):null});function Q8({tools:t,selectedId:a,onSelect:s,collapsed:c,onToggleCollapsed:o,showMarkers:f,onToggleMarkers:m}){const p=B.useRef(null),b=B.useRef(!0),y=t.filter(L=>L.running),_=t.length;if(B.useEffect(()=>{const L=p.current;if(!L)return;const Z=()=>{const I=L.scrollHeight-L.scrollTop-L.clientHeight;b.current=I<40};return L.addEventListener("scroll",Z,{passive:!0}),()=>L.removeEventListener("scroll",Z)},[]),B.useEffect(()=>{if(b.current&&!c){const L=p.current;L&&(L.scrollTop=L.scrollHeight)}},[_,y.length,c]),B.useEffect(()=>{if(c)return;const L=Z=>{if(Z.key!=="ArrowUp"&&Z.key!=="ArrowDown"||!p.current?.contains(document.activeElement))return;Z.preventDefault();const I=t.findIndex(ne=>ne.toolCallId===a),ie=I===-1?t.length-1:Math.max(0,Math.min(t.length-1,I+(Z.key==="ArrowDown"?1:-1)));s(t[ie]?.toolCallId)};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[t,a,s,c]),_===0)return null;const x=t.find(L=>L.toolCallId===a),k=p6(t,5),R=new Set(k.map(L=>L.toolCallId)),S=c?[]:t;return d.jsxs("section",{className:"trace","aria-label":"Tool trace",children:[d.jsxs("div",{className:"trace-head",children:[d.jsxs("button",{type:"button",className:"trace-toggle",onClick:o,"aria-expanded":!c,children:[c?"▸":"▾"," Tool trace"]}),d.jsx("span",{className:"trace-count mono",children:`${_} call${_===1?"":"s"}`}),y.length>0&&d.jsxs("span",{className:"trace-running",children:[d.jsx("span",{className:"live-dot","aria-hidden":"true"}),`${y.map(L=>L.toolName).join(", ")} running`]}),c&&k.length>0&&d.jsx("span",{className:"trace-preview mono",title:k.map(L=>L.toolName).join(", "),children:`latest: ${k.slice(-3).map(L=>L.toolName).join(" · ")}`}),d.jsx("button",{type:"button",className:"trace-toggle toggle-chip",style:{marginLeft:c?"auto":void 0},onClick:m,"aria-pressed":f,children:f?"markers on":"markers off"}),!c&&d.jsx("span",{className:"trace-hint",children:"latest 5 shown · the rest below for debugging · ↑↓ to traverse"})]}),!c&&d.jsx("div",{className:"trace-list",ref:p,tabIndex:0,"aria-label":"Tool calls, newest last",children:S.map(L=>d.jsxs("button",{type:"button",className:["trace-row",L.running?"running":"",L.isError?"failed":"",L.toolCallId===a?"selected":"",L.unfinished?"unfinished":"",R.has(L.toolCallId)?"recent":""].filter(Boolean).join(" "),onClick:()=>s(L.toolCallId===a?void 0:L.toolCallId),"aria-current":L.toolCallId===a?"true":void 0,children:[d.jsx("span",{className:"t-status","aria-hidden":"true",children:L.running?"●":L.isError?"✕":L.unfinished?"?":"·"}),d.jsx("span",{className:"t-name mono",children:L.toolName||"tool"}),d.jsx("span",{className:"t-summary mono",title:e2(L),children:e2(L)}),d.jsx("span",{className:"t-time mono",children:L.running?"running":L.unfinished?"no result":L.durationMs!==void 0?K8(L.durationMs):"done"})]},L.toolCallId))}),!c&&x&&d.jsxs("div",{className:"trace-detail is-quarantined",children:[d.jsxs("div",{className:"trace-detail-head",children:[d.jsx("span",{className:"label",children:"Tool output"}),d.jsx("span",{className:"mono",children:x.toolName}),x.isError&&d.jsx("span",{className:"err",children:"failed"}),d.jsx("span",{className:"spacer"}),d.jsx("button",{type:"button",className:"copy",onClick:()=>s(void 0),children:"Close"})]}),x.args!==void 0&&d.jsx("pre",{className:"trace-args mono",children:$8(x.args)}),x.result.length>0?d.jsx("pre",{className:`trace-output mono${x.isError?" error":""}`,children:x.result}):d.jsx("pre",{className:"trace-output mono",children:x.running?"waiting for output…":x.unfinished?"No result was recorded for this call. The run was interrupted or aborted before it finished.":"This tool returned no output."})]})]})}function K8(t){return t<1e3?`${Math.round(t)}ms`:t<6e4?`${(t/1e3).toFixed(1)}s`:`${Math.floor(t/6e4)}m${Math.round(t%6e4/1e3)}s`}function $8(t){try{const a=JSON.stringify(t,null,2);return a===void 0?String(t):a}catch{return String(t)}}function J8({session:t,state:a,unavailableReason:s,onSend:c,onClearQueueAndStop:o,onRestored:f,restored:m,draft:p,onDraftChange:b}){const y=B.useRef(null),_=t?.state==="streaming",x=s!==void 0,[k,R]=B.useState("steer"),S=B6(a,t);B.useEffect(()=>{if(m.length===0)return;const Y=m.filter(ae=>ae.trim().length>0).join(`
40
+
41
+ `),Q=p.trim();Y.length>0&&(b(Q.length>0?`${Q}
42
+
43
+ ${Y}`:Y),y.current?.focus()),f()},[m]),B.useEffect(()=>{const Y=Q=>{Q.key==="Escape"&&_&&(Q.preventDefault(),o(),Z(!0))};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[_,o]);const[L,Z]=B.useState(!1);B.useEffect(()=>{if(L&&!_){const Y=setTimeout(()=>Z(!1),6e3);return()=>clearTimeout(Y)}},[L,_]);const I=()=>{const Y=p.trim();Y.length===0||x||(c(Y,_?k:"steer"),b(""))},ie=Y=>{if(Y.key==="Enter"&&!Y.shiftKey){if(Y.preventDefault(),_&&Y.altKey){R("followUp");const Q=p.trim();Q.length>0&&!x&&(c(Q,"followUp"),b(""));return}I()}},ne=_?k==="steer"?"Send steer":"Queue follow-up":"Send";return d.jsxs("div",{className:"composer",children:[_&&d.jsxs("div",{className:"mode-strip",children:[d.jsxs("div",{className:"mode-choice",role:"radiogroup","aria-label":"What this message does",children:[d.jsx("button",{type:"button",role:"radio","aria-checked":k==="steer",className:k==="steer"?"mode-option mode-option-on":"mode-option",onClick:()=>R("steer"),children:"Steer"}),d.jsx("button",{type:"button",role:"radio","aria-checked":k==="followUp",className:k==="followUp"?"mode-option mode-option-on":"mode-option",onClick:()=>R("followUp"),children:"Follow-up"})]}),d.jsx("span",{className:"mode-consequence",children:k==="steer"?"Delivered after the current turn's tools finish":"Starts after this run finishes"})]}),_&&S.total>0&&d.jsxs("div",{className:"queue-strip",role:"status",children:[d.jsxs("span",{className:"queue-head",children:[S.total," queued"]}),S.textsKnown?d.jsxs("ul",{className:"queue-rows",children:[S.steering.map((Y,Q)=>d.jsx("li",{children:Y},`s${Q}`)),S.followUp.map((Y,Q)=>d.jsx("li",{children:Y},`f${Q}`))]}):d.jsxs("span",{className:"queue-unknown",children:[S.total===1?"1 message":"Messages"," queued before this page loaded"]})]}),x&&s&&d.jsx("div",{className:"hint",role:"note",children:s}),d.jsxs("div",{className:"composer-row",children:[d.jsx("textarea",{ref:y,value:p,onChange:Y=>b(Y.target.value),onKeyDown:ie,placeholder:x?s??"Unavailable":"Send a prompt…",disabled:x,"aria-label":"Prompt",rows:3}),d.jsx("button",{type:"button",className:"btn-send",onClick:I,disabled:x||p.trim().length===0,children:x?"Send":ne})]}),d.jsx("div",{className:"hint",children:_?d.jsxs(d.Fragment,{children:[d.jsx("kbd",{children:"Enter"})," to ",k==="steer"?"steer":"queue a follow-up"," ·"," ",d.jsx("kbd",{children:"Alt"}),"+",d.jsx("kbd",{children:"Enter"})," for ",k==="steer"?"a follow-up":"steer"," ·"," ",d.jsx("kbd",{children:"Esc"})," stops the run and returns the queue to this box"]}):d.jsxs(d.Fragment,{children:[d.jsx("kbd",{children:"Enter"})," to send · ",d.jsx("kbd",{children:"Shift"}),"+",d.jsx("kbd",{children:"Enter"})," for a new line"]})}),L&&d.jsx("div",{className:"hint",role:"status",children:"Stopped the run."})]})}function P8({dialogs:t,onAnswer:a}){const s=new Set(Y2),c=t.filter(f=>!s.has(f.method));if(c.length===0)return null;const o=c[0];return d.jsxs("div",{className:"dialog-dock",children:[d.jsxs("div",{className:"dialog-head",children:[d.jsx("span",{children:"Needs your answer"}),d.jsx("span",{style:{marginLeft:"auto",fontFamily:"var(--mono)"},children:o.method})]}),d.jsx(W8,{dialog:o,onAnswer:a},o.id)]})}function W8({dialog:t,onAnswer:a}){const[s,c]=B.useState(t.prefill??""),o=B.useRef(null),f=B.useRef(null);B.useEffect(()=>{f.current?.focus()},[]),B.useEffect(()=>{const p=y=>{y.key==="Escape"&&(y.stopPropagation(),y.preventDefault(),a(t.id,{cancelled:!0}))},b=o.current;return b?.addEventListener("keydown",p),()=>b?.removeEventListener("keydown",p)},[t.id,a]);const m=t.message??t.title??"The agent is asking for input.";return d.jsxs("div",{className:"dialog-body",ref:o,role:"dialog","aria-label":m,children:[t.title&&t.message&&d.jsx("p",{className:"title",children:t.title}),d.jsx("p",{className:"question",children:m}),t.method==="confirm"&&d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"button",className:"btn",onClick:()=>a(t.id,{confirmed:!0}),children:"Allow once"}),d.jsx("button",{type:"button",className:"btn",onClick:()=>a(t.id,{confirmed:!1}),children:"Deny"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:()=>a(t.id,{cancelled:!0}),children:"Cancel request"})]}),t.method==="select"&&d.jsxs("div",{className:"dialog-options",children:[(t.options??[]).map(p=>d.jsx("button",{type:"button",onClick:()=>a(t.id,{value:p}),children:p},p)),d.jsx("button",{type:"button",className:"btn btn-ghost",style:{marginTop:6},onClick:()=>a(t.id,{cancelled:!0}),children:"Cancel request"})]}),t.method==="input"&&d.jsxs(d.Fragment,{children:[d.jsx("input",{ref:f,type:"text",value:s,placeholder:t.placeholder??"Type your answer","aria-label":m,onChange:p=>c(p.target.value),onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),a(t.id,{value:s}))}}),d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"button",className:"btn",onClick:()=>a(t.id,{value:s}),children:"Submit"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:()=>a(t.id,{cancelled:!0}),children:"Cancel request"})]})]}),t.method==="editor"&&d.jsxs(d.Fragment,{children:[d.jsx("textarea",{ref:f,value:s,placeholder:t.placeholder??"Edit the content","aria-label":m,onChange:p=>c(p.target.value)}),d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"button",className:"btn",onClick:()=>a(t.id,{value:s}),children:"Submit"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:()=>a(t.id,{cancelled:!0}),children:"Cancel request"})]})]}),!Mg(t.method)&&d.jsx("div",{className:"dialog-actions",children:d.jsx("button",{type:"button",className:"btn",onClick:()=>a(t.id,{cancelled:!0}),children:"Cancel request"})})]})}function xl({text:t,label:a}){const[s,c]=B.useState(!1);return d.jsx("button",{type:"button",className:"copy",title:`Copy ${a}`,onClick:async()=>{const o=await I6(t);c(o),setTimeout(()=>c(!1),1500)},children:s?"Copied":`Copy ${a}`})}function ev({session:t,home:a,onStop:s,onRename:c}){return t?d.jsxs("div",{className:"inspector",children:[d.jsxs("section",{children:[d.jsx("h3",{children:"Isolation"}),d.jsxs("dl",{className:"kv",children:[d.jsx("dt",{children:"Mode"}),d.jsx("dd",{children:t.mode==="sandboxed"?d.jsx("span",{className:"chip chip-idle",children:"Safehouse"}):d.jsx("span",{className:"chip chip-no-isolation",children:"NO ISOLATION"})}),d.jsx("dt",{children:"Policy"}),d.jsx("dd",{children:t.isolation})]}),t.mode==="direct"&&d.jsx("p",{style:{color:"var(--warn-text)",fontSize:11,marginTop:8},children:"This session runs pi unsandboxed at your user account. It can read and write anything you can."})]}),d.jsxs("section",{children:[d.jsx("h3",{children:"Paths"}),d.jsxs("dl",{className:"kv",children:[d.jsx("dt",{children:"Workspace"}),d.jsxs("dd",{children:[d.jsx("span",{children:ii(t.cwd,40,a)}),d.jsx(xl,{text:t.cwd,label:"path"})]}),t.sessionFile&&d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:"Session file"}),d.jsxs("dd",{children:[d.jsx("span",{children:ii(t.sessionFile,40,a)}),d.jsx(xl,{text:t.sessionFile,label:"path"})]})]}),d.jsx("dt",{children:"Session id"}),d.jsx("dd",{children:t.sessionId?d.jsxs(d.Fragment,{children:[d.jsx("span",{children:t.sessionId}),d.jsx(xl,{text:t.sessionId,label:"session id"})]}):d.jsx("span",{title:"Pi has not reported its session id yet",children:"—"})}),d.jsx("dt",{children:"Handle"}),d.jsxs("dd",{children:[d.jsx("span",{children:t.id}),d.jsx(xl,{text:t.id,label:"handle"})]})]})]}),d.jsxs("section",{children:[d.jsx("h3",{children:"Command"}),d.jsx("pre",{className:"cmd",children:t.command}),d.jsx("div",{style:{marginTop:6},children:d.jsx(xl,{text:t.command,label:"command"})})]}),d.jsxs("section",{children:[d.jsx("h3",{children:"Usage"}),d.jsxs("dl",{className:"kv",children:[d.jsx("dt",{children:"Messages"}),d.jsx("dd",{children:t.messageCount}),d.jsx("dt",{children:"Tokens"}),d.jsx("dd",{children:ms(t.tokensTotal)}),d.jsx("dt",{children:"Cost"}),d.jsx("dd",{children:Nf(t.cost)}),d.jsx("dt",{children:"Context"}),d.jsx("dd",{children:t.contextPercent===null?"—":`${Math.round(t.contextPercent)}%`}),d.jsx("dt",{children:"Model"}),d.jsx("dd",{children:t.model??"—"}),d.jsx("dt",{children:"Thinking"}),d.jsx("dd",{children:t.thinkingLevel??"—"})]})]}),t.warnings.length>0&&d.jsxs("section",{children:[d.jsx("h3",{children:"Warnings"}),t.warnings.map((o,f)=>d.jsx("p",{style:{color:"var(--warn-text)",fontSize:11,margin:"0 0 6px"},children:o},f))]}),t.error&&d.jsxs("section",{children:[d.jsx("h3",{children:"Error"}),d.jsx("p",{style:{color:"var(--danger-text)",fontSize:11,whiteSpace:"pre-wrap"},children:t.error})]}),d.jsxs("section",{children:[d.jsx("h3",{children:"Actions"}),d.jsxs("div",{className:"actions",children:[d.jsx(uv,{current:t.name,onRename:c}),d.jsx("button",{type:"button",className:"btn",onClick:s,children:"Stop session"})]})]})]}):d.jsx("div",{className:"inspector",children:d.jsxs("section",{children:[d.jsx("h3",{children:"Inspector"}),d.jsx("p",{style:{color:"var(--dim)",fontSize:12},children:"Select a session to see its isolation, paths, and usage."})]})})}function uv({current:t,onRename:a}){return d.jsxs("details",{children:[d.jsx("summary",{className:"btn",style:{cursor:"pointer",fontSize:12},children:"Rename…"}),d.jsxs("form",{style:{marginTop:6,display:"flex",gap:6},onSubmit:s=>{s.preventDefault();const c=new FormData(s.currentTarget).get("name");typeof c=="string"&&c.trim().length>0&&a(c.trim())},children:[d.jsx("input",{name:"name",defaultValue:t,"aria-label":"Session name",style:{flex:1,background:"var(--bg)",border:"1px solid var(--line)",borderRadius:6,padding:"4px 8px",color:"var(--text)",font:"12px var(--sans)"}}),d.jsx("button",{type:"submit",className:"btn",children:"Save name"})]})]})}function Fp(){return{commit:"c45183d",builtAt:"2026-10-31T16:13:33.673Z"}}function tv(t=Fp()){const a=t.builtAt==="unknown"?"unknown build time":t.builtAt.slice(0,16).replace("T"," ");return`${t.commit} · ${a}`}const Bp=13,Hp=18,qp=15,Gp=50,Tf=100,Ff=72,Sc="fill",G2="pi-central.reading";function gc(){return{sizePx:qp,measure:Ff}}function Yp(t){return Number.isFinite(t)?Math.min(Hp,Math.max(Bp,Math.round(t))):qp}function Vp(t){if(t===Sc)return Sc;const a=Number(t);return Number.isFinite(a)?Math.min(Tf,Math.max(Gp,Math.round(a))):Ff}function nv(t){const a=gc();if(t===null||t==="")return a;let s;try{s=JSON.parse(t)}catch{return a}if(typeof s!="object"||s===null)return a;const c=s;return{sizePx:Yp(typeof c.sizePx=="number"?c.sizePx:a.sizePx),measure:Vp(typeof c.measure=="number"||typeof c.measure=="string"?c.measure:a.measure)}}function lv(t){return JSON.stringify(t)}function av(t){return{"--reading-size":`${t.sizePx}px`,"--reading-measure":t.measure===Sc?"none":`${t.measure}ch`}}function ei({label:t,value:a,copyable:s=!1,monospace:c=!1,note:o}){const f=a===void 0;return d.jsxs(d.Fragment,{children:[d.jsx("dt",{children:t}),d.jsxs("dd",{children:[d.jsx("span",{className:f?"settings-absent":c?"settings-mono":void 0,children:f?"not reported":a}),s&&!f&&d.jsx(xl,{text:a,label:t.toLowerCase()}),o!==void 0&&d.jsx("span",{className:"settings-note",children:o})]})]})}const iv=[{id:"display",label:"Display"},{id:"about",label:"About"}];function cv({install:t,ready:a,onClose:s,initialSection:c="display"}){const o=B.useRef(null),[f,m]=B.useState(c);B.useEffect(()=>{o.current?.focus();const y=_=>{_.key==="Escape"&&s()};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[s]);const p=t?.protocol,b=p!==void 0&&p!==ti;return d.jsx("div",{className:"modal-backdrop",onClick:s,role:"presentation",children:d.jsxs("div",{className:"modal settings",role:"dialog","aria-modal":"true","aria-labelledby":"settings-title",onClick:y=>y.stopPropagation(),children:[d.jsx("h3",{id:"settings-title",children:"This installation"}),t===void 0&&d.jsx("p",{className:"settings-absent-note",role:"status",children:a?d.jsxs(d.Fragment,{children:[d.jsx("strong",{children:"This orchestrator is older than this UI."})," It does not report the facts below, so nothing here can be shown. Restart it to pick up the current build — see"," ",d.jsx("code",{children:"docs/DOGFOODING.md"}),"."]}):d.jsx(d.Fragment,{children:"Waiting for the orchestrator to send these facts…"})}),d.jsxs("div",{className:"settings-panes",children:[d.jsx("nav",{className:"settings-nav","aria-label":"Settings sections",children:iv.map(({id:y,label:_})=>d.jsx("button",{type:"button",className:y===f?"settings-nav-item is-active":"settings-nav-item","aria-current":y===f?"page":void 0,onClick:()=>m(y),children:_},y))}),d.jsx("div",{className:"settings-content",children:f==="display"?d.jsx(rv,{}):d.jsxs(d.Fragment,{children:[d.jsxs("section",{children:[d.jsx("h4",{children:"This build"}),d.jsxs("dl",{className:"kv",children:[d.jsx(ei,{label:"Version",value:t?.version}),d.jsx(ei,{label:"UI build",value:tv(),note:Fp().commit==="dev"?"built outside a git checkout, so there is no commit to name":void 0}),d.jsx(ei,{label:"Protocol",value:p===void 0?void 0:`v${p}`,note:p===void 0?void 0:b?`MISMATCH — this UI speaks v${ti}. One half is out of date; see docs/DOGFOODING.md.`:`matches this UI (v${ti})`})]})]}),d.jsxs("section",{children:[d.jsx("h4",{children:"Where things live"}),d.jsxs("dl",{className:"kv",children:[d.jsx(ei,{label:"Sessions",value:t?.sessionsRoot,copyable:!0,monospace:!0}),d.jsx(ei,{label:"Workspaces",value:t?.workspaceRoot,copyable:!0,monospace:!0}),d.jsx(ei,{label:"Agent root",value:t?.agentRoot,copyable:!0,monospace:!0,note:t===void 0?void 0:t.agentRootManaged?"managed by Pi Central":"external — not created or modified by Pi Central"})]})]}),d.jsxs("section",{children:[d.jsx("h4",{children:"This copy"}),d.jsxs("p",{className:"settings-note settings-verify",children:["This build cannot check its own provenance; a compromised build would simply skip the check. To verify the package you installed, run"," ",d.jsx("code",{children:"npm audit signatures"})," in a terminal — before the first run if you have not started it yet. The startup banner also prints the directory this copy was loaded from, which is how to tell a global install from a checkout."]})]}),d.jsxs("section",{children:[d.jsx("h4",{children:"Updates"}),d.jsxs("p",{className:"settings-note settings-updates",children:["This build does not check for updates. When it does, checking will be ",d.jsx("strong",{children:"off unless you turn it on"}),", will send nothing but the package name, and will never install anything without asking."]})]})]})})]}),d.jsx("div",{className:"dialog-actions",children:d.jsx("button",{type:"button",className:"btn",ref:o,onClick:s,children:"Close"})})]})})}function rv(){const[t,a]=B.useState(()=>{try{return nv(localStorage.getItem(G2))}catch{return gc()}});B.useEffect(()=>{const c=document.documentElement;for(const[o,f]of Object.entries(av(t)))c.style.setProperty(o,f);try{localStorage.setItem(G2,lv(t))}catch{}},[t]);const s=t.measure===Sc;return d.jsxs("section",{children:[d.jsxs("div",{className:"reading-head",children:[d.jsx("h4",{children:"Reading"}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:()=>a(gc()),disabled:t.sizePx===gc().sizePx&&t.measure===gc().measure,title:"Back to what this build ships with",children:"Reset to defaults"})]}),d.jsx("p",{className:"settings-note",style:{marginTop:0},children:"Affects the transcript only. Raising the size widens the line too, because the measure is relative to the text."}),d.jsxs("label",{className:"reading-row",children:[d.jsx("span",{children:"Text size"}),d.jsx("input",{type:"range",min:Bp,max:Hp,step:1,value:t.sizePx,"aria-label":"Transcript text size in pixels",onChange:c=>a(o=>({...o,sizePx:Yp(Number(c.target.value))}))}),d.jsxs("span",{className:"mono reading-value",children:[t.sizePx,"px"]})]}),d.jsxs("label",{className:"reading-row",children:[d.jsx("span",{children:"Line length"}),d.jsx("input",{type:"range",min:Gp,max:Tf,step:2,value:s?Tf:t.measure,disabled:s,"aria-label":"Transcript line length in characters",onChange:c=>a(o=>({...o,measure:Vp(Number(c.target.value))}))}),d.jsx("span",{className:"mono reading-value",children:s?"fill":`${t.measure}ch`})]}),d.jsxs("label",{className:"reading-row",children:[d.jsx("span",{}),d.jsxs("span",{style:{display:"flex",gap:6,alignItems:"center",fontSize:12},children:[d.jsx("input",{type:"checkbox",checked:s,onChange:c=>a(o=>({...o,measure:c.target.checked?Sc:Ff}))}),"Use the full width"]}),d.jsx("span",{})]}),d.jsx("div",{className:"reading-sample","aria-hidden":"true",children:d.jsx("span",{children:"The quick brown fox jumps over the lazy dog."})})]})}function Bf({path:t,reason:a,code:s,message:c,depth:o=0}){return d.jsxs("p",{className:"filetree-note filetree-error",role:"note",style:{paddingLeft:`${o*12}px`},title:t===""?void 0:t,children:[d.jsx("strong",{children:sv(a)}),d.jsx("span",{className:"filetree-error-detail",children:c}),s!==void 0&&d.jsx("span",{className:"filetree-kind",children:s})]})}function sv(t){switch(t){case"escapes-cwd":return"Outside the working directory";case"absolute-path":return"Not a relative path";case"invalid-path":return"Not a usable path";case"too-large":return"Too large to read";case"binary":return"Not a text file";case"permission":return"Permission denied";case"not-found":return"Not found";case"not-a-directory":return"Not a directory";case"is-directory":return"That is a directory";default:return"Could not read"}}function ov(t){const a=atob(t),s=new Uint8Array(new ArrayBuffer(a.length));for(let c=0;c<a.length;c+=1)s[c]=a.charCodeAt(c);return s}function fv({path:t,type:a,base64:s,bytes:c}){const[o,f]=B.useState(void 0),[m,p]=B.useState(!1),b=B.useMemo(()=>new Blob([ov(s)],{type:a}),[s,a]);return B.useEffect(()=>{const y=URL.createObjectURL(b);return f(y),p(!1),()=>URL.revokeObjectURL(y)},[b]),o===void 0?null:m?d.jsxs("p",{className:"filetree-note filetree-error",role:"note",children:[d.jsxs("strong",{children:["Could not display ",t]}),d.jsxs("span",{className:"filetree-error-detail",children:["The browser could not decode this image. Its leading bytes are a valid ",a," header, so the file is most likely truncated or corrupt."]})]}):d.jsxs("div",{className:"imagepane",children:[d.jsx("img",{className:"imagepane-img",src:o,alt:t,onError:()=>p(!0)}),d.jsxs("p",{className:"imagepane-meta",children:[a," · ",ai(c)]})]})}function dv({path:t,state:a,wrapped:s,onToggleWrap:c,onClose:o}){const f=a.status==="loaded"&&a.content.kind==="text"?a.content.text:void 0,m=f===void 0?[]:f.split(`
44
+ `);return d.jsxs("div",{className:"filepane",children:[d.jsxs("div",{className:"filepane-head",children:[d.jsx("span",{className:"filepane-path",title:t,children:t}),a.status==="loaded"&&d.jsx("span",{className:"filepane-meta",children:a.content.kind==="text"?`${m.length} line${m.length===1?"":"s"} · ${ai(a.bytes)}`:ai(a.bytes)}),d.jsx(xl,{text:t,label:`path ${t}`}),a.status==="loaded"&&a.content.kind==="text"&&d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:c,"aria-pressed":s,title:s?"Stop wrapping long lines, and scroll sideways instead":"Wrap long lines so the whole line is readable without scrolling sideways",children:s?"No wrap":"Wrap lines"}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:o,"aria-label":"Close file",children:"Close"})]}),a.status==="unloaded"||a.status==="loading"?d.jsx("p",{className:"filetree-note",role:"status",children:"Reading…"}):a.status==="error"?d.jsx(Bf,{path:t,reason:a.reason,code:a.code,message:a.message}):d.jsx(d.Fragment,{children:a.content.kind==="image"?d.jsx(fv,{path:t,type:a.content.type,base64:a.content.base64,bytes:a.bytes}):d.jsx("ol",{className:s?"filepane-lines is-wrapped":"filepane-lines",children:m.map((p,b)=>d.jsxs("li",{children:[d.jsx("span",{className:"filepane-line-no","aria-hidden":"true",children:b+1}),d.jsx("span",{className:"filepane-line-text",children:p===""?" ":p})]},b))})})]})}function hv({sessionId:t,state:a,cwd:s,onExpand:c,onCollapse:o,onToggleHidden:f,onOpenFile:m}){const p=ss(a,t),b=fs(a,t,"");return d.jsxs("div",{className:"filetree",children:[d.jsxs("div",{className:"filetree-head",children:[d.jsx("span",{className:"filetree-scope",title:s,children:"Working directory"}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:f,"aria-pressed":p,title:p?"Hide dotfiles":"Show dotfiles",children:p?"Hide dotfiles":"Show dotfiles"})]}),b.status==="unloaded"?d.jsx("p",{className:"filetree-note",children:"Not loaded yet."}):b.status==="loading"?d.jsx("p",{className:"filetree-note",role:"status",children:"Reading…"}):b.status==="error"?d.jsx(Bf,{path:"",reason:b.reason,code:b.code,message:b.message}):b.entries.length===0?d.jsx("p",{className:"filetree-note",children:"This directory is empty."}):d.jsx("ul",{className:"filetree-list",role:"tree","aria-label":`Files in ${s}`,children:b.entries.map(y=>d.jsx(Zp,{sessionId:t,parent:"",entry:y,state:a,depth:0,onExpand:c,onCollapse:o,onOpenFile:m},y.name))}),b.status==="loaded"&&b.truncated&&d.jsx("p",{className:"filetree-note filetree-truncated",children:"Showing the first entries only — this directory holds more."})]})}function Zp({sessionId:t,parent:a,entry:s,state:c,depth:o,onExpand:f,onCollapse:m,onOpenFile:p}){const b=a6(a,s.name),y=l6(s),_=y&&u6(c,t,b),x=y&&_?fs(c,t,b):void 0;return d.jsxs("li",{className:`filetree-node${s.unreadable?" is-unreadable":""}`,role:"treeitem","aria-expanded":y?_:void 0,style:{paddingLeft:`${o*12}px`},children:[d.jsxs("button",{type:"button",className:"filetree-row",onClick:()=>{y?_?m(b):f(b):p(b)},title:b,children:[d.jsx("span",{className:"filetree-mark","aria-hidden":"true",children:y?_?"▾":"▸":s.kind==="symlink"?"↗":"·"}),d.jsx("span",{className:`filetree-name${s.hidden?" is-hidden":""}`,children:s.name}),s.kind==="symlink"&&!Wm(s)&&d.jsx("span",{className:"filetree-kind",children:"link"}),Wm(s)&&d.jsx("span",{className:"filetree-kind filetree-bad",children:"broken"}),s.unreadable&&d.jsx("span",{className:"filetree-kind filetree-bad",children:"unreadable"}),s.size!==void 0&&d.jsx("span",{className:"filetree-size",children:ai(s.size)})]}),x!==void 0&&d.jsx(mv,{files:c,directory:x,sessionId:t,parent:b,depth:o+1,onExpand:f,onCollapse:m,onOpenFile:p})]})}function mv({files:t,directory:a,sessionId:s,parent:c,depth:o,onExpand:f,onCollapse:m,onOpenFile:p}){return a.status==="loading"||a.status==="unloaded"?d.jsx("p",{className:"filetree-note",role:"status",style:{paddingLeft:`${o*12}px`},children:"Reading…"}):a.status==="error"?d.jsx(Bf,{path:c,reason:a.reason,code:a.code,message:a.message,depth:o}):a.entries.length===0?d.jsx("p",{className:"filetree-note",style:{paddingLeft:`${o*12}px`},children:"Empty."}):d.jsxs(d.Fragment,{children:[d.jsx("ul",{className:"filetree-list",role:"group",children:a.entries.map(b=>d.jsx(Zp,{sessionId:s,parent:c,entry:b,state:t,depth:o,onExpand:f,onCollapse:m,onOpenFile:p},b.name))}),a.truncated&&d.jsx("p",{className:"filetree-note filetree-truncated",style:{paddingLeft:`${o*12}px`},children:"Showing the first entries only — this directory holds more."})]})}function pv({sessionId:t,files:a,cwd:s,onExpand:c,onCollapse:o,onToggleHidden:f,wrapped:m,onToggleWrap:p,onOpenFile:b,onCloseFile:y}){const _=n6(a,t);return d.jsxs("div",{className:"files-panel",children:[_&&d.jsxs("div",{className:"files-back",children:[d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:y,children:"‹ Files"}),d.jsx("span",{className:"files-back-path",title:_.path,children:_.path})]}),d.jsxs("div",{className:`files-body${_?" has-file":""}`,children:[d.jsx("div",{className:"files-tree",children:d.jsx(hv,{sessionId:t,state:a,cwd:s,onExpand:c,onCollapse:o,onToggleHidden:f,onOpenFile:b})}),_&&d.jsx("div",{className:"files-doc",children:d.jsx(dv,{path:_.path,state:_.state,wrapped:m,onToggleWrap:p,onClose:y})})]})]})}const Ss=280,bv=.6,gv=1200,Hf=360,yv=720;function qf(t){return Math.min(gv,Math.max(Ss,t*bv))}function na(t,a){return Number.isFinite(t)?Math.round(Math.min(qf(a),Math.max(Ss,t))):Hf}function xv(t,a,s){switch(t){case"ArrowLeft":return na(a+16,s);case"ArrowRight":return na(a-16,s);case"Home":return na(Ss,s);case"End":return na(qf(s),s)}}const rs="pi-central.panel";function Xp(){return{width:Hf,mode:"session",userSized:!1,collapsed:!0}}function vv(t){const a=Xp();if(t===null||t==="")return a;let s;try{s=JSON.parse(t)}catch{return a}if(typeof s!="object"||s===null)return a;const c=s,o=c.mode==="files"?"files":"session";return{width:typeof c.width=="number"?c.width:a.width,mode:o,userSized:c.userSized===!0,collapsed:c.collapsed!==!1}}function vf(t){return JSON.stringify(t)}const _v=[{mode:"session",label:"Session"},{mode:"files",label:"Files"}];function Ev({mode:t,onMode:a,width:s,onWidth:c,viewportWidth:o,resizable:f=!0,onCommit:m,children:p}){const b=B.useRef(void 0),y=qf(o);function _(S){f&&(S.preventDefault(),S.currentTarget.setPointerCapture(S.pointerId),b.current={pointerId:S.pointerId,startX:S.clientX,startWidth:s})}function x(S){const L=b.current;!L||L.pointerId!==S.pointerId||c(na(L.startWidth-(S.clientX-L.startX),o),!0)}function k(S){b.current&&(b.current=void 0,S.currentTarget.hasPointerCapture(S.pointerId)&&S.currentTarget.releasePointerCapture(S.pointerId),m?.())}function R(S){f&&["ArrowLeft","ArrowRight","Home","End"].includes(S.key)&&(S.preventDefault(),c(xv(S.key,s,o),!0),m?.())}return d.jsxs("aside",{className:"panel","aria-label":"Panel",children:[d.jsx("div",{className:"panel-head",children:d.jsx("div",{className:"tabs",role:"tablist","aria-label":"Panel view",children:_v.map(({mode:S,label:L})=>d.jsx("button",{type:"button",role:"tab",id:`panel-tab-${S}`,className:"tab","aria-selected":t===S,"aria-controls":`panel-body-${S}`,tabIndex:t===S?0:-1,onClick:()=>a(S),children:L},S))})}),d.jsx("div",{className:"panel-body",id:`panel-body-${t}`,role:"tabpanel","aria-labelledby":`panel-tab-${t}`,tabIndex:-1,children:p}),f&&d.jsx("div",{className:"panel-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize panel","aria-valuenow":s,"aria-valuemin":Ss,"aria-valuemax":y,"aria-valuetext":`${s} pixels`,tabIndex:0,onPointerDown:_,onPointerMove:x,onPointerUp:k,onPointerCancel:k,onKeyDown:R,onDoubleClick:()=>{c(Hf,!1),m?.()}})]})}function Sv({collapsed:t,onToggle:a}){return d.jsx("button",{type:"button",className:"btn btn-quiet","aria-expanded":!t,onClick:a,title:t?"Show the session and file panel":"Hide the session and file panel and give the transcript the room",children:t?"Show panel":"Hide panel"})}function Av({following:t,onToggle:a}){return d.jsx("button",{type:"button",className:"toggle-chip","aria-pressed":t,onClick:a,title:t?"Stop scrolling to new output automatically. Jump to latest still works.":"Scroll to new output automatically whenever you are at the end of the transcript.",children:t?"auto-follow on":"auto-follow off"})}const Tv=30;function Cv({session:t,models:a,error:s,onRequest:c,onSelect:o,thinking:f}){const[m,p]=B.useState(!1),b=()=>{m||(p(!0),c())},y=t.state!=="starting"&&t.state!=="stopped"&&t.state!=="failed",_=G6(t),x=m&&a===void 0&&s===void 0;if(s!==void 0)return d.jsxs("div",{className:"picker picker-broken",children:[d.jsx("span",{className:"picker-label",children:"Model"}),d.jsx("span",{className:"picker-value",title:s,children:"unavailable"}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:()=>{p(!0),c()},children:"Retry"}),d.jsxs("span",{className:"picker-note warn",children:["Could not read the model list: ",s]})]});const k=t.model===void 0?"—":t.provider?`${t.provider}/${t.model}`:t.model,R=a?.find(Z=>J2(t,Z)),S=R?R.name??R.id:k,L=kf(R?R.name??R.id:t.model??"—",Tv);return d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"picker-label","data-picker-row":"provider","data-picker-label":"",children:"Provider"}),d.jsx("span",{className:"picker-provider mono","data-picker-row":"provider",title:t.provider??void 0,children:t.provider??"—"}),d.jsx("label",{className:"picker-label","data-picker-row":"model","data-picker-label":"",htmlFor:`model-${t.id}`,children:"Model"}),d.jsxs("span",{className:"picker-controls","data-picker-row":"model",children:[d.jsxs("span",{className:"picker-field",children:[d.jsx("span",{className:`picker-display mono${y?"":" is-disabled"}`,"aria-hidden":"true",title:S,children:L}),d.jsxs("select",{id:`model-${t.id}`,className:"picker-select",title:S,value:a===void 0?"":Dv(t,a),disabled:!y,onFocus:b,onMouseDown:b,onChange:Z=>{const[I,...ie]=Z.target.value.split("/");I!==void 0&&ie.length>0&&o(I,ie.join("/"))},children:[a===void 0&&d.jsx("option",{value:"",children:t.model??"—"}),a!==void 0&&a.length===0&&d.jsx("option",{value:"",children:"no models available"}),a!==void 0&&q6(a).map(Z=>d.jsx("optgroup",{label:Z.provider,children:Z.models.map(I=>d.jsxs("option",{value:`${I.provider}/${I.id}`,children:[I.name??I.id,I.reasoning?" · thinking":""]},`${I.provider}/${I.id}`))},Z.provider))]})]}),f]}),x&&d.jsx("span",{className:"picker-note","data-picker-row":"note","data-picker-label":"",children:"reading the model list…"}),_!==""&&d.jsx("span",{className:"picker-note","data-picker-row":"note","data-picker-label":"",children:_})]})}function Dv(t,a){const s=a.find(c=>J2(t,c));return s?`${s.provider}/${s.id}`:""}function Nv({installationRoot:t,initialPath:a="",onClose:s,onOpen:c}){const[o,f]=B.useState(a),m=B.useRef(null);B.useEffect(()=>{m.current?.focus();const _=x=>{x.key==="Escape"&&s()};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[s]);const p=o.trim(),b=B.useMemo(()=>{if(p.length===0)return"Enter a directory.";if(!p.startsWith("/"))return"Enter an absolute path, starting with /."},[p]),y=B.useMemo(()=>{if(b===void 0)return Hg(p,t)},[p,t,b]);return d.jsx("div",{className:"modal-backdrop",onClick:s,role:"presentation",children:d.jsxs("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"open-dir-title",onClick:_=>_.stopPropagation(),children:[d.jsx("h3",{id:"open-dir-title",children:"Open in a directory"}),d.jsx("p",{style:{marginBottom:12},children:"The session is sandboxed to this directory. Pi Central does not change a session's directory later, so start it where the work belongs."}),d.jsxs("form",{onSubmit:_=>{_.preventDefault(),b===void 0&&c(p)},children:[d.jsx("input",{ref:m,type:"text",value:o,spellCheck:!1,placeholder:"/absolute/path/to/project","aria-label":"Working directory","aria-invalid":b!==void 0&&o.length>0,onChange:_=>f(_.target.value),style:{width:"100%",background:"var(--bg)",border:"1px solid var(--line-strong)",borderRadius:6,padding:"8px 10px",color:"var(--text)",font:"13px var(--mono)"}}),b!==void 0&&o.length>0&&d.jsx("p",{style:{color:"var(--warn-text)",fontSize:12,margin:"6px 0 0"},children:b}),y!==void 0&&d.jsxs("p",{className:"hazard",role:"status",children:[d.jsx("span",{"aria-hidden":"true",children:"⚠ "}),y]}),d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"submit",className:"btn",disabled:b!==void 0,children:"Open here"}),d.jsx("button",{type:"button",className:"btn btn-ghost",onClick:s,children:"Cancel"})]})]})]})})}function kv({value:t,onCommit:a}){const[s,c]=B.useState(!1),[o,f]=B.useState(t),m=B.useRef(null);B.useEffect(()=>{s&&(m.current?.focus(),m.current?.select())},[s]);const p=()=>{const _=o.trim();c(!1),!(_.length===0||_===t)&&a(_)},b=()=>{f(t),c(!1)};return{editing:s,draft:o,start:()=>{f(t),c(!0)},inputRef:m,inputProps:{value:o,onChange:_=>f(_.target.value),onBlur:p,onKeyDown:_=>{_.key==="Enter"?(_.preventDefault(),p()):_.key==="Escape"&&(_.preventDefault(),b()),_.stopPropagation()},onDoubleClick:_=>_.stopPropagation()}}}function Ov({value:t,onCommit:a,label:s,className:c}){const o=kv({value:t,onCommit:a});return o.editing?d.jsx("input",{...o.inputProps,ref:o.inputRef,className:`inline-rename${c?` ${c}`:""}`,"aria-label":s}):d.jsx("span",{className:c,onDoubleClick:f=>{f.stopPropagation(),o.start()},title:"Double-click to rename",children:t})}function jv(t){return`${t.provider??"?"}/${t.model??"?"}@${t.thinkingLevel??"?"}`}function zv({session:t,levels:a,error:s,onRequest:c,onSelect:o}){const[f,m]=B.useState(void 0),p=jv(t),b=t.state!=="starting"&&t.state!=="stopped"&&t.state!=="failed";B.useEffect(()=>{!b||f===p||(m(p),c())},[b,p,f,c]);const y=a!==void 0,_=t.thinkingLevel??"—";return s!==void 0?d.jsxs("div",{className:"picker picker-broken",children:[d.jsx("span",{className:"picker-label",children:"Thinking"}),d.jsx("span",{className:"picker-value",title:s,children:_}),d.jsx("button",{type:"button",className:"btn btn-quiet",onClick:()=>{m(void 0)},children:"Retry"}),d.jsxs("span",{className:"picker-note warn",children:["Could not read the levels: ",s]})]}):d.jsxs("div",{className:"picker",children:[d.jsx("label",{className:"picker-label",htmlFor:`thinking-${t.id}`,children:"Thinking"}),d.jsxs("select",{id:`thinking-${t.id}`,className:"picker-select picker-select-narrow",value:y&&a.includes(_)?_:"",disabled:!b||!y,onChange:x=>{x.target.value!==""&&o(x.target.value)},children:[(!y||!a.includes(_))&&d.jsx("option",{value:"",children:_}),y&&a.map(x=>d.jsx("option",{value:x,children:x},x))]}),!y&&d.jsx("span",{className:"picker-note",children:"reading the levels…"})]})}function Rv({history:t,historyTotal:a,onResume:s,home:c}){const[o,f]=B.useState(""),[m,p]=B.useState(void 0),b=H6(t,o);return d.jsxs("div",{className:"history",children:[d.jsxs("div",{className:"history-search",children:[d.jsx("input",{type:"search",value:o,placeholder:"Search sessions by content, project, or name","aria-label":"Search sessions",onChange:y=>f(y.target.value)}),o.length>0&&d.jsx("button",{type:"button",className:"btn",onClick:()=>f(""),children:"Clear search"})]}),t.length===0?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsx("h2",{children:"No sessions on disk yet"}),d.jsxs("p",{children:["History comes from ",d.jsx("span",{className:"mono",children:"~/.pi/agent/sessions/"}),". A session appears here after its first message."]})]}):b.length===0?d.jsxs("div",{className:"empty",style:{padding:0},children:[d.jsxs("h2",{children:["No sessions match “",o,"”."]}),d.jsx("button",{type:"button",className:"btn",onClick:()=>f(""),children:"Clear search"})]}):d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"hint",style:{marginBottom:12},"aria-live":"polite",children:[b.length," of ",t.length," session",t.length===1?"":"s",a>t.length&&d.jsxs(d.Fragment,{children:[" · searching the ",t.length," most recent of ",a]})]}),b.map(y=>d.jsx(wv,{session:y,home:c,onSelect:()=>{if(!y.cwdExists){p(y);return}s(y)}},y.path))]}),m&&d.jsx(Mv,{session:m,onDismiss:()=>p(void 0)})]})}function wv({session:t,home:a,onSelect:s}){return d.jsxs("button",{type:"button",className:"history-row",onClick:s,children:[d.jsxs("span",{className:"h1",children:[d.jsx("strong",{children:t.name??"Untitled session"}),t.scratch&&d.jsx("span",{className:"chip chip-scratch",children:"scratch"}),!t.cwdExists&&d.jsx("span",{className:"chip chip-awaiting-approval",children:"directory is gone"})]}),d.jsx("span",{className:"project",title:t.cwd,children:Lv(t.cwd,a)}),d.jsx("p",{className:"first",children:t.firstMessage||"(no messages)"}),d.jsxs("span",{className:"meta",children:[d.jsx("span",{children:V6(t.modifiedMs)}),d.jsxs("span",{children:[t.messageCount," msgs"]}),d.jsx("span",{children:Uv(t.bytes)})]})]})}function Mv({session:t,onDismiss:a}){return d.jsx("div",{className:"modal-backdrop",onClick:a,role:"presentation",children:d.jsxs("div",{className:"modal",role:"alertdialog","aria-modal":"true","aria-labelledby":"refusal-title",onClick:s=>s.stopPropagation(),children:[d.jsx("h3",{id:"refusal-title",children:"This session's directory is gone"}),d.jsx("p",{style:{marginBottom:12},children:"The directory this session worked in no longer exists:"}),d.jsx("pre",{className:"cmd",style:{marginBottom:12},children:t.cwd}),d.jsx("p",{style:{marginBottom:16},children:"Restore it, or start a new session in the directory you want to work in. Pi Central does not move a session between directories."}),d.jsxs("div",{className:"dialog-actions",style:{marginTop:0},children:[d.jsx("button",{type:"button",className:"btn",onClick:a,children:"Close"}),d.jsx(xl,{text:t.cwd,label:"path"})]})]})})}function Lv(t,a){return a&&t.startsWith(a)?`~${t.slice(a.length)}`:t}function Uv(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}function Fv(){const[t,a]=B.useReducer(j6,void 0,K2),[s,c]=B.useState("connecting"),[o,f]=B.useState(void 0),[m,p]=B.useState("sessions"),[b,y]=B.useState(!1),[_,x]=B.useState(void 0),[k,R]=B.useState(!1),S=B.useRef(null),[L,Z]=B.useState({}),[I,ie]=B.useState(0),[ne,Y]=B.useState(!0),Q=B.useRef(new Map),[ae,W]=B.useState(()=>Pm().collapsed),[ce,$e]=B.useState(()=>Pm().markers),[Be,te]=B.useState(()=>{try{return vv(localStorage.getItem(rs))}catch{return Xp()}}),[ge,Je]=B.useState(()=>typeof window>"u"?1440:window.innerWidth);B.useEffect(()=>{const M=()=>{Je(window.innerWidth),te(X=>({...X,width:na(X.width,window.innerWidth)}))};return window.addEventListener("resize",M),()=>window.removeEventListener("resize",M)},[]),B.useEffect(()=>{Jg({collapsed:ae,markers:ce})},[ae,ce]);const nu=B.useCallback((M,X)=>{te(ke=>({...ke,width:M,userSized:X}))},[]),xe=B.useCallback(()=>{te(M=>{const X={...M,collapsed:!M.collapsed};try{localStorage.setItem(rs,vf(X))}catch{}return X})},[]),J=B.useCallback(()=>{te(M=>{try{localStorage.setItem(rs,vf(M))}catch{}return M})},[]),oe=B.useCallback(M=>{te(X=>{const ke=M==="files"&&!X.userSized?na(yv,ge):X.width,ru={...X,mode:M,width:ke};try{localStorage.setItem(rs,vf(ru))}catch{}return ru})},[ge]),[de,ve]=B.useReducer(i6,void 0,Pg),ye=B.useRef(de);ye.current=de;const yu=B.useRef(void 0);B.useEffect(()=>{const M=new Yg(Vg(),{onEvent:X=>{switch(a(X),X.kind){case"files":ve({kind:"filesLoaded",sessionId:X.sessionId,path:X.path,entries:X.entries,truncated:X.truncated});break;case"file":ve({kind:"fileLoaded",sessionId:X.sessionId,path:X.path,bytes:X.bytes,content:X.content});break;case"fileError":X.request==="list"?ve({kind:"filesFailed",sessionId:X.sessionId,path:X.path,reason:X.reason,...X.code===void 0?{}:{code:X.code},message:X.message}):ve({kind:"fileFailed",sessionId:X.sessionId,path:X.path,reason:X.reason,...X.code===void 0?{}:{code:X.code},message:X.message});break}},onStatus:(X,ke)=>{c(X),f(ke)}});return yu.current=M,M.connect(),()=>M.disconnect()},[]);const De=B.useCallback(M=>{const X=yu.current?.send(M);return X||a({kind:"error",message:"Not connected to the orchestrator. Nothing was sent."}),X},[]),K=M6(t),T=B.useCallback((M,X,ke)=>{ve({kind:"filesLoading",sessionId:M,path:X}),De({kind:"listFiles",sessionId:M,path:X,includeHidden:ke})},[De]),V=B.useCallback(M=>{K&&(ve({kind:"setExpanded",sessionId:K.id,path:M,expanded:!0}),fs(ye.current,K.id,M).status!=="loaded"&&T(K.id,M,ss(ye.current,K.id)))},[K,T]),$=B.useCallback(M=>{K&&(ve({kind:"openFile",sessionId:K.id,path:M}),ve({kind:"fileLoading",sessionId:K.id,path:M}),De({kind:"readFile",sessionId:K.id,path:M}))},[K,De]),re=B.useCallback(()=>{if(!K)return;const M=K.id,X=!ss(ye.current,M);ve({kind:"toggleHidden",sessionId:M});const ke=`${M}\0`;for(const ru of Object.keys(ye.current.directories))ru.startsWith(ke)&&T(M,ru.slice(ke.length),X)},[K,T]),Ae=K?.id;B.useEffect(()=>{Ae&&fs(ye.current,Ae,"").status==="unloaded"&&T(Ae,"",ss(ye.current,Ae))},[Ae,T]);const ze=t.live.map(M=>M.id).join("\0");B.useEffect(()=>{const M=new Set(t.live.map(X=>X.id));for(const X of Object.keys(ye.current.directories)){const{sessionId:ke}=Wg(X);M.has(ke)||ve({kind:"forgetSession",sessionId:ke})}},[ze]);const Me=L6(t,K?.id),ee=R6(t),he=t.home,Qu=w6(t);B.useEffect(()=>{const M=X=>{const ke=X.metaKey||X.ctrlKey;ke&&X.key.toLowerCase()==="n"&&(X.preventDefault(),De({kind:"start"})),ke&&X.shiftKey&&X.key.toLowerCase()==="o"&&(X.preventDefault(),y(!0))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[De]),B.useEffect(()=>{a({kind:"loadRoster",entries:_6(localStorage.getItem(u2))})},[]),B.useEffect(()=>{for(const M of t.live){const X=Q2(M);X!==void 0&&a({kind:"remember",entry:X})}},[t.live]),B.useEffect(()=>{try{localStorage.setItem(u2,E6(t.roster))}catch{}},[t.roster]),B.useEffect(()=>{const M=t.pendingPrompt;if(M===void 0)return;const X=k6(M,t.live);X!==void 0&&(a({kind:"clearPendingPrompt"}),a({kind:"focusRow",key:X.id}),De(X.state==="streaming"&&M.behavior!==void 0?{kind:"prompt",sessionId:X.id,message:M.message,behavior:M.behavior}:{kind:"prompt",sessionId:X.id,message:M.message}),ie(ke=>ke+1))},[t.pendingPrompt,t.live,De]);const Nn=B.useCallback(M=>{K&&De({kind:"rename",sessionId:K.id,name:M})},[K,De]),Nt=B.useCallback(()=>{a({kind:"expectNewSession"}),De({kind:"start"})},[De]),Ne=B.useCallback(M=>{a({kind:"expectNewSession"}),De({kind:"start",cwd:M}),y(!1),p("sessions")},[De]),eu=B.useCallback((M,X)=>{K&&De({kind:"answerDialog",sessionId:K.id,dialogId:M,answer:X})},[K,De]);return d.jsxs("div",{className:"app",children:[d.jsxs("header",{className:"topbar",children:[d.jsxs("h1",{className:"wordmark",children:[d.jsx("img",{className:"wordmark-mark",src:Zg,alt:"","aria-hidden":"true"}),"Pi Central"]}),d.jsxs("div",{className:"tabs",role:"tablist","aria-label":"View",children:[d.jsx("button",{type:"button",role:"tab",className:"tab","aria-selected":m==="sessions",onClick:()=>p("sessions"),children:"Sessions"}),d.jsx("button",{type:"button",role:"tab",className:"tab","aria-selected":m==="history",onClick:()=>p("history"),children:"History"})]}),d.jsxs("div",{className:"topbar-right",children:[d.jsxs("div",{className:"fleet",children:[d.jsxs("span",{children:[ee.total," session",ee.total===1?"":"s"]}),ee.running>0&&d.jsxs("span",{children:[ee.running," running"]}),ee.scratch>0&&d.jsxs("span",{children:[ee.scratch," scratch"]}),ee.needs>0&&d.jsxs("span",{className:"fleet-needs",children:[ee.needs," need you"]})]}),d.jsxs("span",{className:`conn conn-${s}`,children:[d.jsx("span",{className:"conn-dot","aria-hidden":"true"}),d.jsx("span",{children:s==="open"?"connected":s==="connecting"?"connecting…":"disconnected"}),o&&d.jsxs("span",{className:"hint",children:["· ",o]})]}),d.jsx(Sv,{collapsed:Be.collapsed,onToggle:xe}),d.jsx("button",{type:"button",className:"btn btn-quiet",ref:S,onClick:()=>R(!0),children:"Settings"})]})]}),Qu&&d.jsxs("div",{className:"direct-banner",role:"alert",children:[d.jsx("strong",{children:"Direct mode: sessions are not sandboxed"}),d.jsx("span",{children:"These sessions run pi with your account's access. Everything else in Pi Central is unaffected; start new sessions with the sandbox to change it."})]}),t.errors.length>0&&d.jsx(qv,{message:t.errors[0],onDismiss:()=>a({kind:"dismissError"})}),d.jsxs("div",{className:Be.collapsed?"panes is-collapsed":"panes",style:{"--panel-width":`${Be.width}px`},children:[d.jsx(K6,{rows:T6(t.roster,t.live),focusedId:t.focusedId,onFocusRow:M=>{a({kind:"focusRow",key:Bv(M)}),p("sessions")},onForgetRow:M=>a({kind:"forget",path:M.entry.path}),retryAvailable:Ug(t.install?.protocol),onRetryRow:M=>{M.session!==void 0&&De({kind:"retry",sessionId:M.session.id})},onStartSession:Nt,onOpenDirectory:()=>y(!0),home:he,historyTotal:t.historyTotal}),m==="history"?d.jsx("main",{className:"column",children:d.jsx(Rv,{history:t.history,historyTotal:t.historyTotal,home:he,onResume:M=>{a({kind:"expectNewSession"}),De({kind:"resume",path:M.path}),p("sessions")}})}):d.jsx("main",{className:"column",children:d.jsx(Hv,{session:K,traceCollapsed:K?ae[K.id]===!0:!1,showMarkers:K?ce[K.id]!==!1:!0,onToggleTraceCollapsed:M=>K&&W(X=>({...X,[K.id]:M})),onToggleMarkers:()=>K&&$e(M=>({...M,[K.id]:M[K.id]===!1})),transcript:Me,home:he,historyError:t.transcriptErrors[K?.id??""],followToken:I,autoFollow:ne,onToggleAutoFollow:()=>Y(M=>!M),scrollMemory:Q,models:K?t.models[K.id]:void 0,modelError:K?t.modelErrors[K.id]:void 0,onRename:Nn,onAnswer:eu,onRequestModels:()=>{K&&De({kind:"listModels",sessionId:K.id})},onSelectModel:(M,X)=>{K&&De({kind:"setModel",sessionId:K.id,provider:M,modelId:X})},thinking:{levels:K?t.thinkingLevels[K.id]:void 0,error:K?t.thinkingLevelErrors[K.id]:void 0},onRequestThinkingLevels:()=>{K&&De({kind:"listThinkingLevels",sessionId:K.id})},onSelectThinkingLevel:M=>{K&&De({kind:"setThinkingLevel",sessionId:K.id,level:M})},onSend:(M,X)=>{K&&(De(K.state==="streaming"?{kind:"prompt",sessionId:K.id,message:M,behavior:X}:{kind:"prompt",sessionId:K.id,message:M}),ie(ke=>ke+1))},onClearQueueAndStop:()=>{K&&De({kind:"clearQueue",sessionId:K.id,andStop:!0})},state:t,restored:K?t.restoredQueue[K.id]??[]:[],onRestored:()=>{K&&a({kind:"queueRestored",sessionId:K.id})},draft:K?L[K.id]??"":"",onDraftChange:M=>{K&&Z(X=>({...X,[K.id]:M}))}},K?.id)}),!Be.collapsed&&d.jsx(Ev,{mode:Be.mode,onMode:oe,width:Be.width,onWidth:nu,viewportWidth:ge,onCommit:J,children:Be.mode==="session"?d.jsx(ev,{session:m==="sessions"?K:void 0,home:he,onStop:()=>K&&x(K),onRename:Nn}):K?d.jsx(pv,{sessionId:K.id,files:de,cwd:K.cwd,onExpand:V,onCollapse:M=>ve({kind:"setExpanded",sessionId:K.id,path:M,expanded:!1}),onToggleHidden:re,wrapped:t6(de,K.id),onToggleWrap:()=>ve({kind:"toggleWrap",sessionId:K.id}),onOpenFile:$,onCloseFile:()=>ve({kind:"closeFile",sessionId:K.id})}):d.jsx("p",{className:"panel-empty",children:"Select a session to browse its working directory."})})]}),k&&d.jsx(cv,{install:t.install,ready:t.ready,onClose:()=>{R(!1),S.current?.focus()}}),b&&d.jsx(Nv,{installationRoot:t.installationRoot,onClose:()=>y(!1),onOpen:Ne}),_&&d.jsx(Gv,{session:_,onCancel:()=>x(void 0),onConfirm:()=>{De({kind:"stop",sessionId:_.id}),x(void 0)}})]})}function Bv(t){return t.session?.id??t.entry.path}function Hv({session:t,transcript:a,home:s,historyError:c,models:o,modelError:f,onAnswer:m,onRename:p,onRequestModels:b,onSelectModel:y,thinking:_,onRequestThinkingLevels:x,onSelectThinkingLevel:k,onSend:R,onClearQueueAndStop:S,followToken:L,autoFollow:Z,traceCollapsed:I,showMarkers:ie,onToggleTraceCollapsed:ne,onToggleMarkers:Y,onToggleAutoFollow:Q,scrollMemory:ae,restored:W,onRestored:ce,state:$e,draft:Be,onDraftChange:te}){if(!t)return d.jsxs("div",{className:"empty",children:[d.jsx("h2",{children:"No session selected"}),d.jsxs("p",{children:[d.jsx("span",{className:"action",children:"New session"})," gives it its own scratch workspace immediately — no directory to pick, nothing to decide first. Files it writes stay there."]}),d.jsxs("p",{children:["Working in a project? ",d.jsx("span",{className:"action",children:"Open in a directory."})]})]});const[ge,Je]=B.useState(void 0),nu=t.state==="streaming";return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"session-header",children:[d.jsxs("div",{className:"title",children:[d.jsxs("h2",{children:[d.jsx(Ov,{value:ps(t),label:"Session name",className:"session-name",onCommit:p}),t.scratch&&d.jsx("span",{className:"chip chip-scratch",children:"scratch"}),d.jsx("span",{className:`chip chip-${t.state}`,children:$2(t)})]}),d.jsx("span",{className:"where",title:t.cwd,children:X6(t,s)})]}),d.jsx("div",{className:"picker picker-grid",children:d.jsx(Cv,{session:t,models:o,error:f,onRequest:b,onSelect:y,thinking:d.jsx(zv,{session:t,levels:_.levels,error:_.error,onRequest:x,onSelect:k})})})]}),d.jsxs("div",{className:"metrics",children:[d.jsx("span",{className:t.contextPercent!==null&&t.contextPercent>=80?"warn":"",children:P2(t.contextPercent)}),d.jsxs("span",{children:[ms(t.tokensTotal)," tok"]}),d.jsx("span",{children:Nf(t.cost)}),d.jsxs("span",{children:[t.messageCount," msgs"]}),t.pending>0&&d.jsxs("span",{className:"warn",children:["+",t.pending," queued"]})]}),d.jsx("div",{className:"run-track",children:nu&&d.jsx("div",{className:"run-bar",style:{width:"100%"}})}),t.warnings.length>0&&d.jsx("div",{className:"warnings",role:"note",children:t.warnings.map((xe,J)=>d.jsxs("span",{children:["⚠ ",xe]},J))}),d.jsx(P8,{dialogs:t.dialogs,onAnswer:m}),d.jsxs("div",{className:"legend",children:[d.jsx("span",{children:"Tool output and file contents are marked with a coloured edge. They are data, not instructions."}),d.jsx(Av,{following:Z,onToggle:Q})]}),d.jsx(Z8,{initialScroll:ae.current.get(t.id),onScrollMemory:xe=>ae.current.set(t.id,xe),followToken:L,autoFollow:Z,transcript:a,busy:nu,sessionLabel:ps(t),expectedCount:t.messageCount,showMarkers:ie,historyError:c,onOpenTool:xe=>{ne(!1),Je(xe)}}),ge!==void 0||a.tools.length>0?d.jsx(Q8,{tools:a.tools,selectedId:ge,onSelect:Je,collapsed:I,onToggleCollapsed:()=>ne(!I),showMarkers:ie,onToggleMarkers:Y}):null,U6({...K2(),live:[t]})>0?null:d.jsx(J8,{session:t,state:$e,unavailableReason:F6(t).reason,onSend:R,onClearQueueAndStop:S,restored:W,onRestored:ce,draft:Be,onDraftChange:te})]})}function qv({message:t,onDismiss:a}){const[s,...c]=t.split(`
45
+ `);return d.jsxs("div",{className:"error-card",role:"alert",children:[d.jsxs("p",{children:[s,c.length>0&&d.jsxs("span",{className:"error-more",children:[" ","(+",c.length," more line",c.length===1?"":"s"," — see the Session panel)"]})]}),d.jsx("div",{className:"actions",children:d.jsx("button",{type:"button",className:"btn",onClick:a,children:"Dismiss"})})]})}function Gv({session:t,onCancel:a,onConfirm:s}){const c=B.useRef(null);return B.useEffect(()=>{c.current?.focus();const o=f=>{f.key==="Escape"&&a()};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[a]),d.jsx("div",{className:"modal-backdrop",onClick:a,role:"presentation",children:d.jsxs("div",{className:"modal",role:"alertdialog","aria-modal":"true","aria-labelledby":"stop-title",onClick:o=>o.stopPropagation(),children:[d.jsx("h3",{id:"stop-title",children:"Stop this session?"}),d.jsxs("p",{children:["This ends the run in progress for ",ps(t),". Messages so far are already saved."]}),d.jsxs("div",{className:"dialog-actions",children:[d.jsx("button",{type:"button",className:"btn btn-danger",onClick:s,children:"Stop session"}),d.jsx("button",{type:"button",className:"btn",ref:c,onClick:a,children:"Keep running"})]})]})})}const Ip=document.getElementById("root");if(!Ip)throw new Error("missing #root");zg.createRoot(Ip).render(d.jsx(B.StrictMode,{children:d.jsx(Fv,{})}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})});export{os as _};