@netnodeag/kraftwerk 0.14.2 → 0.16.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,80 @@
1
+ (function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&r(p)}).observe(document,{childList:!0,subtree:!0});function o(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(d){if(d.ep)return;d.ep=!0;const h=o(d);fetch(d.href,h)}})();var Kr={exports:{}},ii={};var am;function rv(){if(am)return ii;am=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function o(r,d,h){var p=null;if(h!==void 0&&(p=""+h),d.key!==void 0&&(p=""+d.key),"key"in d){h={};for(var v in d)v!=="key"&&(h[v]=d[v])}else h=d;return d=h.ref,{$$typeof:u,type:r,key:p,ref:d!==void 0?d:null,props:h}}return ii.Fragment=c,ii.jsx=o,ii.jsxs=o,ii}var sm;function ov(){return sm||(sm=1,Kr.exports=rv()),Kr.exports}var s=ov(),Jr={exports:{}},ue={};var im;function fv(){if(im)return ue;im=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),_=Symbol.iterator;function q(j){return j===null||typeof j!="object"?null:(j=_&&j[_]||j["@@iterator"],typeof j=="function"?j:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},K=Object.assign,I={};function O(j,L,Z){this.props=j,this.context=L,this.refs=I,this.updater=Z||G}O.prototype.isReactComponent={},O.prototype.setState=function(j,L){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,L,"setState")},O.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function ke(){}ke.prototype=O.prototype;function ee(j,L,Z){this.props=j,this.context=L,this.refs=I,this.updater=Z||G}var ae=ee.prototype=new ke;ae.constructor=ee,K(ae,O.prototype),ae.isPureReactComponent=!0;var ie=Array.isArray;function $(){}var P={H:null,A:null,T:null,S:null},He=Object.prototype.hasOwnProperty;function Be(j,L,Z){var X=Z.ref;return{$$typeof:u,type:j,key:L,ref:X!==void 0?X:null,props:Z}}function At(j,L){return Be(j.type,L,j.props)}function _t(j){return typeof j=="object"&&j!==null&&j.$$typeof===u}function dt(j){var L={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Z){return L[Z]})}var Lt=/\/+/g;function Wt(j,L){return typeof j=="object"&&j!==null&&j.key!=null?dt(""+j.key):L.toString(36)}function ut(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then($,$):(j.status="pending",j.then(function(L){j.status==="pending"&&(j.status="fulfilled",j.value=L)},function(L){j.status==="pending"&&(j.status="rejected",j.reason=L)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function C(j,L,Z,X,ce){var fe=typeof j;(fe==="undefined"||fe==="boolean")&&(j=null);var be=!1;if(j===null)be=!0;else switch(fe){case"bigint":case"string":case"number":be=!0;break;case"object":switch(j.$$typeof){case u:case c:be=!0;break;case T:return be=j._init,C(be(j._payload),L,Z,X,ce)}}if(be)return ce=ce(j),be=X===""?"."+Wt(j,0):X,ie(ce)?(Z="",be!=null&&(Z=be.replace(Lt,"$&/")+"/"),C(ce,L,Z,"",function(Ln){return Ln})):ce!=null&&(_t(ce)&&(ce=At(ce,Z+(ce.key==null||j&&j.key===ce.key?"":(""+ce.key).replace(Lt,"$&/")+"/")+be)),L.push(ce)),1;be=0;var ht=X===""?".":X+":";if(ie(j))for(var $e=0;$e<j.length;$e++)X=j[$e],fe=ht+Wt(X,$e),be+=C(X,L,Z,fe,ce);else if($e=q(j),typeof $e=="function")for(j=$e.call(j),$e=0;!(X=j.next()).done;)X=X.value,fe=ht+Wt(X,$e++),be+=C(X,L,Z,fe,ce);else if(fe==="object"){if(typeof j.then=="function")return C(ut(j),L,Z,X,ce);throw L=String(j),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return be}function Q(j,L,Z){if(j==null)return j;var X=[],ce=0;return C(j,X,"","",function(fe){return L.call(Z,fe,ce++)}),X}function ne(j){if(j._status===-1){var L=j._result;L=L(),L.then(function(Z){(j._status===0||j._status===-1)&&(j._status=1,j._result=Z)},function(Z){(j._status===0||j._status===-1)&&(j._status=2,j._result=Z)}),j._status===-1&&(j._status=0,j._result=L)}if(j._status===1)return j._result.default;throw j._result}var xe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},Ae={map:Q,forEach:function(j,L,Z){Q(j,function(){L.apply(this,arguments)},Z)},count:function(j){var L=0;return Q(j,function(){L++}),L},toArray:function(j){return Q(j,function(L){return L})||[]},only:function(j){if(!_t(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ue.Activity=R,ue.Children=Ae,ue.Component=O,ue.Fragment=o,ue.Profiler=d,ue.PureComponent=ee,ue.StrictMode=r,ue.Suspense=b,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ue.__COMPILER_RUNTIME={__proto__:null,c:function(j){return P.H.useMemoCache(j)}},ue.cache=function(j){return function(){return j.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(j,L,Z){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var X=K({},j.props),ce=j.key;if(L!=null)for(fe in L.key!==void 0&&(ce=""+L.key),L)!He.call(L,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&L.ref===void 0||(X[fe]=L[fe]);var fe=arguments.length-2;if(fe===1)X.children=Z;else if(1<fe){for(var be=Array(fe),ht=0;ht<fe;ht++)be[ht]=arguments[ht+2];X.children=be}return Be(j.type,ce,X)},ue.createContext=function(j){return j={$$typeof:p,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:h,_context:j},j},ue.createElement=function(j,L,Z){var X,ce={},fe=null;if(L!=null)for(X in L.key!==void 0&&(fe=""+L.key),L)He.call(L,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ce[X]=L[X]);var be=arguments.length-2;if(be===1)ce.children=Z;else if(1<be){for(var ht=Array(be),$e=0;$e<be;$e++)ht[$e]=arguments[$e+2];ce.children=ht}if(j&&j.defaultProps)for(X in be=j.defaultProps,be)ce[X]===void 0&&(ce[X]=be[X]);return Be(j,fe,ce)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(j){return{$$typeof:v,render:j}},ue.isValidElement=_t,ue.lazy=function(j){return{$$typeof:T,_payload:{_status:-1,_result:j},_init:ne}},ue.memo=function(j,L){return{$$typeof:y,type:j,compare:L===void 0?null:L}},ue.startTransition=function(j){var L=P.T,Z={};P.T=Z;try{var X=j(),ce=P.S;ce!==null&&ce(Z,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then($,xe)}catch(fe){xe(fe)}finally{L!==null&&Z.types!==null&&(L.types=Z.types),P.T=L}},ue.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ue.use=function(j){return P.H.use(j)},ue.useActionState=function(j,L,Z){return P.H.useActionState(j,L,Z)},ue.useCallback=function(j,L){return P.H.useCallback(j,L)},ue.useContext=function(j){return P.H.useContext(j)},ue.useDebugValue=function(){},ue.useDeferredValue=function(j,L){return P.H.useDeferredValue(j,L)},ue.useEffect=function(j,L){return P.H.useEffect(j,L)},ue.useEffectEvent=function(j){return P.H.useEffectEvent(j)},ue.useId=function(){return P.H.useId()},ue.useImperativeHandle=function(j,L,Z){return P.H.useImperativeHandle(j,L,Z)},ue.useInsertionEffect=function(j,L){return P.H.useInsertionEffect(j,L)},ue.useLayoutEffect=function(j,L){return P.H.useLayoutEffect(j,L)},ue.useMemo=function(j,L){return P.H.useMemo(j,L)},ue.useOptimistic=function(j,L){return P.H.useOptimistic(j,L)},ue.useReducer=function(j,L,Z){return P.H.useReducer(j,L,Z)},ue.useRef=function(j){return P.H.useRef(j)},ue.useState=function(j){return P.H.useState(j)},ue.useSyncExternalStore=function(j,L,Z){return P.H.useSyncExternalStore(j,L,Z)},ue.useTransition=function(){return P.H.useTransition()},ue.version="19.2.8",ue}var cm;function mo(){return cm||(cm=1,Jr.exports=fv()),Jr.exports}var B=mo(),Wr={exports:{}},ci={},Ir={exports:{}},Fr={};var um;function dv(){return um||(um=1,(function(u){function c(C,Q){var ne=C.length;C.push(Q);e:for(;0<ne;){var xe=ne-1>>>1,Ae=C[xe];if(0<d(Ae,Q))C[xe]=Q,C[ne]=Ae,ne=xe;else break e}}function o(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var Q=C[0],ne=C.pop();if(ne!==Q){C[0]=ne;e:for(var xe=0,Ae=C.length,j=Ae>>>1;xe<j;){var L=2*(xe+1)-1,Z=C[L],X=L+1,ce=C[X];if(0>d(Z,ne))X<Ae&&0>d(ce,Z)?(C[xe]=ce,C[X]=ne,xe=X):(C[xe]=Z,C[L]=ne,xe=L);else if(X<Ae&&0>d(ce,ne))C[xe]=ce,C[X]=ne,xe=X;else break e}}return Q}function d(C,Q){var ne=C.sortIndex-Q.sortIndex;return ne!==0?ne:C.id-Q.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var p=Date,v=p.now();u.unstable_now=function(){return p.now()-v}}var b=[],y=[],T=1,R=null,_=3,q=!1,G=!1,K=!1,I=!1,O=typeof setTimeout=="function"?setTimeout:null,ke=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;function ae(C){for(var Q=o(y);Q!==null;){if(Q.callback===null)r(y);else if(Q.startTime<=C)r(y),Q.sortIndex=Q.expirationTime,c(b,Q);else break;Q=o(y)}}function ie(C){if(K=!1,ae(C),!G)if(o(b)!==null)G=!0,$||($=!0,dt());else{var Q=o(y);Q!==null&&ut(ie,Q.startTime-C)}}var $=!1,P=-1,He=5,Be=-1;function At(){return I?!0:!(u.unstable_now()-Be<He)}function _t(){if(I=!1,$){var C=u.unstable_now();Be=C;var Q=!0;try{e:{G=!1,K&&(K=!1,ke(P),P=-1),q=!0;var ne=_;try{t:{for(ae(C),R=o(b);R!==null&&!(R.expirationTime>C&&At());){var xe=R.callback;if(typeof xe=="function"){R.callback=null,_=R.priorityLevel;var Ae=xe(R.expirationTime<=C);if(C=u.unstable_now(),typeof Ae=="function"){R.callback=Ae,ae(C),Q=!0;break t}R===o(b)&&r(b),ae(C)}else r(b);R=o(b)}if(R!==null)Q=!0;else{var j=o(y);j!==null&&ut(ie,j.startTime-C),Q=!1}}break e}finally{R=null,_=ne,q=!1}Q=void 0}}finally{Q?dt():$=!1}}}var dt;if(typeof ee=="function")dt=function(){ee(_t)};else if(typeof MessageChannel<"u"){var Lt=new MessageChannel,Wt=Lt.port2;Lt.port1.onmessage=_t,dt=function(){Wt.postMessage(null)}}else dt=function(){O(_t,0)};function ut(C,Q){P=O(function(){C(u.unstable_now())},Q)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(C){C.callback=null},u.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):He=0<C?Math.floor(1e3/C):5},u.unstable_getCurrentPriorityLevel=function(){return _},u.unstable_next=function(C){switch(_){case 1:case 2:case 3:var Q=3;break;default:Q=_}var ne=_;_=Q;try{return C()}finally{_=ne}},u.unstable_requestPaint=function(){I=!0},u.unstable_runWithPriority=function(C,Q){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var ne=_;_=C;try{return Q()}finally{_=ne}},u.unstable_scheduleCallback=function(C,Q,ne){var xe=u.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?xe+ne:xe):ne=xe,C){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=ne+Ae,C={id:T++,callback:Q,priorityLevel:C,startTime:ne,expirationTime:Ae,sortIndex:-1},ne>xe?(C.sortIndex=ne,c(y,C),o(b)===null&&C===o(y)&&(K?(ke(P),P=-1):K=!0,ut(ie,ne-xe))):(C.sortIndex=Ae,c(b,C),G||q||(G=!0,$||($=!0,dt()))),C},u.unstable_shouldYield=At,u.unstable_wrapCallback=function(C){var Q=_;return function(){var ne=_;_=Q;try{return C.apply(this,arguments)}finally{_=ne}}}})(Fr)),Fr}var rm;function hv(){return rm||(rm=1,Ir.exports=dv()),Ir.exports}var Pr={exports:{}},Nt={};var om;function mv(){if(om)return Nt;om=1;var u=mo();function c(b){var y="https://react.dev/errors/"+b;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)y+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+b+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(c(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(b,y,T){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:R==null?null:""+R,children:b,containerInfo:y,implementation:T}}var p=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(b,y){if(b==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Nt.createPortal=function(b,y){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(c(299));return h(b,y,null,T)},Nt.flushSync=function(b){var y=p.T,T=r.p;try{if(p.T=null,r.p=2,b)return b()}finally{p.T=y,r.p=T,r.d.f()}},Nt.preconnect=function(b,y){typeof b=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(b,y))},Nt.prefetchDNS=function(b){typeof b=="string"&&r.d.D(b)},Nt.preinit=function(b,y){if(typeof b=="string"&&y&&typeof y.as=="string"){var T=y.as,R=v(T,y.crossOrigin),_=typeof y.integrity=="string"?y.integrity:void 0,q=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;T==="style"?r.d.S(b,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:R,integrity:_,fetchPriority:q}):T==="script"&&r.d.X(b,{crossOrigin:R,integrity:_,fetchPriority:q,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Nt.preinitModule=function(b,y){if(typeof b=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var T=v(y.as,y.crossOrigin);r.d.M(b,{crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(b)},Nt.preload=function(b,y){if(typeof b=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var T=y.as,R=v(T,y.crossOrigin);r.d.L(b,T,{crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Nt.preloadModule=function(b,y){if(typeof b=="string")if(y){var T=v(y.as,y.crossOrigin);r.d.m(b,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(b)},Nt.requestFormReset=function(b){r.d.r(b)},Nt.unstable_batchedUpdates=function(b,y){return b(y)},Nt.useFormState=function(b,y,T){return p.H.useFormState(b,y,T)},Nt.useFormStatus=function(){return p.H.useHostTransitionStatus()},Nt.version="19.2.8",Nt}var fm;function pv(){if(fm)return Pr.exports;fm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Pr.exports=mv(),Pr.exports}var dm;function gv(){if(dm)return ci;dm=1;var u=hv(),c=mo(),o=pv();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return b(a),e;if(i===n)return b(a),t;i=i.sibling}throw Error(r(188))}if(l.return!==n.return)l=a,n=i;else{for(var f=!1,m=a.child;m;){if(m===l){f=!0,l=a,n=i;break}if(m===n){f=!0,n=a,l=i;break}m=m.sibling}if(!f){for(m=i.child;m;){if(m===l){f=!0,l=i,n=a;break}if(m===n){f=!0,n=i,l=a;break}m=m.sibling}if(!f)throw Error(r(189))}}if(l.alternate!==n)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var R=Object.assign,_=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Be=Symbol.for("react.activity"),At=Symbol.for("react.memo_cache_sentinel"),_t=Symbol.iterator;function dt(e){return e===null||typeof e!="object"?null:(e=_t&&e[_t]||e["@@iterator"],typeof e=="function"?e:null)}var Lt=Symbol.for("react.client.reference");function Wt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Lt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case K:return"Fragment";case O:return"Profiler";case I:return"StrictMode";case ie:return"Suspense";case $:return"SuspenseList";case Be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case G:return"Portal";case ee:return e.displayName||"Context";case ke:return(e._context.displayName||"Context")+".Consumer";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:Wt(e.type)||"Memo";case He:t=e._payload,e=e._init;try{return Wt(e(t))}catch{}}return null}var ut=Array.isArray,C=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},xe=[],Ae=-1;function j(e){return{current:e}}function L(e){0>Ae||(e.current=xe[Ae],xe[Ae]=null,Ae--)}function Z(e,t){Ae++,xe[Ae]=e.current,e.current=t}var X=j(null),ce=j(null),fe=j(null),be=j(null);function ht(e,t){switch(Z(fe,t),Z(ce,e),Z(X,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Eh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Eh(t),e=Ah(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(X),Z(X,e)}function $e(){L(X),L(ce),L(fe)}function Ln(e){e.memoizedState!==null&&Z(be,e);var t=X.current,l=Ah(t,e.type);t!==l&&(Z(ce,e),Z(X,l))}function Hn(e){ce.current===e&&(L(X),L(ce)),be.current===e&&(L(be),li._currentValue=ne)}var as,ss;function Se(e){if(as===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);as=t&&t[1]||"",ss=-1<l.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+as+e+ss}var Bn=!1;function Oe(e,t){if(!e||Bn)return"";Bn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(z){var A=z}Reflect.construct(e,[],U)}else{try{U.call()}catch(z){A=z}e.call(U.prototype)}}else{try{throw Error()}catch(z){A=z}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(z){if(z&&A&&typeof z.stack=="string")return[z.stack,A.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),f=i[0],m=i[1];if(f&&m){var x=f.split(`
4
+ `),E=m.split(`
5
+ `);for(a=n=0;n<x.length&&!x[n].includes("DetermineComponentFrameRoot");)n++;for(;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;if(n===x.length||a===E.length)for(n=x.length-1,a=E.length-1;1<=n&&0<=a&&x[n]!==E[a];)a--;for(;1<=n&&0<=a;n--,a--)if(x[n]!==E[a]){if(n!==1||a!==1)do if(n--,a--,0>a||x[n]!==E[a]){var D=`
6
+ `+x[n].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=n&&0<=a);break}}}finally{Bn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Se(l):""}function is(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se("Lazy");case 13:return e.child!==t&&t!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Se("Activity");default:return""}}function Ht(e){try{var t="",l=null;do t+=is(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
7
+ Error generating stack: `+n.message+`
8
+ `+n.stack}}var Dl=Object.prototype.hasOwnProperty,ma=u.unstable_scheduleCallback,It=u.unstable_cancelCallback,xi=u.unstable_shouldYield,cs=u.unstable_requestPaint,St=u.unstable_now,bi=u.unstable_getCurrentPriorityLevel,fl=u.unstable_ImmediatePriority,Nl=u.unstable_UserBlockingPriority,Ft=u.unstable_NormalPriority,us=u.unstable_LowPriority,qn=u.unstable_IdlePriority,pa=u.log,rs=u.unstable_setDisableYieldValue,Pt=null,rt=null;function Bt(e){if(typeof pa=="function"&&rs(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Pt,e)}catch{}}var jt=Math.clz32?Math.clz32:os,Si=Math.log,ji=Math.LN2;function os(e){return e>>>=0,e===0?32:31-(Si(e)/ji|0)|0}var ln=256,dl=262144,hl=4194304;function wl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Yn(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=n&134217727;return m!==0?(n=m&~i,n!==0?a=wl(n):(f&=m,f!==0?a=wl(f):l||(l=m&~e,l!==0&&(a=wl(l))))):(m=n&~i,m!==0?a=wl(m):f!==0?a=wl(f):l||(l=n&~e,l!==0&&(a=wl(l)))),a===0?0:t!==0&&t!==a&&(t&i)===0&&(i=a&-a,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:a}function nn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ni(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fs(){var e=hl;return hl<<=1,(hl&62914560)===0&&(hl=4194304),e}function an(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function el(e,t,l,n,a,i){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,x=e.expirationTimes,E=e.hiddenUpdates;for(l=f&~l;0<l;){var D=31-jt(l),U=1<<D;m[D]=0,x[D]=-1;var A=E[D];if(A!==null)for(E[D]=null,D=0;D<A.length;D++){var z=A[D];z!==null&&(z.lane&=-536870913)}l&=~U}n!==0&&Cl(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function Cl(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-jt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function ga(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-jt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function va(e,t){var l=t&-t;return l=(l&42)!==0?1:ds(l),(l&(e.suspendedLanes|t))!==0?0:l}function ds(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 ya(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function xa(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Ih(e.type))}function hs(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var tl=Math.random().toString(36).slice(2),at="__reactFiber$"+tl,We="__reactProps$"+tl,sn="__reactContainer$"+tl,ms="__reactEvents$"+tl,Qe="__reactListeners$"+tl,cn="__reactHandles$"+tl,wi="__reactResources$"+tl,un="__reactMarker$"+tl;function Gn(e){delete e[at],delete e[We],delete e[ms],delete e[Qe],delete e[cn]}function Ml(e){var t=e[at];if(t)return t;for(var l=e.parentNode;l;){if(t=l[sn]||l[at]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Mh(e);e!==null;){if(l=e[at])return l;e=Mh(e)}return t}e=l,l=e.parentNode}return null}function Ul(e){if(e=e[at]||e[sn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function rn(e){var t=e[wi];return t||(t=e[wi]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[un]=!0}var Ti=new Set,ml={};function kl(e,t){pl(e,t),pl(e+"Capture",t)}function pl(e,t){for(ml[e]=t,e=0;e<t.length;e++)Ti.add(t[e])}var Ll=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]*$"),ki={},$n={};function Ei(e){return Dl.call($n,e)?!0:Dl.call(ki,e)?!1:Ll.test(e)?$n[e]=!0:(ki[e]=!0,!1)}function ba(e,t,l){if(Ei(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Qn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function ll(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ja(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(f){l=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function El(e){if(!e._valueTracker){var t=Sa(e)?"checked":"value";e._valueTracker=ja(e,t,""+e[t])}}function on(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=Sa(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function kt(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Vc=/[\n"\\]/g;function pt(e){return e.replace(Vc,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ps(e,t,l,n,a,i,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mt(t)):e.value!==""+mt(t)&&(e.value=""+mt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Na(e,f,mt(t)):l!=null?Na(e,f,mt(l)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+mt(m):e.removeAttribute("name")}function gs(e,t,l,n,a,i,f,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){El(e);return}l=l!=null?""+mt(l):"",t=t!=null?""+mt(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=m?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),El(e)}function Na(e,t,l){t==="number"&&kt(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Hl(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+mt(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function vs(e,t,l){if(t!=null&&(t=""+mt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+mt(l):""}function Ai(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(r(92));if(ut(n)){if(1<n.length)throw Error(r(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=mt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),El(e)}function Bl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Kc=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 _i(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||Kc.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ys(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&_i(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&_i(e,i,t[i])}function fn(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 xs=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Y=/^[\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 g(e){return Y.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function N(){}var H=null;function V(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var J=null,le=null;function _e(e){var t=Ul(e);if(t&&(e=t.stateNode)){var l=e[We]||null;e:switch(e=t.stateNode,t.type){case"input":if(ps(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+pt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[We]||null;if(!a)throw Error(r(90));ps(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&on(n)}break e;case"textarea":vs(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Hl(e,!!l.multiple,t,!1)}}}var Ue=!1;function gt(e,t,l){if(Ue)return e(t,l);Ue=!0;try{var n=e(t);return n}finally{if(Ue=!1,(J!==null||le!==null)&&(gc(),J&&(t=J,e=le,le=J=null,_e(t),e)))for(t=0;t<e.length;t++)_e(e[t])}}function Fe(e,t){var l=e.stateNode;if(l===null)return null;var n=l[We]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),st=!1;if(qt)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){st=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{st=!1}var dn=null,Jc=null,zi=null;function Eo(){if(zi)return zi;var e,t=Jc,l=t.length,n,a="value"in dn?dn.value:dn.textContent,i=a.length;for(e=0;e<l&&t[e]===a[e];e++);var f=l-e;for(n=1;n<=f&&t[l-n]===a[i-n];n++);return zi=a.slice(e,1<n?1-n:void 0)}function Ri(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Oi(){return!0}function Ao(){return!1}function zt(e){function t(l,n,a,i,f){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Oi:Ao,this.isPropagationStopped=Ao,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Oi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Oi)},persist:function(){},isPersistent:Oi}),t}var Zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=zt(Zn),Ss=R({},Zn,{view:0,detail:0}),cp=zt(Ss),Wc,Ic,js,Ci=R({},Ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pc,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!==js&&(js&&e.type==="mousemove"?(Wc=e.screenX-js.screenX,Ic=e.screenY-js.screenY):Ic=Wc=0,js=e),Wc)},movementY:function(e){return"movementY"in e?e.movementY:Ic}}),_o=zt(Ci),up=R({},Ci,{dataTransfer:0}),rp=zt(up),op=R({},Ss,{relatedTarget:0}),Fc=zt(op),fp=R({},Zn,{animationName:0,elapsedTime:0,pseudoElement:0}),dp=zt(fp),hp=R({},Zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mp=zt(hp),pp=R({},Zn,{data:0}),zo=zt(pp),gp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vp={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"},yp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yp[e])?!!t[e]:!1}function Pc(){return xp}var bp=R({},Ss,{key:function(e){if(e.key){var t=gp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pc,charCode:function(e){return e.type==="keypress"?Ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sp=zt(bp),jp=R({},Ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ro=zt(jp),Np=R({},Ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pc}),wp=zt(Np),Tp=R({},Zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),kp=zt(Tp),Ep=R({},Ci,{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}),Ap=zt(Ep),_p=R({},Zn,{newState:0,oldState:0}),zp=zt(_p),Rp=[9,13,27,32],eu=qt&&"CompositionEvent"in window,Ns=null;qt&&"documentMode"in document&&(Ns=document.documentMode);var Op=qt&&"TextEvent"in window&&!Ns,Oo=qt&&(!eu||Ns&&8<Ns&&11>=Ns),Do=" ",Co=!1;function Mo(e,t){switch(e){case"keyup":return Rp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wa=!1;function Dp(e,t){switch(e){case"compositionend":return Uo(t);case"keypress":return t.which!==32?null:(Co=!0,Do);case"textInput":return e=t.data,e===Do&&Co?null:e;default:return null}}function Cp(e,t){if(wa)return e==="compositionend"||!eu&&Mo(e,t)?(e=Eo(),zi=Jc=dn=null,wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Oo&&t.locale!=="ko"?null:t.data;default:return null}}var Mp={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 Lo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Mp[e.type]:t==="textarea"}function Ho(e,t,l,n){J?le?le.push(n):le=[n]:J=n,t=Nc(t,"onChange"),0<t.length&&(l=new Di("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var ws=null,Ts=null;function Up(e){Sh(e,0)}function Mi(e){var t=Xn(e);if(on(t))return e}function Bo(e,t){if(e==="change")return t}var qo=!1;if(qt){var tu;if(qt){var lu="oninput"in document;if(!lu){var Yo=document.createElement("div");Yo.setAttribute("oninput","return;"),lu=typeof Yo.oninput=="function"}tu=lu}else tu=!1;qo=tu&&(!document.documentMode||9<document.documentMode)}function Go(){ws&&(ws.detachEvent("onpropertychange",Xo),Ts=ws=null)}function Xo(e){if(e.propertyName==="value"&&Mi(Ts)){var t=[];Ho(t,Ts,e,V(e)),gt(Up,t)}}function Lp(e,t,l){e==="focusin"?(Go(),ws=t,Ts=l,ws.attachEvent("onpropertychange",Xo)):e==="focusout"&&Go()}function Hp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mi(Ts)}function Bp(e,t){if(e==="click")return Mi(t)}function qp(e,t){if(e==="input"||e==="change")return Mi(t)}function Yp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:Yp;function ks(e,t){if(Yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Dl.call(t,a)||!Yt(e[a],t[a]))return!1}return!0}function $o(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qo(e,t){var l=$o(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=$o(l)}}function Zo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kt(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=kt(e.document)}return t}function nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Gp=qt&&"documentMode"in document&&11>=document.documentMode,Ta=null,au=null,Es=null,su=!1;function Ko(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;su||Ta==null||Ta!==kt(n)||(n=Ta,"selectionStart"in n&&nu(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Es&&ks(Es,n)||(Es=n,n=Nc(au,"onSelect"),0<n.length&&(t=new Di("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=Ta)))}function Vn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ka={animationend:Vn("Animation","AnimationEnd"),animationiteration:Vn("Animation","AnimationIteration"),animationstart:Vn("Animation","AnimationStart"),transitionrun:Vn("Transition","TransitionRun"),transitionstart:Vn("Transition","TransitionStart"),transitioncancel:Vn("Transition","TransitionCancel"),transitionend:Vn("Transition","TransitionEnd")},iu={},Jo={};qt&&(Jo=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function Kn(e){if(iu[e])return iu[e];if(!ka[e])return e;var t=ka[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Jo)return iu[e]=t[l];return e}var Wo=Kn("animationend"),Io=Kn("animationiteration"),Fo=Kn("animationstart"),Xp=Kn("transitionrun"),$p=Kn("transitionstart"),Qp=Kn("transitioncancel"),Po=Kn("transitionend"),ef=new Map,cu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");cu.push("scrollEnd");function gl(e,t){ef.set(e,t),kl(t,[e])}var Ui=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},nl=[],Ea=0,uu=0;function Li(){for(var e=Ea,t=uu=Ea=0;t<e;){var l=nl[t];nl[t++]=null;var n=nl[t];nl[t++]=null;var a=nl[t];nl[t++]=null;var i=nl[t];if(nl[t++]=null,n!==null&&a!==null){var f=n.pending;f===null?a.next=a:(a.next=f.next,f.next=a),n.pending=a}i!==0&&tf(l,a,i)}}function Hi(e,t,l,n){nl[Ea++]=e,nl[Ea++]=t,nl[Ea++]=l,nl[Ea++]=n,uu|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function ru(e,t,l,n){return Hi(e,t,l,n),Bi(e)}function Jn(e,t){return Hi(e,null,null,t),Bi(e)}function tf(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=e.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-jt(l),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),i):null}function Bi(e){if(50<Js)throw Js=0,yr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Aa={};function Zp(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,t,l,n){return new Zp(e,t,l,n)}function ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ql(e,t){var l=e.alternate;return l===null?(l=Gt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function lf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qi(e,t,l,n,a,i){var f=0;if(n=e,typeof e=="function")ou(e)&&(f=1);else if(typeof e=="string")f=Ig(e,l,X.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Be:return e=Gt(31,l,t,a),e.elementType=Be,e.lanes=i,e;case K:return Wn(l.children,a,i,t);case I:f=8,a|=24;break;case O:return e=Gt(12,l,t,a|2),e.elementType=O,e.lanes=i,e;case ie:return e=Gt(13,l,t,a),e.elementType=ie,e.lanes=i,e;case $:return e=Gt(19,l,t,a),e.elementType=$,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ee:f=10;break e;case ke:f=9;break e;case ae:f=11;break e;case P:f=14;break e;case He:f=16,n=null;break e}f=29,l=Error(r(130,e===null?"null":typeof e,"")),n=null}return t=Gt(f,l,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Wn(e,t,l,n){return e=Gt(7,e,n,t),e.lanes=l,e}function fu(e,t,l){return e=Gt(6,e,null,t),e.lanes=l,e}function nf(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function du(e,t,l){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var af=new WeakMap;function al(e,t){if(typeof e=="object"&&e!==null){var l=af.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ht(t)},af.set(e,t),t)}return{value:e,source:t,stack:Ht(t)}}var _a=[],za=0,Yi=null,As=0,sl=[],il=0,hn=null,Al=1,_l="";function Yl(e,t){_a[za++]=As,_a[za++]=Yi,Yi=e,As=t}function sf(e,t,l){sl[il++]=Al,sl[il++]=_l,sl[il++]=hn,hn=e;var n=Al;e=_l;var a=32-jt(n)-1;n&=~(1<<a),l+=1;var i=32-jt(t)+a;if(30<i){var f=a-a%5;i=(n&(1<<f)-1).toString(32),n>>=f,a-=f,Al=1<<32-jt(t)+a|l<<a|n,_l=i+e}else Al=1<<i|l<<a|n,_l=e}function hu(e){e.return!==null&&(Yl(e,1),sf(e,1,0))}function mu(e){for(;e===Yi;)Yi=_a[--za],_a[za]=null,As=_a[--za],_a[za]=null;for(;e===hn;)hn=sl[--il],sl[il]=null,_l=sl[--il],sl[il]=null,Al=sl[--il],sl[il]=null}function cf(e,t){sl[il++]=Al,sl[il++]=_l,sl[il++]=hn,Al=t.id,_l=t.overflow,hn=e}var vt=null,qe=null,ve=!1,mn=null,cl=!1,pu=Error(r(519));function pn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _s(al(t,e)),pu}function uf(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[at]=e,t[We]=n,l){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(l=0;l<Is.length;l++)he(Is[l],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),gs(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Ai(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||Th(t.textContent,l)?(n.popover!=null&&(he("beforetoggle",t),he("toggle",t)),n.onScroll!=null&&he("scroll",t),n.onScrollEnd!=null&&he("scrollend",t),n.onClick!=null&&(t.onclick=N),t=!0):t=!1,t||pn(e,!0)}function rf(e){for(vt=e.return;vt;)switch(vt.tag){case 5:case 31:case 13:cl=!1;return;case 27:case 3:cl=!0;return;default:vt=vt.return}}function Ra(e){if(e!==vt)return!1;if(!ve)return rf(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Dr(e.type,e.memoizedProps)),l=!l),l&&qe&&pn(e),rf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));qe=Ch(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));qe=Ch(e)}else t===27?(t=qe,_n(e.type)?(e=Hr,Hr=null,qe=e):qe=t):qe=vt?rl(e.stateNode.nextSibling):null;return!0}function In(){qe=vt=null,ve=!1}function gu(){var e=mn;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),mn=null),e}function _s(e){mn===null?mn=[e]:mn.push(e)}var vu=j(null),Fn=null,Gl=null;function gn(e,t,l){Z(vu,t._currentValue),t._currentValue=l}function Xl(e){e._currentValue=vu.current,L(vu)}function yu(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function xu(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var f=a.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=a;for(var x=0;x<t.length;x++)if(m.context===t[x]){i.lanes|=l,m=i.alternate,m!==null&&(m.lanes|=l),yu(i.return,l,e),n||(f=null);break e}i=m.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(r(341));f.lanes|=l,i=f.alternate,i!==null&&(i.lanes|=l),yu(f,l,e),f=null}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===e){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}}function Oa(e,t,l,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var f=a.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var m=a.type;Yt(a.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(a===be.current){if(f=a.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(li):e=[li])}a=a.return}e!==null&&xu(t,e,l,n),t.flags|=262144}function Gi(e){for(e=e.firstContext;e!==null;){if(!Yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pn(e){Fn=e,Gl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return of(Fn,e)}function Xi(e,t){return Fn===null&&Pn(e),of(e,t)}function of(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Gl===null){if(e===null)throw Error(r(308));Gl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gl=Gl.next=t;return l}var Vp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Kp=u.unstable_scheduleCallback,Jp=u.unstable_NormalPriority,Pe={$$typeof:ee,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bu(){return{controller:new Vp,data:new Map,refCount:0}}function zs(e){e.refCount--,e.refCount===0&&Kp(Jp,function(){e.controller.abort()})}var Rs=null,Su=0,Da=0,Ca=null;function Wp(e,t){if(Rs===null){var l=Rs=[];Su=0,Da=wr(),Ca={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Su++,t.then(ff,ff),t}function ff(){if(--Su===0&&Rs!==null){Ca!==null&&(Ca.status="fulfilled");var e=Rs;Rs=null,Da=0,Ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ip(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var df=C.S;C.S=function(e,t){Jd=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Wp(e,t),df!==null&&df(e,t)};var ea=j(null);function ju(){var e=ea.current;return e!==null?e:Le.pooledCache}function $i(e,t){t===null?Z(ea,ea.current):Z(ea,t.pool)}function hf(){var e=ju();return e===null?null:{parent:Pe._currentValue,pool:e}}var Ma=Error(r(460)),Nu=Error(r(474)),Qi=Error(r(542)),Zi={then:function(){}};function mf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function pf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(N,N),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vf(e),e;default:if(typeof t.status=="string")t.then(N,N);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vf(e),e}throw la=t,Ma}}function ta(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(la=l,Ma):l}}var la=null;function gf(){if(la===null)throw Error(r(459));var e=la;return la=null,e}function vf(e){if(e===Ma||e===Qi)throw Error(r(483))}var Ua=null,Os=0;function Vi(e){var t=Os;return Os+=1,Ua===null&&(Ua=[]),pf(Ua,e,t)}function Ds(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ki(e,t){throw t.$$typeof===_?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function yf(e){function t(w,S){if(e){var k=w.deletions;k===null?(w.deletions=[S],w.flags|=16):k.push(S)}}function l(w,S){if(!e)return null;for(;S!==null;)t(w,S),S=S.sibling;return null}function n(w){for(var S=new Map;w!==null;)w.key!==null?S.set(w.key,w):S.set(w.index,w),w=w.sibling;return S}function a(w,S){return w=ql(w,S),w.index=0,w.sibling=null,w}function i(w,S,k){return w.index=k,e?(k=w.alternate,k!==null?(k=k.index,k<S?(w.flags|=67108866,S):k):(w.flags|=67108866,S)):(w.flags|=1048576,S)}function f(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function m(w,S,k,M){return S===null||S.tag!==6?(S=fu(k,w.mode,M),S.return=w,S):(S=a(S,k),S.return=w,S)}function x(w,S,k,M){var te=k.type;return te===K?D(w,S,k.props.children,M,k.key):S!==null&&(S.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===He&&ta(te)===S.type)?(S=a(S,k.props),Ds(S,k),S.return=w,S):(S=qi(k.type,k.key,k.props,null,w.mode,M),Ds(S,k),S.return=w,S)}function E(w,S,k,M){return S===null||S.tag!==4||S.stateNode.containerInfo!==k.containerInfo||S.stateNode.implementation!==k.implementation?(S=du(k,w.mode,M),S.return=w,S):(S=a(S,k.children||[]),S.return=w,S)}function D(w,S,k,M,te){return S===null||S.tag!==7?(S=Wn(k,w.mode,M,te),S.return=w,S):(S=a(S,k),S.return=w,S)}function U(w,S,k){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=fu(""+S,w.mode,k),S.return=w,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case q:return k=qi(S.type,S.key,S.props,null,w.mode,k),Ds(k,S),k.return=w,k;case G:return S=du(S,w.mode,k),S.return=w,S;case He:return S=ta(S),U(w,S,k)}if(ut(S)||dt(S))return S=Wn(S,w.mode,k,null),S.return=w,S;if(typeof S.then=="function")return U(w,Vi(S),k);if(S.$$typeof===ee)return U(w,Xi(w,S),k);Ki(w,S)}return null}function A(w,S,k,M){var te=S!==null?S.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return te!==null?null:m(w,S,""+k,M);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case q:return k.key===te?x(w,S,k,M):null;case G:return k.key===te?E(w,S,k,M):null;case He:return k=ta(k),A(w,S,k,M)}if(ut(k)||dt(k))return te!==null?null:D(w,S,k,M,null);if(typeof k.then=="function")return A(w,S,Vi(k),M);if(k.$$typeof===ee)return A(w,S,Xi(w,k),M);Ki(w,k)}return null}function z(w,S,k,M,te){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return w=w.get(k)||null,m(S,w,""+M,te);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case q:return w=w.get(M.key===null?k:M.key)||null,x(S,w,M,te);case G:return w=w.get(M.key===null?k:M.key)||null,E(S,w,M,te);case He:return M=ta(M),z(w,S,k,M,te)}if(ut(M)||dt(M))return w=w.get(k)||null,D(S,w,M,te,null);if(typeof M.then=="function")return z(w,S,k,Vi(M),te);if(M.$$typeof===ee)return z(w,S,k,Xi(S,M),te);Ki(S,M)}return null}function W(w,S,k,M){for(var te=null,je=null,F=S,oe=S=0,ge=null;F!==null&&oe<k.length;oe++){F.index>oe?(ge=F,F=null):ge=F.sibling;var Ne=A(w,F,k[oe],M);if(Ne===null){F===null&&(F=ge);break}e&&F&&Ne.alternate===null&&t(w,F),S=i(Ne,S,oe),je===null?te=Ne:je.sibling=Ne,je=Ne,F=ge}if(oe===k.length)return l(w,F),ve&&Yl(w,oe),te;if(F===null){for(;oe<k.length;oe++)F=U(w,k[oe],M),F!==null&&(S=i(F,S,oe),je===null?te=F:je.sibling=F,je=F);return ve&&Yl(w,oe),te}for(F=n(F);oe<k.length;oe++)ge=z(F,w,oe,k[oe],M),ge!==null&&(e&&ge.alternate!==null&&F.delete(ge.key===null?oe:ge.key),S=i(ge,S,oe),je===null?te=ge:je.sibling=ge,je=ge);return e&&F.forEach(function(Cn){return t(w,Cn)}),ve&&Yl(w,oe),te}function se(w,S,k,M){if(k==null)throw Error(r(151));for(var te=null,je=null,F=S,oe=S=0,ge=null,Ne=k.next();F!==null&&!Ne.done;oe++,Ne=k.next()){F.index>oe?(ge=F,F=null):ge=F.sibling;var Cn=A(w,F,Ne.value,M);if(Cn===null){F===null&&(F=ge);break}e&&F&&Cn.alternate===null&&t(w,F),S=i(Cn,S,oe),je===null?te=Cn:je.sibling=Cn,je=Cn,F=ge}if(Ne.done)return l(w,F),ve&&Yl(w,oe),te;if(F===null){for(;!Ne.done;oe++,Ne=k.next())Ne=U(w,Ne.value,M),Ne!==null&&(S=i(Ne,S,oe),je===null?te=Ne:je.sibling=Ne,je=Ne);return ve&&Yl(w,oe),te}for(F=n(F);!Ne.done;oe++,Ne=k.next())Ne=z(F,w,oe,Ne.value,M),Ne!==null&&(e&&Ne.alternate!==null&&F.delete(Ne.key===null?oe:Ne.key),S=i(Ne,S,oe),je===null?te=Ne:je.sibling=Ne,je=Ne);return e&&F.forEach(function(uv){return t(w,uv)}),ve&&Yl(w,oe),te}function Me(w,S,k,M){if(typeof k=="object"&&k!==null&&k.type===K&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case q:e:{for(var te=k.key;S!==null;){if(S.key===te){if(te=k.type,te===K){if(S.tag===7){l(w,S.sibling),M=a(S,k.props.children),M.return=w,w=M;break e}}else if(S.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===He&&ta(te)===S.type){l(w,S.sibling),M=a(S,k.props),Ds(M,k),M.return=w,w=M;break e}l(w,S);break}else t(w,S);S=S.sibling}k.type===K?(M=Wn(k.props.children,w.mode,M,k.key),M.return=w,w=M):(M=qi(k.type,k.key,k.props,null,w.mode,M),Ds(M,k),M.return=w,w=M)}return f(w);case G:e:{for(te=k.key;S!==null;){if(S.key===te)if(S.tag===4&&S.stateNode.containerInfo===k.containerInfo&&S.stateNode.implementation===k.implementation){l(w,S.sibling),M=a(S,k.children||[]),M.return=w,w=M;break e}else{l(w,S);break}else t(w,S);S=S.sibling}M=du(k,w.mode,M),M.return=w,w=M}return f(w);case He:return k=ta(k),Me(w,S,k,M)}if(ut(k))return W(w,S,k,M);if(dt(k)){if(te=dt(k),typeof te!="function")throw Error(r(150));return k=te.call(k),se(w,S,k,M)}if(typeof k.then=="function")return Me(w,S,Vi(k),M);if(k.$$typeof===ee)return Me(w,S,Xi(w,k),M);Ki(w,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,S!==null&&S.tag===6?(l(w,S.sibling),M=a(S,k),M.return=w,w=M):(l(w,S),M=fu(k,w.mode,M),M.return=w,w=M),f(w)):l(w,S)}return function(w,S,k,M){try{Os=0;var te=Me(w,S,k,M);return Ua=null,te}catch(F){if(F===Ma||F===Qi)throw F;var je=Gt(29,F,null,w.mode);return je.lanes=M,je.return=w,je}}}var na=yf(!0),xf=yf(!1),vn=!1;function wu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function yn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xn(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ee&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Bi(e),tf(e,null,l),t}return Hi(e,n,t,l),Bi(e)}function Cs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,ga(e,l)}}function ku(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=f:i=i.next=f,l=l.next}while(l!==null);i===null?a=i=t:i=i.next=t}else a=i=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Eu=!1;function Ms(){if(Eu){var e=Ca;if(e!==null)throw e}}function Us(e,t,l,n){Eu=!1;var a=e.updateQueue;vn=!1;var i=a.firstBaseUpdate,f=a.lastBaseUpdate,m=a.shared.pending;if(m!==null){a.shared.pending=null;var x=m,E=x.next;x.next=null,f===null?i=E:f.next=E,f=x;var D=e.alternate;D!==null&&(D=D.updateQueue,m=D.lastBaseUpdate,m!==f&&(m===null?D.firstBaseUpdate=E:m.next=E,D.lastBaseUpdate=x))}if(i!==null){var U=a.baseState;f=0,D=E=x=null,m=i;do{var A=m.lane&-536870913,z=A!==m.lane;if(z?(pe&A)===A:(n&A)===A){A!==0&&A===Da&&(Eu=!0),D!==null&&(D=D.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var W=e,se=m;A=t;var Me=l;switch(se.tag){case 1:if(W=se.payload,typeof W=="function"){U=W.call(Me,U,A);break e}U=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=se.payload,A=typeof W=="function"?W.call(Me,U,A):W,A==null)break e;U=R({},U,A);break e;case 2:vn=!0}}A=m.callback,A!==null&&(e.flags|=64,z&&(e.flags|=8192),z=a.callbacks,z===null?a.callbacks=[A]:z.push(A))}else z={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},D===null?(E=D=z,x=U):D=D.next=z,f|=A;if(m=m.next,m===null){if(m=a.shared.pending,m===null)break;z=m,m=z.next,z.next=null,a.lastBaseUpdate=z,a.shared.pending=null}}while(!0);D===null&&(x=U),a.baseState=x,a.firstBaseUpdate=E,a.lastBaseUpdate=D,i===null&&(a.shared.lanes=0),wn|=f,e.lanes=f,e.memoizedState=U}}function bf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Sf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)bf(l[e],t)}var La=j(null),Ji=j(0);function jf(e,t){e=Fl,Z(Ji,e),Z(La,t),Fl=e|t.baseLanes}function Au(){Z(Ji,Fl),Z(La,La.current)}function _u(){Fl=Ji.current,L(La),L(Ji)}var Xt=j(null),ul=null;function bn(e){var t=e.alternate;Z(Ke,Ke.current&1),Z(Xt,e),ul===null&&(t===null||La.current!==null||t.memoizedState!==null)&&(ul=e)}function zu(e){Z(Ke,Ke.current),Z(Xt,e),ul===null&&(ul=e)}function Nf(e){e.tag===22?(Z(Ke,Ke.current),Z(Xt,e),ul===null&&(ul=e)):Sn()}function Sn(){Z(Ke,Ke.current),Z(Xt,Xt.current)}function $t(e){L(Xt),ul===e&&(ul=null),L(Ke)}var Ke=j(0);function Wi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ur(l)||Lr(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $l=0,re=null,De=null,et=null,Ii=!1,Ha=!1,aa=!1,Fi=0,Ls=0,Ba=null,Fp=0;function Ze(){throw Error(r(321))}function Ru(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Yt(e[l],t[l]))return!1;return!0}function Ou(e,t,l,n,a,i){return $l=i,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?id:Vu,aa=!1,i=l(n,a),aa=!1,Ha&&(i=Tf(t,l,n,a)),wf(e),i}function wf(e){C.H=qs;var t=De!==null&&De.next!==null;if($l=0,et=De=re=null,Ii=!1,Ls=0,Ba=null,t)throw Error(r(300));e===null||tt||(e=e.dependencies,e!==null&&Gi(e)&&(tt=!0))}function Tf(e,t,l,n){re=e;var a=0;do{if(Ha&&(Ba=null),Ls=0,Ha=!1,25<=a)throw Error(r(301));if(a+=1,et=De=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}C.H=cd,i=t(l,n)}while(Ha);return i}function Pp(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?Hs(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(re.flags|=1024),t}function Du(){var e=Fi!==0;return Fi=0,e}function Cu(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Mu(e){if(Ii){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ii=!1}$l=0,et=De=re=null,Ha=!1,Ls=Fi=0,Ba=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?re.memoizedState=et=e:et=et.next=e,et}function Je(){if(De===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=et===null?re.memoizedState:et.next;if(t!==null)et=t,De=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},et===null?re.memoizedState=et=e:et=et.next=e}return et}function Pi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hs(e){var t=Ls;return Ls+=1,Ba===null&&(Ba=[]),e=pf(Ba,e,t),t=re,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?id:Vu),e}function ec(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hs(e);if(e.$$typeof===ee)return yt(e)}throw Error(r(438,String(e)))}function Uu(e){var t=null,l=re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=re.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Pi(),re.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=At;return t.index++,l}function Ql(e,t){return typeof t=="function"?t(e):t}function tc(e){var t=Je();return Lu(t,De,e)}function Lu(e,t,l){var n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=l;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var f=a.next;a.next=i.next,i.next=f}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var m=f=null,x=null,E=t,D=!1;do{var U=E.lane&-536870913;if(U!==E.lane?(pe&U)===U:($l&U)===U){var A=E.revertLane;if(A===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),U===Da&&(D=!0);else if(($l&A)===A){E=E.next,A===Da&&(D=!0);continue}else U={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},x===null?(m=x=U,f=i):x=x.next=U,re.lanes|=A,wn|=A;U=E.action,aa&&l(i,U),i=E.hasEagerState?E.eagerState:l(i,U)}else A={lane:U,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},x===null?(m=x=A,f=i):x=x.next=A,re.lanes|=U,wn|=U;E=E.next}while(E!==null&&E!==t);if(x===null?f=i:x.next=m,!Yt(i,e.memoizedState)&&(tt=!0,D&&(l=Ca,l!==null)))throw l;e.memoizedState=i,e.baseState=f,e.baseQueue=x,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Hu(e){var t=Je(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,i=t.memoizedState;if(a!==null){l.pending=null;var f=a=a.next;do i=e(i,f.action),f=f.next;while(f!==a);Yt(i,t.memoizedState)||(tt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function kf(e,t,l){var n=re,a=Je(),i=ve;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var f=!Yt((De||a).memoizedState,l);if(f&&(a.memoizedState=l,tt=!0),a=a.queue,Yu(_f.bind(null,n,a,e),[e]),a.getSnapshot!==t||f||et!==null&&et.memoizedState.tag&1){if(n.flags|=2048,qa(9,{destroy:void 0},Af.bind(null,n,a,l,t),null),Le===null)throw Error(r(349));i||($l&127)!==0||Ef(n,t,l)}return l}function Ef(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=re.updateQueue,t===null?(t=Pi(),re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Af(e,t,l,n){t.value=l,t.getSnapshot=n,zf(t)&&Rf(e)}function _f(e,t,l){return l(function(){zf(t)&&Rf(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Yt(e,l)}catch{return!0}}function Rf(e){var t=Jn(e,2);t!==null&&Mt(t,e,2)}function Bu(e){var t=Et();if(typeof e=="function"){var l=e;if(e=l(),aa){Bt(!0);try{l()}finally{Bt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:e},t}function Of(e,t,l,n){return e.baseState=l,Lu(e,De,typeof n=="function"?n:Ql)}function eg(e,t,l,n,a){if(ac(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};C.T!==null?l(!0):i.isTransition=!1,n(i),l=t.pending,l===null?(i.next=t.pending=i,Df(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Df(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=C.T,f={};C.T=f;try{var m=l(a,n),x=C.S;x!==null&&x(f,m),Cf(e,t,m)}catch(E){qu(e,t,E)}finally{i!==null&&f.types!==null&&(i.types=f.types),C.T=i}}else try{i=l(a,n),Cf(e,t,i)}catch(E){qu(e,t,E)}}function Cf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Mf(e,t,n)},function(n){return qu(e,t,n)}):Mf(e,t,l)}function Mf(e,t,l){t.status="fulfilled",t.value=l,Uf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Df(e,l)))}function qu(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,Uf(t),t=t.next;while(t!==n)}e.action=null}function Uf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lf(e,t){return t}function Hf(e,t){if(ve){var l=Le.formState;if(l!==null){e:{var n=re;if(ve){if(qe){t:{for(var a=qe,i=cl;a.nodeType!==8;){if(!i){a=null;break t}if(a=rl(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){qe=rl(a.nextSibling),n=a.data==="F!";break e}}pn(n)}n=!1}n&&(t=l[0])}}return l=Et(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lf,lastRenderedState:t},l.queue=n,l=nd.bind(null,re,n),n.dispatch=l,n=Bu(!1),i=Zu.bind(null,re,!1,n.queue),n=Et(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=eg.bind(null,re,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function Bf(e){var t=Je();return qf(t,De,e)}function qf(e,t,l){if(t=Lu(e,t,Lf)[0],e=tc(Ql)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Hs(t)}catch(f){throw f===Ma?Qi:f}else n=t;t=Je();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(re.flags|=2048,qa(9,{destroy:void 0},tg.bind(null,a,l),null)),[n,i,e]}function tg(e,t){e.action=t}function Yf(e){var t=Je(),l=De;if(l!==null)return qf(t,l,e);Je(),t=t.memoizedState,l=Je();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function qa(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=re.updateQueue,t===null&&(t=Pi(),re.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function Gf(){return Je().memoizedState}function lc(e,t,l,n){var a=Et();re.flags|=e,a.memoizedState=qa(1|t,{destroy:void 0},l,n===void 0?null:n)}function nc(e,t,l,n){var a=Je();n=n===void 0?null:n;var i=a.memoizedState.inst;De!==null&&n!==null&&Ru(n,De.memoizedState.deps)?a.memoizedState=qa(t,i,l,n):(re.flags|=e,a.memoizedState=qa(1|t,i,l,n))}function Xf(e,t){lc(8390656,8,e,t)}function Yu(e,t){nc(2048,8,e,t)}function lg(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=Pi(),re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function $f(e){var t=Je().memoizedState;return lg({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Qf(e,t){return nc(4,2,e,t)}function Zf(e,t){return nc(4,4,e,t)}function Vf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Kf(e,t,l){l=l!=null?l.concat([e]):null,nc(4,4,Vf.bind(null,t,e),l)}function Gu(){}function Jf(e,t){var l=Je();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Ru(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function Wf(e,t){var l=Je();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Ru(t,n[1]))return n[0];if(n=e(),aa){Bt(!0);try{e()}finally{Bt(!1)}}return l.memoizedState=[n,t],n}function Xu(e,t,l){return l===void 0||($l&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Id(),re.lanes|=e,wn|=e,l)}function If(e,t,l,n){return Yt(l,t)?l:La.current!==null?(e=Xu(e,l,n),Yt(e,t)||(tt=!0),e):($l&42)===0||($l&1073741824)!==0&&(pe&261930)===0?(tt=!0,e.memoizedState=l):(e=Id(),re.lanes|=e,wn|=e,t)}function Ff(e,t,l,n,a){var i=Q.p;Q.p=i!==0&&8>i?i:8;var f=C.T,m={};C.T=m,Zu(e,!1,t,l);try{var x=a(),E=C.S;if(E!==null&&E(m,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var D=Ip(x,n);Bs(e,t,D,Vt(e))}else Bs(e,t,n,Vt(e))}catch(U){Bs(e,t,{then:function(){},status:"rejected",reason:U},Vt())}finally{Q.p=i,f!==null&&m.types!==null&&(f.types=m.types),C.T=f}}function ng(){}function $u(e,t,l,n){if(e.tag!==5)throw Error(r(476));var a=Pf(e).queue;Ff(e,a,t,ne,l===null?ng:function(){return ed(e),l(n)})}function Pf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ed(e){var t=Pf(e);t.next===null&&(t=e.alternate.memoizedState),Bs(e,t.next.queue,{},Vt())}function Qu(){return yt(li)}function td(){return Je().memoizedState}function ld(){return Je().memoizedState}function ag(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Vt();e=yn(l);var n=xn(t,e,l);n!==null&&(Mt(n,t,l),Cs(n,t,l)),t={cache:bu()},e.payload=t;return}t=t.return}}function sg(e,t,l){var n=Vt();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ac(e)?ad(t,l):(l=ru(e,t,l,n),l!==null&&(Mt(l,e,n),sd(l,t,n)))}function nd(e,t,l){var n=Vt();Bs(e,t,l,n)}function Bs(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ac(e))ad(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var f=t.lastRenderedState,m=i(f,l);if(a.hasEagerState=!0,a.eagerState=m,Yt(m,f))return Hi(e,t,a,0),Le===null&&Li(),!1}catch{}if(l=ru(e,t,a,n),l!==null)return Mt(l,e,n),sd(l,t,n),!0}return!1}function Zu(e,t,l,n){if(n={lane:2,revertLane:wr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ac(e)){if(t)throw Error(r(479))}else t=ru(e,l,n,2),t!==null&&Mt(t,e,2)}function ac(e){var t=e.alternate;return e===re||t!==null&&t===re}function ad(e,t){Ha=Ii=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function sd(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,ga(e,l)}}var qs={readContext:yt,use:ec,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};qs.useEffectEvent=Ze;var id={readContext:yt,use:ec,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Xf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,lc(4194308,4,Vf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return lc(4194308,4,e,t)},useInsertionEffect:function(e,t){lc(4,2,e,t)},useMemo:function(e,t){var l=Et();t=t===void 0?null:t;var n=e();if(aa){Bt(!0);try{e()}finally{Bt(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=Et();if(l!==void 0){var a=l(t);if(aa){Bt(!0);try{l(t)}finally{Bt(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=sg.bind(null,re,e),[n.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=Bu(e);var t=e.queue,l=nd.bind(null,re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Gu,useDeferredValue:function(e,t){var l=Et();return Xu(l,e,t)},useTransition:function(){var e=Bu(!1);return e=Ff.bind(null,re,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=re,a=Et();if(ve){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Le===null)throw Error(r(349));(pe&127)!==0||Ef(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,Xf(_f.bind(null,n,i,e),[e]),n.flags|=2048,qa(9,{destroy:void 0},Af.bind(null,n,i,l,t),null),l},useId:function(){var e=Et(),t=Le.identifierPrefix;if(ve){var l=_l,n=Al;l=(n&~(1<<32-jt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Fi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Fp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qu,useFormState:Hf,useActionState:Hf,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Zu.bind(null,re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Uu,useCacheRefresh:function(){return Et().memoizedState=ag.bind(null,re)},useEffectEvent:function(e){var t=Et(),l={impl:e};return t.memoizedState=l,function(){if((Ee&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Vu={readContext:yt,use:ec,useCallback:Jf,useContext:yt,useEffect:Yu,useImperativeHandle:Kf,useInsertionEffect:Qf,useLayoutEffect:Zf,useMemo:Wf,useReducer:tc,useRef:Gf,useState:function(){return tc(Ql)},useDebugValue:Gu,useDeferredValue:function(e,t){var l=Je();return If(l,De.memoizedState,e,t)},useTransition:function(){var e=tc(Ql)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Hs(e),t]},useSyncExternalStore:kf,useId:td,useHostTransitionStatus:Qu,useFormState:Bf,useActionState:Bf,useOptimistic:function(e,t){var l=Je();return Of(l,De,e,t)},useMemoCache:Uu,useCacheRefresh:ld};Vu.useEffectEvent=$f;var cd={readContext:yt,use:ec,useCallback:Jf,useContext:yt,useEffect:Yu,useImperativeHandle:Kf,useInsertionEffect:Qf,useLayoutEffect:Zf,useMemo:Wf,useReducer:Hu,useRef:Gf,useState:function(){return Hu(Ql)},useDebugValue:Gu,useDeferredValue:function(e,t){var l=Je();return De===null?Xu(l,e,t):If(l,De.memoizedState,e,t)},useTransition:function(){var e=Hu(Ql)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Hs(e),t]},useSyncExternalStore:kf,useId:td,useHostTransitionStatus:Qu,useFormState:Yf,useActionState:Yf,useOptimistic:function(e,t){var l=Je();return De!==null?Of(l,De,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Uu,useCacheRefresh:ld};cd.useEffectEvent=$f;function Ku(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:R({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ju={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=Vt(),a=yn(n);a.payload=t,l!=null&&(a.callback=l),t=xn(e,a,n),t!==null&&(Mt(t,e,n),Cs(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=Vt(),a=yn(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=xn(e,a,n),t!==null&&(Mt(t,e,n),Cs(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Vt(),n=yn(l);n.tag=2,t!=null&&(n.callback=t),t=xn(e,n,l),t!==null&&(Mt(t,e,l),Cs(t,e,l))}};function ud(e,t,l,n,a,i,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,f):t.prototype&&t.prototype.isPureReactComponent?!ks(l,n)||!ks(a,i):!0}function rd(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Ju.enqueueReplaceState(t,t.state,null)}function sa(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=R({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function od(e){Ui(e)}function fd(e){console.error(e)}function dd(e){Ui(e)}function sc(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function hd(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Wu(e,t,l){return l=yn(l),l.tag=3,l.payload={element:null},l.callback=function(){sc(e,t)},l}function md(e){return e=yn(e),e.tag=3,e}function pd(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){hd(t,l,n)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){hd(t,l,n),typeof a!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function ig(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&Oa(t,l,a,!0),l=Xt.current,l!==null){switch(l.tag){case 31:case 13:return ul===null?vc():l.alternate===null&&Ve===0&&(Ve=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Zi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Sr(e,n,a)),!1;case 22:return l.flags|=65536,n===Zi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Sr(e,n,a)),!1}throw Error(r(435,l.tag))}return Sr(e,n,a),vc(),!1}if(ve)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==pu&&(e=Error(r(422),{cause:n}),_s(al(e,l)))):(n!==pu&&(t=Error(r(423),{cause:n}),_s(al(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=al(n,l),a=Wu(e.stateNode,n,a),ku(e,a),Ve!==4&&(Ve=2)),!1;var i=Error(r(520),{cause:n});if(i=al(i,l),Ks===null?Ks=[i]:Ks.push(i),Ve!==4&&(Ve=2),t===null)return!0;n=al(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=Wu(l.stateNode,n,e),ku(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Tn===null||!Tn.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=md(a),pd(a,e,l,n),ku(l,a),!1}l=l.return}while(l!==null);return!1}var Iu=Error(r(461)),tt=!1;function xt(e,t,l,n){t.child=e===null?xf(t,null,l,n):na(t,e.child,l,n)}function gd(e,t,l,n,a){l=l.render;var i=t.ref;if("ref"in n){var f={};for(var m in n)m!=="ref"&&(f[m]=n[m])}else f=n;return Pn(t),n=Ou(e,t,l,f,i,a),m=Du(),e!==null&&!tt?(Cu(e,t,a),Zl(e,t,a)):(ve&&m&&hu(t),t.flags|=1,xt(e,t,n,a),t.child)}function vd(e,t,l,n,a){if(e===null){var i=l.type;return typeof i=="function"&&!ou(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,yd(e,t,i,n,a)):(e=qi(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!sr(e,a)){var f=i.memoizedProps;if(l=l.compare,l=l!==null?l:ks,l(f,n)&&e.ref===t.ref)return Zl(e,t,a)}return t.flags|=1,e=ql(i,n),e.ref=t.ref,e.return=t,t.child=e}function yd(e,t,l,n,a){if(e!==null){var i=e.memoizedProps;if(ks(i,n)&&e.ref===t.ref)if(tt=!1,t.pendingProps=n=i,sr(e,a))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,Zl(e,t,a)}return Fu(e,t,l,n,a)}function xd(e,t,l,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return bd(e,t,i,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$i(t,i!==null?i.cachePool:null),i!==null?jf(t,i):Au(),Nf(t);else return n=t.lanes=536870912,bd(e,t,i!==null?i.baseLanes|l:l,l,n)}else i!==null?($i(t,i.cachePool),jf(t,i),Sn(),t.memoizedState=null):(e!==null&&$i(t,null),Au(),Sn());return xt(e,t,a,l),t.child}function Ys(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bd(e,t,l,n,a){var i=ju();return i=i===null?null:{parent:Pe._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&$i(t,null),Au(),Nf(t),e!==null&&Oa(e,t,n,!0),t.childLanes=a,null}function ic(e,t){return t=uc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Sd(e,t,l){return na(t,e.child,null,l),e=ic(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function cg(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(n.mode==="hidden")return e=ic(t,n),t.lanes=536870912,Ys(null,e);if(zu(t),(e=qe)?(e=Dh(e,cl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hn!==null?{id:Al,overflow:_l}:null,retryLane:536870912,hydrationErrors:null},l=nf(e),l.return=t,t.child=l,vt=t,qe=null)):e=null,e===null)throw pn(t);return t.lanes=536870912,null}return ic(t,n)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(zu(t),a)if(t.flags&256)t.flags&=-257,t=Sd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(tt||Oa(e,t,l,!1),a=(l&e.childLanes)!==0,tt||a){if(n=Le,n!==null&&(f=va(n,l),f!==0&&f!==i.retryLane))throw i.retryLane=f,Jn(e,f),Mt(n,e,f),Iu;vc(),t=Sd(e,t,l)}else e=i.treeContext,qe=rl(f.nextSibling),vt=t,ve=!0,mn=null,cl=!1,e!==null&&cf(t,e),t=ic(t,n),t.flags|=4096;return t}return e=ql(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Fu(e,t,l,n,a){return Pn(t),l=Ou(e,t,l,n,void 0,a),n=Du(),e!==null&&!tt?(Cu(e,t,a),Zl(e,t,a)):(ve&&n&&hu(t),t.flags|=1,xt(e,t,l,a),t.child)}function jd(e,t,l,n,a,i){return Pn(t),t.updateQueue=null,l=Tf(t,n,l,a),wf(e),n=Du(),e!==null&&!tt?(Cu(e,t,i),Zl(e,t,i)):(ve&&n&&hu(t),t.flags|=1,xt(e,t,l,i),t.child)}function Nd(e,t,l,n,a){if(Pn(t),t.stateNode===null){var i=Aa,f=l.contextType;typeof f=="object"&&f!==null&&(i=yt(f)),i=new l(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ju,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},wu(t),f=l.contextType,i.context=typeof f=="object"&&f!==null?yt(f):Aa,i.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Ku(t,l,f,n),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&Ju.enqueueReplaceState(i,i.state,null),Us(t,n,i,a),Ms(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,x=sa(l,m);i.props=x;var E=i.context,D=l.contextType;f=Aa,typeof D=="object"&&D!==null&&(f=yt(D));var U=l.getDerivedStateFromProps;D=typeof U=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,D||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||E!==f)&&rd(t,i,n,f),vn=!1;var A=t.memoizedState;i.state=A,Us(t,n,i,a),Ms(),E=t.memoizedState,m||A!==E||vn?(typeof U=="function"&&(Ku(t,l,U,n),E=t.memoizedState),(x=vn||ud(t,l,x,n,A,E,f))?(D||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=E),i.props=n,i.state=E,i.context=f,n=x):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Tu(e,t),f=t.memoizedProps,D=sa(l,f),i.props=D,U=t.pendingProps,A=i.context,E=l.contextType,x=Aa,typeof E=="object"&&E!==null&&(x=yt(E)),m=l.getDerivedStateFromProps,(E=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==U||A!==x)&&rd(t,i,n,x),vn=!1,A=t.memoizedState,i.state=A,Us(t,n,i,a),Ms();var z=t.memoizedState;f!==U||A!==z||vn||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof m=="function"&&(Ku(t,l,m,n),z=t.memoizedState),(D=vn||ud(t,l,D,n,A,z,x)||e!==null&&e.dependencies!==null&&Gi(e.dependencies))?(E||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,z,x),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,z,x)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=z),i.props=n,i.state=z,i.context=x,n=D):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,cc(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=na(t,e.child,null,a),t.child=na(t,null,l,a)):xt(e,t,l,a),t.memoizedState=i.state,e=t.child):e=Zl(e,t,a),e}function wd(e,t,l,n){return In(),t.flags|=256,xt(e,t,l,n),t.child}var Pu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function er(e){return{baseLanes:e,cachePool:hf()}}function tr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Zt),e}function Td(e,t,l){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,f;if((f=i)||(f=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),f&&(a=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(a?bn(t):Sn(),(e=qe)?(e=Dh(e,cl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hn!==null?{id:Al,overflow:_l}:null,retryLane:536870912,hydrationErrors:null},l=nf(e),l.return=t,t.child=l,vt=t,qe=null)):e=null,e===null)throw pn(t);return Lr(e)?t.lanes=32:t.lanes=536870912,null}var m=n.children;return n=n.fallback,a?(Sn(),a=t.mode,m=uc({mode:"hidden",children:m},a),n=Wn(n,a,l,null),m.return=t,n.return=t,m.sibling=n,t.child=m,n=t.child,n.memoizedState=er(l),n.childLanes=tr(e,f,l),t.memoizedState=Pu,Ys(null,n)):(bn(t),lr(t,m))}var x=e.memoizedState;if(x!==null&&(m=x.dehydrated,m!==null)){if(i)t.flags&256?(bn(t),t.flags&=-257,t=nr(e,t,l)):t.memoizedState!==null?(Sn(),t.child=e.child,t.flags|=128,t=null):(Sn(),m=n.fallback,a=t.mode,n=uc({mode:"visible",children:n.children},a),m=Wn(m,a,l,null),m.flags|=2,n.return=t,m.return=t,n.sibling=m,t.child=n,na(t,e.child,null,l),n=t.child,n.memoizedState=er(l),n.childLanes=tr(e,f,l),t.memoizedState=Pu,t=Ys(null,n));else if(bn(t),Lr(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var E=f.dgst;f=E,n=Error(r(419)),n.stack="",n.digest=f,_s({value:n,source:null,stack:null}),t=nr(e,t,l)}else if(tt||Oa(e,t,l,!1),f=(l&e.childLanes)!==0,tt||f){if(f=Le,f!==null&&(n=va(f,l),n!==0&&n!==x.retryLane))throw x.retryLane=n,Jn(e,n),Mt(f,e,n),Iu;Ur(m)||vc(),t=nr(e,t,l)}else Ur(m)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,qe=rl(m.nextSibling),vt=t,ve=!0,mn=null,cl=!1,e!==null&&cf(t,e),t=lr(t,n.children),t.flags|=4096);return t}return a?(Sn(),m=n.fallback,a=t.mode,x=e.child,E=x.sibling,n=ql(x,{mode:"hidden",children:n.children}),n.subtreeFlags=x.subtreeFlags&65011712,E!==null?m=ql(E,m):(m=Wn(m,a,l,null),m.flags|=2),m.return=t,n.return=t,n.sibling=m,t.child=n,Ys(null,n),n=t.child,m=e.child.memoizedState,m===null?m=er(l):(a=m.cachePool,a!==null?(x=Pe._currentValue,a=a.parent!==x?{parent:x,pool:x}:a):a=hf(),m={baseLanes:m.baseLanes|l,cachePool:a}),n.memoizedState=m,n.childLanes=tr(e,f,l),t.memoizedState=Pu,Ys(e.child,n)):(bn(t),l=e.child,e=l.sibling,l=ql(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function lr(e,t){return t=uc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uc(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function nr(e,t,l){return na(t,e.child,null,l),e=lr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kd(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),yu(e.return,t,l)}function ar(e,t,l,n,a,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=l,f.tailMode=a,f.treeForkCount=i)}function Ed(e,t,l){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var f=Ke.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,Z(Ke,f),xt(e,t,n,l),n=ve?As:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kd(e,l,t);else if(e.tag===19)kd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&Wi(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),ar(t,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Wi(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}ar(t,!0,l,null,i,n);break;case"together":ar(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Zl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),wn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Oa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=ql(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ql(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function sr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Gi(e)))}function ug(e,t,l){switch(t.tag){case 3:ht(t,t.stateNode.containerInfo),gn(t,Pe,e.memoizedState.cache),In();break;case 27:case 5:Ln(t);break;case 4:ht(t,t.stateNode.containerInfo);break;case 10:gn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zu(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(bn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Td(e,t,l):(bn(t),e=Zl(e,t,l),e!==null?e.sibling:null);bn(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(Oa(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return Ed(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Z(Ke,Ke.current),n)break;return null;case 22:return t.lanes=0,xd(e,t,l,t.pendingProps);case 24:gn(t,Pe,e.memoizedState.cache)}return Zl(e,t,l)}function Ad(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!sr(e,l)&&(t.flags&128)===0)return tt=!1,ug(e,t,l);tt=(e.flags&131072)!==0}else tt=!1,ve&&(t.flags&1048576)!==0&&sf(t,As,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=ta(t.elementType),t.type=e,typeof e=="function")ou(e)?(n=sa(e,n),t.tag=1,t=Nd(null,t,e,n,l)):(t.tag=0,t=Fu(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===ae){t.tag=11,t=gd(null,t,e,n,l);break e}else if(a===P){t.tag=14,t=vd(null,t,e,n,l);break e}}throw t=Wt(e)||e,Error(r(306,t,""))}}return t;case 0:return Fu(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=sa(n,t.pendingProps),Nd(e,t,n,a,l);case 3:e:{if(ht(t,t.stateNode.containerInfo),e===null)throw Error(r(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,Tu(e,t),Us(t,n,null,l);var f=t.memoizedState;if(n=f.cache,gn(t,Pe,n),n!==i.cache&&xu(t,[Pe],l,!0),Ms(),n=f.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=wd(e,t,n,l);break e}else if(n!==a){a=al(Error(r(424)),t),_s(a),t=wd(e,t,n,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,qe=rl(e.firstChild),vt=t,ve=!0,mn=null,cl=!0,l=xf(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(In(),n===a){t=Zl(e,t,l);break e}xt(e,t,n,l)}t=t.child}return t;case 26:return cc(e,t),e===null?(l=Bh(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,n=wc(fe.current).createElement(l),n[at]=t,n[We]=e,bt(n,l,e),Ie(n),t.stateNode=n):t.memoizedState=Bh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ln(t),e===null&&ve&&(n=t.stateNode=Uh(t.type,t.pendingProps,fe.current),vt=t,cl=!0,a=qe,_n(t.type)?(Hr=a,qe=rl(n.firstChild)):qe=a),xt(e,t,t.pendingProps.children,l),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((a=n=qe)&&(n=Hg(n,t.type,t.pendingProps,cl),n!==null?(t.stateNode=n,vt=t,qe=rl(n.firstChild),cl=!1,a=!0):a=!1),a||pn(t)),Ln(t),a=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,n=i.children,Dr(a,i)?n=null:f!==null&&Dr(a,f)&&(t.flags|=32),t.memoizedState!==null&&(a=Ou(e,t,Pp,null,null,l),li._currentValue=a),cc(e,t),xt(e,t,n,l),t.child;case 6:return e===null&&ve&&((e=l=qe)&&(l=Bg(l,t.pendingProps,cl),l!==null?(t.stateNode=l,vt=t,qe=null,e=!0):e=!1),e||pn(t)),null;case 13:return Td(e,t,l);case 4:return ht(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=na(t,null,n,l):xt(e,t,n,l),t.child;case 11:return gd(e,t,t.type,t.pendingProps,l);case 7:return xt(e,t,t.pendingProps,l),t.child;case 8:return xt(e,t,t.pendingProps.children,l),t.child;case 12:return xt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,gn(t,t.type,n.value),xt(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Pn(t),a=yt(a),n=n(a),t.flags|=1,xt(e,t,n,l),t.child;case 14:return vd(e,t,t.type,t.pendingProps,l);case 15:return yd(e,t,t.type,t.pendingProps,l);case 19:return Ed(e,t,l);case 31:return cg(e,t,l);case 22:return xd(e,t,l,t.pendingProps);case 24:return Pn(t),n=yt(Pe),e===null?(a=ju(),a===null&&(a=Le,i=bu(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},wu(t),gn(t,Pe,a)):((e.lanes&l)!==0&&(Tu(e,t),Us(t,null,null,l),Ms()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),gn(t,Pe,n)):(n=i.cache,gn(t,Pe,n),n!==a.cache&&xu(t,[Pe],l,!0))),xt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Vl(e){e.flags|=4}function ir(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(th())e.flags|=8192;else throw la=Zi,Nu}else e.flags&=-16777217}function _d(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$h(t))if(th())e.flags|=8192;else throw la=Zi,Nu}function rc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fs():536870912,e.lanes|=t,$a|=t)}function Gs(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function rg(e,t,l){var n=t.pendingProps;switch(mu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xl(Pe),$e(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ra(t)?Vl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gu())),Ye(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Vl(t),i!==null?(Ye(t),_d(t,i)):(Ye(t),ir(t,a,null,n,l))):i?i!==e.memoizedState?(Vl(t),Ye(t),_d(t,i)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Vl(t),Ye(t),ir(t,a,e,n,l)),null;case 27:if(Hn(t),l=fe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Vl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Ye(t),null}e=X.current,Ra(t)?uf(t):(e=Uh(a,n,l),t.stateNode=e,Vl(t))}return Ye(t),null;case 5:if(Hn(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Vl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Ye(t),null}if(i=X.current,Ra(t))uf(t);else{var f=wc(fe.current);switch(i){case 1:i=f.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=f.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=f.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?f.createElement(a,{is:n.is}):f.createElement(a)}}i[at]=t,i[We]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=i;e:switch(bt(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Vl(t)}}return Ye(t),ir(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Vl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,Ra(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=vt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[at]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||Th(e.nodeValue,l)),e||pn(t,!0)}else e=wc(e).createTextNode(n),e[at]=t,t.stateNode=e}return Ye(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=Ra(t),l!==null){if(e===null){if(!n)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[at]=t}else In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else l=gu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ye(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ra(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(r(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));a[at]=t}else In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),a=!1}else a=gu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),rc(t,t.updateQueue),Ye(t),null);case 4:return $e(),e===null&&Ar(t.stateNode.containerInfo),Ye(t),null;case 10:return Xl(t.type),Ye(t),null;case 19:if(L(Ke),n=t.memoizedState,n===null)return Ye(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)Gs(n,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Wi(e),i!==null){for(t.flags|=128,Gs(n,!1),e=i.updateQueue,t.updateQueue=e,rc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)lf(l,e),l=l.sibling;return Z(Ke,Ke.current&1|2),ve&&Yl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&St()>mc&&(t.flags|=128,a=!0,Gs(n,!1),t.lanes=4194304)}else{if(!a)if(e=Wi(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,rc(t,e),Gs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!ve)return Ye(t),null}else 2*St()-n.renderingStartTime>mc&&l!==536870912&&(t.flags|=128,a=!0,Gs(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=St(),e.sibling=null,l=Ke.current,Z(Ke,a?l&1|2:l&1),ve&&Yl(t,n.treeForkCount),e):(Ye(t),null);case 22:case 23:return $t(t),_u(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),l=t.updateQueue,l!==null&&rc(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&L(ea),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Xl(Pe),Ye(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function og(e,t){switch(mu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xl(Pe),$e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Hn(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(r(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Ke),null;case 4:return $e(),null;case 10:return Xl(t.type),null;case 22:case 23:return $t(t),_u(),e!==null&&L(ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xl(Pe),null;case 25:return null;default:return null}}function zd(e,t){switch(mu(t),t.tag){case 3:Xl(Pe),$e();break;case 26:case 27:case 5:Hn(t);break;case 4:$e();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:L(Ke);break;case 10:Xl(t.type);break;case 22:case 23:$t(t),_u(),e!==null&&L(ea);break;case 24:Xl(Pe)}}function Xs(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var i=l.create,f=l.inst;n=i(),f.destroy=n}l=l.next}while(l!==a)}}catch(m){Re(t,t.return,m)}}function jn(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var f=n.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,a=t;var x=l,E=m;try{E()}catch(D){Re(a,x,D)}}}n=n.next}while(n!==i)}}catch(D){Re(t,t.return,D)}}function Rd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Sf(t,l)}catch(n){Re(e,e.return,n)}}}function Od(e,t,l){l.props=sa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Re(e,t,n)}}function $s(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){Re(e,t,a)}}function zl(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Re(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Re(e,t,a)}else l.current=null}function Dd(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Re(e,e.return,a)}}function cr(e,t,l){try{var n=e.stateNode;Og(n,e.type,l,t),n[We]=t}catch(a){Re(e,e.return,a)}}function Cd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_n(e.type)||e.tag===4}function ur(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cd(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&&_n(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 rr(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=N));else if(n!==4&&(n===27&&_n(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(rr(e,t,l),e=e.sibling;e!==null;)rr(e,t,l),e=e.sibling}function oc(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&_n(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(oc(e,t,l),e=e.sibling;e!==null;)oc(e,t,l),e=e.sibling}function Md(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);bt(t,n,l),t[at]=e,t[We]=l}catch(i){Re(e,e.return,i)}}var Kl=!1,lt=!1,or=!1,Ud=typeof WeakSet=="function"?WeakSet:Set,ot=null;function fg(e,t){if(e=e.containerInfo,Rr=Rc,e=Vo(e),nu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var f=0,m=-1,x=-1,E=0,D=0,U=e,A=null;t:for(;;){for(var z;U!==l||a!==0&&U.nodeType!==3||(m=f+a),U!==i||n!==0&&U.nodeType!==3||(x=f+n),U.nodeType===3&&(f+=U.nodeValue.length),(z=U.firstChild)!==null;)A=U,U=z;for(;;){if(U===e)break t;if(A===l&&++E===a&&(m=f),A===i&&++D===n&&(x=f),(z=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=z}l=m===-1||x===-1?null:{start:m,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(Or={focusedElem:e,selectionRange:l},Rc=!1,ot=t;ot!==null;)if(t=ot,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ot=e;else for(;ot!==null;){switch(t=ot,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var W=sa(l.type,a);e=n.getSnapshotBeforeUpdate(W,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(se){Re(l,l.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Mr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ot=e;break}ot=t.return}}function Ld(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Wl(e,l),n&4&&Xs(5,l);break;case 1:if(Wl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Re(l,l.return,f)}else{var a=sa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Re(l,l.return,f)}}n&64&&Rd(l),n&512&&$s(l,l.return);break;case 3:if(Wl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Sf(e,t)}catch(f){Re(l,l.return,f)}}break;case 27:t===null&&n&4&&Md(l);case 26:case 5:Wl(e,l),t===null&&n&4&&Dd(l),n&512&&$s(l,l.return);break;case 12:Wl(e,l);break;case 31:Wl(e,l),n&4&&qd(e,l);break;case 13:Wl(e,l),n&4&&Yd(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=bg.bind(null,l),qg(e,l))));break;case 22:if(n=l.memoizedState!==null||Kl,!n){t=t!==null&&t.memoizedState!==null||lt,a=Kl;var i=lt;Kl=n,(lt=t)&&!i?Il(e,l,(l.subtreeFlags&8772)!==0):Wl(e,l),Kl=a,lt=i}break;case 30:break;default:Wl(e,l)}}function Hd(e){var t=e.alternate;t!==null&&(e.alternate=null,Hd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gn(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xe=null,Rt=!1;function Jl(e,t,l){for(l=l.child;l!==null;)Bd(e,t,l),l=l.sibling}function Bd(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Pt,l)}catch{}switch(l.tag){case 26:lt||zl(l,t),Jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||zl(l,t);var n=Xe,a=Rt;_n(l.type)&&(Xe=l.stateNode,Rt=!1),Jl(e,t,l),Ps(l.stateNode),Xe=n,Rt=a;break;case 5:lt||zl(l,t);case 6:if(n=Xe,a=Rt,Xe=null,Jl(e,t,l),Xe=n,Rt=a,Xe!==null)if(Rt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(l.stateNode)}catch(i){Re(l,t,i)}else try{Xe.removeChild(l.stateNode)}catch(i){Re(l,t,i)}break;case 18:Xe!==null&&(Rt?(e=Xe,Rh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Fa(e)):Rh(Xe,l.stateNode));break;case 4:n=Xe,a=Rt,Xe=l.stateNode.containerInfo,Rt=!0,Jl(e,t,l),Xe=n,Rt=a;break;case 0:case 11:case 14:case 15:jn(2,l,t),lt||jn(4,l,t),Jl(e,t,l);break;case 1:lt||(zl(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Od(l,t,n)),Jl(e,t,l);break;case 21:Jl(e,t,l);break;case 22:lt=(n=lt)||l.memoizedState!==null,Jl(e,t,l),lt=n;break;default:Jl(e,t,l)}}function qd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fa(e)}catch(l){Re(t,t.return,l)}}}function Yd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fa(e)}catch(l){Re(t,t.return,l)}}function dg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ud),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ud),t;default:throw Error(r(435,e.tag))}}function fc(e,t){var l=dg(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Sg.bind(null,e,n);n.then(a,a)}})}function Ot(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(_n(m.type)){Xe=m.stateNode,Rt=!1;break e}break;case 5:Xe=m.stateNode,Rt=!1;break e;case 3:case 4:Xe=m.stateNode.containerInfo,Rt=!0;break e}m=m.return}if(Xe===null)throw Error(r(160));Bd(i,f,a),Xe=null,Rt=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Gd(t,e),t=t.sibling}var vl=null;function Gd(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Dt(e),n&4&&(jn(3,e,e.return),Xs(3,e),jn(5,e,e.return));break;case 1:Ot(t,e),Dt(e),n&512&&(lt||l===null||zl(l,l.return)),n&64&&Kl&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=vl;if(Ot(t,e),Dt(e),n&512&&(lt||l===null||zl(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[un]||i[at]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),bt(i,n,l),i[at]=e,Ie(i),n=i;break e;case"link":var f=Gh("link","href",a).get(n+(l.href||""));if(f){for(var m=0;m<f.length;m++)if(i=f[m],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(m,1);break t}}i=a.createElement(n),bt(i,n,l),a.head.appendChild(i);break;case"meta":if(f=Gh("meta","content",a).get(n+(l.content||""))){for(m=0;m<f.length;m++)if(i=f[m],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(m,1);break t}}i=a.createElement(n),bt(i,n,l),a.head.appendChild(i);break;default:throw Error(r(468,n))}i[at]=e,Ie(i),n=i}e.stateNode=n}else Xh(a,e.type,e.stateNode);else e.stateNode=Yh(a,n,e.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?Xh(a,e.type,e.stateNode):Yh(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&cr(e,e.memoizedProps,l.memoizedProps)}break;case 27:Ot(t,e),Dt(e),n&512&&(lt||l===null||zl(l,l.return)),l!==null&&n&4&&cr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Ot(t,e),Dt(e),n&512&&(lt||l===null||zl(l,l.return)),e.flags&32){a=e.stateNode;try{Bl(a,"")}catch(W){Re(e,e.return,W)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,cr(e,a,l!==null?l.memoizedProps:a)),n&1024&&(or=!0);break;case 6:if(Ot(t,e),Dt(e),n&4){if(e.stateNode===null)throw Error(r(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(W){Re(e,e.return,W)}}break;case 3:if(Ec=null,a=vl,vl=Tc(t.containerInfo),Ot(t,e),vl=a,Dt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Fa(t.containerInfo)}catch(W){Re(e,e.return,W)}or&&(or=!1,Xd(e));break;case 4:n=vl,vl=Tc(e.stateNode.containerInfo),Ot(t,e),Dt(e),vl=n;break;case 12:Ot(t,e),Dt(e);break;case 31:Ot(t,e),Dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 13:Ot(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(hc=St()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 22:a=e.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,E=Kl,D=lt;if(Kl=E||a,lt=D||x,Ot(t,e),lt=D,Kl=E,Dt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||x||Kl||lt||ia(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){x=l=t;try{if(i=x.stateNode,a)f=i.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=x.stateNode;var U=x.memoizedProps.style,A=U!=null&&U.hasOwnProperty("display")?U.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(W){Re(x,x.return,W)}}}else if(t.tag===6){if(l===null){x=t;try{x.stateNode.nodeValue=a?"":x.memoizedProps}catch(W){Re(x,x.return,W)}}}else if(t.tag===18){if(l===null){x=t;try{var z=x.stateNode;a?Oh(z,!0):Oh(x.stateNode,!1)}catch(W){Re(x,x.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,fc(e,l))));break;case 19:Ot(t,e),Dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 30:break;case 21:break;default:Ot(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(Cd(n)){l=n;break}n=n.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var a=l.stateNode,i=ur(e);oc(e,i,a);break;case 5:var f=l.stateNode;l.flags&32&&(Bl(f,""),l.flags&=-33);var m=ur(e);oc(e,m,f);break;case 3:case 4:var x=l.stateNode.containerInfo,E=ur(e);rr(e,E,x);break;default:throw Error(r(161))}}catch(D){Re(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Xd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Wl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ld(e,t.alternate,t),t=t.sibling}function ia(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:jn(4,t,t.return),ia(t);break;case 1:zl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Od(t,t.return,l),ia(t);break;case 27:Ps(t.stateNode);case 26:case 5:zl(t,t.return),ia(t);break;case 22:t.memoizedState===null&&ia(t);break;case 30:ia(t);break;default:ia(t)}e=e.sibling}}function Il(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,f=i.flags;switch(i.tag){case 0:case 11:case 15:Il(a,i,l),Xs(4,i);break;case 1:if(Il(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(E){Re(n,n.return,E)}if(n=i,a=n.updateQueue,a!==null){var m=n.stateNode;try{var x=a.shared.hiddenCallbacks;if(x!==null)for(a.shared.hiddenCallbacks=null,a=0;a<x.length;a++)bf(x[a],m)}catch(E){Re(n,n.return,E)}}l&&f&64&&Rd(i),$s(i,i.return);break;case 27:Md(i);case 26:case 5:Il(a,i,l),l&&n===null&&f&4&&Dd(i),$s(i,i.return);break;case 12:Il(a,i,l);break;case 31:Il(a,i,l),l&&f&4&&qd(a,i);break;case 13:Il(a,i,l),l&&f&4&&Yd(a,i);break;case 22:i.memoizedState===null&&Il(a,i,l),$s(i,i.return);break;case 30:break;default:Il(a,i,l)}t=t.sibling}}function fr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&zs(l))}function dr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zs(e))}function yl(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$d(e,t,l,n),t=t.sibling}function $d(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:yl(e,t,l,n),a&2048&&Xs(9,t);break;case 1:yl(e,t,l,n);break;case 3:yl(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zs(e)));break;case 12:if(a&2048){yl(e,t,l,n),e=t.stateNode;try{var i=t.memoizedProps,f=i.id,m=i.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Re(t,t.return,x)}}else yl(e,t,l,n);break;case 31:yl(e,t,l,n);break;case 13:yl(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,f=t.alternate,t.memoizedState!==null?i._visibility&2?yl(e,t,l,n):Qs(e,t):i._visibility&2?yl(e,t,l,n):(i._visibility|=2,Ya(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&fr(f,t);break;case 24:yl(e,t,l,n),a&2048&&dr(t.alternate,t);break;default:yl(e,t,l,n)}}function Ya(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,f=t,m=l,x=n,E=f.flags;switch(f.tag){case 0:case 11:case 15:Ya(i,f,m,x,a),Xs(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?Ya(i,f,m,x,a):Qs(i,f):(D._visibility|=2,Ya(i,f,m,x,a)),a&&E&2048&&fr(f.alternate,f);break;case 24:Ya(i,f,m,x,a),a&&E&2048&&dr(f.alternate,f);break;default:Ya(i,f,m,x,a)}t=t.sibling}}function Qs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:Qs(l,n),a&2048&&fr(n.alternate,n);break;case 24:Qs(l,n),a&2048&&dr(n.alternate,n);break;default:Qs(l,n)}t=t.sibling}}var Zs=8192;function Ga(e,t,l){if(e.subtreeFlags&Zs)for(e=e.child;e!==null;)Qd(e,t,l),e=e.sibling}function Qd(e,t,l){switch(e.tag){case 26:Ga(e,t,l),e.flags&Zs&&e.memoizedState!==null&&Fg(l,vl,e.memoizedState,e.memoizedProps);break;case 5:Ga(e,t,l);break;case 3:case 4:var n=vl;vl=Tc(e.stateNode.containerInfo),Ga(e,t,l),vl=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Zs,Zs=16777216,Ga(e,t,l),Zs=n):Ga(e,t,l));break;default:Ga(e,t,l)}}function Zd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];ot=n,Kd(n,e)}Zd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vd(e),e=e.sibling}function Vd(e){switch(e.tag){case 0:case 11:case 15:Vs(e),e.flags&2048&&jn(9,e,e.return);break;case 3:Vs(e);break;case 12:Vs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,dc(e)):Vs(e);break;default:Vs(e)}}function dc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];ot=n,Kd(n,e)}Zd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jn(8,t,t.return),dc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,dc(t));break;default:dc(t)}e=e.sibling}}function Kd(e,t){for(;ot!==null;){var l=ot;switch(l.tag){case 0:case 11:case 15:jn(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:zs(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,ot=n;else e:for(l=e;ot!==null;){n=ot;var a=n.sibling,i=n.return;if(Hd(n),n===l){ot=null;break e}if(a!==null){a.return=i,ot=a;break e}ot=i}}}var hg={getCacheForType:function(e){var t=yt(Pe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return yt(Pe).controller.signal}},mg=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Le=null,de=null,pe=0,ze=0,Qt=null,Nn=!1,Xa=!1,hr=!1,Fl=0,Ve=0,wn=0,ca=0,mr=0,Zt=0,$a=0,Ks=null,Ct=null,pr=!1,hc=0,Jd=0,mc=1/0,pc=null,Tn=null,it=0,kn=null,Qa=null,Pl=0,gr=0,vr=null,Wd=null,Js=0,yr=null;function Vt(){return(Ee&2)!==0&&pe!==0?pe&-pe:C.T!==null?wr():xa()}function Id(){if(Zt===0)if((pe&536870912)===0||ve){var e=dl;dl<<=1,(dl&3932160)===0&&(dl=262144),Zt=e}else Zt=536870912;return e=Xt.current,e!==null&&(e.flags|=32),Zt}function Mt(e,t,l){(e===Le&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Za(e,0),En(e,pe,Zt,!1)),Tl(e,l),((Ee&2)===0||e!==Le)&&(e===Le&&((Ee&2)===0&&(ca|=l),Ve===4&&En(e,pe,Zt,!1)),Rl(e))}function Fd(e,t,l){if((Ee&6)!==0)throw Error(r(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||nn(e,t),a=n?vg(e,t):br(e,t,!0),i=n;do{if(a===0){Xa&&!n&&En(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!pg(l)){a=br(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;a=Ks;var x=m.current.memoizedState.isDehydrated;if(x&&(Za(m,f).flags|=256),f=br(m,f,!1),f!==2){if(hr&&!x){m.errorRecoveryDisabledLanes|=i,ca|=i,a=4;break e}i=Ct,Ct=a,i!==null&&(Ct===null?Ct=i:Ct.push.apply(Ct,i))}a=f}if(i=!1,a!==2)continue}}if(a===1){Za(e,0),En(e,t,0,!0);break}e:{switch(n=e,i=a,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:En(n,t,Zt,!Nn);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=hc+300-St(),10<a)){if(En(n,t,Zt,!Nn),Yn(n,0,!0)!==0)break e;Pl=t,n.timeoutHandle=_h(Pd.bind(null,n,l,Ct,pc,pr,t,Zt,ca,$a,Nn,i,"Throttled",-0,0),a);break e}Pd(n,l,Ct,pc,pr,t,Zt,ca,$a,Nn,i,null,-0,0)}}break}while(!0);Rl(e)}function Pd(e,t,l,n,a,i,f,m,x,E,D,U,A,z){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:N},Qd(t,i,U);var W=(i&62914560)===i?hc-St():(i&4194048)===i?Jd-St():0;if(W=Pg(U,W),W!==null){Pl=i,e.cancelPendingCommit=W(ch.bind(null,e,t,i,l,n,a,f,m,x,D,U,null,A,z)),En(e,i,f,!E);return}}ch(e,t,i,l,n,a,f,m,x)}function pg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!Yt(i(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function En(e,t,l,n){t&=~mr,t&=~ca,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-jt(a),f=1<<i;n[i]=-1,a&=~f}l!==0&&Cl(e,l,t)}function gc(){return(Ee&6)===0?(Ws(0),!1):!0}function xr(){if(de!==null){if(ze===0)var e=de.return;else e=de,Gl=Fn=null,Mu(e),Ua=null,Os=0,e=de;for(;e!==null;)zd(e.alternate,e),e=e.return;de=null}}function Za(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Mg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pl=0,xr(),Le=e,de=l=ql(e.current,null),pe=t,ze=0,Qt=null,Nn=!1,Xa=nn(e,t),hr=!1,$a=Zt=mr=ca=wn=Ve=0,Ct=Ks=null,pr=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-jt(n),i=1<<a;t|=e[a],n&=~i}return Fl=t,Li(),l}function eh(e,t){re=null,C.H=qs,t===Ma||t===Qi?(t=gf(),ze=3):t===Nu?(t=gf(),ze=4):ze=t===Iu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,de===null&&(Ve=1,sc(e,al(t,e.current)))}function th(){var e=Xt.current;return e===null?!0:(pe&4194048)===pe?ul===null:(pe&62914560)===pe||(pe&536870912)!==0?e===ul:!1}function lh(){var e=C.H;return C.H=qs,e===null?qs:e}function nh(){var e=C.A;return C.A=hg,e}function vc(){Ve=4,Nn||(pe&4194048)!==pe&&Xt.current!==null||(Xa=!0),(wn&134217727)===0&&(ca&134217727)===0||Le===null||En(Le,pe,Zt,!1)}function br(e,t,l){var n=Ee;Ee|=2;var a=lh(),i=nh();(Le!==e||pe!==t)&&(pc=null,Za(e,t)),t=!1;var f=Ve;e:do try{if(ze!==0&&de!==null){var m=de,x=Qt;switch(ze){case 8:xr(),f=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var E=ze;if(ze=0,Qt=null,Va(e,m,x,E),l&&Xa){f=0;break e}break;default:E=ze,ze=0,Qt=null,Va(e,m,x,E)}}gg(),f=Ve;break}catch(D){eh(e,D)}while(!0);return t&&e.shellSuspendCounter++,Gl=Fn=null,Ee=n,C.H=a,C.A=i,de===null&&(Le=null,pe=0,Li()),f}function gg(){for(;de!==null;)ah(de)}function vg(e,t){var l=Ee;Ee|=2;var n=lh(),a=nh();Le!==e||pe!==t?(pc=null,mc=St()+500,Za(e,t)):Xa=nn(e,t);e:do try{if(ze!==0&&de!==null){t=de;var i=Qt;t:switch(ze){case 1:ze=0,Qt=null,Va(e,t,i,1);break;case 2:case 9:if(mf(i)){ze=0,Qt=null,sh(t);break}t=function(){ze!==2&&ze!==9||Le!==e||(ze=7),Rl(e)},i.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:mf(i)?(ze=0,Qt=null,sh(t)):(ze=0,Qt=null,Va(e,t,i,7));break;case 5:var f=null;switch(de.tag){case 26:f=de.memoizedState;case 5:case 27:var m=de;if(f?$h(f):m.stateNode.complete){ze=0,Qt=null;var x=m.sibling;if(x!==null)de=x;else{var E=m.return;E!==null?(de=E,yc(E)):de=null}break t}}ze=0,Qt=null,Va(e,t,i,5);break;case 6:ze=0,Qt=null,Va(e,t,i,6);break;case 8:xr(),Ve=6;break e;default:throw Error(r(462))}}yg();break}catch(D){eh(e,D)}while(!0);return Gl=Fn=null,C.H=n,C.A=a,Ee=l,de!==null?0:(Le=null,pe=0,Li(),Ve)}function yg(){for(;de!==null&&!xi();)ah(de)}function ah(e){var t=Ad(e.alternate,e,Fl);e.memoizedProps=e.pendingProps,t===null?yc(e):de=t}function sh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=jd(l,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=jd(l,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Mu(t);default:zd(l,t),t=de=lf(t,Fl),t=Ad(l,t,Fl)}e.memoizedProps=e.pendingProps,t===null?yc(e):de=t}function Va(e,t,l,n){Gl=Fn=null,Mu(t),Ua=null,Os=0;var a=t.return;try{if(ig(e,a,t,l,pe)){Ve=1,sc(e,al(l,e.current)),de=null;return}}catch(i){if(a!==null)throw de=a,i;Ve=1,sc(e,al(l,e.current)),de=null;return}t.flags&32768?(ve||n===1?e=!0:Xa||(pe&536870912)!==0?e=!1:(Nn=e=!0,(n===2||n===9||n===3||n===6)&&(n=Xt.current,n!==null&&n.tag===13&&(n.flags|=16384))),ih(t,e)):yc(t)}function yc(e){var t=e;do{if((t.flags&32768)!==0){ih(t,Nn);return}e=t.return;var l=rg(t.alternate,t,Fl);if(l!==null){de=l;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Ve===0&&(Ve=5)}function ih(e,t){do{var l=og(e.alternate,e);if(l!==null){l.flags&=32767,de=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=l}while(e!==null);Ve=6,de=null}function ch(e,t,l,n,a,i,f,m,x){e.cancelPendingCommit=null;do xc();while(it!==0);if((Ee&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=uu,el(e,l,i,f,m,x),e===Le&&(de=Le=null,pe=0),Qa=t,kn=e,Pl=l,gr=i,vr=a,Wd=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,jg(Ft,function(){return dh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=C.T,C.T=null,a=Q.p,Q.p=2,f=Ee,Ee|=4;try{fg(e,t,l)}finally{Ee=f,Q.p=a,C.T=n}}it=1,uh(),rh(),oh()}}function uh(){if(it===1){it=0;var e=kn,t=Qa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=C.T,C.T=null;var n=Q.p;Q.p=2;var a=Ee;Ee|=4;try{Gd(t,e);var i=Or,f=Vo(e.containerInfo),m=i.focusedElem,x=i.selectionRange;if(f!==m&&m&&m.ownerDocument&&Zo(m.ownerDocument.documentElement,m)){if(x!==null&&nu(m)){var E=x.start,D=x.end;if(D===void 0&&(D=E),"selectionStart"in m)m.selectionStart=E,m.selectionEnd=Math.min(D,m.value.length);else{var U=m.ownerDocument||document,A=U&&U.defaultView||window;if(A.getSelection){var z=A.getSelection(),W=m.textContent.length,se=Math.min(x.start,W),Me=x.end===void 0?se:Math.min(x.end,W);!z.extend&&se>Me&&(f=Me,Me=se,se=f);var w=Qo(m,se),S=Qo(m,Me);if(w&&S&&(z.rangeCount!==1||z.anchorNode!==w.node||z.anchorOffset!==w.offset||z.focusNode!==S.node||z.focusOffset!==S.offset)){var k=U.createRange();k.setStart(w.node,w.offset),z.removeAllRanges(),se>Me?(z.addRange(k),z.extend(S.node,S.offset)):(k.setEnd(S.node,S.offset),z.addRange(k))}}}}for(U=[],z=m;z=z.parentNode;)z.nodeType===1&&U.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<U.length;m++){var M=U[m];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}Rc=!!Rr,Or=Rr=null}finally{Ee=a,Q.p=n,C.T=l}}e.current=t,it=2}}function rh(){if(it===2){it=0;var e=kn,t=Qa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=C.T,C.T=null;var n=Q.p;Q.p=2;var a=Ee;Ee|=4;try{Ld(e,t.alternate,t)}finally{Ee=a,Q.p=n,C.T=l}}it=3}}function oh(){if(it===4||it===3){it=0,cs();var e=kn,t=Qa,l=Pl,n=Wd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?it=5:(it=0,Qa=kn=null,fh(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Tn=null),ya(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Pt,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=C.T,a=Q.p,Q.p=2,C.T=null;try{for(var i=e.onRecoverableError,f=0;f<n.length;f++){var m=n[f];i(m.value,{componentStack:m.stack})}}finally{C.T=t,Q.p=a}}(Pl&3)!==0&&xc(),Rl(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===yr?Js++:(Js=0,yr=e):Js=0,Ws(0)}}function fh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zs(t)))}function xc(){return uh(),rh(),oh(),dh()}function dh(){if(it!==5)return!1;var e=kn,t=gr;gr=0;var l=ya(Pl),n=C.T,a=Q.p;try{Q.p=32>l?32:l,C.T=null,l=vr,vr=null;var i=kn,f=Pl;if(it=0,Qa=kn=null,Pl=0,(Ee&6)!==0)throw Error(r(331));var m=Ee;if(Ee|=4,Vd(i.current),$d(i,i.current,f,l),Ee=m,Ws(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Pt,i)}catch{}return!0}finally{Q.p=a,C.T=n,fh(e,t)}}function hh(e,t,l){t=al(l,t),t=Wu(e.stateNode,t,2),e=xn(e,t,2),e!==null&&(Tl(e,2),Rl(e))}function Re(e,t,l){if(e.tag===3)hh(e,e,l);else for(;t!==null;){if(t.tag===3){hh(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Tn===null||!Tn.has(n))){e=al(l,e),l=md(2),n=xn(t,l,2),n!==null&&(pd(l,n,t,e),Tl(n,2),Rl(n));break}}t=t.return}}function Sr(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new mg;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(hr=!0,a.add(l),e=xg.bind(null,e,t,l),t.then(e,e))}function xg(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(pe&l)===l&&(Ve===4||Ve===3&&(pe&62914560)===pe&&300>St()-hc?(Ee&2)===0&&Za(e,0):mr|=l,$a===pe&&($a=0)),Rl(e)}function mh(e,t){t===0&&(t=fs()),e=Jn(e,t),e!==null&&(Tl(e,t),Rl(e))}function bg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),mh(e,l)}function Sg(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(t),mh(e,l)}function jg(e,t){return ma(e,t)}var bc=null,Ka=null,jr=!1,Sc=!1,Nr=!1,An=0;function Rl(e){e!==Ka&&e.next===null&&(Ka===null?bc=Ka=e:Ka=Ka.next=e),Sc=!0,jr||(jr=!0,wg())}function Ws(e,t){if(!Nr&&Sc){Nr=!0;do for(var l=!1,n=bc;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var f=n.suspendedLanes,m=n.pingedLanes;i=(1<<31-jt(42|e)+1)-1,i&=a&~(f&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,yh(n,i))}else i=pe,i=Yn(n,n===Le?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||nn(n,i)||(l=!0,yh(n,i));n=n.next}while(l);Nr=!1}}function Ng(){ph()}function ph(){Sc=jr=!1;var e=0;An!==0&&Cg()&&(e=An);for(var t=St(),l=null,n=bc;n!==null;){var a=n.next,i=gh(n,t);i===0?(n.next=null,l===null?bc=a:l.next=a,a===null&&(Ka=l)):(l=n,(e!==0||(i&3)!==0)&&(Sc=!0)),n=a}it!==0&&it!==5||Ws(e),An!==0&&(An=0)}function gh(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-jt(i),m=1<<f,x=a[f];x===-1?((m&l)===0||(m&n)!==0)&&(a[f]=Ni(m,t)):x<=t&&(e.expiredLanes|=m),i&=~m}if(t=Le,l=pe,l=Yn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&It(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||nn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&It(n),ya(l)){case 2:case 8:l=Nl;break;case 32:l=Ft;break;case 268435456:l=qn;break;default:l=Ft}return n=vh.bind(null,e),l=ma(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&It(n),e.callbackPriority=2,e.callbackNode=null,2}function vh(e,t){if(it!==0&&it!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(xc()&&e.callbackNode!==l)return null;var n=pe;return n=Yn(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Fd(e,n,t),gh(e,St()),e.callbackNode!=null&&e.callbackNode===l?vh.bind(null,e):null)}function yh(e,t){if(xc())return null;Fd(e,t,!0)}function wg(){Ug(function(){(Ee&6)!==0?ma(fl,Ng):ph()})}function wr(){if(An===0){var e=Da;e===0&&(e=ln,ln<<=1,(ln&261888)===0&&(ln=256)),An=e}return An}function xh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:g(""+e)}function bh(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Tg(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=xh((a[We]||null).action),f=n.submitter;f&&(t=(t=f[We]||null)?xh(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var m=new Di("action","action",null,n,a);e.push({event:m,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(An!==0){var x=f?bh(a,f):new FormData(a);$u(l,{pending:!0,data:x,method:a.method,action:i},null,x)}}else typeof i=="function"&&(m.preventDefault(),x=f?bh(a,f):new FormData(a),$u(l,{pending:!0,data:x,method:a.method,action:i},i,x))},currentTarget:a}]})}}for(var Tr=0;Tr<cu.length;Tr++){var kr=cu[Tr],kg=kr.toLowerCase(),Eg=kr[0].toUpperCase()+kr.slice(1);gl(kg,"on"+Eg)}gl(Wo,"onAnimationEnd"),gl(Io,"onAnimationIteration"),gl(Fo,"onAnimationStart"),gl("dblclick","onDoubleClick"),gl("focusin","onFocus"),gl("focusout","onBlur"),gl(Xp,"onTransitionRun"),gl($p,"onTransitionStart"),gl(Qp,"onTransitionCancel"),gl(Po,"onTransitionEnd"),pl("onMouseEnter",["mouseout","mouseover"]),pl("onMouseLeave",["mouseout","mouseover"]),pl("onPointerEnter",["pointerout","pointerover"]),pl("onPointerLeave",["pointerout","pointerover"]),kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kl("onBeforeInput",["compositionend","keypress","textInput","paste"]),kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Is="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(" "),Ag=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Is));function Sh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var f=n.length-1;0<=f;f--){var m=n[f],x=m.instance,E=m.currentTarget;if(m=m.listener,x!==i&&a.isPropagationStopped())break e;i=m,a.currentTarget=E;try{i(a)}catch(D){Ui(D)}a.currentTarget=null,i=x}else for(f=0;f<n.length;f++){if(m=n[f],x=m.instance,E=m.currentTarget,m=m.listener,x!==i&&a.isPropagationStopped())break e;i=m,a.currentTarget=E;try{i(a)}catch(D){Ui(D)}a.currentTarget=null,i=x}}}}function he(e,t){var l=t[ms];l===void 0&&(l=t[ms]=new Set);var n=e+"__bubble";l.has(n)||(jh(t,e,2,!1),l.add(n))}function Er(e,t,l){var n=0;t&&(n|=4),jh(l,e,n,t)}var jc="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){if(!e[jc]){e[jc]=!0,Ti.forEach(function(l){l!=="selectionchange"&&(Ag.has(l)||Er(l,!1,e),Er(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jc]||(t[jc]=!0,Er("selectionchange",!1,t))}}function jh(e,t,l,n){switch(Ih(t)){case 2:var a=lv;break;case 8:a=nv;break;default:a=Xr}l=a.bind(null,t,l,e),a=void 0,!st||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function _r(e,t,l,n,a){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var m=n.stateNode.containerInfo;if(m===a)break;if(f===4)for(f=n.return;f!==null;){var x=f.tag;if((x===3||x===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;m!==null;){if(f=Ml(m),f===null)return;if(x=f.tag,x===5||x===6||x===26||x===27){n=i=f;continue e}m=m.parentNode}}n=n.return}gt(function(){var E=i,D=V(l),U=[];e:{var A=ef.get(e);if(A!==void 0){var z=Di,W=e;switch(e){case"keypress":if(Ri(l)===0)break e;case"keydown":case"keyup":z=Sp;break;case"focusin":W="focus",z=Fc;break;case"focusout":W="blur",z=Fc;break;case"beforeblur":case"afterblur":z=Fc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=_o;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=rp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=wp;break;case Wo:case Io:case Fo:z=dp;break;case Po:z=kp;break;case"scroll":case"scrollend":z=cp;break;case"wheel":z=Ap;break;case"copy":case"cut":case"paste":z=mp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Ro;break;case"toggle":case"beforetoggle":z=zp}var se=(t&4)!==0,Me=!se&&(e==="scroll"||e==="scrollend"),w=se?A!==null?A+"Capture":null:A;se=[];for(var S=E,k;S!==null;){var M=S;if(k=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||k===null||w===null||(M=Fe(S,w),M!=null&&se.push(Fs(S,M,k))),Me)break;S=S.return}0<se.length&&(A=new z(A,W,null,l,D),U.push({event:A,listeners:se}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",A&&l!==H&&(W=l.relatedTarget||l.fromElement)&&(Ml(W)||W[sn]))break e;if((z||A)&&(A=D.window===D?D:(A=D.ownerDocument)?A.defaultView||A.parentWindow:window,z?(W=l.relatedTarget||l.toElement,z=E,W=W?Ml(W):null,W!==null&&(Me=h(W),se=W.tag,W!==Me||se!==5&&se!==27&&se!==6)&&(W=null)):(z=null,W=E),z!==W)){if(se=_o,M="onMouseLeave",w="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(se=Ro,M="onPointerLeave",w="onPointerEnter",S="pointer"),Me=z==null?A:Xn(z),k=W==null?A:Xn(W),A=new se(M,S+"leave",z,l,D),A.target=Me,A.relatedTarget=k,M=null,Ml(D)===E&&(se=new se(w,S+"enter",W,l,D),se.target=k,se.relatedTarget=Me,M=se),Me=M,z&&W)t:{for(se=_g,w=z,S=W,k=0,M=w;M;M=se(M))k++;M=0;for(var te=S;te;te=se(te))M++;for(;0<k-M;)w=se(w),k--;for(;0<M-k;)S=se(S),M--;for(;k--;){if(w===S||S!==null&&w===S.alternate){se=w;break t}w=se(w),S=se(S)}se=null}else se=null;z!==null&&Nh(U,A,z,se,!1),W!==null&&Me!==null&&Nh(U,Me,W,se,!0)}}e:{if(A=E?Xn(E):window,z=A.nodeName&&A.nodeName.toLowerCase(),z==="select"||z==="input"&&A.type==="file")var je=Bo;else if(Lo(A))if(qo)je=qp;else{je=Hp;var F=Lp}else z=A.nodeName,!z||z.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?E&&fn(E.elementType)&&(je=Bo):je=Bp;if(je&&(je=je(e,E))){Ho(U,je,l,D);break e}F&&F(e,A,E),e==="focusout"&&E&&A.type==="number"&&E.memoizedProps.value!=null&&Na(A,"number",A.value)}switch(F=E?Xn(E):window,e){case"focusin":(Lo(F)||F.contentEditable==="true")&&(Ta=F,au=E,Es=null);break;case"focusout":Es=au=Ta=null;break;case"mousedown":su=!0;break;case"contextmenu":case"mouseup":case"dragend":su=!1,Ko(U,l,D);break;case"selectionchange":if(Gp)break;case"keydown":case"keyup":Ko(U,l,D)}var oe;if(eu)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else wa?Mo(e,l)&&(ge="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ge="onCompositionStart");ge&&(Oo&&l.locale!=="ko"&&(wa||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&wa&&(oe=Eo()):(dn=D,Jc="value"in dn?dn.value:dn.textContent,wa=!0)),F=Nc(E,ge),0<F.length&&(ge=new zo(ge,e,null,l,D),U.push({event:ge,listeners:F}),oe?ge.data=oe:(oe=Uo(l),oe!==null&&(ge.data=oe)))),(oe=Op?Dp(e,l):Cp(e,l))&&(ge=Nc(E,"onBeforeInput"),0<ge.length&&(F=new zo("onBeforeInput","beforeinput",null,l,D),U.push({event:F,listeners:ge}),F.data=oe)),Tg(U,e,E,l,D)}Sh(U,t)})}function Fs(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Nc(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Fe(e,l),a!=null&&n.unshift(Fs(e,a,i)),a=Fe(e,t),a!=null&&n.push(Fs(e,a,i))),e.tag===3)return n;e=e.return}return[]}function _g(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nh(e,t,l,n,a){for(var i=t._reactName,f=[];l!==null&&l!==n;){var m=l,x=m.alternate,E=m.stateNode;if(m=m.tag,x!==null&&x===n)break;m!==5&&m!==26&&m!==27||E===null||(x=E,a?(E=Fe(l,i),E!=null&&f.unshift(Fs(l,E,x))):a||(E=Fe(l,i),E!=null&&f.push(Fs(l,E,x)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var zg=/\r\n?/g,Rg=/\u0000|\uFFFD/g;function wh(e){return(typeof e=="string"?e:""+e).replace(zg,`
9
+ `).replace(Rg,"")}function Th(e,t){return t=wh(t),wh(e)===t}function Ce(e,t,l,n,a,i){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Bl(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Bl(e,""+n);break;case"className":Qn(e,"class",n);break;case"tabIndex":Qn(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Qn(e,l,n);break;case"style":ys(e,n,i);break;case"data":if(t!=="object"){Qn(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=g(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&&Ce(e,t,"name",a.name,a,null),Ce(e,t,"formEncType",a.formEncType,a,null),Ce(e,t,"formMethod",a.formMethod,a,null),Ce(e,t,"formTarget",a.formTarget,a,null)):(Ce(e,t,"encType",a.encType,a,null),Ce(e,t,"method",a.method,a,null),Ce(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=g(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=N);break;case"onScroll":n!=null&&he("scroll",e);break;case"onScrollEnd":n!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=g(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":he("beforetoggle",e),he("toggle",e),ba(e,"popover",n);break;case"xlinkActuate":ll(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ll(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ll(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ll(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ll(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ll(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ll(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ll(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ll(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":ba(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=xs.get(l)||l,ba(e,l,n))}}function zr(e,t,l,n,a,i){switch(l){case"style":ys(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof n=="string"?Bl(e,n):(typeof n=="number"||typeof n=="bigint")&&Bl(e,""+n);break;case"onScroll":n!=null&&he("scroll",e);break;case"onScrollEnd":n!=null&&he("scrollend",e);break;case"onClick":n!=null&&(e.onclick=N);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ml.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),i=e[We]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):ba(e,l,n)}}}function bt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var f=l[i];if(f!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ce(e,t,i,f,l,null)}}a&&Ce(e,t,"srcSet",l.srcSet,l,null),n&&Ce(e,t,"src",l.src,l,null);return;case"input":he("invalid",e);var m=i=f=a=null,x=null,E=null;for(n in l)if(l.hasOwnProperty(n)){var D=l[n];if(D!=null)switch(n){case"name":a=D;break;case"type":f=D;break;case"checked":x=D;break;case"defaultChecked":E=D;break;case"value":i=D;break;case"defaultValue":m=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:Ce(e,t,n,D,l,null)}}gs(e,i,m,x,E,f,a,!1);return;case"select":he("invalid",e),n=f=i=null;for(a in l)if(l.hasOwnProperty(a)&&(m=l[a],m!=null))switch(a){case"value":i=m;break;case"defaultValue":f=m;break;case"multiple":n=m;default:Ce(e,t,a,m,l,null)}t=i,l=f,e.multiple=!!n,t!=null?Hl(e,!!n,t,!1):l!=null&&Hl(e,!!n,l,!0);return;case"textarea":he("invalid",e),i=a=n=null;for(f in l)if(l.hasOwnProperty(f)&&(m=l[f],m!=null))switch(f){case"value":n=m;break;case"defaultValue":a=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:Ce(e,t,f,m,l,null)}Ai(e,n,a,i);return;case"option":for(x in l)l.hasOwnProperty(x)&&(n=l[x],n!=null)&&(x==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Ce(e,t,x,n,l,null));return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(n=0;n<Is.length;n++)he(Is[n],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(E in l)if(l.hasOwnProperty(E)&&(n=l[E],n!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ce(e,t,E,n,l,null)}return;default:if(fn(t)){for(D in l)l.hasOwnProperty(D)&&(n=l[D],n!==void 0&&zr(e,t,D,n,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(n=l[m],n!=null&&Ce(e,t,m,n,l,null))}function Og(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,f=null,m=null,x=null,E=null,D=null;for(z in l){var U=l[z];if(l.hasOwnProperty(z)&&U!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":x=U;default:n.hasOwnProperty(z)||Ce(e,t,z,null,n,U)}}for(var A in n){var z=n[A];if(U=l[A],n.hasOwnProperty(A)&&(z!=null||U!=null))switch(A){case"type":i=z;break;case"name":a=z;break;case"checked":E=z;break;case"defaultChecked":D=z;break;case"value":f=z;break;case"defaultValue":m=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:z!==U&&Ce(e,t,A,z,n,U)}}ps(e,f,m,x,E,D,i,a);return;case"select":z=f=m=A=null;for(i in l)if(x=l[i],l.hasOwnProperty(i)&&x!=null)switch(i){case"value":break;case"multiple":z=x;default:n.hasOwnProperty(i)||Ce(e,t,i,null,n,x)}for(a in n)if(i=n[a],x=l[a],n.hasOwnProperty(a)&&(i!=null||x!=null))switch(a){case"value":A=i;break;case"defaultValue":m=i;break;case"multiple":f=i;default:i!==x&&Ce(e,t,a,i,n,x)}t=m,l=f,n=z,A!=null?Hl(e,!!l,A,!1):!!n!=!!l&&(t!=null?Hl(e,!!l,t,!0):Hl(e,!!l,l?[]:"",!1));return;case"textarea":z=A=null;for(m in l)if(a=l[m],l.hasOwnProperty(m)&&a!=null&&!n.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ce(e,t,m,null,n,a)}for(f in n)if(a=n[f],i=l[f],n.hasOwnProperty(f)&&(a!=null||i!=null))switch(f){case"value":A=a;break;case"defaultValue":z=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==i&&Ce(e,t,f,a,n,i)}vs(e,A,z);return;case"option":for(var W in l)A=l[W],l.hasOwnProperty(W)&&A!=null&&!n.hasOwnProperty(W)&&(W==="selected"?e.selected=!1:Ce(e,t,W,null,n,A));for(x in n)A=n[x],z=l[x],n.hasOwnProperty(x)&&A!==z&&(A!=null||z!=null)&&(x==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Ce(e,t,x,A,n,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 se in l)A=l[se],l.hasOwnProperty(se)&&A!=null&&!n.hasOwnProperty(se)&&Ce(e,t,se,null,n,A);for(E in n)if(A=n[E],z=l[E],n.hasOwnProperty(E)&&A!==z&&(A!=null||z!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:Ce(e,t,E,A,n,z)}return;default:if(fn(t)){for(var Me in l)A=l[Me],l.hasOwnProperty(Me)&&A!==void 0&&!n.hasOwnProperty(Me)&&zr(e,t,Me,void 0,n,A);for(D in n)A=n[D],z=l[D],!n.hasOwnProperty(D)||A===z||A===void 0&&z===void 0||zr(e,t,D,A,n,z);return}}for(var w in l)A=l[w],l.hasOwnProperty(w)&&A!=null&&!n.hasOwnProperty(w)&&Ce(e,t,w,null,n,A);for(U in n)A=n[U],z=l[U],!n.hasOwnProperty(U)||A===z||A==null&&z==null||Ce(e,t,U,A,n,z)}function kh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Dg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,f=a.initiatorType,m=a.duration;if(i&&m&&kh(f)){for(f=0,m=a.responseEnd,n+=1;n<l.length;n++){var x=l[n],E=x.startTime;if(E>m)break;var D=x.transferSize,U=x.initiatorType;D&&kh(U)&&(x=x.responseEnd,f+=D*(x<m?1:(m-E)/(x-E)))}if(--n,t+=8*(i+f)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rr=null,Or=null;function wc(e){return e.nodeType===9?e:e.ownerDocument}function Eh(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 Ah(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Dr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cr=null;function Cg(){var e=window.event;return e&&e.type==="popstate"?e===Cr?!1:(Cr=e,!0):(Cr=null,!1)}var _h=typeof setTimeout=="function"?setTimeout:void 0,Mg=typeof clearTimeout=="function"?clearTimeout:void 0,zh=typeof Promise=="function"?Promise:void 0,Ug=typeof queueMicrotask=="function"?queueMicrotask:typeof zh<"u"?function(e){return zh.resolve(null).then(e).catch(Lg)}:_h;function Lg(e){setTimeout(function(){throw e})}function _n(e){return e==="head"}function Rh(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),Fa(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Ps(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ps(l);for(var i=l.firstChild;i;){var f=i.nextSibling,m=i.nodeName;i[un]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=f}}else l==="body"&&Ps(e.ownerDocument.body);l=a}while(l);Fa(t)}function Oh(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function Mr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Mr(l),Gn(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Hg(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[un])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=rl(e.nextSibling),e===null)break}return null}function Bg(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=rl(e.nextSibling),e===null))return null;return e}function Dh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=rl(e.nextSibling),e===null))return null;return e}function Ur(e){return e.data==="$?"||e.data==="$~"}function Lr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function qg(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function rl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Hr=null;function Ch(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return rl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Mh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Uh(e,t,l){switch(t=wc(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ps(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gn(e)}var ol=new Map,Lh=new Set;function Tc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var en=Q.d;Q.d={f:Yg,r:Gg,D:Xg,C:$g,L:Qg,m:Zg,X:Kg,S:Vg,M:Jg};function Yg(){var e=en.f(),t=gc();return e||t}function Gg(e){var t=Ul(e);t!==null&&t.tag===5&&t.type==="form"?ed(t):en.r(e)}var Ja=typeof document>"u"?null:document;function Hh(e,t,l){var n=Ja;if(n&&typeof t=="string"&&t){var a=pt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Lh.has(a)||(Lh.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),bt(t,"link",e),Ie(t),n.head.appendChild(t)))}}function Xg(e){en.D(e),Hh("dns-prefetch",e,null)}function $g(e,t){en.C(e,t),Hh("preconnect",e,t)}function Qg(e,t,l){en.L(e,t,l);var n=Ja;if(n&&e&&t){var a='link[rel="preload"][as="'+pt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+pt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+pt(l.imageSizes)+'"]')):a+='[href="'+pt(e)+'"]';var i=a;switch(t){case"style":i=Wa(e);break;case"script":i=Ia(e)}ol.has(i)||(e=R({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),ol.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(ei(i))||t==="script"&&n.querySelector(ti(i))||(t=n.createElement("link"),bt(t,"link",e),Ie(t),n.head.appendChild(t)))}}function Zg(e,t){en.m(e,t);var l=Ja;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+pt(n)+'"][href="'+pt(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ia(e)}if(!ol.has(i)&&(e=R({rel:"modulepreload",href:e},t),ol.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ti(i)))return}n=l.createElement("link"),bt(n,"link",e),Ie(n),l.head.appendChild(n)}}}function Vg(e,t,l){en.S(e,t,l);var n=Ja;if(n&&e){var a=rn(n).hoistableStyles,i=Wa(e);t=t||"default";var f=a.get(i);if(!f){var m={loading:0,preload:null};if(f=n.querySelector(ei(i)))m.loading=5;else{e=R({rel:"stylesheet",href:e,"data-precedence":t},l),(l=ol.get(i))&&Br(e,l);var x=f=n.createElement("link");Ie(x),bt(x,"link",e),x._p=new Promise(function(E,D){x.onload=E,x.onerror=D}),x.addEventListener("load",function(){m.loading|=1}),x.addEventListener("error",function(){m.loading|=2}),m.loading|=4,kc(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:m},a.set(i,f)}}}function Kg(e,t){en.X(e,t);var l=Ja;if(l&&e){var n=rn(l).hoistableScripts,a=Ia(e),i=n.get(a);i||(i=l.querySelector(ti(a)),i||(e=R({src:e,async:!0},t),(t=ol.get(a))&&qr(e,t),i=l.createElement("script"),Ie(i),bt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Jg(e,t){en.M(e,t);var l=Ja;if(l&&e){var n=rn(l).hoistableScripts,a=Ia(e),i=n.get(a);i||(i=l.querySelector(ti(a)),i||(e=R({src:e,async:!0,type:"module"},t),(t=ol.get(a))&&qr(e,t),i=l.createElement("script"),Ie(i),bt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Bh(e,t,l,n){var a=(a=fe.current)?Tc(a):null;if(!a)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Wa(l.href),l=rn(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Wa(l.href);var i=rn(a).hoistableStyles,f=i.get(e);if(f||(a=a.ownerDocument||a,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,f),(i=a.querySelector(ei(e)))&&!i._p&&(f.instance=i,f.state.loading=5),ol.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ol.set(e,l),i||Wg(a,e,l,f.state))),t&&n===null)throw Error(r(528,""));return f}if(t&&n!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ia(l),l=rn(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Wa(e){return'href="'+pt(e)+'"'}function ei(e){return'link[rel="stylesheet"]['+e+"]"}function qh(e){return R({},e,{"data-precedence":e.precedence,precedence:null})}function Wg(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),bt(t,"link",l),Ie(t),e.head.appendChild(t))}function Ia(e){return'[src="'+pt(e)+'"]'}function ti(e){return"script[async]"+e}function Yh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+pt(l.href)+'"]');if(n)return t.instance=n,Ie(n),n;var a=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Ie(n),bt(n,"style",a),kc(n,l.precedence,e),t.instance=n;case"stylesheet":a=Wa(l.href);var i=e.querySelector(ei(a));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;n=qh(l),(a=ol.get(a))&&Br(n,a),i=(e.ownerDocument||e).createElement("link"),Ie(i);var f=i;return f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),bt(i,"link",n),t.state.loading|=4,kc(i,l.precedence,e),t.instance=i;case"script":return i=Ia(l.src),(a=e.querySelector(ti(i)))?(t.instance=a,Ie(a),a):(n=l,(a=ol.get(i))&&(n=R({},l),qr(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ie(a),bt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,kc(n,l.precedence,e));return t.instance}function kc(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,f=0;f<n.length;f++){var m=n[f];if(m.dataset.precedence===t)i=m;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Br(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ec=null;function Gh(e,t,l){if(Ec===null){var n=new Map,a=Ec=new Map;a.set(l,n)}else a=Ec,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var i=l[a];if(!(i[un]||i[at]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var f=i.getAttribute(t)||"";f=e+f;var m=n.get(f);m?m.push(i):n.set(f,[i])}}return n}function Xh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ig(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $h(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Fg(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Wa(n.href),i=t.querySelector(ei(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ac.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ie(i);return}i=t.ownerDocument||t,n=qh(n),(a=ol.get(a))&&Br(n,a),i=i.createElement("link"),Ie(i);var f=i;f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),bt(i,"link",n),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ac.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Yr=0;function Pg(e,t){return e.stylesheets&&e.count===0&&zc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&zc(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Yr===0&&(Yr=62500*Dg());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&zc(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Yr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Ac(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _c=null;function zc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_c=new Map,t.forEach(ev,e),_c=null,Ac.call(e))}function ev(e,t){if(!(t.state.loading&4)){var l=_c.get(e);if(l)var n=l.get(null);else{l=new Map,_c.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var f=a[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),n=f)}n&&l.set(null,n)}a=t.instance,f=a.getAttribute("data-precedence"),i=l.get(f)||n,i===n&&l.set(null,a),l.set(f,a),this.count++,n=Ac.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var li={$$typeof:ee,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function tv(e,t,l,n,a,i,f,m,x){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=an(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=an(0),this.hiddenUpdates=an(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Qh(e,t,l,n,a,i,f,m,x,E,D,U){return e=new tv(e,t,l,f,x,E,D,U,m),t=1,i===!0&&(t|=24),i=Gt(3,null,null,t),e.current=i,i.stateNode=e,t=bu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:t},wu(i),e}function Zh(e){return e?(e=Aa,e):Aa}function Vh(e,t,l,n,a,i){a=Zh(a),n.context===null?n.context=a:n.pendingContext=a,n=yn(t),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=xn(e,n,t),l!==null&&(Mt(l,e,t),Cs(l,e,t))}function Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Gr(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function Jh(e){if(e.tag===13||e.tag===31){var t=Jn(e,67108864);t!==null&&Mt(t,e,67108864),Gr(e,67108864)}}function Wh(e){if(e.tag===13||e.tag===31){var t=Vt();t=ds(t);var l=Jn(e,t);l!==null&&Mt(l,e,t),Gr(e,t)}}var Rc=!0;function lv(e,t,l,n){var a=C.T;C.T=null;var i=Q.p;try{Q.p=2,Xr(e,t,l,n)}finally{Q.p=i,C.T=a}}function nv(e,t,l,n){var a=C.T;C.T=null;var i=Q.p;try{Q.p=8,Xr(e,t,l,n)}finally{Q.p=i,C.T=a}}function Xr(e,t,l,n){if(Rc){var a=$r(n);if(a===null)_r(e,t,n,Oc,l),Fh(e,n);else if(sv(a,e,t,l,n))n.stopPropagation();else if(Fh(e,n),t&4&&-1<av.indexOf(e)){for(;a!==null;){var i=Ul(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=wl(i.pendingLanes);if(f!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var x=1<<31-jt(f);m.entanglements[1]|=x,f&=~x}Rl(i),(Ee&6)===0&&(mc=St()+500,Ws(0))}}break;case 31:case 13:m=Jn(i,2),m!==null&&Mt(m,i,2),gc(),Gr(i,2)}if(i=$r(n),i===null&&_r(e,t,n,Oc,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else _r(e,t,n,null,l)}}function $r(e){return e=V(e),Qr(e)}var Oc=null;function Qr(e){if(Oc=null,e=Ml(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===31){if(e=v(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Oc=e,null}function Ih(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bi()){case fl:return 2;case Nl:return 8;case Ft:case us:return 32;case qn:return 268435456;default:return 32}default:return 32}}var Zr=!1,zn=null,Rn=null,On=null,ni=new Map,ai=new Map,Dn=[],av="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fh(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":On=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(t.pointerId)}}function si(e,t,l,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=Ul(t),t!==null&&Jh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function sv(e,t,l,n,a){switch(t){case"focusin":return zn=si(zn,e,t,l,n,a),!0;case"dragenter":return Rn=si(Rn,e,t,l,n,a),!0;case"mouseover":return On=si(On,e,t,l,n,a),!0;case"pointerover":var i=a.pointerId;return ni.set(i,si(ni.get(i)||null,e,t,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,ai.set(i,si(ai.get(i)||null,e,t,l,n,a)),!0}return!1}function Ph(e){var t=Ml(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,hs(e.priority,function(){Wh(l)});return}}else if(t===31){if(t=v(l),t!==null){e.blockedOn=t,hs(e.priority,function(){Wh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=$r(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);H=n,l.target.dispatchEvent(n),H=null}else return t=Ul(l),t!==null&&Jh(t),e.blockedOn=l,!1;t.shift()}return!0}function em(e,t,l){Dc(e)&&l.delete(t)}function iv(){Zr=!1,zn!==null&&Dc(zn)&&(zn=null),Rn!==null&&Dc(Rn)&&(Rn=null),On!==null&&Dc(On)&&(On=null),ni.forEach(em),ai.forEach(em)}function Cc(e,t){e.blockedOn===t&&(e.blockedOn=null,Zr||(Zr=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,iv)))}var Mc=null;function tm(e){Mc!==e&&(Mc=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Mc===e&&(Mc=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(Qr(n||l)===null)continue;break}var i=Ul(l);i!==null&&(e.splice(t,3),t-=3,$u(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Fa(e){function t(x){return Cc(x,e)}zn!==null&&Cc(zn,e),Rn!==null&&Cc(Rn,e),On!==null&&Cc(On,e),ni.forEach(t),ai.forEach(t);for(var l=0;l<Dn.length;l++){var n=Dn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Dn.length&&(l=Dn[0],l.blockedOn===null);)Ph(l),l.blockedOn===null&&Dn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],f=a[We]||null;if(typeof i=="function")f||tm(l);else if(f){var m=null;if(i&&i.hasAttribute("formAction")){if(a=i,f=i[We]||null)m=f.formAction;else if(Qr(a)!==null)continue}else m=f.action;typeof m=="function"?l[n+1]=m:(l.splice(n,3),n-=3),tm(l)}}}function lm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return a=f})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Vr(e){this._internalRoot=e}Uc.prototype.render=Vr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,n=Vt();Vh(l,n,e,t,null,null)},Uc.prototype.unmount=Vr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vh(e.current,2,null,e,null,null),gc(),t[sn]=null}};function Uc(e){this._internalRoot=e}Uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=xa();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Dn.length&&t!==0&&t<Dn[l].priority;l++);Dn.splice(l,0,e),l===0&&Ph(e)}};var nm=c.version;if(nm!=="19.2.8")throw Error(r(527,nm,"19.2.8"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var cv={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lc.isDisabled&&Lc.supportsFiber)try{Pt=Lc.inject(cv),rt=Lc}catch{}}return ci.createRoot=function(e,t){if(!d(e))throw Error(r(299));var l=!1,n="",a=od,i=fd,f=dd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Qh(e,1,!1,null,null,l,n,null,a,i,f,lm),e[sn]=t.current,Ar(e),new Vr(t)},ci.hydrateRoot=function(e,t,l){if(!d(e))throw Error(r(299));var n=!1,a="",i=od,f=fd,m=dd,x=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),t=Qh(e,1,!0,t,l??null,n,a,x,i,f,m,lm),t.context=Zh(null),l=t.current,n=Vt(),n=ds(n),a=yn(n),a.callback=null,xn(l,a,n),l=n,t.current.lanes=l,Tl(t,l),Rl(t),e[sn]=t.current,Ar(e),new Uc(t)},ci.version="19.2.8",ci}var hm;function vv(){if(hm)return Wr.exports;hm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),Wr.exports=gv(),Wr.exports}var yv=vv();function xv(){const[u,c]=B.useState(()=>window.location.hash.slice(1)||"/");return B.useEffect(()=>{const o=()=>c(window.location.hash.slice(1)||"/");return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),u}function jl(u,c){c?.replace?window.location.replace(`#${u}`):window.location.hash=u}function we({href:u,...c}){return s.jsx("a",{href:`#${u}`,...c})}const Xm="kw-expert";let po=(()=>{try{return localStorage.getItem(Xm)!=="off"}catch{return!0}})();const io=new Set;document.documentElement.dataset.expert=po?"on":"off";function bv(u){po=u,document.documentElement.dataset.expert=u?"on":"off";try{localStorage.setItem(Xm,u?"on":"off")}catch{}io.forEach(c=>c())}function mi(){return B.useSyncExternalStore(u=>(io.add(u),()=>io.delete(u)),()=>po)}function Ge(u,c){const[o,r]=B.useState(null),d=B.useRef(u);return d.current=u,B.useEffect(()=>{let h=!0,p;const v=async()=>{try{const b=await fetch(d.current,{cache:"no-store"});b.ok&&h&&r(await b.json())}catch{}h&&(p=setTimeout(v,c?1500:6e3))};return v(),()=>{h=!1,clearTimeout(p)}},[u,c]),o}function pi(u){if(u==null)return"—";const c=Math.round(u/1e3);return c<60?`${c}s`:`${Math.floor(c/60)}m${String(c%60).padStart(2,"0")}s`}function go(u){return u==null?"—":`$${u.toFixed(2)}`}function qc(u){return u?u>=1e3?`${(u/1e3).toFixed(1)}k`:String(u):"0"}function vo(u){return u<1024?`${u} B`:u<1024*1024?`${(u/1024).toFixed(1)} K`:`${(u/1024/1024).toFixed(1)} M`}function ls(u){if(!u)return"—";const c=new Date(u),o=new Date,r=c.toDateString()===o.toDateString(),d=c.toTimeString().slice(0,5);return r?d:`${c.toISOString().slice(5,10)} ${d}`}function $m(u){if(!u)return"—";const c=Date.now()-Date.parse(u);if(c<6e4)return"just now";const o=Math.floor(c/6e4);if(o<60)return`${o}m ago`;const r=Math.floor(o/60);if(r<24)return`${r}h ago`;const d=Math.floor(r/24);return d<7?`${d}d ago`:new Date(u).toISOString().slice(5,10)}function yo({since:u}){const[,c]=B.useState(0);return B.useEffect(()=>{const o=setInterval(()=>c(r=>r+1),1e3);return()=>clearInterval(o)},[]),u?s.jsx("span",{className:"num",children:pi(Date.now()-Date.parse(u))}):null}function Qc({status:u}){return s.jsx("span",{className:`lamp ${u}`})}function Sv({status:u}){return s.jsx("span",{className:`status-word ${u}`,children:u})}function xo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var da=xo();function Qm(u){da=u}var oa={exec:()=>null};function Pa(u){let c=[];return o=>{let r=Math.max(0,Math.min(3,o-1)),d=c[r];return d||(d=u(r),c[r]=d),d}}function me(u,c=""){let o=typeof u=="string"?u:u.source,r={replace:(d,h)=>{let p=typeof h=="string"?h:h.source;return p=p.replace(Tt.caret,"$1"),o=o.replace(d,p),r},getRegex:()=>new RegExp(o,c)};return r}var jv=((u="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+u)}catch{return!1}})(),Tt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:u=>new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Pa(u=>new RegExp(`^ {0,${u}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Pa(u=>new RegExp(`^ {0,${u}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Pa(u=>new RegExp(`^ {0,${u}}(?:\`\`\`|~~~)`)),headingBeginRegex:Pa(u=>new RegExp(`^ {0,${u}}#`)),htmlBeginRegex:Pa(u=>new RegExp(`^ {0,${u}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Pa(u=>new RegExp(`^ {0,${u}}>`))},Nv=/^(?:[ \t]*(?:\n|$))+/,wv=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Tv=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,gi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,kv=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bo=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Zm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Vm=me(Zm).replace(/bull/g,bo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ev=me(Zm).replace(/bull/g,bo).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),So=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Av=/^[^\n]+/,jo=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,_v=me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",jo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zv=me(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,bo).getRegex(),Zc="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",No=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Rv=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",No).replace("tag",Zc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Km=u=>me(So).replace("hr",gi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",u).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zc).getRegex(),Ov=Km(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Dv=Km(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Cv=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Dv).getRegex(),wo={blockquote:Cv,code:wv,def:_v,fences:Tv,heading:kv,hr:gi,html:Rv,lheading:Vm,list:zv,newline:Nv,paragraph:Ov,table:oa,text:Av},mm=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zc).getRegex(),Mv={...wo,lheading:Ev,table:mm,paragraph:me(So).replace("hr",gi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Zc).getRegex()},Uv={...wo,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",No).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:oa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(So).replace("hr",gi).replace("heading",` *#{1,6} *[^
10
+ ]`).replace("lheading",Vm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Lv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Jm=/^( {2,}|\\)\n(?!\s*$)/,Bv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tn=/[\p{P}\p{S}]/u,ns=/[\s\p{P}\p{S}]/u,vi=/[^\s\p{P}\p{S}]/u,qv=me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ns).getRegex(),Yv=/[\p{Pi}\p{Ps}"']/u,Wm=/(?!~)[\p{P}\p{S}]/u,Gv=/(?!~)[\s\p{P}\p{S}]/u,Xv=/(?:[^\s\p{P}\p{S}]|~)/u,$v=me(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",jv?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Im=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Qv=me(Im,"u").replace(/punct/g,tn).getRegex(),Zv=me(Im,"u").replace(/punct/g,Wm).getRegex(),Vv=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Kv=me(Vv,"u").replace(/openQuote/g,Yv).replace(/punct/g,tn).getRegex(),Fm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Jv=me(Fm,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),Wv=me(Fm,"gu").replace(/notPunctSpace/g,Xv).replace(/punctSpace/g,Gv).replace(/punct/g,Wm).getRegex(),Iv="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Fv=me(Iv,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),Pv=me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),ey="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",ty=me(ey,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),ly=me(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,tn).getRegex(),ny="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ay=me(ny,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),sy=me(/\\(punct)/,"gu").replace(/punct/g,tn).getRegex(),iy=me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),cy=me(No).replace("(?:-->|$)","-->").getRegex(),uy=me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",cy).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Yc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ry=me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Yc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Pm=me(/^!?\[(label)\]\[(ref)\]/).replace("label",Yc).replace("ref",jo).getRegex(),ep=me(/^!?\[(ref)\](?:\[\])?/).replace("ref",jo).getRegex(),oy=me("reflink|nolink(?!\\()","g").replace("reflink",Pm).replace("nolink",ep).getRegex(),pm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,To={_backpedal:oa,anyPunctuation:sy,autolink:iy,blockSkip:$v,br:Jm,code:Hv,del:oa,delLDelim:oa,delRDelim:oa,emStrongLDelim:Qv,emStrongRDelimAst:Jv,emStrongRDelimUnd:Pv,escape:Lv,link:ry,nolink:ep,punctuation:qv,reflink:Pm,reflinkSearch:oy,tag:uy,text:Bv,url:oa},fy={...To,emStrongLDelim:Kv,emStrongRDelimAst:Fv,emStrongRDelimUnd:ty,link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",Yc).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Yc).getRegex()},co={...To,emStrongRDelimAst:Wv,emStrongLDelim:Zv,delLDelim:ly,delRDelim:ay,url:me(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",pm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:me(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",pm).getRegex()},dy={...co,br:me(Jm).replace("{2,}","*").getRegex(),text:me(co.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Hc={normal:wo,gfm:Mv,pedantic:Uv},ui={normal:To,gfm:co,breaks:dy,pedantic:fy},hy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gm=u=>hy[u];function Ol(u,c){if(c){if(Tt.escapeTest.test(u))return u.replace(Tt.escapeReplace,gm)}else if(Tt.escapeTestNoEncode.test(u))return u.replace(Tt.escapeReplaceNoEncode,gm);return u}function vm(u){try{u=encodeURI(u).replace(Tt.percentDecode,"%")}catch{return null}return u}function ym(u,c){let o=u.replace(Tt.findPipe,(h,p,v)=>{let b=!1,y=p;for(;--y>=0&&v[y]==="\\";)b=!b;return b?"|":" |"}),r=o.split(Tt.splitPipe),d=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),c)if(r.length>c)r.splice(c);else for(;r.length<c;)r.push("");for(;d<r.length;d++)r[d]=r[d].trim().replace(Tt.slashPipe,"|");return r}function Mn(u,c,o){let r=u.length;if(r===0)return"";let d=0;for(;d<r&&u.charAt(r-d-1)===c;)d++;return u.slice(0,r-d)}function xm(u){let c=u.split(`
11
+ `),o=c.length-1;for(;o>=0&&Tt.blankLine.test(c[o]);)o--;return c.length-o<=2?u:c.slice(0,o+1).join(`
12
+ `)}function my(u,c){if(u.indexOf(c[1])===-1)return-1;let o=0;for(let r=0;r<u.length;r++)if(u[r]==="\\")r++;else if(u[r]===c[0])o++;else if(u[r]===c[1]&&(o--,o<0))return r;return o>0?-2:-1}function py(u,c=0){let o=c,r="";for(let d of u)if(d===" "){let h=4-o%4;r+=" ".repeat(h),o+=h}else r+=d,o++;return r}function bm(u,c,o,r,d){let h=c.href,p=c.title||null,v=u[1].replace(d.other.outputLinkReplace,"$1"),b=u[0].charAt(0)==="!";r.state.inLink=!0;let y=r.state.linkEmitted,T=r.state.inRawBlock;r.state.linkEmitted=!1;let R=r.inlineTokens(v),_=r.state.linkEmitted;if(r.state.linkEmitted=y,r.state.inLink=!1,!b){if(_){r.state.inRawBlock=T;return}r.state.linkEmitted=!0}return{type:b?"image":"link",raw:o,href:h,title:p,text:v,tokens:R}}function gy(u,c,o){let r=u.match(o.other.indentCodeCompensation);if(r===null)return c;let d=r[1];return c.split(`
13
+ `).map(h=>{let p=h.match(o.other.beginningSpace);if(p===null)return h;let[v]=p;return v.length>=d.length?h.slice(d.length):h}).join(`
14
+ `)}var Gc=class{options;rules;lexer;constructor(u){this.options=u||da}space(u){let c=this.rules.block.newline.exec(u);if(c&&c[0].length>0)return{type:"space",raw:c[0]}}code(u){let c=this.rules.block.code.exec(u);if(c){let o=this.options.pedantic?c[0]:xm(c[0]),r=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:r}}}fences(u){let c=this.rules.block.fences.exec(u);if(c){let o=c[0],r=gy(o,c[3]||"",this.rules);return{type:"code",raw:o,lang:c[2]?c[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):c[2],text:r}}}heading(u){let c=this.rules.block.heading.exec(u);if(c){let o=c[2].trim();if(this.rules.other.endingHash.test(o)){let r=Mn(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(o=r.trim())}return{type:"heading",raw:Mn(c[0],`
15
+ `),depth:c[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(u){let c=this.rules.block.hr.exec(u);if(c)return{type:"hr",raw:Mn(c[0],`
16
+ `)}}blockquote(u){let c=this.rules.block.blockquote.exec(u);if(c){let o=Mn(c[0],`
17
+ `).split(`
18
+ `),r="",d="",h=[];for(;o.length>0;){let p=!1,v=[],b;for(b=0;b<o.length;b++)if(this.rules.other.blockquoteStart.test(o[b]))v.push(o[b]),p=!0;else if(!p)v.push(o[b]);else break;o=o.slice(b);let y=v.join(`
19
+ `),T=y.replace(this.rules.other.blockquoteSetextReplace,`
20
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
21
+ ${y}`:y,d=d?`${d}
22
+ ${T}`:T;let R=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(T,h,!0),this.lexer.state.top=R,o.length===0)break;let _=h.at(-1);if(_?.type==="code")break;if(_?.type==="blockquote"){let q=_,G=o.join(`
23
+ `),K=q.raw+`
24
+ `+G.replace(this.rules.other.blockquoteSetextReplace2,""),I=this.blockquote(K);h[h.length-1]=I,r=`${r}
25
+ ${G}`,d=d.substring(0,d.length-q.text.length)+I.text;break}else if(_?.type==="list"){let q=_,G=q.raw+`
26
+ `+o.join(`
27
+ `),K=this.list(G);h[h.length-1]=K,r=r.substring(0,r.length-_.raw.length)+K.raw,d=d.substring(0,d.length-q.raw.length)+K.raw,o=G.substring(h.at(-1).raw.length).split(`
28
+ `);continue}}return{type:"blockquote",raw:r,tokens:h,text:d}}}list(u){let c=this.rules.block.list.exec(u);if(c){let o=c[1].trim(),r=o.length>1,d={type:"list",raw:"",ordered:r,start:r?+o.slice(0,-1):"",loose:!1,items:[]};o=r?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=r?o:"[*+-]");let h=this.rules.other.listItemRegex(o),p=!1;for(;u;){let b=!1,y="",T="";if(!(c=h.exec(u))||this.rules.block.hr.test(u))break;y=c[0],u=u.substring(y.length);let R=py(c[2].split(`
29
+ `,1)[0],c[1].length),_=u.split(`
30
+ `,1)[0],q=!R.trim(),G=0;if(this.options.pedantic?(G=2,T=R.trimStart()):q?G=c[1].length+1:(G=R.search(this.rules.other.nonSpaceChar),G=G>4?1:G,T=R.slice(G),G+=c[1].length),q&&this.rules.other.blankLine.test(_)&&(y+=_+`
31
+ `,u=u.substring(_.length+1),b=!0),!b){let K=this.rules.other.nextBulletRegex(G),I=this.rules.other.hrRegex(G),O=this.rules.other.fencesBeginRegex(G),ke=this.rules.other.headingBeginRegex(G),ee=this.rules.other.htmlBeginRegex(G),ae=this.rules.other.blockquoteBeginRegex(G);for(;u;){let ie=u.split(`
32
+ `,1)[0],$;if(_=ie,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),$=_):$=_.replace(this.rules.other.tabCharGlobal," "),O.test(_)||ke.test(_)||ee.test(_)||ae.test(_)||K.test(_)||I.test(_))break;if($.search(this.rules.other.nonSpaceChar)>=G||!_.trim())T+=`
33
+ `+$.slice(G);else{if(q||R.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(R)||ke.test(R)||I.test(R))break;T+=`
34
+ `+_}q=!_.trim(),y+=ie+`
35
+ `,u=u.substring(ie.length+1),R=$.slice(G)}}d.loose||(p?d.loose=!0:this.rules.other.doubleBlankLine.test(y)&&(p=!0)),d.items.push({type:"list_item",raw:y,task:!!this.options.gfm&&this.rules.other.listIsTask.test(T),loose:!1,text:T,tokens:[]}),d.raw+=y}let v=d.items.at(-1);if(v)v.raw=v.raw.trimEnd(),v.text=v.text.trimEnd();else return;d.raw=d.raw.trimEnd();for(let b of d.items)if(this.lexer.state.top=!1,b.tokens=this.lexer.blockTokens(b.text,[]),!d.loose){let y=b.tokens.filter(R=>R.type==="space"),T=y.length>0&&y.some(R=>this.rules.other.anyLine.test(R.raw));d.loose=T}for(let b of d.items){let y=b.tokens[0];if(b.task&&(y?.type==="text"||y?.type==="paragraph")){b.text=b.text.replace(this.rules.other.listReplaceTask,""),y.raw=y.raw.replace(this.rules.other.listReplaceTask,""),y.text=y.text.replace(this.rules.other.listReplaceTask,"");for(let R=this.lexer.inlineQueue.length-1;R>=0;R--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[R].src)){this.lexer.inlineQueue[R].src=this.lexer.inlineQueue[R].src.replace(this.rules.other.listReplaceTask,"");break}let T=this.rules.other.listTaskCheckbox.exec(b.raw);if(T){let R={type:"checkbox",raw:T[0]+" ",checked:T[0]!=="[ ]"};b.checked=R.checked,d.loose?b.tokens[0]&&["paragraph","text"].includes(b.tokens[0].type)&&"tokens"in b.tokens[0]&&b.tokens[0].tokens?(b.tokens[0].raw=R.raw+b.tokens[0].raw,b.tokens[0].text=R.raw+b.tokens[0].text,b.tokens[0].tokens.unshift(R)):b.tokens.unshift({type:"paragraph",raw:R.raw,text:R.raw,tokens:[R]}):b.tokens.unshift(R)}}else b.task&&(b.task=!1)}if(d.loose)for(let b of d.items){b.loose=!0;for(let y of b.tokens)y.type==="text"&&(y.type="paragraph")}return d}}html(u){let c=this.rules.block.html.exec(u);if(c){let o=xm(c[0]);return{type:"html",block:!0,raw:o,pre:c[1]==="pre"||c[1]==="script"||c[1]==="style",text:o}}}def(u){let c=this.rules.block.def.exec(u);if(c){let o=c[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=c[2]?c[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",d=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):c[3];return{type:"def",tag:o,raw:Mn(c[0],`
36
+ `),href:r,title:d}}}table(u){let c=this.rules.block.table.exec(u);if(!c||!this.rules.other.tableDelimiter.test(c[2]))return;let o=ym(c[1]),r=c[2].replace(this.rules.other.tableAlignChars,"").split("|"),d=c[3]?.trim()?c[3].replace(this.rules.other.tableRowBlankLine,"").split(`
37
+ `):[],h={type:"table",raw:Mn(c[0],`
38
+ `),header:[],align:[],rows:[]};if(o.length===r.length){for(let p of r)this.rules.other.tableAlignRight.test(p)?h.align.push("right"):this.rules.other.tableAlignCenter.test(p)?h.align.push("center"):this.rules.other.tableAlignLeft.test(p)?h.align.push("left"):h.align.push(null);for(let p=0;p<o.length;p++)h.header.push({text:o[p],tokens:this.lexer.inline(o[p]),header:!0,align:h.align[p]});for(let p of d)h.rows.push(ym(p,h.header.length).map((v,b)=>({text:v,tokens:this.lexer.inline(v),header:!1,align:h.align[b]})));return h}}lheading(u){let c=this.rules.block.lheading.exec(u);if(c){let o=c[1].trim();return{type:"heading",raw:Mn(c[0],`
39
+ `),depth:c[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(u){let c=this.rules.block.paragraph.exec(u);if(c){let o=c[1].charAt(c[1].length-1)===`
40
+ `?c[1].slice(0,-1):c[1];return{type:"paragraph",raw:c[0],text:o,tokens:this.lexer.inline(o)}}}text(u){let c=this.rules.block.text.exec(u);if(c)return{type:"text",raw:c[0],text:c[0],tokens:this.lexer.inline(c[0])}}escape(u){let c=this.rules.inline.escape.exec(u);if(c)return{type:"escape",raw:c[0],text:c[1]}}tag(u){let c=this.rules.inline.tag.exec(u);if(c)return!this.lexer.state.inLink&&this.rules.other.startATag.test(c[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(c[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(c[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(c[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:c[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:c[0]}}link(u){let c=this.rules.inline.link.exec(u);if(c){let o=c[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let h=Mn(o.slice(0,-1),"\\");if((o.length-h.length)%2===0)return}else{let h=my(c[2],"()");if(h===-2)return;if(h>-1){let p=(c[0].indexOf("!")===0?5:4)+c[1].length+h;c[2]=c[2].substring(0,h),c[0]=c[0].substring(0,p).trim(),c[3]=""}}let r=c[2],d="";if(this.options.pedantic){let h=this.rules.other.pedanticHrefTitle.exec(r);h&&(r=h[1],d=h[3])}else d=c[3]?c[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?r=r.slice(1):r=r.slice(1,-1)),bm(c,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:d&&d.replace(this.rules.inline.anyPunctuation,"$1")},c[0],this.lexer,this.rules)}}reflink(u,c){let o;if((o=this.rules.inline.reflink.exec(u))||(o=this.rules.inline.nolink.exec(u))){let r=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),d=c[r.toLowerCase()];if(!d){let h=o[0].charAt(0);return{type:"text",raw:h,text:h}}return bm(o,d,o[0],this.lexer,this.rules)}}emStrong(u,c,o=""){let r=this.rules.inline.emStrongLDelim.exec(u);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!o||this.rules.inline.punctuation.exec(o))){let d=[...r[0]].length-1,h,p,v=d,b=0,y=r[0][0],T=o===y,R=y==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(R.lastIndex=0,c=c.slice(-1*u.length+d);(r=R.exec(c))!==null;){if(h=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!h)continue;if(p=[...h].length,r[3]||r[4]){v+=p;continue}else if(r[5]||r[6]){if(d%3&&!((d+p)%3)){b+=p;continue}if(T)break}if(v-=p,v>0)continue;p=Math.min(p,p+v+b);let _=[...r[0]][0].length,q=u.slice(0,d+r.index+_+p);if(Math.min(d,p)%2){let K=q.slice(1,-1);return{type:"em",raw:q,text:K,tokens:this.lexer.inlineTokens(K)}}let G=q.slice(2,-2);return{type:"strong",raw:q,text:G,tokens:this.lexer.inlineTokens(G)}}}}codespan(u){let c=this.rules.inline.code.exec(u);if(c){let o=c[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),d=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&d&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:c[0],text:o}}}br(u){let c=this.rules.inline.br.exec(u);if(c)return{type:"br",raw:c[0]}}del(u,c,o=""){let r=this.rules.inline.delLDelim.exec(u);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let d=[...r[0]].length-1,h,p,v=d,b=this.rules.inline.delRDelim;for(b.lastIndex=0,c=c.slice(-1*u.length+d);(r=b.exec(c))!==null;){if(h=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!h||(p=[...h].length,p!==d))continue;if(r[3]||r[4]){v+=p;continue}if(v-=p,v>0)continue;p=Math.min(p,p+v);let y=[...r[0]][0].length,T=u.slice(0,d+r.index+y+p),R=T.slice(d,-d);return{type:"del",raw:T,text:R,tokens:this.lexer.inlineTokens(R)}}}}autolink(u){let c=this.rules.inline.autolink.exec(u);if(c){let o,r;return c[2]==="@"?(o=c[1],r="mailto:"+o):(o=c[1],r=o),{type:"link",raw:c[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}url(u){let c;if(c=this.rules.inline.url.exec(u)){let o,r;if(c[2]==="@")o=c[0],r="mailto:"+o;else{let d;do d=c[0],c[0]=this.rules.inline._backpedal.exec(c[0])?.[0]??"";while(d!==c[0]);o=c[0],c[1]==="www."?r="http://"+c[0]:r=c[0]}return{type:"link",raw:c[0],text:o,href:r,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(u){let c=this.rules.inline.text.exec(u);if(c){let o=this.lexer.state.inRawBlock;return{type:"text",raw:c[0],text:c[0],escaped:o}}}},bl=class uo{tokens;options;state;inlineQueue;tokenizer;constructor(c){this.tokens=[],this.tokens.links=Object.create(null),this.options=c||da,this.options.tokenizer=this.options.tokenizer||new Gc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let o={other:Tt,block:Hc.normal,inline:ui.normal};this.options.pedantic?(o.block=Hc.pedantic,o.inline=ui.pedantic):this.options.gfm&&(o.block=Hc.gfm,this.options.breaks?o.inline=ui.breaks:o.inline=ui.gfm),this.tokenizer.rules=o}static get rules(){return{block:Hc,inline:ui}}static lex(c,o){return new uo(o).lex(c)}static lexInline(c,o){return new uo(o).inlineTokens(c)}lex(c){c=c.replace(Tt.carriageReturn,`
41
+ `),this.blockTokens(c,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(c,o=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(c=c.replace(Tt.tabCharGlobal," ").replace(Tt.spaceLine,""));let d=1/0;for(;c;){if(c.length<d)d=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}let h;if(this.options.extensions?.block?.some(v=>(h=v.call({lexer:this},c,o))?(c=c.substring(h.raw.length),o.push(h),!0):!1))continue;if(h=this.tokenizer.space(c)){c=c.substring(h.raw.length);let v=o.at(-1);h.raw.length===1&&v!==void 0?v.raw+=`
42
+ `:o.push(h);continue}if(h=this.tokenizer.code(c)){c=c.substring(h.raw.length);let v=o.at(-1);v?.type==="paragraph"||v?.type==="text"?(v.raw+=(v.raw.endsWith(`
43
+ `)?"":`
44
+ `)+h.raw,v.text+=`
45
+ `+h.text,this.inlineQueue.at(-1).src=v.text):o.push(h);continue}if(h=this.tokenizer.fences(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.heading(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.hr(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.blockquote(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.list(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.html(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.def(c)){c=c.substring(h.raw.length);let v=o.at(-1);v?.type==="paragraph"||v?.type==="text"?(v.raw+=(v.raw.endsWith(`
46
+ `)?"":`
47
+ `)+h.raw,v.text+=`
48
+ `+h.raw,this.inlineQueue.at(-1).src=v.text):this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title},o.push(h));continue}if(h=this.tokenizer.table(c)){c=c.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.lheading(c)){c=c.substring(h.raw.length),o.push(h);continue}let p=c;if(this.options.extensions?.startBlock){let v=1/0,b=c.slice(1),y;this.options.extensions.startBlock.forEach(T=>{y=T.call({lexer:this},b),typeof y=="number"&&y>=0&&(v=Math.min(v,y))}),v<1/0&&v>=0&&(p=c.substring(0,v+1))}if(this.state.top&&(h=this.tokenizer.paragraph(p))){let v=o.at(-1);r&&v?.type==="paragraph"?(v.raw+=(v.raw.endsWith(`
49
+ `)?"":`
50
+ `)+h.raw,v.text+=`
51
+ `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):o.push(h),r=p.length!==c.length,c=c.substring(h.raw.length);continue}if(h=this.tokenizer.text(c)){c=c.substring(h.raw.length);let v=o.at(-1);v?.type==="text"?(v.raw+=(v.raw.endsWith(`
52
+ `)?"":`
53
+ `)+h.raw,v.text+=`
54
+ `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):o.push(h);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return this.state.top=!0,o}inline(c,o=[]){return this.inlineQueue.push({src:c,tokens:o}),o}linkInText(c){if(!c.includes("["))return!1;let o=this.tokenizer.rules.inline.link;for(let r of c.matchAll(this.tokenizer.rules.inline.blockSkip))if(o.test(r[0])&&c.charAt(r.index-1)!=="!")return!0;for(let r of c.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let d=r[0],h=d.lastIndexOf("[");if(!(d.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,d.slice(h+1,-1)))&&!(h>1&&this.linkInText(d.slice(1,h-1))))return!0}return!1}inlineTokens(c,o=[]){this.tokenizer.lexer=this;let r=c;if(this.tokens.links&&c.includes("[")){let v=this.tokenizer.rules.inline.reflinkSearch,b=y=>{let T=y.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,y.slice(T+1,-1)))return y;if(T>1&&y.charAt(0)!=="!"){let R=y.slice(1,T-1);if(this.linkInText(R))return"["+R.replace(v,b)+"]["+"a".repeat(y.length-T-2)+"]"}return"["+"a".repeat(y.length-2)+"]"};r=r.replace(v,b)}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,v=>"+".repeat(v.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(v,b,y)=>{let T=y?y.length:0;return v.slice(0,T)+"["+"a".repeat(v.length-T-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let d=!1,h="",p=1/0;for(;c;){if(c.length<p)p=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}d||(h=""),d=!1;let v;if(this.options.extensions?.inline?.some(y=>(v=y.call({lexer:this},c,o))?(c=c.substring(v.raw.length),o.push(v),!0):!1))continue;if(v=this.tokenizer.escape(c)){c=c.substring(v.raw.length),o.push(v);continue}if(v=this.tokenizer.tag(c)){c=c.substring(v.raw.length),o.push(v);continue}if(v=this.tokenizer.link(c)){c=c.substring(v.raw.length),o.push(v);continue}if(v=this.tokenizer.reflink(c,this.tokens.links)){c=c.substring(v.raw.length);let y=o.at(-1);v.type==="text"&&y?.type==="text"?(y.raw+=v.raw,y.text+=v.text):o.push(v);continue}if(v=this.tokenizer.emStrong(c,r,h)){c=c.substring(v.raw.length),o.push(v);continue}if(v=this.tokenizer.codespan(c)){c=c.substring(v.raw.length),o.push(v);continue}if(v=this.tokenizer.br(c)){c=c.substring(v.raw.length),o.push(v);continue}if(v=this.tokenizer.del(c,r,h)){c=c.substring(v.raw.length),o.push(v);continue}if(v=this.tokenizer.autolink(c)){c=c.substring(v.raw.length),o.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(c))){c=c.substring(v.raw.length),o.push(v);continue}let b=c;if(this.options.extensions?.startInline){let y=1/0,T=c.slice(1),R;this.options.extensions.startInline.forEach(_=>{R=_.call({lexer:this},T),typeof R=="number"&&R>=0&&(y=Math.min(y,R))}),y<1/0&&y>=0&&(b=c.substring(0,y+1))}if(v=this.tokenizer.inlineText(b)){c=c.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(h=v.raw.slice(-1)),d=!0;let y=o.at(-1);y?.type==="text"?(y.raw+=v.raw,y.text+=v.text):o.push(v);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return o}infiniteLoopError(c){let o="Infinite loop on byte: "+c;if(this.options.silent)console.error(o);else throw new Error(o)}},Xc=class{options;parser;constructor(u){this.options=u||da}space(u){return""}code({text:u,lang:c,escaped:o}){let r=(c||"").match(Tt.notSpaceStart)?.[0],d=u.replace(Tt.endingNewline,"")+`
55
+ `;return r?'<pre><code class="language-'+Ol(r)+'">'+(o?d:Ol(d,!0))+`</code></pre>
56
+ `:"<pre><code>"+(o?d:Ol(d,!0))+`</code></pre>
57
+ `}blockquote({tokens:u}){return`<blockquote>
58
+ ${this.parser.parse(u)}</blockquote>
59
+ `}html({text:u}){return u}def(u){return""}heading({tokens:u,depth:c}){return`<h${c}>${this.parser.parseInline(u)}</h${c}>
60
+ `}hr(u){return`<hr>
61
+ `}list(u){let c=u.ordered,o=u.start,r="";for(let p=0;p<u.items.length;p++){let v=u.items[p];r+=this.listitem(v)}let d=c?"ol":"ul",h=c&&o!==1?' start="'+o+'"':"";return"<"+d+h+`>
62
+ `+r+"</"+d+`>
63
+ `}listitem(u){return`<li>${this.parser.parse(u.tokens)}</li>
64
+ `}checkbox({checked:u}){return"<input "+(u?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:u}){return`<p>${this.parser.parseInline(u)}</p>
65
+ `}table(u){let c="",o="";for(let d=0;d<u.header.length;d++)o+=this.tablecell(u.header[d]);c+=this.tablerow({text:o});let r="";for(let d=0;d<u.rows.length;d++){let h=u.rows[d];o="";for(let p=0;p<h.length;p++)o+=this.tablecell(h[p]);r+=this.tablerow({text:o})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
66
+ <thead>
67
+ `+c+`</thead>
68
+ `+r+`</table>
69
+ `}tablerow({text:u}){return`<tr>
70
+ ${u}</tr>
71
+ `}tablecell(u){let c=this.parser.parseInline(u.tokens),o=u.header?"th":"td";return(u.align?`<${o} align="${u.align}">`:`<${o}>`)+c+`</${o}>
72
+ `}strong({tokens:u}){return`<strong>${this.parser.parseInline(u)}</strong>`}em({tokens:u}){return`<em>${this.parser.parseInline(u)}</em>`}codespan({text:u}){return`<code>${Ol(u,!0)}</code>`}br(u){return"<br>"}del({tokens:u}){return`<del>${this.parser.parseInline(u)}</del>`}link({href:u,title:c,tokens:o}){let r=this.parser.parseInline(o),d=vm(u);if(d===null)return r;u=d;let h='<a href="'+u+'"';return c&&(h+=' title="'+Ol(c)+'"'),h+=">"+r+"</a>",h}image({href:u,title:c,text:o,tokens:r}){r&&(o=this.parser.parseInline(r,this.parser.textRenderer));let d=vm(u);if(d===null)return Ol(o);u=d;let h=`<img src="${u}" alt="${Ol(o)}"`;return c&&(h+=` title="${Ol(c)}"`),h+=">",h}text(u){return"tokens"in u&&u.tokens?this.parser.parseInline(u.tokens):"escaped"in u&&u.escaped?u.text:Ol(u.text)}},ko=class{strong({text:u}){return u}em({text:u}){return u}codespan({text:u}){return u}del({text:u}){return u}html({text:u}){return u}text({text:u}){return u}link({text:u}){return""+u}image({text:u}){return""+u}br(){return""}checkbox({raw:u}){return u}},Sl=class ro{options;renderer;textRenderer;constructor(c){this.options=c||da,this.options.renderer=this.options.renderer||new Xc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ko}static parse(c,o){return new ro(o).parse(c)}static parseInline(c,o){return new ro(o).parseInline(c)}parse(c){this.renderer.parser=this;let o="";for(let r=0;r<c.length;r++){let d=c[r];if(this.options.extensions?.renderers?.[d.type]){let p=d,v=this.options.extensions.renderers[p.type].call({parser:this},p);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(p.type)){o+=v||"";continue}}let h=d;switch(h.type){case"space":{o+=this.renderer.space(h);break}case"hr":{o+=this.renderer.hr(h);break}case"heading":{o+=this.renderer.heading(h);break}case"code":{o+=this.renderer.code(h);break}case"table":{o+=this.renderer.table(h);break}case"blockquote":{o+=this.renderer.blockquote(h);break}case"list":{o+=this.renderer.list(h);break}case"checkbox":{o+=this.renderer.checkbox(h);break}case"html":{o+=this.renderer.html(h);break}case"def":{o+=this.renderer.def(h);break}case"paragraph":{o+=this.renderer.paragraph(h);break}case"text":{o+=this.renderer.text(h);break}default:{let p='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return o}parseInline(c,o=this.renderer){this.renderer.parser=this;let r="";for(let d=0;d<c.length;d++){let h=c[d];if(this.options.extensions?.renderers?.[h.type]){let v=this.options.extensions.renderers[h.type].call({parser:this},h);if(v!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(h.type)){r+=v||"";continue}}let p=h;switch(p.type){case"escape":{r+=o.text(p);break}case"html":{r+=o.html(p);break}case"link":{r+=o.link(p);break}case"image":{r+=o.image(p);break}case"checkbox":{r+=o.checkbox(p);break}case"strong":{r+=o.strong(p);break}case"em":{r+=o.em(p);break}case"codespan":{r+=o.codespan(p);break}case"br":{r+=o.br(p);break}case"del":{r+=o.del(p);break}case"text":{r+=o.text(p);break}default:{let v='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return r}},di=class{options;block;constructor(u){this.options=u||da}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(u){return u}postprocess(u){return u}processAllTokens(u){return u}emStrongMask(u){return u}provideLexer(u=this.block){return u?bl.lex:bl.lexInline}provideParser(u=this.block){return u?Sl.parse:Sl.parseInline}},vy=class{defaults=xo();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Sl;Renderer=Xc;TextRenderer=ko;Lexer=bl;Tokenizer=Gc;Hooks=di;constructor(...u){this.use(...u)}walkTokens(u,c){let o=[];for(let r of u)switch(o=o.concat(c.call(this,r)),r.type){case"table":{let d=r;for(let h of d.header)o=o.concat(this.walkTokens(h.tokens,c));for(let h of d.rows)for(let p of h)o=o.concat(this.walkTokens(p.tokens,c));break}case"list":{let d=r;o=o.concat(this.walkTokens(d.items,c));break}default:{let d=r;this.defaults.extensions?.childTokens?.[d.type]?this.defaults.extensions.childTokens[d.type].forEach(h=>{let p=d[h].flat(1/0);o=o.concat(this.walkTokens(p,c))}):d.tokens&&(o=o.concat(this.walkTokens(d.tokens,c)))}}return o}use(...u){let c=this.defaults.extensions||{renderers:{},childTokens:{}};return u.forEach(o=>{let r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.extensions.forEach(d=>{if(!d.name)throw new Error("extension name required");if("renderer"in d){let h=c.renderers[d.name];h?c.renderers[d.name]=function(...p){let v=d.renderer.apply(this,p);return v===!1&&(v=h.apply(this,p)),v}:c.renderers[d.name]=d.renderer}if("tokenizer"in d){if(!d.level||d.level!=="block"&&d.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let h=c[d.level];h?h.unshift(d.tokenizer):c[d.level]=[d.tokenizer],d.start&&(d.level==="block"?c.startBlock?c.startBlock.push(d.start):c.startBlock=[d.start]:d.level==="inline"&&(c.startInline?c.startInline.push(d.start):c.startInline=[d.start]))}"childTokens"in d&&d.childTokens&&(c.childTokens[d.name]=d.childTokens)}),r.extensions=c),o.renderer){let d=this.defaults.renderer||new Xc(this.defaults);for(let h in o.renderer){if(!(h in d))throw new Error(`renderer '${h}' does not exist`);if(["options","parser"].includes(h))continue;let p=h,v=o.renderer[p],b=d[p];d[p]=(...y)=>{let T=v.apply(d,y);return T===!1&&(T=b.apply(d,y)),T||""}}r.renderer=d}if(o.tokenizer){let d=this.defaults.tokenizer||new Gc(this.defaults);for(let h in o.tokenizer){if(!(h in d))throw new Error(`tokenizer '${h}' does not exist`);if(["options","rules","lexer"].includes(h))continue;let p=h,v=o.tokenizer[p],b=d[p];d[p]=(...y)=>{let T=v.apply(d,y);return T===!1&&(T=b.apply(d,y)),T}}r.tokenizer=d}if(o.hooks){let d=this.defaults.hooks||new di;for(let h in o.hooks){if(!(h in d))throw new Error(`hook '${h}' does not exist`);if(["options","block"].includes(h))continue;let p=h,v=o.hooks[p],b=d[p];di.passThroughHooks.has(h)?d[p]=y=>{if(this.defaults.async&&di.passThroughHooksRespectAsync.has(h))return(async()=>{let R=await v.call(d,y);return b.call(d,R)})();let T=v.call(d,y);return b.call(d,T)}:d[p]=(...y)=>{if(this.defaults.async)return(async()=>{let R=await v.apply(d,y);return R===!1&&(R=await b.apply(d,y)),R})();let T=v.apply(d,y);return T===!1&&(T=b.apply(d,y)),T}}r.hooks=d}if(o.walkTokens){let d=this.defaults.walkTokens,h=o.walkTokens;r.walkTokens=function(p){let v=[];return v.push(h.call(this,p)),d&&(v=v.concat(d.call(this,p))),v}}this.defaults={...this.defaults,...r}}),this}setOptions(u){return this.defaults={...this.defaults,...u},this}lexer(u,c){return bl.lex(u,c??this.defaults)}parser(u,c){return Sl.parse(u,c??this.defaults)}parseMarkdown(u){return(c,o)=>{let r={...o},d={...this.defaults,...r},h=this.onError(!!d.silent,!!d.async);if(this.defaults.async===!0&&r.async===!1)return h(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof c>"u"||c===null)return h(new Error("marked(): input parameter is undefined or null"));if(typeof c!="string")return h(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(c)+", string expected"));if(d.hooks&&(d.hooks.options=d,d.hooks.block=u),d.async)return(async()=>{let p=d.hooks?await d.hooks.preprocess(c):c,v=await(d.hooks?await d.hooks.provideLexer(u):u?bl.lex:bl.lexInline)(p,d),b=d.hooks?await d.hooks.processAllTokens(v):v;d.walkTokens&&await Promise.all(this.walkTokens(b,d.walkTokens));let y=await(d.hooks?await d.hooks.provideParser(u):u?Sl.parse:Sl.parseInline)(b,d);return d.hooks?await d.hooks.postprocess(y):y})().catch(h);try{d.hooks&&(c=d.hooks.preprocess(c));let p=(d.hooks?d.hooks.provideLexer(u):u?bl.lex:bl.lexInline)(c,d);d.hooks&&(p=d.hooks.processAllTokens(p)),d.walkTokens&&this.walkTokens(p,d.walkTokens);let v=(d.hooks?d.hooks.provideParser(u):u?Sl.parse:Sl.parseInline)(p,d);return d.hooks&&(v=d.hooks.postprocess(v)),v}catch(p){return h(p)}}}onError(u,c){return o=>{if(o.message+=`
73
+ Please report this to https://github.com/markedjs/marked.`,u){let r="<p>An error occurred:</p><pre>"+Ol(o.message+"",!0)+"</pre>";return c?Promise.resolve(r):r}if(c)return Promise.reject(o);throw o}}},fa=new vy;function Te(u,c){return fa.parse(u,c)}Te.options=Te.setOptions=function(u){return fa.setOptions(u),Te.defaults=fa.defaults,Qm(Te.defaults),Te};Te.getDefaults=xo;Te.defaults=da;function yy(...u){return fa.use(...u),Te.defaults=fa.defaults,Qm(Te.defaults),Te}Te.use=yy;Te.walkTokens=function(u,c){return fa.walkTokens(u,c)};Te.parseInline=fa.parseInline;Te.Parser=Sl;Te.parser=Sl.parse;Te.Renderer=Xc;Te.TextRenderer=ko;Te.Lexer=bl;Te.lexer=bl.lex;Te.Tokenizer=Gc;Te.Hooks=di;Te.parse=Te;Te.options;Te.setOptions;Te.walkTokens;Te.parseInline;Sl.parse;bl.lex;function Sm(u,c){(c==null||c>u.length)&&(c=u.length);for(var o=0,r=Array(c);o<c;o++)r[o]=u[o];return r}function xy(u){if(Array.isArray(u))return u}function by(u,c){var o=u==null?null:typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(o!=null){var r,d,h,p,v=[],b=!0,y=!1;try{if(h=(o=o.call(u)).next,c!==0)for(;!(b=(r=h.call(o)).done)&&(v.push(r.value),v.length!==c);b=!0);}catch(T){y=!0,d=T}finally{try{if(!b&&o.return!=null&&(p=o.return(),Object(p)!==p))return}finally{if(y)throw d}}return v}}function Sy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jy(u,c){return xy(u)||by(u,c)||Ny(u,c)||Sy()}function Ny(u,c){if(u){if(typeof u=="string")return Sm(u,c);var o={}.toString.call(u).slice(8,-1);return o==="Object"&&u.constructor&&(o=u.constructor.name),o==="Map"||o==="Set"?Array.from(u):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Sm(u,c):void 0}}const tp=Object.entries,jm=Object.setPrototypeOf,wy=Object.isFrozen,Ty=Object.getPrototypeOf,ky=Object.getOwnPropertyDescriptor;let ct=Object.freeze,ft=Object.seal,es=Object.create,lp=typeof Reflect<"u"&&Reflect,oo=lp.apply,fo=lp.construct;ct||(ct=function(c){return c});ft||(ft=function(c){return c});oo||(oo=function(c,o){for(var r=arguments.length,d=new Array(r>2?r-2:0),h=2;h<r;h++)d[h-2]=arguments[h];return c.apply(o,d)});fo||(fo=function(c){for(var o=arguments.length,r=new Array(o>1?o-1:0),d=1;d<o;d++)r[d-1]=arguments[d];return new c(...r)});const ra=nt(Array.prototype.forEach),Ey=nt(Array.prototype.lastIndexOf),Nm=nt(Array.prototype.pop),ri=nt(Array.prototype.push),Ay=nt(Array.prototype.splice),ts=Array.isArray,hi=nt(String.prototype.toLowerCase),eo=nt(String.prototype.toString),wm=nt(String.prototype.match),oi=nt(String.prototype.replace),Tm=nt(String.prototype.indexOf),_y=nt(String.prototype.trim),zy=nt(Number.prototype.toString),Ry=nt(Boolean.prototype.toString),km=typeof BigInt>"u"?null:nt(BigInt.prototype.toString),Em=typeof Symbol>"u"?null:nt(Symbol.prototype.toString),Ut=nt(Object.prototype.hasOwnProperty),fi=nt(Object.prototype.toString),wt=nt(RegExp.prototype.test),ua=Oy(TypeError);function nt(u){return function(c){c instanceof RegExp&&(c.lastIndex=0);for(var o=arguments.length,r=new Array(o>1?o-1:0),d=1;d<o;d++)r[d-1]=arguments[d];return oo(u,c,r)}}function Oy(u){return function(){for(var c=arguments.length,o=new Array(c),r=0;r<c;r++)o[r]=arguments[r];return fo(u,o)}}function ye(u,c){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hi;if(jm&&jm(u,null),!ts(c))return u;let r=c.length;for(;r--;){let d=c[r];if(typeof d=="string"){const h=o(d);h!==d&&(wy(c)||(c[r]=h),d=h)}u[d]=!0}return u}function Dy(u){for(let c=0;c<u.length;c++)Ut(u,c)||(u[c]=null);return u}function Jt(u){const c=es(null);for(const r of tp(u)){var o=jy(r,2);const d=o[0],h=o[1];Ut(u,d)&&(ts(h)?c[d]=Dy(h):h&&typeof h=="object"&&h.constructor===Object?c[d]=Jt(h):c[d]=h)}return c}function Cy(u){switch(typeof u){case"string":return u;case"number":return zy(u);case"boolean":return Ry(u);case"bigint":return km?km(u):"0";case"symbol":return Em?Em(u):"Symbol()";case"undefined":return fi(u);case"function":case"object":{if(u===null)return fi(u);const c=u,o=xl(c,"toString");if(typeof o=="function"){const r=o(c);return typeof r=="string"?r:fi(r)}return fi(u)}default:return fi(u)}}function xl(u,c){for(;u!==null;){const r=ky(u,c);if(r){if(r.get)return nt(r.get);if(typeof r.value=="function")return nt(r.value)}u=Ty(u)}function o(){return null}return o}function My(u){try{return wt(u,""),!0}catch{return!1}}const Am=ct(["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"]),to=ct(["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"]),lo=ct(["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"]),Uy=ct(["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"]),no=ct(["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"]),Ly=ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_m=ct(["#text"]),zm=ct(["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"]),ao=ct(["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"]),Rm=ct(["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"]),Bc=ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Hy=ft(/{{[\w\W]*|^[\w\W]*}}/g),By=ft(/<%[\w\W]*|^[\w\W]*%>/g),qy=ft(/\${[\w\W]*/g),Yy=ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),Gy=ft(/^aria-[\-\w]+$/),Om=ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xy=ft(/^(?:\w+script|data):/i),$y=ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qy=ft(/^html$/i),Zy=ft(/^[a-z][.\w]*(-[.\w]+)+$/i),Dm=ft(/<[/\w!]/g),Cm=ft(/<[/\w]/g),Vy=ft(/<\/no(script|embed|frames)/i),Ky=ft(/\/>/i),Kt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},np=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Jy=ct(ye({},np)),Wy=(function(){const u={};return ra(np,c=>{u[c]=ft(new RegExp("</"+c+"(?=[\\t\\n\\f\\r />])","i"))}),ct(u)})(),Iy=function(){return typeof window>"u"?null:window},Fy=function(c,o){if(typeof c!="object"||typeof c.createPolicy!="function")return null;let r=null;const d="data-tt-policy-suffix";o&&o.hasAttribute(d)&&(r=o.getAttribute(d));const h="dompurify"+(r?"#"+r:"");try{return c.createPolicy(h,{createHTML(p){return p},createScriptURL(p){return p}})}catch{return console.warn("TrustedTypes policy "+h+" could not be created."),null}},Mm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Un=function(c,o,r,d){return Ut(c,o)&&ts(c[o])?ye(d.base?Jt(d.base):{},c[o],d.transform):r},so=function(c,o,r){const d=Ut(c,o)?c[o]:void 0;return d&&typeof d=="object"?Jt(d):r()};function ap(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Iy();const c=Y=>ap(Y);if(c.version="3.4.14",c.removed=[],!u||!u.document||u.document.nodeType!==Kt.document||!u.Element)return c.isSupported=!1,c;let o=u.document;const r=o,d=r.currentScript;u.DocumentFragment;const h=u.HTMLTemplateElement,p=u.Node,v=u.Element,b=u.NodeFilter,y=u.NamedNodeMap;y===void 0&&(u.NamedNodeMap||u.MozNamedAttrMap),u.HTMLFormElement;const T=u.DOMParser,R=u.trustedTypes,_=v.prototype,q=xl(_,"cloneNode"),G=xl(_,"remove"),K=xl(_,"nextSibling"),I=xl(_,"childNodes"),O=xl(_,"parentNode"),ke=xl(_,"shadowRoot"),ee=xl(_,"attributes"),ae=p&&p.prototype?xl(p.prototype,"nodeType"):null,ie=p&&p.prototype?xl(p.prototype,"nodeName"):null,$=p&&p.prototype?xl(p.prototype,"ownerDocument"):null,P=function(g){return ae?ae(g):g.nodeType},He=function(g){return ie?ie(g):g.nodeName};if(typeof h=="function"){const Y=o.createElement("template");Y.content&&Y.content.ownerDocument&&(o=Y.content.ownerDocument)}let Be,At="",_t,dt=!1,Lt=0;const Wt=function(){if(Lt>0)throw ua('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.')},ut=function(g){Wt(),Lt++;try{return Be.createHTML(g)}finally{Lt--}},C=function(g){Wt(),Lt++;try{return Be.createScriptURL(g)}finally{Lt--}},Q=function(){return dt||(_t=Fy(R,d),dt=!0),_t},ne=o,xe=ne.implementation,Ae=ne.createNodeIterator,j=ne.createDocumentFragment,L=ne.getElementsByTagName,Z=r.importNode;let X=Mm();c.isSupported=typeof tp=="function"&&typeof O=="function"&&xe&&xe.createHTMLDocument!==void 0;const ce=Hy,fe=By,be=qy,ht=Yy,$e=Gy,Ln=Xy,Hn=$y,as=Zy;let ss=Om,Se=null;const Bn=ye({},[...Am,...to,...lo,...no,..._m]);let Oe=null;const is=ye({},[...zm,...ao,...Rm,...Bc]);let Ht=Object.seal(es(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}})),Dl=null,ma=null;const It=Object.seal(es(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xi=!0,cs=!0,St=!1,bi=!0,fl=!1,Nl=!0,Ft=!1,us=!1,qn=null,pa=null,rs=!1,Pt=!1,rt=!1,Bt=!1,jt=!0,Si=!1;const ji="user-content-";let os=!0,ln=!1,dl={},hl=null;const wl=ye({},["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 Yn=null;const nn=ye({},["audio","video","img","source","image","track"]);let Ni=null;const fs=ye({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",Tl="http://www.w3.org/2000/svg",el="http://www.w3.org/1999/xhtml";let Cl=el,ga=!1,va=null;const ds=ye({},[an,Tl,el],eo),ya=ct(["mi","mo","mn","ms","mtext"]);let xa=ye({},ya);const hs=ct(["annotation-xml"]);let tl=ye({},hs);const at=ye({},["title","style","font","a","script"]);let We=null;const sn=["application/xhtml+xml","text/html"],ms="text/html";let Qe=null,cn=null;const wi=o.createElement("form"),un=function(g){return g instanceof RegExp||g instanceof Function},Gn=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(cn&&cn===g)return;(!g||typeof g!="object")&&(g={}),g=Jt(g),We=sn.indexOf(g.PARSER_MEDIA_TYPE)===-1?ms:g.PARSER_MEDIA_TYPE,Qe=We==="application/xhtml+xml"?eo:hi,Se=Un(g,"ALLOWED_TAGS",Bn,{transform:Qe}),Oe=Un(g,"ALLOWED_ATTR",is,{transform:Qe}),va=Un(g,"ALLOWED_NAMESPACES",ds,{transform:eo}),Ni=Un(g,"ADD_URI_SAFE_ATTR",fs,{transform:Qe,base:fs}),Yn=Un(g,"ADD_DATA_URI_TAGS",nn,{transform:Qe,base:nn}),hl=Un(g,"FORBID_CONTENTS",wl,{transform:Qe}),Dl=Un(g,"FORBID_TAGS",Jt({}),{transform:Qe}),ma=Un(g,"FORBID_ATTR",Jt({}),{transform:Qe}),dl=Ut(g,"USE_PROFILES")?g.USE_PROFILES&&typeof g.USE_PROFILES=="object"?Jt(g.USE_PROFILES):g.USE_PROFILES:!1,xi=g.ALLOW_ARIA_ATTR!==!1,cs=g.ALLOW_DATA_ATTR!==!1,St=g.ALLOW_UNKNOWN_PROTOCOLS||!1,bi=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fl=g.SAFE_FOR_TEMPLATES||!1,Nl=g.SAFE_FOR_XML!==!1,Ft=g.WHOLE_DOCUMENT||!1,Pt=g.RETURN_DOM||!1,rt=g.RETURN_DOM_FRAGMENT||!1,Bt=g.RETURN_TRUSTED_TYPE||!1,rs=g.FORCE_BODY||!1,jt=g.SANITIZE_DOM!==!1,Si=g.SANITIZE_NAMED_PROPS||!1,os=g.KEEP_CONTENT!==!1,ln=g.IN_PLACE||!1,ss=My(g.ALLOWED_URI_REGEXP)?g.ALLOWED_URI_REGEXP:Om,Cl=typeof g.NAMESPACE=="string"?g.NAMESPACE:el,xa=so(g,"MATHML_TEXT_INTEGRATION_POINTS",()=>ye({},ya)),tl=so(g,"HTML_INTEGRATION_POINTS",()=>ye({},hs));const N=so(g,"CUSTOM_ELEMENT_HANDLING",()=>es(null));if(Ht=es(null),Ut(N,"tagNameCheck")&&un(N.tagNameCheck)&&(Ht.tagNameCheck=N.tagNameCheck),Ut(N,"attributeNameCheck")&&un(N.attributeNameCheck)&&(Ht.attributeNameCheck=N.attributeNameCheck),Ut(N,"allowCustomizedBuiltInElements")&&typeof N.allowCustomizedBuiltInElements=="boolean"&&(Ht.allowCustomizedBuiltInElements=N.allowCustomizedBuiltInElements),ft(Ht),fl&&(cs=!1),rt&&(Pt=!0),dl&&(Se=ye({},_m),Oe=es(null),dl.html===!0&&(ye(Se,Am),ye(Oe,zm)),dl.svg===!0&&(ye(Se,to),ye(Oe,ao),ye(Oe,Bc)),dl.svgFilters===!0&&(ye(Se,lo),ye(Oe,ao),ye(Oe,Bc)),dl.mathMl===!0&&(ye(Se,no),ye(Oe,Rm),ye(Oe,Bc))),It.tagCheck=null,It.attributeCheck=null,Ut(g,"ADD_TAGS")&&(typeof g.ADD_TAGS=="function"?It.tagCheck=g.ADD_TAGS:ts(g.ADD_TAGS)&&(Se===Bn&&(Se=Jt(Se)),ye(Se,g.ADD_TAGS,Qe))),Ut(g,"ADD_ATTR")&&(typeof g.ADD_ATTR=="function"?It.attributeCheck=g.ADD_ATTR:ts(g.ADD_ATTR)&&(Oe===is&&(Oe=Jt(Oe)),ye(Oe,g.ADD_ATTR,Qe))),Ut(g,"ADD_FORBID_CONTENTS")&&ts(g.ADD_FORBID_CONTENTS)&&(hl===wl&&(hl=Jt(hl)),ye(hl,g.ADD_FORBID_CONTENTS,Qe)),os&&(Se["#text"]=!0),Ft&&ye(Se,["html","head","body"]),Se.table&&(ye(Se,["tbody"]),delete Dl.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw ua('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ua('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const H=Be;Be=g.TRUSTED_TYPES_POLICY;try{At=ut("")}catch(V){throw Be=H,V}}else g.TRUSTED_TYPES_POLICY===null?(Be=void 0,At=""):(Be===void 0&&(Be=Q()),Be&&typeof At=="string"&&(At=ut("")));ct&&ct(g),cn=g},Ml=ye({},[...to,...lo,...Uy]),Ul=ye({},[...no,...Ly]),Xn=function(g,N,H){return N.namespaceURI===el?g==="svg":N.namespaceURI===an?g==="svg"&&(H==="annotation-xml"||xa[H]):!!Ml[g]},rn=function(g,N,H){return N.namespaceURI===el?g==="math":N.namespaceURI===Tl?g==="math"&&tl[H]:!!Ul[g]},Ie=function(g,N,H){return N.namespaceURI===Tl&&!tl[H]||N.namespaceURI===an&&!xa[H]?!1:!Ul[g]&&(at[g]||!Ml[g])},Ti=function(g){let N=O(g);(!N||!N.tagName)&&(N={namespaceURI:Cl,tagName:"template"});const H=hi(g.tagName),V=hi(N.tagName);return va[g.namespaceURI]?g.namespaceURI===Tl?Xn(H,N,V):g.namespaceURI===an?rn(H,N,V):g.namespaceURI===el?Ie(H,N,V):!!(We==="application/xhtml+xml"&&va[g.namespaceURI]):!1},ml=function(g){ri(c.removed,{element:g});try{O(g).removeChild(g)}catch{if(G(g),!O(g))throw ua("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},kl=function(g,N,H){try{g.removeAttributeNode(N)}catch{try{g.removeAttribute(H)}catch{}}},pl=function(g){$n(g);const N=I(g);if(N){const V=[];ra(N,J=>{ri(V,J)}),ra(V,J=>{try{G(J)}catch{}})}const H=ee(g);if(H)for(let V=H.length-1;V>=0;--V){const J=H[V],le=J&&J.name;typeof le=="string"&&kl(g,J,le)}},Ll=function(g,N,H){if(!H)try{H=N.getAttributeNode(g)}catch{H=null}ri(c.removed,{attribute:H||null,from:N});try{H?N.removeAttributeNode(H):N.removeAttribute(g)}catch{try{N.removeAttribute(g)}catch{}}if(g==="is")if(Pt||rt)try{ml(N)}catch{}else try{N.setAttribute(g,"")}catch{}},ki=function(g){const N=ee(g);if(N)for(let H=N.length-1;H>=0;--H){const V=N[H],J=V&&V.name;typeof J!="string"||Oe[Qe(J)]||kl(g,V,J)}},$n=function(g){const N=[g];for(;N.length>0;){const H=N.pop();P(H)===Kt.element&&ki(H);const J=I(H);if(J)for(let le=J.length-1;le>=0;--le)N.push(J[le])}},Ei=function(g,N){return Nl?g==="patchsrc"?!0:g==="for"&&N!=="label"&&N!=="output":!1},ba=function(g){if(!Nl)return;const N=[g];for(;N.length>0;){const H=N.pop(),V=P(H);if(V===Kt.processingInstruction||V===Kt.comment&&wt(Cm,H.data)){try{G(H)}catch{}continue}if(V===Kt.element){const le=H,_e=Qe(He(H));try{le.hasAttribute&&le.hasAttribute("patchsrc")&&le.removeAttribute("patchsrc"),le.hasAttribute&&le.hasAttribute("for")&&Ei("for",_e)&&le.removeAttribute("for")}catch{}}const J=I(H);if(J)for(let le=J.length-1;le>=0;--le)N.push(J[le])}},Qn=function(g){let N=null,H=null;if(rs)g="<remove></remove>"+g;else{const le=wm(g,/^[\r\n\t ]+/);H=le&&le[0]}We==="application/xhtml+xml"&&Cl===el&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const V=Be?ut(g):g;if(Cl===el)try{N=new T().parseFromString(V,We)}catch{}if(!N||!N.documentElement){N=xe.createDocument(Cl,"template",null);try{N.documentElement.innerHTML=ga?At:V}catch{}}const J=N.body||N.documentElement;return g&&H&&J.insertBefore(o.createTextNode(H),J.childNodes[0]||null),Cl===el?L.call(N,Ft?"html":"body")[0]:Ft?N.documentElement:J},ll=function(g){const N=$?$(g):g.ownerDocument;return Ae.call(N||g,g,b.SHOW_ELEMENT|b.SHOW_COMMENT|b.SHOW_TEXT|b.SHOW_PROCESSING_INSTRUCTION|b.SHOW_CDATA_SECTION,null)},mt=function(g){return g=oi(g,ce," "),g=oi(g,fe," "),g=oi(g,be," "),g},Sa=function(g){var N;g.normalize();const H=$?$(g):g.ownerDocument,V=Ae.call(H||g,g,b.SHOW_TEXT|b.SHOW_COMMENT|b.SHOW_CDATA_SECTION|b.SHOW_PROCESSING_INSTRUCTION,null);let J=V.nextNode();for(;J;)J.data=mt(J.data),J=V.nextNode();const le=(N=g.querySelectorAll)===null||N===void 0?void 0:N.call(g,"template");le&&ra(le,_e=>{El(_e.content)&&Sa(_e.content)})},ja=function(g){const N=ie?ie(g):null;return typeof N!="string"||Qe(N)!=="form"?!1:typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||g.attributes!==ee(g)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function"||g.nodeType!==ae(g)||g.childNodes!==I(g)},El=function(g){if(!ae||typeof g!="object"||g===null)return!1;try{return ae(g)===Kt.documentFragment}catch{return!1}},on=function(g){if(!ae||typeof g!="object"||g===null)return!1;try{return typeof ae(g)=="number"}catch{return!1}};function kt(Y,g,N){Y.length!==0&&ra(Y,H=>{H.call(c,g,N,cn)})}const Vc=function(g,N){return!!(Nl&&g.hasChildNodes()&&!on(g.firstElementChild)&&wt(Dm,g.textContent)&&wt(Dm,g.innerHTML)||Nl&&g.namespaceURI===el&&Jy[N]&&(on(g.firstElementChild)||typeof g.textContent=="string"&&wt(Wy[N],g.textContent))||g.nodeType===Kt.processingInstruction||Nl&&g.nodeType===Kt.comment&&wt(Cm,g.data))},pt=function(g,N){if(g instanceof RegExp)return wt(g,N);if(g instanceof Function){for(var H=arguments.length,V=new Array(H>2?H-2:0),J=2;J<H;J++)V[J-2]=arguments[J];return!!g(N,...V)}return!1},ps=function(g,N,H){if(!Dl[N]&&Bl(N)&&pt(Ht.tagNameCheck,N))return!1;if(os&&!hl[N]){const V=O(g),J=I(g);if(J&&V){const le=J.length;for(let _e=le-1;_e>=0;--_e){const Ue=g===H?q(J[_e],!0):J[_e];V.insertBefore(Ue,K(g))}}}return ml(g),!0},gs=function(g,N,H,V){return g.length===0?N:N===H||N===V?Jt(N):N},Na=function(g,N){return g===N||O(g)!==null?!1:(ln&&$n(g),!0)},Hl=function(g,N){if(kt(X.beforeSanitizeElements,g,null),Na(g,N))return!0;if(ja(g))return ml(g),!0;const H=Qe(He(g));if(Se=gs(X.uponSanitizeElement,Se,Bn,qn),kt(X.uponSanitizeElement,g,{tagName:H,allowedTags:Se}),Na(g,N))return!0;if(Vc(g,H))return ml(g),!0;if(Dl[H]||!(It.tagCheck instanceof Function&&It.tagCheck(H))&&!Se[H]){const J=ps(g,H,N);return J===!1&&kt(X.afterSanitizeElements,g,null),J}if(P(g)===Kt.element&&!Ti(g)||(H==="noscript"||H==="noembed"||H==="noframes")&&wt(Vy,g.innerHTML))return ml(g),!0;if(fl&&g.nodeType===Kt.text){const J=mt(g.textContent);g.textContent!==J&&(ri(c.removed,{element:g.cloneNode()}),g.textContent=J)}return kt(X.afterSanitizeElements,g,null),!1},vs=function(g,N,H){if(ma[N]||Ei(N,g)||jt&&(N==="id"||N==="name")&&(H in o||H in wi))return!1;const V=Oe[N]||It.attributeCheck instanceof Function&&It.attributeCheck(N,g);return cs&&wt(ht,N)||xi&&wt($e,N)?!0:V?Ni[N]||wt(ss,oi(H,Hn,""))||(N==="src"||N==="xlink:href"||N==="href")&&g!=="script"&&Tm(H,"data:")===0&&Yn[g]||St&&!wt(Ln,oi(H,Hn,""))?!0:!H:Bl(g)&&pt(Ht.tagNameCheck,g)&&pt(Ht.attributeNameCheck,N,g)||N==="is"&&Ht.allowCustomizedBuiltInElements&&pt(Ht.tagNameCheck,H)},Ai=ye({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Bl=function(g){return!Ai[hi(g)]&&wt(as,g)},Kc=function(g,N,H,V){if(Be&&typeof R=="object"&&typeof R.getAttributeType=="function"&&!H)switch(R.getAttributeType(g,N)){case"TrustedHTML":return ut(V);case"TrustedScriptURL":return C(V)}return V},_i=function(g,N,H,V){try{H?g.setAttributeNS(H,N,V):g.setAttribute(N,V),ja(g)?ml(g):Nm(c.removed)}catch{Ll(N,g)}},ys=function(g){kt(X.beforeSanitizeAttributes,g,null);const N=g.attributes;if(!N||ja(g))return;Oe=gs(X.uponSanitizeAttribute,Oe,is,pa);const H={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe,forceKeepAttr:void 0};let V=N.length;const J=Qe(g.nodeName);for(;V--;){const le=N[V],_e=le.name,Ue=le.namespaceURI,gt=le.value,Fe=Qe(_e),qt=gt;let st=_e==="value"?qt:_y(qt);if(H.attrName=Fe,H.attrValue=st,H.keepAttr=!0,H.forceKeepAttr=void 0,kt(X.uponSanitizeAttribute,g,H),st=H.attrValue,Si&&(Fe==="id"||Fe==="name")&&Tm(st,ji)!==0&&(Ll(_e,g,le),st=ji+st),Nl&&wt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,st)){Ll(_e,g,le);continue}if(Fe==="attributename"&&wm(st,"href")){Ll(_e,g,le);continue}if(!H.forceKeepAttr){if(!H.keepAttr){Ll(_e,g,le);continue}if(!bi&&wt(Ky,st)){Ll(_e,g,le);continue}if(fl&&(st=mt(st)),!vs(J,Fe,st)){Ll(_e,g,le);continue}st=Kc(J,Fe,Ue,st),st!==qt&&_i(g,_e,Ue,st)}}kt(X.afterSanitizeAttributes,g,null)},fn=function(g){let N=null;const H=ll(g);for(kt(X.beforeSanitizeShadowDOM,g,null);N=H.nextNode();)if(kt(X.uponSanitizeShadowNode,N,null),Hl(N,g),ys(N),El(N.content)&&fn(N.content),P(N)===Kt.element){const V=ke(N);El(V)&&(xs(V),fn(V))}kt(X.afterSanitizeShadowDOM,g,null)},xs=function(g){const N=[{node:g,shadow:null}];for(;N.length>0;){const H=N.pop();if(H.shadow){fn(H.shadow);continue}const V=H.node,le=P(V)===Kt.element,_e=I(V);if(_e)for(let Ue=_e.length-1;Ue>=0;--Ue)N.push({node:_e[Ue],shadow:null});if(le){const Ue=ie?ie(V):null;if(typeof Ue=="string"&&Qe(Ue)==="template"){const gt=V.content;El(gt)&&N.push({node:gt,shadow:null})}}if(le){const Ue=ke(V);El(Ue)&&N.push({node:null,shadow:Ue},{node:Ue,shadow:null})}}};return c.sanitize=function(Y){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=null,H=null,V=null,J=null;if(ga=!Y,ga&&(Y="<!-->"),typeof Y!="string"&&!on(Y)&&(Y=Cy(Y),typeof Y!="string"))throw ua("dirty is not a string, aborting");if(!c.isSupported)return Y;us?(Se=qn,Oe=pa):Gn(g),(X.uponSanitizeElement.length>0||X.uponSanitizeAttribute.length>0)&&(Se=Jt(Se)),X.uponSanitizeAttribute.length>0&&(Oe=Jt(Oe)),c.removed=[];const le=ln&&typeof Y!="string"&&on(Y);if(le){ba(Y);const gt=He(Y);if(typeof gt=="string"){const Fe=Qe(gt);if(!Se[Fe]||Dl[Fe])throw pl(Y),ua("root node is forbidden and cannot be sanitized in-place")}if(ja(Y))throw pl(Y),ua("root node is clobbered and cannot be sanitized in-place");try{xs(Y)}catch(Fe){throw pl(Y),Fe}}else if(on(Y))N=Qn("<!---->"),H=N.ownerDocument.importNode(Y,!0),H.nodeType===Kt.element&&H.nodeName==="BODY"||H.nodeName==="HTML"?N=H:N.appendChild(H),xs(H);else{if(!Pt&&!fl&&!Ft&&Y.indexOf("<")===-1)return Be&&Bt?ut(Y):Y;if(N=Qn(Y),!N)return Pt?null:Bt?At:""}N&&rs&&ml(N.firstChild);const _e=le?Y:N;try{const gt=ll(_e);for(;V=gt.nextNode();)Hl(V,_e),ys(V),El(V.content)&&fn(V.content)}catch(gt){throw le&&(pl(Y),ra(c.removed,Fe=>{Fe.element&&$n(Fe.element)})),gt}if(le)return ra(c.removed,gt=>{gt.element&&$n(gt.element)}),fl&&Sa(Y),Y;if(Pt){if(fl&&Sa(N),rt)for(J=j.call(N.ownerDocument);N.firstChild;)J.appendChild(N.firstChild);else J=N;return(Oe.shadowroot||Oe.shadowrootmode)&&(J=Z.call(r,J,!0)),J}let Ue=Ft?N.outerHTML:N.innerHTML;return Ft&&Se["!doctype"]&&N.ownerDocument&&N.ownerDocument.doctype&&N.ownerDocument.doctype.name&&wt(Qy,N.ownerDocument.doctype.name)&&(Ue="<!DOCTYPE "+N.ownerDocument.doctype.name+`>
75
+ `+Ue),fl&&(Ue=mt(Ue)),Be&&Bt?ut(Ue):Ue},c.setConfig=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gn(Y),us=!0,qn=Se,pa=Oe},c.clearConfig=function(){cn=null,us=!1,qn=null,pa=null,Be=_t,At=""},c.isValidAttribute=function(Y,g,N){cn||Gn({});const H=Qe(Y),V=Qe(g);return vs(H,V,N)},c.addHook=function(Y,g){typeof g=="function"&&Ut(X,Y)&&ri(X[Y],g)},c.removeHook=function(Y,g){if(Ut(X,Y)){if(g!==void 0){const N=Ey(X[Y],g);return N===-1?void 0:Ay(X[Y],N,1)[0]}return Nm(X[Y])}},c.removeHooks=function(Y){Ut(X,Y)&&(X[Y]=[])},c.removeAllHooks=function(){X=Mm()},c}var yi=ap();const Py=[{id:"claude",label:"claude",hint:"Claude Code via ACP"},{id:"codex",label:"codex",hint:"Codex (ChatGPT) via ACP"},{id:"pi",label:"pi",hint:"pi coding agent"}];async function ha(u,c){const r=await(await fetch("/api/chats",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({agent:u,scope:c})})).json();r.id&&jl(r.scope?.kind==="team"?`/team/${encodeURIComponent(r.scope.member)}/chat/${r.id}`:`/team/chats/${r.id}`)}function ex(){const[u,c]=B.useState("claude"),[o,r]=B.useState(!0),[d,h]=B.useState(!1);return s.jsxs("div",{className:"new-chat",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"new chat"})}),s.jsxs("section",{className:"panel new-chat-panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"agent"})}),s.jsx("div",{className:"agent-pick",children:Py.map(p=>s.jsxs("button",{className:`agent-pick-btn ${u===p.id?"active":""}`,onClick:()=>c(p.id),children:[s.jsx("b",{children:p.label}),s.jsx("span",{children:p.hint})]},p.id))}),s.jsx("div",{className:"run-opts",style:{padding:"0 16px 14px"},children:s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:o,onChange:p=>r(p.target.checked)}),"kraftwerk-aware",s.jsx("span",{className:"opt-hint",children:"— agent gets workflows + recent runs as context"})]})}),s.jsx("div",{style:{padding:"0 16px 16px"},children:s.jsx("button",{className:"run-btn",disabled:d,onClick:async()=>{h(!0),await ha(u,{kind:o?"kraftwerk":"general"}),h(!1)},children:d?"starting…":"start chat"})})]})]})}function Um({id:u}){const[c,o]=B.useState(null),[r,d]=B.useState([]),[h,p]=B.useState(!1);B.useEffect(()=>{let b=!0,y=null;return fetch(`/api/chats/${u}`).then(T=>T.ok?T.json():Promise.reject()).then(T=>{if(!b)return;o(T.meta),d(T.events);const R=T.events[T.events.length-1]?.seq??0;y=new EventSource(`/api/chats/${u}/events?after=${R}`),y.onmessage=_=>{const q=JSON.parse(_.data);d(G=>G.some(K=>K.seq===q.seq)?G:[...G,q])}}).catch(()=>b&&p(!0)),()=>{b=!1,y?.close()}},[u]);const v=B.useMemo(()=>{for(let b=r.length-1;b>=0;b--){const y=r[b].type;if(y==="user_message")return!0;if(y==="turn_end"||y==="error")return!1}return!1},[r]);return h?s.jsx("div",{className:"empty",children:"chat not found"}):c?s.jsxs("div",{className:"chat-thread",children:[s.jsxs("div",{className:"detail-head",children:[s.jsx("span",{className:`lamp ${v?"running":"ok"}`}),s.jsx("h1",{children:c.title||"new chat"}),s.jsx("span",{className:"chip agent",children:c.agent}),c.scope.kind==="run"&&s.jsx(we,{href:`/runs/${c.scope.runId}`,className:"chip",children:c.scope.runId}),c.scope.kind==="kraftwerk"&&s.jsx("span",{className:"chip",children:"kraftwerk-aware"}),c.scope.kind==="knowledge"&&s.jsxs(we,{href:c.scope.bundle?`/knowledge/${encodeURIComponent(c.scope.bundle)}`:"/knowledge",className:"chip",children:["knowledge",c.scope.bundle?`:${c.scope.bundle}`:""]}),c.scope.kind==="team"&&s.jsxs(we,{href:`/team/${encodeURIComponent(c.scope.member)}`,className:"chip",children:["team:",c.scope.member]}),s.jsx("span",{className:"rid",title:c.cwd,children:c.cwd})]}),s.jsx(lx,{id:u,events:r,busy:v}),s.jsx(ix,{id:u,busy:v,scope:c.scope})]}):s.jsx("div",{className:"empty",children:"loading…"})}function tx(u){const c=[],o=new Map,r=new Map;for(const d of u){const h=c[c.length-1];switch(d.type){case"user_message":c.push({kind:"user",text:d.text,key:`e${d.seq}`});break;case"text":h?.kind==="agent"?h.text+=d.text:c.push({kind:"agent",text:d.text,key:`e${d.seq}`});break;case"thought":h?.kind==="thought"?h.text+=d.text:c.push({kind:"thought",text:d.text,key:`e${d.seq}`});break;case"tool_call":o.set(d.callId,c.length),c.push({kind:"tool",callId:d.callId,title:d.title,toolKind:d.kind,status:d.status,key:`e${d.seq}`});break;case"tool_update":{const p=o.get(d.callId);if(p!=null){const v=c[p];d.title&&(v.title=d.title),d.status&&(v.status=d.status)}break}case"permission_request":r.set(d.requestId,c.length),c.push({kind:"permission",requestId:d.requestId,title:d.title,options:d.options,resolved:void 0,key:`e${d.seq}`});break;case"permission_resolved":{const p=r.get(d.requestId);p!=null&&(c[p].resolved=d.optionId);break}case"error":c.push({kind:"error",text:d.message,key:`e${d.seq}`});break}}return c}function lx({id:u,events:c,busy:o}){const r=mi(),d=B.useMemo(()=>{const v=tx(c);return r?v:v.filter(b=>b.kind!=="tool"&&b.kind!=="thought")},[c,r]),h=B.useRef(null),p=B.useRef(!0);return B.useEffect(()=>{const v=h.current;v&&p.current&&(v.scrollTop=v.scrollHeight)},[d,o]),s.jsxs("div",{className:"chat-scroll",ref:h,onScroll:v=>{const b=v.currentTarget;p.current=b.scrollHeight-b.scrollTop-b.clientHeight<60},children:[d.length===0&&s.jsx("div",{className:"empty",children:"say something — the agent starts on your first message"}),d.map(v=>s.jsx(ax,{b:v,chatId:u},v.key)),o&&s.jsxs("div",{className:"chat-working",children:[s.jsx("span",{className:"lamp running"})," working…"]})]})}function nx({text:u}){const c=B.useMemo(()=>yi.sanitize(Te.parse(u,{async:!1})),[u]);return s.jsx("div",{className:"msg agent md-body chat-md",dangerouslySetInnerHTML:{__html:c}})}function ax({b:u,chatId:c}){switch(u.kind){case"user":return s.jsx("div",{className:"msg user",children:u.text});case"agent":return s.jsx(nx,{text:u.text});case"thought":return s.jsxs("details",{className:"msg thought",children:[s.jsx("summary",{children:"thinking"}),s.jsx("div",{children:u.text})]});case"tool":return s.jsxs("div",{className:`tool-card ${u.status??""}`,children:[s.jsx("span",{className:`lamp ${u.status==="completed"?"ok":u.status==="failed"?"failed":"running"}`}),u.toolKind&&s.jsx("span",{className:"chip tool-kind",children:u.toolKind}),s.jsx("span",{className:"tool-title",children:u.title})]});case"permission":return s.jsx(sx,{b:u,chatId:c});case"error":return s.jsxs("div",{className:"msg error",children:["✕ ",u.text]})}}function sx({b:u,chatId:c}){const[o,r]=B.useState(!1),d=u.resolved===void 0;async function h(p){r(!0),await fetch(`/api/chats/${c}/permission`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({requestId:u.requestId,optionId:p})}).catch(()=>{}),r(!1)}return s.jsxs("div",{className:`perm-card ${d?"pending":""}`,children:[s.jsxs("div",{className:"perm-title",children:[s.jsx("span",{className:"microlabel",children:"permission"})," ",u.title]}),d?s.jsx("div",{className:"perm-actions",children:u.options.map(p=>s.jsx("button",{className:`perm-btn ${p.kind?.startsWith("allow")?"allow":"deny"}`,disabled:o,onClick:()=>h(p.optionId),children:p.name},p.optionId))}):s.jsx("div",{className:"perm-resolved",children:u.resolved?`→ ${u.options.find(p=>p.optionId===u.resolved)?.name??u.resolved}`:"→ dismissed"})]})}function ix({id:u,busy:c,scope:o}){const[r,d]=B.useState(""),[h,p]=B.useState([]),[v,b]=B.useState(0),[y,T]=B.useState(!1);B.useEffect(()=>{let O=!0;return(async()=>{try{let ee=(await fetch("/api/skills").then(ae=>ae.json())).skills??[];if(o?.kind==="team"){const ae=await fetch(`/api/team/${encodeURIComponent(o.member)}`).then(ie=>ie.ok?ie.json():null).catch(()=>null);if(ae&&Array.isArray(ae.skills)){const ie=new Set(ae.skills.map($=>$.toLowerCase()));ee=ee.filter($=>ie.has($.name.toLowerCase()))}}O&&p(ee)}catch{}})(),()=>{O=!1}},[u]);const R=/^\/([\w-]*)$/.exec(r)?.[1],_=R!==void 0&&!y?h.filter(O=>O.name.toLowerCase().startsWith(R.toLowerCase())):[],q=_.length>0,G=Math.min(v,_.length-1);function K(O){d(`/${O.name} `),b(0)}async function I(){const O=r.trim();!O||c||(d(""),await fetch(`/api/chats/${u}/message`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:O})}).catch(()=>{}))}return s.jsxs("div",{className:"composer",children:[q&&s.jsx("div",{className:"skill-menu",children:_.map((O,ke)=>s.jsxs("button",{className:ke===G?"active":"",onMouseDown:ee=>{ee.preventDefault(),K(O)},children:[s.jsxs("b",{children:["/",O.name]}),O.description&&s.jsxs("span",{children:[" — ",O.description]}),s.jsx("span",{className:"skill-src",children:O.source})]},O.name))}),s.jsx("textarea",{value:r,placeholder:c?"agent is working…":"message · Enter to send, Shift+Enter for newline, / for skills",rows:Math.min(6,Math.max(1,r.split(`
76
+ `).length)),onChange:O=>{d(O.target.value),b(0),T(!1)},onKeyDown:O=>{if(q){if(O.key==="ArrowDown")return O.preventDefault(),b((G+1)%_.length);if(O.key==="ArrowUp")return O.preventDefault(),b((G-1+_.length)%_.length);if(O.key==="Tab"||O.key==="Enter")return O.preventDefault(),K(_[G]);if(O.key==="Escape")return O.preventDefault(),T(!0)}O.key==="Enter"&&!O.shiftKey&&(O.preventDefault(),I())}}),c?s.jsx("button",{className:"stop-btn",onClick:()=>fetch(`/api/chats/${u}/cancel`,{method:"POST"}).catch(()=>{}),children:"■ stop"}):s.jsx("button",{className:"run-btn",disabled:!r.trim(),onClick:I,children:"send"})]})}function cx({id:u}){const c=Ge("/api/runs",!0),o=c?.runs??[];return s.jsxs("div",{className:"runs-screen",children:[s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"runs"}),s.jsx("span",{className:"spacer"}),s.jsx("span",{className:"microlabel num",children:o.length})]}),s.jsxs("div",{className:"side-list",children:[o.map(r=>s.jsx(ux,{r,active:r.id===u},r.id)),c&&o.length===0&&s.jsx("div",{className:"viewer-note",children:"no runs yet"})]})]}),s.jsx("div",{className:"runs-main",children:s.jsx(rx,{id:u},u)})]})}function ux({r:u,active:c}){return s.jsxs(we,{href:`/runs/${u.id}`,className:`side-row ${c?"active":""}`,children:[s.jsx(Qc,{status:u.status}),s.jsxs("div",{className:"side-row-body",children:[s.jsxs("div",{className:"side-row-top",children:[s.jsx("span",{className:"side-wf",children:u.workflow??"unknown"}),s.jsx("span",{className:"side-when num",children:ls(u.startedAt)})]}),s.jsxs("div",{className:"side-row-sub",children:[s.jsx("span",{className:"side-req",title:u.request,children:u.status==="running"&&u.currentPhase?`▸ ${u.currentPhase}`:u.request??""}),s.jsx("span",{className:"side-meta num",children:u.status==="running"?s.jsx(yo,{since:u.startedAt}):pi(u.durationMs)})]})]})]})}function rx({id:u}){const c=Ge(`/api/runs/${u}`,!0),o=c?.status==="running",[r,d]=B.useState(null),[h,p]=B.useState(!1),v=mi();if(!c)return s.jsx("div",{className:"empty",children:"loading…"});const b=c.files.some(_=>_.name==="runner.json"),y=r??(o?"run":"artifacts"),T=v?c.files.length:c.files.filter(_=>!$c(_.name)).length;async function R(){p(!0),await fetch(`/api/runs/${u}/stop`,{method:"POST"}).catch(()=>{})}return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"detail-head",children:[s.jsx(Qc,{status:c.status}),s.jsx("h1",{children:c.workflow?s.jsx(we,{href:`/workflows/${encodeURIComponent(c.workflow)}`,title:"open workflow",children:c.workflow}):"unknown workflow"}),s.jsx(Sv,{status:c.status}),b&&s.jsx("span",{className:"chip sandbox-chip",children:"⬒ sandbox"}),s.jsx("span",{className:"rid",children:u.replace(/^run-/,"")}),o&&b&&s.jsx("button",{className:"stop-btn",onClick:R,disabled:h,children:h?"stopping…":"■ stop"}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",title:"chat with an agent about this run",onClick:()=>{ha("claude",{kind:"run",runId:u})},children:"⌬ discuss"}),s.jsxs("nav",{className:"tabs",children:[s.jsx("button",{className:y==="run"?"active":"",onClick:()=>d("run"),children:"run"}),s.jsxs("button",{className:y==="artifacts"?"active":"",onClick:()=>d("artifacts"),children:["artifacts ",s.jsxs("span",{className:"num",children:["(",T,")"]})]})]})]}),c.request&&s.jsx("p",{className:"detail-req",children:c.request}),y==="run"?s.jsx(ox,{run:c,live:o}):s.jsx(mx,{id:u,files:c.files,live:o})]})}function ox({run:u,live:c}){return s.jsxs("div",{className:"run-tab",children:[s.jsxs("div",{className:"statgrid",children:[s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"phases"}),s.jsxs("div",{className:"v num",children:[u.phasesDone,u.phasesTotal!=null?` / ${u.phasesTotal}`:""]})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"duration"}),s.jsx("div",{className:"v num",children:c?s.jsx(yo,{since:u.startedAt}):pi(u.durationMs)})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"cost"}),s.jsx("div",{className:"v num",children:go(u.costUsd??fx(u.phases))})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"tokens in / out"}),s.jsxs("div",{className:"v num",children:[qc(Lm(u.phases,"tokensIn"))," / ",qc(Lm(u.phases,"tokensOut"))]})]})]}),s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"phase timeline"}),s.jsx("span",{className:"spacer"}),c&&s.jsxs("span",{className:"live-note",children:[s.jsx("span",{className:"lamp running"})," live · polling"]})]}),s.jsx("div",{className:"phases",children:u.phases.map(o=>s.jsx(dx,{p:o},o.phase))})]})]})}function Lm(u,c){return u.reduce((o,r)=>o+(r[c]??0),0)}function fx(u){return u.reduce((c,o)=>c+(o.costUsd??0),0)}function dx({p:u}){const c=u.gates.filter(o=>!o.passed);return s.jsxs("div",{className:"phase-row",children:[s.jsx(Qc,{status:u.status}),s.jsxs("div",{className:"phase-top",children:[s.jsx("span",{className:"phase-name",children:u.phase}),u.kind==="agent"?s.jsxs("span",{className:"chip agent",children:[u.agent,u.model?` · ${u.model}`:""]}):s.jsx("span",{className:"chip",children:"script"}),s.jsxs("span",{className:"right num",children:[u.attempts>1&&s.jsxs("span",{children:["att ",u.attempts]}),u.status==="running"?s.jsx(yo,{since:u.startedAt}):u.durationMs!=null&&s.jsx("span",{children:pi(u.durationMs)}),u.kind==="agent"&&u.tokensIn!=null&&s.jsxs("span",{children:[qc(u.tokensIn)," / ",qc(u.tokensOut)]}),u.costUsd!=null&&u.costUsd>0&&s.jsx("span",{children:go(u.costUsd)})]})]}),u.status==="running"&&u.lastActivity&&s.jsx("div",{className:"phase-activity",children:u.lastActivity}),u.summary&&u.status!=="running"&&s.jsx("div",{className:"phase-sub",children:u.summary}),u.gates.length>0&&s.jsx("div",{className:"gate-line",children:u.gates.map(o=>s.jsxs("span",{className:`gate ${o.passed?"":"failed"}`,title:o.failure??"",children:[o.passed?"✓":"✕"," ",o.gate]},o.gate))}),c.map(o=>s.jsx("div",{className:"gate-fail-msg",children:o.failure},o.gate))]})}const sp=new Set(["png","jpg","jpeg","gif","webp","svg"]);function $c(u){return u==="runner.json"||u.endsWith(".jsonl")||u.endsWith(".log")}function hx(u){const o=["report.html","recommendation.md"].find(h=>u.some(p=>p.name===h));if(o)return o;const r=h=>{const p=h.split(".").pop()?.toLowerCase()??"";return["html","md","markdown","pdf"].includes(p)||sp.has(p)?0:$c(h)?2:1};let d=null;for(const h of u)(!d||r(h.name)<r(d.name))&&(d=h);return d?.name??null}function mx({id:u,files:c,live:o}){const[r,d]=B.useState(null),h=mi(),p=B.useMemo(()=>h?c:c.filter(v=>!$c(v.name)),[c,h]);return B.useEffect(()=>{!h&&r&&$c(r)&&d(null)},[h,r]),B.useEffect(()=>{r||p.length===0||d(hx(p))},[p,r]),s.jsxs("div",{className:"art-layout",children:[s.jsxs("section",{className:"panel art-files",children:[s.jsx("div",{className:"panel-head",children:s.jsxs("span",{className:"microlabel",children:["files ",s.jsxs("span",{className:"num",children:["(",p.length,")"]})]})}),s.jsxs("div",{className:"file-list",children:[p.map(v=>s.jsxs("button",{className:`file-row ${r===v.name?"active":""}`,onClick:()=>d(v.name),children:[s.jsx("span",{className:"fname",children:v.name}),s.jsx("span",{className:"fsize num",children:vo(v.size)})]},v.name)),p.length===0&&s.jsx("div",{className:"viewer-note",children:c.length>0?"no result files — raw run files live in expert mode":"no files yet"})]})]}),s.jsxs("section",{className:"panel art-viewer",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:r??"viewer"}),s.jsx("span",{className:"spacer"}),r&&s.jsx("a",{className:"open-raw",href:`/api/runs/${u}/file?name=${encodeURIComponent(r)}&raw=1`,target:"_blank",children:"open raw ↗"})]}),r?s.jsx(px,{id:u,name:r,live:o}):s.jsx("div",{className:"empty",children:"select a file"})]})]})}function px({id:u,name:c,live:o}){const r=c.split(".").pop()?.toLowerCase()??"",d=`/api/runs/${u}/file?name=${encodeURIComponent(c)}&raw=1`;return r==="html"?s.jsx("div",{className:"viewer",children:s.jsx("div",{className:"viewer-body",children:s.jsx("iframe",{src:d,sandbox:"allow-scripts",allow:"clipboard-write",title:c})})}):r==="pdf"?s.jsx("div",{className:"viewer",children:s.jsx("div",{className:"viewer-body",children:s.jsx("iframe",{src:d,title:c})})}):sp.has(r)?s.jsx("div",{className:"viewer",children:s.jsx("div",{className:"viewer-body",children:s.jsx("img",{src:d,alt:c})})}):r==="md"||r==="markdown"?s.jsx(gx,{id:u,name:c,live:o}):s.jsx(vx,{id:u,name:c,live:o})}function gx({id:u,name:c,live:o}){const[r,d]=B.useState("rendered"),h=Ge(`/api/runs/${u}/file?name=${encodeURIComponent(c)}`,o),p=B.useMemo(()=>h?yi.sanitize(Te.parse(h.content,{async:!1})):"",[h?.content]);return s.jsxs("div",{className:"viewer",children:[s.jsxs("div",{className:"viewer-note md-toolbar",children:[s.jsxs("div",{className:"tabs",children:[s.jsx("button",{className:r==="rendered"?"active":"",onClick:()=>d("rendered"),children:"rendered"}),s.jsx("button",{className:r==="source"?"active":"",onClick:()=>d("source"),children:"source"})]}),h?.truncated&&s.jsxs("span",{children:["large file — showing the last ",vo(4e5)]})]}),s.jsx("div",{className:"viewer-body",children:h?r==="rendered"?s.jsx("div",{className:"md-body",dangerouslySetInnerHTML:{__html:p}}):s.jsx("pre",{children:h.content||"(empty)"}):s.jsx("pre",{children:"loading…"})})]})}function vx({id:u,name:c,live:o}){const r=Ge(`/api/runs/${u}/file?name=${encodeURIComponent(c)}`,o);return s.jsxs("div",{className:"viewer",children:[r?.truncated&&s.jsxs("div",{className:"viewer-note",children:["large file — showing the last ",vo(4e5)]}),s.jsx("div",{className:"viewer-body",children:s.jsx("pre",{children:r?r.content||"(empty)":"loading…"})})]})}function yx(){const u=Ge("/api/workflows",!1),c=u?.workflows??[];return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"Workflows"}),s.jsxs("span",{className:"count num",children:[c.length," discovered"]}),u?.root&&s.jsx("span",{className:"count mono",children:u.root})]}),u&&c.length===0&&s.jsxs("div",{className:"empty",children:["No workflows found — expected ",s.jsx("code",{children:"src/workflows/"})," or ",s.jsx("code",{children:"workflows/"})," ","next to the output folder."]}),s.jsx("div",{className:"wf-grid",children:c.map(o=>s.jsxs(we,{href:`/workflows/${o.slug}`,className:"wf-card",children:[s.jsxs("div",{className:"wf-card-head",children:[s.jsx("span",{className:"wf-name",children:o.name??o.slug}),o.error&&s.jsx("span",{className:"status-word failed",children:"broken"})]}),s.jsx("p",{className:"wf-desc",children:o.error??o.description??""}),s.jsxs("div",{className:"wf-meta num",children:[s.jsxs("span",{children:[o.agents," agents"]}),s.jsx("span",{children:"·"}),s.jsxs("span",{children:[o.steps," steps"]})]})]},o.slug))})]})}function xx({slug:u}){const c=Ge(`/api/workflows/${encodeURIComponent(u)}`,!1),o=Ge("/api/runs",!1);if(!c)return s.jsx("div",{className:"empty",children:"loading…"});if(c.error)return s.jsxs(s.Fragment,{children:[s.jsx(Hm,{slug:c.slug}),s.jsxs("div",{className:"empty",children:[s.jsx("span",{className:"status-word failed",children:"broken workflow"}),s.jsx("pre",{style:{marginTop:12,textAlign:"left"},children:c.error})]})]});const r=new Map(c.agents.map((h,p)=>[h.id,p%4])),d=(o?.runs??[]).filter(h=>h.workflow===c.name).slice(0,8);return s.jsxs(s.Fragment,{children:[s.jsx(Hm,{slug:c.slug}),s.jsxs("div",{className:"detail-head",children:[s.jsx("h1",{children:c.name??c.slug}),s.jsx("span",{className:"rid mono",children:c.dir})]}),c.description&&s.jsx("p",{className:"detail-req",children:c.description}),s.jsxs("div",{className:"statgrid",children:[s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"agents"}),s.jsx("div",{className:"v num",children:c.agents.length})]}),s.jsxs("div",{className:"stat",children:[s.jsx("div",{className:"microlabel",children:"steps"}),s.jsxs("div",{className:"v num",children:[c.steps.length," ",s.jsxs("span",{style:{color:"var(--muted)",fontWeight:400},children:["(",c.steps.filter(h=>h.kind==="agent").length," agent ·"," ",c.steps.filter(h=>h.kind==="script").length," script)"]})]})]}),c.workspace&&s.jsxs("div",{className:"stat",style:{maxWidth:420},children:[s.jsx("div",{className:"microlabel",children:"workspace"}),s.jsx("div",{className:"wf-workspace mono",children:c.workspace})]})]}),s.jsx(bx,{slug:c.slug,lastRequest:d[0]?.request}),s.jsxs("section",{className:"panel",style:{marginBottom:18},children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"agents"})}),s.jsxs("div",{className:"agent-grid",children:[c.agents.map(h=>s.jsx(Sx,{a:h,idx:r.get(h.id)??0},h.id)),c.agents.length===0&&s.jsx("div",{className:"viewer-note",children:"no agents — script-only workflow"})]})]}),s.jsxs("div",{className:"columns",children:[s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"pipeline"})}),s.jsx("div",{className:"pipeline",children:c.steps.map((h,p)=>s.jsx(jx,{s:h,i:p,idx:h.agent?r.get(h.agent)??0:null},h.name))})]}),s.jsxs("div",{style:{display:"grid",gap:18},children:[s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsxs("span",{className:"microlabel",children:["folder ",s.jsxs("span",{className:"num",children:["(",c.files.length," files)"]})]})}),s.jsx("div",{className:"file-list",children:c.files.map(h=>s.jsx("div",{className:"file-row",style:{cursor:"default"},children:s.jsx("span",{className:"fname",children:h})},h))})]}),s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsxs("span",{className:"microlabel",children:["recent runs ",s.jsxs("span",{className:"num",children:["(",d.length,")"]})]})}),s.jsxs("div",{className:"file-list",children:[d.map(h=>s.jsxs(we,{href:`/runs/${h.id}`,className:"file-row",children:[s.jsx(Qc,{status:h.status}),s.jsx("span",{className:"fname",children:h.id.replace(/^run-/,"")}),s.jsxs("span",{className:"fsize num",children:[pi(h.durationMs)," · ",go(h.costUsd)," · ",ls(h.startedAt)]})]},h.id)),d.length===0&&s.jsx("div",{className:"viewer-note",children:"no runs of this workflow yet"})]})]})]})]})]})}function bx({slug:u,lastRequest:c}){const[o,r]=B.useState(""),[d,h]=B.useState(!0),[p,v]=B.useState(!1),[b,y]=B.useState(!1),[T,R]=B.useState(null),_=Ge(`/api/workflows/${encodeURIComponent(u)}/run`,!1);B.useEffect(()=>{!o&&c&&r(c)},[c]);const q=_?.available&&_?.image,G=_?_.available?_.image?"isolated container per run":"image missing — run `kraftwerk runner build`":"Docker not running — sandbox unavailable":"";async function K(){if(!(!o.trim()||b)){y(!0),R(null);try{const I=await fetch(`/api/workflows/${encodeURIComponent(u)}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({request:o.trim(),sandbox:d,ssh:p})}),O=await I.json();if(!I.ok)throw new Error(O.error??`HTTP ${I.status}`);jl(`/runs/${O.runId}`)}catch(I){R(I.message),y(!1)}}}return s.jsxs("section",{className:"panel run-panel",style:{marginBottom:18},children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"trigger run"})}),s.jsxs("div",{className:"run-form",children:[s.jsx("input",{type:"text",value:o,placeholder:"request — topic, URL, host …",onChange:I=>r(I.target.value),onKeyDown:I=>I.key==="Enter"&&K()}),s.jsx("button",{className:"run-btn",onClick:K,disabled:b||!o.trim()||d&&!q,children:b?"starting…":d?"▶ run in sandbox":"▶ run locally"})]}),s.jsxs("div",{className:"run-opts",children:[s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:d,onChange:I=>h(I.target.checked)}),"docker sandbox ",G&&s.jsxs("span",{className:"opt-hint",children:["— ",G]})]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:p,onChange:I=>v(I.target.checked),disabled:!d}),"forward SSH agent"]})]}),T&&s.jsx("div",{className:"gate-fail-msg",children:T})]})}function Hm({slug:u}){return s.jsxs("nav",{className:"crumbs",children:[s.jsx(we,{href:"/workflows",children:"workflows"}),s.jsx("span",{className:"sep",children:"/"}),s.jsx("span",{className:"mono",children:u})]})}function Sx({a:u,idx:c}){return s.jsxs("div",{className:`agent-card aid-${c}`,children:[s.jsxs("div",{className:"agent-head",children:[s.jsx("span",{className:"agent-dot"}),s.jsx("b",{children:u.name??u.id}),s.jsxs("code",{className:"agent-id",children:["[",u.id,"]"]}),s.jsx("span",{className:"spacer"}),s.jsxs("span",{className:"chip",children:[u.model??"default",u.effort?` · ${u.effort}`:""]})]}),u.tools.length>0&&s.jsx("div",{className:"agent-tools",children:u.tools.map(o=>s.jsx("span",{className:"tool-chip",children:o},o))}),u.persona&&s.jsx("p",{className:"agent-persona",children:u.persona})]})}function jx({s:u,i:c,idx:o}){const r=u.kind==="script"?u.script:u.prompt;return s.jsxs("div",{className:"step-node",children:[s.jsx("div",{className:`step-index num ${o!=null?`aid-${o}`:"is-script"}`,children:c+1}),s.jsxs("div",{className:"step-body",children:[s.jsxs("div",{className:"phase-top",children:[s.jsx("span",{className:"phase-name",children:u.name}),u.kind==="agent"?s.jsxs("span",{className:`chip agent-chip aid-${o??0}`,children:["agent · ",u.agent]}):s.jsxs("span",{className:"chip",children:["script",u.sourceRef?` · ${u.sourceRef}`:""]})]}),r&&s.jsxs("details",{className:"step-source",children:[s.jsx("summary",{children:u.kind==="agent"?"prompt":"script"}),s.jsx("pre",{children:r})]}),u.gates.length>0&&s.jsx("div",{className:"gate-line",children:u.gates.map(d=>s.jsxs("span",{className:"gate neutral",children:["⛨ ",d]},d))})]})]})}const Nx=u=>u==="ok"?"ok":u==="running"?"running":u==="aborted"?"aborted":"failed",wx=u=>u==="ok"?"done":u==="running"?"working":u==="aborted"?"stopped":"failed";function Tx(u){return u.scope.kind==="team"?`/team/${u.scope.member}/chat/${u.id}`:`/team/chats/${u.id}`}function Bm(u){switch(u.scope.kind){case"team":return u.scope.member;case"run":return u.scope.runId;case"knowledge":return u.scope.bundle?`knowledge:${u.scope.bundle}`:"knowledge";case"kraftwerk":return"kraftwerk-aware";default:return"general"}}function qm(u){return u.length>64?`${u.slice(0,46)}…${u.slice(-14)}`:u}function kx(){const u=Ge("/api/runs",!1),c=Ge("/api/chats",!1),o=Ge("/api/knowledge",!1),r=Ge("/api/team",!1),d=Ge("/api/workflows",!1),h=Ge("/api/skills",!1),p=Ge("/api/meta",!1),[v,b]=B.useState("all"),y=u?.runs??[],T=c?.chats??[],R=o?.bundles??[],_=(h?.skills??[]).filter(K=>K.source==="workspace"),q=[[d?.workflows.length,"workflows","/workflows"],[u?y.length:void 0,"runs","/runs"],[o?R.length:void 0,"bundles","/knowledge"],[h?_.length:void 0,"skills","/skills"],[c?T.length:void 0,"chats","/team/chats"]],G=y.filter(K=>K.status==="failed"&&Date.now()-Date.parse(K.updatedAt)<24*36e5);return s.jsxs("div",{className:"dash",children:[s.jsxs("div",{className:"page-head",children:[s.jsxs("h1",{children:[p?.projectIcon?`${p.projectIcon} `:"",p?.projectName||"workspace"]}),s.jsx("span",{className:"spacer"}),s.jsx("span",{className:"dash-mini",children:q.map(([K,I,O])=>s.jsxs(we,{href:O,children:[s.jsx("b",{className:"num",children:K??"…"})," ",I]},I))})]}),s.jsx(Ex,{workflows:d?.workflows??[]}),s.jsx(Ax,{members:r?.members,chats:T}),G.length>0&&v!=="failed"&&s.jsxs("button",{className:"dash-alert",onClick:()=>b("failed"),children:["⚠ ",G.length," run",G.length===1?"":"s"," failed in the last 24 h — review"]}),s.jsx(Rx,{runs:y,chats:T,bundles:R,members:r?.members??[],workflows:d?.workflows??[],filter:v,setFilter:b})]})}function Ex({workflows:u}){const[c,o]=B.useState(!1);return B.useEffect(()=>{if(!c)return;const r=d=>{d.target.closest(".wf-pick-wrap")||o(!1)};return window.addEventListener("mousedown",r),()=>window.removeEventListener("mousedown",r)},[c]),s.jsxs("div",{className:"dash-actions",children:[s.jsx("button",{className:"run-btn dash-newchat",onClick:()=>jl("/team/chats"),children:"💬 new chat"}),s.jsxs("span",{className:"wf-pick-wrap",children:[s.jsx("button",{className:"run-btn tonal","aria-haspopup":"menu","aria-expanded":c,onClick:()=>o(r=>!r),children:"▶ run workflow"}),c&&s.jsxs("div",{className:"wf-pick-pop",role:"menu",children:[u.length===0&&s.jsx("span",{className:"wf-pick-empty",children:"no workflows yet"}),u.map(r=>s.jsxs(we,{href:`/workflows/${encodeURIComponent(r.slug)}`,className:"wf-pick-item",role:"menuitem",children:[s.jsx("span",{className:"wf-pick-name",children:r.name??r.slug}),r.description&&s.jsx("span",{className:"wf-pick-desc",children:r.description})]},r.slug))]})]})]})}function Ax({members:u,chats:c}){return u&&u.length===0?s.jsx("section",{className:"panel dash-team-empty",children:s.jsxs("div",{className:"viewer-note",children:["No agent teammates yet — ",s.jsx(we,{href:"/team/new",children:"create your first agent"})," and it will show up here, ready to chat."]})}):s.jsx("div",{className:"dash-team",children:(u??[]).map(o=>{const r=c.filter(v=>v.scope.kind==="team"&&v.scope.member===o.slug),d=r.find(v=>v.busy),h=r[0],p=()=>jl(`/team/${encodeURIComponent(o.slug)}`);return s.jsxs("div",{className:"dash-member",role:"link",tabIndex:0,onClick:p,onKeyDown:v=>{v.key==="Enter"&&p()},children:[s.jsxs("div",{className:"dash-member-id",children:[s.jsxs("span",{className:"agent-avatar lg",children:[s.jsx("span",{"aria-hidden":!0,children:o.emoji}),s.jsx("span",{className:`lamp ${d?"running":"idle"}`})]}),s.jsx("span",{className:"dash-member-name",children:o.name})]}),s.jsxs("div",{className:"dash-member-foot",children:[s.jsx("span",{className:"dash-member-state",children:d?s.jsx(we,{href:`/team/${encodeURIComponent(o.slug)}/chat/${d.id}`,onClick:v=>v.stopPropagation(),children:"working…"}):h?s.jsxs("span",{title:new Date(h.updatedAt).toLocaleString(),children:["last active ",$m(h.updatedAt)]}):"never talked yet"}),s.jsx("button",{className:"run-btn dash-chat-btn",onClick:v=>{v.stopPropagation(),ha("claude",{kind:"team",member:o.slug})},children:"💬 chat"})]})]},o.slug)})})}function _x(u){if(u.lamp==="running")return"now";const c=new Date(u.at),o=new Date;if(c.toDateString()===o.toDateString())return"today";const r=new Date(o);return r.setDate(r.getDate()-1),c.toDateString()===r.toDateString()?"yesterday":"earlier"}const zx=[["all","all"],["run","runs"],["session","chats"],["knowledge","knowledge"]];function Rx({runs:u,chats:c,bundles:o,members:r,workflows:d,filter:h,setFilter:p}){const v=mi(),b=B.useMemo(()=>{const T=[],R=q=>q?d.find(G=>G.slug===q)?.name??q:void 0;for(const q of u)T.push({at:q.updatedAt,kind:"run",emoji:"⚙️",title:R(q.workflow)??q.id,sub:q.request??"",href:`/runs/${q.id}`,lamp:Nx(q.status),status:wx(q.status)});for(const q of c){const G=q.scope.kind==="team"?r.find(K=>q.scope.kind==="team"&&K.slug===q.scope.member):void 0;T.push({at:q.updatedAt,kind:"session",emoji:G?G.emoji||"🤖":"💬",title:G?G.name:q.title||"new chat",sub:G?`${q.title||"new chat"}${v?` · ${q.agent}`:""}`:v?`${q.agent} · ${Bm(q)}`:Bm(q),href:Tx(q),lamp:q.busy?"running":"ok",status:q.busy?"working":void 0})}for(const q of o)q.updatedAt&&T.push({at:q.updatedAt,kind:"knowledge",emoji:"📚",title:q.name,sub:`${q.concepts} concepts`,href:`/knowledge/${encodeURIComponent(q.name)}`,lamp:"ok"});return(h==="all"?T:h==="failed"?T.filter(q=>q.kind==="run"&&q.lamp==="failed"):T.filter(q=>q.kind===h)).sort((q,G)=>{const K=+(G.lamp==="running")-+(q.lamp==="running");return K!==0?K:G.at.localeCompare(q.at)}).slice(0,15)},[u,c,o,r,v,h]);let y="";return s.jsxs("section",{className:"panel dash-feed",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"activity"}),s.jsx("span",{className:"spacer"}),s.jsxs("span",{className:"dash-feed-filter",children:[zx.map(([T,R])=>s.jsx("button",{className:`feed-chip ${h===T?"on":""}`,onClick:()=>p(T),children:R},T)),h==="failed"&&s.jsx("button",{className:"feed-chip on failed",onClick:()=>p("all"),children:"failed ✕"})]})]}),b.length===0?s.jsx("div",{className:"viewer-note",children:h==="all"?"nothing yet — run a workflow or start a session":"nothing here for this filter"}):s.jsx("div",{className:"m3-list",children:b.map(T=>{const R=_x(T),_=R!==y?R:null;return y=R,s.jsxs("div",{className:"feed-group",children:[_&&s.jsx("div",{className:"feed-day microlabel",children:_}),s.jsxs(we,{href:T.href,className:"m3-row m3-link",children:[s.jsxs("span",{className:"agent-avatar",children:[s.jsx("span",{"aria-hidden":!0,children:T.emoji}),T.lamp==="running"&&s.jsx("span",{className:"lamp running"})]}),s.jsx("span",{className:`chip dash-kind ${T.kind}`,children:T.kind==="session"?"chat":T.kind}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:qm(T.title)}),T.sub&&s.jsx("span",{className:"m3-sub",children:qm(T.sub)})]}),T.status&&s.jsx("span",{className:`chip status ${T.lamp}`,children:T.status}),s.jsx("span",{className:"side-when num",title:new Date(T.at).toLocaleString(),children:$m(T.at)}),s.jsx("span",{className:"m3-chev",children:"›"})]})]},`${T.kind}:${T.href}:${T.at}`)})})]})}function Ox({bundle:u,conceptId:c}){const o=Ge("/api/knowledge",!1),r=o?.bundles??[];return s.jsxs("div",{className:"runs-screen",children:[s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"bundles"}),s.jsx("span",{className:"spacer"}),s.jsx(we,{href:"/knowledge",className:"open-raw",children:"+ new"})]}),s.jsxs("div",{className:"side-list",children:[r.map(d=>s.jsxs(we,{href:`/knowledge/${encodeURIComponent(d.name)}`,className:`side-row ${d.name===u?"active":""}`,children:[s.jsx("span",{className:"lamp ok"}),s.jsxs("div",{className:"side-row-body",children:[s.jsxs("div",{className:"side-row-top",children:[s.jsx("span",{className:"side-wf",children:d.name}),s.jsx("span",{className:"side-when num",children:d.concepts})]}),s.jsx("div",{className:"side-row-sub",children:s.jsxs("span",{className:"side-req",children:[d.okfVersion?`okf ${d.okfVersion}`:"okf",d.updatedAt?` · ${d.updatedAt.slice(0,10)}`:""]})})]})]},d.name)),o&&r.length===0&&s.jsx("div",{className:"viewer-note",children:"no bundles yet"})]})]}),s.jsx("div",{className:"runs-main",children:u&&c?s.jsx(qx,{bundle:u,conceptId:c},`${u}/${c}`):u?s.jsx(Cx,{name:u},u):s.jsx(Dx,{root:o?.root})})]})}function Dx({root:u}){const[c,o]=B.useState(""),[r,d]=B.useState(""),[h,p]=B.useState(!1);async function v(){const b=c.trim();if(!b)return;p(!0),d("");const T=await(await fetch("/api/knowledge",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:b})})).json();p(!1),T.error?d(T.error):window.location.hash=`/knowledge/${encodeURIComponent(b)}`}return s.jsxs("div",{className:"new-chat",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"context & knowledge"})}),s.jsxs("section",{className:"panel new-chat-panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"what lives here"})}),s.jsxs("div",{className:"know-intro",children:["Curated knowledge as ",s.jsx("b",{children:"OKF bundles"})," (Open Knowledge Format v0.2): plain markdown files with YAML frontmatter",u?s.jsxs(s.Fragment,{children:[" under ",s.jsx("code",{children:u})]}):null,", readable by humans and agents, diffable in git. Agents write through"," ",s.jsx("code",{children:"kraftwerk knowledge put"})," (provenance is stamped automatically); you raise a concept's trust tier by verifying it here."]}),s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"new bundle"})}),s.jsxs("div",{className:"know-newbundle",children:[s.jsx("input",{value:c,placeholder:"bundle name, e.g. customer-support",onChange:b=>o(b.target.value),onKeyDown:b=>b.key==="Enter"&&void v()}),s.jsx("button",{className:"run-btn",disabled:!c.trim()||h,onClick:v,children:h?"creating…":"create"})]}),r&&s.jsxs("div",{className:"msg error",children:["✕ ",r]})]})]})}function ho({tier:u}){return s.jsx("span",{className:`chip trust ${u}`,children:u})}function Cx({name:u}){const c=Ge(`/api/knowledge/${encodeURIComponent(u)}`,!1);return c?"error"in c?s.jsx("div",{className:"empty",children:"bundle not found"}):s.jsxs("div",{className:"member-view",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:u}),s.jsxs("span",{className:"count",children:[c.concepts.length," concepts"]}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"run-btn",onClick:()=>{ha("claude",{kind:"knowledge",bundle:u})},children:"curate in chat"})]}),s.jsx("section",{className:"panel",children:c.concepts.length===0?s.jsxs("div",{className:"viewer-note",children:["No concepts yet — start a chat to author some, or write one with"," ",s.jsxs("code",{children:["kraftwerk knowledge put ",u,"/<path>"]}),"."]}):s.jsx("div",{className:"m3-list",children:Bx(c.concepts).map(({folder:o,concepts:r})=>s.jsxs(B.Fragment,{children:[o&&s.jsxs("div",{className:"m3-subhead",children:[o,"/"]}),r.map(d=>s.jsxs(we,{href:`/knowledge/${encodeURIComponent(u)}/${d.id}`,className:"m3-row m3-link",children:[s.jsx("span",{className:"m3-ico",children:Mx(d.type)}),s.jsxs("span",{className:"m3-body",children:[s.jsxs("span",{className:"m3-head",children:[d.title,d.status!=="stable"&&s.jsx("span",{className:`chip ${d.status}`,children:d.status}),d.stale&&s.jsx("span",{className:"chip stale",children:"stale"}),d.error&&s.jsx("span",{className:"chip stale",title:d.error,children:"invalid"})]}),s.jsxs("span",{className:"m3-sub",children:[s.jsxs("code",{children:[o?d.id.slice(o.length+1):d.id,".md"]})," · ",d.type??"untyped"]})]}),s.jsx(ho,{tier:d.trustTier}),s.jsx("span",{className:"m3-chev",children:"›"})]},d.id))]},o||"."))})}),c.log&&s.jsx(Hx,{name:u,log:c.log})]}):s.jsx("div",{className:"empty",children:"loading…"})}function Mx(u){switch((u??"").toLowerCase()){case"reference":return"▤";case"policy":return"§";case"guide":case"howto":return"➤";case"decision":return"⚖";default:return"◆"}}function Ux(u){const c=[];for(const o of u.split(`
77
+ `)){const r=o.match(/^##\s+(\d{4}-\d{2}-\d{2})/);if(r){c.push({date:r[1],entries:[]});continue}const d=o.match(/^[*-]\s+\*\*([^*]+)\*\*:\s*(.*)$/);d&&c.length>0&&c[c.length-1].entries.push({kind:d[1].toLowerCase(),text:d[2]})}return c.filter(o=>o.entries.length>0)}function Lx(u,c){const o=[],r=/\[([^\]]+)\]\(\/?([^)]+?)\.md\)/g;let d=0,h;for(;h=r.exec(c);)h.index>d&&o.push(c.slice(d,h.index)),o.push(s.jsx(we,{href:`/knowledge/${encodeURIComponent(u)}/${h[2].replace(/^\//,"")}`,children:h[1]},h.index)),d=h.index+h[0].length;return d<c.length&&o.push(c.slice(d)),o}function Hx({name:u,log:c}){const o=Ux(c),[r,d]=B.useState(!1);return s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"activity"}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",onClick:()=>d(!r),children:r?"timeline":"raw log"})]}),r||o.length===0?s.jsx("div",{className:"viewer-body",children:s.jsx("pre",{children:c})}):s.jsx("div",{className:"know-log",children:o.map(h=>s.jsxs(B.Fragment,{children:[s.jsx("div",{className:"m3-subhead num",children:h.date}),h.entries.map((p,v)=>s.jsxs("div",{className:"know-log-row",children:[s.jsx("span",{className:`chip log-kind log-${p.kind}`,children:p.kind}),s.jsx("span",{className:"know-log-text",children:Lx(u,p.text)})]},v))]},h.date))})]})}function Bx(u){const c=new Map;for(const o of u){const r=o.id.includes("/")?o.id.slice(0,o.id.lastIndexOf("/")):"";(c.get(r)??c.set(r,[]).get(r)).push(o)}return[...c.keys()].sort((o,r)=>o===""?-1:r===""?1:o.localeCompare(r)).map(o=>({folder:o,concepts:c.get(o)}))}function qx({bundle:u,conceptId:c}){const[o,r]=B.useState(null),[d,h]=B.useState(!1),[p,v]=B.useState(!1),[b,y]=B.useState(!1),[T,R]=B.useState(""),[_,q]=B.useState(!1),[G,K]=B.useState(""),[I,O]=B.useState("rendered"),ke=B.useMemo(()=>o?yi.sanitize(Te.parse(o.body,{async:!1})):"",[o?.body]),ee=()=>{fetch(`/api/knowledge/${encodeURIComponent(u)}/concept?id=${encodeURIComponent(c)}`).then($=>$.ok?$.json():Promise.reject()).then(r).catch(()=>h(!0))};B.useEffect(ee,[u,c]);async function ae(){v(!0),await fetch(`/api/knowledge/${encodeURIComponent(u)}/verify`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:c})}).catch(()=>{}),v(!1),ee()}async function ie(){q(!0),K("");const $=await fetch(`/api/knowledge/${encodeURIComponent(u)}/concept`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:c,content:T})}).then(P=>P.json()).catch(()=>({error:"save failed"}));q(!1),$.error?K($.error):(r($),y(!1))}return d?s.jsx("div",{className:"empty",children:"concept not found"}):o?s.jsxs("div",{className:"member-view",children:[s.jsxs("div",{className:"detail-head",children:[s.jsx("h1",{children:o.title}),o.type&&s.jsx("span",{className:"chip agent",children:o.type}),s.jsx(ho,{tier:o.trustTier}),o.status!=="stable"&&s.jsx("span",{className:`chip ${o.status}`,children:o.status}),o.stale&&s.jsxs("span",{className:"chip stale",children:["stale since ",o.staleAfter?.slice(0,10)]}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",onClick:()=>{ha("claude",{kind:"knowledge",bundle:u})},children:"curate in chat"}),s.jsx("button",{className:"run-btn",disabled:p,onClick:ae,children:p?"verifying…":"✓ verify (human)"})]}),o.error&&s.jsxs("div",{className:"msg error",children:["✕ ",o.error]}),s.jsxs("div",{className:"detail-cols",children:[s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"content"}),s.jsx("span",{className:"spacer"}),s.jsxs("span",{className:"side-meta",children:[u,"/",o.id,".md"]}),b?s.jsxs(s.Fragment,{children:[s.jsx("button",{className:"open-raw",onClick:()=>{y(!1),K("")},children:"cancel"}),s.jsx("button",{className:"open-raw",disabled:_,onClick:ie,children:_?"saving…":"✓ save"})]}):s.jsx("button",{className:"open-raw",onClick:()=>{R(o.raw),y(!0),K("")},children:"✎ edit"})]}),b?s.jsxs(s.Fragment,{children:[s.jsx("textarea",{className:"concept-edit",value:T,rows:Math.min(40,Math.max(18,T.split(`
78
+ `).length+2)),onChange:$=>R($.target.value),spellCheck:!1}),s.jsxs("div",{className:"viewer-note",children:["full file (frontmatter + markdown body) — saving stamps provenance as"," ",s.jsx("code",{children:"human:user"})," and logs an update."]})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"viewer-note md-toolbar",children:s.jsxs("div",{className:"tabs",children:[s.jsx("button",{className:I==="rendered"?"active":"",onClick:()=>O("rendered"),children:"rendered"}),s.jsx("button",{className:I==="source"?"active":"",onClick:()=>O("source"),children:"source"})]})}),s.jsx("div",{className:"viewer-body",children:I==="rendered"?s.jsx("div",{className:"md-body concept-md",dangerouslySetInnerHTML:{__html:ke}}):s.jsx("pre",{children:o.body.trim()||"(empty body)"})})]}),G&&s.jsxs("div",{className:"msg error",children:["✕ ",G]})]}),s.jsxs("aside",{className:"detail-rail",children:[s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"about"})}),s.jsxs("div",{className:"rail-list",children:[s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"trust"}),s.jsx("span",{className:"v",children:s.jsx(ho,{tier:o.trustTier})})]}),s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"generated"}),s.jsx("span",{className:`v ${o.generated?"":"dim"}`,children:o.generated?`${o.generated.by??"?"} · ${(o.generated.at??"?").slice(0,10)}`:"not stamped"})]}),s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"verified"}),o.verified.length===0?s.jsx("span",{className:"v dim",children:"never"}):o.verified.map(($,P)=>s.jsxs("span",{className:"v",children:[$.by??"?"," · ",($.at??"?").slice(0,10)]},P))]}),o.staleAfter&&s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"stale after"}),s.jsxs("span",{className:`v ${o.stale?"":"dim"}`,children:[o.staleAfter.slice(0,10),o.stale&&s.jsx("span",{className:"chip stale",children:"stale"})]})]}),o.tags.length>0&&s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"tags"}),s.jsx("span",{className:"m3-chips",children:o.tags.map($=>s.jsx("span",{className:"chip",children:$},$))})]})]})]}),o.sources.length>0&&s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"sources"})}),s.jsx("div",{className:"rail-list",children:o.sources.map(($,P)=>s.jsxs("div",{className:"rail-kv",children:[s.jsxs("span",{className:"v",children:[$.resource?.startsWith("http")?s.jsx("a",{href:$.resource,target:"_blank",rel:"noreferrer",children:$.title??$.resource}):$.title??$.resource??"?",$.id&&s.jsxs("span",{className:"know-id",children:["[^",$.id,"]"]})]}),s.jsx("span",{className:"v dim",children:[$.author,$.usage_count!=null?`${$.usage_count} uses`:null,$.last_modified?`mod ${$.last_modified.slice(0,10)}`:null].filter(Boolean).join(" · ")})]},P))})]})]})]})]}):s.jsx("div",{className:"empty",children:"loading…"})}const Yx={workspace:"workspace",project:".claude",user:"global"};function ip(u){return s.jsx("span",{className:`chip skill-src ${u}`,children:Yx[u]})}function Gx({name:u}){const c=Ge("/api/skills",!1),o=c?.skills??[],r=o.filter(p=>p.source==="workspace"),d=o.filter(p=>p.source!=="workspace"),h=p=>s.jsxs(we,{href:`/skills/${encodeURIComponent(p.name)}`,className:`side-row ${p.name===u?"active":""}`,children:[s.jsx("span",{className:`lamp ${p.source==="workspace"?"ok":"dim"}`}),s.jsxs("div",{className:"side-row-body",children:[s.jsxs("div",{className:"side-row-top",children:[s.jsxs("span",{className:"side-wf",children:["/",p.name]}),p.source!=="workspace"&&ip(p.source)]}),s.jsx("div",{className:"side-row-sub",children:s.jsx("span",{className:"side-req",children:p.description||"no description"})})]})]},`${p.source}:${p.name}`);return s.jsxs("div",{className:"runs-screen",children:[s.jsxs("aside",{className:"runs-side",children:[s.jsx("div",{className:"side-head",children:s.jsx("span",{className:"microlabel",children:"workspace skills"})}),s.jsxs("div",{className:"side-list",children:[r.map(h),c&&r.length===0&&s.jsx("div",{className:"viewer-note",children:"no workspace skills yet"}),d.length>0&&s.jsxs(B.Fragment,{children:[s.jsx("div",{className:"side-head skills-local-head",children:s.jsx("span",{className:"microlabel",children:"local (this machine / repo)"})}),d.map(h)]})]})]}),s.jsx("div",{className:"runs-main",children:u?s.jsx($x,{name:u},u):s.jsx(Xx,{root:c?.root,workspace:r})})]})}function Xx({root:u,workspace:c}){return s.jsxs("div",{className:"new-chat",children:[s.jsxs("div",{className:"page-head",children:[s.jsx("h1",{children:"skills"}),s.jsxs("span",{className:"count",children:[c.length," in workspace"]})]}),s.jsxs("section",{className:"panel new-chat-panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"what lives here"})}),s.jsxs("div",{className:"know-intro",children:["Skills are reusable ",s.jsx("b",{children:"instruction packages"}),": one folder per skill with a"," ",s.jsx("code",{children:"SKILL.md"})," (YAML frontmatter: name, description). ",s.jsx("b",{children:"Workspace skills"}),u?s.jsxs(s.Fragment,{children:[" live under ",s.jsx("code",{children:u})]}):null,", are tracked in git and shared with everyone in this workspace — they are the ones to build on. Skills from"," ",s.jsx("code",{children:".claude/skills"})," and your personal ",s.jsx("code",{children:"~/.claude/skills"})," also work here, but stay repo-/machine-local. Invoke any skill in a session with"," ",s.jsx("code",{children:"/<name>"}),"."]}),s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"add a workspace skill"})}),s.jsxs("div",{className:"know-intro",children:["Create ",s.jsxs("code",{children:[u?`${u}/`:"skills/","<name>/SKILL.md"]}),", commit it, done — it appears here and in every session's ",s.jsx("code",{children:"/"})," menu."]})]})]})}function $x({name:u}){const[c,o]=B.useState(null),[r,d]=B.useState(!1),[h,p]=B.useState("rendered"),v=B.useMemo(()=>c?c.content.replace(/^---\r?\n[\s\S]*?\r?\n---(\r?\n|$)/,""):"",[c?.content]),b=B.useMemo(()=>c?yi.sanitize(Te.parse(v,{async:!1})):"",[v]);return B.useEffect(()=>{fetch(`/api/skills/${encodeURIComponent(u)}`).then(y=>y.ok?y.json():Promise.reject()).then(o).catch(()=>d(!0))},[u]),r?s.jsx("div",{className:"empty",children:"skill not found"}):c?s.jsxs("div",{className:"member-view",children:[s.jsxs("div",{className:"detail-head",children:[s.jsxs("h1",{children:["/",c.name]}),ip(c.source)]}),c.description&&s.jsx("div",{className:"know-intro skill-desc",children:c.description}),s.jsxs("div",{className:"detail-cols",children:[s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"SKILL.md"}),s.jsx("span",{className:"spacer"}),s.jsxs("div",{className:"tabs",children:[s.jsx("button",{className:h==="rendered"?"active":"",onClick:()=>p("rendered"),children:"rendered"}),s.jsx("button",{className:h==="source"?"active":"",onClick:()=>p("source"),children:"source"})]})]}),s.jsx("div",{className:"viewer-body",children:h==="rendered"?s.jsx("div",{className:"md-body concept-md",dangerouslySetInnerHTML:{__html:b}}):s.jsx("pre",{children:c.content.trim()||"(empty)"})})]}),s.jsx("aside",{className:"detail-rail",children:s.jsxs("section",{className:"panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"about"})}),s.jsxs("div",{className:"rail-list",children:[s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"source"}),s.jsx("span",{className:"v",children:c.source==="workspace"?"workspace — git-tracked, shared with the team":c.source==="project"?"repo .claude/skills — tracked, but outside the workspace root":"global ~/.claude/skills — only on this machine"})]}),s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"path"}),s.jsx("span",{className:"v mono skill-path",title:c.path,children:c.path})]}),s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"invoke"}),s.jsxs("span",{className:"v",children:[s.jsxs("code",{children:["/",c.name]})," in any session"]})]}),c.files.length>0&&s.jsxs("div",{className:"rail-kv",children:[s.jsx("span",{className:"microlabel",children:"bundled files"}),c.files.map(y=>s.jsx("span",{className:"v mono",children:y},y))]})]})]})})]})]}):s.jsx("div",{className:"empty",children:"loading…"})}const Qx=["","low","medium","high","xhigh","max"],Zx=["🤖","🧑‍💻","🎧","🛠️","📊","✍️","🔍","🧹","📦","🚀"];function Ym({seg:u}){const c=u[0]&&u[0]!=="new"&&u[0]!=="chats"?decodeURIComponent(u[0]):void 0,o=u[0]==="new"?"new":u[0]==="chats"?"chats":u[1]==="edit"?"edit":u[1]==="chat"?"chat":c?"member":"home",r=o==="chat"?u[2]:o==="chats"?u[1]:void 0,d=Ge("/api/team",!1),h=d?.members??[];let p;o==="new"?p=s.jsx(Gm,{},"new"):o==="edit"&&c?p=s.jsx(Gm,{slug:c},c):o==="chat"&&c&&r?p=s.jsx("div",{className:"chat-main",children:s.jsx(Um,{id:r},r)}):o==="chats"?p=r?s.jsx("div",{className:"chat-main",children:s.jsx(Um,{id:r},r)}):s.jsx(ex,{}):c?p=s.jsx(Ix,{slug:c},c):p=s.jsx(Wx,{hasMembers:h.length>0,root:d?.root});const v=(o==="member"||o==="chat")&&c?h.find(K=>K.slug===c)?.knowledge??[]:[],[b,y]=B.useState(()=>localStorage.getItem("kw-kside")!=="hidden"),[T,R]=B.useState(()=>Number(localStorage.getItem("kw-kside-w"))||460),_=v.length>0&&b;function q(K){y(K),localStorage.setItem("kw-kside",K?"open":"hidden")}function G(K){R(K),localStorage.setItem("kw-kside-w",String(K))}return s.jsxs("div",{className:`runs-screen team-screen ${c||o==="chats"?"has-sessions":""} ${_?"has-knowledge":""}`,style:_?{"--kside-w":`${T}px`}:void 0,children:[s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"agents"}),s.jsx("span",{className:"spacer"}),s.jsx(we,{href:"/team/new",className:"open-raw",children:"+ new"})]}),s.jsxs("div",{className:"side-list",children:[h.map(K=>s.jsxs(we,{href:`/team/${encodeURIComponent(K.slug)}`,className:`side-row ${K.slug===c?"active":""}`,children:[s.jsx("span",{className:"agent-avatar sm",children:s.jsx("span",{"aria-hidden":!0,children:K.emoji})}),s.jsxs("div",{className:"side-row-body",children:[s.jsx("div",{className:"side-row-top",children:s.jsx("span",{className:"side-wf",children:K.name})}),s.jsx("div",{className:"side-row-sub",children:s.jsx("span",{className:"side-req",children:K.description||K.harness})})]})]},K.slug)),d&&h.length===0&&s.jsx("div",{className:"viewer-note",children:"no agents yet"})]}),s.jsx("div",{className:"side-pinned",children:s.jsxs(we,{href:"/team/chats",className:`side-row ${o==="chats"?"active":""}`,children:[s.jsx("span",{className:"agent-avatar sm",children:s.jsx("span",{"aria-hidden":!0,children:"💬"})}),s.jsxs("div",{className:"side-row-body",children:[s.jsx("div",{className:"side-row-top",children:s.jsx("span",{className:"side-wf",children:"General Chats"})}),s.jsx("div",{className:"side-row-sub",children:s.jsx("span",{className:"side-req",children:"chats without an agent"})})]})]})})]}),c&&s.jsx(Kx,{slug:c,chatId:r}),o==="chats"&&s.jsx(Jx,{chatId:r}),s.jsx("div",{className:"runs-main",children:p}),_&&s.jsx(Vx,{bundles:v,onHide:()=>q(!1),onResize:G}),v.length>0&&!b&&s.jsx("button",{className:"kside-reopen",onClick:()=>q(!0),title:"Show knowledge sidebar",children:"◆ knowledge"})]})}function Vx({bundles:u,onHide:c,onResize:o}){const[r,d]=B.useState({}),[h,p]=B.useState(null),[v,b]=B.useState({}),[y,T]=B.useState(null),[R,_]=B.useState(""),[q,G]=B.useState(!1),[K,I]=B.useState("");B.useEffect(()=>{d({});for(const ee of u)fetch(`/api/knowledge/${encodeURIComponent(ee)}`).then(ae=>ae.ok?ae.json():null).then(ae=>d(ie=>({...ie,[ee]:ae}))).catch(()=>d(ae=>({...ae,[ee]:null})))},[u.join(",")]);async function O(ee,ae){const ie=`${ee}::${ae}`;if(h===ie){p(null);return}if(p(ie),v[ie]===void 0)try{const $=await fetch(`/api/knowledge/${encodeURIComponent(ee)}/concept?id=${encodeURIComponent(ae)}`),P=$.ok?await $.json():null;b(He=>({...He,[ie]:P}))}catch{b($=>({...$,[ie]:null}))}}async function ke(ee,ae){const ie=`${ee}::${ae}`;G(!0),I("");try{const P=await(await fetch(`/api/knowledge/${encodeURIComponent(ee)}/concept`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:ae,content:R})})).json();P.error?I(P.error):(b(He=>({...He,[ie]:P})),T(null))}catch($){I($.message)}G(!1)}return s.jsxs("aside",{className:"runs-side knowledge-side",children:[s.jsx("div",{className:"kside-resizer",title:"Drag to resize",onMouseDown:ee=>{ee.preventDefault();const ae=ee.clientX,ie=ee.currentTarget.parentElement.offsetWidth,$=He=>o(Math.min(900,Math.max(280,ie+(ae-He.clientX)))),P=()=>{window.removeEventListener("mousemove",$),window.removeEventListener("mouseup",P)};window.addEventListener("mousemove",$),window.addEventListener("mouseup",P)}}),s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"knowledge"}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",onClick:c,title:"Hide knowledge sidebar",children:"hide ✕"})]}),s.jsx("div",{className:"side-list",children:u.map(ee=>{const ae=r[ee];return s.jsxs("div",{className:"kside-bundle",children:[s.jsxs(we,{href:`/knowledge/${encodeURIComponent(ee)}`,className:"kside-bundle-name",children:[ee," ",ae?s.jsxs("span",{className:"num",children:["(",ae.concepts.length,")"]}):null]}),ae===null&&s.jsx("div",{className:"viewer-note",children:"bundle not found"}),ae?.concepts.map(ie=>{const $=`${ee}::${ie.id}`,P=h===$;return s.jsxs("div",{className:"kside-concept",children:[s.jsxs("button",{className:`kside-row ${P?"active":""}`,onClick:()=>O(ee,ie.id),children:[s.jsx("span",{className:"kside-title",children:ie.title||ie.id}),ie.stale&&s.jsx("span",{className:"kside-stale",children:"stale"})]}),P&&y!==$&&s.jsx("div",{className:"kside-body md-body",children:v[$]===void 0?s.jsx("span",{className:"viewer-note",children:"loading…"}):v[$]===null?s.jsx("span",{className:"viewer-note",children:"could not load concept"}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"kside-actions",children:s.jsx("button",{className:"open-raw",onClick:()=>{_(v[$].raw),T($),I("")},children:"✎ edit"})}),s.jsx("div",{dangerouslySetInnerHTML:{__html:yi.sanitize(Te.parse(v[$].body??"",{async:!1}))}})]})}),P&&y===$&&s.jsxs("div",{className:"kside-body kside-edit",children:[s.jsx("textarea",{className:"concept-edit",value:R,rows:Math.min(28,Math.max(10,R.split(`
79
+ `).length+2)),onChange:He=>_(He.target.value),spellCheck:!1}),s.jsxs("div",{className:"kside-actions",children:[s.jsx("button",{className:"open-raw",disabled:q,onClick:()=>T(null),children:"cancel"}),s.jsx("button",{className:"open-raw",disabled:q,onClick:()=>ke(ee,ie.id),children:q?"saving…":"✓ save"})]}),K&&s.jsxs("div",{className:"msg error",children:["✕ ",K]})]})]},ie.id)}),ae&&ae.concepts.length===0&&s.jsx("div",{className:"viewer-note",children:"no concepts yet"})]},ee)})})]})}function Kx({slug:u,chatId:c}){const o=Ge("/api/chats",!1),r=(o?.chats??[]).filter(p=>p.scope.kind==="team"&&p.scope.member===u),[d,h]=B.useState(!1);return s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"sessions"}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",disabled:d,onClick:async()=>{h(!0),await ha("claude",{kind:"team",member:u}),h(!1)},children:d?"…":"+ new"})]}),s.jsxs("div",{className:"side-list",children:[r.map(p=>s.jsxs(we,{href:`/team/${encodeURIComponent(u)}/chat/${p.id}`,className:`side-row ${p.id===c?"active":""}`,children:[s.jsx("span",{className:`lamp ${p.busy?"running":"pending"}`}),s.jsxs("div",{className:"side-row-body",children:[s.jsx("div",{className:"side-row-top",children:s.jsx("span",{className:"side-wf",children:p.title||"new session"})}),s.jsx("div",{className:"side-row-sub",children:s.jsx("span",{className:"side-when num",children:ls(p.updatedAt)})})]}),s.jsx("button",{type:"button",className:"row-x",title:"delete session",onClick:async v=>{v.preventDefault(),v.stopPropagation(),window.confirm(`Delete session "${p.title||p.id}"?`)&&(await fetch(`/api/chats/${p.id}`,{method:"DELETE"}).catch(()=>{}),p.id===c&&jl(`/team/${encodeURIComponent(u)}`))},children:"✕"})]},p.id)),o&&r.length===0&&s.jsx("div",{className:"viewer-note",children:"no sessions yet"})]})]})}function Jx({chatId:u}){const c=Ge("/api/chats",!1),o=(c?.chats??[]).filter(r=>r.scope.kind!=="team");return s.jsxs("aside",{className:"runs-side",children:[s.jsxs("div",{className:"side-head",children:[s.jsx("span",{className:"microlabel",children:"chats"}),s.jsx("span",{className:"spacer"}),s.jsx(we,{href:"/team/chats",className:"open-raw",children:"+ new"})]}),s.jsxs("div",{className:"side-list",children:[o.map(r=>s.jsxs(we,{href:`/team/chats/${r.id}`,className:`side-row ${r.id===u?"active":""}`,children:[s.jsx("span",{className:`lamp ${r.busy?"running":"pending"}`}),s.jsxs("div",{className:"side-row-body",children:[s.jsx("div",{className:"side-row-top",children:s.jsx("span",{className:"side-wf",children:r.title||"new chat"})}),s.jsxs("div",{className:"side-row-sub",children:[s.jsxs("span",{className:"side-req",children:[r.agent,r.scope.kind==="run"?` · ${r.scope.runId}`:r.scope.kind==="kraftwerk"?" · kraftwerk":r.scope.kind==="knowledge"?` · knowledge${r.scope.bundle?`:${r.scope.bundle}`:""}`:""]}),s.jsx("span",{className:"side-when num",children:ls(r.updatedAt)})]})]}),s.jsx("button",{type:"button",className:"row-x",title:"delete chat",onClick:async d=>{d.preventDefault(),d.stopPropagation(),window.confirm(`Delete chat "${r.title||r.id}"?`)&&(await fetch(`/api/chats/${r.id}`,{method:"DELETE"}).catch(()=>{}),r.id===u&&jl("/team/chats"))},children:"✕"})]},r.id)),c&&o.length===0&&s.jsx("div",{className:"viewer-note",children:"no chats yet"})]})]})}function Wx({hasMembers:u,root:c}){return s.jsxs("div",{className:"new-chat",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:"agents"})}),s.jsxs("section",{className:"panel new-chat-panel",children:[s.jsx("div",{className:"panel-head",children:s.jsx("span",{className:"microlabel",children:"what lives here"})}),s.jsxs("div",{className:"know-intro",children:["Your agents, set up like teammates: each one has a name, a role (system prompt), a harness/model to run on, and the workflows that belong to its job. An agent lives in"," ",s.jsx("code",{children:c?`${c}/<slug>/`:"agents/<slug>/"})," as ",s.jsx("code",{children:"agent.yml"})," +"," ",s.jsx("code",{children:"system.md"})," — git-tracked, so your team travels with the repo. Every session is a persistent conversation with that agent; it knows its connected workflows and knowledge bundles, runs the workflows for you, and keeps the knowledge current."]}),s.jsx("div",{style:{padding:"0 16px 16px"},children:s.jsx("button",{className:"run-btn",onClick:()=>jl("/team/new"),children:u?"+ new agent":"create your first agent"})})]})]})}function Ix({slug:u}){const[c,o]=B.useState(null),[r,d]=B.useState(!1),[h,p]=B.useState(!1),[v,b]=B.useState(!1);return B.useEffect(()=>{let y=!0;return fetch(`/api/team/${encodeURIComponent(u)}`).then(T=>T.ok?T.json():Promise.reject()).then(T=>y&&o(T)).catch(()=>y&&d(!0)),()=>{y=!1}},[u]),r?s.jsx("div",{className:"empty",children:"agent not found"}):c?s.jsxs("div",{className:"member-view",children:[s.jsxs("div",{className:"detail-head",children:[s.jsx("span",{className:"agent-avatar lg",children:s.jsx("span",{"aria-hidden":!0,children:c.emoji})}),s.jsx("h1",{children:c.name}),s.jsx("span",{className:"chip agent",children:c.harness}),c.model&&s.jsx("span",{className:"chip",children:c.model}),c.effort&&s.jsxs("span",{className:"chip",children:["effort: ",c.effort]}),s.jsx("span",{className:"spacer"}),s.jsx(we,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"}),s.jsx("button",{className:"run-btn",disabled:h,onClick:async()=>{p(!0),await ha("claude",{kind:"team",member:u}),p(!1)},children:h?"starting…":"new session"})]}),s.jsx("section",{className:"panel",children:s.jsxs("div",{className:"m3-list",children:[s.jsxs("button",{type:"button",className:"m3-row m3-toggle",onClick:()=>b(!v),children:[s.jsx("span",{className:"m3-ico",children:"▤"}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:"role"}),!v&&s.jsx("span",{className:"m3-sub m3-ellipsis",children:(c.system||"").trim().split(`
80
+ `)[0]||"empty — edit this agent to give it a role"})]}),s.jsx("span",{className:`m3-chev ${v?"open":""}`,children:"▾"})]}),v&&s.jsxs("div",{className:"m3-expand",children:[s.jsx("pre",{children:c.system||"(empty — edit this agent to give it a role)"}),s.jsxs("div",{className:"m3-sub",style:{marginTop:10},children:["agents/",c.slug,"/system.md"]})]}),s.jsxs("div",{className:"m3-row",children:[s.jsx("span",{className:"m3-ico",children:"⚙"}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:"workflows"}),c.workflows.length===0?s.jsx("span",{className:"m3-sub",children:"none connected — the agent can run any workflow you connect"}):s.jsx("span",{className:"m3-chips",children:c.workflows.map(y=>s.jsx(we,{href:`/workflows/${encodeURIComponent(y)}`,className:"chip",children:y},y))})]}),s.jsx(we,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"})]}),s.jsxs("div",{className:"m3-row",children:[s.jsx("span",{className:"m3-ico",children:"◆"}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:"knowledge"}),c.knowledge.length===0?s.jsx("span",{className:"m3-sub",children:"none connected — connected bundles are read and kept current by the agent"}):s.jsx("span",{className:"m3-chips",children:c.knowledge.map(y=>s.jsx(we,{href:`/knowledge/${encodeURIComponent(y)}`,className:"chip",children:y},y))})]}),s.jsx(we,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"})]}),s.jsxs("div",{className:"m3-row",children:[s.jsx("span",{className:"m3-ico",children:"/"}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:"skills"}),c.skills===void 0?s.jsx("span",{className:"m3-sub",children:"all discovered skills (default) — invoke with /name in a session"}):c.skills.length===0?s.jsx("span",{className:"m3-sub",children:"none — this agent runs without skills"}):s.jsx("span",{className:"m3-chips",children:c.skills.map(y=>s.jsxs("span",{className:"chip",children:["/",y]},y))})]}),s.jsx(we,{href:`/team/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"})]})]})}),s.jsx(Fx,{slug:u})]}):s.jsx("div",{className:"empty",children:"loading…"})}function Fx({slug:u}){const o=Ge(`/api/team/${encodeURIComponent(u)}/routines`,!1)?.routines??[],[r,d]=B.useState(null),[h,p]=B.useState(""),[v,b]=B.useState("");async function y(_){p("");const G=await(await fetch(`/api/team/${encodeURIComponent(u)}/routines`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(_)})).json();return G.error?(p(G.error),!1):!0}async function T(_){b(_),p("");const G=await(await fetch(`/api/team/${encodeURIComponent(u)}/routines/${encodeURIComponent(_)}/run`,{method:"POST"})).json();b(""),G.error?p(G.error):G.chatId&&jl(`/team/${encodeURIComponent(u)}/chat/${G.chatId}`)}async function R(_){window.confirm(`Delete routine "${_}"?`)&&await fetch(`/api/team/${encodeURIComponent(u)}/routines/${encodeURIComponent(_)}`,{method:"DELETE"}).catch(()=>{})}return s.jsxs("section",{className:"panel",children:[s.jsxs("div",{className:"panel-head",children:[s.jsx("span",{className:"microlabel",children:"routines — scheduled prompts"}),s.jsx("span",{className:"spacer"}),!r&&s.jsx("button",{className:"open-raw",onClick:()=>d({name:"",schedule:"0 9 * * 1-5",prompt:"",enabled:!0}),children:"+ new routine"})]}),o.length===0&&!r&&s.jsx("div",{className:"viewer-note",children:"none — a routine messages this agent on a schedule (cron, server local time) and each run opens a new session with the result."}),o.length>0&&s.jsx("div",{className:"m3-list",children:o.map(_=>s.jsxs("div",{className:"m3-row",children:[s.jsx("span",{className:"m3-ico",children:"◷"}),s.jsxs("span",{className:"m3-body",children:[s.jsxs("span",{className:"m3-head",children:[_.name,_.lastError&&s.jsx("span",{className:"chip stale",title:_.lastError,children:"error"})]}),s.jsxs("span",{className:"m3-sub",children:[s.jsx("code",{children:_.schedule}),_.enabled?_.nextRunAt?` · next ${ls(_.nextRunAt)}`:"":" · paused"," · ",_.lastChatId?s.jsxs(we,{href:`/team/${encodeURIComponent(u)}/chat/${_.lastChatId}`,children:["last run ",ls(_.lastRunAt)]}):"never ran"]})]}),s.jsx("button",{className:"open-raw",disabled:v===_.id,onClick:()=>T(_.id),children:v===_.id?"starting…":"▶ run"}),s.jsx("button",{className:"open-raw",onClick:()=>d({id:_.id,name:_.name,schedule:_.schedule,prompt:_.prompt,enabled:_.enabled}),children:"edit"}),s.jsx("button",{className:"open-raw",onClick:()=>{R(_.id)},children:"delete"}),s.jsxs("label",{className:"m3-switch",title:_.enabled?"enabled — click to pause":"paused — click to enable",children:[s.jsx("input",{type:"checkbox",checked:_.enabled,onChange:()=>{y({id:_.id,name:_.name,schedule:_.schedule,prompt:_.prompt,enabled:!_.enabled})}}),s.jsx("span",{className:"m3-switch-track"})]})]},_.id))}),r&&s.jsxs("div",{className:"team-form",children:[s.jsxs("div",{className:"team-form-row",children:[s.jsxs("label",{className:"team-field",style:{flex:1},children:["name",s.jsx("input",{value:r.name,placeholder:"e.g. Morning report",onChange:_=>d({...r,name:_.target.value})})]}),s.jsxs("label",{className:"team-field",style:{width:200},children:["schedule (cron)",s.jsx("input",{value:r.schedule,placeholder:"0 9 * * 1-5",onChange:_=>d({...r,schedule:_.target.value})})]}),s.jsxs("label",{className:"team-field wf-checks",style:{width:90},children:["enabled",s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:r.enabled,onChange:_=>d({...r,enabled:_.target.checked})}),"on"]})]})]}),s.jsxs("label",{className:"team-field",children:["prompt — what to ask this agent on each run",s.jsx("textarea",{rows:5,value:r.prompt,placeholder:"Check ... and summarize what changed.",onChange:_=>d({...r,prompt:_.target.value})})]}),s.jsxs("div",{className:"team-form-row",children:[s.jsx("button",{className:"run-btn",disabled:!r.name.trim()||!r.prompt.trim(),onClick:async()=>{await y(r)&&d(null)},children:r.id?"save routine":"create routine"}),s.jsx("button",{className:"open-raw",onClick:()=>(d(null),p("")),children:"cancel"})]})]}),h&&s.jsxs("div",{className:"msg error",children:["✕ ",h]})]})}function Gm({slug:u}){const[c,o]=B.useState(u?null:q()),[r,d]=B.useState(""),[h,p]=B.useState(!1),b=Ge("/api/workflows",!1)?.workflows??[],T=Ge("/api/knowledge",!1)?.bundles??[],_=Ge("/api/skills",!1)?.skills??[];B.useEffect(()=>{u&&fetch(`/api/team/${encodeURIComponent(u)}`).then(O=>O.ok?O.json():Promise.reject()).then(O=>o({name:O.name,emoji:O.emoji,description:O.description??"",harness:O.harness,model:O.model??"",effort:O.effort??"",system:O.system,workflows:O.workflows,knowledge:O.knowledge??[],skillsAll:O.skills===void 0,skills:O.skills??[]})).catch(()=>d("agent not found"))},[u]);function q(){return{name:"",emoji:"🤖",description:"",harness:"claude",model:"",effort:"",system:"",workflows:[],knowledge:[],skillsAll:!0,skills:[]}}async function G(){if(!c)return;p(!0),d("");const ke=await(await fetch(u?`/api/team/${encodeURIComponent(u)}`:"/api/team",{method:u?"PUT":"POST",headers:{"content-type":"application/json"},body:JSON.stringify({...c,skills:c.skillsAll?void 0:c.skills})})).json();p(!1),ke.error?d(ke.error):jl(`/team/${encodeURIComponent(ke.slug)}`)}async function K(){!u||!window.confirm(`Delete agent "${u}" and its definition folder?`)||(await fetch(`/api/team/${encodeURIComponent(u)}`,{method:"DELETE"}).catch(()=>{}),jl("/team"))}if(!c)return s.jsx("div",{className:"empty",children:r||"loading…"});const I=O=>o({...c,...O});return s.jsxs("div",{className:"new-chat",children:[s.jsx("div",{className:"page-head",children:s.jsx("h1",{children:u?`edit ${u}`:"new agent"})}),s.jsx("section",{className:"panel new-chat-panel",children:s.jsxs("div",{className:"team-form",children:[s.jsxs("div",{className:"team-form-row",children:[s.jsxs("label",{className:"team-field",style:{flex:1},children:["name",s.jsx("input",{value:c.name,placeholder:"e.g. Max",onChange:O=>I({name:O.target.value})})]}),s.jsxs("label",{className:"team-field",style:{width:90},children:["emoji",s.jsx("input",{value:c.emoji,onChange:O=>I({emoji:O.target.value})})]})]}),s.jsx("div",{className:"emoji-pick",children:Zx.map(O=>s.jsx("button",{type:"button",className:c.emoji===O?"active":"",onClick:()=>I({emoji:O}),children:O},O))}),s.jsxs("label",{className:"team-field",children:["description",s.jsx("input",{value:c.description,placeholder:"one line: what this agent is for",onChange:O=>I({description:O.target.value})})]}),s.jsxs("div",{className:"team-form-row",children:[s.jsxs("label",{className:"team-field",style:{width:140},children:["harness",s.jsxs("select",{value:c.harness,onChange:O=>I({harness:O.target.value}),children:[s.jsx("option",{value:"claude",children:"claude"}),s.jsx("option",{value:"codex",children:"codex"}),s.jsx("option",{value:"pi",children:"pi"})]})]}),s.jsxs("label",{className:"team-field",style:{flex:1},children:["model",s.jsx("input",{value:c.model,placeholder:"harness default — e.g. sonnet, gpt-5.6-sol",onChange:O=>I({model:O.target.value})})]}),s.jsxs("label",{className:"team-field",style:{width:140},children:["effort",s.jsx("select",{value:c.effort,onChange:O=>I({effort:O.target.value}),children:Qx.map(O=>s.jsx("option",{value:O,children:O||"default"},O))})]})]}),s.jsxs("label",{className:"team-field",children:["system prompt — the agent's role",s.jsx("textarea",{rows:10,value:c.system,placeholder:"You are the ... for this project. Your job is ...",onChange:O=>I({system:O.target.value})})]}),s.jsxs("div",{className:"team-field",children:[s.jsx("span",{className:"team-field-label",children:"connected workflows — autoloaded into the agent's context; it can run them"}),s.jsxs("div",{className:"wf-checks",children:[b.map(O=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:c.workflows.includes(O.slug),onChange:ke=>I({workflows:ke.target.checked?[...c.workflows,O.slug]:c.workflows.filter(ee=>ee!==O.slug)})}),s.jsx("b",{children:O.slug}),O.description&&s.jsxs("span",{className:"opt-hint",children:[" — ",O.description]})]},O.slug)),b.length===0&&s.jsx("div",{className:"viewer-note",children:"no workflows in this project"})]})]}),s.jsxs("div",{className:"team-field",children:[s.jsx("span",{className:"team-field-label",children:"connected knowledge — OKF bundles the agent consults and maintains"}),s.jsxs("div",{className:"wf-checks",children:[T.map(O=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:c.knowledge.includes(O.name),onChange:ke=>I({knowledge:ke.target.checked?[...c.knowledge,O.name]:c.knowledge.filter(ee=>ee!==O.name)})}),s.jsx("b",{children:O.name}),s.jsxs("span",{className:"opt-hint",children:[" — ",O.concepts," concepts"]})]},O.name)),T.length===0&&s.jsx("div",{className:"viewer-note",children:"no knowledge bundles in this project"})]})]}),s.jsxs("div",{className:"team-field",children:[s.jsx("span",{className:"team-field-label",children:"connected skills — workspace skill packages (see the skills tab); invoked with /name in sessions"}),s.jsxs("div",{className:"wf-checks",children:[s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:c.skillsAll,onChange:O=>I({skillsAll:O.target.checked})}),s.jsx("b",{children:"all skills"}),s.jsx("span",{className:"opt-hint",children:" — every discovered skill, including future ones"})]}),!c.skillsAll&&_.map(O=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:c.skills.includes(O.name),onChange:ke=>I({skills:ke.target.checked?[...c.skills,O.name]:c.skills.filter(ee=>ee!==O.name)})}),s.jsxs("b",{children:["/",O.name]}),O.description&&s.jsxs("span",{className:"opt-hint",children:[" — ",O.description]})]},O.name)),!c.skillsAll&&_.length===0&&s.jsx("div",{className:"viewer-note",children:"no skills found (.claude/skills, project or user)"})]})]}),r&&s.jsxs("div",{className:"msg error",children:["✕ ",r]}),s.jsxs("div",{className:"team-form-row",children:[s.jsx("button",{className:"run-btn",disabled:!c.name.trim()||h,onClick:G,children:h?"saving…":u?"save":"create"}),s.jsx("span",{className:"spacer"}),u&&s.jsx("button",{className:"stop-btn",onClick:K,children:"delete agent"})]})]})})]})}function Px(){const c=xv().split("/").filter(Boolean),[o,r]=B.useState(""),[d,h]=B.useState(""),[p,v]=B.useState([]);B.useEffect(()=>{fetch("/api/meta").then(y=>y.json()).then(y=>{r(y.projectName??""),h(y.projectIcon??""),v(Array.isArray(y.switcher)?y.switcher:[])}).catch(()=>{})},[]),B.useEffect(()=>{if(document.title=o?`${o} — kraftwerk`:"kraftwerk inspector",!d)return;const y=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="0.9em" font-size="85">${d}</text></svg>`;let T=document.querySelector('link[rel="icon"]');T||(T=document.createElement("link"),T.rel="icon",document.head.appendChild(T)),T.href=`data:image/svg+xml,${encodeURIComponent(y)}`},[o,d]);let b;return c[0]==="runs"&&c[1]?b=s.jsx(cx,{id:c[1]}):c[0]==="runs"?b=s.jsx(t0,{}):c[0]==="workflows"&&c[1]?b=s.jsx(xx,{slug:decodeURIComponent(c[1])}):c[0]==="workflows"?b=s.jsx(yx,{}):c[0]==="chats"?b=s.jsx(Ym,{seg:c}):c[0]==="skills"?b=s.jsx(Gx,{name:c[1]?decodeURIComponent(c[1]):void 0}):c[0]==="team"?b=s.jsx(Ym,{seg:c.slice(1)}):c[0]==="knowledge"?b=s.jsx(Ox,{bundle:c[1]?decodeURIComponent(c[1]):void 0,conceptId:c.length>2?c.slice(2).map(decodeURIComponent).join("/"):void 0}):b=s.jsx(kx,{}),s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"topbar",children:[s.jsxs("span",{className:"wordmark",children:[s.jsxs("a",{href:"#/",className:"wordmark-link",children:[s.jsx("span",{className:"lamp-block",children:s.jsx("span",{})}),s.jsx("b",{children:"kraftwerk"})]}),o&&s.jsx(e0,{name:o,icon:d,entries:p})]}),s.jsxs("nav",{children:[s.jsx("a",{href:"#/team",children:"agents"}),s.jsx("a",{href:"#/knowledge",children:"context & knowledge"}),s.jsx("a",{href:"#/workflows",children:"workflows"}),s.jsx("a",{href:"#/runs",children:"workflow runs"}),s.jsx("a",{href:"#/skills",children:"skills"})]}),s.jsx("span",{className:"spacer"}),s.jsx(l0,{}),s.jsx(n0,{})]}),s.jsx("main",{className:"shell",children:b})]})}function e0({name:u,icon:c,entries:o}){const[r,d]=B.useState(!1);return B.useEffect(()=>{if(!r)return;const h=p=>{p.target.closest(".switcher-wrap")||d(!1)};return window.addEventListener("mousedown",h),()=>window.removeEventListener("mousedown",h)},[r]),o.length===0?s.jsx("span",{className:"env-name",title:"Project (kraftwerk.yml: name)",children:u}):s.jsxs("span",{className:"switcher-wrap",children:[s.jsxs("button",{className:"env-name env-switch",title:"Switch workspace (kraftwerk.yml: switcher)","aria-haspopup":"menu","aria-expanded":r,onClick:()=>d(h=>!h),children:[u,s.jsx("svg",{viewBox:"0 0 24 24",width:"12",height:"12",fill:"currentColor","aria-hidden":!0,children:s.jsx("path",{d:"M7 10l5 5 5-5H7Z"})})]}),r&&s.jsxs("div",{className:"switcher-pop",role:"menu",children:[s.jsxs("span",{className:"switcher-item current","aria-current":"true",children:[s.jsx("span",{className:"switcher-icon",children:c||"•"}),s.jsx("span",{className:"switcher-name",children:u}),s.jsx("span",{className:"switcher-hint",children:"current"})]}),o.map(h=>s.jsxs("a",{className:"switcher-item",role:"menuitem",href:h.url,children:[s.jsx("span",{className:"switcher-icon",children:h.icon||"•"}),s.jsx("span",{className:"switcher-name",children:h.name}),s.jsx("code",{className:"switcher-url",children:h.url.replace(/^https?:\/\//,"")})]},h.url))]})]})}function t0(){const[u,c]=B.useState(null);return B.useEffect(()=>{let o=!0;return fetch("/api/runs").then(r=>r.json()).then(r=>{o&&(r.runs.length>0?jl(`/runs/${r.runs[0].id}`,{replace:!0}):c({outputDir:r.outputDir}))}).catch(()=>{}),()=>{o=!1}},[]),u?s.jsxs("div",{className:"empty",children:["No runs found in ",s.jsx("code",{children:u.outputDir}),". Start one with"," ",s.jsx("code",{children:"kraftwerk run <workflow> <request>"})," or from a workflow page."]}):s.jsx("div",{className:"empty",children:"loading…"})}function l0(){const u=mi();return s.jsxs("button",{className:`expert-toggle ${u?"on":""}`,title:u?"Expert mode on — full detail":"Expert mode off — simplified view","aria-pressed":u,onClick:()=>bv(!u),children:[s.jsx("span",{className:"expert-track",children:s.jsx("span",{className:"expert-knob"})}),"expert"]})}function n0(){const[u,c]=B.useState(!1),[o,r]=B.useState(null),[d,h]=B.useState(null),[p,v]=B.useState("");B.useEffect(()=>{if(!u)return;fetch("/api/runs").then(T=>T.json()).then(r).catch(()=>{}),fetch("/api/workflows").then(T=>T.json()).then(h).catch(()=>{}),fetch("/api/meta").then(T=>T.json()).then(T=>v(T.version)).catch(()=>{});const y=T=>{T.target.closest(".info-wrap")||c(!1)};return window.addEventListener("mousedown",y),()=>window.removeEventListener("mousedown",y)},[u]);const b=o?.runs[0];return s.jsxs("span",{className:"info-wrap",children:[s.jsx("button",{className:"info-btn",title:"Project info","aria-label":"Project info",onClick:()=>c(y=>!y),children:s.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor","aria-hidden":!0,children:s.jsx("path",{d:"M11 7h2v2h-2V7Zm0 4h2v6h-2v-6Zm1-9a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z"})})}),u&&s.jsxs("div",{className:"info-pop",children:[s.jsxs("div",{className:"info-row",children:[s.jsx("span",{className:"microlabel",children:"Workflows"}),s.jsx("span",{className:"info-v",children:d?`${d.workflows.length} discovered`:"…"}),s.jsx("code",{className:"info-path",title:d?.root,children:d?.root??""})]}),s.jsxs("div",{className:"info-row",children:[s.jsx("span",{className:"microlabel",children:"Runs"}),s.jsxs("span",{className:"info-v",children:[o?`${o.runs.length} total`:"…",b?` · latest ${b.status}`:""]}),s.jsx("code",{className:"info-path",title:o?.outputDir,children:o?.outputDir??""})]}),s.jsxs("div",{className:"info-row info-actions",children:[s.jsx("span",{className:"microlabel",children:"Theme"}),s.jsx(a0,{})]}),s.jsxs("div",{className:"info-row info-actions",children:[s.jsx("span",{className:"microlabel",children:"Version"}),s.jsx("span",{className:"info-v mono",children:p?`kraftwerk ${p}`:"…"})]})]})]})}function a0(){return s.jsx("button",{className:"theme-btn",onClick:()=>{const u=document.documentElement,c=u.dataset.theme==="light"?"dark":"light";u.dataset.theme=c;try{localStorage.setItem("kw-theme",c)}catch{}},children:"day / night"})}yv.createRoot(document.getElementById("root")).render(s.jsx(B.StrictMode,{children:s.jsx(Px,{})}));