@netnodeag/kraftwerk 0.17.2 → 0.17.3

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,81 @@
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 fv(){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 dv(){return sm||(sm=1,Kr.exports=fv()),Kr.exports}var s=dv(),Jr={exports:{}},re={};var im;function hv(){if(im)return re;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"),w=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),_=Symbol.iterator;function q(S){return S===null||typeof S!="object"?null:(S=_&&S[_]||S["@@iterator"],typeof S=="function"?S:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,W={};function O(S,H,V){this.props=S,this.context=H,this.refs=W,this.updater=V||Y}O.prototype.isReactComponent={},O.prototype.setState=function(S,H){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,H,"setState")},O.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function pe(){}pe.prototype=O.prototype;function oe(S,H,V){this.props=S,this.context=H,this.refs=W,this.updater=V||Y}var de=oe.prototype=new pe;de.constructor=oe,Q(de,O.prototype),de.isPureReactComponent=!0;var te=Array.isArray;function X(){}var J={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function ie(S,H,V){var $=V.ref;return{$$typeof:u,type:S,key:H,ref:$!==void 0?$:null,props:V}}function Oe(S,H){return ie(S.type,H,S.props)}function P(S){return typeof S=="object"&&S!==null&&S.$$typeof===u}function ge(S){var H={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(V){return H[V]})}var ct=/\/+/g;function Wt(S,H){return typeof S=="object"&&S!==null&&S.key!=null?ge(""+S.key):H.toString(36)}function dt(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(X,X):(S.status="pending",S.then(function(H){S.status==="pending"&&(S.status="fulfilled",S.value=H)},function(H){S.status==="pending"&&(S.status="rejected",S.reason=H)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function C(S,H,V,$,ue){var me=typeof S;(me==="undefined"||me==="boolean")&&(S=null);var we=!1;if(S===null)we=!0;else switch(me){case"bigint":case"string":case"number":we=!0;break;case"object":switch(S.$$typeof){case u:case c:we=!0;break;case w:return we=S._init,C(we(S._payload),H,V,$,ue)}}if(we)return ue=ue(S),we=$===""?"."+Wt(S,0):$,te(ue)?(V="",we!=null&&(V=we.replace(ct,"$&/")+"/"),C(ue,H,V,"",function(Ln){return Ln})):ue!=null&&(P(ue)&&(ue=Oe(ue,V+(ue.key==null||S&&S.key===ue.key?"":(""+ue.key).replace(ct,"$&/")+"/")+we)),H.push(ue)),1;we=0;var gt=$===""?".":$+":";if(te(S))for(var Ve=0;Ve<S.length;Ve++)$=S[Ve],me=gt+Wt($,Ve),we+=C($,H,V,me,ue);else if(Ve=q(S),typeof Ve=="function")for(S=Ve.call(S),Ve=0;!($=S.next()).done;)$=$.value,me=gt+Wt($,Ve++),we+=C($,H,V,me,ue);else if(me==="object"){if(typeof S.then=="function")return C(dt(S),H,V,$,ue);throw H=String(S),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return we}function Z(S,H,V){if(S==null)return S;var $=[],ue=0;return C(S,$,"","",function(me){return H.call(V,me,ue++)}),$}function ae(S){if(S._status===-1){var H=S._result;H=H(),H.then(function(V){(S._status===0||S._status===-1)&&(S._status=1,S._result=V)},function(V){(S._status===0||S._status===-1)&&(S._status=2,S._result=V)}),S._status===-1&&(S._status=0,S._result=H)}if(S._status===1)return S._result.default;throw S._result}var ke=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},De={map:Z,forEach:function(S,H,V){Z(S,function(){H.apply(this,arguments)},V)},count:function(S){var H=0;return Z(S,function(){H++}),H},toArray:function(S){return Z(S,function(H){return H})||[]},only:function(S){if(!P(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return re.Activity=z,re.Children=De,re.Component=O,re.Fragment=o,re.Profiler=d,re.PureComponent=oe,re.StrictMode=r,re.Suspense=b,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,re.__COMPILER_RUNTIME={__proto__:null,c:function(S){return J.H.useMemoCache(S)}},re.cache=function(S){return function(){return S.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(S,H,V){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var $=Q({},S.props),ue=S.key;if(H!=null)for(me in H.key!==void 0&&(ue=""+H.key),H)!ce.call(H,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&H.ref===void 0||($[me]=H[me]);var me=arguments.length-2;if(me===1)$.children=V;else if(1<me){for(var we=Array(me),gt=0;gt<me;gt++)we[gt]=arguments[gt+2];$.children=we}return ie(S.type,ue,$)},re.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},re.createElement=function(S,H,V){var $,ue={},me=null;if(H!=null)for($ in H.key!==void 0&&(me=""+H.key),H)ce.call(H,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ue[$]=H[$]);var we=arguments.length-2;if(we===1)ue.children=V;else if(1<we){for(var gt=Array(we),Ve=0;Ve<we;Ve++)gt[Ve]=arguments[Ve+2];ue.children=gt}if(S&&S.defaultProps)for($ in we=S.defaultProps,we)ue[$]===void 0&&(ue[$]=we[$]);return ie(S,me,ue)},re.createRef=function(){return{current:null}},re.forwardRef=function(S){return{$$typeof:v,render:S}},re.isValidElement=P,re.lazy=function(S){return{$$typeof:w,_payload:{_status:-1,_result:S},_init:ae}},re.memo=function(S,H){return{$$typeof:y,type:S,compare:H===void 0?null:H}},re.startTransition=function(S){var H=J.T,V={};J.T=V;try{var $=S(),ue=J.S;ue!==null&&ue(V,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(X,ke)}catch(me){ke(me)}finally{H!==null&&V.types!==null&&(H.types=V.types),J.T=H}},re.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},re.use=function(S){return J.H.use(S)},re.useActionState=function(S,H,V){return J.H.useActionState(S,H,V)},re.useCallback=function(S,H){return J.H.useCallback(S,H)},re.useContext=function(S){return J.H.useContext(S)},re.useDebugValue=function(){},re.useDeferredValue=function(S,H){return J.H.useDeferredValue(S,H)},re.useEffect=function(S,H){return J.H.useEffect(S,H)},re.useEffectEvent=function(S){return J.H.useEffectEvent(S)},re.useId=function(){return J.H.useId()},re.useImperativeHandle=function(S,H,V){return J.H.useImperativeHandle(S,H,V)},re.useInsertionEffect=function(S,H){return J.H.useInsertionEffect(S,H)},re.useLayoutEffect=function(S,H){return J.H.useLayoutEffect(S,H)},re.useMemo=function(S,H){return J.H.useMemo(S,H)},re.useOptimistic=function(S,H){return J.H.useOptimistic(S,H)},re.useReducer=function(S,H,V){return J.H.useReducer(S,H,V)},re.useRef=function(S){return J.H.useRef(S)},re.useState=function(S){return J.H.useState(S)},re.useSyncExternalStore=function(S,H,V){return J.H.useSyncExternalStore(S,H,V)},re.useTransition=function(){return J.H.useTransition()},re.version="19.2.8",re}var cm;function mo(){return cm||(cm=1,Jr.exports=hv()),Jr.exports}var L=mo(),Wr={exports:{}},ci={},Ir={exports:{}},Fr={};var um;function mv(){return um||(um=1,(function(u){function c(C,Z){var ae=C.length;C.push(Z);e:for(;0<ae;){var ke=ae-1>>>1,De=C[ke];if(0<d(De,Z))C[ke]=Z,C[ae]=De,ae=ke;else break e}}function o(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var Z=C[0],ae=C.pop();if(ae!==Z){C[0]=ae;e:for(var ke=0,De=C.length,S=De>>>1;ke<S;){var H=2*(ke+1)-1,V=C[H],$=H+1,ue=C[$];if(0>d(V,ae))$<De&&0>d(ue,V)?(C[ke]=ue,C[$]=ae,ke=$):(C[ke]=V,C[H]=ae,ke=H);else if($<De&&0>d(ue,ae))C[ke]=ue,C[$]=ae,ke=$;else break e}}return Z}function d(C,Z){var ae=C.sortIndex-Z.sortIndex;return ae!==0?ae:C.id-Z.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=[],w=1,z=null,_=3,q=!1,Y=!1,Q=!1,W=!1,O=typeof setTimeout=="function"?setTimeout:null,pe=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function de(C){for(var Z=o(y);Z!==null;){if(Z.callback===null)r(y);else if(Z.startTime<=C)r(y),Z.sortIndex=Z.expirationTime,c(b,Z);else break;Z=o(y)}}function te(C){if(Q=!1,de(C),!Y)if(o(b)!==null)Y=!0,X||(X=!0,ge());else{var Z=o(y);Z!==null&&dt(te,Z.startTime-C)}}var X=!1,J=-1,ce=5,ie=-1;function Oe(){return W?!0:!(u.unstable_now()-ie<ce)}function P(){if(W=!1,X){var C=u.unstable_now();ie=C;var Z=!0;try{e:{Y=!1,Q&&(Q=!1,pe(J),J=-1),q=!0;var ae=_;try{t:{for(de(C),z=o(b);z!==null&&!(z.expirationTime>C&&Oe());){var ke=z.callback;if(typeof ke=="function"){z.callback=null,_=z.priorityLevel;var De=ke(z.expirationTime<=C);if(C=u.unstable_now(),typeof De=="function"){z.callback=De,de(C),Z=!0;break t}z===o(b)&&r(b),de(C)}else r(b);z=o(b)}if(z!==null)Z=!0;else{var S=o(y);S!==null&&dt(te,S.startTime-C),Z=!1}}break e}finally{z=null,_=ae,q=!1}Z=void 0}}finally{Z?ge():X=!1}}}var ge;if(typeof oe=="function")ge=function(){oe(P)};else if(typeof MessageChannel<"u"){var ct=new MessageChannel,Wt=ct.port2;ct.port1.onmessage=P,ge=function(){Wt.postMessage(null)}}else ge=function(){O(P,0)};function dt(C,Z){J=O(function(){C(u.unstable_now())},Z)}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"):ce=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 Z=3;break;default:Z=_}var ae=_;_=Z;try{return C()}finally{_=ae}},u.unstable_requestPaint=function(){W=!0},u.unstable_runWithPriority=function(C,Z){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var ae=_;_=C;try{return Z()}finally{_=ae}},u.unstable_scheduleCallback=function(C,Z,ae){var ke=u.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?ke+ae:ke):ae=ke,C){case 1:var De=-1;break;case 2:De=250;break;case 5:De=1073741823;break;case 4:De=1e4;break;default:De=5e3}return De=ae+De,C={id:w++,callback:Z,priorityLevel:C,startTime:ae,expirationTime:De,sortIndex:-1},ae>ke?(C.sortIndex=ae,c(y,C),o(b)===null&&C===o(y)&&(Q?(pe(J),J=-1):Q=!0,dt(te,ae-ke))):(C.sortIndex=De,c(b,C),Y||q||(Y=!0,X||(X=!0,ge()))),C},u.unstable_shouldYield=Oe,u.unstable_wrapCallback=function(C){var Z=_;return function(){var ae=_;_=Z;try{return C.apply(this,arguments)}finally{_=ae}}}})(Fr)),Fr}var rm;function pv(){return rm||(rm=1,Ir.exports=mv()),Ir.exports}var Pr={exports:{}},Tt={};var om;function gv(){if(om)return Tt;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 w=2;w<arguments.length;w++)y+="&args[]="+encodeURIComponent(arguments[w])}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,w){var z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:z==null?null:""+z,children:b,containerInfo:y,implementation:w}}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 Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Tt.createPortal=function(b,y){var w=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,w)},Tt.flushSync=function(b){var y=p.T,w=r.p;try{if(p.T=null,r.p=2,b)return b()}finally{p.T=y,r.p=w,r.d.f()}},Tt.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))},Tt.prefetchDNS=function(b){typeof b=="string"&&r.d.D(b)},Tt.preinit=function(b,y){if(typeof b=="string"&&y&&typeof y.as=="string"){var w=y.as,z=v(w,y.crossOrigin),_=typeof y.integrity=="string"?y.integrity:void 0,q=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;w==="style"?r.d.S(b,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:z,integrity:_,fetchPriority:q}):w==="script"&&r.d.X(b,{crossOrigin:z,integrity:_,fetchPriority:q,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Tt.preinitModule=function(b,y){if(typeof b=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var w=v(y.as,y.crossOrigin);r.d.M(b,{crossOrigin:w,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)},Tt.preload=function(b,y){if(typeof b=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var w=y.as,z=v(w,y.crossOrigin);r.d.L(b,w,{crossOrigin:z,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})}},Tt.preloadModule=function(b,y){if(typeof b=="string")if(y){var w=v(y.as,y.crossOrigin);r.d.m(b,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:w,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(b)},Tt.requestFormReset=function(b){r.d.r(b)},Tt.unstable_batchedUpdates=function(b,y){return b(y)},Tt.useFormState=function(b,y,w){return p.H.useFormState(b,y,w)},Tt.useFormStatus=function(){return p.H.useHostTransitionStatus()},Tt.version="19.2.8",Tt}var fm;function vv(){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=gv(),Pr.exports}var dm;function yv(){if(dm)return ci;dm=1;var u=pv(),c=mo(),o=vv();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 w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var z=Object.assign,_=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),pe=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),Oe=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function ge(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var ct=Symbol.for("react.client.reference");function Wt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ct?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Q:return"Fragment";case O:return"Profiler";case W:return"StrictMode";case te:return"Suspense";case X:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case oe:return e.displayName||"Context";case pe:return(e._context.displayName||"Context")+".Consumer";case de:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:Wt(e.type)||"Memo";case ce:t=e._payload,e=e._init;try{return Wt(e(t))}catch{}}return null}var dt=Array.isArray,C=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},ke=[],De=-1;function S(e){return{current:e}}function H(e){0>De||(e.current=ke[De],ke[De]=null,De--)}function V(e,t){De++,ke[De]=e.current,e.current=t}var $=S(null),ue=S(null),me=S(null),we=S(null);function gt(e,t){switch(V(me,t),V(ue,e),V($,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}}H($),V($,e)}function Ve(){H($),H(ue),H(me)}function Ln(e){e.memoizedState!==null&&V(we,e);var t=$.current,l=Ah(t,e.type);t!==l&&(V(ue,e),V($,l))}function Hn(e){ue.current===e&&(H($),H(ue)),we.current===e&&(H(we),li._currentValue=ae)}var as,ss;function Te(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 Le(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(R){var A=R}Reflect.construct(e,[],U)}else{try{U.call()}catch(R){A=R}e.call(U.prototype)}}else{try{throw Error()}catch(R){A=R}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(R){if(R&&A&&typeof R.stack=="string")return[R.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:"")?Te(l):""}function is(e,t){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te("Lazy");case 13:return e.child!==t&&t!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return Le(e.type,!1);case 11:return Le(e.type.render,!1);case 1:return Le(e.type,!0);case 31:return Te("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,pa=u.unstable_scheduleCallback,It=u.unstable_cancelCallback,xi=u.unstable_shouldYield,cs=u.unstable_requestPaint,kt=u.unstable_now,bi=u.unstable_getCurrentPriorityLevel,dl=u.unstable_ImmediatePriority,Nl=u.unstable_UserBlockingPriority,Ft=u.unstable_NormalPriority,us=u.unstable_LowPriority,qn=u.unstable_IdlePriority,ga=u.log,rs=u.unstable_setDisableYieldValue,Pt=null,ht=null;function Bt(e){if(typeof ga=="function"&&rs(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Pt,e)}catch{}}var wt=Math.clz32?Math.clz32:os,ji=Math.log,Si=Math.LN2;function os(e){return e>>>=0,e===0?32:31-(ji(e)/Si|0)|0}var ln=256,hl=262144,ml=4194304;function kl(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=kl(n):(f&=m,f!==0?a=kl(f):l||(l=m&~e,l!==0&&(a=kl(l))))):(m=n&~i,m!==0?a=kl(m):f!==0?a=kl(f):l||(l=n&~e,l!==0&&(a=kl(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=ml;return ml<<=1,(ml&62914560)===0&&(ml=4194304),e}function an(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function wl(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-wt(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 R=A[D];R!==null&&(R.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-wt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function va(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-wt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function ya(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 xa(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ba(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Ih(e.type))}function hs(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var tl=Math.random().toString(36).slice(2),ut="__reactFiber$"+tl,Pe="__reactProps$"+tl,sn="__reactContainer$"+tl,ms="__reactEvents$"+tl,Ke="__reactListeners$"+tl,cn="__reactHandles$"+tl,ki="__reactResources$"+tl,un="__reactMarker$"+tl;function Gn(e){delete e[ut],delete e[Pe],delete e[ms],delete e[Ke],delete e[cn]}function Ml(e){var t=e[ut];if(t)return t;for(var l=e.parentNode;l;){if(t=l[sn]||l[ut]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Mh(e);e!==null;){if(l=e[ut])return l;e=Mh(e)}return t}e=l,l=e.parentNode}return null}function Ul(e){if(e=e[ut]||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 $n(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[ki];return t||(t=e[ki]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[un]=!0}var wi=new Set,pl={};function Tl(e,t){gl(e,t),gl(e+"Capture",t)}function gl(e,t){for(pl[e]=t,e=0;e<t.length;e++)wi.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]*$"),Ti={},Xn={};function Ei(e){return Dl.call(Xn,e)?!0:Dl.call(Ti,e)?!1:Ll.test(e)?Xn[e]=!0:(Ti[e]=!0,!1)}function ja(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 vt(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 Na(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=Na(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 _t(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 yt(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=""+vt(t)):e.value!==""+vt(t)&&(e.value=""+vt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?ka(e,f,vt(t)):l!=null?ka(e,f,vt(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=""+vt(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?""+vt(l):"",t=t!=null?""+vt(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 ka(e,t,l){t==="number"&&_t(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=""+vt(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=""+vt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+vt(l):""}function Ai(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(r(92));if(dt(n)){if(1<n.length)throw Error(r(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=vt(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"]]),G=/^[\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 G.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function N(){}var B=null;function K(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var I=null,ne=null;function Ce(e){var t=Ul(e);if(t&&(e=t.stateNode)){var l=e[Pe]||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="'+yt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[Pe]||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 Ge=!1;function xt(e,t,l){if(Ge)return e(t,l);Ge=!0;try{var n=e(t);return n}finally{if(Ge=!1,(I!==null||ne!==null)&&(gc(),I&&(t=I,e=ne,ne=I=null,Ce(t),e)))for(t=0;t<e.length;t++)Ce(e[t])}}function tt(e,t){var l=e.stateNode;if(l===null)return null;var n=l[Pe]||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"),rt=!1;if(qt)try{var bs={};Object.defineProperty(bs,"passive",{get:function(){rt=!0}}),window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{rt=!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 Rt(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 z(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=Rt(Zn),js=z({},Zn,{view:0,detail:0}),rp=Rt(js),Wc,Ic,Ss,Ci=z({},js,{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!==Ss&&(Ss&&e.type==="mousemove"?(Wc=e.screenX-Ss.screenX,Ic=e.screenY-Ss.screenY):Ic=Wc=0,Ss=e),Wc)},movementY:function(e){return"movementY"in e?e.movementY:Ic}}),_o=Rt(Ci),op=z({},Ci,{dataTransfer:0}),fp=Rt(op),dp=z({},js,{relatedTarget:0}),Fc=Rt(dp),hp=z({},Zn,{animationName:0,elapsedTime:0,pseudoElement:0}),mp=Rt(hp),pp=z({},Zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gp=Rt(pp),vp=z({},Zn,{data:0}),zo=Rt(vp),yp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xp={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"},bp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bp[e])?!!t[e]:!1}function Pc(){return jp}var Sp=z({},js,{key:function(e){if(e.key){var t=yp[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"?xp[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}}),Np=Rt(Sp),kp=z({},Ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ro=Rt(kp),wp=z({},js,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pc}),Tp=Rt(wp),Ep=z({},Zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ap=Rt(Ep),_p=z({},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}),zp=Rt(_p),Rp=z({},Zn,{newState:0,oldState:0}),Op=Rt(Rp),Dp=[9,13,27,32],eu=qt&&"CompositionEvent"in window,Ns=null;qt&&"documentMode"in document&&(Ns=document.documentMode);var Cp=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 Dp.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 Mp(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 Up(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 Lp={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"?!!Lp[e.type]:t==="textarea"}function Ho(e,t,l,n){I?ne?ne.push(n):ne=[n]:I=n,t=Nc(t,"onChange"),0<t.length&&(l=new Di("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var ks=null,ws=null;function Hp(e){jh(e,0)}function Mi(e){var t=$n(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(){ks&&(ks.detachEvent("onpropertychange",$o),ws=ks=null)}function $o(e){if(e.propertyName==="value"&&Mi(ws)){var t=[];Ho(t,ws,e,K(e)),xt(Hp,t)}}function Bp(e,t,l){e==="focusin"?(Go(),ks=t,ws=l,ks.attachEvent("onpropertychange",$o)):e==="focusout"&&Go()}function qp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mi(ws)}function Yp(e,t){if(e==="click")return Mi(t)}function Gp(e,t){if(e==="input"||e==="change")return Mi(t)}function $p(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yt=typeof Object.is=="function"?Object.is:$p;function Ts(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 Xo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qo(e,t){var l=Xo(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=Xo(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=_t(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=_t(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 Xp=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!==_t(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&&Ts(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 Ea={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 Ea.animationend.animation,delete Ea.animationiteration.animation,delete Ea.animationstart.animation),"TransitionEvent"in window||delete Ea.transitionend.transition);function Kn(e){if(iu[e])return iu[e];if(!Ea[e])return e;var t=Ea[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"),Qp=Kn("transitionrun"),Zp=Kn("transitionstart"),Vp=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 vl(e,t){ef.set(e,t),Tl(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=[],Aa=0,uu=0;function Li(){for(var e=Aa,t=uu=Aa=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[Aa++]=e,nl[Aa++]=t,nl[Aa++]=l,nl[Aa++]=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-wt(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 _a={};function Kp(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 Kp(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=Pg(e,l,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=Gt(31,l,t,a),e.elementType=ie,e.lanes=i,e;case Q:return Wn(l.children,a,i,t);case W:f=8,a|=24;break;case O:return e=Gt(12,l,t,a|2),e.elementType=O,e.lanes=i,e;case te:return e=Gt(13,l,t,a),e.elementType=te,e.lanes=i,e;case X:return e=Gt(19,l,t,a),e.elementType=X,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:f=10;break e;case pe:f=9;break e;case de:f=11;break e;case J:f=14;break e;case ce: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 za=[],Ra=0,Yi=null,As=0,sl=[],il=0,hn=null,Al=1,_l="";function Yl(e,t){za[Ra++]=As,za[Ra++]=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-wt(n)-1;n&=~(1<<a),l+=1;var i=32-wt(t)+a;if(30<i){var f=a-a%5;i=(n&(1<<f)-1).toString(32),n>>=f,a-=f,Al=1<<32-wt(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=za[--Ra],za[Ra]=null,As=za[--Ra],za[Ra]=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 bt=null,Xe=null,Se=!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[ut]=e,t[Pe]=n,l){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(l=0;l<Is.length;l++)ye(Is[l],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),gs(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("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||wh(t.textContent,l)?(n.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),n.onScroll!=null&&ye("scroll",t),n.onScrollEnd!=null&&ye("scrollend",t),n.onClick!=null&&(t.onclick=N),t=!0):t=!1,t||pn(e,!0)}function rf(e){for(bt=e.return;bt;)switch(bt.tag){case 5:case 31:case 13:cl=!1;return;case 27:case 3:cl=!0;return;default:bt=bt.return}}function Oa(e){if(e!==bt)return!1;if(!Se)return rf(e),Se=!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&&Xe&&pn(e),rf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Xe=Ch(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Xe=Ch(e)}else t===27?(t=Xe,_n(e.type)?(e=Hr,Hr=null,Xe=e):Xe=t):Xe=bt?rl(e.stateNode.nextSibling):null;return!0}function In(){Xe=bt=null,Se=!1}function gu(){var e=mn;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),mn=null),e}function _s(e){mn===null?mn=[e]:mn.push(e)}var vu=S(null),Fn=null,Gl=null;function gn(e,t,l){V(vu,t._currentValue),t._currentValue=l}function $l(e){e._currentValue=vu.current,H(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 Da(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===we.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 jt(e){return of(Fn,e)}function $i(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 Jp=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()})}},Wp=u.unstable_scheduleCallback,Ip=u.unstable_NormalPriority,lt={$$typeof:oe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bu(){return{controller:new Jp,data:new Map,refCount:0}}function zs(e){e.refCount--,e.refCount===0&&Wp(Ip,function(){e.controller.abort()})}var Rs=null,ju=0,Ca=0,Ma=null;function Fp(e,t){if(Rs===null){var l=Rs=[];ju=0,Ca=kr(),Ma={status:"pending",value:void 0,then:function(n){l.push(n)}}}return ju++,t.then(ff,ff),t}function ff(){if(--ju===0&&Rs!==null){Ma!==null&&(Ma.status="fulfilled");var e=Rs;Rs=null,Ca=0,Ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Pp(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=kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Fp(e,t),df!==null&&df(e,t)};var ea=S(null);function Su(){var e=ea.current;return e!==null?e:$e.pooledCache}function Xi(e,t){t===null?V(ea,ea.current):V(ea,t.pool)}function hf(){var e=Su();return e===null?null:{parent:lt._currentValue,pool:e}}var Ua=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=$e,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,Ua}}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,Ua):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===Ua||e===Qi)throw Error(r(483))}var La=null,Os=0;function Vi(e){var t=Os;return Os+=1,La===null&&(La=[]),pf(La,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(k,j){if(e){var T=k.deletions;T===null?(k.deletions=[j],k.flags|=16):T.push(j)}}function l(k,j){if(!e)return null;for(;j!==null;)t(k,j),j=j.sibling;return null}function n(k){for(var j=new Map;k!==null;)k.key!==null?j.set(k.key,k):j.set(k.index,k),k=k.sibling;return j}function a(k,j){return k=ql(k,j),k.index=0,k.sibling=null,k}function i(k,j,T){return k.index=T,e?(T=k.alternate,T!==null?(T=T.index,T<j?(k.flags|=67108866,j):T):(k.flags|=67108866,j)):(k.flags|=1048576,j)}function f(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function m(k,j,T,M){return j===null||j.tag!==6?(j=fu(T,k.mode,M),j.return=k,j):(j=a(j,T),j.return=k,j)}function x(k,j,T,M){var le=T.type;return le===Q?D(k,j,T.props.children,M,T.key):j!==null&&(j.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ce&&ta(le)===j.type)?(j=a(j,T.props),Ds(j,T),j.return=k,j):(j=qi(T.type,T.key,T.props,null,k.mode,M),Ds(j,T),j.return=k,j)}function E(k,j,T,M){return j===null||j.tag!==4||j.stateNode.containerInfo!==T.containerInfo||j.stateNode.implementation!==T.implementation?(j=du(T,k.mode,M),j.return=k,j):(j=a(j,T.children||[]),j.return=k,j)}function D(k,j,T,M,le){return j===null||j.tag!==7?(j=Wn(T,k.mode,M,le),j.return=k,j):(j=a(j,T),j.return=k,j)}function U(k,j,T){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=fu(""+j,k.mode,T),j.return=k,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case q:return T=qi(j.type,j.key,j.props,null,k.mode,T),Ds(T,j),T.return=k,T;case Y:return j=du(j,k.mode,T),j.return=k,j;case ce:return j=ta(j),U(k,j,T)}if(dt(j)||ge(j))return j=Wn(j,k.mode,T,null),j.return=k,j;if(typeof j.then=="function")return U(k,Vi(j),T);if(j.$$typeof===oe)return U(k,$i(k,j),T);Ki(k,j)}return null}function A(k,j,T,M){var le=j!==null?j.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return le!==null?null:m(k,j,""+T,M);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case q:return T.key===le?x(k,j,T,M):null;case Y:return T.key===le?E(k,j,T,M):null;case ce:return T=ta(T),A(k,j,T,M)}if(dt(T)||ge(T))return le!==null?null:D(k,j,T,M,null);if(typeof T.then=="function")return A(k,j,Vi(T),M);if(T.$$typeof===oe)return A(k,j,$i(k,T),M);Ki(k,T)}return null}function R(k,j,T,M,le){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return k=k.get(T)||null,m(j,k,""+M,le);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case q:return k=k.get(M.key===null?T:M.key)||null,x(j,k,M,le);case Y:return k=k.get(M.key===null?T:M.key)||null,E(j,k,M,le);case ce:return M=ta(M),R(k,j,T,M,le)}if(dt(M)||ge(M))return k=k.get(T)||null,D(j,k,M,le,null);if(typeof M.then=="function")return R(k,j,T,Vi(M),le);if(M.$$typeof===oe)return R(k,j,T,$i(j,M),le);Ki(j,M)}return null}function F(k,j,T,M){for(var le=null,Ee=null,ee=j,he=j=0,je=null;ee!==null&&he<T.length;he++){ee.index>he?(je=ee,ee=null):je=ee.sibling;var Ae=A(k,ee,T[he],M);if(Ae===null){ee===null&&(ee=je);break}e&&ee&&Ae.alternate===null&&t(k,ee),j=i(Ae,j,he),Ee===null?le=Ae:Ee.sibling=Ae,Ee=Ae,ee=je}if(he===T.length)return l(k,ee),Se&&Yl(k,he),le;if(ee===null){for(;he<T.length;he++)ee=U(k,T[he],M),ee!==null&&(j=i(ee,j,he),Ee===null?le=ee:Ee.sibling=ee,Ee=ee);return Se&&Yl(k,he),le}for(ee=n(ee);he<T.length;he++)je=R(ee,k,he,T[he],M),je!==null&&(e&&je.alternate!==null&&ee.delete(je.key===null?he:je.key),j=i(je,j,he),Ee===null?le=je:Ee.sibling=je,Ee=je);return e&&ee.forEach(function(Cn){return t(k,Cn)}),Se&&Yl(k,he),le}function se(k,j,T,M){if(T==null)throw Error(r(151));for(var le=null,Ee=null,ee=j,he=j=0,je=null,Ae=T.next();ee!==null&&!Ae.done;he++,Ae=T.next()){ee.index>he?(je=ee,ee=null):je=ee.sibling;var Cn=A(k,ee,Ae.value,M);if(Cn===null){ee===null&&(ee=je);break}e&&ee&&Cn.alternate===null&&t(k,ee),j=i(Cn,j,he),Ee===null?le=Cn:Ee.sibling=Cn,Ee=Cn,ee=je}if(Ae.done)return l(k,ee),Se&&Yl(k,he),le;if(ee===null){for(;!Ae.done;he++,Ae=T.next())Ae=U(k,Ae.value,M),Ae!==null&&(j=i(Ae,j,he),Ee===null?le=Ae:Ee.sibling=Ae,Ee=Ae);return Se&&Yl(k,he),le}for(ee=n(ee);!Ae.done;he++,Ae=T.next())Ae=R(ee,k,he,Ae.value,M),Ae!==null&&(e&&Ae.alternate!==null&&ee.delete(Ae.key===null?he:Ae.key),j=i(Ae,j,he),Ee===null?le=Ae:Ee.sibling=Ae,Ee=Ae);return e&&ee.forEach(function(ov){return t(k,ov)}),Se&&Yl(k,he),le}function qe(k,j,T,M){if(typeof T=="object"&&T!==null&&T.type===Q&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case q:e:{for(var le=T.key;j!==null;){if(j.key===le){if(le=T.type,le===Q){if(j.tag===7){l(k,j.sibling),M=a(j,T.props.children),M.return=k,k=M;break e}}else if(j.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ce&&ta(le)===j.type){l(k,j.sibling),M=a(j,T.props),Ds(M,T),M.return=k,k=M;break e}l(k,j);break}else t(k,j);j=j.sibling}T.type===Q?(M=Wn(T.props.children,k.mode,M,T.key),M.return=k,k=M):(M=qi(T.type,T.key,T.props,null,k.mode,M),Ds(M,T),M.return=k,k=M)}return f(k);case Y:e:{for(le=T.key;j!==null;){if(j.key===le)if(j.tag===4&&j.stateNode.containerInfo===T.containerInfo&&j.stateNode.implementation===T.implementation){l(k,j.sibling),M=a(j,T.children||[]),M.return=k,k=M;break e}else{l(k,j);break}else t(k,j);j=j.sibling}M=du(T,k.mode,M),M.return=k,k=M}return f(k);case ce:return T=ta(T),qe(k,j,T,M)}if(dt(T))return F(k,j,T,M);if(ge(T)){if(le=ge(T),typeof le!="function")throw Error(r(150));return T=le.call(T),se(k,j,T,M)}if(typeof T.then=="function")return qe(k,j,Vi(T),M);if(T.$$typeof===oe)return qe(k,j,$i(k,T),M);Ki(k,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,j!==null&&j.tag===6?(l(k,j.sibling),M=a(j,T),M.return=k,k=M):(l(k,j),M=fu(T,k.mode,M),M.return=k,k=M),f(k)):l(k,j)}return function(k,j,T,M){try{Os=0;var le=qe(k,j,T,M);return La=null,le}catch(ee){if(ee===Ua||ee===Qi)throw ee;var Ee=Gt(29,ee,null,k.mode);return Ee.lanes=M,Ee.return=k,Ee}}}var na=yf(!0),xf=yf(!1),vn=!1;function ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wu(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,(ze&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,va(e,l)}}function Tu(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=Ma;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,R=A!==m.lane;if(R?(be&A)===A:(n&A)===A){A!==0&&A===Ca&&(Eu=!0),D!==null&&(D=D.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var F=e,se=m;A=t;var qe=l;switch(se.tag){case 1:if(F=se.payload,typeof F=="function"){U=F.call(qe,U,A);break e}U=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=se.payload,A=typeof F=="function"?F.call(qe,U,A):F,A==null)break e;U=z({},U,A);break e;case 2:vn=!0}}A=m.callback,A!==null&&(e.flags|=64,R&&(e.flags|=8192),R=a.callbacks,R===null?a.callbacks=[A]:R.push(A))}else R={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},D===null?(E=D=R,x=U):D=D.next=R,f|=A;if(m=m.next,m===null){if(m=a.shared.pending,m===null)break;R=m,m=R.next,R.next=null,a.lastBaseUpdate=R,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),kn|=f,e.lanes=f,e.memoizedState=U}}function bf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function jf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)bf(l[e],t)}var Ha=S(null),Ji=S(0);function Sf(e,t){e=Fl,V(Ji,e),V(Ha,t),Fl=e|t.baseLanes}function Au(){V(Ji,Fl),V(Ha,Ha.current)}function _u(){Fl=Ji.current,H(Ha),H(Ji)}var $t=S(null),ul=null;function bn(e){var t=e.alternate;V(Ie,Ie.current&1),V($t,e),ul===null&&(t===null||Ha.current!==null||t.memoizedState!==null)&&(ul=e)}function zu(e){V(Ie,Ie.current),V($t,e),ul===null&&(ul=e)}function Nf(e){e.tag===22?(V(Ie,Ie.current),V($t,e),ul===null&&(ul=e)):jn()}function jn(){V(Ie,Ie.current),V($t,$t.current)}function Xt(e){H($t),ul===e&&(ul=null),H(Ie)}var Ie=S(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 Xl=0,fe=null,He=null,nt=null,Ii=!1,Ba=!1,aa=!1,Fi=0,Ls=0,qa=null,eg=0;function Je(){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 Xl=i,fe=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,Ba&&(i=wf(t,l,n,a)),kf(e),i}function kf(e){C.H=qs;var t=He!==null&&He.next!==null;if(Xl=0,nt=He=fe=null,Ii=!1,Ls=0,qa=null,t)throw Error(r(300));e===null||at||(e=e.dependencies,e!==null&&Gi(e)&&(at=!0))}function wf(e,t,l,n){fe=e;var a=0;do{if(Ba&&(qa=null),Ls=0,Ba=!1,25<=a)throw Error(r(301));if(a+=1,nt=He=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(Ba);return i}function tg(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?Hs(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(fe.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}Xl=0,nt=He=fe=null,Ba=!1,Ls=Fi=0,qa=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?fe.memoizedState=nt=e:nt=nt.next=e,nt}function Fe(){if(He===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=nt===null?fe.memoizedState:nt.next;if(t!==null)nt=t,He=e;else{if(e===null)throw fe.alternate===null?Error(r(467)):Error(r(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},nt===null?fe.memoizedState=nt=e:nt=nt.next=e}return nt}function Pi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hs(e){var t=Ls;return Ls+=1,qa===null&&(qa=[]),e=pf(qa,e,t),t=fe,(nt===null?t.memoizedState:nt.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===oe)return jt(e)}throw Error(r(438,String(e)))}function Uu(e){var t=null,l=fe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=fe.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(),fe.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]=Oe;return t.index++,l}function Ql(e,t){return typeof t=="function"?t(e):t}function tc(e){var t=Fe();return Lu(t,He,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?(be&U)===U:(Xl&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===Ca&&(D=!0);else if((Xl&A)===A){E=E.next,A===Ca&&(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,fe.lanes|=A,kn|=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,fe.lanes|=U,kn|=U;E=E.next}while(E!==null&&E!==t);if(x===null?f=i:x.next=m,!Yt(i,e.memoizedState)&&(at=!0,D&&(l=Ma,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=Fe(),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)||(at=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function Tf(e,t,l){var n=fe,a=Fe(),i=Se;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var f=!Yt((He||a).memoizedState,l);if(f&&(a.memoizedState=l,at=!0),a=a.queue,Yu(_f.bind(null,n,a,e),[e]),a.getSnapshot!==t||f||nt!==null&&nt.memoizedState.tag&1){if(n.flags|=2048,Ya(9,{destroy:void 0},Af.bind(null,n,a,l,t),null),$e===null)throw Error(r(349));i||(Xl&127)!==0||Ef(n,t,l)}return l}function Ef(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=fe.updateQueue,t===null?(t=Pi(),fe.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&&Ut(t,e,2)}function Bu(e){var t=zt();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,He,typeof n=="function"?n:Ql)}function lg(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(Se){var l=$e.formState;if(l!==null){e:{var n=fe;if(Se){if(Xe){t:{for(var a=Xe,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){Xe=rl(a.nextSibling),n=a.data==="F!";break e}}pn(n)}n=!1}n&&(t=l[0])}}return l=zt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lf,lastRenderedState:t},l.queue=n,l=nd.bind(null,fe,n),n.dispatch=l,n=Bu(!1),i=Zu.bind(null,fe,!1,n.queue),n=zt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=lg.bind(null,fe,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function Bf(e){var t=Fe();return qf(t,He,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===Ua?Qi:f}else n=t;t=Fe();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(fe.flags|=2048,Ya(9,{destroy:void 0},ng.bind(null,a,l),null)),[n,i,e]}function ng(e,t){e.action=t}function Yf(e){var t=Fe(),l=He;if(l!==null)return qf(t,l,e);Fe(),t=t.memoizedState,l=Fe();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function Ya(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=fe.updateQueue,t===null&&(t=Pi(),fe.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 Fe().memoizedState}function lc(e,t,l,n){var a=zt();fe.flags|=e,a.memoizedState=Ya(1|t,{destroy:void 0},l,n===void 0?null:n)}function nc(e,t,l,n){var a=Fe();n=n===void 0?null:n;var i=a.memoizedState.inst;He!==null&&n!==null&&Ru(n,He.memoizedState.deps)?a.memoizedState=Ya(t,i,l,n):(fe.flags|=e,a.memoizedState=Ya(1|t,i,l,n))}function $f(e,t){lc(8390656,8,e,t)}function Yu(e,t){nc(2048,8,e,t)}function ag(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=Pi(),fe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Xf(e){var t=Fe().memoizedState;return ag({ref:t,nextImpl:e}),function(){if((ze&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=Fe();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=Fe();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 $u(e,t,l){return l===void 0||(Xl&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Id(),fe.lanes|=e,kn|=e,l)}function If(e,t,l,n){return Yt(l,t)?l:Ha.current!==null?(e=$u(e,l,n),Yt(e,t)||(at=!0),e):(Xl&42)===0||(Xl&1073741824)!==0&&(be&261930)===0?(at=!0,e.memoizedState=l):(e=Id(),fe.lanes|=e,kn|=e,t)}function Ff(e,t,l,n,a){var i=Z.p;Z.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=Pp(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{Z.p=i,f!==null&&m.types!==null&&(f.types=m.types),C.T=f}}function sg(){}function Xu(e,t,l,n){if(e.tag!==5)throw Error(r(476));var a=Pf(e).queue;Ff(e,a,t,ae,l===null?sg:function(){return ed(e),l(n)})}function Pf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:ae},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 jt(li)}function td(){return Fe().memoizedState}function ld(){return Fe().memoizedState}function ig(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&&(Ut(n,t,l),Cs(n,t,l)),t={cache:bu()},e.payload=t;return}t=t.return}}function cg(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&&(Ut(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),$e===null&&Li(),!1}catch{}if(l=ru(e,t,a,n),l!==null)return Ut(l,e,n),sd(l,t,n),!0}return!1}function Zu(e,t,l,n){if(n={lane:2,revertLane:kr(),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&&Ut(t,e,2)}function ac(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function ad(e,t){Ba=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,va(e,l)}}var qs={readContext:jt,use:ec,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useLayoutEffect:Je,useInsertionEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useSyncExternalStore:Je,useId:Je,useHostTransitionStatus:Je,useFormState:Je,useActionState:Je,useOptimistic:Je,useMemoCache:Je,useCacheRefresh:Je};qs.useEffectEvent=Je;var id={readContext:jt,use:ec,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:$f,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=zt();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=zt();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=cg.bind(null,fe,e),[n.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=Bu(e);var t=e.queue,l=nd.bind(null,fe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Gu,useDeferredValue:function(e,t){var l=zt();return $u(l,e,t)},useTransition:function(){var e=Bu(!1);return e=Ff.bind(null,fe,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=fe,a=zt();if(Se){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),$e===null)throw Error(r(349));(be&127)!==0||Ef(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,$f(_f.bind(null,n,i,e),[e]),n.flags|=2048,Ya(9,{destroy:void 0},Af.bind(null,n,i,l,t),null),l},useId:function(){var e=zt(),t=$e.identifierPrefix;if(Se){var l=_l,n=Al;l=(n&~(1<<32-wt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Fi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=eg++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qu,useFormState:Hf,useActionState:Hf,useOptimistic:function(e){var t=zt();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,fe,!0,l),l.dispatch=t,[e,t]},useMemoCache:Uu,useCacheRefresh:function(){return zt().memoizedState=ig.bind(null,fe)},useEffectEvent:function(e){var t=zt(),l={impl:e};return t.memoizedState=l,function(){if((ze&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Vu={readContext:jt,use:ec,useCallback:Jf,useContext:jt,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=Fe();return If(l,He.memoizedState,e,t)},useTransition:function(){var e=tc(Ql)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Hs(e),t]},useSyncExternalStore:Tf,useId:td,useHostTransitionStatus:Qu,useFormState:Bf,useActionState:Bf,useOptimistic:function(e,t){var l=Fe();return Of(l,He,e,t)},useMemoCache:Uu,useCacheRefresh:ld};Vu.useEffectEvent=Xf;var cd={readContext:jt,use:ec,useCallback:Jf,useContext:jt,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=Fe();return He===null?$u(l,e,t):If(l,He.memoizedState,e,t)},useTransition:function(){var e=Hu(Ql)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Hs(e),t]},useSyncExternalStore:Tf,useId:td,useHostTransitionStatus:Qu,useFormState:Yf,useActionState:Yf,useOptimistic:function(e,t){var l=Fe();return He!==null?Of(l,He,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Uu,useCacheRefresh:ld};cd.useEffectEvent=Xf;function Ku(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:z({},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&&(Ut(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&&(Ut(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&&(Ut(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?!Ts(l,n)||!Ts(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=z({},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"&&(wn===null?wn=new Set([this]):wn.add(this));var m=n.stack;this.componentDidCatch(n.value,{componentStack:m!==null?m:""})})}function ug(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&Da(t,l,a,!0),l=$t.current,l!==null){switch(l.tag){case 31:case 13:return ul===null?vc():l.alternate===null&&We===0&&(We=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),jr(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)),jr(e,n,a)),!1}throw Error(r(435,l.tag))}return jr(e,n,a),vc(),!1}if(Se)return t=$t.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),Tu(e,a),We!==4&&(We=2)),!1;var i=Error(r(520),{cause:n});if(i=al(i,l),Ks===null?Ks=[i]:Ks.push(i),We!==4&&(We=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),Tu(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"&&(wn===null||!wn.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=md(a),pd(a,e,l,n),Tu(l,a),!1}l=l.return}while(l!==null);return!1}var Iu=Error(r(461)),at=!1;function St(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&&!at?(Cu(e,t,a),Zl(e,t,a)):(Se&&m&&hu(t),t.flags|=1,St(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:Ts,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(Ts(i,n)&&e.ref===t.ref)if(at=!1,t.pendingProps=n=i,sr(e,a))(e.flags&131072)!==0&&(at=!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&&Xi(t,i!==null?i.cachePool:null),i!==null?Sf(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?(Xi(t,i.cachePool),Sf(t,i),jn(),t.memoizedState=null):(e!==null&&Xi(t,null),Au(),jn());return St(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=Su();return i=i===null?null:{parent:lt._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Xi(t,null),Au(),Nf(t),e!==null&&Da(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 jd(e,t,l){return na(t,e.child,null,l),e=ic(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function rg(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(n.mode==="hidden")return e=ic(t,n),t.lanes=536870912,Ys(null,e);if(zu(t),(e=Xe)?(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,bt=t,Xe=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=jd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(at||Da(e,t,l,!1),a=(l&e.childLanes)!==0,at||a){if(n=$e,n!==null&&(f=ya(n,l),f!==0&&f!==i.retryLane))throw i.retryLane=f,Jn(e,f),Ut(n,e,f),Iu;vc(),t=jd(e,t,l)}else e=i.treeContext,Xe=rl(f.nextSibling),bt=t,Se=!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&&!at?(Cu(e,t,a),Zl(e,t,a)):(Se&&n&&hu(t),t.flags|=1,St(e,t,l,a),t.child)}function Sd(e,t,l,n,a,i){return Pn(t),t.updateQueue=null,l=wf(t,n,l,a),kf(e),n=Du(),e!==null&&!at?(Cu(e,t,i),Zl(e,t,i)):(Se&&n&&hu(t),t.flags|=1,St(e,t,l,i),t.child)}function Nd(e,t,l,n,a){if(Pn(t),t.stateNode===null){var i=_a,f=l.contextType;typeof f=="object"&&f!==null&&(i=jt(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={},ku(t),f=l.contextType,i.context=typeof f=="object"&&f!==null?jt(f):_a,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=_a,typeof D=="object"&&D!==null&&(f=jt(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,wu(e,t),f=t.memoizedProps,D=sa(l,f),i.props=D,U=t.pendingProps,A=i.context,E=l.contextType,x=_a,typeof E=="object"&&E!==null&&(x=jt(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 R=t.memoizedState;f!==U||A!==R||vn||e!==null&&e.dependencies!==null&&Gi(e.dependencies)?(typeof m=="function"&&(Ku(t,l,m,n),R=t.memoizedState),(D=vn||ud(t,l,D,n,A,R,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,R,x),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,R,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=R),i.props=n,i.state=R,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)):St(e,t,l,a),t.memoizedState=i.state,e=t.child):e=Zl(e,t,a),e}function kd(e,t,l,n){return In(),t.flags|=256,St(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 wd(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:(Ie.current&2)!==0),f&&(a=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(a?bn(t):jn(),(e=Xe)?(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,bt=t,Xe=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?(jn(),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?(jn(),t.child=e.child,t.flags|=128,t=null):(jn(),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(at||Da(e,t,l,!1),f=(l&e.childLanes)!==0,at||f){if(f=$e,f!==null&&(n=ya(f,l),n!==0&&n!==x.retryLane))throw x.retryLane=n,Jn(e,n),Ut(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,Xe=rl(m.nextSibling),bt=t,Se=!0,mn=null,cl=!1,e!==null&&cf(t,e),t=lr(t,n.children),t.flags|=4096);return t}return a?(jn(),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=lt._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 Td(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=Ie.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,V(Ie,f),St(e,t,n,l),n=Se?As:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Td(e,l,t);else if(e.tag===19)Td(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),kn|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Da(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 og(e,t,l){switch(t.tag){case 3:gt(t,t.stateNode.containerInfo),gn(t,lt,e.memoizedState.cache),In();break;case 27:case 5:Ln(t);break;case 4:gt(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?wd(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||(Da(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),V(Ie,Ie.current),n)break;return null;case 22:return t.lanes=0,xd(e,t,l,t.pendingProps);case 24:gn(t,lt,e.memoizedState.cache)}return Zl(e,t,l)}function Ad(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!sr(e,l)&&(t.flags&128)===0)return at=!1,og(e,t,l);at=(e.flags&131072)!==0}else at=!1,Se&&(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===de){t.tag=11,t=gd(null,t,e,n,l);break e}else if(a===J){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(gt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,wu(e,t),Us(t,n,null,l);var f=t.memoizedState;if(n=f.cache,gn(t,lt,n),n!==i.cache&&xu(t,[lt],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=kd(e,t,n,l);break e}else if(n!==a){a=al(Error(r(424)),t),_s(a),t=kd(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,Xe=rl(e.firstChild),bt=t,Se=!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}St(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:Se||(l=t.type,e=t.pendingProps,n=kc(me.current).createElement(l),n[ut]=t,n[Pe]=e,Nt(n,l,e),et(n),t.stateNode=n):t.memoizedState=Bh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ln(t),e===null&&Se&&(n=t.stateNode=Uh(t.type,t.pendingProps,me.current),bt=t,cl=!0,a=Xe,_n(t.type)?(Hr=a,Xe=rl(n.firstChild)):Xe=a),St(e,t,t.pendingProps.children,l),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((a=n=Xe)&&(n=qg(n,t.type,t.pendingProps,cl),n!==null?(t.stateNode=n,bt=t,Xe=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,tg,null,null,l),li._currentValue=a),cc(e,t),St(e,t,n,l),t.child;case 6:return e===null&&Se&&((e=l=Xe)&&(l=Yg(l,t.pendingProps,cl),l!==null?(t.stateNode=l,bt=t,Xe=null,e=!0):e=!1),e||pn(t)),null;case 13:return wd(e,t,l);case 4:return gt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=na(t,null,n,l):St(e,t,n,l),t.child;case 11:return gd(e,t,t.type,t.pendingProps,l);case 7:return St(e,t,t.pendingProps,l),t.child;case 8:return St(e,t,t.pendingProps.children,l),t.child;case 12:return St(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,gn(t,t.type,n.value),St(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,Pn(t),a=jt(a),n=n(a),t.flags|=1,St(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 rg(e,t,l);case 22:return xd(e,t,l,t.pendingProps);case 24:return Pn(t),n=jt(lt),e===null?(a=Su(),a===null&&(a=$e,i=bu(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},ku(t),gn(t,lt,a)):((e.lanes&l)!==0&&(wu(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,lt,n)):(n=i.cache,gn(t,lt,n),n!==a.cache&&xu(t,[lt],l,!0))),St(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,!Xh(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,Qa|=t)}function Gs(e,t){if(!Se)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 Qe(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 fg(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 Qe(t),null;case 1:return Qe(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$l(lt),Ve(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Oa(t)?Vl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gu())),Qe(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Vl(t),i!==null?(Qe(t),_d(t,i)):(Qe(t),ir(t,a,null,n,l))):i?i!==e.memoizedState?(Vl(t),Qe(t),_d(t,i)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Vl(t),Qe(t),ir(t,a,e,n,l)),null;case 27:if(Hn(t),l=me.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 Qe(t),null}e=$.current,Oa(t)?uf(t):(e=Uh(a,n,l),t.stateNode=e,Vl(t))}return Qe(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 Qe(t),null}if(i=$.current,Oa(t))uf(t);else{var f=kc(me.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[ut]=t,i[Pe]=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(Nt(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 Qe(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=me.current,Oa(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=bt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[ut]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||wh(e.nodeValue,l)),e||pn(t,!0)}else e=kc(e).createTextNode(n),e[ut]=t,t.stateNode=e}return Qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=Oa(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[ut]=t}else In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else l=gu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Qe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Oa(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[ut]=t}else In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),a=!1}else a=gu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(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),Qe(t),null);case 4:return Ve(),e===null&&Ar(t.stateNode.containerInfo),Qe(t),null;case 10:return $l(t.type),Qe(t),null;case 19:if(H(Ie),n=t.memoizedState,n===null)return Qe(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)Gs(n,!1);else{if(We!==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 V(Ie,Ie.current&1|2),Se&&Yl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&kt()>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&&!Se)return Qe(t),null}else 2*kt()-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=kt(),e.sibling=null,l=Ie.current,V(Ie,a?l&1|2:l&1),Se&&Yl(t,n.treeForkCount),e):(Qe(t),null);case 22:case 23:return Xt(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&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(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&&H(ea),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),$l(lt),Qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function dg(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 $l(lt),Ve(),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(Xt(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(Xt(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 H(Ie),null;case 4:return Ve(),null;case 10:return $l(t.type),null;case 22:case 23:return Xt(t),_u(),e!==null&&H(ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $l(lt),null;case 25:return null;default:return null}}function zd(e,t){switch(mu(t),t.tag){case 3:$l(lt),Ve();break;case 26:case 27:case 5:Hn(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:H(Ie);break;case 10:$l(t.type);break;case 22:case 23:Xt(t),_u(),e!==null&&H(ea);break;case 24:$l(lt)}}function $s(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){Ue(t,t.return,m)}}function Sn(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){Ue(a,x,D)}}}n=n.next}while(n!==i)}}catch(D){Ue(t,t.return,D)}}function Rd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{jf(t,l)}catch(n){Ue(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){Ue(e,t,n)}}function Xs(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){Ue(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){Ue(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){Ue(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){Ue(e,e.return,a)}}function cr(e,t,l){try{var n=e.stateNode;Cg(n,e.type,l,t),n[Pe]=t}catch(a){Ue(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]);Nt(t,n,l),t[ut]=e,t[Pe]=l}catch(i){Ue(e,e.return,i)}}var Kl=!1,st=!1,or=!1,Ud=typeof WeakSet=="function"?WeakSet:Set,mt=null;function hg(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 R;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),(R=U.firstChild)!==null;)A=U,U=R;for(;;){if(U===e)break t;if(A===l&&++E===a&&(m=f),A===i&&++D===n&&(x=f),(R=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=R}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,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,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 F=sa(l.type,a);e=n.getSnapshotBeforeUpdate(F,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(se){Ue(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,mt=e;break}mt=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&&$s(5,l);break;case 1:if(Wl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Ue(l,l.return,f)}else{var a=sa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ue(l,l.return,f)}}n&64&&Rd(l),n&512&&Xs(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{jf(e,t)}catch(f){Ue(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&&Xs(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=Sg.bind(null,l),Gg(e,l))));break;case 22:if(n=l.memoizedState!==null||Kl,!n){t=t!==null&&t.memoizedState!==null||st,a=Kl;var i=st;Kl=n,(st=t)&&!i?Il(e,l,(l.subtreeFlags&8772)!==0):Wl(e,l),Kl=a,st=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 Ze=null,Ot=!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(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Pt,l)}catch{}switch(l.tag){case 26:st||zl(l,t),Jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:st||zl(l,t);var n=Ze,a=Ot;_n(l.type)&&(Ze=l.stateNode,Ot=!1),Jl(e,t,l),Ps(l.stateNode),Ze=n,Ot=a;break;case 5:st||zl(l,t);case 6:if(n=Ze,a=Ot,Ze=null,Jl(e,t,l),Ze=n,Ot=a,Ze!==null)if(Ot)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(l.stateNode)}catch(i){Ue(l,t,i)}else try{Ze.removeChild(l.stateNode)}catch(i){Ue(l,t,i)}break;case 18:Ze!==null&&(Ot?(e=Ze,Rh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Pa(e)):Rh(Ze,l.stateNode));break;case 4:n=Ze,a=Ot,Ze=l.stateNode.containerInfo,Ot=!0,Jl(e,t,l),Ze=n,Ot=a;break;case 0:case 11:case 14:case 15:Sn(2,l,t),st||Sn(4,l,t),Jl(e,t,l);break;case 1:st||(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:st=(n=st)||l.memoizedState!==null,Jl(e,t,l),st=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{Pa(e)}catch(l){Ue(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{Pa(e)}catch(l){Ue(t,t.return,l)}}function mg(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=mg(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Ng.bind(null,e,n);n.then(a,a)}})}function Dt(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)){Ze=m.stateNode,Ot=!1;break e}break;case 5:Ze=m.stateNode,Ot=!1;break e;case 3:case 4:Ze=m.stateNode.containerInfo,Ot=!0;break e}m=m.return}if(Ze===null)throw Error(r(160));Bd(i,f,a),Ze=null,Ot=!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 yl=null;function Gd(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dt(t,e),Ct(e),n&4&&(Sn(3,e,e.return),$s(3,e),Sn(5,e,e.return));break;case 1:Dt(t,e),Ct(e),n&512&&(st||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=yl;if(Dt(t,e),Ct(e),n&512&&(st||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[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),Nt(i,n,l),i[ut]=e,et(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),Nt(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),Nt(i,n,l),a.head.appendChild(i);break;default:throw Error(r(468,n))}i[ut]=e,et(i),n=i}e.stateNode=n}else $h(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?$h(a,e.type,e.stateNode):Yh(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&cr(e,e.memoizedProps,l.memoizedProps)}break;case 27:Dt(t,e),Ct(e),n&512&&(st||l===null||zl(l,l.return)),l!==null&&n&4&&cr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Dt(t,e),Ct(e),n&512&&(st||l===null||zl(l,l.return)),e.flags&32){a=e.stateNode;try{Bl(a,"")}catch(F){Ue(e,e.return,F)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,cr(e,a,l!==null?l.memoizedProps:a)),n&1024&&(or=!0);break;case 6:if(Dt(t,e),Ct(e),n&4){if(e.stateNode===null)throw Error(r(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(F){Ue(e,e.return,F)}}break;case 3:if(Ec=null,a=yl,yl=wc(t.containerInfo),Dt(t,e),yl=a,Ct(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Pa(t.containerInfo)}catch(F){Ue(e,e.return,F)}or&&(or=!1,$d(e));break;case 4:n=yl,yl=wc(e.stateNode.containerInfo),Dt(t,e),Ct(e),yl=n;break;case 12:Dt(t,e),Ct(e);break;case 31:Dt(t,e),Ct(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 13:Dt(t,e),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(hc=kt()),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=st;if(Kl=E||a,st=D||x,Dt(t,e),st=D,Kl=E,Ct(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||x||Kl||st||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(F){Ue(x,x.return,F)}}}else if(t.tag===6){if(l===null){x=t;try{x.stateNode.nodeValue=a?"":x.memoizedProps}catch(F){Ue(x,x.return,F)}}}else if(t.tag===18){if(l===null){x=t;try{var R=x.stateNode;a?Oh(R,!0):Oh(x.stateNode,!1)}catch(F){Ue(x,x.return,F)}}}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:Dt(t,e),Ct(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,fc(e,n)));break;case 30:break;case 21:break;default:Dt(t,e),Ct(e)}}function Ct(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){Ue(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $d(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$d(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:Sn(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),$s(4,i);break;case 1:if(Il(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(E){Ue(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){Ue(n,n.return,E)}}l&&f&64&&Rd(i),Xs(i,i.return);break;case 27:Md(i);case 26:case 5:Il(a,i,l),l&&n===null&&f&4&&Dd(i),Xs(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),Xs(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 xl(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Xd(e,t,l,n),t=t.sibling}function Xd(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:xl(e,t,l,n),a&2048&&$s(9,t);break;case 1:xl(e,t,l,n);break;case 3:xl(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){xl(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){Ue(t,t.return,x)}}else xl(e,t,l,n);break;case 31:xl(e,t,l,n);break;case 13:xl(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,f=t.alternate,t.memoizedState!==null?i._visibility&2?xl(e,t,l,n):Qs(e,t):i._visibility&2?xl(e,t,l,n):(i._visibility|=2,Ga(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&fr(f,t);break;case 24:xl(e,t,l,n),a&2048&&dr(t.alternate,t);break;default:xl(e,t,l,n)}}function Ga(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:Ga(i,f,m,x,a),$s(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?Ga(i,f,m,x,a):Qs(i,f):(D._visibility|=2,Ga(i,f,m,x,a)),a&&E&2048&&fr(f.alternate,f);break;case 24:Ga(i,f,m,x,a),a&&E&2048&&dr(f.alternate,f);break;default:Ga(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 $a(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:$a(e,t,l),e.flags&Zs&&e.memoizedState!==null&&ev(l,yl,e.memoizedState,e.memoizedProps);break;case 5:$a(e,t,l);break;case 3:case 4:var n=yl;yl=wc(e.stateNode.containerInfo),$a(e,t,l),yl=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Zs,Zs=16777216,$a(e,t,l),Zs=n):$a(e,t,l));break;default:$a(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];mt=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&&Sn(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];mt=n,Kd(n,e)}Zd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sn(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(;mt!==null;){var l=mt;switch(l.tag){case 0:case 11:case 15:Sn(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,mt=n;else e:for(l=e;mt!==null;){n=mt;var a=n.sibling,i=n.return;if(Hd(n),n===l){mt=null;break e}if(a!==null){a.return=i,mt=a;break e}mt=i}}}var pg={getCacheForType:function(e){var t=jt(lt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return jt(lt).controller.signal}},gg=typeof WeakMap=="function"?WeakMap:Map,ze=0,$e=null,ve=null,be=0,Me=0,Qt=null,Nn=!1,Xa=!1,hr=!1,Fl=0,We=0,kn=0,ca=0,mr=0,Zt=0,Qa=0,Ks=null,Mt=null,pr=!1,hc=0,Jd=0,mc=1/0,pc=null,wn=null,ot=0,Tn=null,Za=null,Pl=0,gr=0,vr=null,Wd=null,Js=0,yr=null;function Vt(){return(ze&2)!==0&&be!==0?be&-be:C.T!==null?kr():ba()}function Id(){if(Zt===0)if((be&536870912)===0||Se){var e=hl;hl<<=1,(hl&3932160)===0&&(hl=262144),Zt=e}else Zt=536870912;return e=$t.current,e!==null&&(e.flags|=32),Zt}function Ut(e,t,l){(e===$e&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Va(e,0),En(e,be,Zt,!1)),wl(e,l),((ze&2)===0||e!==$e)&&(e===$e&&((ze&2)===0&&(ca|=l),We===4&&En(e,be,Zt,!1)),Rl(e))}function Fd(e,t,l){if((ze&6)!==0)throw Error(r(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||nn(e,t),a=n?xg(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&&!vg(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&&(Va(m,f).flags|=256),f=br(m,f,!1),f!==2){if(hr&&!x){m.errorRecoveryDisabledLanes|=i,ca|=i,a=4;break e}i=Mt,Mt=a,i!==null&&(Mt===null?Mt=i:Mt.push.apply(Mt,i))}a=f}if(i=!1,a!==2)continue}}if(a===1){Va(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:Mt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=hc+300-kt(),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,Mt,pc,pr,t,Zt,ca,Qa,Nn,i,"Throttled",-0,0),a);break e}Pd(n,l,Mt,pc,pr,t,Zt,ca,Qa,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,R){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 F=(i&62914560)===i?hc-kt():(i&4194048)===i?Jd-kt():0;if(F=tv(U,F),F!==null){Pl=i,e.cancelPendingCommit=F(ch.bind(null,e,t,i,l,n,a,f,m,x,D,U,null,A,R)),En(e,i,f,!E);return}}ch(e,t,i,l,n,a,f,m,x)}function vg(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-wt(a),f=1<<i;n[i]=-1,a&=~f}l!==0&&Cl(e,l,t)}function gc(){return(ze&6)===0?(Ws(0),!1):!0}function xr(){if(ve!==null){if(Me===0)var e=ve.return;else e=ve,Gl=Fn=null,Mu(e),La=null,Os=0,e=ve;for(;e!==null;)zd(e.alternate,e),e=e.return;ve=null}}function Va(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Lg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pl=0,xr(),$e=e,ve=l=ql(e.current,null),be=t,Me=0,Qt=null,Nn=!1,Xa=nn(e,t),hr=!1,Qa=Zt=mr=ca=kn=We=0,Mt=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-wt(n),i=1<<a;t|=e[a],n&=~i}return Fl=t,Li(),l}function eh(e,t){fe=null,C.H=qs,t===Ua||t===Qi?(t=gf(),Me=3):t===Nu?(t=gf(),Me=4):Me=t===Iu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,ve===null&&(We=1,sc(e,al(t,e.current)))}function th(){var e=$t.current;return e===null?!0:(be&4194048)===be?ul===null:(be&62914560)===be||(be&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=pg,e}function vc(){We=4,Nn||(be&4194048)!==be&&$t.current!==null||(Xa=!0),(kn&134217727)===0&&(ca&134217727)===0||$e===null||En($e,be,Zt,!1)}function br(e,t,l){var n=ze;ze|=2;var a=lh(),i=nh();($e!==e||be!==t)&&(pc=null,Va(e,t)),t=!1;var f=We;e:do try{if(Me!==0&&ve!==null){var m=ve,x=Qt;switch(Me){case 8:xr(),f=6;break e;case 3:case 2:case 9:case 6:$t.current===null&&(t=!0);var E=Me;if(Me=0,Qt=null,Ka(e,m,x,E),l&&Xa){f=0;break e}break;default:E=Me,Me=0,Qt=null,Ka(e,m,x,E)}}yg(),f=We;break}catch(D){eh(e,D)}while(!0);return t&&e.shellSuspendCounter++,Gl=Fn=null,ze=n,C.H=a,C.A=i,ve===null&&($e=null,be=0,Li()),f}function yg(){for(;ve!==null;)ah(ve)}function xg(e,t){var l=ze;ze|=2;var n=lh(),a=nh();$e!==e||be!==t?(pc=null,mc=kt()+500,Va(e,t)):Xa=nn(e,t);e:do try{if(Me!==0&&ve!==null){t=ve;var i=Qt;t:switch(Me){case 1:Me=0,Qt=null,Ka(e,t,i,1);break;case 2:case 9:if(mf(i)){Me=0,Qt=null,sh(t);break}t=function(){Me!==2&&Me!==9||$e!==e||(Me=7),Rl(e)},i.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:mf(i)?(Me=0,Qt=null,sh(t)):(Me=0,Qt=null,Ka(e,t,i,7));break;case 5:var f=null;switch(ve.tag){case 26:f=ve.memoizedState;case 5:case 27:var m=ve;if(f?Xh(f):m.stateNode.complete){Me=0,Qt=null;var x=m.sibling;if(x!==null)ve=x;else{var E=m.return;E!==null?(ve=E,yc(E)):ve=null}break t}}Me=0,Qt=null,Ka(e,t,i,5);break;case 6:Me=0,Qt=null,Ka(e,t,i,6);break;case 8:xr(),We=6;break e;default:throw Error(r(462))}}bg();break}catch(D){eh(e,D)}while(!0);return Gl=Fn=null,C.H=n,C.A=a,ze=l,ve!==null?0:($e=null,be=0,Li(),We)}function bg(){for(;ve!==null&&!xi();)ah(ve)}function ah(e){var t=Ad(e.alternate,e,Fl);e.memoizedProps=e.pendingProps,t===null?yc(e):ve=t}function sh(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Sd(l,t,t.pendingProps,t.type,void 0,be);break;case 11:t=Sd(l,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:Mu(t);default:zd(l,t),t=ve=lf(t,Fl),t=Ad(l,t,Fl)}e.memoizedProps=e.pendingProps,t===null?yc(e):ve=t}function Ka(e,t,l,n){Gl=Fn=null,Mu(t),La=null,Os=0;var a=t.return;try{if(ug(e,a,t,l,be)){We=1,sc(e,al(l,e.current)),ve=null;return}}catch(i){if(a!==null)throw ve=a,i;We=1,sc(e,al(l,e.current)),ve=null;return}t.flags&32768?(Se||n===1?e=!0:Xa||(be&536870912)!==0?e=!1:(Nn=e=!0,(n===2||n===9||n===3||n===6)&&(n=$t.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=fg(t.alternate,t,Fl);if(l!==null){ve=l;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);We===0&&(We=5)}function ih(e,t){do{var l=dg(e.alternate,e);if(l!==null){l.flags&=32767,ve=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=l}while(e!==null);We=6,ve=null}function ch(e,t,l,n,a,i,f,m,x){e.cancelPendingCommit=null;do xc();while(ot!==0);if((ze&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===$e&&(ve=$e=null,be=0),Za=t,Tn=e,Pl=l,gr=i,vr=a,Wd=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,kg(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=Z.p,Z.p=2,f=ze,ze|=4;try{hg(e,t,l)}finally{ze=f,Z.p=a,C.T=n}}ot=1,uh(),rh(),oh()}}function uh(){if(ot===1){ot=0;var e=Tn,t=Za,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=C.T,C.T=null;var n=Z.p;Z.p=2;var a=ze;ze|=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 R=A.getSelection(),F=m.textContent.length,se=Math.min(x.start,F),qe=x.end===void 0?se:Math.min(x.end,F);!R.extend&&se>qe&&(f=qe,qe=se,se=f);var k=Qo(m,se),j=Qo(m,qe);if(k&&j&&(R.rangeCount!==1||R.anchorNode!==k.node||R.anchorOffset!==k.offset||R.focusNode!==j.node||R.focusOffset!==j.offset)){var T=U.createRange();T.setStart(k.node,k.offset),R.removeAllRanges(),se>qe?(R.addRange(T),R.extend(j.node,j.offset)):(T.setEnd(j.node,j.offset),R.addRange(T))}}}}for(U=[],R=m;R=R.parentNode;)R.nodeType===1&&U.push({element:R,left:R.scrollLeft,top:R.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{ze=a,Z.p=n,C.T=l}}e.current=t,ot=2}}function rh(){if(ot===2){ot=0;var e=Tn,t=Za,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=C.T,C.T=null;var n=Z.p;Z.p=2;var a=ze;ze|=4;try{Ld(e,t.alternate,t)}finally{ze=a,Z.p=n,C.T=l}}ot=3}}function oh(){if(ot===4||ot===3){ot=0,cs();var e=Tn,t=Za,l=Pl,n=Wd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,Za=Tn=null,fh(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(wn=null),xa(l),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Pt,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=C.T,a=Z.p,Z.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,Z.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(ot!==5)return!1;var e=Tn,t=gr;gr=0;var l=xa(Pl),n=C.T,a=Z.p;try{Z.p=32>l?32:l,C.T=null,l=vr,vr=null;var i=Tn,f=Pl;if(ot=0,Za=Tn=null,Pl=0,(ze&6)!==0)throw Error(r(331));var m=ze;if(ze|=4,Vd(i.current),Xd(i,i.current,f,l),ze=m,Ws(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Pt,i)}catch{}return!0}finally{Z.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&&(wl(e,2),Rl(e))}function Ue(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"&&(wn===null||!wn.has(n))){e=al(l,e),l=md(2),n=xn(t,l,2),n!==null&&(pd(l,n,t,e),wl(n,2),Rl(n));break}}t=t.return}}function jr(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new gg;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=jg.bind(null,e,t,l),t.then(e,e))}function jg(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,$e===e&&(be&l)===l&&(We===4||We===3&&(be&62914560)===be&&300>kt()-hc?(ze&2)===0&&Va(e,0):mr|=l,Qa===be&&(Qa=0)),Rl(e)}function mh(e,t){t===0&&(t=fs()),e=Jn(e,t),e!==null&&(wl(e,t),Rl(e))}function Sg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),mh(e,l)}function Ng(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 kg(e,t){return pa(e,t)}var bc=null,Ja=null,Sr=!1,jc=!1,Nr=!1,An=0;function Rl(e){e!==Ja&&e.next===null&&(Ja===null?bc=Ja=e:Ja=Ja.next=e),jc=!0,Sr||(Sr=!0,Tg())}function Ws(e,t){if(!Nr&&jc){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-wt(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=be,i=Yn(n,n===$e?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 wg(){ph()}function ph(){jc=Sr=!1;var e=0;An!==0&&Ug()&&(e=An);for(var t=kt(),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&&(Ja=l)):(l=n,(e!==0||(i&3)!==0)&&(jc=!0)),n=a}ot!==0&&ot!==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-wt(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=$e,l=be,l=Yn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(Me===2||Me===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),xa(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=pa(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(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(xc()&&e.callbackNode!==l)return null;var n=be;return n=Yn(e,e===$e?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Fd(e,n,t),gh(e,kt()),e.callbackNode!=null&&e.callbackNode===l?vh.bind(null,e):null)}function yh(e,t){if(xc())return null;Fd(e,t,!0)}function Tg(){Hg(function(){(ze&6)!==0?pa(dl,wg):ph()})}function kr(){if(An===0){var e=Ca;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 Eg(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=xh((a[Pe]||null).action),f=n.submitter;f&&(t=(t=f[Pe]||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);Xu(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),Xu(l,{pending:!0,data:x,method:a.method,action:i},i,x))},currentTarget:a}]})}}for(var wr=0;wr<cu.length;wr++){var Tr=cu[wr],Ag=Tr.toLowerCase(),_g=Tr[0].toUpperCase()+Tr.slice(1);vl(Ag,"on"+_g)}vl(Wo,"onAnimationEnd"),vl(Io,"onAnimationIteration"),vl(Fo,"onAnimationStart"),vl("dblclick","onDoubleClick"),vl("focusin","onFocus"),vl("focusout","onBlur"),vl(Qp,"onTransitionRun"),vl(Zp,"onTransitionStart"),vl(Vp,"onTransitionCancel"),vl(Po,"onTransitionEnd"),gl("onMouseEnter",["mouseout","mouseover"]),gl("onMouseLeave",["mouseout","mouseover"]),gl("onPointerEnter",["pointerout","pointerover"]),gl("onPointerLeave",["pointerout","pointerover"]),Tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tl("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(" "),zg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Is));function jh(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 ye(e,t){var l=t[ms];l===void 0&&(l=t[ms]=new Set);var n=e+"__bubble";l.has(n)||(Sh(t,e,2,!1),l.add(n))}function Er(e,t,l){var n=0;t&&(n|=4),Sh(l,e,n,t)}var Sc="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){if(!e[Sc]){e[Sc]=!0,wi.forEach(function(l){l!=="selectionchange"&&(zg.has(l)||Er(l,!1,e),Er(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sc]||(t[Sc]=!0,Er("selectionchange",!1,t))}}function Sh(e,t,l,n){switch(Ih(t)){case 2:var a=av;break;case 8:a=sv;break;default:a=$r}l=a.bind(null,t,l,e),a=void 0,!rt||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}xt(function(){var E=i,D=K(l),U=[];e:{var A=ef.get(e);if(A!==void 0){var R=Di,F=e;switch(e){case"keypress":if(Ri(l)===0)break e;case"keydown":case"keyup":R=Np;break;case"focusin":F="focus",R=Fc;break;case"focusout":F="blur",R=Fc;break;case"beforeblur":case"afterblur":R=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":R=_o;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=Tp;break;case Wo:case Io:case Fo:R=mp;break;case Po:R=Ap;break;case"scroll":case"scrollend":R=rp;break;case"wheel":R=zp;break;case"copy":case"cut":case"paste":R=gp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=Ro;break;case"toggle":case"beforetoggle":R=Op}var se=(t&4)!==0,qe=!se&&(e==="scroll"||e==="scrollend"),k=se?A!==null?A+"Capture":null:A;se=[];for(var j=E,T;j!==null;){var M=j;if(T=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||T===null||k===null||(M=tt(j,k),M!=null&&se.push(Fs(j,M,T))),qe)break;j=j.return}0<se.length&&(A=new R(A,F,null,l,D),U.push({event:A,listeners:se}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",A&&l!==B&&(F=l.relatedTarget||l.fromElement)&&(Ml(F)||F[sn]))break e;if((R||A)&&(A=D.window===D?D:(A=D.ownerDocument)?A.defaultView||A.parentWindow:window,R?(F=l.relatedTarget||l.toElement,R=E,F=F?Ml(F):null,F!==null&&(qe=h(F),se=F.tag,F!==qe||se!==5&&se!==27&&se!==6)&&(F=null)):(R=null,F=E),R!==F)){if(se=_o,M="onMouseLeave",k="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(se=Ro,M="onPointerLeave",k="onPointerEnter",j="pointer"),qe=R==null?A:$n(R),T=F==null?A:$n(F),A=new se(M,j+"leave",R,l,D),A.target=qe,A.relatedTarget=T,M=null,Ml(D)===E&&(se=new se(k,j+"enter",F,l,D),se.target=T,se.relatedTarget=qe,M=se),qe=M,R&&F)t:{for(se=Rg,k=R,j=F,T=0,M=k;M;M=se(M))T++;M=0;for(var le=j;le;le=se(le))M++;for(;0<T-M;)k=se(k),T--;for(;0<M-T;)j=se(j),M--;for(;T--;){if(k===j||j!==null&&k===j.alternate){se=k;break t}k=se(k),j=se(j)}se=null}else se=null;R!==null&&Nh(U,A,R,se,!1),F!==null&&qe!==null&&Nh(U,qe,F,se,!0)}}e:{if(A=E?$n(E):window,R=A.nodeName&&A.nodeName.toLowerCase(),R==="select"||R==="input"&&A.type==="file")var Ee=Bo;else if(Lo(A))if(qo)Ee=Gp;else{Ee=qp;var ee=Bp}else R=A.nodeName,!R||R.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?E&&fn(E.elementType)&&(Ee=Bo):Ee=Yp;if(Ee&&(Ee=Ee(e,E))){Ho(U,Ee,l,D);break e}ee&&ee(e,A,E),e==="focusout"&&E&&A.type==="number"&&E.memoizedProps.value!=null&&ka(A,"number",A.value)}switch(ee=E?$n(E):window,e){case"focusin":(Lo(ee)||ee.contentEditable==="true")&&(Ta=ee,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(Xp)break;case"keydown":case"keyup":Ko(U,l,D)}var he;if(eu)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else wa?Mo(e,l)&&(je="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(je="onCompositionStart");je&&(Oo&&l.locale!=="ko"&&(wa||je!=="onCompositionStart"?je==="onCompositionEnd"&&wa&&(he=Eo()):(dn=D,Jc="value"in dn?dn.value:dn.textContent,wa=!0)),ee=Nc(E,je),0<ee.length&&(je=new zo(je,e,null,l,D),U.push({event:je,listeners:ee}),he?je.data=he:(he=Uo(l),he!==null&&(je.data=he)))),(he=Cp?Mp(e,l):Up(e,l))&&(je=Nc(E,"onBeforeInput"),0<je.length&&(ee=new zo("onBeforeInput","beforeinput",null,l,D),U.push({event:ee,listeners:je}),ee.data=he)),Eg(U,e,E,l,D)}jh(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=tt(e,l),a!=null&&n.unshift(Fs(e,a,i)),a=tt(e,t),a!=null&&n.push(Fs(e,a,i))),e.tag===3)return n;e=e.return}return[]}function Rg(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=tt(l,i),E!=null&&f.unshift(Fs(l,E,x))):a||(E=tt(l,i),E!=null&&f.push(Fs(l,E,x)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var Og=/\r\n?/g,Dg=/\u0000|\uFFFD/g;function kh(e){return(typeof e=="string"?e:""+e).replace(Og,`
9
+ `).replace(Dg,"")}function wh(e,t){return t=kh(t),kh(e)===t}function Be(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"&&Be(e,t,"name",a.name,a,null),Be(e,t,"formEncType",a.formEncType,a,null),Be(e,t,"formMethod",a.formMethod,a,null),Be(e,t,"formTarget",a.formTarget,a,null)):(Be(e,t,"encType",a.encType,a,null),Be(e,t,"method",a.method,a,null),Be(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&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("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":ye("beforetoggle",e),ye("toggle",e),ja(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":ja(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,ja(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&&ye("scroll",e);break;case"onScrollEnd":n!=null&&ye("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(!pl.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[Pe]||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,""):ja(e,l,n)}}}function Nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("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:Be(e,t,i,f,l,null)}}a&&Be(e,t,"srcSet",l.srcSet,l,null),n&&Be(e,t,"src",l.src,l,null);return;case"input":ye("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:Be(e,t,n,D,l,null)}}gs(e,i,m,x,E,f,a,!1);return;case"select":ye("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:Be(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":ye("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:Be(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":Be(e,t,x,n,l,null));return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(n=0;n<Is.length;n++)ye(Is[n],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("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:Be(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&&Be(e,t,m,n,l,null))}function Cg(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(R in l){var U=l[R];if(l.hasOwnProperty(R)&&U!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":x=U;default:n.hasOwnProperty(R)||Be(e,t,R,null,n,U)}}for(var A in n){var R=n[A];if(U=l[A],n.hasOwnProperty(A)&&(R!=null||U!=null))switch(A){case"type":i=R;break;case"name":a=R;break;case"checked":E=R;break;case"defaultChecked":D=R;break;case"value":f=R;break;case"defaultValue":m=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:R!==U&&Be(e,t,A,R,n,U)}}ps(e,f,m,x,E,D,i,a);return;case"select":R=f=m=A=null;for(i in l)if(x=l[i],l.hasOwnProperty(i)&&x!=null)switch(i){case"value":break;case"multiple":R=x;default:n.hasOwnProperty(i)||Be(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&&Be(e,t,a,i,n,x)}t=m,l=f,n=R,A!=null?Hl(e,!!l,A,!1):!!n!=!!l&&(t!=null?Hl(e,!!l,t,!0):Hl(e,!!l,l?[]:"",!1));return;case"textarea":R=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:Be(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":R=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==i&&Be(e,t,f,a,n,i)}vs(e,A,R);return;case"option":for(var F in l)A=l[F],l.hasOwnProperty(F)&&A!=null&&!n.hasOwnProperty(F)&&(F==="selected"?e.selected=!1:Be(e,t,F,null,n,A));for(x in n)A=n[x],R=l[x],n.hasOwnProperty(x)&&A!==R&&(A!=null||R!=null)&&(x==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Be(e,t,x,A,n,R));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)&&Be(e,t,se,null,n,A);for(E in n)if(A=n[E],R=l[E],n.hasOwnProperty(E)&&A!==R&&(A!=null||R!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:Be(e,t,E,A,n,R)}return;default:if(fn(t)){for(var qe in l)A=l[qe],l.hasOwnProperty(qe)&&A!==void 0&&!n.hasOwnProperty(qe)&&zr(e,t,qe,void 0,n,A);for(D in n)A=n[D],R=l[D],!n.hasOwnProperty(D)||A===R||A===void 0&&R===void 0||zr(e,t,D,A,n,R);return}}for(var k in l)A=l[k],l.hasOwnProperty(k)&&A!=null&&!n.hasOwnProperty(k)&&Be(e,t,k,null,n,A);for(U in n)A=n[U],R=l[U],!n.hasOwnProperty(U)||A===R||A==null&&R==null||Be(e,t,U,A,n,R)}function Th(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Mg(){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&&Th(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&&Th(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 kc(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 Ug(){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,Lg=typeof clearTimeout=="function"?clearTimeout:void 0,zh=typeof Promise=="function"?Promise:void 0,Hg=typeof queueMicrotask=="function"?queueMicrotask:typeof zh<"u"?function(e){return zh.resolve(null).then(e).catch(Bg)}:_h;function Bg(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),Pa(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);Pa(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 qg(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 Yg(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 Gg(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=kc(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 wc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var en=Z.d;Z.d={f:$g,r:Xg,D:Qg,C:Zg,L:Vg,m:Kg,X:Wg,S:Jg,M:Ig};function $g(){var e=en.f(),t=gc();return e||t}function Xg(e){var t=Ul(e);t!==null&&t.tag===5&&t.type==="form"?ed(t):en.r(e)}var Wa=typeof document>"u"?null:document;function Hh(e,t,l){var n=Wa;if(n&&typeof t=="string"&&t){var a=yt(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"),Nt(t,"link",e),et(t),n.head.appendChild(t)))}}function Qg(e){en.D(e),Hh("dns-prefetch",e,null)}function Zg(e,t){en.C(e,t),Hh("preconnect",e,t)}function Vg(e,t,l){en.L(e,t,l);var n=Wa;if(n&&e&&t){var a='link[rel="preload"][as="'+yt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+yt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+yt(l.imageSizes)+'"]')):a+='[href="'+yt(e)+'"]';var i=a;switch(t){case"style":i=Ia(e);break;case"script":i=Fa(e)}ol.has(i)||(e=z({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"),Nt(t,"link",e),et(t),n.head.appendChild(t)))}}function Kg(e,t){en.m(e,t);var l=Wa;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+yt(n)+'"][href="'+yt(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Fa(e)}if(!ol.has(i)&&(e=z({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"),Nt(n,"link",e),et(n),l.head.appendChild(n)}}}function Jg(e,t,l){en.S(e,t,l);var n=Wa;if(n&&e){var a=rn(n).hoistableStyles,i=Ia(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=z({rel:"stylesheet",href:e,"data-precedence":t},l),(l=ol.get(i))&&Br(e,l);var x=f=n.createElement("link");et(x),Nt(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,Tc(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:m},a.set(i,f)}}}function Wg(e,t){en.X(e,t);var l=Wa;if(l&&e){var n=rn(l).hoistableScripts,a=Fa(e),i=n.get(a);i||(i=l.querySelector(ti(a)),i||(e=z({src:e,async:!0},t),(t=ol.get(a))&&qr(e,t),i=l.createElement("script"),et(i),Nt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Ig(e,t){en.M(e,t);var l=Wa;if(l&&e){var n=rn(l).hoistableScripts,a=Fa(e),i=n.get(a);i||(i=l.querySelector(ti(a)),i||(e=z({src:e,async:!0,type:"module"},t),(t=ol.get(a))&&qr(e,t),i=l.createElement("script"),et(i),Nt(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=me.current)?wc(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=Ia(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=Ia(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||Fg(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=Fa(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 Ia(e){return'href="'+yt(e)+'"'}function ei(e){return'link[rel="stylesheet"]['+e+"]"}function qh(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function Fg(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}),Nt(t,"link",l),et(t),e.head.appendChild(t))}function Fa(e){return'[src="'+yt(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~="'+yt(l.href)+'"]');if(n)return t.instance=n,et(n),n;var a=z({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),et(n),Nt(n,"style",a),Tc(n,l.precedence,e),t.instance=n;case"stylesheet":a=Ia(l.href);var i=e.querySelector(ei(a));if(i)return t.state.loading|=4,t.instance=i,et(i),i;n=qh(l),(a=ol.get(a))&&Br(n,a),i=(e.ownerDocument||e).createElement("link"),et(i);var f=i;return f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),Nt(i,"link",n),t.state.loading|=4,Tc(i,l.precedence,e),t.instance=i;case"script":return i=Fa(l.src),(a=e.querySelector(ti(i)))?(t.instance=a,et(a),a):(n=l,(a=ol.get(i))&&(n=z({},l),qr(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),et(a),Nt(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,Tc(n,l.precedence,e));return t.instance}function Tc(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[ut]||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 $h(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Pg(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 Xh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ev(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=Ia(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,et(i);return}i=t.ownerDocument||t,n=qh(n),(a=ol.get(a))&&Br(n,a),i=i.createElement("link"),et(i);var f=i;f._p=new Promise(function(m,x){f.onload=m,f.onerror=x}),Nt(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 tv(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*Mg());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(lv,e),_c=null,Ac.call(e))}function lv(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:oe,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function nv(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 nv(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},ku(i),e}function Zh(e){return e?(e=_a,e):_a}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&&(Ut(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&&Ut(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&&Ut(l,e,t),Gr(e,t)}}var Rc=!0;function av(e,t,l,n){var a=C.T;C.T=null;var i=Z.p;try{Z.p=2,$r(e,t,l,n)}finally{Z.p=i,C.T=a}}function sv(e,t,l,n){var a=C.T;C.T=null;var i=Z.p;try{Z.p=8,$r(e,t,l,n)}finally{Z.p=i,C.T=a}}function $r(e,t,l,n){if(Rc){var a=Xr(n);if(a===null)_r(e,t,n,Oc,l),Fh(e,n);else if(cv(a,e,t,l,n))n.stopPropagation();else if(Fh(e,n),t&4&&-1<iv.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=kl(i.pendingLanes);if(f!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var x=1<<31-wt(f);m.entanglements[1]|=x,f&=~x}Rl(i),(ze&6)===0&&(mc=kt()+500,Ws(0))}}break;case 31:case 13:m=Jn(i,2),m!==null&&Ut(m,i,2),gc(),Gr(i,2)}if(i=Xr(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 Xr(e){return e=K(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 dl: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=[],iv="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 cv(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=Xr(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);B=n,l.target.dispatchEvent(n),B=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 uv(){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,uv)))}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,Xu(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Pa(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[Pe]||null;if(typeof i=="function")f||tm(l);else if(f){var m=null;if(i&&i.hasAttribute("formAction")){if(a=i,f=i[Pe]||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=ba();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"));Z.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?w(e):null,e=e===null?null:e.stateNode,e};var rv={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(rv),ht=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,wl(t,l),Rl(t),e[sn]=t.current,Ar(e),new Uc(t)},ci.version="19.2.8",ci}var hm;function xv(){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=yv(),Wr.exports}var bv=xv();function jv(){const[u,c]=L.useState(()=>window.location.hash.slice(1)||"/");return L.useEffect(()=>{const o=()=>c(window.location.hash.slice(1)||"/");return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),u}function fl(u,c){c?.replace?window.location.replace(`#${u}`):window.location.hash=u}function Re({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 Sv(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 L.useSyncExternalStore(u=>(io.add(u),()=>io.delete(u)),()=>po)}function Ye(u,c){const[o,r]=L.useState(null),d=L.useRef(u);return d.current=u,L.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 fa(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 Qm(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]=L.useState(0);return L.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 Nv({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 ha=xo();function Zm(u){ha=u}var oa={exec:()=>null};function es(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 xe(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(At.caret,"$1"),o=o.replace(d,p),r},getRegex:()=>new RegExp(o,c)};return r}var kv=((u="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+u)}catch{return!1}})(),At={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:es(u=>new RegExp(`^ {0,${u}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:es(u=>new RegExp(`^ {0,${u}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:es(u=>new RegExp(`^ {0,${u}}(?:\`\`\`|~~~)`)),headingBeginRegex:es(u=>new RegExp(`^ {0,${u}}#`)),htmlBeginRegex:es(u=>new RegExp(`^ {0,${u}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:es(u=>new RegExp(`^ {0,${u}}>`))},wv=/^(?:[ \t]*(?:\n|$))+/,Tv=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ev=/^ {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+|$)/,Av=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bo=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Vm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Km=xe(Vm).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(),_v=xe(Vm).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(),jo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,zv=/^[^\n]+/,So=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Rv=xe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",So).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ov=xe(/^(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]*?(?:-->|$))/,Dv=xe("^ {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(),Jm=u=>xe(jo).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(),Cv=Jm(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Mv=Jm(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Uv=xe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mv).getRegex(),ko={blockquote:Uv,code:Tv,def:Rv,fences:Ev,heading:Av,hr:gi,html:Dv,lheading:Km,list:Ov,newline:wv,paragraph:Cv,table:oa,text:zv},mm=xe("^ *([^\\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(),Lv={...ko,lheading:_v,table:mm,paragraph:xe(jo).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()},Hv={...ko,html:xe(`^ *(?: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:xe(jo).replace("hr",gi).replace("heading",` *#{1,6} *[^
10
+ ]`).replace("lheading",Km).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Bv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,qv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Wm=/^( {2,}|\\)\n(?!\s*$)/,Yv=/^(`+|[^`])(?:(?= {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,Gv=xe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ns).getRegex(),$v=/[\p{Pi}\p{Ps}"']/u,Im=/(?!~)[\p{P}\p{S}]/u,Xv=/(?!~)[\s\p{P}\p{S}]/u,Qv=/(?:[^\s\p{P}\p{S}]|~)/u,Zv=xe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",kv?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Fm=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Vv=xe(Fm,"u").replace(/punct/g,tn).getRegex(),Kv=xe(Fm,"u").replace(/punct/g,Im).getRegex(),Jv=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Wv=xe(Jv,"u").replace(/openQuote/g,$v).replace(/punct/g,tn).getRegex(),Pm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Iv=xe(Pm,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),Fv=xe(Pm,"gu").replace(/notPunctSpace/g,Qv).replace(/punctSpace/g,Xv).replace(/punct/g,Im).getRegex(),Pv="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",ey=xe(Pv,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),ty=xe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),ly="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",ny=xe(ly,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),ay=xe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,tn).getRegex(),sy="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",iy=xe(sy,"gu").replace(/notPunctSpace/g,vi).replace(/punctSpace/g,ns).replace(/punct/g,tn).getRegex(),cy=xe(/\\(punct)/,"gu").replace(/punct/g,tn).getRegex(),uy=xe(/^<(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(),ry=xe(No).replace("(?:-->|$)","-->").getRegex(),oy=xe("^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",ry).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Yc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,fy=xe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Yc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ep=xe(/^!?\[(label)\]\[(ref)\]/).replace("label",Yc).replace("ref",So).getRegex(),tp=xe(/^!?\[(ref)\](?:\[\])?/).replace("ref",So).getRegex(),dy=xe("reflink|nolink(?!\\()","g").replace("reflink",ep).replace("nolink",tp).getRegex(),pm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,wo={_backpedal:oa,anyPunctuation:cy,autolink:uy,blockSkip:Zv,br:Wm,code:qv,del:oa,delLDelim:oa,delRDelim:oa,emStrongLDelim:Vv,emStrongRDelimAst:Iv,emStrongRDelimUnd:ty,escape:Bv,link:fy,nolink:tp,punctuation:Gv,reflink:ep,reflinkSearch:dy,tag:oy,text:Yv,url:oa},hy={...wo,emStrongLDelim:Wv,emStrongRDelimAst:ey,emStrongRDelimUnd:ny,link:xe(/^!?\[(label)\]\((.*?)\)/).replace("label",Yc).getRegex(),reflink:xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Yc).getRegex()},co={...wo,emStrongRDelimAst:Fv,emStrongLDelim:Kv,delLDelim:ay,delRDelim:iy,url:xe(/^((?: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:xe(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {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()},my={...co,br:xe(Wm).replace("{2,}","*").getRegex(),text:xe(co.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Hc={normal:ko,gfm:Lv,pedantic:Hv},ui={normal:wo,gfm:co,breaks:my,pedantic:hy},py={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gm=u=>py[u];function Ol(u,c){if(c){if(At.escapeTest.test(u))return u.replace(At.escapeReplace,gm)}else if(At.escapeTestNoEncode.test(u))return u.replace(At.escapeReplaceNoEncode,gm);return u}function vm(u){try{u=encodeURI(u).replace(At.percentDecode,"%")}catch{return null}return u}function ym(u,c){let o=u.replace(At.findPipe,(h,p,v)=>{let b=!1,y=p;for(;--y>=0&&v[y]==="\\";)b=!b;return b?"|":" |"}),r=o.split(At.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(At.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&&At.blankLine.test(c[o]);)o--;return c.length-o<=2?u:c.slice(0,o+1).join(`
12
+ `)}function gy(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 vy(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,w=r.state.inRawBlock;r.state.linkEmitted=!1;let z=r.inlineTokens(v),_=r.state.linkEmitted;if(r.state.linkEmitted=y,r.state.inLink=!1,!b){if(_){r.state.inRawBlock=w;return}r.state.linkEmitted=!0}return{type:b?"image":"link",raw:o,href:h,title:p,text:v,tokens:z}}function yy(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||ha}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=yy(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
+ `),w=y.replace(this.rules.other.blockquoteSetextReplace,`
20
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
21
+ ${y}`:y,d=d?`${d}
22
+ ${w}`:w;let z=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(w,h,!0),this.lexer.state.top=z,o.length===0)break;let _=h.at(-1);if(_?.type==="code")break;if(_?.type==="blockquote"){let q=_,Y=o.join(`
23
+ `),Q=q.raw+`
24
+ `+Y.replace(this.rules.other.blockquoteSetextReplace2,""),W=this.blockquote(Q);h[h.length-1]=W,r=`${r}
25
+ ${Y}`,d=d.substring(0,d.length-q.text.length)+W.text;break}else if(_?.type==="list"){let q=_,Y=q.raw+`
26
+ `+o.join(`
27
+ `),Q=this.list(Y);h[h.length-1]=Q,r=r.substring(0,r.length-_.raw.length)+Q.raw,d=d.substring(0,d.length-q.raw.length)+Q.raw,o=Y.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="",w="";if(!(c=h.exec(u))||this.rules.block.hr.test(u))break;y=c[0],u=u.substring(y.length);let z=vy(c[2].split(`
29
+ `,1)[0],c[1].length),_=u.split(`
30
+ `,1)[0],q=!z.trim(),Y=0;if(this.options.pedantic?(Y=2,w=z.trimStart()):q?Y=c[1].length+1:(Y=z.search(this.rules.other.nonSpaceChar),Y=Y>4?1:Y,w=z.slice(Y),Y+=c[1].length),q&&this.rules.other.blankLine.test(_)&&(y+=_+`
31
+ `,u=u.substring(_.length+1),b=!0),!b){let Q=this.rules.other.nextBulletRegex(Y),W=this.rules.other.hrRegex(Y),O=this.rules.other.fencesBeginRegex(Y),pe=this.rules.other.headingBeginRegex(Y),oe=this.rules.other.htmlBeginRegex(Y),de=this.rules.other.blockquoteBeginRegex(Y);for(;u;){let te=u.split(`
32
+ `,1)[0],X;if(_=te,this.options.pedantic?(_=_.replace(this.rules.other.listReplaceNesting," "),X=_):X=_.replace(this.rules.other.tabCharGlobal," "),O.test(_)||pe.test(_)||oe.test(_)||de.test(_)||Q.test(_)||W.test(_))break;if(X.search(this.rules.other.nonSpaceChar)>=Y||!_.trim())w+=`
33
+ `+X.slice(Y);else{if(q||z.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(z)||pe.test(z)||W.test(z))break;w+=`
34
+ `+_}q=!_.trim(),y+=te+`
35
+ `,u=u.substring(te.length+1),z=X.slice(Y)}}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(w),loose:!1,text:w,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(z=>z.type==="space"),w=y.length>0&&y.some(z=>this.rules.other.anyLine.test(z.raw));d.loose=w}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 z=this.lexer.inlineQueue.length-1;z>=0;z--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[z].src)){this.lexer.inlineQueue[z].src=this.lexer.inlineQueue[z].src.replace(this.rules.other.listReplaceTask,"");break}let w=this.rules.other.listTaskCheckbox.exec(b.raw);if(w){let z={type:"checkbox",raw:w[0]+" ",checked:w[0]!=="[ ]"};b.checked=z.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=z.raw+b.tokens[0].raw,b.tokens[0].text=z.raw+b.tokens[0].text,b.tokens[0].tokens.unshift(z)):b.tokens.unshift({type:"paragraph",raw:z.raw,text:z.raw,tokens:[z]}):b.tokens.unshift(z)}}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=gy(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],w=o===y,z=y==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(z.lastIndex=0,c=c.slice(-1*u.length+d);(r=z.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(w)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 Q=q.slice(1,-1);return{type:"em",raw:q,text:Q,tokens:this.lexer.inlineTokens(Q)}}let Y=q.slice(2,-2);return{type:"strong",raw:q,text:Y,tokens:this.lexer.inlineTokens(Y)}}}}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,w=u.slice(0,d+r.index+y+p),z=w.slice(d,-d);return{type:"del",raw:w,text:z,tokens:this.lexer.inlineTokens(z)}}}}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}}}},jl=class uo{tokens;options;state;inlineQueue;tokenizer;constructor(c){this.tokens=[],this.tokens.links=Object.create(null),this.options=c||ha,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:At,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(At.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(At.tabCharGlobal," ").replace(At.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(w=>{y=w.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 w=y.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,y.slice(w+1,-1)))return y;if(w>1&&y.charAt(0)!=="!"){let z=y.slice(1,w-1);if(this.linkInText(z))return"["+z.replace(v,b)+"]["+"a".repeat(y.length-w-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 w=y?y.length:0;return v.slice(0,w)+"["+"a".repeat(v.length-w-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,w=c.slice(1),z;this.options.extensions.startInline.forEach(_=>{z=_.call({lexer:this},w),typeof z=="number"&&z>=0&&(y=Math.min(y,z))}),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)}},$c=class{options;parser;constructor(u){this.options=u||ha}space(u){return""}code({text:u,lang:c,escaped:o}){let r=(c||"").match(At.notSpaceStart)?.[0],d=u.replace(At.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)}},To=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||ha,this.options.renderer=this.options.renderer||new $c,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new To}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||ha}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?jl.lex:jl.lexInline}provideParser(u=this.block){return u?Sl.parse:Sl.parseInline}},xy=class{defaults=xo();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Sl;Renderer=$c;TextRenderer=To;Lexer=jl;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 $c(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 w=v.apply(d,y);return w===!1&&(w=b.apply(d,y)),w||""}}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 w=v.apply(d,y);return w===!1&&(w=b.apply(d,y)),w}}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 z=await v.call(d,y);return b.call(d,z)})();let w=v.call(d,y);return b.call(d,w)}:d[p]=(...y)=>{if(this.defaults.async)return(async()=>{let z=await v.apply(d,y);return z===!1&&(z=await b.apply(d,y)),z})();let w=v.apply(d,y);return w===!1&&(w=b.apply(d,y)),w}}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 jl.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?jl.lex:jl.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?jl.lex:jl.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}}},da=new xy;function _e(u,c){return da.parse(u,c)}_e.options=_e.setOptions=function(u){return da.setOptions(u),_e.defaults=da.defaults,Zm(_e.defaults),_e};_e.getDefaults=xo;_e.defaults=ha;function by(...u){return da.use(...u),_e.defaults=da.defaults,Zm(_e.defaults),_e}_e.use=by;_e.walkTokens=function(u,c){return da.walkTokens(u,c)};_e.parseInline=da.parseInline;_e.Parser=Sl;_e.parser=Sl.parse;_e.Renderer=$c;_e.TextRenderer=To;_e.Lexer=jl;_e.lexer=jl.lex;_e.Tokenizer=Gc;_e.Hooks=di;_e.parse=_e;_e.options;_e.setOptions;_e.walkTokens;_e.parseInline;Sl.parse;jl.lex;function jm(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 jy(u){if(Array.isArray(u))return u}function Sy(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(w){y=!0,d=w}finally{try{if(!b&&o.return!=null&&(p=o.return(),Object(p)!==p))return}finally{if(y)throw d}}return v}}function Ny(){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 ky(u,c){return jy(u)||Sy(u,c)||wy(u,c)||Ny()}function wy(u,c){if(u){if(typeof u=="string")return jm(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)?jm(u,c):void 0}}const lp=Object.entries,Sm=Object.setPrototypeOf,Ty=Object.isFrozen,Ey=Object.getPrototypeOf,Ay=Object.getOwnPropertyDescriptor;let ft=Object.freeze,pt=Object.seal,ts=Object.create,np=typeof Reflect<"u"&&Reflect,oo=np.apply,fo=np.construct;ft||(ft=function(c){return c});pt||(pt=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=it(Array.prototype.forEach),_y=it(Array.prototype.lastIndexOf),Nm=it(Array.prototype.pop),ri=it(Array.prototype.push),zy=it(Array.prototype.splice),ls=Array.isArray,hi=it(String.prototype.toLowerCase),eo=it(String.prototype.toString),km=it(String.prototype.match),oi=it(String.prototype.replace),wm=it(String.prototype.indexOf),Ry=it(String.prototype.trim),Oy=it(Number.prototype.toString),Dy=it(Boolean.prototype.toString),Tm=typeof BigInt>"u"?null:it(BigInt.prototype.toString),Em=typeof Symbol>"u"?null:it(Symbol.prototype.toString),Lt=it(Object.prototype.hasOwnProperty),fi=it(Object.prototype.toString),Et=it(RegExp.prototype.test),ua=Cy(TypeError);function it(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 Cy(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 Ne(u,c){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hi;if(Sm&&Sm(u,null),!ls(c))return u;let r=c.length;for(;r--;){let d=c[r];if(typeof d=="string"){const h=o(d);h!==d&&(Ty(c)||(c[r]=h),d=h)}u[d]=!0}return u}function My(u){for(let c=0;c<u.length;c++)Lt(u,c)||(u[c]=null);return u}function Jt(u){const c=ts(null);for(const r of lp(u)){var o=ky(r,2);const d=o[0],h=o[1];Lt(u,d)&&(ls(h)?c[d]=My(h):h&&typeof h=="object"&&h.constructor===Object?c[d]=Jt(h):c[d]=h)}return c}function Uy(u){switch(typeof u){case"string":return u;case"number":return Oy(u);case"boolean":return Dy(u);case"bigint":return Tm?Tm(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=bl(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 bl(u,c){for(;u!==null;){const r=Ay(u,c);if(r){if(r.get)return it(r.get);if(typeof r.value=="function")return it(r.value)}u=Ey(u)}function o(){return null}return o}function Ly(u){try{return Et(u,""),!0}catch{return!1}}const Am=ft(["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=ft(["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=ft(["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"]),Hy=ft(["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=ft(["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"]),By=ft(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_m=ft(["#text"]),zm=ft(["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=ft(["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=ft(["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=ft(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qy=pt(/{{[\w\W]*|^[\w\W]*}}/g),Yy=pt(/<%[\w\W]*|^[\w\W]*%>/g),Gy=pt(/\${[\w\W]*/g),$y=pt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Xy=pt(/^aria-[\-\w]+$/),Om=pt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Qy=pt(/^(?:\w+script|data):/i),Zy=pt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vy=pt(/^html$/i),Ky=pt(/^[a-z][.\w]*(-[.\w]+)+$/i),Dm=pt(/<[/\w!]/g),Cm=pt(/<[/\w]/g),Jy=pt(/<\/no(script|embed|frames)/i),Wy=pt(/\/>/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},ap=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Iy=ft(Ne({},ap)),Fy=(function(){const u={};return ra(ap,c=>{u[c]=pt(new RegExp("</"+c+"(?=[\\t\\n\\f\\r />])","i"))}),ft(u)})(),Py=function(){return typeof window>"u"?null:window},ex=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 Lt(c,o)&&ls(c[o])?Ne(d.base?Jt(d.base):{},c[o],d.transform):r},so=function(c,o,r){const d=Lt(c,o)?c[o]:void 0;return d&&typeof d=="object"?Jt(d):r()};function sp(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Py();const c=G=>sp(G);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 w=u.DOMParser,z=u.trustedTypes,_=v.prototype,q=bl(_,"cloneNode"),Y=bl(_,"remove"),Q=bl(_,"nextSibling"),W=bl(_,"childNodes"),O=bl(_,"parentNode"),pe=bl(_,"shadowRoot"),oe=bl(_,"attributes"),de=p&&p.prototype?bl(p.prototype,"nodeType"):null,te=p&&p.prototype?bl(p.prototype,"nodeName"):null,X=p&&p.prototype?bl(p.prototype,"ownerDocument"):null,J=function(g){return de?de(g):g.nodeType},ce=function(g){return te?te(g):g.nodeName};if(typeof h=="function"){const G=o.createElement("template");G.content&&G.content.ownerDocument&&(o=G.content.ownerDocument)}let ie,Oe="",P,ge=!1,ct=0;const Wt=function(){if(ct>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.')},dt=function(g){Wt(),ct++;try{return ie.createHTML(g)}finally{ct--}},C=function(g){Wt(),ct++;try{return ie.createScriptURL(g)}finally{ct--}},Z=function(){return ge||(P=ex(z,d),ge=!0),P},ae=o,ke=ae.implementation,De=ae.createNodeIterator,S=ae.createDocumentFragment,H=ae.getElementsByTagName,V=r.importNode;let $=Mm();c.isSupported=typeof lp=="function"&&typeof O=="function"&&ke&&ke.createHTMLDocument!==void 0;const ue=qy,me=Yy,we=Gy,gt=$y,Ve=Xy,Ln=Qy,Hn=Zy,as=Ky;let ss=Om,Te=null;const Bn=Ne({},[...Am,...to,...lo,...no,..._m]);let Le=null;const is=Ne({},[...zm,...ao,...Rm,...Bc]);let Ht=Object.seal(ts(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,pa=null;const It=Object.seal(ts(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xi=!0,cs=!0,kt=!1,bi=!0,dl=!1,Nl=!0,Ft=!1,us=!1,qn=null,ga=null,rs=!1,Pt=!1,ht=!1,Bt=!1,wt=!0,ji=!1;const Si="user-content-";let os=!0,ln=!1,hl={},ml=null;const kl=Ne({},["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=Ne({},["audio","video","img","source","image","track"]);let Ni=null;const fs=Ne({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",wl="http://www.w3.org/2000/svg",el="http://www.w3.org/1999/xhtml";let Cl=el,va=!1,ya=null;const ds=Ne({},[an,wl,el],eo),xa=ft(["mi","mo","mn","ms","mtext"]);let ba=Ne({},xa);const hs=ft(["annotation-xml"]);let tl=Ne({},hs);const ut=Ne({},["title","style","font","a","script"]);let Pe=null;const sn=["application/xhtml+xml","text/html"],ms="text/html";let Ke=null,cn=null;const ki=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),Pe=sn.indexOf(g.PARSER_MEDIA_TYPE)===-1?ms:g.PARSER_MEDIA_TYPE,Ke=Pe==="application/xhtml+xml"?eo:hi,Te=Un(g,"ALLOWED_TAGS",Bn,{transform:Ke}),Le=Un(g,"ALLOWED_ATTR",is,{transform:Ke}),ya=Un(g,"ALLOWED_NAMESPACES",ds,{transform:eo}),Ni=Un(g,"ADD_URI_SAFE_ATTR",fs,{transform:Ke,base:fs}),Yn=Un(g,"ADD_DATA_URI_TAGS",nn,{transform:Ke,base:nn}),ml=Un(g,"FORBID_CONTENTS",kl,{transform:Ke}),Dl=Un(g,"FORBID_TAGS",Jt({}),{transform:Ke}),pa=Un(g,"FORBID_ATTR",Jt({}),{transform:Ke}),hl=Lt(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,kt=g.ALLOW_UNKNOWN_PROTOCOLS||!1,bi=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,dl=g.SAFE_FOR_TEMPLATES||!1,Nl=g.SAFE_FOR_XML!==!1,Ft=g.WHOLE_DOCUMENT||!1,Pt=g.RETURN_DOM||!1,ht=g.RETURN_DOM_FRAGMENT||!1,Bt=g.RETURN_TRUSTED_TYPE||!1,rs=g.FORCE_BODY||!1,wt=g.SANITIZE_DOM!==!1,ji=g.SANITIZE_NAMED_PROPS||!1,os=g.KEEP_CONTENT!==!1,ln=g.IN_PLACE||!1,ss=Ly(g.ALLOWED_URI_REGEXP)?g.ALLOWED_URI_REGEXP:Om,Cl=typeof g.NAMESPACE=="string"?g.NAMESPACE:el,ba=so(g,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ne({},xa)),tl=so(g,"HTML_INTEGRATION_POINTS",()=>Ne({},hs));const N=so(g,"CUSTOM_ELEMENT_HANDLING",()=>ts(null));if(Ht=ts(null),Lt(N,"tagNameCheck")&&un(N.tagNameCheck)&&(Ht.tagNameCheck=N.tagNameCheck),Lt(N,"attributeNameCheck")&&un(N.attributeNameCheck)&&(Ht.attributeNameCheck=N.attributeNameCheck),Lt(N,"allowCustomizedBuiltInElements")&&typeof N.allowCustomizedBuiltInElements=="boolean"&&(Ht.allowCustomizedBuiltInElements=N.allowCustomizedBuiltInElements),pt(Ht),dl&&(cs=!1),ht&&(Pt=!0),hl&&(Te=Ne({},_m),Le=ts(null),hl.html===!0&&(Ne(Te,Am),Ne(Le,zm)),hl.svg===!0&&(Ne(Te,to),Ne(Le,ao),Ne(Le,Bc)),hl.svgFilters===!0&&(Ne(Te,lo),Ne(Le,ao),Ne(Le,Bc)),hl.mathMl===!0&&(Ne(Te,no),Ne(Le,Rm),Ne(Le,Bc))),It.tagCheck=null,It.attributeCheck=null,Lt(g,"ADD_TAGS")&&(typeof g.ADD_TAGS=="function"?It.tagCheck=g.ADD_TAGS:ls(g.ADD_TAGS)&&(Te===Bn&&(Te=Jt(Te)),Ne(Te,g.ADD_TAGS,Ke))),Lt(g,"ADD_ATTR")&&(typeof g.ADD_ATTR=="function"?It.attributeCheck=g.ADD_ATTR:ls(g.ADD_ATTR)&&(Le===is&&(Le=Jt(Le)),Ne(Le,g.ADD_ATTR,Ke))),Lt(g,"ADD_FORBID_CONTENTS")&&ls(g.ADD_FORBID_CONTENTS)&&(ml===kl&&(ml=Jt(ml)),Ne(ml,g.ADD_FORBID_CONTENTS,Ke)),os&&(Te["#text"]=!0),Ft&&Ne(Te,["html","head","body"]),Te.table&&(Ne(Te,["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 B=ie;ie=g.TRUSTED_TYPES_POLICY;try{Oe=dt("")}catch(K){throw ie=B,K}}else g.TRUSTED_TYPES_POLICY===null?(ie=void 0,Oe=""):(ie===void 0&&(ie=Z()),ie&&typeof Oe=="string"&&(Oe=dt("")));ft&&ft(g),cn=g},Ml=Ne({},[...to,...lo,...Hy]),Ul=Ne({},[...no,...By]),$n=function(g,N,B){return N.namespaceURI===el?g==="svg":N.namespaceURI===an?g==="svg"&&(B==="annotation-xml"||ba[B]):!!Ml[g]},rn=function(g,N,B){return N.namespaceURI===el?g==="math":N.namespaceURI===wl?g==="math"&&tl[B]:!!Ul[g]},et=function(g,N,B){return N.namespaceURI===wl&&!tl[B]||N.namespaceURI===an&&!ba[B]?!1:!Ul[g]&&(ut[g]||!Ml[g])},wi=function(g){let N=O(g);(!N||!N.tagName)&&(N={namespaceURI:Cl,tagName:"template"});const B=hi(g.tagName),K=hi(N.tagName);return ya[g.namespaceURI]?g.namespaceURI===wl?$n(B,N,K):g.namespaceURI===an?rn(B,N,K):g.namespaceURI===el?et(B,N,K):!!(Pe==="application/xhtml+xml"&&ya[g.namespaceURI]):!1},pl=function(g){ri(c.removed,{element:g});try{O(g).removeChild(g)}catch{if(Y(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")}},Tl=function(g,N,B){try{g.removeAttributeNode(N)}catch{try{g.removeAttribute(B)}catch{}}},gl=function(g){Xn(g);const N=W(g);if(N){const K=[];ra(N,I=>{ri(K,I)}),ra(K,I=>{try{Y(I)}catch{}})}const B=oe(g);if(B)for(let K=B.length-1;K>=0;--K){const I=B[K],ne=I&&I.name;typeof ne=="string"&&Tl(g,I,ne)}},Ll=function(g,N,B){if(!B)try{B=N.getAttributeNode(g)}catch{B=null}ri(c.removed,{attribute:B||null,from:N});try{B?N.removeAttributeNode(B):N.removeAttribute(g)}catch{try{N.removeAttribute(g)}catch{}}if(g==="is")if(Pt||ht)try{pl(N)}catch{}else try{N.setAttribute(g,"")}catch{}},Ti=function(g){const N=oe(g);if(N)for(let B=N.length-1;B>=0;--B){const K=N[B],I=K&&K.name;typeof I!="string"||Le[Ke(I)]||Tl(g,K,I)}},Xn=function(g){const N=[g];for(;N.length>0;){const B=N.pop();J(B)===Kt.element&&Ti(B);const I=W(B);if(I)for(let ne=I.length-1;ne>=0;--ne)N.push(I[ne])}},Ei=function(g,N){return Nl?g==="patchsrc"?!0:g==="for"&&N!=="label"&&N!=="output":!1},ja=function(g){if(!Nl)return;const N=[g];for(;N.length>0;){const B=N.pop(),K=J(B);if(K===Kt.processingInstruction||K===Kt.comment&&Et(Cm,B.data)){try{Y(B)}catch{}continue}if(K===Kt.element){const ne=B,Ce=Ke(ce(B));try{ne.hasAttribute&&ne.hasAttribute("patchsrc")&&ne.removeAttribute("patchsrc"),ne.hasAttribute&&ne.hasAttribute("for")&&Ei("for",Ce)&&ne.removeAttribute("for")}catch{}}const I=W(B);if(I)for(let ne=I.length-1;ne>=0;--ne)N.push(I[ne])}},Qn=function(g){let N=null,B=null;if(rs)g="<remove></remove>"+g;else{const ne=km(g,/^[\r\n\t ]+/);B=ne&&ne[0]}Pe==="application/xhtml+xml"&&Cl===el&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const K=ie?dt(g):g;if(Cl===el)try{N=new w().parseFromString(K,Pe)}catch{}if(!N||!N.documentElement){N=ke.createDocument(Cl,"template",null);try{N.documentElement.innerHTML=va?Oe:K}catch{}}const I=N.body||N.documentElement;return g&&B&&I.insertBefore(o.createTextNode(B),I.childNodes[0]||null),Cl===el?H.call(N,Ft?"html":"body")[0]:Ft?N.documentElement:I},ll=function(g){const N=X?X(g):g.ownerDocument;return De.call(N||g,g,b.SHOW_ELEMENT|b.SHOW_COMMENT|b.SHOW_TEXT|b.SHOW_PROCESSING_INSTRUCTION|b.SHOW_CDATA_SECTION,null)},vt=function(g){return g=oi(g,ue," "),g=oi(g,me," "),g=oi(g,we," "),g},Sa=function(g){var N;g.normalize();const B=X?X(g):g.ownerDocument,K=De.call(B||g,g,b.SHOW_TEXT|b.SHOW_COMMENT|b.SHOW_CDATA_SECTION|b.SHOW_PROCESSING_INSTRUCTION,null);let I=K.nextNode();for(;I;)I.data=vt(I.data),I=K.nextNode();const ne=(N=g.querySelectorAll)===null||N===void 0?void 0:N.call(g,"template");ne&&ra(ne,Ce=>{El(Ce.content)&&Sa(Ce.content)})},Na=function(g){const N=te?te(g):null;return typeof N!="string"||Ke(N)!=="form"?!1:typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||g.attributes!==oe(g)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function"||g.nodeType!==de(g)||g.childNodes!==W(g)},El=function(g){if(!de||typeof g!="object"||g===null)return!1;try{return de(g)===Kt.documentFragment}catch{return!1}},on=function(g){if(!de||typeof g!="object"||g===null)return!1;try{return typeof de(g)=="number"}catch{return!1}};function _t(G,g,N){G.length!==0&&ra(G,B=>{B.call(c,g,N,cn)})}const Vc=function(g,N){return!!(Nl&&g.hasChildNodes()&&!on(g.firstElementChild)&&Et(Dm,g.textContent)&&Et(Dm,g.innerHTML)||Nl&&g.namespaceURI===el&&Iy[N]&&(on(g.firstElementChild)||typeof g.textContent=="string"&&Et(Fy[N],g.textContent))||g.nodeType===Kt.processingInstruction||Nl&&g.nodeType===Kt.comment&&Et(Cm,g.data))},yt=function(g,N){if(g instanceof RegExp)return Et(g,N);if(g instanceof Function){for(var B=arguments.length,K=new Array(B>2?B-2:0),I=2;I<B;I++)K[I-2]=arguments[I];return!!g(N,...K)}return!1},ps=function(g,N,B){if(!Dl[N]&&Bl(N)&&yt(Ht.tagNameCheck,N))return!1;if(os&&!ml[N]){const K=O(g),I=W(g);if(I&&K){const ne=I.length;for(let Ce=ne-1;Ce>=0;--Ce){const Ge=g===B?q(I[Ce],!0):I[Ce];K.insertBefore(Ge,Q(g))}}}return pl(g),!0},gs=function(g,N,B,K){return g.length===0?N:N===B||N===K?Jt(N):N},ka=function(g,N){return g===N||O(g)!==null?!1:(ln&&Xn(g),!0)},Hl=function(g,N){if(_t($.beforeSanitizeElements,g,null),ka(g,N))return!0;if(Na(g))return pl(g),!0;const B=Ke(ce(g));if(Te=gs($.uponSanitizeElement,Te,Bn,qn),_t($.uponSanitizeElement,g,{tagName:B,allowedTags:Te}),ka(g,N))return!0;if(Vc(g,B))return pl(g),!0;if(Dl[B]||!(It.tagCheck instanceof Function&&It.tagCheck(B))&&!Te[B]){const I=ps(g,B,N);return I===!1&&_t($.afterSanitizeElements,g,null),I}if(J(g)===Kt.element&&!wi(g)||(B==="noscript"||B==="noembed"||B==="noframes")&&Et(Jy,g.innerHTML))return pl(g),!0;if(dl&&g.nodeType===Kt.text){const I=vt(g.textContent);g.textContent!==I&&(ri(c.removed,{element:g.cloneNode()}),g.textContent=I)}return _t($.afterSanitizeElements,g,null),!1},vs=function(g,N,B){if(pa[N]||Ei(N,g)||wt&&(N==="id"||N==="name")&&(B in o||B in ki))return!1;const K=Le[N]||It.attributeCheck instanceof Function&&It.attributeCheck(N,g);return cs&&Et(gt,N)||xi&&Et(Ve,N)?!0:K?Ni[N]||Et(ss,oi(B,Hn,""))||(N==="src"||N==="xlink:href"||N==="href")&&g!=="script"&&wm(B,"data:")===0&&Yn[g]||kt&&!Et(Ln,oi(B,Hn,""))?!0:!B:Bl(g)&&yt(Ht.tagNameCheck,g)&&yt(Ht.attributeNameCheck,N,g)||N==="is"&&Ht.allowCustomizedBuiltInElements&&yt(Ht.tagNameCheck,B)},Ai=Ne({},["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)]&&Et(as,g)},Kc=function(g,N,B,K){if(ie&&typeof z=="object"&&typeof z.getAttributeType=="function"&&!B)switch(z.getAttributeType(g,N)){case"TrustedHTML":return dt(K);case"TrustedScriptURL":return C(K)}return K},_i=function(g,N,B,K){try{B?g.setAttributeNS(B,N,K):g.setAttribute(N,K),Na(g)?pl(g):Nm(c.removed)}catch{Ll(N,g)}},ys=function(g){_t($.beforeSanitizeAttributes,g,null);const N=g.attributes;if(!N||Na(g))return;Le=gs($.uponSanitizeAttribute,Le,is,ga);const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le,forceKeepAttr:void 0};let K=N.length;const I=Ke(g.nodeName);for(;K--;){const ne=N[K],Ce=ne.name,Ge=ne.namespaceURI,xt=ne.value,tt=Ke(Ce),qt=xt;let rt=Ce==="value"?qt:Ry(qt);if(B.attrName=tt,B.attrValue=rt,B.keepAttr=!0,B.forceKeepAttr=void 0,_t($.uponSanitizeAttribute,g,B),rt=B.attrValue,ji&&(tt==="id"||tt==="name")&&wm(rt,Si)!==0&&(Ll(Ce,g,ne),rt=Si+rt),Nl&&Et(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,rt)){Ll(Ce,g,ne);continue}if(tt==="attributename"&&km(rt,"href")){Ll(Ce,g,ne);continue}if(!B.forceKeepAttr){if(!B.keepAttr){Ll(Ce,g,ne);continue}if(!bi&&Et(Wy,rt)){Ll(Ce,g,ne);continue}if(dl&&(rt=vt(rt)),!vs(I,tt,rt)){Ll(Ce,g,ne);continue}rt=Kc(I,tt,Ge,rt),rt!==qt&&_i(g,Ce,Ge,rt)}}_t($.afterSanitizeAttributes,g,null)},fn=function(g){let N=null;const B=ll(g);for(_t($.beforeSanitizeShadowDOM,g,null);N=B.nextNode();)if(_t($.uponSanitizeShadowNode,N,null),Hl(N,g),ys(N),El(N.content)&&fn(N.content),J(N)===Kt.element){const K=pe(N);El(K)&&(xs(K),fn(K))}_t($.afterSanitizeShadowDOM,g,null)},xs=function(g){const N=[{node:g,shadow:null}];for(;N.length>0;){const B=N.pop();if(B.shadow){fn(B.shadow);continue}const K=B.node,ne=J(K)===Kt.element,Ce=W(K);if(Ce)for(let Ge=Ce.length-1;Ge>=0;--Ge)N.push({node:Ce[Ge],shadow:null});if(ne){const Ge=te?te(K):null;if(typeof Ge=="string"&&Ke(Ge)==="template"){const xt=K.content;El(xt)&&N.push({node:xt,shadow:null})}}if(ne){const Ge=pe(K);El(Ge)&&N.push({node:null,shadow:Ge},{node:Ge,shadow:null})}}};return c.sanitize=function(G){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=null,B=null,K=null,I=null;if(va=!G,va&&(G="<!-->"),typeof G!="string"&&!on(G)&&(G=Uy(G),typeof G!="string"))throw ua("dirty is not a string, aborting");if(!c.isSupported)return G;us?(Te=qn,Le=ga):Gn(g),($.uponSanitizeElement.length>0||$.uponSanitizeAttribute.length>0)&&(Te=Jt(Te)),$.uponSanitizeAttribute.length>0&&(Le=Jt(Le)),c.removed=[];const ne=ln&&typeof G!="string"&&on(G);if(ne){ja(G);const xt=ce(G);if(typeof xt=="string"){const tt=Ke(xt);if(!Te[tt]||Dl[tt])throw gl(G),ua("root node is forbidden and cannot be sanitized in-place")}if(Na(G))throw gl(G),ua("root node is clobbered and cannot be sanitized in-place");try{xs(G)}catch(tt){throw gl(G),tt}}else if(on(G))N=Qn("<!---->"),B=N.ownerDocument.importNode(G,!0),B.nodeType===Kt.element&&B.nodeName==="BODY"||B.nodeName==="HTML"?N=B:N.appendChild(B),xs(B);else{if(!Pt&&!dl&&!Ft&&G.indexOf("<")===-1)return ie&&Bt?dt(G):G;if(N=Qn(G),!N)return Pt?null:Bt?Oe:""}N&&rs&&pl(N.firstChild);const Ce=ne?G:N;try{const xt=ll(Ce);for(;K=xt.nextNode();)Hl(K,Ce),ys(K),El(K.content)&&fn(K.content)}catch(xt){throw ne&&(gl(G),ra(c.removed,tt=>{tt.element&&Xn(tt.element)})),xt}if(ne)return ra(c.removed,xt=>{xt.element&&Xn(xt.element)}),dl&&Sa(G),G;if(Pt){if(dl&&Sa(N),ht)for(I=S.call(N.ownerDocument);N.firstChild;)I.appendChild(N.firstChild);else I=N;return(Le.shadowroot||Le.shadowrootmode)&&(I=V.call(r,I,!0)),I}let Ge=Ft?N.outerHTML:N.innerHTML;return Ft&&Te["!doctype"]&&N.ownerDocument&&N.ownerDocument.doctype&&N.ownerDocument.doctype.name&&Et(Vy,N.ownerDocument.doctype.name)&&(Ge="<!DOCTYPE "+N.ownerDocument.doctype.name+`>
75
+ `+Ge),dl&&(Ge=vt(Ge)),ie&&Bt?dt(Ge):Ge},c.setConfig=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gn(G),us=!0,qn=Te,ga=Le},c.clearConfig=function(){cn=null,us=!1,qn=null,ga=null,ie=P,Oe=""},c.isValidAttribute=function(G,g,N){cn||Gn({});const B=Ke(G),K=Ke(g);return vs(B,K,N)},c.addHook=function(G,g){typeof g=="function"&&Lt($,G)&&ri($[G],g)},c.removeHook=function(G,g){if(Lt($,G)){if(g!==void 0){const N=_y($[G],g);return N===-1?void 0:zy($[G],N,1)[0]}return Nm($[G])}},c.removeHooks=function(G){Lt($,G)&&($[G]=[])},c.removeAllHooks=function(){$=Mm()},c}var yi=sp();const tx=[{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 ma(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&&fl(r.scope?.kind==="team"?`/agents/${encodeURIComponent(r.scope.member)}/chat/${r.id}`:`/agents/chats/${r.id}`)}function lx(){const[u,c]=L.useState("claude"),[o,r]=L.useState(!0),[d,h]=L.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:tx.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 ma(u,{kind:o?"kraftwerk":"general"}),h(!1)},children:d?"starting…":"start chat"})})]})]})}function Um({id:u}){const[c,o]=L.useState(null),[r,d]=L.useState([]),[h,p]=L.useState(!1);L.useEffect(()=>{let b=!0,y=null;return fetch(`/api/chats/${u}`).then(w=>w.ok?w.json():Promise.reject()).then(w=>{if(!b)return;o(w.meta),d(w.events);const z=w.events[w.events.length-1]?.seq??0;y=new EventSource(`/api/chats/${u}/events?after=${z}`),y.onmessage=_=>{const q=JSON.parse(_.data);d(Y=>Y.some(Q=>Q.seq===q.seq)?Y:[...Y,q])}}).catch(()=>b&&p(!0)),()=>{b=!1,y?.close()}},[u]);const v=L.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(Re,{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(Re,{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(Re,{href:`/agents/${encodeURIComponent(c.scope.member)}/info`,className:"chip",children:["agent:",c.scope.member]}),s.jsx("span",{className:"rid",title:c.cwd,children:c.cwd})]}),s.jsx(ax,{id:u,events:r,busy:v}),s.jsx(ux,{id:u,busy:v,scope:c.scope})]}):s.jsx("div",{className:"empty",children:"loading…"})}function nx(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 ax({id:u,events:c,busy:o}){const r=mi(),d=L.useMemo(()=>{const v=nx(c);return r?v:v.filter(b=>b.kind!=="tool"&&b.kind!=="thought")},[c,r]),h=L.useRef(null),p=L.useRef(!0);return L.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(ix,{b:v,chatId:u},v.key)),o&&s.jsxs("div",{className:"chat-working",children:[s.jsx("span",{className:"lamp running"})," working…"]})]})}function sx({text:u}){const c=L.useMemo(()=>yi.sanitize(_e.parse(u,{async:!1})),[u]);return s.jsx("div",{className:"msg agent md-body chat-md",dangerouslySetInnerHTML:{__html:c}})}function ix({b:u,chatId:c}){switch(u.kind){case"user":return s.jsx("div",{className:"msg user",children:u.text});case"agent":return s.jsx(sx,{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(cx,{b:u,chatId:c});case"error":return s.jsxs("div",{className:"msg error",children:["✕ ",u.text]})}}function cx({b:u,chatId:c}){const[o,r]=L.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 ux({id:u,busy:c,scope:o}){const[r,d]=L.useState(""),[h,p]=L.useState([]),[v,b]=L.useState(0),[y,w]=L.useState(!1);L.useEffect(()=>{let O=!0;return(async()=>{try{let oe=(await fetch("/api/skills").then(de=>de.json())).skills??[];if(o?.kind==="team"){const de=await fetch(`/api/team/${encodeURIComponent(o.member)}`).then(te=>te.ok?te.json():null).catch(()=>null);if(de&&Array.isArray(de.skills)){const te=new Set(de.skills.map(X=>X.toLowerCase()));oe=oe.filter(X=>te.has(X.name.toLowerCase()))}}O&&p(oe)}catch{}})(),()=>{O=!1}},[u]);const z=/^\/([\w-]*)$/.exec(r)?.[1],_=z!==void 0&&!y?h.filter(O=>O.name.toLowerCase().startsWith(z.toLowerCase())):[],q=_.length>0,Y=Math.min(v,_.length-1);function Q(O){d(`/${O.name} `),b(0)}async function W(){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,pe)=>s.jsxs("button",{className:pe===Y?"active":"",onMouseDown:oe=>{oe.preventDefault(),Q(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),w(!1)},onKeyDown:O=>{if(q){if(O.key==="ArrowDown")return O.preventDefault(),b((Y+1)%_.length);if(O.key==="ArrowUp")return O.preventDefault(),b((Y-1+_.length)%_.length);if(O.key==="Tab"||O.key==="Enter")return O.preventDefault(),Q(_[Y]);if(O.key==="Escape")return O.preventDefault(),w(!0)}O.key==="Enter"&&!O.shiftKey&&(O.preventDefault(),W())}}),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:W,children:"send"})]})}function rx({id:u}){const c=Ye("/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(ox,{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(fx,{id:u},u)})]})}function ox({r:u,active:c}){return s.jsxs(Re,{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:fa(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 fx({id:u}){const c=Ye(`/api/runs/${u}`,!0),o=c?.status==="running",[r,d]=L.useState(null),[h,p]=L.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"),w=v?c.files.length:c.files.filter(_=>!Xc(_.name)).length;async function z(){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(Re,{href:`/workflows/${encodeURIComponent(c.workflow)}`,title:"open workflow",children:c.workflow}):"unknown workflow"}),s.jsx(Nv,{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:z,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:()=>{ma("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:["(",w,")"]})]})]})]}),c.request&&s.jsx("p",{className:"detail-req",children:c.request}),y==="run"?s.jsx(dx,{run:c,live:o}):s.jsx(gx,{id:u,files:c.files,live:o})]})}function dx({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??hx(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(mx,{p:o},o.phase))})]})]})}function Lm(u,c){return u.reduce((o,r)=>o+(r[c]??0),0)}function hx(u){return u.reduce((c,o)=>c+(o.costUsd??0),0)}function mx({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 ip=new Set(["png","jpg","jpeg","gif","webp","svg"]);function Xc(u){return u==="runner.json"||u.endsWith(".jsonl")||u.endsWith(".log")}function px(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)||ip.has(p)?0:Xc(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 gx({id:u,files:c,live:o}){const[r,d]=L.useState(null),h=mi(),p=L.useMemo(()=>h?c:c.filter(v=>!Xc(v.name)),[c,h]);return L.useEffect(()=>{!h&&r&&Xc(r)&&d(null)},[h,r]),L.useEffect(()=>{r||p.length===0||d(px(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(vx,{id:u,name:r,live:o}):s.jsx("div",{className:"empty",children:"select a file"})]})]})}function vx({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})})}):ip.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(yx,{id:u,name:c,live:o}):s.jsx(xx,{id:u,name:c,live:o})}function yx({id:u,name:c,live:o}){const[r,d]=L.useState("rendered"),h=Ye(`/api/runs/${u}/file?name=${encodeURIComponent(c)}`,o),p=L.useMemo(()=>h?yi.sanitize(_e.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 xx({id:u,name:c,live:o}){const r=Ye(`/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 bx(){const u=Ye("/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(Re,{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 jx({slug:u}){const c=Ye(`/api/workflows/${encodeURIComponent(u)}`,!1),o=Ye("/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(Sx,{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(Nx,{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(kx,{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(Re,{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)," · ",fa(h.startedAt)]})]},h.id)),d.length===0&&s.jsx("div",{className:"viewer-note",children:"no runs of this workflow yet"})]})]})]})]})]})}function Sx({slug:u,lastRequest:c}){const[o,r]=L.useState(""),[d,h]=L.useState(!0),[p,v]=L.useState(!1),[b,y]=L.useState(!1),[w,z]=L.useState(null),_=Ye(`/api/workflows/${encodeURIComponent(u)}/run`,!1);L.useEffect(()=>{!o&&c&&r(c)},[c]);const q=_?.available&&_?.image,Y=_?_.available?_.image?"isolated container per run":"image missing — run `kraftwerk runner build`":"Docker not running — sandbox unavailable":"";async function Q(){if(!(!o.trim()||b)){y(!0),z(null);try{const W=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 W.json();if(!W.ok)throw new Error(O.error??`HTTP ${W.status}`);fl(`/runs/${O.runId}`)}catch(W){z(W.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:W=>r(W.target.value),onKeyDown:W=>W.key==="Enter"&&Q()}),s.jsx("button",{className:"run-btn",onClick:Q,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:W=>h(W.target.checked)}),"docker sandbox ",Y&&s.jsxs("span",{className:"opt-hint",children:["— ",Y]})]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:p,onChange:W=>v(W.target.checked),disabled:!d}),"forward SSH agent"]})]}),w&&s.jsx("div",{className:"gate-fail-msg",children:w})]})}function Hm({slug:u}){return s.jsxs("nav",{className:"crumbs",children:[s.jsx(Re,{href:"/workflows",children:"workflows"}),s.jsx("span",{className:"sep",children:"/"}),s.jsx("span",{className:"mono",children:u})]})}function Nx({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 kx({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 wx=u=>u==="ok"?"ok":u==="running"?"running":u==="aborted"?"aborted":"failed",Tx=u=>u==="ok"?"done":u==="running"?"working":u==="aborted"?"stopped":"failed";function Ex(u){return u.scope.kind==="team"?`/agents/${u.scope.member}/chat/${u.id}`:`/agents/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 Ax(){const u=Ye("/api/runs",!1),c=Ye("/api/chats",!1),o=Ye("/api/knowledge",!1),r=Ye("/api/team",!1),d=Ye("/api/workflows",!1),h=Ye("/api/skills",!1),p=Ye("/api/meta",!1),[v,b]=L.useState("all"),y=u?.runs??[],w=c?.chats??[],z=o?.bundles??[],_=(h?.skills??[]).filter(Q=>Q.source==="workspace"),q=[[d?.workflows.length,"workflows","/workflows"],[u?y.length:void 0,"runs","/runs"],[o?z.length:void 0,"bundles","/knowledge"],[h?_.length:void 0,"skills","/skills"],[c?w.length:void 0,"chats","/agents/chats"]],Y=y.filter(Q=>Q.status==="failed"&&Date.now()-Date.parse(Q.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(([Q,W,O])=>s.jsxs(Re,{href:O,children:[s.jsx("b",{className:"num",children:Q??"…"})," ",W]},W))})]}),s.jsx(_x,{workflows:d?.workflows??[]}),s.jsx(zx,{members:r?.members,chats:w}),Y.length>0&&v!=="failed"&&s.jsxs("button",{className:"dash-alert",onClick:()=>b("failed"),children:["⚠ ",Y.length," run",Y.length===1?"":"s"," failed in the last 24 h — review"]}),s.jsx(Dx,{runs:y,chats:w,bundles:z,members:r?.members??[],workflows:d?.workflows??[],filter:v,setFilter:b})]})}function _x({workflows:u}){const[c,o]=L.useState(!1);return L.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:()=>fl("/agents/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(Re,{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 zx({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(Re,{href:"/agents/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=()=>fl(`/agents/${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(Re,{href:`/agents/${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 ",Qm(h.updatedAt)]}):"never talked yet"}),s.jsx("button",{className:"run-btn dash-chat-btn",onClick:v=>{v.stopPropagation(),ma("claude",{kind:"team",member:o.slug})},children:"💬 chat"})]})]},o.slug)})})}function Rx(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 Ox=[["all","all"],["run","runs"],["session","chats"],["knowledge","knowledge"]];function Dx({runs:u,chats:c,bundles:o,members:r,workflows:d,filter:h,setFilter:p}){const v=mi(),b=L.useMemo(()=>{const w=[],z=q=>q?d.find(Y=>Y.slug===q)?.name??q:void 0;for(const q of u)w.push({at:q.updatedAt,kind:"run",emoji:"⚙️",title:z(q.workflow)??q.id,sub:q.request??"",href:`/runs/${q.id}`,lamp:wx(q.status),status:Tx(q.status)});for(const q of c){const Y=q.scope.kind==="team"?r.find(Q=>q.scope.kind==="team"&&Q.slug===q.scope.member):void 0;w.push({at:q.updatedAt,kind:"session",emoji:Y?Y.emoji||"🤖":"💬",title:Y?Y.name:q.title||"new chat",sub:Y?`${q.title||"new chat"}${v?` · ${q.agent}`:""}`:v?`${q.agent} · ${Bm(q)}`:Bm(q),href:Ex(q),lamp:q.busy?"running":"ok",status:q.busy?"working":void 0})}for(const q of o)q.updatedAt&&w.push({at:q.updatedAt,kind:"knowledge",emoji:"📚",title:q.name,sub:`${q.concepts} concepts`,href:`/knowledge/${encodeURIComponent(q.name)}`,lamp:"ok"});return(h==="all"?w:h==="failed"?w.filter(q=>q.kind==="run"&&q.lamp==="failed"):w.filter(q=>q.kind===h)).sort((q,Y)=>{const Q=+(Y.lamp==="running")-+(q.lamp==="running");return Q!==0?Q:Y.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:[Ox.map(([w,z])=>s.jsx("button",{className:`feed-chip ${h===w?"on":""}`,onClick:()=>p(w),children:z},w)),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(w=>{const z=Rx(w),_=z!==y?z:null;return y=z,s.jsxs("div",{className:"feed-group",children:[_&&s.jsx("div",{className:"feed-day microlabel",children:_}),s.jsxs(Re,{href:w.href,className:"m3-row m3-link",children:[s.jsxs("span",{className:"agent-avatar",children:[s.jsx("span",{"aria-hidden":!0,children:w.emoji}),w.lamp==="running"&&s.jsx("span",{className:"lamp running"})]}),s.jsx("span",{className:`chip dash-kind ${w.kind}`,children:w.kind==="session"?"chat":w.kind}),s.jsxs("span",{className:"m3-body",children:[s.jsx("span",{className:"m3-head",children:qm(w.title)}),w.sub&&s.jsx("span",{className:"m3-sub",children:qm(w.sub)})]}),w.status&&s.jsx("span",{className:`chip status ${w.lamp}`,children:w.status}),s.jsx("span",{className:"side-when num",title:new Date(w.at).toLocaleString(),children:Qm(w.at)}),s.jsx("span",{className:"m3-chev",children:"›"})]})]},`${w.kind}:${w.href}:${w.at}`)})})]})}function Cx({bundle:u,conceptId:c}){const o=Ye("/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(Re,{href:"/knowledge",className:"open-raw",children:"+ new"})]}),s.jsxs("div",{className:"side-list",children:[r.map(d=>s.jsxs(Re,{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(Gx,{bundle:u,conceptId:c},`${u}/${c}`):u?s.jsx(Ux,{name:u},u):s.jsx(Mx,{root:o?.root})})]})}function Mx({root:u}){const[c,o]=L.useState(""),[r,d]=L.useState(""),[h,p]=L.useState(!1);async function v(){const b=c.trim();if(!b)return;p(!0),d("");const w=await(await fetch("/api/knowledge",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:b})})).json();p(!1),w.error?d(w.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 Ux({name:u}){const c=Ye(`/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:()=>{ma("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:Yx(c.concepts).map(({folder:o,concepts:r})=>s.jsxs(L.Fragment,{children:[o&&s.jsxs("div",{className:"m3-subhead",children:[o,"/"]}),r.map(d=>s.jsxs(Re,{href:`/knowledge/${encodeURIComponent(u)}/${d.id}`,className:"m3-row m3-link",children:[s.jsx("span",{className:"m3-ico",children:Lx(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(qx,{name:u,log:c.log})]}):s.jsx("div",{className:"empty",children:"loading…"})}function Lx(u){switch((u??"").toLowerCase()){case"reference":return"▤";case"policy":return"§";case"guide":case"howto":return"➤";case"decision":return"⚖";default:return"◆"}}function Hx(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 Bx(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(Re,{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 qx({name:u,log:c}){const o=Hx(c),[r,d]=L.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(L.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:Bx(u,p.text)})]},v))]},h.date))})]})}function Yx(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 Gx({bundle:u,conceptId:c}){const[o,r]=L.useState(null),[d,h]=L.useState(!1),[p,v]=L.useState(!1),[b,y]=L.useState(!1),[w,z]=L.useState(""),[_,q]=L.useState(!1),[Y,Q]=L.useState(""),[W,O]=L.useState("rendered"),pe=L.useMemo(()=>o?yi.sanitize(_e.parse(o.body,{async:!1})):"",[o?.body]),oe=()=>{fetch(`/api/knowledge/${encodeURIComponent(u)}/concept?id=${encodeURIComponent(c)}`).then(X=>X.ok?X.json():Promise.reject()).then(r).catch(()=>h(!0))};L.useEffect(oe,[u,c]);async function de(){v(!0),await fetch(`/api/knowledge/${encodeURIComponent(u)}/verify`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:c})}).catch(()=>{}),v(!1),oe()}async function te(){q(!0),Q("");const X=await fetch(`/api/knowledge/${encodeURIComponent(u)}/concept`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:c,content:w})}).then(J=>J.json()).catch(()=>({error:"save failed"}));q(!1),X.error?Q(X.error):(r(X),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:()=>{ma("claude",{kind:"knowledge",bundle:u})},children:"curate in chat"}),s.jsx("button",{className:"run-btn",disabled:p,onClick:de,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),Q("")},children:"cancel"}),s.jsx("button",{className:"open-raw",disabled:_,onClick:te,children:_?"saving…":"✓ save"})]}):s.jsx("button",{className:"open-raw",onClick:()=>{z(o.raw),y(!0),Q("")},children:"✎ edit"})]}),b?s.jsxs(s.Fragment,{children:[s.jsx("textarea",{className:"concept-edit",value:w,rows:Math.min(40,Math.max(18,w.split(`
78
+ `).length+2)),onChange:X=>z(X.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:W==="rendered"?"active":"",onClick:()=>O("rendered"),children:"rendered"}),s.jsx("button",{className:W==="source"?"active":"",onClick:()=>O("source"),children:"source"})]})}),s.jsx("div",{className:"viewer-body",children:W==="rendered"?s.jsx("div",{className:"md-body concept-md",dangerouslySetInnerHTML:{__html:pe}}):s.jsx("pre",{children:o.body.trim()||"(empty body)"})})]}),Y&&s.jsxs("div",{className:"msg error",children:["✕ ",Y]})]}),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((X,J)=>s.jsxs("span",{className:"v",children:[X.by??"?"," · ",(X.at??"?").slice(0,10)]},J))]}),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(X=>s.jsx("span",{className:"chip",children:X},X))})]})]})]}),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((X,J)=>s.jsxs("div",{className:"rail-kv",children:[s.jsxs("span",{className:"v",children:[X.resource?.startsWith("http")?s.jsx("a",{href:X.resource,target:"_blank",rel:"noreferrer",children:X.title??X.resource}):X.title??X.resource??"?",X.id&&s.jsxs("span",{className:"know-id",children:["[^",X.id,"]"]})]}),s.jsx("span",{className:"v dim",children:[X.author,X.usage_count!=null?`${X.usage_count} uses`:null,X.last_modified?`mod ${X.last_modified.slice(0,10)}`:null].filter(Boolean).join(" · ")})]},J))})]})]})]})]}):s.jsx("div",{className:"empty",children:"loading…"})}const $x={workspace:"workspace",project:".claude",user:"global"};function cp(u){return s.jsx("span",{className:`chip skill-src ${u}`,children:$x[u]})}function Xx({name:u}){const c=Ye("/api/skills",!1),o=c?.skills??[],r=o.filter(p=>p.source==="workspace"),d=o.filter(p=>p.source!=="workspace"),h=p=>s.jsxs(Re,{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"&&cp(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(L.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(Zx,{name:u},u):s.jsx(Qx,{root:c?.root,workspace:r})})]})}function Qx({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 Zx({name:u}){const[c,o]=L.useState(null),[r,d]=L.useState(!1),[h,p]=L.useState("rendered"),v=L.useMemo(()=>c?c.content.replace(/^---\r?\n[\s\S]*?\r?\n---(\r?\n|$)/,""):"",[c?.content]),b=L.useMemo(()=>c?yi.sanitize(_e.parse(v,{async:!1})):"",[v]);return L.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]}),cp(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 Vx=["","low","medium","high","xhigh","max"],Kx=["🤖","🧑‍💻","🎧","🛠️","📊","✍️","🔍","🧹","📦","🚀"];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]==="info"?"info":u[1]==="chat"?"chat":c?"member":"home",r=o==="chat"?u[2]:o==="chats"?u[1]:void 0,d=Ye("/api/team",!1),h=d?.members??[];let p;o==="new"?p=s.jsx($m,{},"new"):o==="edit"&&c?p=s.jsx($m,{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(lx,{}):o==="info"&&c?p=s.jsx(up,{slug:c},c):c?p=s.jsx(Wx,{slug:c},c):p=s.jsx(Px,{hasMembers:h.length>0,root:d?.root});const v=(o==="member"||o==="info"||o==="chat")&&c?h.find(Q=>Q.slug===c)?.knowledge??[]:[],[b,y]=L.useState(()=>localStorage.getItem("kw-kside")!=="hidden"),[w,z]=L.useState(()=>Number(localStorage.getItem("kw-kside-w"))||460),_=v.length>0&&b;function q(Q){y(Q),localStorage.setItem("kw-kside",Q?"open":"hidden")}function Y(Q){z(Q),localStorage.setItem("kw-kside-w",String(Q))}return s.jsxs("div",{className:`runs-screen team-screen ${c||o==="chats"?"has-sessions":""} ${_?"has-knowledge":""}`,style:_?{"--kside-w":`${w}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(Re,{href:"/agents/new",className:"open-raw",children:"+ new"})]}),s.jsxs("div",{className:"side-list",children:[h.map(Q=>s.jsxs(Re,{href:`/agents/${encodeURIComponent(Q.slug)}`,className:`side-row ${Q.slug===c?"active":""}`,children:[s.jsx("span",{className:"agent-avatar sm",children:s.jsx("span",{"aria-hidden":!0,children:Q.emoji})}),s.jsxs("div",{className:"side-row-body",children:[s.jsx("div",{className:"side-row-top",children:s.jsx("span",{className:"side-wf",children:Q.name})}),s.jsx("div",{className:"side-row-sub",children:s.jsx("span",{className:"side-req",children:Q.description||Q.harness})})]})]},Q.slug)),d&&h.length===0&&s.jsx("div",{className:"viewer-note",children:"no agents yet"})]}),s.jsx("div",{className:"side-pinned",children:s.jsxs(Re,{href:"/agents/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(Ix,{slug:c,chatId:r}),o==="chats"&&s.jsx(Fx,{chatId:r}),s.jsx("div",{className:"runs-main",children:p}),_&&s.jsx(Jx,{bundles:v,onHide:()=>q(!1),onResize:Y}),v.length>0&&!b&&s.jsx("button",{className:"kside-reopen",onClick:()=>q(!0),title:"Show knowledge sidebar",children:"◆ knowledge"})]})}function Jx({bundles:u,onHide:c,onResize:o}){const[r,d]=L.useState({}),[h,p]=L.useState(null),[v,b]=L.useState({}),[y,w]=L.useState({}),[z,_]=L.useState(null),[q,Y]=L.useState(""),[Q,W]=L.useState(!1),[O,pe]=L.useState("");L.useEffect(()=>{d({});for(const te of u)fetch(`/api/knowledge/${encodeURIComponent(te)}`).then(X=>X.ok?X.json():null).then(X=>d(J=>({...J,[te]:X}))).catch(()=>d(X=>({...X,[te]:null})))},[u.join(",")]);async function oe(te,X){const J=`${te}::${X}`;if(h===J){p(null);return}if(p(J),v[J]===void 0)try{const ce=await fetch(`/api/knowledge/${encodeURIComponent(te)}/concept?id=${encodeURIComponent(X)}`),ie=ce.ok?await ce.json():null;b(Oe=>({...Oe,[J]:ie}))}catch{b(ce=>({...ce,[J]:null}))}}async function de(te,X){const J=`${te}::${X}`;W(!0),pe("");try{const ie=await(await fetch(`/api/knowledge/${encodeURIComponent(te)}/concept`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({id:X,content:q})})).json();ie.error?pe(ie.error):(b(Oe=>({...Oe,[J]:ie})),_(null))}catch(ce){pe(ce.message)}W(!1)}return s.jsxs("aside",{className:"runs-side knowledge-side",children:[s.jsx("div",{className:"kside-resizer",title:"Drag to resize",onMouseDown:te=>{te.preventDefault();const X=te.clientX,J=te.currentTarget.parentElement.offsetWidth,ce=Oe=>o(Math.min(900,Math.max(280,J+(X-Oe.clientX)))),ie=()=>{window.removeEventListener("mousemove",ce),window.removeEventListener("mouseup",ie)};window.addEventListener("mousemove",ce),window.addEventListener("mouseup",ie)}}),s.jsxs("div",{className:"side-head",children:[s.jsxs("span",{className:"kside-headline",children:[s.jsx("span",{className:"microlabel",children:"knowledge"}),s.jsx("span",{className:"kside-hint",children:"read & kept current by this agent"})]}),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(te=>{const X=r[te],J=y[te]===!0;return s.jsxs("div",{className:"kside-bundle",children:[s.jsxs("div",{className:"kside-bundle-head",children:[s.jsxs("button",{className:"kside-bundle-toggle","aria-expanded":!J,onClick:()=>w({...y,[te]:!J}),children:[s.jsx("span",{className:`kside-chev ${J?"":"open"}`,"aria-hidden":!0,children:"▸"}),s.jsx("span",{className:"kside-bundle-name",children:te}),X&&s.jsx("span",{className:"kside-count num",children:X.concepts.length})]}),s.jsx(Re,{href:`/knowledge/${encodeURIComponent(te)}`,className:"kside-open",title:"Open this bundle on the knowledge screen",children:"↗"})]}),!J&&X===null&&s.jsx("div",{className:"viewer-note",children:"bundle not found"}),!J&&X?.concepts.map(ce=>{const ie=`${te}::${ce.id}`,Oe=h===ie,P=`/knowledge/${encodeURIComponent(te)}/${ce.id.split("/").map(encodeURIComponent).join("/")}`;return s.jsxs("div",{className:`kside-concept ${Oe?"open":""}`,children:[s.jsxs("button",{className:"kside-row","aria-expanded":Oe,title:ce.description||void 0,onClick:()=>oe(te,ce.id),children:[s.jsx("span",{className:`kside-chev ${Oe?"open":""}`,"aria-hidden":!0,children:"▸"}),s.jsx("span",{className:"kside-title",children:ce.title||ce.id}),ce.stale&&s.jsx("span",{className:"kside-stale",title:"Past its stale-after date — ask the agent to re-verify it",children:"stale"})]}),Oe&&s.jsx("div",{className:"kside-card",ref:ge=>ge?.scrollIntoView({block:"nearest"}),children:v[ie]===void 0?s.jsx("div",{className:"viewer-note",children:"loading…"}):v[ie]===null?s.jsx("div",{className:"viewer-note",children:"could not load concept"}):z===ie?s.jsxs("div",{className:"kside-edit",children:[s.jsx("textarea",{className:"concept-edit",value:q,rows:Math.min(28,Math.max(10,q.split(`
79
+ `).length+2)),onChange:ge=>Y(ge.target.value),spellCheck:!1}),s.jsxs("div",{className:"kside-actions",children:[s.jsx("button",{className:"open-raw",disabled:Q,onClick:()=>_(null),children:"cancel"}),s.jsx("button",{className:"open-raw",disabled:Q,onClick:()=>de(te,ce.id),children:Q?"saving…":"✓ save"})]}),O&&s.jsxs("div",{className:"msg error",children:["✕ ",O]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"kside-card-bar",children:[ce.type&&s.jsx("span",{className:"kside-type",children:ce.type}),Gm(ce)&&s.jsxs("span",{className:"kside-updated num",children:["updated ",fa(Gm(ce))]}),s.jsx("span",{className:"spacer"}),s.jsx("button",{className:"open-raw",onClick:()=>{Y(v[ie].raw),_(ie),pe("")},children:"✎ edit"}),s.jsx(Re,{href:P,className:"open-raw",children:"open ↗"})]}),s.jsx("div",{className:"kside-md md-body",dangerouslySetInnerHTML:{__html:yi.sanitize(_e.parse(v[ie].body??"",{async:!1}))}})]})})]},ce.id)}),!J&&X&&X.concepts.length===0&&s.jsx("div",{className:"viewer-note",children:"no concepts yet"})]},te)})})]})}function Gm(u){return[u.generated?.at,...u.verified.map(o=>o.at)].filter(o=>typeof o=="string"&&o.length>0).sort().pop()}function Wx({slug:u}){const[c,o]=L.useState(!1);return L.useEffect(()=>{let r=!0;return o(!1),fetch("/api/chats").then(d=>d.json()).then(d=>{if(!r)return;const h=d.chats.find(p=>p.scope.kind==="team"&&p.scope.member===u);h?fl(`/agents/${encodeURIComponent(u)}/chat/${h.id}`,{replace:!0}):o(!0)}).catch(()=>r&&o(!0)),()=>{r=!1}},[u]),c?s.jsx(up,{slug:u}):s.jsx("div",{className:"empty",children:"loading…"})}function Ix({slug:u,chatId:c}){const o=Ye("/api/chats",!1),r=(o?.chats??[]).filter(p=>p.scope.kind==="team"&&p.scope.member===u),[d,h]=L.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(Re,{href:`/agents/${encodeURIComponent(u)}/info`,className:"open-raw",title:"agent profile & settings",children:"profile"}),s.jsx("button",{className:"open-raw",disabled:d,onClick:async()=>{h(!0),await ma("claude",{kind:"team",member:u}),h(!1)},children:d?"…":"+ new"})]}),s.jsxs("div",{className:"side-list",children:[r.map(p=>s.jsxs(Re,{href:`/agents/${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:fa(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&&fl(`/agents/${encodeURIComponent(u)}`))},children:"✕"})]},p.id)),o&&r.length===0&&s.jsx("div",{className:"viewer-note",children:"no sessions yet"})]})]})}function Fx({chatId:u}){const c=Ye("/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(Re,{href:"/agents/chats",className:"open-raw",children:"+ new"})]}),s.jsxs("div",{className:"side-list",children:[o.map(r=>s.jsxs(Re,{href:`/agents/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:fa(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&&fl("/agents/chats"))},children:"✕"})]},r.id)),c&&o.length===0&&s.jsx("div",{className:"viewer-note",children:"no chats yet"})]})]})}function Px({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:()=>fl("/agents/new"),children:u?"+ new agent":"create your first agent"})})]})]})}function up({slug:u}){const[c,o]=L.useState(null),[r,d]=L.useState(!1),[h,p]=L.useState(!1),[v,b]=L.useState(!1),[y,w]=L.useState(""),[z,_]=L.useState(""),[q,Y]=L.useState([]),[Q,W]=L.useState(!0),[O,pe]=L.useState(!1),[oe,de]=L.useState(""),te=Ye("/api/workflows",!1),X=Ye("/api/knowledge",!1),J=Ye("/api/skills",!1);L.useEffect(()=>{let P=!0;return fetch(`/api/team/${encodeURIComponent(u)}`).then(ge=>ge.ok?ge.json():Promise.reject()).then(ge=>P&&o(ge)).catch(()=>P&&d(!0)),()=>{P=!1}},[u]);async function ce(P){if(c){pe(!0),de("");try{const ct=await(await fetch(`/api/team/${encodeURIComponent(u)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({name:c.name,emoji:c.emoji,description:c.description,harness:c.harness,model:c.model,effort:c.effort,system:c.system,workflows:c.workflows,knowledge:c.knowledge,skills:c.skills,...P})})).json();ct.error?de(ct.error):(o(ct),w(""))}catch(ge){de(ge.message)}pe(!1)}}function ie(P,ge){Y(ge?[...q,P]:q.filter(ct=>ct!==P))}if(r)return s.jsx("div",{className:"empty",children:"agent not found"});if(!c)return s.jsx("div",{className:"empty",children:"loading…"});const Oe=P=>s.jsxs("div",{className:"team-form-row",style:{marginTop:8},children:[s.jsx("button",{className:"run-btn",disabled:O,onClick:()=>{ce(P)},children:O?"saving…":"save"}),s.jsx("button",{className:"open-raw",disabled:O,onClick:()=>(w(""),de("")),children:"cancel"})]});return 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(Re,{href:`/agents/${encodeURIComponent(u)}/edit`,className:"open-raw",children:"edit"}),s.jsx("button",{className:"run-btn",disabled:h,onClick:async()=>{p(!0),await ma("claude",{kind:"team",member:u}),p(!1)},children:h?"starting…":"new session"})]}),s.jsxs("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 — expand to give this agent a role"})]}),s.jsx("span",{className:`m3-chev ${v?"open":""}`,children:"▾"})]}),v&&y!=="role"&&s.jsxs("div",{className:"m3-expand",children:[s.jsx("pre",{children:c.system||"(empty — click edit to give this agent a role)"}),s.jsxs("div",{className:"team-form-row",style:{marginTop:10},children:[s.jsx("button",{className:"open-raw",onClick:()=>{_(c.system),w("role"),de("")},children:"✎ edit role"}),s.jsx("span",{className:"spacer"}),s.jsxs("span",{className:"m3-sub",children:["agents/",c.slug,"/system.md"]})]})]}),v&&y==="role"&&s.jsxs("div",{className:"m3-expand",children:[s.jsx("textarea",{className:"concept-edit",rows:Math.min(24,Math.max(8,z.split(`
81
+ `).length+2)),value:z,placeholder:"You are the ... for this project. Your job is ...",onChange:P=>_(P.target.value),spellCheck:!1}),Oe({system:z})]}),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"}),y==="workflows"?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"wf-checks",children:[(te?.workflows??[]).map(P=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:q.includes(P.slug),onChange:ge=>ie(P.slug,ge.target.checked)}),s.jsx("b",{children:P.slug}),P.description&&s.jsxs("span",{className:"opt-hint",children:[" — ",P.description]})]},P.slug)),(te?.workflows??[]).length===0&&s.jsx("div",{className:"viewer-note",children:"no workflows in this project"})]}),Oe({workflows:q})]}):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(P=>s.jsx(Re,{href:`/workflows/${encodeURIComponent(P)}`,className:"chip",children:P},P))})]}),y!=="workflows"&&s.jsx("button",{className:"open-raw",onClick:()=>{Y(c.workflows),w("workflows"),de("")},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"}),y==="knowledge"?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"wf-checks",children:[(X?.bundles??[]).map(P=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:q.includes(P.name),onChange:ge=>ie(P.name,ge.target.checked)}),s.jsx("b",{children:P.name}),s.jsxs("span",{className:"opt-hint",children:[" — ",P.concepts," concepts"]})]},P.name)),(X?.bundles??[]).length===0&&s.jsx("div",{className:"viewer-note",children:"no knowledge bundles in this project"})]}),Oe({knowledge:q})]}):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(P=>s.jsx(Re,{href:`/knowledge/${encodeURIComponent(P)}`,className:"chip",children:P},P))})]}),y!=="knowledge"&&s.jsx("button",{className:"open-raw",onClick:()=>{Y(c.knowledge),w("knowledge"),de("")},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"}),y==="skills"?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"wf-checks",children:[s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:Q,onChange:P=>W(P.target.checked)}),s.jsx("b",{children:"all skills"}),s.jsx("span",{className:"opt-hint",children:" — every discovered skill, including future ones"})]}),!Q&&(J?.skills??[]).map(P=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:q.includes(P.name),onChange:ge=>ie(P.name,ge.target.checked)}),s.jsxs("b",{children:["/",P.name]}),P.description&&s.jsxs("span",{className:"opt-hint",children:[" — ",P.description]})]},P.name)),!Q&&(J?.skills??[]).length===0&&s.jsx("div",{className:"viewer-note",children:"no skills found (.claude/skills, project or user)"})]}),Oe({skills:Q?void 0:q})]}):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(P=>s.jsxs("span",{className:"chip",children:["/",P]},P))})]}),y!=="skills"&&s.jsx("button",{className:"open-raw",onClick:()=>{W(c.skills===void 0),Y(c.skills??[]),w("skills"),de("")},children:"edit"})]})]}),oe&&s.jsxs("div",{className:"msg error",children:["✕ ",oe]})]}),s.jsx(e0,{slug:u})]})}function e0({slug:u}){const o=Ye(`/api/team/${encodeURIComponent(u)}/routines`,!1)?.routines??[],[r,d]=L.useState(null),[h,p]=L.useState(""),[v,b]=L.useState("");async function y(_){p("");const Y=await(await fetch(`/api/team/${encodeURIComponent(u)}/routines`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(_)})).json();return Y.error?(p(Y.error),!1):!0}async function w(_){b(_),p("");const Y=await(await fetch(`/api/team/${encodeURIComponent(u)}/routines/${encodeURIComponent(_)}/run`,{method:"POST"})).json();b(""),Y.error?p(Y.error):Y.chatId&&fl(`/agents/${encodeURIComponent(u)}/chat/${Y.chatId}`)}async function z(_){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 ${fa(_.nextRunAt)}`:"":" · paused"," · ",_.lastChatId?s.jsxs(Re,{href:`/agents/${encodeURIComponent(u)}/chat/${_.lastChatId}`,children:["last run ",fa(_.lastRunAt)]}):"never ran"]})]}),s.jsx("button",{className:"open-raw",disabled:v===_.id,onClick:()=>w(_.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:()=>{z(_.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 $m({slug:u}){const[c,o]=L.useState(u?null:q()),[r,d]=L.useState(""),[h,p]=L.useState(!1),b=Ye("/api/workflows",!1)?.workflows??[],w=Ye("/api/knowledge",!1)?.bundles??[],_=Ye("/api/skills",!1)?.skills??[];L.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 Y(){if(!c)return;p(!0),d("");const pe=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),pe.error?d(pe.error):fl(`/agents/${encodeURIComponent(pe.slug)}/info`)}async function Q(){!u||!window.confirm(`Delete agent "${u}" and its definition folder?`)||(await fetch(`/api/team/${encodeURIComponent(u)}`,{method:"DELETE"}).catch(()=>{}),fl("/agents"))}if(!c)return s.jsx("div",{className:"empty",children:r||"loading…"});const W=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=>W({name:O.target.value})})]}),s.jsxs("label",{className:"team-field",style:{width:90},children:["emoji",s.jsx("input",{value:c.emoji,onChange:O=>W({emoji:O.target.value})})]})]}),s.jsx("div",{className:"emoji-pick",children:Kx.map(O=>s.jsx("button",{type:"button",className:c.emoji===O?"active":"",onClick:()=>W({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=>W({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=>W({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=>W({model:O.target.value})})]}),s.jsxs("label",{className:"team-field",style:{width:140},children:["effort",s.jsx("select",{value:c.effort,onChange:O=>W({effort:O.target.value}),children:Vx.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=>W({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:pe=>W({workflows:pe.target.checked?[...c.workflows,O.slug]:c.workflows.filter(oe=>oe!==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:[w.map(O=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:c.knowledge.includes(O.name),onChange:pe=>W({knowledge:pe.target.checked?[...c.knowledge,O.name]:c.knowledge.filter(oe=>oe!==O.name)})}),s.jsx("b",{children:O.name}),s.jsxs("span",{className:"opt-hint",children:[" — ",O.concepts," concepts"]})]},O.name)),w.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=>W({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:pe=>W({skills:pe.target.checked?[...c.skills,O.name]:c.skills.filter(oe=>oe!==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:Y,children:h?"saving…":u?"save":"create"}),s.jsx("span",{className:"spacer"}),u&&s.jsx("button",{className:"stop-btn",onClick:Q,children:"delete agent"})]})]})})]})}function t0(){const c=jv().split("/").filter(Boolean),[o,r]=L.useState(""),[d,h]=L.useState(""),[p,v]=L.useState([]);L.useEffect(()=>{fetch("/api/meta").then(y=>y.json()).then(y=>{r(y.projectName??""),h(y.projectIcon??""),v(Array.isArray(y.switcher)?y.switcher:[])}).catch(()=>{})},[]),L.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 w=document.querySelector('link[rel="icon"]');w||(w=document.createElement("link"),w.rel="icon",document.head.appendChild(w)),w.href=`data:image/svg+xml,${encodeURIComponent(y)}`},[o,d]);let b;return c[0]==="runs"&&c[1]?b=s.jsx(rx,{id:c[1]}):c[0]==="runs"?b=s.jsx(n0,{}):c[0]==="workflows"&&c[1]?b=s.jsx(jx,{slug:decodeURIComponent(c[1])}):c[0]==="workflows"?b=s.jsx(bx,{}):c[0]==="chats"?b=s.jsx(Ym,{seg:c}):c[0]==="skills"?b=s.jsx(Xx,{name:c[1]?decodeURIComponent(c[1]):void 0}):c[0]==="agents"||c[0]==="team"?b=s.jsx(Ym,{seg:c.slice(1)}):c[0]==="knowledge"?b=s.jsx(Cx,{bundle:c[1]?decodeURIComponent(c[1]):void 0,conceptId:c.length>2?c.slice(2).map(decodeURIComponent).join("/"):void 0}):b=s.jsx(Ax,{}),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(l0,{name:o,icon:d,entries:p})]}),s.jsxs("nav",{children:[s.jsx("a",{href:"#/agents",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(a0,{}),s.jsx(s0,{})]}),s.jsx("main",{className:"shell",children:b})]})}function l0({name:u,icon:c,entries:o}){const[r,d]=L.useState(!1);return L.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 n0(){const[u,c]=L.useState(null);return L.useEffect(()=>{let o=!0;return fetch("/api/runs").then(r=>r.json()).then(r=>{o&&(r.runs.length>0?fl(`/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 a0(){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:()=>Sv(!u),children:[s.jsx("span",{className:"expert-track",children:s.jsx("span",{className:"expert-knob"})}),"expert"]})}function s0(){const[u,c]=L.useState(!1),[o,r]=L.useState(null),[d,h]=L.useState(null),[p,v]=L.useState("");L.useEffect(()=>{if(!u)return;fetch("/api/runs").then(w=>w.json()).then(r).catch(()=>{}),fetch("/api/workflows").then(w=>w.json()).then(h).catch(()=>{}),fetch("/api/meta").then(w=>w.json()).then(w=>v(w.version)).catch(()=>{});const y=w=>{w.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(i0,{})]}),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 i0(){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"})}bv.createRoot(document.getElementById("root")).render(s.jsx(L.StrictMode,{children:s.jsx(t0,{})}));