@useorgx/openclaw-plugin 0.2.0 → 0.2.1

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,48 @@
1
+ (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();var il={exports:{}},li={},sl={exports:{}},he={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Tf;function b0(){if(Tf)return he;Tf=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.iterator;function S(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,V={};function _(P,F,fe){this.props=P,this.context=F,this.refs=V,this.updater=fe||A}_.prototype.isReactComponent={},_.prototype.setState=function(P,F){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,F,"setState")},_.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function z(){}z.prototype=_.prototype;function T(P,F,fe){this.props=P,this.context=F,this.refs=V,this.updater=fe||A}var O=T.prototype=new z;O.constructor=T,L(O,_.prototype),O.isPureReactComponent=!0;var E=Array.isArray,R=Object.prototype.hasOwnProperty,j={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function D(P,F,fe){var pe,ve={},ye=null,Ce=null;if(F!=null)for(pe in F.ref!==void 0&&(Ce=F.ref),F.key!==void 0&&(ye=""+F.key),F)R.call(F,pe)&&!B.hasOwnProperty(pe)&&(ve[pe]=F[pe]);var we=arguments.length-2;if(we===1)ve.children=fe;else if(1<we){for(var Ae=Array(we),lt=0;lt<we;lt++)Ae[lt]=arguments[lt+2];ve.children=Ae}if(P&&P.defaultProps)for(pe in we=P.defaultProps,we)ve[pe]===void 0&&(ve[pe]=we[pe]);return{$$typeof:n,type:P,key:ye,ref:Ce,props:ve,_owner:j.current}}function q(P,F){return{$$typeof:n,type:P.type,key:F,ref:P.ref,props:P.props,_owner:P._owner}}function se(P){return typeof P=="object"&&P!==null&&P.$$typeof===n}function re(P){var F={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(fe){return F[fe]})}var oe=/\/+/g;function de(P,F){return typeof P=="object"&&P!==null&&P.key!=null?re(""+P.key):F.toString(36)}function me(P,F,fe,pe,ve){var ye=typeof P;(ye==="undefined"||ye==="boolean")&&(P=null);var Ce=!1;if(P===null)Ce=!0;else switch(ye){case"string":case"number":Ce=!0;break;case"object":switch(P.$$typeof){case n:case r:Ce=!0}}if(Ce)return Ce=P,ve=ve(Ce),P=pe===""?"."+de(Ce,0):pe,E(ve)?(fe="",P!=null&&(fe=P.replace(oe,"$&/")+"/"),me(ve,F,fe,"",function(lt){return lt})):ve!=null&&(se(ve)&&(ve=q(ve,fe+(!ve.key||Ce&&Ce.key===ve.key?"":(""+ve.key).replace(oe,"$&/")+"/")+P)),F.push(ve)),1;if(Ce=0,pe=pe===""?".":pe+":",E(P))for(var we=0;we<P.length;we++){ye=P[we];var Ae=pe+de(ye,we);Ce+=me(ye,F,fe,Ae,ve)}else if(Ae=S(P),typeof Ae=="function")for(P=Ae.call(P),we=0;!(ye=P.next()).done;)ye=ye.value,Ae=pe+de(ye,we++),Ce+=me(ye,F,fe,Ae,ve);else if(ye==="object")throw F=String(P),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return Ce}function ke(P,F,fe){if(P==null)return P;var pe=[],ve=0;return me(P,pe,"","",function(ye){return F.call(fe,ye,ve++)}),pe}function J(P){if(P._status===-1){var F=P._result;F=F(),F.then(function(fe){(P._status===0||P._status===-1)&&(P._status=1,P._result=fe)},function(fe){(P._status===0||P._status===-1)&&(P._status=2,P._result=fe)}),P._status===-1&&(P._status=0,P._result=F)}if(P._status===1)return P._result.default;throw P._result}var Q={current:null},H={transition:null},Y={ReactCurrentDispatcher:Q,ReactCurrentBatchConfig:H,ReactCurrentOwner:j};function G(){throw Error("act(...) is not supported in production builds of React.")}return he.Children={map:ke,forEach:function(P,F,fe){ke(P,function(){F.apply(this,arguments)},fe)},count:function(P){var F=0;return ke(P,function(){F++}),F},toArray:function(P){return ke(P,function(F){return F})||[]},only:function(P){if(!se(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},he.Component=_,he.Fragment=s,he.Profiler=u,he.PureComponent=T,he.StrictMode=a,he.Suspense=g,he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,he.act=G,he.cloneElement=function(P,F,fe){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var pe=L({},P.props),ve=P.key,ye=P.ref,Ce=P._owner;if(F!=null){if(F.ref!==void 0&&(ye=F.ref,Ce=j.current),F.key!==void 0&&(ve=""+F.key),P.type&&P.type.defaultProps)var we=P.type.defaultProps;for(Ae in F)R.call(F,Ae)&&!B.hasOwnProperty(Ae)&&(pe[Ae]=F[Ae]===void 0&&we!==void 0?we[Ae]:F[Ae])}var Ae=arguments.length-2;if(Ae===1)pe.children=fe;else if(1<Ae){we=Array(Ae);for(var lt=0;lt<Ae;lt++)we[lt]=arguments[lt+2];pe.children=we}return{$$typeof:n,type:P.type,key:ve,ref:ye,props:pe,_owner:Ce}},he.createContext=function(P){return P={$$typeof:d,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:f,_context:P},P.Consumer=P},he.createElement=D,he.createFactory=function(P){var F=D.bind(null,P);return F.type=P,F},he.createRef=function(){return{current:null}},he.forwardRef=function(P){return{$$typeof:h,render:P}},he.isValidElement=se,he.lazy=function(P){return{$$typeof:x,_payload:{_status:-1,_result:P},_init:J}},he.memo=function(P,F){return{$$typeof:m,type:P,compare:F===void 0?null:F}},he.startTransition=function(P){var F=H.transition;H.transition={};try{P()}finally{H.transition=F}},he.unstable_act=G,he.useCallback=function(P,F){return Q.current.useCallback(P,F)},he.useContext=function(P){return Q.current.useContext(P)},he.useDebugValue=function(){},he.useDeferredValue=function(P){return Q.current.useDeferredValue(P)},he.useEffect=function(P,F){return Q.current.useEffect(P,F)},he.useId=function(){return Q.current.useId()},he.useImperativeHandle=function(P,F,fe){return Q.current.useImperativeHandle(P,F,fe)},he.useInsertionEffect=function(P,F){return Q.current.useInsertionEffect(P,F)},he.useLayoutEffect=function(P,F){return Q.current.useLayoutEffect(P,F)},he.useMemo=function(P,F){return Q.current.useMemo(P,F)},he.useReducer=function(P,F,fe){return Q.current.useReducer(P,F,fe)},he.useRef=function(P){return Q.current.useRef(P)},he.useState=function(P){return Q.current.useState(P)},he.useSyncExternalStore=function(P,F,fe){return Q.current.useSyncExternalStore(P,F,fe)},he.useTransition=function(){return Q.current.useTransition()},he.version="18.3.1",he}var Pf;function Gl(){return Pf||(Pf=1,sl.exports=b0()),sl.exports}/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ef;function F0(){if(Ef)return li;Ef=1;var n=Gl(),r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function d(h,g,m){var x,y={},S=null,A=null;m!==void 0&&(S=""+m),g.key!==void 0&&(S=""+g.key),g.ref!==void 0&&(A=g.ref);for(x in g)a.call(g,x)&&!f.hasOwnProperty(x)&&(y[x]=g[x]);if(h&&h.defaultProps)for(x in g=h.defaultProps,g)y[x]===void 0&&(y[x]=g[x]);return{$$typeof:r,type:h,key:S,ref:A,props:y,_owner:u.current}}return li.Fragment=s,li.jsx=d,li.jsxs=d,li}var Nf;function O0(){return Nf||(Nf=1,il.exports=F0()),il.exports}var v=O0(),b=Gl(),Fs={},ol={exports:{}},at={},al={exports:{}},ll={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Af;function z0(){return Af||(Af=1,(function(n){function r(H,Y){var G=H.length;H.push(Y);e:for(;0<G;){var P=G-1>>>1,F=H[P];if(0<u(F,Y))H[P]=Y,H[G]=F,G=P;else break e}}function s(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var Y=H[0],G=H.pop();if(G!==Y){H[0]=G;e:for(var P=0,F=H.length,fe=F>>>1;P<fe;){var pe=2*(P+1)-1,ve=H[pe],ye=pe+1,Ce=H[ye];if(0>u(ve,G))ye<F&&0>u(Ce,ve)?(H[P]=Ce,H[ye]=G,P=ye):(H[P]=ve,H[pe]=G,P=pe);else if(ye<F&&0>u(Ce,G))H[P]=Ce,H[ye]=G,P=ye;else break e}}return Y}function u(H,Y){var G=H.sortIndex-Y.sortIndex;return G!==0?G:H.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var g=[],m=[],x=1,y=null,S=3,A=!1,L=!1,V=!1,_=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(H){for(var Y=s(m);Y!==null;){if(Y.callback===null)a(m);else if(Y.startTime<=H)a(m),Y.sortIndex=Y.expirationTime,r(g,Y);else break;Y=s(m)}}function E(H){if(V=!1,O(H),!L)if(s(g)!==null)L=!0,J(R);else{var Y=s(m);Y!==null&&Q(E,Y.startTime-H)}}function R(H,Y){L=!1,V&&(V=!1,z(D),D=-1),A=!0;var G=S;try{for(O(Y),y=s(g);y!==null&&(!(y.expirationTime>Y)||H&&!re());){var P=y.callback;if(typeof P=="function"){y.callback=null,S=y.priorityLevel;var F=P(y.expirationTime<=Y);Y=n.unstable_now(),typeof F=="function"?y.callback=F:y===s(g)&&a(g),O(Y)}else a(g);y=s(g)}if(y!==null)var fe=!0;else{var pe=s(m);pe!==null&&Q(E,pe.startTime-Y),fe=!1}return fe}finally{y=null,S=G,A=!1}}var j=!1,B=null,D=-1,q=5,se=-1;function re(){return!(n.unstable_now()-se<q)}function oe(){if(B!==null){var H=n.unstable_now();se=H;var Y=!0;try{Y=B(!0,H)}finally{Y?de():(j=!1,B=null)}}else j=!1}var de;if(typeof T=="function")de=function(){T(oe)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,ke=me.port2;me.port1.onmessage=oe,de=function(){ke.postMessage(null)}}else de=function(){_(oe,0)};function J(H){B=H,j||(j=!0,de())}function Q(H,Y){D=_(function(){H(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_continueExecution=function(){L||A||(L=!0,J(R))},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_getFirstCallbackNode=function(){return s(g)},n.unstable_next=function(H){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var G=S;S=Y;try{return H()}finally{S=G}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(H,Y){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var G=S;S=H;try{return Y()}finally{S=G}},n.unstable_scheduleCallback=function(H,Y,G){var P=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?P+G:P):G=P,H){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=G+F,H={id:x++,callback:Y,priorityLevel:H,startTime:G,expirationTime:F,sortIndex:-1},G>P?(H.sortIndex=G,r(m,H),s(g)===null&&H===s(m)&&(V?(z(D),D=-1):V=!0,Q(E,G-P))):(H.sortIndex=F,r(g,H),L||A||(L=!0,J(R))),H},n.unstable_shouldYield=re,n.unstable_wrapCallback=function(H){var Y=S;return function(){var G=S;S=Y;try{return H.apply(this,arguments)}finally{S=G}}}})(ll)),ll}var jf;function B0(){return jf||(jf=1,al.exports=z0()),al.exports}/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Mf;function U0(){if(Mf)return at;Mf=1;var n=Gl(),r=B0();function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,u={};function f(e,t){d(e,t),d(e+"Capture",t)}function d(e,t){for(u[e]=t,e=0;e<t.length;e++)a.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,m=/^[: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]*$/,x={},y={};function S(e){return g.call(y,e)?!0:g.call(x,e)?!1:m.test(e)?y[e]=!0:(x[e]=!0,!1)}function A(e,t,i,o){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function L(e,t,i,o){if(t===null||typeof t>"u"||A(e,t,i,o))return!0;if(o)return!1;if(i!==null)switch(i.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function V(e,t,i,o,l,c,p){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=l,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=p}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_[e]=new V(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_[t]=new V(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_[e]=new V(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_[e]=new V(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_[e]=new V(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_[e]=new V(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_[e]=new V(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_[e]=new V(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_[e]=new V(e,5,!1,e.toLowerCase(),null,!1,!1)});var z=/[\-:]([a-z])/g;function T(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(z,T);_[t]=new V(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(z,T);_[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(z,T);_[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_[e]=new V(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_[e]=new V(e,1,!1,e.toLowerCase(),null,!0,!0)});function O(e,t,i,o){var l=_.hasOwnProperty(t)?_[t]:null;(l!==null?l.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(L(t,i,l,o)&&(i=null),o||l===null?S(t)&&(i===null?e.removeAttribute(t):e.setAttribute(t,""+i)):l.mustUseProperty?e[l.propertyName]=i===null?l.type===3?!1:"":i:(t=l.attributeName,o=l.attributeNamespace,i===null?e.removeAttribute(t):(l=l.type,i=l===3||l===4&&i===!0?"":""+i,o?e.setAttributeNS(o,t,i):e.setAttribute(t,i))))}var E=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,R=Symbol.for("react.element"),j=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),re=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),ke=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Q=Symbol.for("react.offscreen"),H=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=H&&e[H]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,P;function F(e){if(P===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return`
34
+ `+P+e}var fe=!1;function pe(e,t){if(!e||fe)return"";fe=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(I){var o=I}Reflect.construct(e,[],t)}else{try{t.call()}catch(I){o=I}e.call(t.prototype)}else{try{throw Error()}catch(I){o=I}e()}}catch(I){if(I&&o&&typeof I.stack=="string"){for(var l=I.stack.split(`
35
+ `),c=o.stack.split(`
36
+ `),p=l.length-1,w=c.length-1;1<=p&&0<=w&&l[p]!==c[w];)w--;for(;1<=p&&0<=w;p--,w--)if(l[p]!==c[w]){if(p!==1||w!==1)do if(p--,w--,0>w||l[p]!==c[w]){var k=`
37
+ `+l[p].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=p&&0<=w);break}}}finally{fe=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?F(e):""}function ve(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=pe(e.type,!1),e;case 11:return e=pe(e.type.render,!1),e;case 1:return e=pe(e.type,!0),e;default:return""}}function ye(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case j:return"Portal";case q:return"Profiler";case D:return"StrictMode";case de:return"Suspense";case me:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case re:return(e.displayName||"Context")+".Consumer";case se:return(e._context.displayName||"Context")+".Provider";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ke:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function Ce(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(t);case 8:return t===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function we(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lt(e){var t=Ae(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(p){o=""+p,c.call(this,p)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(p){o=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ai(e){e._valueTracker||(e._valueTracker=lt(e))}function ju(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),o="";return e&&(o=Ae(e)?e.checked?"true":"false":e.value),e=o,e!==i?(t.setValue(e),!0):!1}function ji(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function co(e,t){var i=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function Mu(e,t){var i=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;i=we(t.value!=null?t.value:i),e._wrapperState={initialChecked:o,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Du(e,t){t=t.checked,t!=null&&O(e,"checked",t,!1)}function fo(e,t){Du(e,t);var i=we(t.value),o=t.type;if(i!=null)o==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ho(e,t.type,i):t.hasOwnProperty("defaultValue")&&ho(e,t.type,we(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lu(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function ho(e,t,i){(t!=="number"||ji(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Cr=Array.isArray;function zn(e,t,i,o){if(e=e.options,t){t={};for(var l=0;l<i.length;l++)t["$"+i[l]]=!0;for(i=0;i<e.length;i++)l=t.hasOwnProperty("$"+e[i].value),e[i].selected!==l&&(e[i].selected=l),l&&o&&(e[i].defaultSelected=!0)}else{for(i=""+we(i),t=null,l=0;l<e.length;l++){if(e[l].value===i){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function po(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ru(e,t){var i=t.value;if(i==null){if(i=t.children,t=t.defaultValue,i!=null){if(t!=null)throw Error(s(92));if(Cr(i)){if(1<i.length)throw Error(s(93));i=i[0]}t=i}t==null&&(t=""),i=t}e._wrapperState={initialValue:we(i)}}function Iu(e,t){var i=we(t.value),o=we(t.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),t.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),o!=null&&(e.defaultValue=""+o)}function _u(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Vu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Vu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Mi,bu=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,i,o,l){MSApp.execUnsafeLocalFunction(function(){return e(t,i,o,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Mi=Mi||document.createElement("div"),Mi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Mi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tr(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Pr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bm=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){Bm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pr[t]=Pr[e]})});function Fu(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+t).trim():t+"px"}function Ou(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var o=i.indexOf("--")===0,l=Fu(i,t[i],o);i==="float"&&(i="cssFloat"),o?e.setProperty(i,l):e[i]=l}}var Um=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function go(e,t){if(t){if(Um[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function vo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 yo=null;function xo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wo=null,Bn=null,Un=null;function zu(e){if(e=Qr(e)){if(typeof wo!="function")throw Error(s(280));var t=e.stateNode;t&&(t=Ji(t),wo(e.stateNode,e.type,t))}}function Bu(e){Bn?Un?Un.push(e):Un=[e]:Bn=e}function Uu(){if(Bn){var e=Bn,t=Un;if(Un=Bn=null,zu(e),t)for(e=0;e<t.length;e++)zu(t[e])}}function $u(e,t){return e(t)}function Wu(){}var So=!1;function Hu(e,t,i){if(So)return e(t,i);So=!0;try{return $u(e,t,i)}finally{So=!1,(Bn!==null||Un!==null)&&(Wu(),Uu())}}function Er(e,t){var i=e.stateNode;if(i===null)return null;var o=Ji(i);if(o===null)return null;i=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(s(231,t,typeof i));return i}var ko=!1;if(h)try{var Nr={};Object.defineProperty(Nr,"passive",{get:function(){ko=!0}}),window.addEventListener("test",Nr,Nr),window.removeEventListener("test",Nr,Nr)}catch{ko=!1}function $m(e,t,i,o,l,c,p,w,k){var I=Array.prototype.slice.call(arguments,3);try{t.apply(i,I)}catch($){this.onError($)}}var Ar=!1,Di=null,Li=!1,Co=null,Wm={onError:function(e){Ar=!0,Di=e}};function Hm(e,t,i,o,l,c,p,w,k){Ar=!1,Di=null,$m.apply(Wm,arguments)}function Km(e,t,i,o,l,c,p,w,k){if(Hm.apply(this,arguments),Ar){if(Ar){var I=Di;Ar=!1,Di=null}else throw Error(s(198));Li||(Li=!0,Co=I)}}function Sn(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function Ku(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 Qu(e){if(Sn(e)!==e)throw Error(s(188))}function Qm(e){var t=e.alternate;if(!t){if(t=Sn(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,o=t;;){var l=i.return;if(l===null)break;var c=l.alternate;if(c===null){if(o=l.return,o!==null){i=o;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===i)return Qu(l),e;if(c===o)return Qu(l),t;c=c.sibling}throw Error(s(188))}if(i.return!==o.return)i=l,o=c;else{for(var p=!1,w=l.child;w;){if(w===i){p=!0,i=l,o=c;break}if(w===o){p=!0,o=l,i=c;break}w=w.sibling}if(!p){for(w=c.child;w;){if(w===i){p=!0,i=c,o=l;break}if(w===o){p=!0,o=c,i=l;break}w=w.sibling}if(!p)throw Error(s(189))}}if(i.alternate!==o)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function Gu(e){return e=Qm(e),e!==null?Yu(e):null}function Yu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Yu(e);if(t!==null)return t;e=e.sibling}return null}var Xu=r.unstable_scheduleCallback,qu=r.unstable_cancelCallback,Gm=r.unstable_shouldYield,Ym=r.unstable_requestPaint,_e=r.unstable_now,Xm=r.unstable_getCurrentPriorityLevel,To=r.unstable_ImmediatePriority,Zu=r.unstable_UserBlockingPriority,Ri=r.unstable_NormalPriority,qm=r.unstable_LowPriority,Ju=r.unstable_IdlePriority,Ii=null,Dt=null;function Zm(e){if(Dt&&typeof Dt.onCommitFiberRoot=="function")try{Dt.onCommitFiberRoot(Ii,e,void 0,(e.current.flags&128)===128)}catch{}}var Ct=Math.clz32?Math.clz32:tg,Jm=Math.log,eg=Math.LN2;function tg(e){return e>>>=0,e===0?32:31-(Jm(e)/eg|0)|0}var _i=64,Vi=4194304;function jr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bi(e,t){var i=e.pendingLanes;if(i===0)return 0;var o=0,l=e.suspendedLanes,c=e.pingedLanes,p=i&268435455;if(p!==0){var w=p&~l;w!==0?o=jr(w):(c&=p,c!==0&&(o=jr(c)))}else p=i&~l,p!==0?o=jr(p):c!==0&&(o=jr(c));if(o===0)return 0;if(t!==0&&t!==o&&(t&l)===0&&(l=o&-o,c=t&-t,l>=c||l===16&&(c&4194240)!==0))return t;if((o&4)!==0&&(o|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)i=31-Ct(t),l=1<<i,o|=e[i],t&=~l;return o}function ng(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rg(e,t){for(var i=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-Ct(c),w=1<<p,k=l[p];k===-1?((w&i)===0||(w&o)!==0)&&(l[p]=ng(w,t)):k<=t&&(e.expiredLanes|=w),c&=~w}}function Po(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ec(){var e=_i;return _i<<=1,(_i&4194240)===0&&(_i=64),e}function Eo(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function Mr(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=i}function ig(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<i;){var l=31-Ct(i),c=1<<l;t[l]=0,o[l]=-1,e[l]=-1,i&=~c}}function No(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var o=31-Ct(i),l=1<<o;l&t|e[o]&t&&(e[o]|=t),i&=~l}}var Se=0;function tc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var nc,Ao,rc,ic,sc,jo=!1,Fi=[],qt=null,Zt=null,Jt=null,Dr=new Map,Lr=new Map,en=[],sg="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 submit".split(" ");function oc(e,t){switch(e){case"focusin":case"focusout":qt=null;break;case"dragenter":case"dragleave":Zt=null;break;case"mouseover":case"mouseout":Jt=null;break;case"pointerover":case"pointerout":Dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lr.delete(t.pointerId)}}function Rr(e,t,i,o,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:i,eventSystemFlags:o,nativeEvent:c,targetContainers:[l]},t!==null&&(t=Qr(t),t!==null&&Ao(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function og(e,t,i,o,l){switch(t){case"focusin":return qt=Rr(qt,e,t,i,o,l),!0;case"dragenter":return Zt=Rr(Zt,e,t,i,o,l),!0;case"mouseover":return Jt=Rr(Jt,e,t,i,o,l),!0;case"pointerover":var c=l.pointerId;return Dr.set(c,Rr(Dr.get(c)||null,e,t,i,o,l)),!0;case"gotpointercapture":return c=l.pointerId,Lr.set(c,Rr(Lr.get(c)||null,e,t,i,o,l)),!0}return!1}function ac(e){var t=kn(e.target);if(t!==null){var i=Sn(t);if(i!==null){if(t=i.tag,t===13){if(t=Ku(i),t!==null){e.blockedOn=t,sc(e.priority,function(){rc(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Oi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Do(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);yo=o,i.target.dispatchEvent(o),yo=null}else return t=Qr(i),t!==null&&Ao(t),e.blockedOn=i,!1;t.shift()}return!0}function lc(e,t,i){Oi(e)&&i.delete(t)}function ag(){jo=!1,qt!==null&&Oi(qt)&&(qt=null),Zt!==null&&Oi(Zt)&&(Zt=null),Jt!==null&&Oi(Jt)&&(Jt=null),Dr.forEach(lc),Lr.forEach(lc)}function Ir(e,t){e.blockedOn===t&&(e.blockedOn=null,jo||(jo=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,ag)))}function _r(e){function t(l){return Ir(l,e)}if(0<Fi.length){Ir(Fi[0],e);for(var i=1;i<Fi.length;i++){var o=Fi[i];o.blockedOn===e&&(o.blockedOn=null)}}for(qt!==null&&Ir(qt,e),Zt!==null&&Ir(Zt,e),Jt!==null&&Ir(Jt,e),Dr.forEach(t),Lr.forEach(t),i=0;i<en.length;i++)o=en[i],o.blockedOn===e&&(o.blockedOn=null);for(;0<en.length&&(i=en[0],i.blockedOn===null);)ac(i),i.blockedOn===null&&en.shift()}var $n=E.ReactCurrentBatchConfig,zi=!0;function lg(e,t,i,o){var l=Se,c=$n.transition;$n.transition=null;try{Se=1,Mo(e,t,i,o)}finally{Se=l,$n.transition=c}}function ug(e,t,i,o){var l=Se,c=$n.transition;$n.transition=null;try{Se=4,Mo(e,t,i,o)}finally{Se=l,$n.transition=c}}function Mo(e,t,i,o){if(zi){var l=Do(e,t,i,o);if(l===null)Go(e,t,o,Bi,i),oc(e,o);else if(og(l,e,t,i,o))o.stopPropagation();else if(oc(e,o),t&4&&-1<sg.indexOf(e)){for(;l!==null;){var c=Qr(l);if(c!==null&&nc(c),c=Do(e,t,i,o),c===null&&Go(e,t,o,Bi,i),c===l)break;l=c}l!==null&&o.stopPropagation()}else Go(e,t,o,null,i)}}var Bi=null;function Do(e,t,i,o){if(Bi=null,e=xo(o),e=kn(e),e!==null)if(t=Sn(e),t===null)e=null;else if(i=t.tag,i===13){if(e=Ku(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Bi=e,null}function uc(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xm()){case To:return 1;case Zu:return 4;case Ri:case qm:return 16;case Ju:return 536870912;default:return 16}default:return 16}}var tn=null,Lo=null,Ui=null;function cc(){if(Ui)return Ui;var e,t=Lo,i=t.length,o,l="value"in tn?tn.value:tn.textContent,c=l.length;for(e=0;e<i&&t[e]===l[e];e++);var p=i-e;for(o=1;o<=p&&t[i-o]===l[c-o];o++);return Ui=l.slice(e,1<o?1-o:void 0)}function $i(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 Wi(){return!0}function dc(){return!1}function ut(e){function t(i,o,l,c,p){this._reactName=i,this._targetInst=l,this.type=o,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(i=e[w],this[w]=i?i(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Wi:dc,this.isPropagationStopped=dc,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Wi)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Wi)},persist:function(){},isPersistent:Wi}),t}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ro=ut(Wn),Vr=G({},Wn,{view:0,detail:0}),cg=ut(Vr),Io,_o,br,Hi=G({},Vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bo,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!==br&&(br&&e.type==="mousemove"?(Io=e.screenX-br.screenX,_o=e.screenY-br.screenY):_o=Io=0,br=e),Io)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),fc=ut(Hi),dg=G({},Hi,{dataTransfer:0}),fg=ut(dg),hg=G({},Vr,{relatedTarget:0}),Vo=ut(hg),pg=G({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0}),mg=ut(pg),gg=G({},Wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vg=ut(gg),yg=G({},Wn,{data:0}),hc=ut(yg),xg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wg={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"},Sg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sg[e])?!!t[e]:!1}function bo(){return kg}var Cg=G({},Vr,{key:function(e){if(e.key){var t=xg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bo,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Tg=ut(Cg),Pg=G({},Hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pc=ut(Pg),Eg=G({},Vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bo}),Ng=ut(Eg),Ag=G({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),jg=ut(Ag),Mg=G({},Hi,{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}),Dg=ut(Mg),Lg=[9,13,27,32],Fo=h&&"CompositionEvent"in window,Fr=null;h&&"documentMode"in document&&(Fr=document.documentMode);var Rg=h&&"TextEvent"in window&&!Fr,mc=h&&(!Fo||Fr&&8<Fr&&11>=Fr),gc=" ",vc=!1;function yc(e,t){switch(e){case"keyup":return Lg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Ig(e,t){switch(e){case"compositionend":return xc(t);case"keypress":return t.which!==32?null:(vc=!0,gc);case"textInput":return e=t.data,e===gc&&vc?null:e;default:return null}}function _g(e,t){if(Hn)return e==="compositionend"||!Fo&&yc(e,t)?(e=cc(),Ui=Lo=tn=null,Hn=!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 mc&&t.locale!=="ko"?null:t.data;default:return null}}var Vg={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 wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vg[e.type]:t==="textarea"}function Sc(e,t,i,o){Bu(o),t=Xi(t,"onChange"),0<t.length&&(i=new Ro("onChange","change",null,i,o),e.push({event:i,listeners:t}))}var Or=null,zr=null;function bg(e){Oc(e,0)}function Ki(e){var t=Xn(e);if(ju(t))return e}function Fg(e,t){if(e==="change")return t}var kc=!1;if(h){var Oo;if(h){var zo="oninput"in document;if(!zo){var Cc=document.createElement("div");Cc.setAttribute("oninput","return;"),zo=typeof Cc.oninput=="function"}Oo=zo}else Oo=!1;kc=Oo&&(!document.documentMode||9<document.documentMode)}function Tc(){Or&&(Or.detachEvent("onpropertychange",Pc),zr=Or=null)}function Pc(e){if(e.propertyName==="value"&&Ki(zr)){var t=[];Sc(t,zr,e,xo(e)),Hu(bg,t)}}function Og(e,t,i){e==="focusin"?(Tc(),Or=t,zr=i,Or.attachEvent("onpropertychange",Pc)):e==="focusout"&&Tc()}function zg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ki(zr)}function Bg(e,t){if(e==="click")return Ki(t)}function Ug(e,t){if(e==="input"||e==="change")return Ki(t)}function $g(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:$g;function Br(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var l=i[o];if(!g.call(t,l)||!Tt(e[l],t[l]))return!1}return!0}function Ec(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nc(e,t){var i=Ec(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=t&&o>=t)return{node:i,offset:t-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Ec(i)}}function Ac(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ac(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jc(){for(var e=window,t=ji();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=ji(e.document)}return t}function Bo(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")}function Wg(e){var t=jc(),i=e.focusedElem,o=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&Ac(i.ownerDocument.documentElement,i)){if(o!==null&&Bo(i)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=i.textContent.length,c=Math.min(o.start,l);o=o.end===void 0?c:Math.min(o.end,l),!e.extend&&c>o&&(l=o,o=c,c=l),l=Nc(i,c);var p=Nc(i,o);l&&p&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),c>o?(e.addRange(t),e.extend(p.node,p.offset)):(t.setEnd(p.node,p.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<t.length;i++)e=t[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Hg=h&&"documentMode"in document&&11>=document.documentMode,Kn=null,Uo=null,Ur=null,$o=!1;function Mc(e,t,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;$o||Kn==null||Kn!==ji(o)||(o=Kn,"selectionStart"in o&&Bo(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ur&&Br(Ur,o)||(Ur=o,o=Xi(Uo,"onSelect"),0<o.length&&(t=new Ro("onSelect","select",null,t,i),e.push({event:t,listeners:o}),t.target=Kn)))}function Qi(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Qn={animationend:Qi("Animation","AnimationEnd"),animationiteration:Qi("Animation","AnimationIteration"),animationstart:Qi("Animation","AnimationStart"),transitionend:Qi("Transition","TransitionEnd")},Wo={},Dc={};h&&(Dc=document.createElement("div").style,"AnimationEvent"in window||(delete Qn.animationend.animation,delete Qn.animationiteration.animation,delete Qn.animationstart.animation),"TransitionEvent"in window||delete Qn.transitionend.transition);function Gi(e){if(Wo[e])return Wo[e];if(!Qn[e])return e;var t=Qn[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Dc)return Wo[e]=t[i];return e}var Lc=Gi("animationend"),Rc=Gi("animationiteration"),Ic=Gi("animationstart"),_c=Gi("transitionend"),Vc=new Map,bc="abort auxClick 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(" ");function nn(e,t){Vc.set(e,t),f(t,[e])}for(var Ho=0;Ho<bc.length;Ho++){var Ko=bc[Ho],Kg=Ko.toLowerCase(),Qg=Ko[0].toUpperCase()+Ko.slice(1);nn(Kg,"on"+Qg)}nn(Lc,"onAnimationEnd"),nn(Rc,"onAnimationIteration"),nn(Ic,"onAnimationStart"),nn("dblclick","onDoubleClick"),nn("focusin","onFocus"),nn("focusout","onBlur"),nn(_c,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $r="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(" "),Gg=new Set("cancel close invalid load scroll toggle".split(" ").concat($r));function Fc(e,t,i){var o=e.type||"unknown-event";e.currentTarget=i,Km(o,t,void 0,e),e.currentTarget=null}function Oc(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],l=o.event;o=o.listeners;e:{var c=void 0;if(t)for(var p=o.length-1;0<=p;p--){var w=o[p],k=w.instance,I=w.currentTarget;if(w=w.listener,k!==c&&l.isPropagationStopped())break e;Fc(l,w,I),c=k}else for(p=0;p<o.length;p++){if(w=o[p],k=w.instance,I=w.currentTarget,w=w.listener,k!==c&&l.isPropagationStopped())break e;Fc(l,w,I),c=k}}}if(Li)throw e=Co,Li=!1,Co=null,e}function Pe(e,t){var i=t[ea];i===void 0&&(i=t[ea]=new Set);var o=e+"__bubble";i.has(o)||(zc(t,e,2,!1),i.add(o))}function Qo(e,t,i){var o=0;t&&(o|=4),zc(i,e,o,t)}var Yi="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[Yi]){e[Yi]=!0,a.forEach(function(i){i!=="selectionchange"&&(Gg.has(i)||Qo(i,!1,e),Qo(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yi]||(t[Yi]=!0,Qo("selectionchange",!1,t))}}function zc(e,t,i,o){switch(uc(t)){case 1:var l=lg;break;case 4:l=ug;break;default:l=Mo}i=l.bind(null,t,i,e),l=void 0,!ko||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,i,{capture:!0,passive:l}):e.addEventListener(t,i,!0):l!==void 0?e.addEventListener(t,i,{passive:l}):e.addEventListener(t,i,!1)}function Go(e,t,i,o,l){var c=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var p=o.tag;if(p===3||p===4){var w=o.stateNode.containerInfo;if(w===l||w.nodeType===8&&w.parentNode===l)break;if(p===4)for(p=o.return;p!==null;){var k=p.tag;if((k===3||k===4)&&(k=p.stateNode.containerInfo,k===l||k.nodeType===8&&k.parentNode===l))return;p=p.return}for(;w!==null;){if(p=kn(w),p===null)return;if(k=p.tag,k===5||k===6){o=c=p;continue e}w=w.parentNode}}o=o.return}Hu(function(){var I=c,$=xo(i),W=[];e:{var U=Vc.get(e);if(U!==void 0){var X=Ro,ee=e;switch(e){case"keypress":if($i(i)===0)break e;case"keydown":case"keyup":X=Tg;break;case"focusin":ee="focus",X=Vo;break;case"focusout":ee="blur",X=Vo;break;case"beforeblur":case"afterblur":X=Vo;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=fg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Ng;break;case Lc:case Rc:case Ic:X=mg;break;case _c:X=jg;break;case"scroll":X=cg;break;case"wheel":X=Dg;break;case"copy":case"cut":case"paste":X=vg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=pc}var te=(t&4)!==0,Ve=!te&&e==="scroll",N=te?U!==null?U+"Capture":null:U;te=[];for(var C=I,M;C!==null;){M=C;var K=M.stateNode;if(M.tag===5&&K!==null&&(M=K,N!==null&&(K=Er(C,N),K!=null&&te.push(Hr(C,K,M)))),Ve)break;C=C.return}0<te.length&&(U=new X(U,ee,null,i,$),W.push({event:U,listeners:te}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",U&&i!==yo&&(ee=i.relatedTarget||i.fromElement)&&(kn(ee)||ee[Ot]))break e;if((X||U)&&(U=$.window===$?$:(U=$.ownerDocument)?U.defaultView||U.parentWindow:window,X?(ee=i.relatedTarget||i.toElement,X=I,ee=ee?kn(ee):null,ee!==null&&(Ve=Sn(ee),ee!==Ve||ee.tag!==5&&ee.tag!==6)&&(ee=null)):(X=null,ee=I),X!==ee)){if(te=fc,K="onMouseLeave",N="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(te=pc,K="onPointerLeave",N="onPointerEnter",C="pointer"),Ve=X==null?U:Xn(X),M=ee==null?U:Xn(ee),U=new te(K,C+"leave",X,i,$),U.target=Ve,U.relatedTarget=M,K=null,kn($)===I&&(te=new te(N,C+"enter",ee,i,$),te.target=M,te.relatedTarget=Ve,K=te),Ve=K,X&&ee)t:{for(te=X,N=ee,C=0,M=te;M;M=Gn(M))C++;for(M=0,K=N;K;K=Gn(K))M++;for(;0<C-M;)te=Gn(te),C--;for(;0<M-C;)N=Gn(N),M--;for(;C--;){if(te===N||N!==null&&te===N.alternate)break t;te=Gn(te),N=Gn(N)}te=null}else te=null;X!==null&&Bc(W,U,X,te,!1),ee!==null&&Ve!==null&&Bc(W,Ve,ee,te,!0)}}e:{if(U=I?Xn(I):window,X=U.nodeName&&U.nodeName.toLowerCase(),X==="select"||X==="input"&&U.type==="file")var ie=Fg;else if(wc(U))if(kc)ie=Ug;else{ie=zg;var ae=Og}else(X=U.nodeName)&&X.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(ie=Bg);if(ie&&(ie=ie(e,I))){Sc(W,ie,i,$);break e}ae&&ae(e,U,I),e==="focusout"&&(ae=U._wrapperState)&&ae.controlled&&U.type==="number"&&ho(U,"number",U.value)}switch(ae=I?Xn(I):window,e){case"focusin":(wc(ae)||ae.contentEditable==="true")&&(Kn=ae,Uo=I,Ur=null);break;case"focusout":Ur=Uo=Kn=null;break;case"mousedown":$o=!0;break;case"contextmenu":case"mouseup":case"dragend":$o=!1,Mc(W,i,$);break;case"selectionchange":if(Hg)break;case"keydown":case"keyup":Mc(W,i,$)}var le;if(Fo)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else Hn?yc(e,i)&&(ce="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(ce="onCompositionStart");ce&&(mc&&i.locale!=="ko"&&(Hn||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&Hn&&(le=cc()):(tn=$,Lo="value"in tn?tn.value:tn.textContent,Hn=!0)),ae=Xi(I,ce),0<ae.length&&(ce=new hc(ce,e,null,i,$),W.push({event:ce,listeners:ae}),le?ce.data=le:(le=xc(i),le!==null&&(ce.data=le)))),(le=Rg?Ig(e,i):_g(e,i))&&(I=Xi(I,"onBeforeInput"),0<I.length&&($=new hc("onBeforeInput","beforeinput",null,i,$),W.push({event:$,listeners:I}),$.data=le))}Oc(W,t)})}function Hr(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Xi(e,t){for(var i=t+"Capture",o=[];e!==null;){var l=e,c=l.stateNode;l.tag===5&&c!==null&&(l=c,c=Er(e,i),c!=null&&o.unshift(Hr(e,c,l)),c=Er(e,t),c!=null&&o.push(Hr(e,c,l))),e=e.return}return o}function Gn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Bc(e,t,i,o,l){for(var c=t._reactName,p=[];i!==null&&i!==o;){var w=i,k=w.alternate,I=w.stateNode;if(k!==null&&k===o)break;w.tag===5&&I!==null&&(w=I,l?(k=Er(i,c),k!=null&&p.unshift(Hr(i,k,w))):l||(k=Er(i,c),k!=null&&p.push(Hr(i,k,w)))),i=i.return}p.length!==0&&e.push({event:t,listeners:p})}var Yg=/\r\n?/g,Xg=/\u0000|\uFFFD/g;function Uc(e){return(typeof e=="string"?e:""+e).replace(Yg,`
38
+ `).replace(Xg,"")}function qi(e,t,i){if(t=Uc(t),Uc(e)!==t&&i)throw Error(s(425))}function Zi(){}var Yo=null,Xo=null;function qo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zo=typeof setTimeout=="function"?setTimeout:void 0,qg=typeof clearTimeout=="function"?clearTimeout:void 0,$c=typeof Promise=="function"?Promise:void 0,Zg=typeof queueMicrotask=="function"?queueMicrotask:typeof $c<"u"?function(e){return $c.resolve(null).then(e).catch(Jg)}:Zo;function Jg(e){setTimeout(function(){throw e})}function Jo(e,t){var i=t,o=0;do{var l=i.nextSibling;if(e.removeChild(i),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(o===0){e.removeChild(l),_r(t);return}o--}else i!=="$"&&i!=="$?"&&i!=="$!"||o++;i=l}while(i);_r(t)}function rn(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==="$?")break;if(t==="/$")return null}}return e}function Wc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}var Yn=Math.random().toString(36).slice(2),Lt="__reactFiber$"+Yn,Kr="__reactProps$"+Yn,Ot="__reactContainer$"+Yn,ea="__reactEvents$"+Yn,e0="__reactListeners$"+Yn,t0="__reactHandles$"+Yn;function kn(e){var t=e[Lt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Ot]||i[Lt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Wc(e);e!==null;){if(i=e[Lt])return i;e=Wc(e)}return t}e=i,i=e.parentNode}return null}function Qr(e){return e=e[Lt]||e[Ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Xn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function Ji(e){return e[Kr]||null}var ta=[],qn=-1;function sn(e){return{current:e}}function Ee(e){0>qn||(e.current=ta[qn],ta[qn]=null,qn--)}function Te(e,t){qn++,ta[qn]=e.current,e.current=t}var on={},Ge=sn(on),nt=sn(!1),Cn=on;function Zn(e,t){var i=e.type.contextTypes;if(!i)return on;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in i)l[c]=t[c];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function rt(e){return e=e.childContextTypes,e!=null}function es(){Ee(nt),Ee(Ge)}function Hc(e,t,i){if(Ge.current!==on)throw Error(s(168));Te(Ge,t),Te(nt,i)}function Kc(e,t,i){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return i;o=o.getChildContext();for(var l in o)if(!(l in t))throw Error(s(108,Ce(e)||"Unknown",l));return G({},i,o)}function ts(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||on,Cn=Ge.current,Te(Ge,e),Te(nt,nt.current),!0}function Qc(e,t,i){var o=e.stateNode;if(!o)throw Error(s(169));i?(e=Kc(e,t,Cn),o.__reactInternalMemoizedMergedChildContext=e,Ee(nt),Ee(Ge),Te(Ge,e)):Ee(nt),Te(nt,i)}var zt=null,ns=!1,na=!1;function Gc(e){zt===null?zt=[e]:zt.push(e)}function n0(e){ns=!0,Gc(e)}function an(){if(!na&&zt!==null){na=!0;var e=0,t=Se;try{var i=zt;for(Se=1;e<i.length;e++){var o=i[e];do o=o(!0);while(o!==null)}zt=null,ns=!1}catch(l){throw zt!==null&&(zt=zt.slice(e+1)),Xu(To,an),l}finally{Se=t,na=!1}}return null}var Jn=[],er=0,rs=null,is=0,mt=[],gt=0,Tn=null,Bt=1,Ut="";function Pn(e,t){Jn[er++]=is,Jn[er++]=rs,rs=e,is=t}function Yc(e,t,i){mt[gt++]=Bt,mt[gt++]=Ut,mt[gt++]=Tn,Tn=e;var o=Bt;e=Ut;var l=32-Ct(o)-1;o&=~(1<<l),i+=1;var c=32-Ct(t)+l;if(30<c){var p=l-l%5;c=(o&(1<<p)-1).toString(32),o>>=p,l-=p,Bt=1<<32-Ct(t)+l|i<<l|o,Ut=c+e}else Bt=1<<c|i<<l|o,Ut=e}function ra(e){e.return!==null&&(Pn(e,1),Yc(e,1,0))}function ia(e){for(;e===rs;)rs=Jn[--er],Jn[er]=null,is=Jn[--er],Jn[er]=null;for(;e===Tn;)Tn=mt[--gt],mt[gt]=null,Ut=mt[--gt],mt[gt]=null,Bt=mt[--gt],mt[gt]=null}var ct=null,dt=null,je=!1,Pt=null;function Xc(e,t){var i=wt(5,null,null,0);i.elementType="DELETED",i.stateNode=t,i.return=e,t=e.deletions,t===null?(e.deletions=[i],e.flags|=16):t.push(i)}function qc(e,t){switch(e.tag){case 5:var i=e.type;return t=t.nodeType!==1||i.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,dt=rn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(i=Tn!==null?{id:Bt,overflow:Ut}:null,e.memoizedState={dehydrated:t,treeContext:i,retryLane:1073741824},i=wt(18,null,null,0),i.stateNode=t,i.return=e,e.child=i,ct=e,dt=null,!0):!1;default:return!1}}function sa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function oa(e){if(je){var t=dt;if(t){var i=t;if(!qc(e,t)){if(sa(e))throw Error(s(418));t=rn(i.nextSibling);var o=ct;t&&qc(e,t)?Xc(o,i):(e.flags=e.flags&-4097|2,je=!1,ct=e)}}else{if(sa(e))throw Error(s(418));e.flags=e.flags&-4097|2,je=!1,ct=e}}}function Zc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function ss(e){if(e!==ct)return!1;if(!je)return Zc(e),je=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!qo(e.type,e.memoizedProps)),t&&(t=dt)){if(sa(e))throw Jc(),Error(s(418));for(;t;)Xc(e,t),t=rn(t.nextSibling)}if(Zc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(t===0){dt=rn(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++}e=e.nextSibling}dt=null}}else dt=ct?rn(e.stateNode.nextSibling):null;return!0}function Jc(){for(var e=dt;e;)e=rn(e.nextSibling)}function tr(){dt=ct=null,je=!1}function aa(e){Pt===null?Pt=[e]:Pt.push(e)}var r0=E.ReactCurrentBatchConfig;function Gr(e,t,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(s(309));var o=i.stateNode}if(!o)throw Error(s(147,e));var l=o,c=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c?t.ref:(t=function(p){var w=l.refs;p===null?delete w[c]:w[c]=p},t._stringRef=c,t)}if(typeof e!="string")throw Error(s(284));if(!i._owner)throw Error(s(290,e))}return e}function os(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ed(e){var t=e._init;return t(e._payload)}function td(e){function t(N,C){if(e){var M=N.deletions;M===null?(N.deletions=[C],N.flags|=16):M.push(C)}}function i(N,C){if(!e)return null;for(;C!==null;)t(N,C),C=C.sibling;return null}function o(N,C){for(N=new Map;C!==null;)C.key!==null?N.set(C.key,C):N.set(C.index,C),C=C.sibling;return N}function l(N,C){return N=mn(N,C),N.index=0,N.sibling=null,N}function c(N,C,M){return N.index=M,e?(M=N.alternate,M!==null?(M=M.index,M<C?(N.flags|=2,C):M):(N.flags|=2,C)):(N.flags|=1048576,C)}function p(N){return e&&N.alternate===null&&(N.flags|=2),N}function w(N,C,M,K){return C===null||C.tag!==6?(C=Za(M,N.mode,K),C.return=N,C):(C=l(C,M),C.return=N,C)}function k(N,C,M,K){var ie=M.type;return ie===B?$(N,C,M.props.children,K,M.key):C!==null&&(C.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===J&&ed(ie)===C.type)?(K=l(C,M.props),K.ref=Gr(N,C,M),K.return=N,K):(K=Ms(M.type,M.key,M.props,null,N.mode,K),K.ref=Gr(N,C,M),K.return=N,K)}function I(N,C,M,K){return C===null||C.tag!==4||C.stateNode.containerInfo!==M.containerInfo||C.stateNode.implementation!==M.implementation?(C=Ja(M,N.mode,K),C.return=N,C):(C=l(C,M.children||[]),C.return=N,C)}function $(N,C,M,K,ie){return C===null||C.tag!==7?(C=Rn(M,N.mode,K,ie),C.return=N,C):(C=l(C,M),C.return=N,C)}function W(N,C,M){if(typeof C=="string"&&C!==""||typeof C=="number")return C=Za(""+C,N.mode,M),C.return=N,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case R:return M=Ms(C.type,C.key,C.props,null,N.mode,M),M.ref=Gr(N,null,C),M.return=N,M;case j:return C=Ja(C,N.mode,M),C.return=N,C;case J:var K=C._init;return W(N,K(C._payload),M)}if(Cr(C)||Y(C))return C=Rn(C,N.mode,M,null),C.return=N,C;os(N,C)}return null}function U(N,C,M,K){var ie=C!==null?C.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ie!==null?null:w(N,C,""+M,K);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case R:return M.key===ie?k(N,C,M,K):null;case j:return M.key===ie?I(N,C,M,K):null;case J:return ie=M._init,U(N,C,ie(M._payload),K)}if(Cr(M)||Y(M))return ie!==null?null:$(N,C,M,K,null);os(N,M)}return null}function X(N,C,M,K,ie){if(typeof K=="string"&&K!==""||typeof K=="number")return N=N.get(M)||null,w(C,N,""+K,ie);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case R:return N=N.get(K.key===null?M:K.key)||null,k(C,N,K,ie);case j:return N=N.get(K.key===null?M:K.key)||null,I(C,N,K,ie);case J:var ae=K._init;return X(N,C,M,ae(K._payload),ie)}if(Cr(K)||Y(K))return N=N.get(M)||null,$(C,N,K,ie,null);os(C,K)}return null}function ee(N,C,M,K){for(var ie=null,ae=null,le=C,ce=C=0,We=null;le!==null&&ce<M.length;ce++){le.index>ce?(We=le,le=null):We=le.sibling;var xe=U(N,le,M[ce],K);if(xe===null){le===null&&(le=We);break}e&&le&&xe.alternate===null&&t(N,le),C=c(xe,C,ce),ae===null?ie=xe:ae.sibling=xe,ae=xe,le=We}if(ce===M.length)return i(N,le),je&&Pn(N,ce),ie;if(le===null){for(;ce<M.length;ce++)le=W(N,M[ce],K),le!==null&&(C=c(le,C,ce),ae===null?ie=le:ae.sibling=le,ae=le);return je&&Pn(N,ce),ie}for(le=o(N,le);ce<M.length;ce++)We=X(le,N,ce,M[ce],K),We!==null&&(e&&We.alternate!==null&&le.delete(We.key===null?ce:We.key),C=c(We,C,ce),ae===null?ie=We:ae.sibling=We,ae=We);return e&&le.forEach(function(gn){return t(N,gn)}),je&&Pn(N,ce),ie}function te(N,C,M,K){var ie=Y(M);if(typeof ie!="function")throw Error(s(150));if(M=ie.call(M),M==null)throw Error(s(151));for(var ae=ie=null,le=C,ce=C=0,We=null,xe=M.next();le!==null&&!xe.done;ce++,xe=M.next()){le.index>ce?(We=le,le=null):We=le.sibling;var gn=U(N,le,xe.value,K);if(gn===null){le===null&&(le=We);break}e&&le&&gn.alternate===null&&t(N,le),C=c(gn,C,ce),ae===null?ie=gn:ae.sibling=gn,ae=gn,le=We}if(xe.done)return i(N,le),je&&Pn(N,ce),ie;if(le===null){for(;!xe.done;ce++,xe=M.next())xe=W(N,xe.value,K),xe!==null&&(C=c(xe,C,ce),ae===null?ie=xe:ae.sibling=xe,ae=xe);return je&&Pn(N,ce),ie}for(le=o(N,le);!xe.done;ce++,xe=M.next())xe=X(le,N,ce,xe.value,K),xe!==null&&(e&&xe.alternate!==null&&le.delete(xe.key===null?ce:xe.key),C=c(xe,C,ce),ae===null?ie=xe:ae.sibling=xe,ae=xe);return e&&le.forEach(function(V0){return t(N,V0)}),je&&Pn(N,ce),ie}function Ve(N,C,M,K){if(typeof M=="object"&&M!==null&&M.type===B&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case R:e:{for(var ie=M.key,ae=C;ae!==null;){if(ae.key===ie){if(ie=M.type,ie===B){if(ae.tag===7){i(N,ae.sibling),C=l(ae,M.props.children),C.return=N,N=C;break e}}else if(ae.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===J&&ed(ie)===ae.type){i(N,ae.sibling),C=l(ae,M.props),C.ref=Gr(N,ae,M),C.return=N,N=C;break e}i(N,ae);break}else t(N,ae);ae=ae.sibling}M.type===B?(C=Rn(M.props.children,N.mode,K,M.key),C.return=N,N=C):(K=Ms(M.type,M.key,M.props,null,N.mode,K),K.ref=Gr(N,C,M),K.return=N,N=K)}return p(N);case j:e:{for(ae=M.key;C!==null;){if(C.key===ae)if(C.tag===4&&C.stateNode.containerInfo===M.containerInfo&&C.stateNode.implementation===M.implementation){i(N,C.sibling),C=l(C,M.children||[]),C.return=N,N=C;break e}else{i(N,C);break}else t(N,C);C=C.sibling}C=Ja(M,N.mode,K),C.return=N,N=C}return p(N);case J:return ae=M._init,Ve(N,C,ae(M._payload),K)}if(Cr(M))return ee(N,C,M,K);if(Y(M))return te(N,C,M,K);os(N,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,C!==null&&C.tag===6?(i(N,C.sibling),C=l(C,M),C.return=N,N=C):(i(N,C),C=Za(M,N.mode,K),C.return=N,N=C),p(N)):i(N,C)}return Ve}var nr=td(!0),nd=td(!1),as=sn(null),ls=null,rr=null,la=null;function ua(){la=rr=ls=null}function ca(e){var t=as.current;Ee(as),e._currentValue=t}function da(e,t,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===i)break;e=e.return}}function ir(e,t){ls=e,la=rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(it=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(la!==e)if(e={context:e,memoizedValue:t,next:null},rr===null){if(ls===null)throw Error(s(308));rr=e,ls.dependencies={lanes:0,firstContext:e}}else rr=rr.next=e;return t}var En=null;function fa(e){En===null?En=[e]:En.push(e)}function rd(e,t,i,o){var l=t.interleaved;return l===null?(i.next=i,fa(t)):(i.next=l.next,l.next=i),t.interleaved=i,$t(e,o)}function $t(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var ln=!1;function ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function id(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function un(e,t,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ge&2)!==0){var l=o.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,$t(e,i)}return l=o.interleaved,l===null?(t.next=t,fa(o)):(t.next=l.next,l.next=t),o.interleaved=t,$t(e,i)}function us(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,No(e,i)}}function sd(e,t){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var l=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var p={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};c===null?l=c=p:c=c.next=p,i=i.next}while(i!==null);c===null?l=c=t:c=c.next=t}else l=c=t;i={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:o.shared,effects:o.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function cs(e,t,i,o){var l=e.updateQueue;ln=!1;var c=l.firstBaseUpdate,p=l.lastBaseUpdate,w=l.shared.pending;if(w!==null){l.shared.pending=null;var k=w,I=k.next;k.next=null,p===null?c=I:p.next=I,p=k;var $=e.alternate;$!==null&&($=$.updateQueue,w=$.lastBaseUpdate,w!==p&&(w===null?$.firstBaseUpdate=I:w.next=I,$.lastBaseUpdate=k))}if(c!==null){var W=l.baseState;p=0,$=I=k=null,w=c;do{var U=w.lane,X=w.eventTime;if((o&U)===U){$!==null&&($=$.next={eventTime:X,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var ee=e,te=w;switch(U=t,X=i,te.tag){case 1:if(ee=te.payload,typeof ee=="function"){W=ee.call(X,W,U);break e}W=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=te.payload,U=typeof ee=="function"?ee.call(X,W,U):ee,U==null)break e;W=G({},W,U);break e;case 2:ln=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,U=l.effects,U===null?l.effects=[w]:U.push(w))}else X={eventTime:X,lane:U,tag:w.tag,payload:w.payload,callback:w.callback,next:null},$===null?(I=$=X,k=W):$=$.next=X,p|=U;if(w=w.next,w===null){if(w=l.shared.pending,w===null)break;U=w,w=U.next,U.next=null,l.lastBaseUpdate=U,l.shared.pending=null}}while(!0);if($===null&&(k=W),l.baseState=k,l.firstBaseUpdate=I,l.lastBaseUpdate=$,t=l.shared.interleaved,t!==null){l=t;do p|=l.lane,l=l.next;while(l!==t)}else c===null&&(l.shared.lanes=0);jn|=p,e.lanes=p,e.memoizedState=W}}function od(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],l=o.callback;if(l!==null){if(o.callback=null,o=i,typeof l!="function")throw Error(s(191,l));l.call(o)}}}var Yr={},Rt=sn(Yr),Xr=sn(Yr),qr=sn(Yr);function Nn(e){if(e===Yr)throw Error(s(174));return e}function pa(e,t){switch(Te(qr,t),Te(Xr,e),Te(Rt,Yr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mo(t,e)}Ee(Rt),Te(Rt,t)}function sr(){Ee(Rt),Ee(Xr),Ee(qr)}function ad(e){Nn(qr.current);var t=Nn(Rt.current),i=mo(t,e.type);t!==i&&(Te(Xr,e),Te(Rt,i))}function ma(e){Xr.current===e&&(Ee(Rt),Ee(Xr))}var Me=sn(0);function ds(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 ga=[];function va(){for(var e=0;e<ga.length;e++)ga[e]._workInProgressVersionPrimary=null;ga.length=0}var fs=E.ReactCurrentDispatcher,ya=E.ReactCurrentBatchConfig,An=0,De=null,Oe=null,Ue=null,hs=!1,Zr=!1,Jr=0,i0=0;function Ye(){throw Error(s(321))}function xa(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Tt(e[i],t[i]))return!1;return!0}function wa(e,t,i,o,l,c){if(An=c,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fs.current=e===null||e.memoizedState===null?l0:u0,e=i(o,l),Zr){c=0;do{if(Zr=!1,Jr=0,25<=c)throw Error(s(301));c+=1,Ue=Oe=null,t.updateQueue=null,fs.current=c0,e=i(o,l)}while(Zr)}if(fs.current=gs,t=Oe!==null&&Oe.next!==null,An=0,Ue=Oe=De=null,hs=!1,t)throw Error(s(300));return e}function Sa(){var e=Jr!==0;return Jr=0,e}function It(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?De.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function yt(){if(Oe===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Ue===null?De.memoizedState:Ue.next;if(t!==null)Ue=t,Oe=e;else{if(e===null)throw Error(s(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Ue===null?De.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function ei(e,t){return typeof t=="function"?t(e):t}function ka(e){var t=yt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var o=Oe,l=o.baseQueue,c=i.pending;if(c!==null){if(l!==null){var p=l.next;l.next=c.next,c.next=p}o.baseQueue=l=c,i.pending=null}if(l!==null){c=l.next,o=o.baseState;var w=p=null,k=null,I=c;do{var $=I.lane;if((An&$)===$)k!==null&&(k=k.next={lane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),o=I.hasEagerState?I.eagerState:e(o,I.action);else{var W={lane:$,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null};k===null?(w=k=W,p=o):k=k.next=W,De.lanes|=$,jn|=$}I=I.next}while(I!==null&&I!==c);k===null?p=o:k.next=w,Tt(o,t.memoizedState)||(it=!0),t.memoizedState=o,t.baseState=p,t.baseQueue=k,i.lastRenderedState=o}if(e=i.interleaved,e!==null){l=e;do c=l.lane,De.lanes|=c,jn|=c,l=l.next;while(l!==e)}else l===null&&(i.lanes=0);return[t.memoizedState,i.dispatch]}function Ca(e){var t=yt(),i=t.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=e;var o=i.dispatch,l=i.pending,c=t.memoizedState;if(l!==null){i.pending=null;var p=l=l.next;do c=e(c,p.action),p=p.next;while(p!==l);Tt(c,t.memoizedState)||(it=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),i.lastRenderedState=c}return[c,o]}function ld(){}function ud(e,t){var i=De,o=yt(),l=t(),c=!Tt(o.memoizedState,l);if(c&&(o.memoizedState=l,it=!0),o=o.queue,Ta(fd.bind(null,i,o,e),[e]),o.getSnapshot!==t||c||Ue!==null&&Ue.memoizedState.tag&1){if(i.flags|=2048,ti(9,dd.bind(null,i,o,l,t),void 0,null),$e===null)throw Error(s(349));(An&30)!==0||cd(i,t,l)}return l}function cd(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function dd(e,t,i,o){t.value=i,t.getSnapshot=o,hd(t)&&pd(e)}function fd(e,t,i){return i(function(){hd(t)&&pd(e)})}function hd(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Tt(e,i)}catch{return!0}}function pd(e){var t=$t(e,1);t!==null&&jt(t,e,1,-1)}function md(e){var t=It();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:e},t.queue=e,e=e.dispatch=a0.bind(null,De,e),[t.memoizedState,e]}function ti(e,t,i,o){return e={tag:e,create:t,destroy:i,deps:o,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(i=t.lastEffect,i===null?t.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,t.lastEffect=e)),e}function gd(){return yt().memoizedState}function ps(e,t,i,o){var l=It();De.flags|=e,l.memoizedState=ti(1|t,i,void 0,o===void 0?null:o)}function ms(e,t,i,o){var l=yt();o=o===void 0?null:o;var c=void 0;if(Oe!==null){var p=Oe.memoizedState;if(c=p.destroy,o!==null&&xa(o,p.deps)){l.memoizedState=ti(t,i,c,o);return}}De.flags|=e,l.memoizedState=ti(1|t,i,c,o)}function vd(e,t){return ps(8390656,8,e,t)}function Ta(e,t){return ms(2048,8,e,t)}function yd(e,t){return ms(4,2,e,t)}function xd(e,t){return ms(4,4,e,t)}function wd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sd(e,t,i){return i=i!=null?i.concat([e]):null,ms(4,4,wd.bind(null,t,e),i)}function Pa(){}function kd(e,t){var i=yt();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&xa(t,o[1])?o[0]:(i.memoizedState=[e,t],e)}function Cd(e,t){var i=yt();t=t===void 0?null:t;var o=i.memoizedState;return o!==null&&t!==null&&xa(t,o[1])?o[0]:(e=e(),i.memoizedState=[e,t],e)}function Td(e,t,i){return(An&21)===0?(e.baseState&&(e.baseState=!1,it=!0),e.memoizedState=i):(Tt(i,t)||(i=ec(),De.lanes|=i,jn|=i,e.baseState=!0),t)}function s0(e,t){var i=Se;Se=i!==0&&4>i?i:4,e(!0);var o=ya.transition;ya.transition={};try{e(!1),t()}finally{Se=i,ya.transition=o}}function Pd(){return yt().memoizedState}function o0(e,t,i){var o=hn(e);if(i={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null},Ed(e))Nd(t,i);else if(i=rd(e,t,i,o),i!==null){var l=tt();jt(i,e,o,l),Ad(i,t,o)}}function a0(e,t,i){var o=hn(e),l={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ed(e))Nd(t,l);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var p=t.lastRenderedState,w=c(p,i);if(l.hasEagerState=!0,l.eagerState=w,Tt(w,p)){var k=t.interleaved;k===null?(l.next=l,fa(t)):(l.next=k.next,k.next=l),t.interleaved=l;return}}catch{}finally{}i=rd(e,t,l,o),i!==null&&(l=tt(),jt(i,e,o,l),Ad(i,t,o))}}function Ed(e){var t=e.alternate;return e===De||t!==null&&t===De}function Nd(e,t){Zr=hs=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Ad(e,t,i){if((i&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,i|=o,t.lanes=i,No(e,i)}}var gs={readContext:vt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},l0={readContext:vt,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:vd,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,ps(4194308,4,wd.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ps(4194308,4,e,t)},useInsertionEffect:function(e,t){return ps(4,2,e,t)},useMemo:function(e,t){var i=It();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var o=It();return t=i!==void 0?i(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=o0.bind(null,De,e),[o.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:md,useDebugValue:Pa,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=md(!1),t=e[0];return e=s0.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var o=De,l=It();if(je){if(i===void 0)throw Error(s(407));i=i()}else{if(i=t(),$e===null)throw Error(s(349));(An&30)!==0||cd(o,t,i)}l.memoizedState=i;var c={value:i,getSnapshot:t};return l.queue=c,vd(fd.bind(null,o,c,e),[e]),o.flags|=2048,ti(9,dd.bind(null,o,c,i,t),void 0,null),i},useId:function(){var e=It(),t=$e.identifierPrefix;if(je){var i=Ut,o=Bt;i=(o&~(1<<32-Ct(o)-1)).toString(32)+i,t=":"+t+"R"+i,i=Jr++,0<i&&(t+="H"+i.toString(32)),t+=":"}else i=i0++,t=":"+t+"r"+i.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},u0={readContext:vt,useCallback:kd,useContext:vt,useEffect:Ta,useImperativeHandle:Sd,useInsertionEffect:yd,useLayoutEffect:xd,useMemo:Cd,useReducer:ka,useRef:gd,useState:function(){return ka(ei)},useDebugValue:Pa,useDeferredValue:function(e){var t=yt();return Td(t,Oe.memoizedState,e)},useTransition:function(){var e=ka(ei)[0],t=yt().memoizedState;return[e,t]},useMutableSource:ld,useSyncExternalStore:ud,useId:Pd,unstable_isNewReconciler:!1},c0={readContext:vt,useCallback:kd,useContext:vt,useEffect:Ta,useImperativeHandle:Sd,useInsertionEffect:yd,useLayoutEffect:xd,useMemo:Cd,useReducer:Ca,useRef:gd,useState:function(){return Ca(ei)},useDebugValue:Pa,useDeferredValue:function(e){var t=yt();return Oe===null?t.memoizedState=e:Td(t,Oe.memoizedState,e)},useTransition:function(){var e=Ca(ei)[0],t=yt().memoizedState;return[e,t]},useMutableSource:ld,useSyncExternalStore:ud,useId:Pd,unstable_isNewReconciler:!1};function Et(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var i in e)t[i]===void 0&&(t[i]=e[i]);return t}return t}function Ea(e,t,i,o){t=e.memoizedState,i=i(o,t),i=i==null?t:G({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var vs={isMounted:function(e){return(e=e._reactInternals)?Sn(e)===e:!1},enqueueSetState:function(e,t,i){e=e._reactInternals;var o=tt(),l=hn(e),c=Wt(o,l);c.payload=t,i!=null&&(c.callback=i),t=un(e,c,l),t!==null&&(jt(t,e,l,o),us(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var o=tt(),l=hn(e),c=Wt(o,l);c.tag=1,c.payload=t,i!=null&&(c.callback=i),t=un(e,c,l),t!==null&&(jt(t,e,l,o),us(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=tt(),o=hn(e),l=Wt(i,o);l.tag=2,t!=null&&(l.callback=t),t=un(e,l,o),t!==null&&(jt(t,e,o,i),us(t,e,o))}};function jd(e,t,i,o,l,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,c,p):t.prototype&&t.prototype.isPureReactComponent?!Br(i,o)||!Br(l,c):!0}function Md(e,t,i){var o=!1,l=on,c=t.contextType;return typeof c=="object"&&c!==null?c=vt(c):(l=rt(t)?Cn:Ge.current,o=t.contextTypes,c=(o=o!=null)?Zn(e,l):on),t=new t(i,c),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=vs,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=c),t}function Dd(e,t,i,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,o),t.state!==e&&vs.enqueueReplaceState(t,t.state,null)}function Na(e,t,i,o){var l=e.stateNode;l.props=i,l.state=e.memoizedState,l.refs={},ha(e);var c=t.contextType;typeof c=="object"&&c!==null?l.context=vt(c):(c=rt(t)?Cn:Ge.current,l.context=Zn(e,c)),l.state=e.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(Ea(e,t,c,i),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&vs.enqueueReplaceState(l,l.state,null),cs(e,i,l,o),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function or(e,t){try{var i="",o=t;do i+=ve(o),o=o.return;while(o);var l=i}catch(c){l=`
39
+ Error generating stack: `+c.message+`
40
+ `+c.stack}return{value:e,source:t,stack:l,digest:null}}function Aa(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function ja(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}var d0=typeof WeakMap=="function"?WeakMap:Map;function Ld(e,t,i){i=Wt(-1,i),i.tag=3,i.payload={element:null};var o=t.value;return i.callback=function(){Ts||(Ts=!0,Wa=o),ja(e,t)},i}function Rd(e,t,i){i=Wt(-1,i),i.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var l=t.value;i.payload=function(){return o(l)},i.callback=function(){ja(e,t)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(i.callback=function(){ja(e,t),typeof o!="function"&&(dn===null?dn=new Set([this]):dn.add(this));var p=t.stack;this.componentDidCatch(t.value,{componentStack:p!==null?p:""})}),i}function Id(e,t,i){var o=e.pingCache;if(o===null){o=e.pingCache=new d0;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(i)||(l.add(i),e=P0.bind(null,e,t,i),t.then(e,e))}function _d(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vd(e,t,i,o,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(t=Wt(-1,1),t.tag=2,un(i,t,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var f0=E.ReactCurrentOwner,it=!1;function et(e,t,i,o){t.child=e===null?nd(t,null,i,o):nr(t,e.child,i,o)}function bd(e,t,i,o,l){i=i.render;var c=t.ref;return ir(t,l),o=wa(e,t,i,o,c,l),i=Sa(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(je&&i&&ra(t),t.flags|=1,et(e,t,o,l),t.child)}function Fd(e,t,i,o,l){if(e===null){var c=i.type;return typeof c=="function"&&!qa(c)&&c.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=c,Od(e,t,c,o,l)):(e=Ms(i.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,(e.lanes&l)===0){var p=c.memoizedProps;if(i=i.compare,i=i!==null?i:Br,i(p,o)&&e.ref===t.ref)return Ht(e,t,l)}return t.flags|=1,e=mn(c,o),e.ref=t.ref,e.return=t,t.child=e}function Od(e,t,i,o,l){if(e!==null){var c=e.memoizedProps;if(Br(c,o)&&e.ref===t.ref)if(it=!1,t.pendingProps=o=c,(e.lanes&l)!==0)(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Ht(e,t,l)}return Ma(e,t,i,o,l)}function zd(e,t,i){var o=t.pendingProps,l=o.children,c=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Te(lr,ft),ft|=i;else{if((i&1073741824)===0)return e=c!==null?c.baseLanes|i:i,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Te(lr,ft),ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=c!==null?c.baseLanes:i,Te(lr,ft),ft|=o}else c!==null?(o=c.baseLanes|i,t.memoizedState=null):o=i,Te(lr,ft),ft|=o;return et(e,t,l,i),t.child}function Bd(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function Ma(e,t,i,o,l){var c=rt(i)?Cn:Ge.current;return c=Zn(t,c),ir(t,l),i=wa(e,t,i,o,c,l),o=Sa(),e!==null&&!it?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ht(e,t,l)):(je&&o&&ra(t),t.flags|=1,et(e,t,i,l),t.child)}function Ud(e,t,i,o,l){if(rt(i)){var c=!0;ts(t)}else c=!1;if(ir(t,l),t.stateNode===null)xs(e,t),Md(t,i,o),Na(t,i,o,l),o=!0;else if(e===null){var p=t.stateNode,w=t.memoizedProps;p.props=w;var k=p.context,I=i.contextType;typeof I=="object"&&I!==null?I=vt(I):(I=rt(i)?Cn:Ge.current,I=Zn(t,I));var $=i.getDerivedStateFromProps,W=typeof $=="function"||typeof p.getSnapshotBeforeUpdate=="function";W||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==o||k!==I)&&Dd(t,p,o,I),ln=!1;var U=t.memoizedState;p.state=U,cs(t,o,p,l),k=t.memoizedState,w!==o||U!==k||nt.current||ln?(typeof $=="function"&&(Ea(t,i,$,o),k=t.memoizedState),(w=ln||jd(t,i,w,o,U,k,I))?(W||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=k),p.props=o,p.state=k,p.context=I,o=w):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{p=t.stateNode,id(e,t),w=t.memoizedProps,I=t.type===t.elementType?w:Et(t.type,w),p.props=I,W=t.pendingProps,U=p.context,k=i.contextType,typeof k=="object"&&k!==null?k=vt(k):(k=rt(i)?Cn:Ge.current,k=Zn(t,k));var X=i.getDerivedStateFromProps;($=typeof X=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==W||U!==k)&&Dd(t,p,o,k),ln=!1,U=t.memoizedState,p.state=U,cs(t,o,p,l);var ee=t.memoizedState;w!==W||U!==ee||nt.current||ln?(typeof X=="function"&&(Ea(t,i,X,o),ee=t.memoizedState),(I=ln||jd(t,i,I,o,U,ee,k)||!1)?($||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,ee,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,ee,k)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=ee),p.props=o,p.state=ee,p.context=k,o=I):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),o=!1)}return Da(e,t,i,o,c,l)}function Da(e,t,i,o,l,c){Bd(e,t);var p=(t.flags&128)!==0;if(!o&&!p)return l&&Qc(t,i,!1),Ht(e,t,c);o=t.stateNode,f0.current=t;var w=p&&typeof i.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&p?(t.child=nr(t,e.child,null,c),t.child=nr(t,null,w,c)):et(e,t,w,c),t.memoizedState=o.state,l&&Qc(t,i,!0),t.child}function $d(e){var t=e.stateNode;t.pendingContext?Hc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hc(e,t.context,!1),pa(e,t.containerInfo)}function Wd(e,t,i,o,l){return tr(),aa(l),t.flags|=256,et(e,t,i,o),t.child}var La={dehydrated:null,treeContext:null,retryLane:0};function Ra(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hd(e,t,i){var o=t.pendingProps,l=Me.current,c=!1,p=(t.flags&128)!==0,w;if((w=p)||(w=e!==null&&e.memoizedState===null?!1:(l&2)!==0),w?(c=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Te(Me,l&1),e===null)return oa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(p=o.children,e=o.fallback,c?(o=t.mode,c=t.child,p={mode:"hidden",children:p},(o&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=p):c=Ds(p,o,0,null),e=Rn(e,o,i,null),c.return=t,e.return=t,c.sibling=e,t.child=c,t.child.memoizedState=Ra(i),t.memoizedState=La,e):Ia(t,p));if(l=e.memoizedState,l!==null&&(w=l.dehydrated,w!==null))return h0(e,t,p,o,w,l,i);if(c){c=o.fallback,p=t.mode,l=e.child,w=l.sibling;var k={mode:"hidden",children:o.children};return(p&1)===0&&t.child!==l?(o=t.child,o.childLanes=0,o.pendingProps=k,t.deletions=null):(o=mn(l,k),o.subtreeFlags=l.subtreeFlags&14680064),w!==null?c=mn(w,c):(c=Rn(c,p,i,null),c.flags|=2),c.return=t,o.return=t,o.sibling=c,t.child=o,o=c,c=t.child,p=e.child.memoizedState,p=p===null?Ra(i):{baseLanes:p.baseLanes|i,cachePool:null,transitions:p.transitions},c.memoizedState=p,c.childLanes=e.childLanes&~i,t.memoizedState=La,o}return c=e.child,e=c.sibling,o=mn(c,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=i),o.return=t,o.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=o,t.memoizedState=null,o}function Ia(e,t){return t=Ds({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ys(e,t,i,o){return o!==null&&aa(o),nr(t,e.child,null,i),e=Ia(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function h0(e,t,i,o,l,c,p){if(i)return t.flags&256?(t.flags&=-257,o=Aa(Error(s(422))),ys(e,t,p,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(c=o.fallback,l=t.mode,o=Ds({mode:"visible",children:o.children},l,0,null),c=Rn(c,l,p,null),c.flags|=2,o.return=t,c.return=t,o.sibling=c,t.child=o,(t.mode&1)!==0&&nr(t,e.child,null,p),t.child.memoizedState=Ra(p),t.memoizedState=La,c);if((t.mode&1)===0)return ys(e,t,p,null);if(l.data==="$!"){if(o=l.nextSibling&&l.nextSibling.dataset,o)var w=o.dgst;return o=w,c=Error(s(419)),o=Aa(c,o,void 0),ys(e,t,p,o)}if(w=(p&e.childLanes)!==0,it||w){if(o=$e,o!==null){switch(p&-p){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(o.suspendedLanes|p))!==0?0:l,l!==0&&l!==c.retryLane&&(c.retryLane=l,$t(e,l),jt(o,e,l,-1))}return Xa(),o=Aa(Error(s(421))),ys(e,t,p,o)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=E0.bind(null,e),l._reactRetry=t,null):(e=c.treeContext,dt=rn(l.nextSibling),ct=t,je=!0,Pt=null,e!==null&&(mt[gt++]=Bt,mt[gt++]=Ut,mt[gt++]=Tn,Bt=e.id,Ut=e.overflow,Tn=t),t=Ia(t,o.children),t.flags|=4096,t)}function Kd(e,t,i){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),da(e.return,t,i)}function _a(e,t,i,o,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:l}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=i,c.tailMode=l)}function Qd(e,t,i){var o=t.pendingProps,l=o.revealOrder,c=o.tail;if(et(e,t,o.children,i),o=Me.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kd(e,i,t);else if(e.tag===19)Kd(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Te(Me,o),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(i=t.child,l=null;i!==null;)e=i.alternate,e!==null&&ds(e)===null&&(l=i),i=i.sibling;i=l,i===null?(l=t.child,t.child=null):(l=i.sibling,i.sibling=null),_a(t,!1,l,i,c);break;case"backwards":for(i=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ds(e)===null){t.child=l;break}e=l.sibling,l.sibling=i,i=l,l=e}_a(t,!0,i,null,c);break;case"together":_a(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xs(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ht(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),jn|=t.lanes,(i&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,i=mn(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=mn(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function p0(e,t,i){switch(t.tag){case 3:$d(t),tr();break;case 5:ad(t);break;case 1:rt(t.type)&&ts(t);break;case 4:pa(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,l=t.memoizedProps.value;Te(as,o._currentValue),o._currentValue=l;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Te(Me,Me.current&1),t.flags|=128,null):(i&t.child.childLanes)!==0?Hd(e,t,i):(Te(Me,Me.current&1),e=Ht(e,t,i),e!==null?e.sibling:null);Te(Me,Me.current&1);break;case 19:if(o=(i&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Qd(e,t,i);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Te(Me,Me.current),o)break;return null;case 22:case 23:return t.lanes=0,zd(e,t,i)}return Ht(e,t,i)}var Gd,Va,Yd,Xd;Gd=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},Va=function(){},Yd=function(e,t,i,o){var l=e.memoizedProps;if(l!==o){e=t.stateNode,Nn(Rt.current);var c=null;switch(i){case"input":l=co(e,l),o=co(e,o),c=[];break;case"select":l=G({},l,{value:void 0}),o=G({},o,{value:void 0}),c=[];break;case"textarea":l=po(e,l),o=po(e,o),c=[];break;default:typeof l.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Zi)}go(i,o);var p;i=null;for(I in l)if(!o.hasOwnProperty(I)&&l.hasOwnProperty(I)&&l[I]!=null)if(I==="style"){var w=l[I];for(p in w)w.hasOwnProperty(p)&&(i||(i={}),i[p]="")}else I!=="dangerouslySetInnerHTML"&&I!=="children"&&I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(u.hasOwnProperty(I)?c||(c=[]):(c=c||[]).push(I,null));for(I in o){var k=o[I];if(w=l!=null?l[I]:void 0,o.hasOwnProperty(I)&&k!==w&&(k!=null||w!=null))if(I==="style")if(w){for(p in w)!w.hasOwnProperty(p)||k&&k.hasOwnProperty(p)||(i||(i={}),i[p]="");for(p in k)k.hasOwnProperty(p)&&w[p]!==k[p]&&(i||(i={}),i[p]=k[p])}else i||(c||(c=[]),c.push(I,i)),i=k;else I==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,w=w?w.__html:void 0,k!=null&&w!==k&&(c=c||[]).push(I,k)):I==="children"?typeof k!="string"&&typeof k!="number"||(c=c||[]).push(I,""+k):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&(u.hasOwnProperty(I)?(k!=null&&I==="onScroll"&&Pe("scroll",e),c||w===k||(c=[])):(c=c||[]).push(I,k))}i&&(c=c||[]).push("style",i);var I=c;(t.updateQueue=I)&&(t.flags|=4)}},Xd=function(e,t,i,o){i!==o&&(t.flags|=4)};function ni(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(t)for(var l=e.child;l!==null;)i|=l.lanes|l.childLanes,o|=l.subtreeFlags&14680064,o|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)i|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=i,t}function m0(e,t,i){var o=t.pendingProps;switch(ia(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return rt(t.type)&&es(),Xe(t),null;case 3:return o=t.stateNode,sr(),Ee(nt),Ee(Ge),va(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(ss(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pt!==null&&(Qa(Pt),Pt=null))),Va(e,t),Xe(t),null;case 5:ma(t);var l=Nn(qr.current);if(i=t.type,e!==null&&t.stateNode!=null)Yd(e,t,i,o,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(s(166));return Xe(t),null}if(e=Nn(Rt.current),ss(t)){o=t.stateNode,i=t.type;var c=t.memoizedProps;switch(o[Lt]=t,o[Kr]=c,e=(t.mode&1)!==0,i){case"dialog":Pe("cancel",o),Pe("close",o);break;case"iframe":case"object":case"embed":Pe("load",o);break;case"video":case"audio":for(l=0;l<$r.length;l++)Pe($r[l],o);break;case"source":Pe("error",o);break;case"img":case"image":case"link":Pe("error",o),Pe("load",o);break;case"details":Pe("toggle",o);break;case"input":Mu(o,c),Pe("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},Pe("invalid",o);break;case"textarea":Ru(o,c),Pe("invalid",o)}go(i,c),l=null;for(var p in c)if(c.hasOwnProperty(p)){var w=c[p];p==="children"?typeof w=="string"?o.textContent!==w&&(c.suppressHydrationWarning!==!0&&qi(o.textContent,w,e),l=["children",w]):typeof w=="number"&&o.textContent!==""+w&&(c.suppressHydrationWarning!==!0&&qi(o.textContent,w,e),l=["children",""+w]):u.hasOwnProperty(p)&&w!=null&&p==="onScroll"&&Pe("scroll",o)}switch(i){case"input":Ai(o),Lu(o,c,!0);break;case"textarea":Ai(o),_u(o);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(o.onclick=Zi)}o=l,t.updateQueue=o,o!==null&&(t.flags|=4)}else{p=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Vu(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=p.createElement(i,{is:o.is}):(e=p.createElement(i),i==="select"&&(p=e,o.multiple?p.multiple=!0:o.size&&(p.size=o.size))):e=p.createElementNS(e,i),e[Lt]=t,e[Kr]=o,Gd(e,t,!1,!1),t.stateNode=e;e:{switch(p=vo(i,o),i){case"dialog":Pe("cancel",e),Pe("close",e),l=o;break;case"iframe":case"object":case"embed":Pe("load",e),l=o;break;case"video":case"audio":for(l=0;l<$r.length;l++)Pe($r[l],e);l=o;break;case"source":Pe("error",e),l=o;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),l=o;break;case"details":Pe("toggle",e),l=o;break;case"input":Mu(e,o),l=co(e,o),Pe("invalid",e);break;case"option":l=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=G({},o,{value:void 0}),Pe("invalid",e);break;case"textarea":Ru(e,o),l=po(e,o),Pe("invalid",e);break;default:l=o}go(i,l),w=l;for(c in w)if(w.hasOwnProperty(c)){var k=w[c];c==="style"?Ou(e,k):c==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&bu(e,k)):c==="children"?typeof k=="string"?(i!=="textarea"||k!=="")&&Tr(e,k):typeof k=="number"&&Tr(e,""+k):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?k!=null&&c==="onScroll"&&Pe("scroll",e):k!=null&&O(e,c,k,p))}switch(i){case"input":Ai(e),Lu(e,o,!1);break;case"textarea":Ai(e),_u(e);break;case"option":o.value!=null&&e.setAttribute("value",""+we(o.value));break;case"select":e.multiple=!!o.multiple,c=o.value,c!=null?zn(e,!!o.multiple,c,!1):o.defaultValue!=null&&zn(e,!!o.multiple,o.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Zi)}switch(i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Xe(t),null;case 6:if(e&&t.stateNode!=null)Xd(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(s(166));if(i=Nn(qr.current),Nn(Rt.current),ss(t)){if(o=t.stateNode,i=t.memoizedProps,o[Lt]=t,(c=o.nodeValue!==i)&&(e=ct,e!==null))switch(e.tag){case 3:qi(o.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qi(o.nodeValue,i,(e.mode&1)!==0)}c&&(t.flags|=4)}else o=(i.nodeType===9?i:i.ownerDocument).createTextNode(o),o[Lt]=t,t.stateNode=o}return Xe(t),null;case 13:if(Ee(Me),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(je&&dt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Jc(),tr(),t.flags|=98560,c=!1;else if(c=ss(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(s(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(s(317));c[Lt]=t}else tr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),c=!1}else Pt!==null&&(Qa(Pt),Pt=null),c=!0;if(!c)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=i,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Me.current&1)!==0?ze===0&&(ze=3):Xa())),t.updateQueue!==null&&(t.flags|=4),Xe(t),null);case 4:return sr(),Va(e,t),e===null&&Wr(t.stateNode.containerInfo),Xe(t),null;case 10:return ca(t.type._context),Xe(t),null;case 17:return rt(t.type)&&es(),Xe(t),null;case 19:if(Ee(Me),c=t.memoizedState,c===null)return Xe(t),null;if(o=(t.flags&128)!==0,p=c.rendering,p===null)if(o)ni(c,!1);else{if(ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=ds(e),p!==null){for(t.flags|=128,ni(c,!1),o=p.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=i,i=t.child;i!==null;)c=i,e=o,c.flags&=14680066,p=c.alternate,p===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=p.childLanes,c.lanes=p.lanes,c.child=p.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=p.memoizedProps,c.memoizedState=p.memoizedState,c.updateQueue=p.updateQueue,c.type=p.type,e=p.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return Te(Me,Me.current&1|2),t.child}e=e.sibling}c.tail!==null&&_e()>ur&&(t.flags|=128,o=!0,ni(c,!1),t.lanes=4194304)}else{if(!o)if(e=ds(p),e!==null){if(t.flags|=128,o=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),ni(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!je)return Xe(t),null}else 2*_e()-c.renderingStartTime>ur&&i!==1073741824&&(t.flags|=128,o=!0,ni(c,!1),t.lanes=4194304);c.isBackwards?(p.sibling=t.child,t.child=p):(i=c.last,i!==null?i.sibling=p:t.child=p,c.last=p)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=_e(),t.sibling=null,i=Me.current,Te(Me,o?i&1|2:i&1),t):(Xe(t),null);case 22:case 23:return Ya(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(ft&1073741824)!==0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function g0(e,t){switch(ia(t),t.tag){case 1:return rt(t.type)&&es(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),Ee(nt),Ee(Ge),va(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ma(t),null;case 13:if(Ee(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));tr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Me),null;case 4:return sr(),null;case 10:return ca(t.type._context),null;case 22:case 23:return Ya(),null;case 24:return null;default:return null}}var ws=!1,qe=!1,v0=typeof WeakSet=="function"?WeakSet:Set,Z=null;function ar(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(o){Re(e,t,o)}else i.current=null}function ba(e,t,i){try{i()}catch(o){Re(e,t,o)}}var qd=!1;function y0(e,t){if(Yo=zi,e=jc(),Bo(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var l=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var p=0,w=-1,k=-1,I=0,$=0,W=e,U=null;t:for(;;){for(var X;W!==i||l!==0&&W.nodeType!==3||(w=p+l),W!==c||o!==0&&W.nodeType!==3||(k=p+o),W.nodeType===3&&(p+=W.nodeValue.length),(X=W.firstChild)!==null;)U=W,W=X;for(;;){if(W===e)break t;if(U===i&&++I===l&&(w=p),U===c&&++$===o&&(k=p),(X=W.nextSibling)!==null)break;W=U,U=W.parentNode}W=X}i=w===-1||k===-1?null:{start:w,end:k}}else i=null}i=i||{start:0,end:0}}else i=null;for(Xo={focusedElem:e,selectionRange:i},zi=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var ee=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(ee!==null){var te=ee.memoizedProps,Ve=ee.memoizedState,N=t.stateNode,C=N.getSnapshotBeforeUpdate(t.elementType===t.type?te:Et(t.type,te),Ve);N.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(K){Re(t,t.return,K)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return ee=qd,qd=!1,ee}function ri(e,t,i){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var l=o=o.next;do{if((l.tag&e)===e){var c=l.destroy;l.destroy=void 0,c!==void 0&&ba(t,i,c)}l=l.next}while(l!==o)}}function Ss(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var o=i.create;i.destroy=o()}i=i.next}while(i!==t)}}function Fa(e){var t=e.ref;if(t!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof t=="function"?t(e):t.current=e}}function Zd(e){var t=e.alternate;t!==null&&(e.alternate=null,Zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lt],delete t[Kr],delete t[ea],delete t[e0],delete t[t0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Jd(e){return e.tag===5||e.tag===3||e.tag===4}function ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jd(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.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 Oa(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Zi));else if(o!==4&&(e=e.child,e!==null))for(Oa(e,t,i),e=e.sibling;e!==null;)Oa(e,t,i),e=e.sibling}function za(e,t,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(za(e,t,i),e=e.sibling;e!==null;)za(e,t,i),e=e.sibling}var He=null,Nt=!1;function cn(e,t,i){for(i=i.child;i!==null;)tf(e,t,i),i=i.sibling}function tf(e,t,i){if(Dt&&typeof Dt.onCommitFiberUnmount=="function")try{Dt.onCommitFiberUnmount(Ii,i)}catch{}switch(i.tag){case 5:qe||ar(i,t);case 6:var o=He,l=Nt;He=null,cn(e,t,i),He=o,Nt=l,He!==null&&(Nt?(e=He,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):He.removeChild(i.stateNode));break;case 18:He!==null&&(Nt?(e=He,i=i.stateNode,e.nodeType===8?Jo(e.parentNode,i):e.nodeType===1&&Jo(e,i),_r(e)):Jo(He,i.stateNode));break;case 4:o=He,l=Nt,He=i.stateNode.containerInfo,Nt=!0,cn(e,t,i),He=o,Nt=l;break;case 0:case 11:case 14:case 15:if(!qe&&(o=i.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){l=o=o.next;do{var c=l,p=c.destroy;c=c.tag,p!==void 0&&((c&2)!==0||(c&4)!==0)&&ba(i,t,p),l=l.next}while(l!==o)}cn(e,t,i);break;case 1:if(!qe&&(ar(i,t),o=i.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=i.memoizedProps,o.state=i.memoizedState,o.componentWillUnmount()}catch(w){Re(i,t,w)}cn(e,t,i);break;case 21:cn(e,t,i);break;case 22:i.mode&1?(qe=(o=qe)||i.memoizedState!==null,cn(e,t,i),qe=o):cn(e,t,i);break;default:cn(e,t,i)}}function nf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new v0),t.forEach(function(o){var l=N0.bind(null,e,o);i.has(o)||(i.add(o),o.then(l,l))})}}function At(e,t){var i=t.deletions;if(i!==null)for(var o=0;o<i.length;o++){var l=i[o];try{var c=e,p=t,w=p;e:for(;w!==null;){switch(w.tag){case 5:He=w.stateNode,Nt=!1;break e;case 3:He=w.stateNode.containerInfo,Nt=!0;break e;case 4:He=w.stateNode.containerInfo,Nt=!0;break e}w=w.return}if(He===null)throw Error(s(160));tf(c,p,l),He=null,Nt=!1;var k=l.alternate;k!==null&&(k.return=null),l.return=null}catch(I){Re(l,t,I)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)rf(t,e),t=t.sibling}function rf(e,t){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(At(t,e),_t(e),o&4){try{ri(3,e,e.return),Ss(3,e)}catch(te){Re(e,e.return,te)}try{ri(5,e,e.return)}catch(te){Re(e,e.return,te)}}break;case 1:At(t,e),_t(e),o&512&&i!==null&&ar(i,i.return);break;case 5:if(At(t,e),_t(e),o&512&&i!==null&&ar(i,i.return),e.flags&32){var l=e.stateNode;try{Tr(l,"")}catch(te){Re(e,e.return,te)}}if(o&4&&(l=e.stateNode,l!=null)){var c=e.memoizedProps,p=i!==null?i.memoizedProps:c,w=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{w==="input"&&c.type==="radio"&&c.name!=null&&Du(l,c),vo(w,p);var I=vo(w,c);for(p=0;p<k.length;p+=2){var $=k[p],W=k[p+1];$==="style"?Ou(l,W):$==="dangerouslySetInnerHTML"?bu(l,W):$==="children"?Tr(l,W):O(l,$,W,I)}switch(w){case"input":fo(l,c);break;case"textarea":Iu(l,c);break;case"select":var U=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!c.multiple;var X=c.value;X!=null?zn(l,!!c.multiple,X,!1):U!==!!c.multiple&&(c.defaultValue!=null?zn(l,!!c.multiple,c.defaultValue,!0):zn(l,!!c.multiple,c.multiple?[]:"",!1))}l[Kr]=c}catch(te){Re(e,e.return,te)}}break;case 6:if(At(t,e),_t(e),o&4){if(e.stateNode===null)throw Error(s(162));l=e.stateNode,c=e.memoizedProps;try{l.nodeValue=c}catch(te){Re(e,e.return,te)}}break;case 3:if(At(t,e),_t(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{_r(t.containerInfo)}catch(te){Re(e,e.return,te)}break;case 4:At(t,e),_t(e);break;case 13:At(t,e),_t(e),l=e.child,l.flags&8192&&(c=l.memoizedState!==null,l.stateNode.isHidden=c,!c||l.alternate!==null&&l.alternate.memoizedState!==null||($a=_e())),o&4&&nf(e);break;case 22:if($=i!==null&&i.memoizedState!==null,e.mode&1?(qe=(I=qe)||$,At(t,e),qe=I):At(t,e),_t(e),o&8192){if(I=e.memoizedState!==null,(e.stateNode.isHidden=I)&&!$&&(e.mode&1)!==0)for(Z=e,$=e.child;$!==null;){for(W=Z=$;Z!==null;){switch(U=Z,X=U.child,U.tag){case 0:case 11:case 14:case 15:ri(4,U,U.return);break;case 1:ar(U,U.return);var ee=U.stateNode;if(typeof ee.componentWillUnmount=="function"){o=U,i=U.return;try{t=o,ee.props=t.memoizedProps,ee.state=t.memoizedState,ee.componentWillUnmount()}catch(te){Re(o,i,te)}}break;case 5:ar(U,U.return);break;case 22:if(U.memoizedState!==null){af(W);continue}}X!==null?(X.return=U,Z=X):af(W)}$=$.sibling}e:for($=null,W=e;;){if(W.tag===5){if($===null){$=W;try{l=W.stateNode,I?(c=l.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(w=W.stateNode,k=W.memoizedProps.style,p=k!=null&&k.hasOwnProperty("display")?k.display:null,w.style.display=Fu("display",p))}catch(te){Re(e,e.return,te)}}}else if(W.tag===6){if($===null)try{W.stateNode.nodeValue=I?"":W.memoizedProps}catch(te){Re(e,e.return,te)}}else if((W.tag!==22&&W.tag!==23||W.memoizedState===null||W===e)&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===e)break e;for(;W.sibling===null;){if(W.return===null||W.return===e)break e;$===W&&($=null),W=W.return}$===W&&($=null),W.sibling.return=W.return,W=W.sibling}}break;case 19:At(t,e),_t(e),o&4&&nf(e);break;case 21:break;default:At(t,e),_t(e)}}function _t(e){var t=e.flags;if(t&2){try{e:{for(var i=e.return;i!==null;){if(Jd(i)){var o=i;break e}i=i.return}throw Error(s(160))}switch(o.tag){case 5:var l=o.stateNode;o.flags&32&&(Tr(l,""),o.flags&=-33);var c=ef(e);za(e,c,l);break;case 3:case 4:var p=o.stateNode.containerInfo,w=ef(e);Oa(e,w,p);break;default:throw Error(s(161))}}catch(k){Re(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function x0(e,t,i){Z=e,sf(e)}function sf(e,t,i){for(var o=(e.mode&1)!==0;Z!==null;){var l=Z,c=l.child;if(l.tag===22&&o){var p=l.memoizedState!==null||ws;if(!p){var w=l.alternate,k=w!==null&&w.memoizedState!==null||qe;w=ws;var I=qe;if(ws=p,(qe=k)&&!I)for(Z=l;Z!==null;)p=Z,k=p.child,p.tag===22&&p.memoizedState!==null?lf(l):k!==null?(k.return=p,Z=k):lf(l);for(;c!==null;)Z=c,sf(c),c=c.sibling;Z=l,ws=w,qe=I}of(e)}else(l.subtreeFlags&8772)!==0&&c!==null?(c.return=l,Z=c):of(e)}}function of(e){for(;Z!==null;){var t=Z;if((t.flags&8772)!==0){var i=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:qe||Ss(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!qe)if(i===null)o.componentDidMount();else{var l=t.elementType===t.type?i.memoizedProps:Et(t.type,i.memoizedProps);o.componentDidUpdate(l,i.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var c=t.updateQueue;c!==null&&od(t,c,o);break;case 3:var p=t.updateQueue;if(p!==null){if(i=null,t.child!==null)switch(t.child.tag){case 5:i=t.child.stateNode;break;case 1:i=t.child.stateNode}od(t,p,i)}break;case 5:var w=t.stateNode;if(i===null&&t.flags&4){i=w;var k=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&i.focus();break;case"img":k.src&&(i.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var I=t.alternate;if(I!==null){var $=I.memoizedState;if($!==null){var W=$.dehydrated;W!==null&&_r(W)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}qe||t.flags&512&&Fa(t)}catch(U){Re(t,t.return,U)}}if(t===e){Z=null;break}if(i=t.sibling,i!==null){i.return=t.return,Z=i;break}Z=t.return}}function af(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Z=i;break}Z=t.return}}function lf(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var i=t.return;try{Ss(4,t)}catch(k){Re(t,i,k)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var l=t.return;try{o.componentDidMount()}catch(k){Re(t,l,k)}}var c=t.return;try{Fa(t)}catch(k){Re(t,c,k)}break;case 5:var p=t.return;try{Fa(t)}catch(k){Re(t,p,k)}}}catch(k){Re(t,t.return,k)}if(t===e){Z=null;break}var w=t.sibling;if(w!==null){w.return=t.return,Z=w;break}Z=t.return}}var w0=Math.ceil,ks=E.ReactCurrentDispatcher,Ba=E.ReactCurrentOwner,xt=E.ReactCurrentBatchConfig,ge=0,$e=null,Fe=null,Ke=0,ft=0,lr=sn(0),ze=0,ii=null,jn=0,Cs=0,Ua=0,si=null,st=null,$a=0,ur=1/0,Kt=null,Ts=!1,Wa=null,dn=null,Ps=!1,fn=null,Es=0,oi=0,Ha=null,Ns=-1,As=0;function tt(){return(ge&6)!==0?_e():Ns!==-1?Ns:Ns=_e()}function hn(e){return(e.mode&1)===0?1:(ge&2)!==0&&Ke!==0?Ke&-Ke:r0.transition!==null?(As===0&&(As=ec()),As):(e=Se,e!==0||(e=window.event,e=e===void 0?16:uc(e.type)),e)}function jt(e,t,i,o){if(50<oi)throw oi=0,Ha=null,Error(s(185));Mr(e,i,o),((ge&2)===0||e!==$e)&&(e===$e&&((ge&2)===0&&(Cs|=i),ze===4&&pn(e,Ke)),ot(e,o),i===1&&ge===0&&(t.mode&1)===0&&(ur=_e()+500,ns&&an()))}function ot(e,t){var i=e.callbackNode;rg(e,t);var o=bi(e,e===$e?Ke:0);if(o===0)i!==null&&qu(i),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(i!=null&&qu(i),t===1)e.tag===0?n0(cf.bind(null,e)):Gc(cf.bind(null,e)),Zg(function(){(ge&6)===0&&an()}),i=null;else{switch(tc(o)){case 1:i=To;break;case 4:i=Zu;break;case 16:i=Ri;break;case 536870912:i=Ju;break;default:i=Ri}i=yf(i,uf.bind(null,e))}e.callbackPriority=t,e.callbackNode=i}}function uf(e,t){if(Ns=-1,As=0,(ge&6)!==0)throw Error(s(327));var i=e.callbackNode;if(cr()&&e.callbackNode!==i)return null;var o=bi(e,e===$e?Ke:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=js(e,o);else{t=o;var l=ge;ge|=2;var c=ff();($e!==e||Ke!==t)&&(Kt=null,ur=_e()+500,Dn(e,t));do try{C0();break}catch(w){df(e,w)}while(!0);ua(),ks.current=c,ge=l,Fe!==null?t=0:($e=null,Ke=0,t=ze)}if(t!==0){if(t===2&&(l=Po(e),l!==0&&(o=l,t=Ka(e,l))),t===1)throw i=ii,Dn(e,0),pn(e,o),ot(e,_e()),i;if(t===6)pn(e,o);else{if(l=e.current.alternate,(o&30)===0&&!S0(l)&&(t=js(e,o),t===2&&(c=Po(e),c!==0&&(o=c,t=Ka(e,c))),t===1))throw i=ii,Dn(e,0),pn(e,o),ot(e,_e()),i;switch(e.finishedWork=l,e.finishedLanes=o,t){case 0:case 1:throw Error(s(345));case 2:Ln(e,st,Kt);break;case 3:if(pn(e,o),(o&130023424)===o&&(t=$a+500-_e(),10<t)){if(bi(e,0)!==0)break;if(l=e.suspendedLanes,(l&o)!==o){tt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Zo(Ln.bind(null,e,st,Kt),t);break}Ln(e,st,Kt);break;case 4:if(pn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,l=-1;0<o;){var p=31-Ct(o);c=1<<p,p=t[p],p>l&&(l=p),o&=~c}if(o=l,o=_e()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*w0(o/1960))-o,10<o){e.timeoutHandle=Zo(Ln.bind(null,e,st,Kt),o);break}Ln(e,st,Kt);break;case 5:Ln(e,st,Kt);break;default:throw Error(s(329))}}}return ot(e,_e()),e.callbackNode===i?uf.bind(null,e):null}function Ka(e,t){var i=si;return e.current.memoizedState.isDehydrated&&(Dn(e,t).flags|=256),e=js(e,t),e!==2&&(t=st,st=i,t!==null&&Qa(t)),e}function Qa(e){st===null?st=e:st.push.apply(st,e)}function S0(e){for(var t=e;;){if(t.flags&16384){var i=t.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var o=0;o<i.length;o++){var l=i[o],c=l.getSnapshot;l=l.value;try{if(!Tt(c(),l))return!1}catch{return!1}}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pn(e,t){for(t&=~Ua,t&=~Cs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var i=31-Ct(t),o=1<<i;e[i]=-1,t&=~o}}function cf(e){if((ge&6)!==0)throw Error(s(327));cr();var t=bi(e,0);if((t&1)===0)return ot(e,_e()),null;var i=js(e,t);if(e.tag!==0&&i===2){var o=Po(e);o!==0&&(t=o,i=Ka(e,o))}if(i===1)throw i=ii,Dn(e,0),pn(e,t),ot(e,_e()),i;if(i===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ln(e,st,Kt),ot(e,_e()),null}function Ga(e,t){var i=ge;ge|=1;try{return e(t)}finally{ge=i,ge===0&&(ur=_e()+500,ns&&an())}}function Mn(e){fn!==null&&fn.tag===0&&(ge&6)===0&&cr();var t=ge;ge|=1;var i=xt.transition,o=Se;try{if(xt.transition=null,Se=1,e)return e()}finally{Se=o,xt.transition=i,ge=t,(ge&6)===0&&an()}}function Ya(){ft=lr.current,Ee(lr)}function Dn(e,t){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,qg(i)),Fe!==null)for(i=Fe.return;i!==null;){var o=i;switch(ia(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&es();break;case 3:sr(),Ee(nt),Ee(Ge),va();break;case 5:ma(o);break;case 4:sr();break;case 13:Ee(Me);break;case 19:Ee(Me);break;case 10:ca(o.type._context);break;case 22:case 23:Ya()}i=i.return}if($e=e,Fe=e=mn(e.current,null),Ke=ft=t,ze=0,ii=null,Ua=Cs=jn=0,st=si=null,En!==null){for(t=0;t<En.length;t++)if(i=En[t],o=i.interleaved,o!==null){i.interleaved=null;var l=o.next,c=i.pending;if(c!==null){var p=c.next;c.next=l,o.next=p}i.pending=o}En=null}return e}function df(e,t){do{var i=Fe;try{if(ua(),fs.current=gs,hs){for(var o=De.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}hs=!1}if(An=0,Ue=Oe=De=null,Zr=!1,Jr=0,Ba.current=null,i===null||i.return===null){ze=1,ii=t,Fe=null;break}e:{var c=e,p=i.return,w=i,k=t;if(t=Ke,w.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var I=k,$=w,W=$.tag;if(($.mode&1)===0&&(W===0||W===11||W===15)){var U=$.alternate;U?($.updateQueue=U.updateQueue,$.memoizedState=U.memoizedState,$.lanes=U.lanes):($.updateQueue=null,$.memoizedState=null)}var X=_d(p);if(X!==null){X.flags&=-257,Vd(X,p,w,c,t),X.mode&1&&Id(c,I,t),t=X,k=I;var ee=t.updateQueue;if(ee===null){var te=new Set;te.add(k),t.updateQueue=te}else ee.add(k);break e}else{if((t&1)===0){Id(c,I,t),Xa();break e}k=Error(s(426))}}else if(je&&w.mode&1){var Ve=_d(p);if(Ve!==null){(Ve.flags&65536)===0&&(Ve.flags|=256),Vd(Ve,p,w,c,t),aa(or(k,w));break e}}c=k=or(k,w),ze!==4&&(ze=2),si===null?si=[c]:si.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,t&=-t,c.lanes|=t;var N=Ld(c,k,t);sd(c,N);break e;case 1:w=k;var C=c.type,M=c.stateNode;if((c.flags&128)===0&&(typeof C.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(dn===null||!dn.has(M)))){c.flags|=65536,t&=-t,c.lanes|=t;var K=Rd(c,w,t);sd(c,K);break e}}c=c.return}while(c!==null)}pf(i)}catch(ie){t=ie,Fe===i&&i!==null&&(Fe=i=i.return);continue}break}while(!0)}function ff(){var e=ks.current;return ks.current=gs,e===null?gs:e}function Xa(){(ze===0||ze===3||ze===2)&&(ze=4),$e===null||(jn&268435455)===0&&(Cs&268435455)===0||pn($e,Ke)}function js(e,t){var i=ge;ge|=2;var o=ff();($e!==e||Ke!==t)&&(Kt=null,Dn(e,t));do try{k0();break}catch(l){df(e,l)}while(!0);if(ua(),ge=i,ks.current=o,Fe!==null)throw Error(s(261));return $e=null,Ke=0,ze}function k0(){for(;Fe!==null;)hf(Fe)}function C0(){for(;Fe!==null&&!Gm();)hf(Fe)}function hf(e){var t=vf(e.alternate,e,ft);e.memoizedProps=e.pendingProps,t===null?pf(e):Fe=t,Ba.current=null}function pf(e){var t=e;do{var i=t.alternate;if(e=t.return,(t.flags&32768)===0){if(i=m0(i,t,ft),i!==null){Fe=i;return}}else{if(i=g0(i,t),i!==null){i.flags&=32767,Fe=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Fe=null;return}}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);ze===0&&(ze=5)}function Ln(e,t,i){var o=Se,l=xt.transition;try{xt.transition=null,Se=1,T0(e,t,i,o)}finally{xt.transition=l,Se=o}return null}function T0(e,t,i,o){do cr();while(fn!==null);if((ge&6)!==0)throw Error(s(327));i=e.finishedWork;var l=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0;var c=i.lanes|i.childLanes;if(ig(e,c),e===$e&&(Fe=$e=null,Ke=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||Ps||(Ps=!0,yf(Ri,function(){return cr(),null})),c=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||c){c=xt.transition,xt.transition=null;var p=Se;Se=1;var w=ge;ge|=4,Ba.current=null,y0(e,i),rf(i,e),Wg(Xo),zi=!!Yo,Xo=Yo=null,e.current=i,x0(i),Ym(),ge=w,Se=p,xt.transition=c}else e.current=i;if(Ps&&(Ps=!1,fn=e,Es=l),c=e.pendingLanes,c===0&&(dn=null),Zm(i.stateNode),ot(e,_e()),t!==null)for(o=e.onRecoverableError,i=0;i<t.length;i++)l=t[i],o(l.value,{componentStack:l.stack,digest:l.digest});if(Ts)throw Ts=!1,e=Wa,Wa=null,e;return(Es&1)!==0&&e.tag!==0&&cr(),c=e.pendingLanes,(c&1)!==0?e===Ha?oi++:(oi=0,Ha=e):oi=0,an(),null}function cr(){if(fn!==null){var e=tc(Es),t=xt.transition,i=Se;try{if(xt.transition=null,Se=16>e?16:e,fn===null)var o=!1;else{if(e=fn,fn=null,Es=0,(ge&6)!==0)throw Error(s(331));var l=ge;for(ge|=4,Z=e.current;Z!==null;){var c=Z,p=c.child;if((Z.flags&16)!==0){var w=c.deletions;if(w!==null){for(var k=0;k<w.length;k++){var I=w[k];for(Z=I;Z!==null;){var $=Z;switch($.tag){case 0:case 11:case 15:ri(8,$,c)}var W=$.child;if(W!==null)W.return=$,Z=W;else for(;Z!==null;){$=Z;var U=$.sibling,X=$.return;if(Zd($),$===I){Z=null;break}if(U!==null){U.return=X,Z=U;break}Z=X}}}var ee=c.alternate;if(ee!==null){var te=ee.child;if(te!==null){ee.child=null;do{var Ve=te.sibling;te.sibling=null,te=Ve}while(te!==null)}}Z=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,Z=p;else e:for(;Z!==null;){if(c=Z,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:ri(9,c,c.return)}var N=c.sibling;if(N!==null){N.return=c.return,Z=N;break e}Z=c.return}}var C=e.current;for(Z=C;Z!==null;){p=Z;var M=p.child;if((p.subtreeFlags&2064)!==0&&M!==null)M.return=p,Z=M;else e:for(p=C;Z!==null;){if(w=Z,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:Ss(9,w)}}catch(ie){Re(w,w.return,ie)}if(w===p){Z=null;break e}var K=w.sibling;if(K!==null){K.return=w.return,Z=K;break e}Z=w.return}}if(ge=l,an(),Dt&&typeof Dt.onPostCommitFiberRoot=="function")try{Dt.onPostCommitFiberRoot(Ii,e)}catch{}o=!0}return o}finally{Se=i,xt.transition=t}}return!1}function mf(e,t,i){t=or(i,t),t=Ld(e,t,1),e=un(e,t,1),t=tt(),e!==null&&(Mr(e,1,t),ot(e,t))}function Re(e,t,i){if(e.tag===3)mf(e,e,i);else for(;t!==null;){if(t.tag===3){mf(t,e,i);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(dn===null||!dn.has(o))){e=or(i,e),e=Rd(t,e,1),t=un(t,e,1),e=tt(),t!==null&&(Mr(t,1,e),ot(t,e));break}}t=t.return}}function P0(e,t,i){var o=e.pingCache;o!==null&&o.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&i,$e===e&&(Ke&i)===i&&(ze===4||ze===3&&(Ke&130023424)===Ke&&500>_e()-$a?Dn(e,0):Ua|=i),ot(e,t)}function gf(e,t){t===0&&((e.mode&1)===0?t=1:(t=Vi,Vi<<=1,(Vi&130023424)===0&&(Vi=4194304)));var i=tt();e=$t(e,t),e!==null&&(Mr(e,t,i),ot(e,i))}function E0(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),gf(e,i)}function N0(e,t){var i=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(i=l.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(s(314))}o!==null&&o.delete(t),gf(e,i)}var vf;vf=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)it=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return it=!1,p0(e,t,i);it=(e.flags&131072)!==0}else it=!1,je&&(t.flags&1048576)!==0&&Yc(t,is,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;xs(e,t),e=t.pendingProps;var l=Zn(t,Ge.current);ir(t,i),l=wa(null,t,o,e,l,i);var c=Sa();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(o)?(c=!0,ts(t)):c=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ha(t),l.updater=vs,t.stateNode=l,l._reactInternals=t,Na(t,o,e,i),t=Da(null,t,o,!0,c,i)):(t.tag=0,je&&c&&ra(t),et(null,t,l,i),t=t.child),t;case 16:o=t.elementType;e:{switch(xs(e,t),e=t.pendingProps,l=o._init,o=l(o._payload),t.type=o,l=t.tag=j0(o),e=Et(o,e),l){case 0:t=Ma(null,t,o,e,i);break e;case 1:t=Ud(null,t,o,e,i);break e;case 11:t=bd(null,t,o,e,i);break e;case 14:t=Fd(null,t,o,Et(o.type,e),i);break e}throw Error(s(306,o,""))}return t;case 0:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Et(o,l),Ma(e,t,o,l,i);case 1:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Et(o,l),Ud(e,t,o,l,i);case 3:e:{if($d(t),e===null)throw Error(s(387));o=t.pendingProps,c=t.memoizedState,l=c.element,id(e,t),cs(t,o,null,i);var p=t.memoizedState;if(o=p.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){l=or(Error(s(423)),t),t=Wd(e,t,o,i,l);break e}else if(o!==l){l=or(Error(s(424)),t),t=Wd(e,t,o,i,l);break e}else for(dt=rn(t.stateNode.containerInfo.firstChild),ct=t,je=!0,Pt=null,i=nd(t,null,o,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(tr(),o===l){t=Ht(e,t,i);break e}et(e,t,o,i)}t=t.child}return t;case 5:return ad(t),e===null&&oa(t),o=t.type,l=t.pendingProps,c=e!==null?e.memoizedProps:null,p=l.children,qo(o,l)?p=null:c!==null&&qo(o,c)&&(t.flags|=32),Bd(e,t),et(e,t,p,i),t.child;case 6:return e===null&&oa(t),null;case 13:return Hd(e,t,i);case 4:return pa(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=nr(t,null,o,i):et(e,t,o,i),t.child;case 11:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Et(o,l),bd(e,t,o,l,i);case 7:return et(e,t,t.pendingProps,i),t.child;case 8:return et(e,t,t.pendingProps.children,i),t.child;case 12:return et(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(o=t.type._context,l=t.pendingProps,c=t.memoizedProps,p=l.value,Te(as,o._currentValue),o._currentValue=p,c!==null)if(Tt(c.value,p)){if(c.children===l.children&&!nt.current){t=Ht(e,t,i);break e}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var w=c.dependencies;if(w!==null){p=c.child;for(var k=w.firstContext;k!==null;){if(k.context===o){if(c.tag===1){k=Wt(-1,i&-i),k.tag=2;var I=c.updateQueue;if(I!==null){I=I.shared;var $=I.pending;$===null?k.next=k:(k.next=$.next,$.next=k),I.pending=k}}c.lanes|=i,k=c.alternate,k!==null&&(k.lanes|=i),da(c.return,i,t),w.lanes|=i;break}k=k.next}}else if(c.tag===10)p=c.type===t.type?null:c.child;else if(c.tag===18){if(p=c.return,p===null)throw Error(s(341));p.lanes|=i,w=p.alternate,w!==null&&(w.lanes|=i),da(p,i,t),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===t){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}et(e,t,l.children,i),t=t.child}return t;case 9:return l=t.type,o=t.pendingProps.children,ir(t,i),l=vt(l),o=o(l),t.flags|=1,et(e,t,o,i),t.child;case 14:return o=t.type,l=Et(o,t.pendingProps),l=Et(o.type,l),Fd(e,t,o,l,i);case 15:return Od(e,t,t.type,t.pendingProps,i);case 17:return o=t.type,l=t.pendingProps,l=t.elementType===o?l:Et(o,l),xs(e,t),t.tag=1,rt(o)?(e=!0,ts(t)):e=!1,ir(t,i),Md(t,o,l),Na(t,o,l,i),Da(null,t,o,!0,e,i);case 19:return Qd(e,t,i);case 22:return zd(e,t,i)}throw Error(s(156,t.tag))};function yf(e,t){return Xu(e,t)}function A0(e,t,i,o){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,i,o){return new A0(e,t,i,o)}function qa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function j0(e){if(typeof e=="function")return qa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oe)return 11;if(e===ke)return 14}return 2}function mn(e,t){var i=e.alternate;return i===null?(i=wt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Ms(e,t,i,o,l,c){var p=2;if(o=e,typeof e=="function")qa(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case B:return Rn(i.children,l,c,t);case D:p=8,l|=8;break;case q:return e=wt(12,i,t,l|2),e.elementType=q,e.lanes=c,e;case de:return e=wt(13,i,t,l),e.elementType=de,e.lanes=c,e;case me:return e=wt(19,i,t,l),e.elementType=me,e.lanes=c,e;case Q:return Ds(i,l,c,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case se:p=10;break e;case re:p=9;break e;case oe:p=11;break e;case ke:p=14;break e;case J:p=16,o=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=wt(p,i,t,l),t.elementType=e,t.type=o,t.lanes=c,t}function Rn(e,t,i,o){return e=wt(7,e,o,t),e.lanes=i,e}function Ds(e,t,i,o){return e=wt(22,e,o,t),e.elementType=Q,e.lanes=i,e.stateNode={isHidden:!1},e}function Za(e,t,i){return e=wt(6,e,null,t),e.lanes=i,e}function Ja(e,t,i){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function M0(e,t,i,o,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Eo(0),this.expirationTimes=Eo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Eo(0),this.identifierPrefix=o,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function el(e,t,i,o,l,c,p,w,k){return e=new M0(e,t,i,w,k),t===1?(t=1,c===!0&&(t|=8)):t=0,c=wt(3,null,null,t),e.current=c,c.stateNode=e,c.memoizedState={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},ha(c),e}function D0(e,t,i){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:o==null?null:""+o,children:e,containerInfo:t,implementation:i}}function xf(e){if(!e)return on;e=e._reactInternals;e:{if(Sn(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var i=e.type;if(rt(i))return Kc(e,i,t)}return t}function wf(e,t,i,o,l,c,p,w,k){return e=el(i,o,!0,e,l,c,p,w,k),e.context=xf(null),i=e.current,o=tt(),l=hn(i),c=Wt(o,l),c.callback=t??null,un(i,c,l),e.current.lanes=l,Mr(e,l,o),ot(e,o),e}function Ls(e,t,i,o){var l=t.current,c=tt(),p=hn(l);return i=xf(i),t.context===null?t.context=i:t.pendingContext=i,t=Wt(c,p),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=un(l,t,p),e!==null&&(jt(e,l,p,c),us(e,l,p)),p}function Rs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Sf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function tl(e,t){Sf(e,t),(e=e.alternate)&&Sf(e,t)}function L0(){return null}var kf=typeof reportError=="function"?reportError:function(e){console.error(e)};function nl(e){this._internalRoot=e}Is.prototype.render=nl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Ls(e,t,null,null)},Is.prototype.unmount=nl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mn(function(){Ls(null,e,null,null)}),t[Ot]=null}};function Is(e){this._internalRoot=e}Is.prototype.unstable_scheduleHydration=function(e){if(e){var t=ic();e={blockedOn:null,target:e,priority:t};for(var i=0;i<en.length&&t!==0&&t<en[i].priority;i++);en.splice(i,0,e),i===0&&ac(e)}};function rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Cf(){}function R0(e,t,i,o,l){if(l){if(typeof o=="function"){var c=o;o=function(){var I=Rs(p);c.call(I)}}var p=wf(t,o,e,0,null,!1,!1,"",Cf);return e._reactRootContainer=p,e[Ot]=p.current,Wr(e.nodeType===8?e.parentNode:e),Mn(),p}for(;l=e.lastChild;)e.removeChild(l);if(typeof o=="function"){var w=o;o=function(){var I=Rs(k);w.call(I)}}var k=el(e,0,!1,null,null,!1,!1,"",Cf);return e._reactRootContainer=k,e[Ot]=k.current,Wr(e.nodeType===8?e.parentNode:e),Mn(function(){Ls(t,k,i,o)}),k}function Vs(e,t,i,o,l){var c=i._reactRootContainer;if(c){var p=c;if(typeof l=="function"){var w=l;l=function(){var k=Rs(p);w.call(k)}}Ls(t,p,e,l)}else p=R0(i,t,e,l,o);return Rs(p)}nc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var i=jr(t.pendingLanes);i!==0&&(No(t,i|1),ot(t,_e()),(ge&6)===0&&(ur=_e()+500,an()))}break;case 13:Mn(function(){var o=$t(e,1);if(o!==null){var l=tt();jt(o,e,1,l)}}),tl(e,1)}},Ao=function(e){if(e.tag===13){var t=$t(e,134217728);if(t!==null){var i=tt();jt(t,e,134217728,i)}tl(e,134217728)}},rc=function(e){if(e.tag===13){var t=hn(e),i=$t(e,t);if(i!==null){var o=tt();jt(i,e,t,o)}tl(e,t)}},ic=function(){return Se},sc=function(e,t){var i=Se;try{return Se=e,t()}finally{Se=i}},wo=function(e,t,i){switch(t){case"input":if(fo(e,i),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var o=i[t];if(o!==e&&o.form===e.form){var l=Ji(o);if(!l)throw Error(s(90));ju(o),fo(o,l)}}}break;case"textarea":Iu(e,i);break;case"select":t=i.value,t!=null&&zn(e,!!i.multiple,t,!1)}},$u=Ga,Wu=Mn;var I0={usingClientEntryPoint:!1,Events:[Qr,Xn,Ji,Bu,Uu,Ga]},ai={findFiberByHostInstance:kn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},_0={bundleType:ai.bundleType,version:ai.version,rendererPackageName:ai.rendererPackageName,rendererConfig:ai.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Gu(e),e===null?null:e.stateNode},findFiberByHostInstance:ai.findFiberByHostInstance||L0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{Ii=bs.inject(_0),Dt=bs}catch{}}return at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I0,at.createPortal=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rl(t))throw Error(s(200));return D0(e,t,null,i)},at.createRoot=function(e,t){if(!rl(e))throw Error(s(299));var i=!1,o="",l=kf;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=el(e,1,!1,null,null,i,!1,o,l),e[Ot]=t.current,Wr(e.nodeType===8?e.parentNode:e),new nl(t)},at.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=Gu(t),e=e===null?null:e.stateNode,e},at.flushSync=function(e){return Mn(e)},at.hydrate=function(e,t,i){if(!_s(t))throw Error(s(200));return Vs(null,e,t,!0,i)},at.hydrateRoot=function(e,t,i){if(!rl(e))throw Error(s(405));var o=i!=null&&i.hydratedSources||null,l=!1,c="",p=kf;if(i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(p=i.onRecoverableError)),t=wf(t,null,e,1,i??null,l,!1,c,p),e[Ot]=t.current,Wr(e),o)for(e=0;e<o.length;e++)i=o[e],l=i._getVersion,l=l(i._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,l]:t.mutableSourceEagerHydrationData.push(i,l);return new Is(t)},at.render=function(e,t,i){if(!_s(t))throw Error(s(200));return Vs(null,e,t,!1,i)},at.unmountComponentAtNode=function(e){if(!_s(e))throw Error(s(40));return e._reactRootContainer?(Mn(function(){Vs(null,null,e,!1,function(){e._reactRootContainer=null,e[Ot]=null})}),!0):!1},at.unstable_batchedUpdates=Ga,at.unstable_renderSubtreeIntoContainer=function(e,t,i,o){if(!_s(i))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return Vs(e,t,i,!1,o)},at.version="18.3.1-next-f1338f8080-20240426",at}var Df;function $0(){if(Df)return ol.exports;Df=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),ol.exports=U0(),ol.exports}var Lf;function W0(){if(Lf)return Fs;Lf=1;var n=$0();return Fs.createRoot=n.createRoot,Fs.hydrateRoot=n.hydrateRoot,Fs}var H0=W0();const Rf=()=>{const n=new Date,r=s=>new Date(n.getTime()-s*60*1e3).toISOString();return{connection:"connected",lastActivity:"2m ago",sessions:{groups:[{id:"init-1",label:"Q4 Feature Ship",status:"active"},{id:"init-2",label:"Black Friday Email",status:"active"}],edges:[{parentId:"run-1",childId:"run-2"},{parentId:"run-1",childId:"run-3"}],nodes:[{id:"run-1",parentId:null,runId:"run-1",title:"Q4 Feature Ship – Planning",agentId:"eli",agentName:"Eli",status:"running",progress:45,initiativeId:"init-1",workstreamId:null,groupId:"init-1",groupLabel:"Q4 Feature Ship",startedAt:r(120),updatedAt:r(2),lastEventAt:r(2),lastEventSummary:"Delegated work to design and data agents.",blockers:[]},{id:"run-2",parentId:"run-1",runId:"run-2",title:"Dashboard UI pass",agentId:"dana",agentName:"Dana",status:"running",progress:70,initiativeId:"init-1",workstreamId:"ws-4",groupId:"init-1",groupLabel:"Q4 Feature Ship",startedAt:r(80),updatedAt:r(5),lastEventAt:r(5),lastEventSummary:"Drafted handoff for approval.",blockers:["Approval pending"]},{id:"run-3",parentId:"run-1",runId:"run-3",title:"Usage tracking instrumentation",agentId:"pace",agentName:"Pace",status:"queued",progress:0,initiativeId:"init-1",workstreamId:"ws-5",groupId:"init-1",groupLabel:"Q4 Feature Ship",startedAt:r(30),updatedAt:r(12),lastEventAt:r(12),lastEventSummary:"Waiting for data pipeline access.",blockers:["Access to events table"]},{id:"run-4",parentId:null,runId:"run-4",title:"Black Friday Email Campaign",agentId:"mark",agentName:"Mark",status:"running",progress:55,initiativeId:"init-2",workstreamId:null,groupId:"init-2",groupLabel:"Black Friday Email",startedAt:r(90),updatedAt:r(8),lastEventAt:r(8),lastEventSummary:"Drafted subject line variants.",blockers:[]}]},activity:[{id:"activity-1",type:"decision_requested",title:"Decision requested",description:"Approve dashboard UI layout for Q4 Feature Ship.",agentId:"dana",agentName:"Dana",runId:"run-2",initiativeId:"init-1",timestamp:r(2)},{id:"activity-2",type:"artifact_created",title:"Artifact created: Subject line variants",description:"Drafted 3 subject line variants for approval.",agentId:"mark",agentName:"Mark",runId:"run-4",initiativeId:"init-2",timestamp:r(8)},{id:"activity-3",type:"delegation",title:"Task delegated",description:"Spin up data agent for instrumentation plan.",agentId:"eli",agentName:"Eli",runId:"run-1",initiativeId:"init-1",timestamp:r(18)}],handoffs:[{id:"handoff-1",title:"Dashboard UI approval",status:"created",priority:"high",summary:"Need approval on dashboard UI layout and component hierarchy.",currentActorType:"user",currentActorId:"me",createdAt:r(12),updatedAt:r(2),events:[{id:"handoff-event-1",handoffId:"handoff-1",eventType:"created",actorType:"agent",actorId:"dana",payload:{summary:"Draft layout ready for review."},createdAt:r(12)}]}],decisions:[{id:"decision-1",title:"Approve dashboard copy update",context:"Marketing requested a copy refresh before final launch. Confirm wording changes.",status:"pending",agentName:"Mark",requestedAt:r(22),updatedAt:r(2),waitingMinutes:22}]}};function Qt(n){const r=n instanceof Date?n:new Date(n),s=Date.now()-r.getTime();if(Number.isNaN(s))return"unknown";const a=Math.floor(s/1e3);if(a<60)return`${a}s ago`;const u=Math.floor(a/60);if(u<60)return`${u}m ago`;const f=Math.floor(u/60);return f<24?`${f}h ago`:`${Math.floor(f/24)}d ago`}const K0=8e3,Q0=320,G0=360,Y0=120,X0=120,q0=90,If={running:0,queued:1,pending:2,blocked:3,failed:4,cancelled:5,completed:6,archived:7};function Be(n){if(!n)return 0;const r=Date.parse(n);return Number.isFinite(r)?r:0}function ap(n,r){const s=If[n.status]??99,a=If[r.status]??99;if(s!==a)return s-a;const u=Be(n.updatedAt??n.lastEventAt??n.startedAt),f=Be(r.updatedAt??r.lastEventAt??r.startedAt);return u!==f?f-u:n.id.localeCompare(r.id)}function ul(n,r){if(n.nodes.length<=r)return n;const s=[...n.nodes].sort(ap).slice(0,r),a=new Set(s.map(f=>f.id)),u=new Set(s.map(f=>f.groupId));return{nodes:s,edges:n.edges.filter(f=>a.has(f.parentId)&&a.has(f.childId)),groups:n.groups.filter(f=>u.has(f.id))}}function cl(n,r){return n.length<=r?n:[...n].sort((s,a)=>Be(a.updatedAt)-Be(s.updatedAt)).slice(0,r)}function Z0(n){const r=n.requestedAt??n.updatedAt??null,s=n.updatedAt??r,a=Number.isFinite(n.waitingMinutes)?Math.max(0,Math.floor(n.waitingMinutes)):r?Math.max(0,Math.floor((Date.now()-Be(r))/6e4)):0;return{id:n.id,title:n.title,context:n.context??null,status:n.status??"pending",agentName:n.agentName??null,requestedAt:r,updatedAt:s,waitingMinutes:a,metadata:n.metadata}}function lp(n,r){if(n.length!==r.length)return!1;for(let s=0;s<n.length;s+=1)if(n[s].id!==r[s].id||n[s].timestamp!==r[s].timestamp||n[s].type!==r[s].type||n[s].title!==r[s].title)return!1;return!0}function _f(n,r){if(n.nodes.length!==r.nodes.length||n.edges.length!==r.edges.length||n.groups.length!==r.groups.length)return!1;for(let s=0;s<n.nodes.length;s+=1){const a=n.nodes[s],u=r.nodes[s];if(a.id!==u.id||a.status!==u.status||a.title!==u.title||a.progress!==u.progress||a.updatedAt!==u.updatedAt||a.lastEventAt!==u.lastEventAt)return!1}for(let s=0;s<n.edges.length;s+=1){const a=n.edges[s],u=r.edges[s];if(a.parentId!==u.parentId||a.childId!==u.childId)return!1}for(let s=0;s<n.groups.length;s+=1){const a=n.groups[s],u=r.groups[s];if(a.id!==u.id||a.label!==u.label||a.status!==u.status)return!1}return!0}function Vf(n,r){if(n.length!==r.length)return!1;for(let s=0;s<n.length;s+=1)if(n[s].id!==r[s].id||n[s].updatedAt!==r[s].updatedAt||n[s].status!==r[s].status||n[s].title!==r[s].title)return!1;return!0}function bf(n,r){if(n.length!==r.length)return!1;for(let s=0;s<n.length;s+=1)if(n[s].id!==r[s].id||n[s].status!==r[s].status||n[s].updatedAt!==r[s].updatedAt||n[s].waitingMinutes!==r[s].waitingMinutes)return!1;return!0}function J0(n,r,s){if(r.length===0)return n;const a=new Map;for(const d of n)a.set(d.id,d);let u=!1;for(const d of r){const h=a.get(d.id);if(!h){a.set(d.id,d),u=!0;continue}(h.timestamp!==d.timestamp||h.type!==d.type||h.title!==d.title||h.description!==d.description)&&(a.set(d.id,d),u=!0)}if(!u)return n;const f=Array.from(a.values()).sort((d,h)=>Be(h.timestamp)-Be(d.timestamp)).slice(0,s);return lp(n,f)?n:f}function dl(n,r){const s=[...n].sort((f,d)=>Be(d.timestamp)-Be(f.timestamp)).slice(0,r),a=new Set,u=[];for(const f of s)a.has(f.id)||(a.add(f.id),u.push(f));return u}function fl(n,r){const s=n.filter(f=>!!f&&typeof f.id=="string"&&f.id.length>0).map(Z0).sort((f,d)=>f.waitingMinutes!==d.waitingMinutes?d.waitingMinutes-f.waitingMinutes:Be(d.requestedAt??d.updatedAt)-Be(f.requestedAt??f.updatedAt)).slice(0,r),a=new Set,u=[];for(const f of s)a.has(f.id)||(a.add(f.id),u.push(f));return u}function Ff(n){return n==="run_failed"||n==="blocker_created"?"blocked":n==="run_completed"||n==="milestone_completed"?"completed":n==="decision_requested"||n==="handoff_requested"?"pending":n==="decision_resolved"||n==="handoff_fulfilled"?"completed":"running"}function ev(n){const r=n.toLowerCase();return r==="running"||r==="active"?"running":r==="queued"||r==="pending"?"queued":r==="blocked"?"blocked":r==="failed"?"failed":r==="completed"||r==="done"?"completed":"archived"}function Os(n){return n?`Initiative ${n.length>16?`${n.slice(0,8)}…`:n}`:"Unscoped"}function hl(n){if(!Array.isArray(n))return[];const r=[];for(const s of n)typeof s=="string"&&s.trim().length>0&&r.push(s.trim());return r}function tv(n,r,s){const a=new Map,u=[...n].sort((h,g)=>Be(g.timestamp)-Be(h.timestamp));for(const h of u){if(!h.runId)continue;const g=h.runId,m=a.get(g),x=h.timestamp;if(!m){const y=h.initiativeId??null;a.set(g,{id:g,parentId:null,runId:g,title:h.title,agentId:h.agentId??null,agentName:h.agentName??null,status:Ff(h.type),progress:null,initiativeId:y,workstreamId:null,groupId:y??"unscoped",groupLabel:Os(y),startedAt:x,updatedAt:x,lastEventAt:x,lastEventSummary:h.title,blockers:h.type==="blocker_created"&&h.description?[h.description]:[]});continue}(!m.startedAt||Be(x)<Be(m.startedAt))&&(m.startedAt=x),Be(x)>=Be(m.updatedAt??m.lastEventAt)&&(m.updatedAt=x,m.lastEventAt=x,m.lastEventSummary=h.title,m.status=Ff(h.type),h.agentName&&(m.agentName=h.agentName),h.agentId&&(m.agentId=h.agentId),h.initiativeId&&(m.initiativeId=h.initiativeId,m.groupId=h.initiativeId,m.groupLabel=Os(h.initiativeId)),(!m.title||m.title.length<4)&&(m.title=h.title)),h.type==="blocker_created"&&h.description&&(m.blockers.includes(h.description)||m.blockers.push(h.description))}for(const h of r??[]){const g=h.runId??`agent:${h.id}`,m=a.get(g),x=ev(h.status),y=h.initiativeId??null,S=h.currentTask&&h.currentTask.trim().length>0?h.currentTask.trim():`${h.name??h.id} ${x==="archived"?"idle":x}`;if(!m){a.set(g,{id:g,parentId:null,runId:g,title:S,agentId:h.id,agentName:h.name??h.id,status:x,progress:null,initiativeId:y,workstreamId:null,groupId:y??"unscoped",groupLabel:Os(y),startedAt:h.startedAt??null,updatedAt:h.startedAt??null,lastEventAt:h.startedAt??null,lastEventSummary:h.currentTask,blockers:hl(h.blockers)});continue}!m.agentName&&h.name&&(m.agentName=h.name),m.agentId||(m.agentId=h.id),(!m.title||m.title===m.runId)&&(m.title=S),m.status==="archived"&&x!=="archived"&&(m.status=x),hl(h.blockers).length>0&&(m.blockers=hl(h.blockers)),y&&!m.initiativeId&&(m.initiativeId=y,m.groupId=y,m.groupLabel=Os(y))}const f=Array.from(a.values()).sort(ap).slice(0,s),d=new Map;for(const h of f)d.has(h.groupId)||d.set(h.groupId,{id:h.groupId,label:h.groupLabel,status:h.status});return{nodes:f,edges:[],groups:Array.from(d.values())}}async function ui(n,r){var s;try{const a=await fetch(n,r),f=(((s=a.headers.get("content-type"))==null?void 0:s.toLowerCase())??"").includes("application/json");if(!a.ok){let d=`${a.status} ${a.statusText}`;if(f){const h=await a.json().catch(()=>null);h!=null&&h.error&&(d=`${a.status} ${h.error}`)}else{const h=(await a.text().catch(()=>"")).replace(/\s+/g," ").slice(0,80);h.length>0&&(d=`${a.status} ${h}`)}return{ok:!1,status:a.status,data:null,error:d}}if(!f){const d=(await a.text().catch(()=>"")).replace(/\s+/g," ").slice(0,80);return{ok:!1,status:a.status,data:null,error:`Unexpected content type for ${n}${d?`: ${d}`:""}`}}return{ok:!0,status:a.status,data:await a.json(),error:null}}catch(a){return{ok:!1,status:0,data:null,error:a instanceof Error?a.message:"Network error"}}}function nv(n,r,s,a){var h,g,m;const u=((h=r[0])==null?void 0:h.timestamp)??null,f=((g=a[0])==null?void 0:g.requestedAt)??((m=a[0])==null?void 0:m.updatedAt)??null,d=Be(u)>=Be(f)?u:f;return{connection:"connected",lastActivity:d?Qt(d):null,sessions:n,activity:r,handoffs:s,decisions:a}}function rv(n={}){const{pollInterval:r=K0,useMock:s=!1,maxSessions:a=Q0,maxActivityItems:u=G0,maxHandoffs:f=Y0,maxDecisions:d=X0,batchWindowMs:h=q0}=n,[g,m]=b.useState(Rf()),[x,y]=b.useState(!s),[S,A]=b.useState(null),L=b.useRef(),V=b.useRef(null),[_,z]=b.useState(!1),T=b.useCallback((B,D,q,se=null)=>{const re=ul(B,a),oe=dl(D,u),de=cl(q,f);m(me=>{const ke=se===null?me.decisions:fl(se,d);return _f(me.sessions,re)&&lp(me.activity,oe)&&Vf(me.handoffs,de)&&bf(me.decisions,ke)&&me.connection==="connected"?me:nv(re,oe,de,ke)}),y(!1)},[u,d,f,a]),O=b.useCallback(async()=>{if(V.current)return V.current;if(s){m(Rf()),y(!1);return}const B=(async()=>{var D,q,se,re;try{const[oe,de,me,ke,J]=await Promise.all([ui(`/orgx/api/live/sessions?limit=${a}`),ui(`/orgx/api/live/activity?limit=${u}`),ui("/orgx/api/handoffs"),ui(`/orgx/api/live/decisions?status=pending&limit=${d}`),ui("/orgx/api/live/agents?include_idle=true")]),Q=dl(((D=de.data)==null?void 0:D.activities)??[],u),H=cl(((q=me.data)==null?void 0:q.handoffs)??[],f),Y=fl(((se=ke.data)==null?void 0:se.decisions)??[],d),G=oe.ok&&oe.data?ul(oe.data,a):tv(Q,(re=J.data)==null?void 0:re.agents,a);T(G,Q,H,Y);const P=[];oe.ok||P.push(`sessions unavailable (${oe.error})`),me.ok||P.push(`handoffs unavailable (${me.error})`),ke.ok||P.push(`decisions unavailable (${ke.error})`),J.ok||P.push(`agent fallback unavailable (${J.error})`),P.length>0?(A(`Partial live data: ${P.join("; ")}`),m(F=>F.connection==="reconnecting"?F:{...F,connection:"reconnecting"}),z(!0)):(A(null),m(F=>F.connection==="connected"?F:{...F,connection:"connected"}))}catch(oe){A(oe instanceof Error?oe.message:"Unknown error"),m(de=>de.connection==="reconnecting"?de:{...de,connection:"reconnecting"}),y(!1)}finally{V.current=null}})();return V.current=B,B},[T,u,d,f,a,s]),E=b.useCallback(async(B,D)=>{const q=Array.from(new Set(B.filter(Boolean)));if(q.length===0)return{updated:0,failed:0};const se=await fetch("/orgx/api/live/decisions/approve",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:q,action:D})}),re=await se.json().catch(()=>null),oe=Array.isArray(re==null?void 0:re.results)?re.results:[],de=new Set(oe.filter(J=>J.ok).map(J=>J.id));if(!se.ok&&se.status!==207){const J=typeof(re==null?void 0:re.error)=="string"?re.error:`Decision action failed (${se.status})`;throw new Error(J)}if(de.size===0&&se.ok&&((re==null?void 0:re.failed)??0)===0)for(const J of q)de.add(J);de.size>0&&m(J=>{const Q=J.decisions.filter(F=>de.has(F.id));if(Q.length===0)return J;const H=new Date().toISOString(),Y=Q.map(F=>({id:`decision:${D}:${F.id}:${Date.now()}`,type:"decision_resolved",title:D==="approve"?`Approved: ${F.title}`:`Rejected: ${F.title}`,description:F.context,agentId:null,agentName:F.agentName,runId:null,initiativeId:null,timestamp:H,metadata:{decisionId:F.id,action:D}})),G=dl(Y.concat(J.activity),u);return{...J,decisions:J.decisions.filter(F=>!de.has(F.id)),activity:G,lastActivity:Qt(H)}});const me=(re==null?void 0:re.updated)??de.size,ke=(re==null?void 0:re.failed)??Math.max(0,q.length-de.size);return{updated:me,failed:ke}},[u]),R=b.useCallback(async B=>E([B],"approve"),[E]),j=b.useCallback(async()=>{const B=g.decisions.map(D=>D.id);return E(B,"approve")},[E,g.decisions]);return b.useEffect(()=>{if(s){O();return}O();const B=new EventSource("/orgx/api/live/stream");let D=null,q=null,se=null,re=[],oe=null,de;const me=()=>{if(de=void 0,D){const J=D;D=null,q=null,se=null,re=[],oe=null,T(J.sessions,J.activity,J.handoffs,J.decisions);return}!q&&!se&&!oe&&re.length===0||(m(J=>{var H;let Q=J;if(q){const Y=ul(q,a);q=null,_f(Q.sessions,Y)||(Q={...Q,sessions:Y})}if(se){const Y=cl(se,f);se=null,Vf(Q.handoffs,Y)||(Q={...Q,handoffs:Y})}if(oe){const Y=fl(oe,d);oe=null,bf(Q.decisions,Y)||(Q={...Q,decisions:Y})}if(re.length>0){const Y=J0(Q.activity,re,u);re=[],Y!==Q.activity&&(Q={...Q,activity:Y,lastActivity:(H=Y[0])!=null&&H.timestamp?Qt(Y[0].timestamp):Q.lastActivity})}return Q===J?J:Q.connection==="connected"?Q:{...Q,connection:"connected"}}),A(null),y(!1))},ke=()=>{de||(de=setTimeout(me,h))};return B.onopen=()=>{z(!1),m(J=>J.connection==="connected"?J:{...J,connection:"connected"}),A(null)},B.onerror=()=>{m(J=>J.connection==="reconnecting"?J:{...J,connection:"reconnecting"}),z(!0)},B.addEventListener("snapshot",J=>{try{const Q=JSON.parse(J.data);D={sessions:Q.sessions,activity:Q.activity??[],handoffs:Q.handoffs??[],decisions:Q.decisions??null},ke()}catch(Q){A(Q instanceof Error?Q.message:"Invalid snapshot")}}),B.addEventListener("activity.appended",J=>{try{const Q=JSON.parse(J.data);if(Q.length===0)return;re=re.concat(Q),ke()}catch{}}),B.addEventListener("session.updated",J=>{try{q=JSON.parse(J.data),ke()}catch{}}),B.addEventListener("handoff.updated",J=>{try{se=JSON.parse(J.data),ke()}catch{}}),B.addEventListener("decision.updated",J=>{try{oe=JSON.parse(J.data),ke()}catch{}}),()=>{de&&clearTimeout(de),B.close()}},[T,h,O,u,d,f,a,s]),b.useEffect(()=>{if(!s&&(L.current&&clearInterval(L.current),!!_))return L.current=setInterval(O,r),()=>{L.current&&clearInterval(L.current)}},[O,r,_,s]),{data:g,isLoading:x,error:S,refetch:O,approveDecision:R,approveAllDecisions:j}}const ne={lime:"#BFFF00",teal:"#14B8A6",cyan:"#0AD4C4",iris:"#7C7CFF",amber:"#F5B700",red:"#FF6B88",background:"#02040A",cardBg:"#08090D",cardBorder:"rgba(255, 255, 255, 0.08)"},iv={Pace:"#7C7CFF",Eli:"#BFFF00",Dana:"#FF00D4",Mark:"#F5B700",System:"#14B8A6"};function sv(n){return iv[n]??ne.teal}function ov(n){return n.split(" ").map(r=>r[0]).join("").toUpperCase().slice(0,2)}function av({children:n,color:r}){const s=r??ne.lime;return v.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.14em]",style:{backgroundColor:`${s}22`,border:`1px solid ${s}5a`,color:s,boxShadow:`0 8px 20px ${s}24`},children:[v.jsx("span",{className:"h-1.5 w-1.5 rounded-full",style:{backgroundColor:s}}),n]})}function Vt(...n){return n.filter(Boolean).join(" ")}const Ys={codex:{id:"codex",label:"Codex",accent:"#10B981",tint:"rgba(16, 185, 129, 0.18)"},openai:{id:"openai",label:"OpenAI",accent:"#9F7AEA",tint:"rgba(159, 122, 234, 0.2)"},anthropic:{id:"anthropic",label:"Anthropic",accent:"#F5B700",tint:"rgba(245, 183, 0, 0.18)"},openclaw:{id:"openclaw",label:"OpenClaw",accent:"#FF4D4D",tint:"rgba(255, 77, 77, 0.18)"},orgx:{id:"orgx",label:"OrgX",accent:ne.lime,tint:"rgba(191, 255, 0, 0.18)"},unknown:{id:"unknown",label:"Agent",accent:ne.teal,tint:"rgba(20, 184, 166, 0.18)"}},lv=["provider","vendor","model","runtime","engine","agent","name","title","label","summary","description","source"];function Hs(n,r,s,a){if(!(n==null||s>2)){if(typeof n=="string"){const u=n.trim();u.length>0&&r.push(u);return}if(Array.isArray(n)){for(const u of n)Hs(u,r,s+1,a);return}if(typeof n=="object"){if(a.has(n))return;a.add(n);for(const[u,f]of Object.entries(n)){const d=u.toLowerCase();typeof f=="string"?(lv.some(h=>d.includes(h))||d.startsWith("meta")||d.endsWith("id"))&&Hs(f,r,s+1,a):typeof f=="object"&&f!==null&&Hs(f,r,s+1,a)}}}}function uv(n){const r=n.toLowerCase();return/\bcodex\b/.test(r)||/\bcursor\b/.test(r)||r.includes("openai/codex")?"codex":r.includes("openclaw")||r.includes("clawdbot")||r.includes("moltbot")?"openclaw":r.includes("anthropic")||r.includes("claude")||r.includes("sonnet")||r.includes("opus")?"anthropic":r.includes("openai")||r.includes("chatgpt")||/\bgpt[-\s]?\d/.test(r)||/\bo[134]/.test(r)?"openai":r.includes("orgx")?"orgx":null}function Xs(...n){const r=[],s=new Set;for(const a of n)Hs(a,r,0,s);for(const a of r){const u=uv(a);if(u)return Ys[u]}return Ys.unknown}function cv(n){return Ys[n]??Ys.unknown}function vr({children:n,className:r=""}){return v.jsxs("section",{className:Vt("group relative overflow-hidden rounded-2xl","glass-panel soft-shadow hover-lift",r),style:{backgroundColor:ne.cardBg,borderColor:ne.cardBorder},children:[v.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-white/50 to-transparent"}),v.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-500 group-hover:opacity-100",style:{background:"radial-gradient(circle at 18% 0%, rgba(191,255,0,0.09), transparent 46%)"}}),n]})}const dv={xs:18,sm:24,md:30};function fv({provider:n}){switch(n){case"openai":return v.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:v.jsx("path",{fill:"currentColor",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})});case"anthropic":return v.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:v.jsx("path",{fill:"currentColor",d:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"})});case"codex":return v.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:v.jsx("path",{fill:"currentColor",d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"})});case"openclaw":return v.jsxs("svg",{viewBox:"0 0 120 120","aria-hidden":"true",children:[v.jsx("path",{d:"M60 10C30 10 15 35 15 55C15 75 30 95 45 100V110H55V100C55 100 60 102 65 100V110H75V100C90 95 105 75 105 55C105 35 90 10 60 10Z",fill:"currentColor"}),v.jsx("path",{d:"M20 45C5 40 0 50 5 60C10 70 20 65 25 55C28 48 25 45 20 45Z",fill:"currentColor"}),v.jsx("path",{d:"M100 45C115 40 120 50 115 60C110 70 100 65 95 55C92 48 95 45 100 45Z",fill:"currentColor"}),v.jsx("circle",{cx:"45",cy:"35",r:"6",fill:"rgba(2,4,10,0.92)"}),v.jsx("circle",{cx:"75",cy:"35",r:"6",fill:"rgba(2,4,10,0.92)"})]});case"orgx":return v.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[v.jsx("circle",{cx:"12",cy:"12",r:"7",stroke:"currentColor",strokeWidth:"1.8",fill:"none"}),v.jsx("path",{d:"M8.2 8.2 15.8 15.8M15.8 8.2 8.2 15.8",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round"})]});default:return v.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[v.jsx("circle",{cx:"12",cy:"12",r:"8",stroke:"currentColor",strokeWidth:"1.8",fill:"none"}),v.jsx("path",{d:"m12 6-2 7h3l-1 5 4-8h-3l1-4Z",fill:"currentColor"})]})}}function Ml({provider:n,size:r="sm",className:s,showRing:a=!0}){const u=cv(n),f=dv[r];return v.jsx("span",{className:Vt("inline-flex items-center justify-center rounded-md",s),style:{width:f,height:f,color:u.accent,backgroundColor:u.tint,border:a?`1px solid ${u.accent}55`:"none"},title:u.label,"aria-label":u.label,children:v.jsx("span",{style:{width:Math.round(f*.66),height:Math.round(f*.66),display:"inline-flex",alignItems:"center",justifyContent:"center"},children:v.jsx(fv,{provider:n})})})}const pl=120,hv=10,Of=new Set(["running","queued","pending","blocked"]),ml=[{id:"all",label:"All offline",minutes:null},{id:"24h",label:"24h",minutes:1440},{id:"3d",label:"3d",minutes:4320},{id:"7d",label:"7d",minutes:10080},{id:"30d",label:"30d",minutes:720*60}],pv={running:ne.lime,queued:ne.amber,pending:ne.amber,blocked:ne.red,failed:ne.red,cancelled:ne.red,completed:ne.teal,archived:"rgba(255,255,255,0.5)"};function mv(n){return pv[n]??ne.iris}function dr(n){if(!n)return 0;const r=Date.parse(n);return Number.isFinite(r)?r:0}function zf(n,r){return dr(r.updatedAt??r.lastEventAt??r.startedAt)-dr(n.updatedAt??n.lastEventAt??n.startedAt)}function gv(n,r){const a=(n.lastEventSummary??r.get(n.runId)??r.get(n.id)??"").trim();return a.length>0?a:"No run summary yet. Open session to inspect messages and outputs."}const vv=b.memo(function({sessions:r,activity:s,selectedSessionId:a,onSelectSession:u}){const[f,d]=b.useState(new Set),[h,g]=b.useState("all"),m=b.useMemo(()=>{var _,z,T;const L=new Map,V=[...s].sort((O,E)=>dr(E.timestamp)-dr(O.timestamp));for(const O of V){const E=O.runId;if(!E||L.has(E))continue;const R=((_=O.summary)==null?void 0:_.trim())??((z=O.description)==null?void 0:z.trim())??((T=O.title)==null?void 0:T.trim())??"";R.length>0&&L.set(E,R)}return L},[s]),{agents:x,hiddenGroupCount:y,filteredOutByDate:S}=b.useMemo(()=>{const L=new Map;for(const E of r.nodes){const R=E.agentId??E.agentName??E.id,j=L.get(R);j?j.nodes.push(E):L.set(R,{agentId:E.agentId,agentName:E.agentName??"Unassigned",nodes:[E],latest:E})}for(const E of L.values())E.nodes.sort(zf),E.latest=E.nodes[0];const V=Array.from(L.values()).sort((E,R)=>zf(E.latest,R.latest)),_=ml.find(E=>E.id===h)??ml[0],z=_.minutes===null?null:Date.now()-_.minutes*6e4,T=V.filter(E=>{if(z===null)return!0;const R=E.latest;return Of.has(R.status)?!0:dr(R.updatedAt??R.lastEventAt??R.startedAt)>=z}),O=z===null?0:V.filter(E=>Of.has(E.latest.status)?!1:dr(E.latest.updatedAt??E.latest.lastEventAt??E.latest.startedAt)<z).length;return{agents:T.slice(0,pl),hiddenGroupCount:Math.max(0,T.length-pl),filteredOutByDate:O}},[h,r.nodes]),A=L=>{d(V=>{const _=new Set(V);return _.has(L)?_.delete(L):_.add(L),_})};return v.jsxs(vr,{className:"flex min-h-0 flex-col fade-in-up",children:[v.jsxs("div",{className:"flex items-center justify-between border-b border-white/[0.06] px-4 py-3",children:[v.jsxs("div",{children:[v.jsx("h2",{className:"text-[13px] font-semibold text-white",children:"Agents / Chats"}),v.jsx("p",{className:"text-[10px] text-white/45",children:"Provider logos + run summaries for fast triage"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("label",{htmlFor:"offline-date-filter",className:"text-[10px] text-white/45",children:"Offline"}),v.jsx("select",{id:"offline-date-filter",value:h,onChange:L=>g(L.target.value),className:"rounded-md border border-white/[0.1] bg-black/30 px-1.5 py-1 text-[10px] text-white/75 focus:outline-none focus:ring-1 focus:ring-white/30",children:ml.map(L=>v.jsx("option",{value:L.id,children:L.label},L.id))}),v.jsxs("span",{className:"chip",children:[r.nodes.length," sessions"]})]})]}),v.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto p-3",children:[x.length===0&&v.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-xl border border-white/[0.06] bg-white/[0.02] px-3 py-5 text-center",children:[v.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white/25",children:v.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),v.jsx("p",{className:"text-[11px] text-white/45",children:S>0?"No sessions match the selected offline date filter.":"No active chats yet."})]}),x.map(L=>{const V=L.agentId??L.agentName,_=f.has(V),z=L.nodes.length>1,T=L.latest,O=a===T.id,E=_?[]:L.nodes.slice(1,1+hv),R=Math.max(0,L.nodes.length-1-E.length),j=gv(T,m),B=Xs(L.agentName,T.title,T.lastEventSummary,j,T);return v.jsxs("div",{className:Vt("overflow-hidden rounded-xl border border-white/[0.06] bg-white/[0.02] transition-all",O&&"border-white/20 bg-white/[0.05]"),children:[v.jsxs("div",{className:"flex items-stretch",children:[v.jsx("button",{onClick:()=>u(T.id),className:"flex-1 px-3 py-2.5 text-left transition-colors hover:bg-white/[0.03]",children:v.jsxs("div",{className:"flex items-start gap-2.5",children:[v.jsxs("div",{className:"relative mt-0.5 flex-shrink-0",children:[v.jsx(Ml,{provider:B.id,size:"sm"}),v.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 h-2.5 w-2.5 rounded-full border-2",style:{backgroundColor:mv(T.status),borderColor:ne.cardBg}})]}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsxs("div",{className:"flex items-center justify-between gap-2",children:[v.jsx("span",{className:"truncate text-[11px] font-semibold text-white",children:L.agentName}),T.progress!==null&&v.jsxs("span",{className:"text-[10px] font-medium text-white/60",children:[Math.round(T.progress),"%"]})]}),v.jsxs("div",{className:"mt-0.5 flex items-center gap-1.5 text-[9px] text-white/45",children:[v.jsx("span",{className:"rounded-full border px-1.5 py-0.5 uppercase tracking-[0.08em]",style:{borderColor:`${B.accent}66`,color:B.accent,backgroundColor:B.tint},children:B.label}),v.jsx("span",{children:Qt(T.updatedAt??T.lastEventAt??T.startedAt??Date.now())})]}),v.jsx("p",{className:"mt-1 truncate text-[10px] text-white/78",children:T.title}),v.jsx("p",{className:"mt-0.5 line-clamp-2 text-[9px] leading-relaxed text-white/48",children:j})]})]})}),z&&v.jsx("button",{type:"button",onClick:()=>A(V),"aria-label":_?"Expand sessions":"Collapse sessions",className:"flex w-9 items-center justify-center border-l border-white/[0.06] text-white/50 transition-colors hover:bg-white/[0.05] hover:text-white/80",children:v.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:Vt("transition-transform",_?"-rotate-90":"rotate-0"),children:v.jsx("path",{d:"m6 9 6 6 6-6"})})})]}),z&&v.jsx("div",{className:Vt("overflow-hidden border-t border-white/[0.06] transition-all",_?"max-h-0 opacity-0":"max-h-[360px] opacity-100"),children:v.jsxs("div",{className:"space-y-1.5 p-2",children:[E.map(D=>{const q=a===D.id,se=Xs(D.agentName,D.title,D.lastEventSummary,D);return v.jsx("button",{onClick:()=>u(D.id),className:Vt("w-full rounded-lg px-2.5 py-2 text-left transition-colors",q?"bg-white/[0.09]":"bg-white/[0.02] hover:bg-white/[0.05]"),children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Ml,{provider:se.id,size:"xs"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"truncate text-[10px] text-white/90",children:D.title}),v.jsxs("p",{className:"text-[9px] uppercase tracking-[0.08em] text-white/45",children:[se.label," · ",D.status]})]})]})},D.id)}),R>0&&!_&&v.jsxs("p",{className:"px-1 text-[9px] text-white/40",children:["+",R," older sessions hidden for smooth rendering"]})]})})]},V)}),y>0&&v.jsxs("div",{className:"rounded-xl border border-white/[0.06] bg-white/[0.02] px-3 py-2 text-[10px] text-white/45",children:["Showing ",pl," most recent agent groups (",y," older groups omitted)."]}),S>0&&v.jsxs("div",{className:"rounded-xl border border-white/[0.06] bg-white/[0.02] px-3 py-2 text-[10px] text-white/45",children:[S," offline group",S===1?"":"s"," hidden by date filter."]})]})]})});function yv(n){if(n.runId)return n.runId;const r=n.metadata;if(!r)return null;const s=["runId","run_id","sessionId","session_id","agentRunId"];for(const a of s){const u=r[a];if(typeof u=="string"&&u.trim().length>0)return u.trim()}return null}function zs(n,r){for(const s of n){const a=s.metadata;if(a)for(const u of r){const f=a[u];if(typeof f=="string"&&f.trim().length>0)return f.trim()}}return null}const xv=b.memo(function({session:r,activity:s,onContinueHighestPriority:a,onDispatchSession:u,onStartInitiative:f,onStartWorkstream:d}){const[h,g]=b.useState(null),[m,x]=b.useState(null),y=b.useMemo(()=>r?s.filter(T=>yv(T)===r.runId).sort((T,O)=>Date.parse(O.timestamp)-Date.parse(T.timestamp)).slice(0,8):[],[s,r]),S=b.useMemo(()=>{if(!r)return[];const T=zs(y,["initiativeName","initiative_name","initiative","groupLabel"])??r.groupLabel,O=zs(y,["workstreamName","workstream_name","workstream","stream"])??r.workstreamId,E=zs(y,["milestoneName","milestone_name","milestone","phaseLabel","phase_name"])??r.phase??null,R=zs(y,["taskName","task_name","task","title"])??r.title,j=[];return T&&j.push({label:"Initiative",value:T}),O&&j.push({label:"Workstream",value:O}),E&&j.push({label:"Milestone",value:E}),R&&j.push({label:"Task",value:R}),j},[y,r]),A=b.useMemo(()=>{var R,j;if(!r)return null;const T=((R=y[0])==null?void 0:R.summary)??((j=y[0])==null?void 0:j.description)??null,E=r.lastEventSummary??T??null;return E&&E.trim().length>0?E.trim():null},[y,r]),L=b.useMemo(()=>{var T;return r?Xs(r.agentName,r.title,r.lastEventSummary,A,(T=y[0])==null?void 0:T.metadata):Xs()},[y,r,A]),V=async(T,O,E)=>{if(!(!E||h)){g(T),x(null);try{await E(),x(`${O} requested.`)}catch(R){x(R instanceof Error?R.message:`${O} failed.`)}finally{g(null)}}};if(!r)return v.jsxs(vr,{className:"flex flex-col fade-in-up",children:[v.jsx("div",{className:"border-b border-white/[0.06] px-4 py-3",children:v.jsx("h2",{className:"text-[13px] font-semibold text-white",children:"Session Detail"})}),v.jsxs("div",{className:"space-y-2 p-4 text-[11px] text-white/45",children:[v.jsx("p",{children:"Select a session to inspect summary, breadcrumbs, blockers, and recent messages."}),v.jsx("button",{onClick:()=>V("continue-priority","Continue highest priority",a),disabled:!a||!!h,className:"rounded-md border border-white/[0.12] bg-white/[0.04] px-2.5 py-1 text-[10px] text-white/70 transition-colors hover:bg-white/[0.08] disabled:opacity-45",children:h==="continue-priority"?"Dispatching…":"Continue highest priority"}),m&&v.jsx("p",{className:"text-[10px] text-white/55",children:m})]})]});const _=r.progress===null?null:Math.round(r.progress),z=[{label:"Started",value:r.startedAt?Qt(r.startedAt):"—"},{label:"Updated",value:r.updatedAt?Qt(r.updatedAt):"—"},{label:"ETA",value:r.eta??"—"},{label:"Checkpoints",value:r.checkpointCount!==null&&r.checkpointCount!==void 0?String(r.checkpointCount):"—"}];return v.jsxs(vr,{className:"flex flex-col fade-in-up",children:[v.jsxs("div",{className:"flex items-center justify-between border-b border-white/[0.06] px-4 py-3",children:[v.jsx("h2",{className:"text-[13px] font-semibold text-white",children:"Session Detail"}),v.jsx("span",{className:"chip text-[10px] uppercase",children:r.status})]}),v.jsxs("div",{className:"space-y-3 p-4",children:[v.jsxs("div",{className:"flex items-start gap-2.5",children:[v.jsx(Ml,{provider:L.id,size:"sm"}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"truncate text-[12px] font-medium text-white",children:r.title}),v.jsxs("p",{className:"mt-0.5 text-[10px] text-white/45",children:[r.agentName??"Unassigned"," · ",L.label]})]})]}),S.length>0&&v.jsxs("div",{className:"rounded-xl border border-white/[0.06] bg-white/[0.02] p-2.5",children:[v.jsx("p",{className:"mb-1.5 text-[9px] uppercase tracking-[0.1em] text-white/35",children:"Breadcrumb"}),v.jsx("div",{className:"flex flex-wrap items-center gap-1.5 text-[9px]",children:S.map((T,O)=>v.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[v.jsx("span",{className:"rounded-full border border-white/[0.12] bg-white/[0.02] px-1.5 py-0.5 text-white/65",children:T.value}),O<S.length-1&&v.jsx("span",{className:"text-white/30",children:"›"})]},`${T.label}-${T.value}`))})]}),A&&v.jsx("p",{className:"rounded-xl border border-white/[0.06] bg-white/[0.02] px-3 py-2 text-[10px] leading-relaxed text-white/65",children:A}),_!==null&&v.jsxs("div",{children:[v.jsxs("div",{className:"mb-1 flex items-center justify-between text-[10px] text-white/55",children:[v.jsx("span",{children:"Progress"}),v.jsxs("span",{children:[_,"%"]})]}),v.jsx("div",{className:"h-1.5 rounded-full bg-white/[0.08]",children:v.jsx("div",{className:"h-1.5 rounded-full",style:{width:`${_}%`,background:`linear-gradient(90deg, ${ne.lime}, ${ne.teal})`}})})]}),v.jsx("dl",{className:"grid grid-cols-1 gap-1 text-[10px] text-white/55 sm:grid-cols-2",children:z.map(T=>v.jsxs("div",{children:[v.jsx("dt",{className:"text-white/35",children:T.label}),v.jsx("dd",{children:T.value})]},T.label))}),v.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[v.jsx("button",{onClick:()=>V("continue-priority","Continue highest priority",a),disabled:!a||!!h,className:"rounded-md border border-white/[0.12] bg-white/[0.03] px-2 py-1.5 text-[10px] text-white/75 transition-colors hover:bg-white/[0.08] disabled:opacity-45",children:h==="continue-priority"?"Dispatching…":"Continue Priority"}),v.jsx("button",{onClick:()=>V("dispatch-session","Dispatch session",()=>u==null?void 0:u(r)),disabled:!u||!!h,className:"rounded-md border border-lime/25 bg-lime/10 px-2 py-1.5 text-[10px] font-semibold text-lime transition-colors hover:bg-lime/20 disabled:opacity-45",children:h==="dispatch-session"?"Dispatching…":"Dispatch Session"}),v.jsx("button",{onClick:()=>V("start-initiative","Start initiative",f),disabled:!f||!!h,className:"rounded-md border border-white/[0.12] bg-white/[0.03] px-2 py-1.5 text-[10px] text-white/75 transition-colors hover:bg-white/[0.08] disabled:opacity-45",children:h==="start-initiative"?"Creating…":"Start Initiative"}),v.jsx("button",{onClick:()=>V("start-workstream","Start workstream",()=>d==null?void 0:d(r.initiativeId)),disabled:!d||!!h,className:"rounded-md border border-white/[0.12] bg-white/[0.03] px-2 py-1.5 text-[10px] text-white/75 transition-colors hover:bg-white/[0.08] disabled:opacity-45",children:h==="start-workstream"?"Creating…":"Start Workstream"})]}),m&&v.jsx("p",{className:"rounded-md border border-white/[0.08] bg-white/[0.02] px-2.5 py-1.5 text-[10px] text-white/55",children:m}),r.blockers.length>0&&v.jsxs("div",{className:"rounded-xl border border-red-500/30 bg-red-500/10 p-3",children:[v.jsx("h3",{className:"mb-1 text-[10px] uppercase tracking-[0.12em] text-red-200/70",children:"Blockers"}),v.jsx("ul",{className:"space-y-1 text-[11px] text-red-100/90",children:r.blockers.map(T=>v.jsxs("li",{children:["• ",T]},T))})]}),v.jsxs("div",{children:[v.jsx("h3",{className:"mb-2 text-[10px] uppercase tracking-[0.12em] text-white/45",children:"Recent Messages"}),y.length===0&&v.jsx("p",{className:"text-[11px] text-white/45",children:"No recent messages for this run."}),v.jsx("div",{className:"space-y-2",children:y.map(T=>v.jsxs("article",{className:"rounded-lg border border-white/[0.06] bg-white/[0.02] px-2.5 py-2",children:[v.jsx("p",{className:"text-[11px] text-white/85",children:T.title}),(T.summary||T.description)&&v.jsx("p",{className:"mt-0.5 line-clamp-2 text-[10px] text-white/55",children:T.summary??T.description}),v.jsxs("p",{className:"mt-1 text-[9px] text-white/35",children:[new Date(T.timestamp).toLocaleString()," · ",Qt(T.timestamp)]})]},T.id))})]})]})]})}),Yl=b.createContext({});function Xl(n){const r=b.useRef(null);return r.current===null&&(r.current=n()),r.current}const io=b.createContext(null),ql=b.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class wv extends b.Component{getSnapshotBeforeUpdate(r){const s=this.props.childRef.current;if(s&&r.isPresent&&!this.props.isPresent){const a=this.props.sizeRef.current;a.height=s.offsetHeight||0,a.width=s.offsetWidth||0,a.top=s.offsetTop,a.left=s.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Sv({children:n,isPresent:r}){const s=b.useId(),a=b.useRef(null),u=b.useRef({width:0,height:0,top:0,left:0}),{nonce:f}=b.useContext(ql);return b.useInsertionEffect(()=>{const{width:d,height:h,top:g,left:m}=u.current;if(r||!a.current||!d||!h)return;a.current.dataset.motionPopId=s;const x=document.createElement("style");return f&&(x.nonce=f),document.head.appendChild(x),x.sheet&&x.sheet.insertRule(`
41
+ [data-motion-pop-id="${s}"] {
42
+ position: absolute !important;
43
+ width: ${d}px !important;
44
+ height: ${h}px !important;
45
+ top: ${g}px !important;
46
+ left: ${m}px !important;
47
+ }
48
+ `),()=>{document.head.removeChild(x)}},[r]),v.jsx(wv,{isPresent:r,childRef:a,sizeRef:u,children:b.cloneElement(n,{ref:a})})}const kv=({children:n,initial:r,isPresent:s,onExitComplete:a,custom:u,presenceAffectsLayout:f,mode:d})=>{const h=Xl(Cv),g=b.useId(),m=b.useCallback(y=>{h.set(y,!0);for(const S of h.values())if(!S)return;a&&a()},[h,a]),x=b.useMemo(()=>({id:g,initial:r,isPresent:s,custom:u,onExitComplete:m,register:y=>(h.set(y,!1),()=>h.delete(y))}),f?[Math.random(),m]:[s,m]);return b.useMemo(()=>{h.forEach((y,S)=>h.set(S,!1))},[s]),b.useEffect(()=>{!s&&!h.size&&a&&a()},[s]),d==="popLayout"&&(n=v.jsx(Sv,{isPresent:s,children:n})),v.jsx(io.Provider,{value:x,children:n})};function Cv(){return new Map}function up(n=!0){const r=b.useContext(io);if(r===null)return[!0,null];const{isPresent:s,onExitComplete:a,register:u}=r,f=b.useId();b.useEffect(()=>{n&&u(f)},[n]);const d=b.useCallback(()=>n&&a&&a(f),[f,a,n]);return!s&&a?[!1,d]:[!0]}const Bs=n=>n.key||"";function Bf(n){const r=[];return b.Children.forEach(n,s=>{b.isValidElement(s)&&r.push(s)}),r}const Zl=typeof window<"u",cp=Zl?b.useLayoutEffect:b.useEffect,dp=({children:n,custom:r,initial:s=!0,onExitComplete:a,presenceAffectsLayout:u=!0,mode:f="sync",propagate:d=!1})=>{const[h,g]=up(d),m=b.useMemo(()=>Bf(n),[n]),x=d&&!h?[]:m.map(Bs),y=b.useRef(!0),S=b.useRef(m),A=Xl(()=>new Map),[L,V]=b.useState(m),[_,z]=b.useState(m);cp(()=>{y.current=!1,S.current=m;for(let E=0;E<_.length;E++){const R=Bs(_[E]);x.includes(R)?A.delete(R):A.get(R)!==!0&&A.set(R,!1)}},[_,x.length,x.join("-")]);const T=[];if(m!==L){let E=[...m];for(let R=0;R<_.length;R++){const j=_[R],B=Bs(j);x.includes(B)||(E.splice(R,0,j),T.push(j))}f==="wait"&&T.length&&(E=T),z(Bf(E)),V(m);return}const{forceRender:O}=b.useContext(Yl);return v.jsx(v.Fragment,{children:_.map(E=>{const R=Bs(E),j=d&&!h?!1:m===_||x.includes(R),B=()=>{if(A.has(R))A.set(R,!0);else return;let D=!0;A.forEach(q=>{q||(D=!1)}),D&&(O==null||O(),z(S.current),d&&(g==null||g()),a&&a())};return v.jsx(kv,{isPresent:j,initial:!y.current||s?void 0:!1,custom:j?void 0:r,presenceAffectsLayout:u,mode:f,onExitComplete:j?void 0:B,children:E},R)})})},ht=n=>n;let fp=ht;function Jl(n){let r;return()=>(r===void 0&&(r=n()),r)}const yr=(n,r,s)=>{const a=r-n;return a===0?1:(s-n)/a},Gt=n=>n*1e3,Yt=n=>n/1e3,Tv={useManualTiming:!1};function Pv(n){let r=new Set,s=new Set,a=!1,u=!1;const f=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function h(m){f.has(m)&&(g.schedule(m),n()),m(d)}const g={schedule:(m,x=!1,y=!1)=>{const A=y&&a?r:s;return x&&f.add(m),A.has(m)||A.add(m),m},cancel:m=>{s.delete(m),f.delete(m)},process:m=>{if(d=m,a){u=!0;return}a=!0,[r,s]=[s,r],r.forEach(h),r.clear(),a=!1,u&&(u=!1,g.process(m))}};return g}const Us=["read","resolveKeyframes","update","preRender","render","postRender"],Ev=40;function hp(n,r){let s=!1,a=!0;const u={delta:0,timestamp:0,isProcessing:!1},f=()=>s=!0,d=Us.reduce((z,T)=>(z[T]=Pv(f),z),{}),{read:h,resolveKeyframes:g,update:m,preRender:x,render:y,postRender:S}=d,A=()=>{const z=performance.now();s=!1,u.delta=a?1e3/60:Math.max(Math.min(z-u.timestamp,Ev),1),u.timestamp=z,u.isProcessing=!0,h.process(u),g.process(u),m.process(u),x.process(u),y.process(u),S.process(u),u.isProcessing=!1,s&&r&&(a=!1,n(A))},L=()=>{s=!0,a=!0,u.isProcessing||n(A)};return{schedule:Us.reduce((z,T)=>{const O=d[T];return z[T]=(E,R=!1,j=!1)=>(s||L(),O.schedule(E,R,j)),z},{}),cancel:z=>{for(let T=0;T<Us.length;T++)d[Us[T]].cancel(z)},state:u,steps:d}}const{schedule:Ne,cancel:yn,state:Qe,steps:gl}=hp(typeof requestAnimationFrame<"u"?requestAnimationFrame:ht,!0),pp=b.createContext({strict:!1}),Uf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},xr={};for(const n in Uf)xr[n]={isEnabled:r=>Uf[n].some(s=>!!r[s])};function Nv(n){for(const r in n)xr[r]={...xr[r],...n[r]}}const Av=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function qs(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||Av.has(n)}let mp=n=>!qs(n);function jv(n){n&&(mp=r=>r.startsWith("on")?!qs(r):n(r))}try{jv(require("@emotion/is-prop-valid").default)}catch{}function Mv(n,r,s){const a={};for(const u in n)u==="values"&&typeof n.values=="object"||(mp(u)||s===!0&&qs(u)||!r&&!qs(u)||n.draggable&&u.startsWith("onDrag"))&&(a[u]=n[u]);return a}function Dv(n){if(typeof Proxy>"u")return n;const r=new Map,s=(...a)=>n(...a);return new Proxy(s,{get:(a,u)=>u==="create"?n:(r.has(u)||r.set(u,n(u)),r.get(u))})}const so=b.createContext({});function xi(n){return typeof n=="string"||Array.isArray(n)}function oo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}const eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tu=["initial",...eu];function ao(n){return oo(n.animate)||tu.some(r=>xi(n[r]))}function gp(n){return!!(ao(n)||n.variants)}function Lv(n,r){if(ao(n)){const{initial:s,animate:a}=n;return{initial:s===!1||xi(s)?s:void 0,animate:xi(a)?a:void 0}}return n.inherit!==!1?r:{}}function Rv(n){const{initial:r,animate:s}=Lv(n,b.useContext(so));return b.useMemo(()=>({initial:r,animate:s}),[$f(r),$f(s)])}function $f(n){return Array.isArray(n)?n.join(" "):n}const Iv=Symbol.for("motionComponentSymbol");function fr(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function _v(n,r,s){return b.useCallback(a=>{a&&n.onMount&&n.onMount(a),r&&(a?r.mount(a):r.unmount()),s&&(typeof s=="function"?s(a):fr(s)&&(s.current=a))},[r])}const nu=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Vv="framerAppearId",vp="data-"+nu(Vv),{schedule:ru}=hp(queueMicrotask,!1),yp=b.createContext({});function bv(n,r,s,a,u){var f,d;const{visualElement:h}=b.useContext(so),g=b.useContext(pp),m=b.useContext(io),x=b.useContext(ql).reducedMotion,y=b.useRef(null);a=a||g.renderer,!y.current&&a&&(y.current=a(n,{visualState:r,parent:h,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:x}));const S=y.current,A=b.useContext(yp);S&&!S.projection&&u&&(S.type==="html"||S.type==="svg")&&Fv(y.current,s,u,A);const L=b.useRef(!1);b.useInsertionEffect(()=>{S&&L.current&&S.update(s,m)});const V=s[vp],_=b.useRef(!!V&&!(!((f=window.MotionHandoffIsComplete)===null||f===void 0)&&f.call(window,V))&&((d=window.MotionHasOptimisedAnimation)===null||d===void 0?void 0:d.call(window,V)));return cp(()=>{S&&(L.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),ru.render(S.render),_.current&&S.animationState&&S.animationState.animateChanges())}),b.useEffect(()=>{S&&(!_.current&&S.animationState&&S.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var z;(z=window.MotionHandoffMarkAsComplete)===null||z===void 0||z.call(window,V)}),_.current=!1))}),S}function Fv(n,r,s,a){const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:g,layoutRoot:m}=r;n.projection=new s(n.latestValues,r["data-framer-portal-id"]?void 0:xp(n.parent)),n.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&fr(h),visualElement:n,animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,layoutScroll:g,layoutRoot:m})}function xp(n){if(n)return n.options.allowProjection!==!1?n.projection:xp(n.parent)}function Ov({preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:a,Component:u}){var f,d;n&&Nv(n);function h(m,x){let y;const S={...b.useContext(ql),...m,layoutId:zv(m)},{isStatic:A}=S,L=Rv(m),V=a(m,A);if(!A&&Zl){Bv();const _=Uv(S);y=_.MeasureLayout,L.visualElement=bv(u,V,S,r,_.ProjectionNode)}return v.jsxs(so.Provider,{value:L,children:[y&&L.visualElement?v.jsx(y,{visualElement:L.visualElement,...S}):null,s(u,m,_v(V,L.visualElement,x),V,A,L.visualElement)]})}h.displayName=`motion.${typeof u=="string"?u:`create(${(d=(f=u.displayName)!==null&&f!==void 0?f:u.name)!==null&&d!==void 0?d:""})`}`;const g=b.forwardRef(h);return g[Iv]=u,g}function zv({layoutId:n}){const r=b.useContext(Yl).id;return r&&n!==void 0?r+"-"+n:n}function Bv(n,r){b.useContext(pp).strict}function Uv(n){const{drag:r,layout:s}=xr;if(!r&&!s)return{};const a={...r,...s};return{MeasureLayout:r!=null&&r.isEnabled(n)||s!=null&&s.isEnabled(n)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}const $v=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iu(n){return typeof n!="string"||n.includes("-")?!1:!!($v.indexOf(n)>-1||/[A-Z]/u.test(n))}function Wf(n){const r=[{},{}];return n==null||n.values.forEach((s,a)=>{r[0][a]=s.get(),r[1][a]=s.getVelocity()}),r}function su(n,r,s,a){if(typeof r=="function"){const[u,f]=Wf(a);r=r(s!==void 0?s:n.custom,u,f)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[u,f]=Wf(a);r=r(s!==void 0?s:n.custom,u,f)}return r}const Dl=n=>Array.isArray(n),Wv=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),Hv=n=>Dl(n)?n[n.length-1]||0:n,Je=n=>!!(n&&n.getVelocity);function Ks(n){const r=Je(n)?n.get():n;return Wv(r)?r.toValue():r}function Kv({scrapeMotionValuesFromProps:n,createRenderState:r,onUpdate:s},a,u,f){const d={latestValues:Qv(a,u,f,n),renderState:r()};return s&&(d.onMount=h=>s({props:a,current:h,...d}),d.onUpdate=h=>s(h)),d}const wp=n=>(r,s)=>{const a=b.useContext(so),u=b.useContext(io),f=()=>Kv(n,r,a,u);return s?f():Xl(f)};function Qv(n,r,s,a){const u={},f=a(n,{});for(const S in f)u[S]=Ks(f[S]);let{initial:d,animate:h}=n;const g=ao(n),m=gp(n);r&&m&&!g&&n.inherit!==!1&&(d===void 0&&(d=r.initial),h===void 0&&(h=r.animate));let x=s?s.initial===!1:!1;x=x||d===!1;const y=x?h:d;if(y&&typeof y!="boolean"&&!oo(y)){const S=Array.isArray(y)?y:[y];for(let A=0;A<S.length;A++){const L=su(n,S[A]);if(L){const{transitionEnd:V,transition:_,...z}=L;for(const T in z){let O=z[T];if(Array.isArray(O)){const E=x?O.length-1:0;O=O[E]}O!==null&&(u[T]=O)}for(const T in V)u[T]=V[T]}}}return u}const Sr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],On=new Set(Sr),Sp=n=>r=>typeof r=="string"&&r.startsWith(n),kp=Sp("--"),Gv=Sp("var(--"),ou=n=>Gv(n)?Yv.test(n.split("/*")[0].trim()):!1,Yv=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Cp=(n,r)=>r&&typeof n=="number"?r.transform(n):n,Xt=(n,r,s)=>s>r?r:s<n?n:s,kr={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},wi={...kr,transform:n=>Xt(0,1,n)},$s={...kr,default:1},Ti=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),vn=Ti("deg"),bt=Ti("%"),ue=Ti("px"),Xv=Ti("vh"),qv=Ti("vw"),Hf={...bt,parse:n=>bt.parse(n)/100,transform:n=>bt.transform(n*100)},Zv={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,backgroundPositionX:ue,backgroundPositionY:ue},Jv={rotate:vn,rotateX:vn,rotateY:vn,rotateZ:vn,scale:$s,scaleX:$s,scaleY:$s,scaleZ:$s,skew:vn,skewX:vn,skewY:vn,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:wi,originX:Hf,originY:Hf,originZ:ue},Kf={...kr,transform:Math.round},au={...Zv,...Jv,zIndex:Kf,size:ue,fillOpacity:wi,strokeOpacity:wi,numOctaves:Kf},ey={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ty=Sr.length;function ny(n,r,s){let a="",u=!0;for(let f=0;f<ty;f++){const d=Sr[f],h=n[d];if(h===void 0)continue;let g=!0;if(typeof h=="number"?g=h===(d.startsWith("scale")?1:0):g=parseFloat(h)===0,!g||s){const m=Cp(h,au[d]);if(!g){u=!1;const x=ey[d]||d;a+=`${x}(${m}) `}s&&(r[d]=m)}}return a=a.trim(),s?a=s(r,u?"":a):u&&(a="none"),a}function lu(n,r,s){const{style:a,vars:u,transformOrigin:f}=n;let d=!1,h=!1;for(const g in r){const m=r[g];if(On.has(g)){d=!0;continue}else if(kp(g)){u[g]=m;continue}else{const x=Cp(m,au[g]);g.startsWith("origin")?(h=!0,f[g]=x):a[g]=x}}if(r.transform||(d||s?a.transform=ny(r,n.transform,s):a.transform&&(a.transform="none")),h){const{originX:g="50%",originY:m="50%",originZ:x=0}=f;a.transformOrigin=`${g} ${m} ${x}`}}const ry={offset:"stroke-dashoffset",array:"stroke-dasharray"},iy={offset:"strokeDashoffset",array:"strokeDasharray"};function sy(n,r,s=1,a=0,u=!0){n.pathLength=1;const f=u?ry:iy;n[f.offset]=ue.transform(-a);const d=ue.transform(r),h=ue.transform(s);n[f.array]=`${d} ${h}`}function Qf(n,r,s){return typeof n=="string"?n:ue.transform(r+s*n)}function oy(n,r,s){const a=Qf(r,n.x,n.width),u=Qf(s,n.y,n.height);return`${a} ${u}`}function uu(n,{attrX:r,attrY:s,attrScale:a,originX:u,originY:f,pathLength:d,pathSpacing:h=1,pathOffset:g=0,...m},x,y){if(lu(n,m,y),x){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:S,style:A,dimensions:L}=n;S.transform&&(L&&(A.transform=S.transform),delete S.transform),L&&(u!==void 0||f!==void 0||A.transform)&&(A.transformOrigin=oy(L,u!==void 0?u:.5,f!==void 0?f:.5)),r!==void 0&&(S.x=r),s!==void 0&&(S.y=s),a!==void 0&&(S.scale=a),d!==void 0&&sy(S,d,h,g,!1)}const cu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Tp=()=>({...cu(),attrs:{}}),du=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Pp(n,{style:r,vars:s},a,u){Object.assign(n.style,r,u&&u.getProjectionStyles(a));for(const f in s)n.style.setProperty(f,s[f])}const Ep=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Np(n,r,s,a){Pp(n,r,void 0,a);for(const u in r.attrs)n.setAttribute(Ep.has(u)?u:nu(u),r.attrs[u])}const Zs={};function ay(n){Object.assign(Zs,n)}function Ap(n,{layout:r,layoutId:s}){return On.has(n)||n.startsWith("origin")||(r||s!==void 0)&&(!!Zs[n]||n==="opacity")}function fu(n,r,s){var a;const{style:u}=n,f={};for(const d in u)(Je(u[d])||r.style&&Je(r.style[d])||Ap(d,n)||((a=s==null?void 0:s.getValue(d))===null||a===void 0?void 0:a.liveStyle)!==void 0)&&(f[d]=u[d]);return f}function jp(n,r,s){const a=fu(n,r,s);for(const u in n)if(Je(n[u])||Je(r[u])){const f=Sr.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;a[f]=n[u]}return a}function ly(n,r){try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}const Gf=["x","y","width","height","cx","cy","r"],uy={useVisualState:wp({scrapeMotionValuesFromProps:jp,createRenderState:Tp,onUpdate:({props:n,prevProps:r,current:s,renderState:a,latestValues:u})=>{if(!s)return;let f=!!n.drag;if(!f){for(const h in u)if(On.has(h)){f=!0;break}}if(!f)return;let d=!r;if(r)for(let h=0;h<Gf.length;h++){const g=Gf[h];n[g]!==r[g]&&(d=!0)}d&&Ne.read(()=>{ly(s,a),Ne.render(()=>{uu(a,u,du(s.tagName),n.transformTemplate),Np(s,a)})})}})},cy={useVisualState:wp({scrapeMotionValuesFromProps:fu,createRenderState:cu})};function Mp(n,r,s){for(const a in r)!Je(r[a])&&!Ap(a,s)&&(n[a]=r[a])}function dy({transformTemplate:n},r){return b.useMemo(()=>{const s=cu();return lu(s,r,n),Object.assign({},s.vars,s.style)},[r])}function fy(n,r){const s=n.style||{},a={};return Mp(a,s,n),Object.assign(a,dy(n,r)),a}function hy(n,r){const s={},a=fy(n,r);return n.drag&&n.dragListener!==!1&&(s.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(s.tabIndex=0),s.style=a,s}function py(n,r,s,a){const u=b.useMemo(()=>{const f=Tp();return uu(f,r,du(a),n.transformTemplate),{...f.attrs,style:{...f.style}}},[r]);if(n.style){const f={};Mp(f,n.style,n),u.style={...f,...u.style}}return u}function my(n=!1){return(s,a,u,{latestValues:f},d)=>{const g=(iu(s)?py:hy)(a,f,d,s),m=Mv(a,typeof s=="string",n),x=s!==b.Fragment?{...m,...g,ref:u}:{},{children:y}=a,S=b.useMemo(()=>Je(y)?y.get():y,[y]);return b.createElement(s,{...x,children:S})}}function gy(n,r){return function(a,{forwardMotionProps:u}={forwardMotionProps:!1}){const d={...iu(a)?uy:cy,preloadedFeatures:n,useRender:my(u),createVisualElement:r,Component:a};return Ov(d)}}function Dp(n,r){if(!Array.isArray(r))return!1;const s=r.length;if(s!==n.length)return!1;for(let a=0;a<s;a++)if(r[a]!==n[a])return!1;return!0}function lo(n,r,s){const a=n.getProps();return su(a,r,s!==void 0?s:a.custom,n)}const vy=Jl(()=>window.ScrollTimeline!==void 0);class yy{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>"finished"in r?r.finished:r))}getAll(r){return this.animations[0][r]}setAll(r,s){for(let a=0;a<this.animations.length;a++)this.animations[a][r]=s}attachTimeline(r,s){const a=this.animations.map(u=>{if(vy()&&u.attachTimeline)return u.attachTimeline(r);if(typeof s=="function")return s(u)});return()=>{a.forEach((u,f)=>{u&&u(),this.animations[f].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get startTime(){return this.getAll("startTime")}get duration(){let r=0;for(let s=0;s<this.animations.length;s++)r=Math.max(r,this.animations[s].duration);return r}runAll(r){this.animations.forEach(s=>s[r]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class xy extends yy{then(r,s){return Promise.all(this.animations).then(r).catch(s)}}function hu(n,r){return n?n[r]||n.default||n:void 0}const Ll=2e4;function Lp(n){let r=0;const s=50;let a=n.next(r);for(;!a.done&&r<Ll;)r+=s,a=n.next(r);return r>=Ll?1/0:r}function pu(n){return typeof n=="function"}function Yf(n,r){n.timeline=r,n.onfinish=null}const mu=n=>Array.isArray(n)&&typeof n[0]=="number",wy={linearEasing:void 0};function Sy(n,r){const s=Jl(n);return()=>{var a;return(a=wy[r])!==null&&a!==void 0?a:s()}}const Js=Sy(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rp=(n,r,s=10)=>{let a="";const u=Math.max(Math.round(r/s),2);for(let f=0;f<u;f++)a+=n(yr(0,u-1,f))+", ";return`linear(${a.substring(0,a.length-2)})`};function Ip(n){return!!(typeof n=="function"&&Js()||!n||typeof n=="string"&&(n in Rl||Js())||mu(n)||Array.isArray(n)&&n.every(Ip))}const fi=([n,r,s,a])=>`cubic-bezier(${n}, ${r}, ${s}, ${a})`,Rl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fi([0,.65,.55,1]),circOut:fi([.55,0,1,.45]),backIn:fi([.31,.01,.66,-.59]),backOut:fi([.33,1.53,.69,.99])};function _p(n,r){if(n)return typeof n=="function"&&Js()?Rp(n,r):mu(n)?fi(n):Array.isArray(n)?n.map(s=>_p(s,r)||Rl.easeOut):Rl[n]}const Mt={x:!1,y:!1};function Vp(){return Mt.x||Mt.y}function ky(n,r,s){var a;if(n instanceof Element)return[n];if(typeof n=="string"){let u=document;const f=(a=void 0)!==null&&a!==void 0?a:u.querySelectorAll(n);return f?Array.from(f):[]}return Array.from(n)}function bp(n,r){const s=ky(n),a=new AbortController,u={passive:!0,...r,signal:a.signal};return[s,u,()=>a.abort()]}function Xf(n){return r=>{r.pointerType==="touch"||Vp()||n(r)}}function Cy(n,r,s={}){const[a,u,f]=bp(n,s),d=Xf(h=>{const{target:g}=h,m=r(h);if(typeof m!="function"||!g)return;const x=Xf(y=>{m(y),g.removeEventListener("pointerleave",x)});g.addEventListener("pointerleave",x,u)});return a.forEach(h=>{h.addEventListener("pointerenter",d,u)}),f}const Fp=(n,r)=>r?n===r?!0:Fp(n,r.parentElement):!1,gu=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,Ty=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Py(n){return Ty.has(n.tagName)||n.tabIndex!==-1}const hi=new WeakSet;function qf(n){return r=>{r.key==="Enter"&&n(r)}}function vl(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const Ey=(n,r)=>{const s=n.currentTarget;if(!s)return;const a=qf(()=>{if(hi.has(s))return;vl(s,"down");const u=qf(()=>{vl(s,"up")}),f=()=>vl(s,"cancel");s.addEventListener("keyup",u,r),s.addEventListener("blur",f,r)});s.addEventListener("keydown",a,r),s.addEventListener("blur",()=>s.removeEventListener("keydown",a),r)};function Zf(n){return gu(n)&&!Vp()}function Ny(n,r,s={}){const[a,u,f]=bp(n,s),d=h=>{const g=h.currentTarget;if(!Zf(h)||hi.has(g))return;hi.add(g);const m=r(h),x=(A,L)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",S),!(!Zf(A)||!hi.has(g))&&(hi.delete(g),typeof m=="function"&&m(A,{success:L}))},y=A=>{x(A,s.useGlobalTarget||Fp(g,A.target))},S=A=>{x(A,!1)};window.addEventListener("pointerup",y,u),window.addEventListener("pointercancel",S,u)};return a.forEach(h=>{!Py(h)&&h.getAttribute("tabindex")===null&&(h.tabIndex=0),(s.useGlobalTarget?window:h).addEventListener("pointerdown",d,u),h.addEventListener("focus",m=>Ey(m,u),u)}),f}function Ay(n){return n==="x"||n==="y"?Mt[n]?null:(Mt[n]=!0,()=>{Mt[n]=!1}):Mt.x||Mt.y?null:(Mt.x=Mt.y=!0,()=>{Mt.x=Mt.y=!1})}const Op=new Set(["width","height","top","left","right","bottom",...Sr]);let Qs;function jy(){Qs=void 0}const Ft={now:()=>(Qs===void 0&&Ft.set(Qe.isProcessing||Tv.useManualTiming?Qe.timestamp:performance.now()),Qs),set:n=>{Qs=n,queueMicrotask(jy)}};function vu(n,r){n.indexOf(r)===-1&&n.push(r)}function yu(n,r){const s=n.indexOf(r);s>-1&&n.splice(s,1)}class xu{constructor(){this.subscriptions=[]}add(r){return vu(this.subscriptions,r),()=>yu(this.subscriptions,r)}notify(r,s,a){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](r,s,a);else for(let f=0;f<u;f++){const d=this.subscriptions[f];d&&d(r,s,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function zp(n,r){return r?n*(1e3/r):0}const Jf=30,My=n=>!isNaN(parseFloat(n));class Dy{constructor(r,s={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,u=!0)=>{const f=Ft.now();this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(r),this.owner=s.owner}setCurrent(r){this.current=r,this.updatedAt=Ft.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=My(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,s){this.events[r]||(this.events[r]=new xu);const a=this.events[r].add(s);return r==="change"?()=>{a(),Ne.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,s){this.passiveEffect=r,this.stopPassiveEffect=s}set(r,s=!0){!s||!this.passiveEffect?this.updateAndNotify(r,s):this.passiveEffect(r,this.updateAndNotify)}setWithVelocity(r,s,a){this.set(s),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-a}jump(r,s=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=Ft.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>Jf)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Jf);return zp(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(r){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=r(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Si(n,r){return new Dy(n,r)}function Ly(n,r,s){n.hasValue(r)?n.getValue(r).set(s):n.addValue(r,Si(s))}function Ry(n,r){const s=lo(n,r);let{transitionEnd:a={},transition:u={},...f}=s||{};f={...f,...a};for(const d in f){const h=Hv(f[d]);Ly(n,d,h)}}function Iy(n){return!!(Je(n)&&n.add)}function Il(n,r){const s=n.getValue("willChange");if(Iy(s))return s.add(r)}function Bp(n){return n.props[vp]}const Up=(n,r,s)=>(((1-3*s+3*r)*n+(3*s-6*r))*n+3*r)*n,_y=1e-7,Vy=12;function by(n,r,s,a,u){let f,d,h=0;do d=r+(s-r)/2,f=Up(d,a,u)-n,f>0?s=d:r=d;while(Math.abs(f)>_y&&++h<Vy);return d}function Pi(n,r,s,a){if(n===r&&s===a)return ht;const u=f=>by(f,0,1,n,s);return f=>f===0||f===1?f:Up(u(f),r,a)}const $p=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,Wp=n=>r=>1-n(1-r),Hp=Pi(.33,1.53,.69,.99),wu=Wp(Hp),Kp=$p(wu),Qp=n=>(n*=2)<1?.5*wu(n):.5*(2-Math.pow(2,-10*(n-1))),Su=n=>1-Math.sin(Math.acos(n)),Gp=Wp(Su),Yp=$p(Su),Xp=n=>/^0[^.\s]+$/u.test(n);function Fy(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||Xp(n):!0}const mi=n=>Math.round(n*1e5)/1e5,ku=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Oy(n){return n==null}const zy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cu=(n,r)=>s=>!!(typeof s=="string"&&zy.test(s)&&s.startsWith(n)||r&&!Oy(s)&&Object.prototype.hasOwnProperty.call(s,r)),qp=(n,r,s)=>a=>{if(typeof a!="string")return a;const[u,f,d,h]=a.match(ku);return{[n]:parseFloat(u),[r]:parseFloat(f),[s]:parseFloat(d),alpha:h!==void 0?parseFloat(h):1}},By=n=>Xt(0,255,n),yl={...kr,transform:n=>Math.round(By(n))},bn={test:Cu("rgb","red"),parse:qp("red","green","blue"),transform:({red:n,green:r,blue:s,alpha:a=1})=>"rgba("+yl.transform(n)+", "+yl.transform(r)+", "+yl.transform(s)+", "+mi(wi.transform(a))+")"};function Uy(n){let r="",s="",a="",u="";return n.length>5?(r=n.substring(1,3),s=n.substring(3,5),a=n.substring(5,7),u=n.substring(7,9)):(r=n.substring(1,2),s=n.substring(2,3),a=n.substring(3,4),u=n.substring(4,5),r+=r,s+=s,a+=a,u+=u),{red:parseInt(r,16),green:parseInt(s,16),blue:parseInt(a,16),alpha:u?parseInt(u,16)/255:1}}const _l={test:Cu("#"),parse:Uy,transform:bn.transform},hr={test:Cu("hsl","hue"),parse:qp("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:s,alpha:a=1})=>"hsla("+Math.round(n)+", "+bt.transform(mi(r))+", "+bt.transform(mi(s))+", "+mi(wi.transform(a))+")"},Ze={test:n=>bn.test(n)||_l.test(n)||hr.test(n),parse:n=>bn.test(n)?bn.parse(n):hr.test(n)?hr.parse(n):_l.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?bn.transform(n):hr.transform(n)},$y=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wy(n){var r,s;return isNaN(n)&&typeof n=="string"&&(((r=n.match(ku))===null||r===void 0?void 0:r.length)||0)+(((s=n.match($y))===null||s===void 0?void 0:s.length)||0)>0}const Zp="number",Jp="color",Hy="var",Ky="var(",eh="${}",Qy=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ki(n){const r=n.toString(),s=[],a={color:[],number:[],var:[]},u=[];let f=0;const h=r.replace(Qy,g=>(Ze.test(g)?(a.color.push(f),u.push(Jp),s.push(Ze.parse(g))):g.startsWith(Ky)?(a.var.push(f),u.push(Hy),s.push(g)):(a.number.push(f),u.push(Zp),s.push(parseFloat(g))),++f,eh)).split(eh);return{values:s,split:h,indexes:a,types:u}}function em(n){return ki(n).values}function tm(n){const{split:r,types:s}=ki(n),a=r.length;return u=>{let f="";for(let d=0;d<a;d++)if(f+=r[d],u[d]!==void 0){const h=s[d];h===Zp?f+=mi(u[d]):h===Jp?f+=Ze.transform(u[d]):f+=u[d]}return f}}const Gy=n=>typeof n=="number"?0:n;function Yy(n){const r=em(n);return tm(n)(r.map(Gy))}const xn={test:Wy,parse:em,createTransformer:tm,getAnimatableNone:Yy},Xy=new Set(["brightness","contrast","saturate","opacity"]);function qy(n){const[r,s]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[a]=s.match(ku)||[];if(!a)return n;const u=s.replace(a,"");let f=Xy.has(r)?1:0;return a!==s&&(f*=100),r+"("+f+u+")"}const Zy=/\b([a-z-]*)\(.*?\)/gu,Vl={...xn,getAnimatableNone:n=>{const r=n.match(Zy);return r?r.map(qy).join(" "):n}},Jy={...au,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:Vl,WebkitFilter:Vl},Tu=n=>Jy[n];function nm(n,r){let s=Tu(n);return s!==Vl&&(s=xn),s.getAnimatableNone?s.getAnimatableNone(r):void 0}const ex=new Set(["auto","none","0"]);function tx(n,r,s){let a=0,u;for(;a<n.length&&!u;){const f=n[a];typeof f=="string"&&!ex.has(f)&&ki(f).values.length&&(u=n[a]),a++}if(u&&s)for(const f of r)n[f]=nm(s,u)}const th=n=>n===kr||n===ue,nh=(n,r)=>parseFloat(n.split(", ")[r]),rh=(n,r)=>(s,{transform:a})=>{if(a==="none"||!a)return 0;const u=a.match(/^matrix3d\((.+)\)$/u);if(u)return nh(u[1],r);{const f=a.match(/^matrix\((.+)\)$/u);return f?nh(f[1],n):0}},nx=new Set(["x","y","z"]),rx=Sr.filter(n=>!nx.has(n));function ix(n){const r=[];return rx.forEach(s=>{const a=n.getValue(s);a!==void 0&&(r.push([s,a.get()]),a.set(s.startsWith("scale")?1:0))}),r}const wr={width:({x:n},{paddingLeft:r="0",paddingRight:s="0"})=>n.max-n.min-parseFloat(r)-parseFloat(s),height:({y:n},{paddingTop:r="0",paddingBottom:s="0"})=>n.max-n.min-parseFloat(r)-parseFloat(s),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:rh(4,13),y:rh(5,14)};wr.translateX=wr.x;wr.translateY=wr.y;const Fn=new Set;let bl=!1,Fl=!1;function rm(){if(Fl){const n=Array.from(Fn).filter(a=>a.needsMeasurement),r=new Set(n.map(a=>a.element)),s=new Map;r.forEach(a=>{const u=ix(a);u.length&&(s.set(a,u),a.render())}),n.forEach(a=>a.measureInitialState()),r.forEach(a=>{a.render();const u=s.get(a);u&&u.forEach(([f,d])=>{var h;(h=a.getValue(f))===null||h===void 0||h.set(d)})}),n.forEach(a=>a.measureEndState()),n.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Fl=!1,bl=!1,Fn.forEach(n=>n.complete()),Fn.clear()}function im(){Fn.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Fl=!0)})}function sx(){im(),rm()}class Pu{constructor(r,s,a,u,f,d=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...r],this.onComplete=s,this.name=a,this.motionValue=u,this.element=f,this.isAsync=d}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Fn.add(this),bl||(bl=!0,Ne.read(im),Ne.resolveKeyframes(rm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:s,element:a,motionValue:u}=this;for(let f=0;f<r.length;f++)if(r[f]===null)if(f===0){const d=u==null?void 0:u.get(),h=r[r.length-1];if(d!==void 0)r[0]=d;else if(a&&s){const g=a.readValue(s,h);g!=null&&(r[0]=g)}r[0]===void 0&&(r[0]=h),u&&d===void 0&&u.set(r[0])}else r[f]=r[f-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Fn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Fn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sm=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),ox=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ax(n){const r=ox.exec(n);if(!r)return[,];const[,s,a,u]=r;return[`--${s??a}`,u]}function om(n,r,s=1){const[a,u]=ax(n);if(!a)return;const f=window.getComputedStyle(r).getPropertyValue(a);if(f){const d=f.trim();return sm(d)?parseFloat(d):d}return ou(u)?om(u,r,s+1):u}const am=n=>r=>r.test(n),lx={test:n=>n==="auto",parse:n=>n},lm=[kr,ue,bt,vn,qv,Xv,lx],ih=n=>lm.find(am(n));class um extends Pu{constructor(r,s,a,u,f){super(r,s,a,u,f,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:s,name:a}=this;if(!s||!s.current)return;super.readKeyframes();for(let g=0;g<r.length;g++){let m=r[g];if(typeof m=="string"&&(m=m.trim(),ou(m))){const x=om(m,s.current);x!==void 0&&(r[g]=x),g===r.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Op.has(a)||r.length!==2)return;const[u,f]=r,d=ih(u),h=ih(f);if(d!==h)if(th(d)&&th(h))for(let g=0;g<r.length;g++){const m=r[g];typeof m=="string"&&(r[g]=parseFloat(m))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:s}=this,a=[];for(let u=0;u<r.length;u++)Fy(r[u])&&a.push(u);a.length&&tx(r,a,s)}measureInitialState(){const{element:r,unresolvedKeyframes:s,name:a}=this;if(!r||!r.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=wr[a](r.measureViewportBox(),window.getComputedStyle(r.current)),s[0]=this.measuredOrigin;const u=s[s.length-1];u!==void 0&&r.getValue(a,u).jump(u,!1)}measureEndState(){var r;const{element:s,name:a,unresolvedKeyframes:u}=this;if(!s||!s.current)return;const f=s.getValue(a);f&&f.jump(this.measuredOrigin,!1);const d=u.length-1,h=u[d];u[d]=wr[a](s.measureViewportBox(),window.getComputedStyle(s.current)),h!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=h),!((r=this.removedTransforms)===null||r===void 0)&&r.length&&this.removedTransforms.forEach(([g,m])=>{s.getValue(g).set(m)}),this.resolveNoneKeyframes()}}const sh=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(xn.test(n)||n==="0")&&!n.startsWith("url("));function ux(n){const r=n[0];if(n.length===1)return!0;for(let s=0;s<n.length;s++)if(n[s]!==r)return!0}function cx(n,r,s,a){const u=n[0];if(u===null)return!1;if(r==="display"||r==="visibility")return!0;const f=n[n.length-1],d=sh(u,r),h=sh(f,r);return!d||!h?!1:ux(n)||(s==="spring"||pu(s))&&a}const dx=n=>n!==null;function uo(n,{repeat:r,repeatType:s="loop"},a){const u=n.filter(dx),f=r&&s!=="loop"&&r%2===1?0:u.length-1;return!f||a===void 0?u[f]:a}const fx=40;class cm{constructor({autoplay:r=!0,delay:s=0,type:a="keyframes",repeat:u=0,repeatDelay:f=0,repeatType:d="loop",...h}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ft.now(),this.options={autoplay:r,delay:s,type:a,repeat:u,repeatDelay:f,repeatType:d,...h},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>fx?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&sx(),this._resolved}onKeyframesResolved(r,s){this.resolvedAt=Ft.now(),this.hasAttemptedResolve=!0;const{name:a,type:u,velocity:f,delay:d,onComplete:h,onUpdate:g,isGenerator:m}=this.options;if(!m&&!cx(r,a,u,f))if(d)this.options.duration=0;else{g&&g(uo(r,this.options,s)),h&&h(),this.resolveFinishedPromise();return}const x=this.initPlayback(r,s);x!==!1&&(this._resolved={keyframes:r,finalKeyframe:s,...x},this.onPostResolved())}onPostResolved(){}then(r,s){return this.currentFinishedPromise.then(r,s)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(r=>{this.resolveFinishedPromise=r})}}const Le=(n,r,s)=>n+(r-n)*s;function xl(n,r,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?n+(r-n)*6*s:s<1/2?r:s<2/3?n+(r-n)*(2/3-s)*6:n}function hx({hue:n,saturation:r,lightness:s,alpha:a}){n/=360,r/=100,s/=100;let u=0,f=0,d=0;if(!r)u=f=d=s;else{const h=s<.5?s*(1+r):s+r-s*r,g=2*s-h;u=xl(g,h,n+1/3),f=xl(g,h,n),d=xl(g,h,n-1/3)}return{red:Math.round(u*255),green:Math.round(f*255),blue:Math.round(d*255),alpha:a}}function eo(n,r){return s=>s>0?r:n}const wl=(n,r,s)=>{const a=n*n,u=s*(r*r-a)+a;return u<0?0:Math.sqrt(u)},px=[_l,bn,hr],mx=n=>px.find(r=>r.test(n));function oh(n){const r=mx(n);if(!r)return!1;let s=r.parse(n);return r===hr&&(s=hx(s)),s}const ah=(n,r)=>{const s=oh(n),a=oh(r);if(!s||!a)return eo(n,r);const u={...s};return f=>(u.red=wl(s.red,a.red,f),u.green=wl(s.green,a.green,f),u.blue=wl(s.blue,a.blue,f),u.alpha=Le(s.alpha,a.alpha,f),bn.transform(u))},gx=(n,r)=>s=>r(n(s)),Ei=(...n)=>n.reduce(gx),Ol=new Set(["none","hidden"]);function vx(n,r){return Ol.has(n)?s=>s<=0?n:r:s=>s>=1?r:n}function yx(n,r){return s=>Le(n,r,s)}function Eu(n){return typeof n=="number"?yx:typeof n=="string"?ou(n)?eo:Ze.test(n)?ah:Sx:Array.isArray(n)?dm:typeof n=="object"?Ze.test(n)?ah:xx:eo}function dm(n,r){const s=[...n],a=s.length,u=n.map((f,d)=>Eu(f)(f,r[d]));return f=>{for(let d=0;d<a;d++)s[d]=u[d](f);return s}}function xx(n,r){const s={...n,...r},a={};for(const u in s)n[u]!==void 0&&r[u]!==void 0&&(a[u]=Eu(n[u])(n[u],r[u]));return u=>{for(const f in a)s[f]=a[f](u);return s}}function wx(n,r){var s;const a=[],u={color:0,var:0,number:0};for(let f=0;f<r.values.length;f++){const d=r.types[f],h=n.indexes[d][u[d]],g=(s=n.values[h])!==null&&s!==void 0?s:0;a[f]=g,u[d]++}return a}const Sx=(n,r)=>{const s=xn.createTransformer(r),a=ki(n),u=ki(r);return a.indexes.var.length===u.indexes.var.length&&a.indexes.color.length===u.indexes.color.length&&a.indexes.number.length>=u.indexes.number.length?Ol.has(n)&&!u.values.length||Ol.has(r)&&!a.values.length?vx(n,r):Ei(dm(wx(a,u),u.values),s):eo(n,r)};function fm(n,r,s){return typeof n=="number"&&typeof r=="number"&&typeof s=="number"?Le(n,r,s):Eu(n)(n,r)}const kx=5;function hm(n,r,s){const a=Math.max(r-kx,0);return zp(s-n(a),r-a)}const Ie={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Sl=.001;function Cx({duration:n=Ie.duration,bounce:r=Ie.bounce,velocity:s=Ie.velocity,mass:a=Ie.mass}){let u,f,d=1-r;d=Xt(Ie.minDamping,Ie.maxDamping,d),n=Xt(Ie.minDuration,Ie.maxDuration,Yt(n)),d<1?(u=m=>{const x=m*d,y=x*n,S=x-s,A=zl(m,d),L=Math.exp(-y);return Sl-S/A*L},f=m=>{const y=m*d*n,S=y*s+s,A=Math.pow(d,2)*Math.pow(m,2)*n,L=Math.exp(-y),V=zl(Math.pow(m,2),d);return(-u(m)+Sl>0?-1:1)*((S-A)*L)/V}):(u=m=>{const x=Math.exp(-m*n),y=(m-s)*n+1;return-Sl+x*y},f=m=>{const x=Math.exp(-m*n),y=(s-m)*(n*n);return x*y});const h=5/n,g=Px(u,f,h);if(n=Gt(n),isNaN(g))return{stiffness:Ie.stiffness,damping:Ie.damping,duration:n};{const m=Math.pow(g,2)*a;return{stiffness:m,damping:d*2*Math.sqrt(a*m),duration:n}}}const Tx=12;function Px(n,r,s){let a=s;for(let u=1;u<Tx;u++)a=a-n(a)/r(a);return a}function zl(n,r){return n*Math.sqrt(1-r*r)}const Ex=["duration","bounce"],Nx=["stiffness","damping","mass"];function lh(n,r){return r.some(s=>n[s]!==void 0)}function Ax(n){let r={velocity:Ie.velocity,stiffness:Ie.stiffness,damping:Ie.damping,mass:Ie.mass,isResolvedFromDuration:!1,...n};if(!lh(n,Nx)&&lh(n,Ex))if(n.visualDuration){const s=n.visualDuration,a=2*Math.PI/(s*1.2),u=a*a,f=2*Xt(.05,1,1-(n.bounce||0))*Math.sqrt(u);r={...r,mass:Ie.mass,stiffness:u,damping:f}}else{const s=Cx(n);r={...r,...s,mass:Ie.mass},r.isResolvedFromDuration=!0}return r}function pm(n=Ie.visualDuration,r=Ie.bounce){const s=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:a,restDelta:u}=s;const f=s.keyframes[0],d=s.keyframes[s.keyframes.length-1],h={done:!1,value:f},{stiffness:g,damping:m,mass:x,duration:y,velocity:S,isResolvedFromDuration:A}=Ax({...s,velocity:-Yt(s.velocity||0)}),L=S||0,V=m/(2*Math.sqrt(g*x)),_=d-f,z=Yt(Math.sqrt(g/x)),T=Math.abs(_)<5;a||(a=T?Ie.restSpeed.granular:Ie.restSpeed.default),u||(u=T?Ie.restDelta.granular:Ie.restDelta.default);let O;if(V<1){const R=zl(z,V);O=j=>{const B=Math.exp(-V*z*j);return d-B*((L+V*z*_)/R*Math.sin(R*j)+_*Math.cos(R*j))}}else if(V===1)O=R=>d-Math.exp(-z*R)*(_+(L+z*_)*R);else{const R=z*Math.sqrt(V*V-1);O=j=>{const B=Math.exp(-V*z*j),D=Math.min(R*j,300);return d-B*((L+V*z*_)*Math.sinh(D)+R*_*Math.cosh(D))/R}}const E={calculatedDuration:A&&y||null,next:R=>{const j=O(R);if(A)h.done=R>=y;else{let B=0;V<1&&(B=R===0?Gt(L):hm(O,R,j));const D=Math.abs(B)<=a,q=Math.abs(d-j)<=u;h.done=D&&q}return h.value=h.done?d:j,h},toString:()=>{const R=Math.min(Lp(E),Ll),j=Rp(B=>E.next(R*B).value,R,30);return R+"ms "+j}};return E}function uh({keyframes:n,velocity:r=0,power:s=.8,timeConstant:a=325,bounceDamping:u=10,bounceStiffness:f=500,modifyTarget:d,min:h,max:g,restDelta:m=.5,restSpeed:x}){const y=n[0],S={done:!1,value:y},A=D=>h!==void 0&&D<h||g!==void 0&&D>g,L=D=>h===void 0?g:g===void 0||Math.abs(h-D)<Math.abs(g-D)?h:g;let V=s*r;const _=y+V,z=d===void 0?_:d(_);z!==_&&(V=z-y);const T=D=>-V*Math.exp(-D/a),O=D=>z+T(D),E=D=>{const q=T(D),se=O(D);S.done=Math.abs(q)<=m,S.value=S.done?z:se};let R,j;const B=D=>{A(S.value)&&(R=D,j=pm({keyframes:[S.value,L(S.value)],velocity:hm(O,D,S.value),damping:u,stiffness:f,restDelta:m,restSpeed:x}))};return B(0),{calculatedDuration:null,next:D=>{let q=!1;return!j&&R===void 0&&(q=!0,E(D),B(D)),R!==void 0&&D>=R?j.next(D-R):(!q&&E(D),S)}}}const jx=Pi(.42,0,1,1),Mx=Pi(0,0,.58,1),mm=Pi(.42,0,.58,1),Dx=n=>Array.isArray(n)&&typeof n[0]!="number",Lx={linear:ht,easeIn:jx,easeInOut:mm,easeOut:Mx,circIn:Su,circInOut:Yp,circOut:Gp,backIn:wu,backInOut:Kp,backOut:Hp,anticipate:Qp},ch=n=>{if(mu(n)){fp(n.length===4);const[r,s,a,u]=n;return Pi(r,s,a,u)}else if(typeof n=="string")return Lx[n];return n};function Rx(n,r,s){const a=[],u=s||fm,f=n.length-1;for(let d=0;d<f;d++){let h=u(n[d],n[d+1]);if(r){const g=Array.isArray(r)?r[d]||ht:r;h=Ei(g,h)}a.push(h)}return a}function Ix(n,r,{clamp:s=!0,ease:a,mixer:u}={}){const f=n.length;if(fp(f===r.length),f===1)return()=>r[0];if(f===2&&r[0]===r[1])return()=>r[1];const d=n[0]===n[1];n[0]>n[f-1]&&(n=[...n].reverse(),r=[...r].reverse());const h=Rx(r,a,u),g=h.length,m=x=>{if(d&&x<n[0])return r[0];let y=0;if(g>1)for(;y<n.length-2&&!(x<n[y+1]);y++);const S=yr(n[y],n[y+1],x);return h[y](S)};return s?x=>m(Xt(n[0],n[f-1],x)):m}function _x(n,r){const s=n[n.length-1];for(let a=1;a<=r;a++){const u=yr(0,r,a);n.push(Le(s,1,u))}}function Vx(n){const r=[0];return _x(r,n.length-1),r}function bx(n,r){return n.map(s=>s*r)}function Fx(n,r){return n.map(()=>r||mm).splice(0,n.length-1)}function to({duration:n=300,keyframes:r,times:s,ease:a="easeInOut"}){const u=Dx(a)?a.map(ch):ch(a),f={done:!1,value:r[0]},d=bx(s&&s.length===r.length?s:Vx(r),n),h=Ix(d,r,{ease:Array.isArray(u)?u:Fx(r,u)});return{calculatedDuration:n,next:g=>(f.value=h(g),f.done=g>=n,f)}}const Ox=n=>{const r=({timestamp:s})=>n(s);return{start:()=>Ne.update(r,!0),stop:()=>yn(r),now:()=>Qe.isProcessing?Qe.timestamp:Ft.now()}},zx={decay:uh,inertia:uh,tween:to,keyframes:to,spring:pm},Bx=n=>n/100;class Nu extends cm{constructor(r){super(r),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:g}=this.options;g&&g()};const{name:s,motionValue:a,element:u,keyframes:f}=this.options,d=(u==null?void 0:u.KeyframeResolver)||Pu,h=(g,m)=>this.onKeyframesResolved(g,m);this.resolver=new d(f,h,s,a,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(r){const{type:s="keyframes",repeat:a=0,repeatDelay:u=0,repeatType:f,velocity:d=0}=this.options,h=pu(s)?s:zx[s]||to;let g,m;h!==to&&typeof r[0]!="number"&&(g=Ei(Bx,fm(r[0],r[1])),r=[0,100]);const x=h({...this.options,keyframes:r});f==="mirror"&&(m=h({...this.options,keyframes:[...r].reverse(),velocity:-d})),x.calculatedDuration===null&&(x.calculatedDuration=Lp(x));const{calculatedDuration:y}=x,S=y+u,A=S*(a+1)-u;return{generator:x,mirroredGenerator:m,mapPercentToKeyframes:g,calculatedDuration:y,resolvedDuration:S,totalDuration:A}}onPostResolved(){const{autoplay:r=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!r?this.pause():this.state=this.pendingPlayState}tick(r,s=!1){const{resolved:a}=this;if(!a){const{keyframes:D}=this.options;return{done:!0,value:D[D.length-1]}}const{finalKeyframe:u,generator:f,mirroredGenerator:d,mapPercentToKeyframes:h,keyframes:g,calculatedDuration:m,totalDuration:x,resolvedDuration:y}=a;if(this.startTime===null)return f.next(0);const{delay:S,repeat:A,repeatType:L,repeatDelay:V,onUpdate:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-x/this.speed,this.startTime)),s?this.currentTime=r:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(r-this.startTime)*this.speed;const z=this.currentTime-S*(this.speed>=0?1:-1),T=this.speed>=0?z<0:z>x;this.currentTime=Math.max(z,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=x);let O=this.currentTime,E=f;if(A){const D=Math.min(this.currentTime,x)/y;let q=Math.floor(D),se=D%1;!se&&D>=1&&(se=1),se===1&&q--,q=Math.min(q,A+1),!!(q%2)&&(L==="reverse"?(se=1-se,V&&(se-=V/y)):L==="mirror"&&(E=d)),O=Xt(0,1,se)*y}const R=T?{done:!1,value:g[0]}:E.next(O);h&&(R.value=h(R.value));let{done:j}=R;!T&&m!==null&&(j=this.speed>=0?this.currentTime>=x:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return B&&u!==void 0&&(R.value=uo(g,this.options,u)),_&&_(R.value),B&&this.finish(),R}get duration(){const{resolved:r}=this;return r?Yt(r.calculatedDuration):0}get time(){return Yt(this.currentTime)}set time(r){r=Gt(r),this.currentTime=r,this.holdTime!==null||this.speed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.speed)}get speed(){return this.playbackSpeed}set speed(r){const s=this.playbackSpeed!==r;this.playbackSpeed=r,s&&(this.time=Yt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:r=Ox,onPlay:s,startTime:a}=this.options;this.driver||(this.driver=r(f=>this.tick(f))),s&&s();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=a??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var r;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(r=this.currentTime)!==null&&r!==void 0?r:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:r}=this.options;r&&r()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}}const Ux=new Set(["opacity","clipPath","filter","transform"]);function $x(n,r,s,{delay:a=0,duration:u=300,repeat:f=0,repeatType:d="loop",ease:h="easeInOut",times:g}={}){const m={[r]:s};g&&(m.offset=g);const x=_p(h,u);return Array.isArray(x)&&(m.easing=x),n.animate(m,{delay:a,duration:u,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:f+1,direction:d==="reverse"?"alternate":"normal"})}const Wx=Jl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),no=10,Hx=2e4;function Kx(n){return pu(n.type)||n.type==="spring"||!Ip(n.ease)}function Qx(n,r){const s=new Nu({...r,keyframes:n,repeat:0,delay:0,isGenerator:!0});let a={done:!1,value:n[0]};const u=[];let f=0;for(;!a.done&&f<Hx;)a=s.sample(f),u.push(a.value),f+=no;return{times:void 0,keyframes:u,duration:f-no,ease:"linear"}}const gm={anticipate:Qp,backInOut:Kp,circInOut:Yp};function Gx(n){return n in gm}class dh extends cm{constructor(r){super(r);const{name:s,motionValue:a,element:u,keyframes:f}=this.options;this.resolver=new um(f,(d,h)=>this.onKeyframesResolved(d,h),s,a,u),this.resolver.scheduleResolve()}initPlayback(r,s){let{duration:a=300,times:u,ease:f,type:d,motionValue:h,name:g,startTime:m}=this.options;if(!h.owner||!h.owner.current)return!1;if(typeof f=="string"&&Js()&&Gx(f)&&(f=gm[f]),Kx(this.options)){const{onComplete:y,onUpdate:S,motionValue:A,element:L,...V}=this.options,_=Qx(r,V);r=_.keyframes,r.length===1&&(r[1]=r[0]),a=_.duration,u=_.times,f=_.ease,d="keyframes"}const x=$x(h.owner.current,g,r,{...this.options,duration:a,times:u,ease:f});return x.startTime=m??this.calcStartTime(),this.pendingTimeline?(Yf(x,this.pendingTimeline),this.pendingTimeline=void 0):x.onfinish=()=>{const{onComplete:y}=this.options;h.set(uo(r,this.options,s)),y&&y(),this.cancel(),this.resolveFinishedPromise()},{animation:x,duration:a,times:u,type:d,ease:f,keyframes:r}}get duration(){const{resolved:r}=this;if(!r)return 0;const{duration:s}=r;return Yt(s)}get time(){const{resolved:r}=this;if(!r)return 0;const{animation:s}=r;return Yt(s.currentTime||0)}set time(r){const{resolved:s}=this;if(!s)return;const{animation:a}=s;a.currentTime=Gt(r)}get speed(){const{resolved:r}=this;if(!r)return 1;const{animation:s}=r;return s.playbackRate}set speed(r){const{resolved:s}=this;if(!s)return;const{animation:a}=s;a.playbackRate=r}get state(){const{resolved:r}=this;if(!r)return"idle";const{animation:s}=r;return s.playState}get startTime(){const{resolved:r}=this;if(!r)return null;const{animation:s}=r;return s.startTime}attachTimeline(r){if(!this._resolved)this.pendingTimeline=r;else{const{resolved:s}=this;if(!s)return ht;const{animation:a}=s;Yf(a,r)}return ht}play(){if(this.isStopped)return;const{resolved:r}=this;if(!r)return;const{animation:s}=r;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:r}=this;if(!r)return;const{animation:s}=r;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:r}=this;if(!r)return;const{animation:s,keyframes:a,duration:u,type:f,ease:d,times:h}=r;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:m,onUpdate:x,onComplete:y,element:S,...A}=this.options,L=new Nu({...A,keyframes:a,duration:u,type:f,ease:d,times:h,isGenerator:!0}),V=Gt(this.time);m.setWithVelocity(L.sample(V-no).value,L.sample(V).value,no)}const{onStop:g}=this.options;g&&g(),this.cancel()}complete(){const{resolved:r}=this;r&&r.animation.finish()}cancel(){const{resolved:r}=this;r&&r.animation.cancel()}static supports(r){const{motionValue:s,name:a,repeatDelay:u,repeatType:f,damping:d,type:h}=r;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=s.owner.getProps();return Wx()&&a&&Ux.has(a)&&!g&&!m&&!u&&f!=="mirror"&&d!==0&&h!=="inertia"}}const Yx={type:"spring",stiffness:500,damping:25,restSpeed:10},Xx=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),qx={type:"keyframes",duration:.8},Zx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Jx=(n,{keyframes:r})=>r.length>2?qx:On.has(n)?n.startsWith("scale")?Xx(r[1]):Yx:Zx;function e1({when:n,delay:r,delayChildren:s,staggerChildren:a,staggerDirection:u,repeat:f,repeatType:d,repeatDelay:h,from:g,elapsed:m,...x}){return!!Object.keys(x).length}const Au=(n,r,s,a={},u,f)=>d=>{const h=hu(a,n)||{},g=h.delay||a.delay||0;let{elapsed:m=0}=a;m=m-Gt(g);let x={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:r.getVelocity(),...h,delay:-m,onUpdate:S=>{r.set(S),h.onUpdate&&h.onUpdate(S)},onComplete:()=>{d(),h.onComplete&&h.onComplete()},name:n,motionValue:r,element:f?void 0:u};e1(h)||(x={...x,...Jx(n,x)}),x.duration&&(x.duration=Gt(x.duration)),x.repeatDelay&&(x.repeatDelay=Gt(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let y=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(x.duration=0,x.delay===0&&(y=!0)),y&&!f&&r.get()!==void 0){const S=uo(x.keyframes,h);if(S!==void 0)return Ne.update(()=>{x.onUpdate(S),x.onComplete()}),new xy([])}return!f&&dh.supports(x)?new dh(x):new Nu(x)};function t1({protectedKeys:n,needsAnimating:r},s){const a=n.hasOwnProperty(s)&&r[s]!==!0;return r[s]=!1,a}function vm(n,r,{delay:s=0,transitionOverride:a,type:u}={}){var f;let{transition:d=n.getDefaultTransition(),transitionEnd:h,...g}=r;a&&(d=a);const m=[],x=u&&n.animationState&&n.animationState.getState()[u];for(const y in g){const S=n.getValue(y,(f=n.latestValues[y])!==null&&f!==void 0?f:null),A=g[y];if(A===void 0||x&&t1(x,y))continue;const L={delay:s,...hu(d||{},y)};let V=!1;if(window.MotionHandoffAnimation){const z=Bp(n);if(z){const T=window.MotionHandoffAnimation(z,y,Ne);T!==null&&(L.startTime=T,V=!0)}}Il(n,y),S.start(Au(y,S,A,n.shouldReduceMotion&&Op.has(y)?{type:!1}:L,n,V));const _=S.animation;_&&m.push(_)}return h&&Promise.all(m).then(()=>{Ne.update(()=>{h&&Ry(n,h)})}),m}function Bl(n,r,s={}){var a;const u=lo(n,r,s.type==="exit"?(a=n.presenceContext)===null||a===void 0?void 0:a.custom:void 0);let{transition:f=n.getDefaultTransition()||{}}=u||{};s.transitionOverride&&(f=s.transitionOverride);const d=u?()=>Promise.all(vm(n,u,s)):()=>Promise.resolve(),h=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:x=0,staggerChildren:y,staggerDirection:S}=f;return n1(n,r,x+m,y,S,s)}:()=>Promise.resolve(),{when:g}=f;if(g){const[m,x]=g==="beforeChildren"?[d,h]:[h,d];return m().then(()=>x())}else return Promise.all([d(),h(s.delay)])}function n1(n,r,s=0,a=0,u=1,f){const d=[],h=(n.variantChildren.size-1)*a,g=u===1?(m=0)=>m*a:(m=0)=>h-m*a;return Array.from(n.variantChildren).sort(r1).forEach((m,x)=>{m.notify("AnimationStart",r),d.push(Bl(m,r,{...f,delay:s+g(x)}).then(()=>m.notify("AnimationComplete",r)))}),Promise.all(d)}function r1(n,r){return n.sortNodePosition(r)}function i1(n,r,s={}){n.notify("AnimationStart",r);let a;if(Array.isArray(r)){const u=r.map(f=>Bl(n,f,s));a=Promise.all(u)}else if(typeof r=="string")a=Bl(n,r,s);else{const u=typeof r=="function"?lo(n,r,s.custom):r;a=Promise.all(vm(n,u,s))}return a.then(()=>{n.notify("AnimationComplete",r)})}const s1=tu.length;function ym(n){if(!n)return;if(!n.isControllingVariants){const s=n.parent?ym(n.parent)||{}:{};return n.props.initial!==void 0&&(s.initial=n.props.initial),s}const r={};for(let s=0;s<s1;s++){const a=tu[s],u=n.props[a];(xi(u)||u===!1)&&(r[a]=u)}return r}const o1=[...eu].reverse(),a1=eu.length;function l1(n){return r=>Promise.all(r.map(({animation:s,options:a})=>i1(n,s,a)))}function u1(n){let r=l1(n),s=fh(),a=!0;const u=g=>(m,x)=>{var y;const S=lo(n,x,g==="exit"?(y=n.presenceContext)===null||y===void 0?void 0:y.custom:void 0);if(S){const{transition:A,transitionEnd:L,...V}=S;m={...m,...V,...L}}return m};function f(g){r=g(n)}function d(g){const{props:m}=n,x=ym(n.parent)||{},y=[],S=new Set;let A={},L=1/0;for(let _=0;_<a1;_++){const z=o1[_],T=s[z],O=m[z]!==void 0?m[z]:x[z],E=xi(O),R=z===g?T.isActive:null;R===!1&&(L=_);let j=O===x[z]&&O!==m[z]&&E;if(j&&a&&n.manuallyAnimateOnMount&&(j=!1),T.protectedKeys={...A},!T.isActive&&R===null||!O&&!T.prevProp||oo(O)||typeof O=="boolean")continue;const B=c1(T.prevProp,O);let D=B||z===g&&T.isActive&&!j&&E||_>L&&E,q=!1;const se=Array.isArray(O)?O:[O];let re=se.reduce(u(z),{});R===!1&&(re={});const{prevResolvedValues:oe={}}=T,de={...oe,...re},me=Q=>{D=!0,S.has(Q)&&(q=!0,S.delete(Q)),T.needsAnimating[Q]=!0;const H=n.getValue(Q);H&&(H.liveStyle=!1)};for(const Q in de){const H=re[Q],Y=oe[Q];if(A.hasOwnProperty(Q))continue;let G=!1;Dl(H)&&Dl(Y)?G=!Dp(H,Y):G=H!==Y,G?H!=null?me(Q):S.add(Q):H!==void 0&&S.has(Q)?me(Q):T.protectedKeys[Q]=!0}T.prevProp=O,T.prevResolvedValues=re,T.isActive&&(A={...A,...re}),a&&n.blockInitialAnimation&&(D=!1),D&&(!(j&&B)||q)&&y.push(...se.map(Q=>({animation:Q,options:{type:z}})))}if(S.size){const _={};S.forEach(z=>{const T=n.getBaseTarget(z),O=n.getValue(z);O&&(O.liveStyle=!0),_[z]=T??null}),y.push({animation:_})}let V=!!y.length;return a&&(m.initial===!1||m.initial===m.animate)&&!n.manuallyAnimateOnMount&&(V=!1),a=!1,V?r(y):Promise.resolve()}function h(g,m){var x;if(s[g].isActive===m)return Promise.resolve();(x=n.variantChildren)===null||x===void 0||x.forEach(S=>{var A;return(A=S.animationState)===null||A===void 0?void 0:A.setActive(g,m)}),s[g].isActive=m;const y=d(g);for(const S in s)s[S].protectedKeys={};return y}return{animateChanges:d,setActive:h,setAnimateFunction:f,getState:()=>s,reset:()=>{s=fh(),a=!0}}}function c1(n,r){return typeof r=="string"?r!==n:Array.isArray(r)?!Dp(r,n):!1}function In(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fh(){return{animate:In(!0),whileInView:In(),whileHover:In(),whileTap:In(),whileDrag:In(),whileFocus:In(),exit:In()}}class wn{constructor(r){this.isMounted=!1,this.node=r}update(){}}class d1 extends wn{constructor(r){super(r),r.animationState||(r.animationState=u1(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();oo(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:s}=this.node.prevProps||{};r!==s&&this.updateAnimationControlsSubscription()}unmount(){var r;this.node.animationState.reset(),(r=this.unmountControls)===null||r===void 0||r.call(this)}}let f1=0;class h1 extends wn{constructor(){super(...arguments),this.id=f1++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:s}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===a)return;const u=this.node.animationState.setActive("exit",!r);s&&!r&&u.then(()=>s(this.id))}mount(){const{register:r}=this.node.presenceContext||{};r&&(this.unmount=r(this.id))}unmount(){}}const p1={animation:{Feature:d1},exit:{Feature:h1}};function Ci(n,r,s,a={passive:!0}){return n.addEventListener(r,s,a),()=>n.removeEventListener(r,s)}function Ni(n){return{point:{x:n.pageX,y:n.pageY}}}const m1=n=>r=>gu(r)&&n(r,Ni(r));function gi(n,r,s,a){return Ci(n,r,m1(s),a)}const hh=(n,r)=>Math.abs(n-r);function g1(n,r){const s=hh(n.x,r.x),a=hh(n.y,r.y);return Math.sqrt(s**2+a**2)}class xm{constructor(r,s,{transformPagePoint:a,contextWindow:u,dragSnapToOrigin:f=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Cl(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,A=g1(y.offset,{x:0,y:0})>=3;if(!S&&!A)return;const{point:L}=y,{timestamp:V}=Qe;this.history.push({...L,timestamp:V});const{onStart:_,onMove:z}=this.handlers;S||(_&&_(this.lastMoveEvent,y),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,y)},this.handlePointerMove=(y,S)=>{this.lastMoveEvent=y,this.lastMoveEventInfo=kl(S,this.transformPagePoint),Ne.update(this.updatePoint,!0)},this.handlePointerUp=(y,S)=>{this.end();const{onEnd:A,onSessionEnd:L,resumeAnimation:V}=this.handlers;if(this.dragSnapToOrigin&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Cl(y.type==="pointercancel"?this.lastMoveEventInfo:kl(S,this.transformPagePoint),this.history);this.startEvent&&A&&A(y,_),L&&L(y,_)},!gu(r))return;this.dragSnapToOrigin=f,this.handlers=s,this.transformPagePoint=a,this.contextWindow=u||window;const d=Ni(r),h=kl(d,this.transformPagePoint),{point:g}=h,{timestamp:m}=Qe;this.history=[{...g,timestamp:m}];const{onSessionStart:x}=s;x&&x(r,Cl(h,this.history)),this.removeListeners=Ei(gi(this.contextWindow,"pointermove",this.handlePointerMove),gi(this.contextWindow,"pointerup",this.handlePointerUp),gi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),yn(this.updatePoint)}}function kl(n,r){return r?{point:r(n.point)}:n}function ph(n,r){return{x:n.x-r.x,y:n.y-r.y}}function Cl({point:n},r){return{point:n,delta:ph(n,wm(r)),offset:ph(n,v1(r)),velocity:y1(r,.1)}}function v1(n){return n[0]}function wm(n){return n[n.length-1]}function y1(n,r){if(n.length<2)return{x:0,y:0};let s=n.length-1,a=null;const u=wm(n);for(;s>=0&&(a=n[s],!(u.timestamp-a.timestamp>Gt(r)));)s--;if(!a)return{x:0,y:0};const f=Yt(u.timestamp-a.timestamp);if(f===0)return{x:0,y:0};const d={x:(u.x-a.x)/f,y:(u.y-a.y)/f};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}const Sm=1e-4,x1=1-Sm,w1=1+Sm,km=.01,S1=0-km,k1=0+km;function pt(n){return n.max-n.min}function C1(n,r,s){return Math.abs(n-r)<=s}function mh(n,r,s,a=.5){n.origin=a,n.originPoint=Le(r.min,r.max,n.origin),n.scale=pt(s)/pt(r),n.translate=Le(s.min,s.max,n.origin)-n.originPoint,(n.scale>=x1&&n.scale<=w1||isNaN(n.scale))&&(n.scale=1),(n.translate>=S1&&n.translate<=k1||isNaN(n.translate))&&(n.translate=0)}function vi(n,r,s,a){mh(n.x,r.x,s.x,a?a.originX:void 0),mh(n.y,r.y,s.y,a?a.originY:void 0)}function gh(n,r,s){n.min=s.min+r.min,n.max=n.min+pt(r)}function T1(n,r,s){gh(n.x,r.x,s.x),gh(n.y,r.y,s.y)}function vh(n,r,s){n.min=r.min-s.min,n.max=n.min+pt(r)}function yi(n,r,s){vh(n.x,r.x,s.x),vh(n.y,r.y,s.y)}function P1(n,{min:r,max:s},a){return r!==void 0&&n<r?n=a?Le(r,n,a.min):Math.max(n,r):s!==void 0&&n>s&&(n=a?Le(s,n,a.max):Math.min(n,s)),n}function yh(n,r,s){return{min:r!==void 0?n.min+r:void 0,max:s!==void 0?n.max+s-(n.max-n.min):void 0}}function E1(n,{top:r,left:s,bottom:a,right:u}){return{x:yh(n.x,s,u),y:yh(n.y,r,a)}}function xh(n,r){let s=r.min-n.min,a=r.max-n.max;return r.max-r.min<n.max-n.min&&([s,a]=[a,s]),{min:s,max:a}}function N1(n,r){return{x:xh(n.x,r.x),y:xh(n.y,r.y)}}function A1(n,r){let s=.5;const a=pt(n),u=pt(r);return u>a?s=yr(r.min,r.max-a,n.min):a>u&&(s=yr(n.min,n.max-u,r.min)),Xt(0,1,s)}function j1(n,r){const s={};return r.min!==void 0&&(s.min=r.min-n.min),r.max!==void 0&&(s.max=r.max-n.min),s}const Ul=.35;function M1(n=Ul){return n===!1?n=0:n===!0&&(n=Ul),{x:wh(n,"left","right"),y:wh(n,"top","bottom")}}function wh(n,r,s){return{min:Sh(n,r),max:Sh(n,s)}}function Sh(n,r){return typeof n=="number"?n:n[r]||0}const kh=()=>({translate:0,scale:1,origin:0,originPoint:0}),pr=()=>({x:kh(),y:kh()}),Ch=()=>({min:0,max:0}),be=()=>({x:Ch(),y:Ch()});function kt(n){return[n("x"),n("y")]}function Cm({top:n,left:r,right:s,bottom:a}){return{x:{min:r,max:s},y:{min:n,max:a}}}function D1({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function L1(n,r){if(!r)return n;const s=r({x:n.left,y:n.top}),a=r({x:n.right,y:n.bottom});return{top:s.y,left:s.x,bottom:a.y,right:a.x}}function Tl(n){return n===void 0||n===1}function $l({scale:n,scaleX:r,scaleY:s}){return!Tl(n)||!Tl(r)||!Tl(s)}function _n(n){return $l(n)||Tm(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function Tm(n){return Th(n.x)||Th(n.y)}function Th(n){return n&&n!=="0%"}function ro(n,r,s){const a=n-s,u=r*a;return s+u}function Ph(n,r,s,a,u){return u!==void 0&&(n=ro(n,u,a)),ro(n,s,a)+r}function Wl(n,r=0,s=1,a,u){n.min=Ph(n.min,r,s,a,u),n.max=Ph(n.max,r,s,a,u)}function Pm(n,{x:r,y:s}){Wl(n.x,r.translate,r.scale,r.originPoint),Wl(n.y,s.translate,s.scale,s.originPoint)}const Eh=.999999999999,Nh=1.0000000000001;function R1(n,r,s,a=!1){const u=s.length;if(!u)return;r.x=r.y=1;let f,d;for(let h=0;h<u;h++){f=s[h],d=f.projectionDelta;const{visualElement:g}=f.options;g&&g.props.style&&g.props.style.display==="contents"||(a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&gr(n,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),d&&(r.x*=d.x.scale,r.y*=d.y.scale,Pm(n,d)),a&&_n(f.latestValues)&&gr(n,f.latestValues))}r.x<Nh&&r.x>Eh&&(r.x=1),r.y<Nh&&r.y>Eh&&(r.y=1)}function mr(n,r){n.min=n.min+r,n.max=n.max+r}function Ah(n,r,s,a,u=.5){const f=Le(n.min,n.max,u);Wl(n,r,s,f,a)}function gr(n,r){Ah(n.x,r.x,r.scaleX,r.scale,r.originX),Ah(n.y,r.y,r.scaleY,r.scale,r.originY)}function Em(n,r){return Cm(L1(n.getBoundingClientRect(),r))}function I1(n,r,s){const a=Em(n,s),{scroll:u}=r;return u&&(mr(a.x,u.offset.x),mr(a.y,u.offset.y)),a}const Nm=({current:n})=>n?n.ownerDocument.defaultView:null,_1=new WeakMap;class V1{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=be(),this.visualElement=r}start(r,{snapToCursor:s=!1}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const u=x=>{const{dragSnapToOrigin:y}=this.getProps();y?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Ni(x).point)},f=(x,y)=>{const{drag:S,dragPropagation:A,onDragStart:L}=this.getProps();if(S&&!A&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ay(S),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),kt(_=>{let z=this.getAxisMotionValue(_).get()||0;if(bt.test(z)){const{projection:T}=this.visualElement;if(T&&T.layout){const O=T.layout.layoutBox[_];O&&(z=pt(O)*(parseFloat(z)/100))}}this.originPoint[_]=z}),L&&Ne.postRender(()=>L(x,y)),Il(this.visualElement,"transform");const{animationState:V}=this.visualElement;V&&V.setActive("whileDrag",!0)},d=(x,y)=>{const{dragPropagation:S,dragDirectionLock:A,onDirectionLock:L,onDrag:V}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:_}=y;if(A&&this.currentDirection===null){this.currentDirection=b1(_),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",y.point,_),this.updateAxis("y",y.point,_),this.visualElement.render(),V&&V(x,y)},h=(x,y)=>this.stop(x,y),g=()=>kt(x=>{var y;return this.getAnimationState(x)==="paused"&&((y=this.getAxisMotionValue(x).animation)===null||y===void 0?void 0:y.play())}),{dragSnapToOrigin:m}=this.getProps();this.panSession=new xm(r,{onSessionStart:u,onStart:f,onMove:d,onSessionEnd:h,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,contextWindow:Nm(this.visualElement)})}stop(r,s){const a=this.isDragging;if(this.cancel(),!a)return;const{velocity:u}=s;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&Ne.postRender(()=>f(r,s))}cancel(){this.isDragging=!1;const{projection:r,animationState:s}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(r,s,a){const{drag:u}=this.getProps();if(!a||!Ws(r,u,this.currentDirection))return;const f=this.getAxisMotionValue(r);let d=this.originPoint[r]+a[r];this.constraints&&this.constraints[r]&&(d=P1(d,this.constraints[r],this.elastic[r])),f.set(d)}resolveConstraints(){var r;const{dragConstraints:s,dragElastic:a}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)===null||r===void 0?void 0:r.layout,f=this.constraints;s&&fr(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&u?this.constraints=E1(u.layoutBox,s):this.constraints=!1,this.elastic=M1(a),f!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&kt(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=j1(u.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:s}=this.getProps();if(!r||!fr(r))return!1;const a=r.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const f=I1(a,u.root,this.visualElement.getTransformPagePoint());let d=N1(u.layout.layoutBox,f);if(s){const h=s(D1(d));this.hasMutatedConstraints=!!h,h&&(d=Cm(h))}return d}startAnimation(r){const{drag:s,dragMomentum:a,dragElastic:u,dragTransition:f,dragSnapToOrigin:d,onDragTransitionEnd:h}=this.getProps(),g=this.constraints||{},m=kt(x=>{if(!Ws(x,s,this.currentDirection))return;let y=g&&g[x]||{};d&&(y={min:0,max:0});const S=u?200:1e6,A=u?40:1e7,L={type:"inertia",velocity:a?r[x]:0,bounceStiffness:S,bounceDamping:A,timeConstant:750,restDelta:1,restSpeed:10,...f,...y};return this.startAxisValueAnimation(x,L)});return Promise.all(m).then(h)}startAxisValueAnimation(r,s){const a=this.getAxisMotionValue(r);return Il(this.visualElement,r),a.start(Au(r,a,0,s,this.visualElement,!1))}stopAnimation(){kt(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){kt(r=>{var s;return(s=this.getAxisMotionValue(r).animation)===null||s===void 0?void 0:s.pause()})}getAnimationState(r){var s;return(s=this.getAxisMotionValue(r).animation)===null||s===void 0?void 0:s.state}getAxisMotionValue(r){const s=`_drag${r.toUpperCase()}`,a=this.visualElement.getProps(),u=a[s];return u||this.visualElement.getValue(r,(a.initial?a.initial[r]:void 0)||0)}snapToCursor(r){kt(s=>{const{drag:a}=this.getProps();if(!Ws(s,a,this.currentDirection))return;const{projection:u}=this.visualElement,f=this.getAxisMotionValue(s);if(u&&u.layout){const{min:d,max:h}=u.layout.layoutBox[s];f.set(r[s]-Le(d,h,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:s}=this.getProps(),{projection:a}=this.visualElement;if(!fr(s)||!a||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};kt(d=>{const h=this.getAxisMotionValue(d);if(h&&this.constraints!==!1){const g=h.get();u[d]=A1({min:g,max:g},this.constraints[d])}});const{transformTemplate:f}=this.visualElement.getProps();this.visualElement.current.style.transform=f?f({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),kt(d=>{if(!Ws(d,r,null))return;const h=this.getAxisMotionValue(d),{min:g,max:m}=this.constraints[d];h.set(Le(g,m,u[d]))})}addListeners(){if(!this.visualElement.current)return;_1.set(this.visualElement,this);const r=this.visualElement.current,s=gi(r,"pointerdown",g=>{const{drag:m,dragListener:x=!0}=this.getProps();m&&x&&this.start(g)}),a=()=>{const{dragConstraints:g}=this.getProps();fr(g)&&g.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,f=u.addEventListener("measure",a);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Ne.read(a);const d=Ci(window,"resize",()=>this.scalePositionWithinConstraints()),h=u.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:m})=>{this.isDragging&&m&&(kt(x=>{const y=this.getAxisMotionValue(x);y&&(this.originPoint[x]+=g[x].translate,y.set(y.get()+g[x].translate))}),this.visualElement.render())}));return()=>{d(),s(),f(),h&&h()}}getProps(){const r=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:a=!1,dragPropagation:u=!1,dragConstraints:f=!1,dragElastic:d=Ul,dragMomentum:h=!0}=r;return{...r,drag:s,dragDirectionLock:a,dragPropagation:u,dragConstraints:f,dragElastic:d,dragMomentum:h}}}function Ws(n,r,s){return(r===!0||r===n)&&(s===null||s===n)}function b1(n,r=10){let s=null;return Math.abs(n.y)>r?s="y":Math.abs(n.x)>r&&(s="x"),s}class F1 extends wn{constructor(r){super(r),this.removeGroupControls=ht,this.removeListeners=ht,this.controls=new V1(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ht}unmount(){this.removeGroupControls(),this.removeListeners()}}const jh=n=>(r,s)=>{n&&Ne.postRender(()=>n(r,s))};class O1 extends wn{constructor(){super(...arguments),this.removePointerDownListener=ht}onPointerDown(r){this.session=new xm(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nm(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:s,onPan:a,onPanEnd:u}=this.node.getProps();return{onSessionStart:jh(r),onStart:jh(s),onMove:a,onEnd:(f,d)=>{delete this.session,u&&Ne.postRender(()=>u(f,d))}}}mount(){this.removePointerDownListener=gi(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Gs={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mh(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const ci={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(ue.test(n))n=parseFloat(n);else return n;const s=Mh(n,r.target.x),a=Mh(n,r.target.y);return`${s}% ${a}%`}},z1={correct:(n,{treeScale:r,projectionDelta:s})=>{const a=n,u=xn.parse(n);if(u.length>5)return a;const f=xn.createTransformer(n),d=typeof u[0]!="number"?1:0,h=s.x.scale*r.x,g=s.y.scale*r.y;u[0+d]/=h,u[1+d]/=g;const m=Le(h,g,.5);return typeof u[2+d]=="number"&&(u[2+d]/=m),typeof u[3+d]=="number"&&(u[3+d]/=m),f(u)}};class B1 extends b.Component{componentDidMount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:a,layoutId:u}=this.props,{projection:f}=r;ay(U1),f&&(s.group&&s.group.add(f),a&&a.register&&u&&a.register(f),f.root.didUpdate(),f.addEventListener("animationComplete",()=>{this.safeToRemove()}),f.setOptions({...f.options,onExitComplete:()=>this.safeToRemove()})),Gs.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:s,visualElement:a,drag:u,isPresent:f}=this.props,d=a.projection;return d&&(d.isPresent=f,u||r.layoutDependency!==s||s===void 0?d.willUpdate():this.safeToRemove(),r.isPresent!==f&&(f?d.promote():d.relegate()||Ne.postRender(()=>{const h=d.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),ru.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:s,switchLayoutGroup:a}=this.props,{projection:u}=r;u&&(u.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(u),a&&a.deregister&&a.deregister(u))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function Am(n){const[r,s]=up(),a=b.useContext(Yl);return v.jsx(B1,{...n,layoutGroup:a,switchLayoutGroup:b.useContext(yp),isPresent:r,safeToRemove:s})}const U1={borderRadius:{...ci,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ci,borderTopRightRadius:ci,borderBottomLeftRadius:ci,borderBottomRightRadius:ci,boxShadow:z1};function $1(n,r,s){const a=Je(n)?n:Si(n);return a.start(Au("",a,r,s)),a.animation}function W1(n){return n instanceof SVGElement&&n.tagName!=="svg"}const H1=(n,r)=>n.depth-r.depth;class K1{constructor(){this.children=[],this.isDirty=!1}add(r){vu(this.children,r),this.isDirty=!0}remove(r){yu(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(H1),this.isDirty=!1,this.children.forEach(r)}}function Q1(n,r){const s=Ft.now(),a=({timestamp:u})=>{const f=u-s;f>=r&&(yn(a),n(f-r))};return Ne.read(a,!0),()=>yn(a)}const jm=["TopLeft","TopRight","BottomLeft","BottomRight"],G1=jm.length,Dh=n=>typeof n=="string"?parseFloat(n):n,Lh=n=>typeof n=="number"||ue.test(n);function Y1(n,r,s,a,u,f){u?(n.opacity=Le(0,s.opacity!==void 0?s.opacity:1,X1(a)),n.opacityExit=Le(r.opacity!==void 0?r.opacity:1,0,q1(a))):f&&(n.opacity=Le(r.opacity!==void 0?r.opacity:1,s.opacity!==void 0?s.opacity:1,a));for(let d=0;d<G1;d++){const h=`border${jm[d]}Radius`;let g=Rh(r,h),m=Rh(s,h);if(g===void 0&&m===void 0)continue;g||(g=0),m||(m=0),g===0||m===0||Lh(g)===Lh(m)?(n[h]=Math.max(Le(Dh(g),Dh(m),a),0),(bt.test(m)||bt.test(g))&&(n[h]+="%")):n[h]=m}(r.rotate||s.rotate)&&(n.rotate=Le(r.rotate||0,s.rotate||0,a))}function Rh(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const X1=Mm(0,.5,Gp),q1=Mm(.5,.95,ht);function Mm(n,r,s){return a=>a<n?0:a>r?1:s(yr(n,r,a))}function Ih(n,r){n.min=r.min,n.max=r.max}function St(n,r){Ih(n.x,r.x),Ih(n.y,r.y)}function _h(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}function Vh(n,r,s,a,u){return n-=r,n=ro(n,1/s,a),u!==void 0&&(n=ro(n,1/u,a)),n}function Z1(n,r=0,s=1,a=.5,u,f=n,d=n){if(bt.test(r)&&(r=parseFloat(r),r=Le(d.min,d.max,r/100)-d.min),typeof r!="number")return;let h=Le(f.min,f.max,a);n===f&&(h-=r),n.min=Vh(n.min,r,s,h,u),n.max=Vh(n.max,r,s,h,u)}function bh(n,r,[s,a,u],f,d){Z1(n,r[s],r[a],r[u],r.scale,f,d)}const J1=["x","scaleX","originX"],ew=["y","scaleY","originY"];function Fh(n,r,s,a){bh(n.x,r,J1,s?s.x:void 0,a?a.x:void 0),bh(n.y,r,ew,s?s.y:void 0,a?a.y:void 0)}function Oh(n){return n.translate===0&&n.scale===1}function Dm(n){return Oh(n.x)&&Oh(n.y)}function zh(n,r){return n.min===r.min&&n.max===r.max}function tw(n,r){return zh(n.x,r.x)&&zh(n.y,r.y)}function Bh(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function Lm(n,r){return Bh(n.x,r.x)&&Bh(n.y,r.y)}function Uh(n){return pt(n.x)/pt(n.y)}function $h(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}class nw{constructor(){this.members=[]}add(r){vu(this.members,r),r.scheduleRender()}remove(r){if(yu(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(r){const s=this.members.findIndex(u=>r===u);if(s===0)return!1;let a;for(let u=s;u>=0;u--){const f=this.members[u];if(f.isPresent!==!1){a=f;break}}return a?(this.promote(a),!0):!1}promote(r,s){const a=this.lead;if(r!==a&&(this.prevLead=a,this.lead=r,r.show(),a)){a.instance&&a.scheduleRender(),r.scheduleRender(),r.resumeFrom=a,s&&(r.resumeFrom.preserveOpacity=!0),a.snapshot&&(r.snapshot=a.snapshot,r.snapshot.latestValues=a.animationValues||a.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:u}=r.options;u===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:s,resumingFrom:a}=r;s.onExitComplete&&s.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rw(n,r,s){let a="";const u=n.x.translate/r.x,f=n.y.translate/r.y,d=(s==null?void 0:s.z)||0;if((u||f||d)&&(a=`translate3d(${u}px, ${f}px, ${d}px) `),(r.x!==1||r.y!==1)&&(a+=`scale(${1/r.x}, ${1/r.y}) `),s){const{transformPerspective:m,rotate:x,rotateX:y,rotateY:S,skewX:A,skewY:L}=s;m&&(a=`perspective(${m}px) ${a}`),x&&(a+=`rotate(${x}deg) `),y&&(a+=`rotateX(${y}deg) `),S&&(a+=`rotateY(${S}deg) `),A&&(a+=`skewX(${A}deg) `),L&&(a+=`skewY(${L}deg) `)}const h=n.x.scale*r.x,g=n.y.scale*r.y;return(h!==1||g!==1)&&(a+=`scale(${h}, ${g})`),a||"none"}const Vn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},pi=typeof window<"u"&&window.MotionDebug!==void 0,Pl=["","X","Y","Z"],iw={visibility:"hidden"},Wh=1e3;let sw=0;function El(n,r,s,a){const{latestValues:u}=r;u[n]&&(s[n]=u[n],r.setStaticValue(n,0),a&&(a[n]=0))}function Rm(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const s=Bp(r);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:u,layoutId:f}=n.options;window.MotionCancelOptimisedAnimation(s,"transform",Ne,!(u||f))}const{parent:a}=n;a&&!a.hasCheckedOptimisedAppear&&Rm(a)}function Im({attachResizeListener:n,defaultParent:r,measureScroll:s,checkIsScrollRoot:a,resetTransform:u}){return class{constructor(d={},h=r==null?void 0:r()){this.id=sw++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pi&&(Vn.totalNodes=Vn.resolvedTargetDeltas=Vn.recalculatedProjection=0),this.nodes.forEach(lw),this.nodes.forEach(hw),this.nodes.forEach(pw),this.nodes.forEach(uw),pi&&window.MotionDebug.record(Vn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new K1)}addEventListener(d,h){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new xu),this.eventHandlers.get(d).add(h)}notifyListeners(d,...h){const g=this.eventHandlers.get(d);g&&g.notify(...h)}hasListeners(d){return this.eventHandlers.has(d)}mount(d,h=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=W1(d),this.instance=d;const{layoutId:g,layout:m,visualElement:x}=this.options;if(x&&!x.current&&x.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),h&&(m||g)&&(this.isLayoutDirty=!0),n){let y;const S=()=>this.root.updateBlockedByResize=!1;n(d,()=>{this.root.updateBlockedByResize=!0,y&&y(),y=Q1(S,250),Gs.hasAnimatedSinceResize&&(Gs.hasAnimatedSinceResize=!1,this.nodes.forEach(Kh))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&x&&(g||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:S,hasRelativeTargetChanged:A,layout:L})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const V=this.options.transition||x.getDefaultTransition()||xw,{onLayoutAnimationStart:_,onLayoutAnimationComplete:z}=x.getProps(),T=!this.targetLayout||!Lm(this.targetLayout,L)||A,O=!S&&A;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||O||S&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(y,O);const E={...hu(V,"layout"),onPlay:_,onComplete:z};(x.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else S||Kh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=L})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,yn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mw),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const y=this.path[x];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:h,layout:g}=this.options;if(h===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Hh);return}this.isUpdating||this.nodes.forEach(dw),this.isUpdating=!1,this.nodes.forEach(fw),this.nodes.forEach(ow),this.nodes.forEach(aw),this.clearAllSnapshots();const h=Ft.now();Qe.delta=Xt(0,1e3/60,h-Qe.timestamp),Qe.timestamp=h,Qe.isProcessing=!0,gl.update.process(Qe),gl.preRender.process(Qe),gl.render.process(Qe),Qe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ru.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cw),this.sharedNodes.forEach(gw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ne.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ne.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=be(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(h=!1),h){const g=a(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!u)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Dm(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,x=m!==this.prevTransformTemplateValue;d&&(h||_n(this.latestValues)||x)&&(u(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const h=this.measurePageBox();let g=this.removeElementScroll(h);return d&&(g=this.removeTransform(g)),ww(g),{animationId:this.root.animationId,measuredBox:h,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:h}=this.options;if(!h)return be();const g=h.measureViewportBox();if(!(((d=this.scroll)===null||d===void 0?void 0:d.wasRoot)||this.path.some(Sw))){const{scroll:x}=this.root;x&&(mr(g.x,x.offset.x),mr(g.y,x.offset.y))}return g}removeElementScroll(d){var h;const g=be();if(St(g,d),!((h=this.scroll)===null||h===void 0)&&h.wasRoot)return g;for(let m=0;m<this.path.length;m++){const x=this.path[m],{scroll:y,options:S}=x;x!==this.root&&y&&S.layoutScroll&&(y.wasRoot&&St(g,d),mr(g.x,y.offset.x),mr(g.y,y.offset.y))}return g}applyTransform(d,h=!1){const g=be();St(g,d);for(let m=0;m<this.path.length;m++){const x=this.path[m];!h&&x.options.layoutScroll&&x.scroll&&x!==x.root&&gr(g,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),_n(x.latestValues)&&gr(g,x.latestValues)}return _n(this.latestValues)&&gr(g,this.latestValues),g}removeTransform(d){const h=be();St(h,d);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!_n(m.latestValues))continue;$l(m.latestValues)&&m.updateSnapshot();const x=be(),y=m.measurePageBox();St(x,y),Fh(h,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,x)}return _n(this.latestValues)&&Fh(h,this.latestValues),h}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Qe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var h;const g=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=g.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=g.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=g.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==g;if(!(d||m&&this.isSharedProjectionDirty||this.isProjectionDirty||!((h=this.parent)===null||h===void 0)&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:S}=this.options;if(!(!this.layout||!(y||S))){if(this.resolvedRelativeTargetAt=Qe.timestamp,!this.targetDelta&&!this.relativeTarget){const A=this.getClosestProjectingParent();A&&A.layout&&this.animationProgress!==1?(this.relativeParent=A,this.forceRelativeParentToResolveTarget(),this.relativeTarget=be(),this.relativeTargetOrigin=be(),yi(this.relativeTargetOrigin,this.layout.layoutBox,A.layout.layoutBox),St(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=be(),this.targetWithTransforms=be()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),T1(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):St(this.target,this.layout.layoutBox),Pm(this.target,this.targetDelta)):St(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const A=this.getClosestProjectingParent();A&&!!A.resumingFrom==!!this.resumingFrom&&!A.options.layoutScroll&&A.target&&this.animationProgress!==1?(this.relativeParent=A,this.forceRelativeParentToResolveTarget(),this.relativeTarget=be(),this.relativeTargetOrigin=be(),yi(this.relativeTargetOrigin,this.target,A.target),St(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pi&&Vn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$l(this.parent.latestValues)||Tm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var d;const h=this.getLead(),g=!!this.resumingFrom||this!==h;let m=!0;if((this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty)&&(m=!1),g&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Qe.timestamp&&(m=!1),m)return;const{layout:x,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(x||y))return;St(this.layoutCorrected,this.layout.layoutBox);const S=this.treeScale.x,A=this.treeScale.y;R1(this.layoutCorrected,this.treeScale,this.path,g),h.layout&&!h.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(h.target=h.layout.layoutBox,h.targetWithTransforms=be());const{target:L}=h;if(!L){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_h(this.prevProjectionDelta.x,this.projectionDelta.x),_h(this.prevProjectionDelta.y,this.projectionDelta.y)),vi(this.projectionDelta,this.layoutCorrected,L,this.latestValues),(this.treeScale.x!==S||this.treeScale.y!==A||!$h(this.projectionDelta.x,this.prevProjectionDelta.x)||!$h(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",L)),pi&&Vn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var h;if((h=this.options.visualElement)===null||h===void 0||h.scheduleRender(),d){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=pr(),this.projectionDelta=pr(),this.projectionDeltaWithTransform=pr()}setAnimationOrigin(d,h=!1){const g=this.snapshot,m=g?g.latestValues:{},x={...this.latestValues},y=pr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const S=be(),A=g?g.source:void 0,L=this.layout?this.layout.source:void 0,V=A!==L,_=this.getStack(),z=!_||_.members.length<=1,T=!!(V&&!z&&this.options.crossfade===!0&&!this.path.some(yw));this.animationProgress=0;let O;this.mixTargetDelta=E=>{const R=E/1e3;Qh(y.x,d.x,R),Qh(y.y,d.y,R),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yi(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),vw(this.relativeTarget,this.relativeTargetOrigin,S,R),O&&tw(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=be()),St(O,this.relativeTarget)),V&&(this.animationValues=x,Y1(x,m,this.latestValues,R,T,z)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(yn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ne.update(()=>{Gs.hasAnimatedSinceResize=!0,this.currentAnimation=$1(0,Wh,{...d,onUpdate:h=>{this.mixTargetDelta(h),d.onUpdate&&d.onUpdate(h)},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Wh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:h,target:g,layout:m,latestValues:x}=d;if(!(!h||!g||!m)){if(this!==d&&this.layout&&m&&_m(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||be();const y=pt(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+y;const S=pt(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+S}St(h,g),gr(h,x),vi(this.projectionDeltaWithTransform,this.layoutCorrected,h,x)}}registerSharedNode(d,h){this.sharedNodes.has(d)||this.sharedNodes.set(d,new nw),this.sharedNodes.get(d).add(h);const m=h.options.initialPromotionConfig;h.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(h):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var d;const{layoutId:h}=this.options;return h?((d=this.getStack())===null||d===void 0?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:h}=this.options;return h?(d=this.getStack())===null||d===void 0?void 0:d.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:h,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let h=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(h=!0),!h)return;const m={};g.z&&El("z",d,m,this.animationValues);for(let x=0;x<Pl.length;x++)El(`rotate${Pl[x]}`,d,m,this.animationValues),El(`skew${Pl[x]}`,d,m,this.animationValues);d.render();for(const x in m)d.setStaticValue(x,m[x]),this.animationValues&&(this.animationValues[x]=m[x]);d.scheduleRender()}getProjectionStyles(d){var h,g;if(!this.instance||this.isSVG)return;if(!this.isVisible)return iw;const m={visibility:""},x=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,m.opacity="",m.pointerEvents=Ks(d==null?void 0:d.pointerEvents)||"",m.transform=x?x(this.latestValues,""):"none",m;const y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){const V={};return this.options.layoutId&&(V.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,V.pointerEvents=Ks(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!_n(this.latestValues)&&(V.transform=x?x({},""):"none",this.hasProjected=!1),V}const S=y.animationValues||y.latestValues;this.applyTransformsToTarget(),m.transform=rw(this.projectionDeltaWithTransform,this.treeScale,S),x&&(m.transform=x(S,m.transform));const{x:A,y:L}=this.projectionDelta;m.transformOrigin=`${A.origin*100}% ${L.origin*100}% 0`,y.animationValues?m.opacity=y===this?(g=(h=S.opacity)!==null&&h!==void 0?h:this.latestValues.opacity)!==null&&g!==void 0?g:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:m.opacity=y===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const V in Zs){if(S[V]===void 0)continue;const{correct:_,applyTo:z}=Zs[V],T=m.transform==="none"?S[V]:_(S[V],y);if(z){const O=z.length;for(let E=0;E<O;E++)m[z[E]]=T}else m[V]=T}return this.options.layoutId&&(m.pointerEvents=y===this?Ks(d==null?void 0:d.pointerEvents)||"":"none"),m}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var h;return(h=d.currentAnimation)===null||h===void 0?void 0:h.stop()}),this.root.nodes.forEach(Hh),this.root.sharedNodes.clear()}}}function ow(n){n.updateLayout()}function aw(n){var r;const s=((r=n.resumeFrom)===null||r===void 0?void 0:r.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&s&&n.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:u}=n.layout,{animationType:f}=n.options,d=s.source!==n.layout.source;f==="size"?kt(y=>{const S=d?s.measuredBox[y]:s.layoutBox[y],A=pt(S);S.min=a[y].min,S.max=S.min+A}):_m(f,s.layoutBox,a)&&kt(y=>{const S=d?s.measuredBox[y]:s.layoutBox[y],A=pt(a[y]);S.max=S.min+A,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[y].max=n.relativeTarget[y].min+A)});const h=pr();vi(h,a,s.layoutBox);const g=pr();d?vi(g,n.applyTransform(u,!0),s.measuredBox):vi(g,a,s.layoutBox);const m=!Dm(h);let x=!1;if(!n.resumeFrom){const y=n.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:S,layout:A}=y;if(S&&A){const L=be();yi(L,s.layoutBox,S.layoutBox);const V=be();yi(V,a,A.layoutBox),Lm(L,V)||(x=!0),y.options.layoutRoot&&(n.relativeTarget=V,n.relativeTargetOrigin=L,n.relativeParent=y)}}}n.notifyListeners("didUpdate",{layout:a,snapshot:s,delta:g,layoutDelta:h,hasLayoutChanged:m,hasRelativeTargetChanged:x})}else if(n.isLead()){const{onExitComplete:a}=n.options;a&&a()}n.options.transition=void 0}function lw(n){pi&&Vn.totalNodes++,n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function uw(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function cw(n){n.clearSnapshot()}function Hh(n){n.clearMeasurements()}function dw(n){n.isLayoutDirty=!1}function fw(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function Kh(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function hw(n){n.resolveTargetDelta()}function pw(n){n.calcProjection()}function mw(n){n.resetSkewAndRotation()}function gw(n){n.removeLeadSnapshot()}function Qh(n,r,s){n.translate=Le(r.translate,0,s),n.scale=Le(r.scale,1,s),n.origin=r.origin,n.originPoint=r.originPoint}function Gh(n,r,s,a){n.min=Le(r.min,s.min,a),n.max=Le(r.max,s.max,a)}function vw(n,r,s,a){Gh(n.x,r.x,s.x,a),Gh(n.y,r.y,s.y,a)}function yw(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const xw={duration:.45,ease:[.4,0,.1,1]},Yh=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),Xh=Yh("applewebkit/")&&!Yh("chrome/")?Math.round:ht;function qh(n){n.min=Xh(n.min),n.max=Xh(n.max)}function ww(n){qh(n.x),qh(n.y)}function _m(n,r,s){return n==="position"||n==="preserve-aspect"&&!C1(Uh(r),Uh(s),.2)}function Sw(n){var r;return n!==n.root&&((r=n.scroll)===null||r===void 0?void 0:r.wasRoot)}const kw=Im({attachResizeListener:(n,r)=>Ci(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nl={current:void 0},Vm=Im({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!Nl.current){const n=new kw({});n.mount(window),n.setOptions({layoutScroll:!0}),Nl.current=n}return Nl.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),Cw={pan:{Feature:O1},drag:{Feature:F1,ProjectionNode:Vm,MeasureLayout:Am}};function Zh(n,r,s){const{props:a}=n;n.animationState&&a.whileHover&&n.animationState.setActive("whileHover",s==="Start");const u="onHover"+s,f=a[u];f&&Ne.postRender(()=>f(r,Ni(r)))}class Tw extends wn{mount(){const{current:r}=this.node;r&&(this.unmount=Cy(r,s=>(Zh(this.node,s,"Start"),a=>Zh(this.node,a,"End"))))}unmount(){}}class Pw extends wn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ei(Ci(this.node.current,"focus",()=>this.onFocus()),Ci(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Jh(n,r,s){const{props:a}=n;n.animationState&&a.whileTap&&n.animationState.setActive("whileTap",s==="Start");const u="onTap"+(s==="End"?"":s),f=a[u];f&&Ne.postRender(()=>f(r,Ni(r)))}class Ew extends wn{mount(){const{current:r}=this.node;r&&(this.unmount=Ny(r,s=>(Jh(this.node,s,"Start"),(a,{success:u})=>Jh(this.node,a,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Hl=new WeakMap,Al=new WeakMap,Nw=n=>{const r=Hl.get(n.target);r&&r(n)},Aw=n=>{n.forEach(Nw)};function jw({root:n,...r}){const s=n||document;Al.has(s)||Al.set(s,{});const a=Al.get(s),u=JSON.stringify(r);return a[u]||(a[u]=new IntersectionObserver(Aw,{root:n,...r})),a[u]}function Mw(n,r,s){const a=jw(r);return Hl.set(n,s),a.observe(n),()=>{Hl.delete(n),a.unobserve(n)}}const Dw={some:0,all:1};class Lw extends wn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:s,margin:a,amount:u="some",once:f}=r,d={root:s?s.current:void 0,rootMargin:a,threshold:typeof u=="number"?u:Dw[u]},h=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,f&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:x,onViewportLeave:y}=this.node.getProps(),S=m?x:y;S&&S(g)};return Mw(this.node.current,d,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:s}=this.node;["amount","margin","root"].some(Rw(r,s))&&this.startObserver()}unmount(){}}function Rw({viewport:n={}},{viewport:r={}}={}){return s=>n[s]!==r[s]}const Iw={inView:{Feature:Lw},tap:{Feature:Ew},focus:{Feature:Pw},hover:{Feature:Tw}},_w={layout:{ProjectionNode:Vm,MeasureLayout:Am}},Kl={current:null},bm={current:!1};function Vw(){if(bm.current=!0,!!Zl)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>Kl.current=n.matches;n.addListener(r),r()}else Kl.current=!1}const bw=[...lm,Ze,xn],Fw=n=>bw.find(am(n)),ep=new WeakMap;function Ow(n,r,s){for(const a in r){const u=r[a],f=s[a];if(Je(u))n.addValue(a,u);else if(Je(f))n.addValue(a,Si(u,{owner:n}));else if(f!==u)if(n.hasValue(a)){const d=n.getValue(a);d.liveStyle===!0?d.jump(u):d.hasAnimated||d.set(u)}else{const d=n.getStaticValue(a);n.addValue(a,Si(d!==void 0?d:u,{owner:n}))}}for(const a in s)r[a]===void 0&&n.removeValue(a);return r}const tp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class zw{scrapeMotionValuesFromProps(r,s,a){return{}}constructor({parent:r,props:s,presenceContext:a,reducedMotionConfig:u,blockInitialAnimation:f,visualState:d},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Pu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const A=Ft.now();this.renderScheduledAt<A&&(this.renderScheduledAt=A,Ne.render(this.render,!1,!0))};const{latestValues:g,renderState:m,onUpdate:x}=d;this.onUpdate=x,this.latestValues=g,this.baseTarget={...g},this.initialValues=s.initial?{...g}:{},this.renderState=m,this.parent=r,this.props=s,this.presenceContext=a,this.depth=r?r.depth+1:0,this.reducedMotionConfig=u,this.options=h,this.blockInitialAnimation=!!f,this.isControllingVariants=ao(s),this.isVariantNode=gp(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:y,...S}=this.scrapeMotionValuesFromProps(s,{},this);for(const A in S){const L=S[A];g[A]!==void 0&&Je(L)&&L.set(g[A],!1)}}mount(r){this.current=r,ep.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,a)=>this.bindToMotionValue(a,s)),bm.current||Vw(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Kl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ep.delete(this.current),this.projection&&this.projection.unmount(),yn(this.notifyUpdate),yn(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const s=this.features[r];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(r,s){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const a=On.has(r),u=s.on("change",h=>{this.latestValues[r]=h,this.props.onUpdate&&Ne.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0)}),f=s.on("renderRequest",this.scheduleRender);let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,r,s)),this.valueSubscriptions.set(r,()=>{u(),f(),d&&d(),s.owner&&s.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in xr){const s=xr[r];if(!s)continue;const{isEnabled:a,Feature:u}=s;if(!this.features[r]&&u&&a(this.props)&&(this.features[r]=new u(this)),this.features[r]){const f=this.features[r];f.isMounted?f.update():(f.mount(),f.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):be()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,s){this.latestValues[r]=s}update(r,s){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let a=0;a<tp.length;a++){const u=tp[a];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const f="on"+u,d=r[f];d&&(this.propEventSubscriptions[u]=this.on(u,d))}this.prevMotionValues=Ow(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(r),()=>s.variantChildren.delete(r)}addValue(r,s){const a=this.values.get(r);s!==a&&(a&&this.removeValue(r),this.bindToMotionValue(r,s),this.values.set(r,s),this.latestValues[r]=s.get())}removeValue(r){this.values.delete(r);const s=this.valueSubscriptions.get(r);s&&(s(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,s){if(this.props.values&&this.props.values[r])return this.props.values[r];let a=this.values.get(r);return a===void 0&&s!==void 0&&(a=Si(s===null?void 0:s,{owner:this}),this.addValue(r,a)),a}readValue(r,s){var a;let u=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:(a=this.getBaseTargetFromProps(this.props,r))!==null&&a!==void 0?a:this.readValueFromInstance(this.current,r,this.options);return u!=null&&(typeof u=="string"&&(sm(u)||Xp(u))?u=parseFloat(u):!Fw(u)&&xn.test(s)&&(u=nm(r,s)),this.setBaseTarget(r,Je(u)?u.get():u)),Je(u)?u.get():u}setBaseTarget(r,s){this.baseTarget[r]=s}getBaseTarget(r){var s;const{initial:a}=this.props;let u;if(typeof a=="string"||typeof a=="object"){const d=su(this.props,a,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);d&&(u=d[r])}if(a&&u!==void 0)return u;const f=this.getBaseTargetFromProps(this.props,r);return f!==void 0&&!Je(f)?f:this.initialValues[r]!==void 0&&u===void 0?void 0:this.baseTarget[r]}on(r,s){return this.events[r]||(this.events[r]=new xu),this.events[r].add(s)}notify(r,...s){this.events[r]&&this.events[r].notify(...s)}}class Fm extends zw{constructor(){super(...arguments),this.KeyframeResolver=um}sortInstanceNodePosition(r,s){return r.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(r,s){return r.style?r.style[s]:void 0}removeValueFromRenderState(r,{vars:s,style:a}){delete s[r],delete a[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Je(r)&&(this.childSubscription=r.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function Bw(n){return window.getComputedStyle(n)}class Uw extends Fm{constructor(){super(...arguments),this.type="html",this.renderInstance=Pp}readValueFromInstance(r,s){if(On.has(s)){const a=Tu(s);return a&&a.default||0}else{const a=Bw(r),u=(kp(s)?a.getPropertyValue(s):a[s])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(r,{transformPagePoint:s}){return Em(r,s)}build(r,s,a){lu(r,s,a.transformTemplate)}scrapeMotionValuesFromProps(r,s,a){return fu(r,s,a)}}class $w extends Fm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=be}getBaseTargetFromProps(r,s){return r[s]}readValueFromInstance(r,s){if(On.has(s)){const a=Tu(s);return a&&a.default||0}return s=Ep.has(s)?s:nu(s),r.getAttribute(s)}scrapeMotionValuesFromProps(r,s,a){return jp(r,s,a)}build(r,s,a){uu(r,s,this.isSVGTag,a.transformTemplate)}renderInstance(r,s,a,u){Np(r,s,a,u)}mount(r){this.isSVGTag=du(r.tagName),super.mount(r)}}const Ww=(n,r)=>iu(n)?new $w(r):new Uw(r,{allowProjection:n!==b.Fragment}),Hw=gy({...p1,...Iw,...Cw,..._w},Ww),Om=Dv(Hw),Kw={initial:{opacity:0,y:8,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98}},Qw=220,jl={all:"All",messages:"Messages",artifacts:"Artifacts",decisions:"Decisions"},Gw={run_started:ne.teal,run_completed:ne.lime,run_failed:ne.red,artifact_created:ne.cyan,decision_requested:ne.amber,decision_resolved:ne.lime,handoff_requested:ne.iris,handoff_claimed:ne.teal,handoff_fulfilled:ne.lime,blocker_created:ne.red,milestone_completed:ne.cyan,delegation:ne.iris};function np(n){if(!n)return 0;const r=Date.parse(n);return Number.isFinite(r)?r:0}function zm(n){if(!n)return"";const r=[];for(const[s,a]of Object.entries(n))typeof a=="string"&&(s.toLowerCase().includes("type")||s.toLowerCase().includes("kind")||s.toLowerCase().includes("summary")||s.toLowerCase().includes("message")||s.toLowerCase().includes("artifact")||s.toLowerCase().includes("decision")||s.toLowerCase().includes("run")||s.toLowerCase().includes("title")||s.toLowerCase().includes("task")||s.toLowerCase().includes("workstream")||s.toLowerCase().includes("milestone"))&&r.push(a);return r.join(" ")}function rp(n){if(n.runId)return n.runId;const r=n.metadata;if(!r)return null;const s=["runId","run_id","sessionId","session_id","agentRunId"];for(const a of s){const u=r[a];if(typeof u=="string"&&u.trim().length>0)return u.trim()}return null}function ip(n){const r=zm(n.metadata),s=[n.type,n.kind,n.summary,n.title,n.description,r].filter(f=>typeof f=="string"&&f.trim().length>0).join(" ").toLowerCase();return n.type==="artifact_created"||/artifact|output|diff|patch|commit|pr|pull request|deliverable/.test(s)?"artifact":n.type==="decision_requested"||n.type==="decision_resolved"||n.decisionRequired===!0||/decision|approve|approval|reject|review request|request changes/.test(s)?"decision":"message"}function Yw(n){return n.split("_").join(" ")}function Xw(n){const r=new Date(n);if(Number.isNaN(r.getTime()))return"unknown";const s=new Date(r.getFullYear(),r.getMonth(),r.getDate());return String(s.getTime())}function qw(n){const r=Number(n);if(!Number.isFinite(r))return"Unknown day";const s=new Date(r),a=new Date,u=new Date(a.getFullYear(),a.getMonth(),a.getDate()),f=new Date(u);return f.setDate(u.getDate()-1),s.getTime()===u.getTime()?"Today":s.getTime()===f.getTime()?"Yesterday":s.toLocaleDateString(void 0,{month:"short",day:"numeric",year:s.getFullYear()===a.getFullYear()?void 0:"numeric"})}const Zw=b.memo(function({activity:r,sessions:s,selectedRunId:a,onClearSelection:u}){const[f,d]=b.useState("all"),[h,g]=b.useState(!1),[m,x]=b.useState(""),[y,S]=b.useState("newest"),A=b.useMemo(()=>{const T=new Map;for(const O of s)T.set(O.runId,O.title),T.set(O.id,O.title);return T},[s]),{filtered:L,truncatedCount:V}=b.useMemo(()=>{const T=[];let O=0;const E=m.trim().toLowerCase();for(const j of r){const B=rp(j);if(a&&B!==a)continue;const D=ip(j);if(!(f==="messages"&&D!=="message")&&!(f==="artifacts"&&D!=="artifact")&&!(f==="decisions"&&D!=="decision")){if(E.length>0){const q=B?A.get(B)??B:"";if(![j.title,j.description,j.summary,j.agentName,q,zm(j.metadata)].filter(re=>typeof re=="string"&&re.length>0).join(" ").toLowerCase().includes(E))continue}T.length<Qw?T.push(j):O+=1}}return{filtered:[...T].sort((j,B)=>{const D=np(B.timestamp)-np(j.timestamp);return y==="newest"?D:-D}),truncatedCount:O}},[f,r,m,A,a,y]),_=b.useMemo(()=>{const T=new Map;for(const E of L){const R=Xw(E.timestamp),j=T.get(R);j?j.push(E):T.set(R,[E])}return Array.from(T.keys()).sort((E,R)=>{const j=Number(R)-Number(E);return y==="newest"?j:-j}).map(E=>({key:E,label:qw(E),items:T.get(E)??[]}))},[L,y]),z=(T,O)=>{const E=Gw[T.type]??ne.iris,R=y==="newest"&&O<2,j=ip(T),B=rp(T),D=B?A.get(B)??B:"Workspace";return v.jsx(Om.article,{variants:Kw,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.25,ease:[.4,0,.2,1]},layout:!0,className:"rounded-xl border border-white/[0.06] bg-white/[0.02] px-3 py-2.5 transition-colors hover:bg-white/[0.04]",children:v.jsxs("div",{className:"flex items-start gap-2.5",children:[v.jsx("span",{className:Vt("mt-1.5 h-2.5 w-2.5 rounded-full",R&&"pulse-soft"),style:{backgroundColor:E,boxShadow:`0 0 16px ${E}77`}}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsxs("div",{className:"flex items-start justify-between gap-2",children:[v.jsxs("p",{className:"text-[12px] text-white/90",children:[v.jsx("span",{className:"font-semibold text-white",children:T.agentName??"System"})," ",T.title]}),v.jsx("span",{className:"text-[9px] uppercase tracking-[0.1em] text-white/35",children:Yw(T.type)})]}),(T.summary||T.description)&&v.jsx("p",{className:"mt-1 text-[10px] leading-relaxed text-white/55",children:T.summary??T.description}),v.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-1.5 text-[9px]",children:[v.jsx("span",{className:"rounded-full border px-1.5 py-0.5 uppercase tracking-[0.08em]",style:{borderColor:j==="artifact"?`${ne.cyan}66`:j==="decision"?`${ne.amber}66`:`${ne.teal}66`,color:j==="artifact"?ne.cyan:j==="decision"?ne.amber:ne.teal},children:j==="artifact"?"artifact":j==="decision"?"decision":"message"}),v.jsx("span",{className:"rounded-full border border-white/[0.12] px-1.5 py-0.5 text-white/55",children:D}),v.jsx("span",{className:"text-white/35",children:new Date(T.timestamp).toLocaleTimeString([],{hour:"numeric",minute:"2-digit"})}),v.jsx("span",{className:"text-white/35",children:Qt(T.timestamp)})]})]})]})},T.id)};return v.jsxs(vr,{className:"flex min-h-0 flex-col fade-in-up",children:[v.jsxs("div",{className:"border-b border-white/[0.06] px-4 py-3",children:[v.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[v.jsx("h2",{className:"text-[13px] font-semibold text-white",children:"Activity"}),v.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[v.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",style:{backgroundColor:ne.lime}}),v.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full",style:{backgroundColor:ne.lime}})]}),a&&v.jsx("button",{onClick:u,className:"chip text-[10px]",children:"Session filtered"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{onClick:()=>S(T=>T==="newest"?"oldest":"newest"),className:"rounded-md border border-white/[0.1] bg-white/[0.03] px-2 py-1 text-[10px] text-white/60 transition-colors hover:text-white",children:y==="newest"?"Newest first":"Oldest first"}),v.jsx("button",{onClick:()=>g(T=>!T),className:"text-[10px] text-white/55 transition-colors hover:text-white",children:h?"Expand groups":"Collapse groups"})]})]}),v.jsx("div",{className:"mt-2 flex items-center gap-2",children:v.jsxs("div",{className:"relative flex-1",children:[v.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-white/35",children:[v.jsx("circle",{cx:"11",cy:"11",r:"7"}),v.jsx("path",{d:"m20 20-3.5-3.5"})]}),v.jsx("input",{value:m,onChange:T=>x(T.target.value),placeholder:"Search messages, artifacts, decisions, or run labels...",className:"w-full rounded-lg border border-white/[0.1] bg-black/30 py-1.5 pl-7 pr-2 text-[10px] text-white/80 placeholder:text-white/35 focus:outline-none focus:ring-1 focus:ring-white/30"})]})}),v.jsx("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:Object.keys(jl).map(T=>v.jsx("button",{onClick:()=>d(T),className:Vt("rounded-full px-2.5 py-1 text-[10px] font-medium transition-all duration-200",f===T?"border border-lime/25 bg-lime/[0.12] text-lime shadow-[0_0_10px_rgba(191,255,0,0.08)]":"border border-transparent bg-white/[0.03] text-white/50 hover:bg-white/[0.06] hover:text-white/80"),children:jl[T]},T))})]}),v.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-3",children:[L.length===0&&v.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-xl border border-white/[0.06] bg-white/[0.02] px-3 py-6 text-center",children:[v.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white/25",children:v.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})}),v.jsx("p",{className:"text-[11px] text-white/45",children:a?`No ${jl[f].toLowerCase()} for the selected session.`:"No matching activity right now."}),a&&v.jsx("button",{onClick:u,className:"rounded-md border border-white/[0.12] bg-white/[0.04] px-2.5 py-1 text-[10px] text-white/70 transition-colors hover:bg-white/[0.08]",children:"Show all sessions"})]}),L.length>0&&v.jsxs("div",{className:"space-y-4",children:[_.map(T=>{const O=h?T.items.slice(0,4):T.items;return v.jsxs("section",{children:[v.jsx("h3",{className:"mb-2 text-[10px] uppercase tracking-[0.12em] text-white/35",children:T.label}),v.jsx(dp,{mode:"popLayout",children:v.jsx("div",{className:"space-y-2",children:O.map((E,R)=>z(E,R))})}),h&&T.items.length>O.length&&v.jsxs("p",{className:"mt-1.5 text-[10px] text-white/35",children:["+",T.items.length-O.length," more"]})]},T.key)}),V>0&&v.jsxs("p",{className:"rounded-xl border border-white/[0.06] bg-white/[0.02] px-3 py-2 text-[10px] text-white/45",children:["Showing latest ",L.length," events (",V," older events omitted for smooth rendering)."]})]})]})]})});function Jw(n){return n>=15?{border:ne.red,glow:`0 0 16px ${ne.red}20`}:n>=5?{border:ne.amber,glow:`0 0 12px ${ne.amber}18`}:{border:ne.teal,glow:"none"}}const eS=b.memo(function({decisions:r,onApproveDecision:s,onApproveAll:a}){const[u,f]=b.useState(!1),[d,h]=b.useState(new Set),[g,m]=b.useState(new Set),[x,y]=b.useState(null),S=b.useMemo(()=>[...r].sort((E,R)=>{if(E.waitingMinutes!==R.waitingMinutes)return R.waitingMinutes-E.waitingMinutes;const j=Date.parse(E.requestedAt??E.updatedAt??""),B=Date.parse(R.requestedAt??R.updatedAt??""),D=Number.isFinite(j)?j:0;return(Number.isFinite(B)?B:0)-D}),[r]);b.useEffect(()=>{m(E=>{const R=new Set(S.map(B=>B.id)),j=new Set;for(const B of E)R.has(B)&&j.add(B);return j})},[S]);const A=g.size,L=S.length>0&&A===S.length,V=E=>{m(R=>{const j=new Set(R);return j.has(E)?j.delete(E):j.add(E),j})},_=()=>{m(E=>S.length===0?E:E.size===S.length?new Set:new Set(S.map(R=>R.id)))},z=async()=>{if(!(S.length===0||u)){y(null),f(!0);try{const E=await a();E.failed>0?y(`Approved ${E.updated}; ${E.failed} failed.`):E.updated>0?y(`Approved ${E.updated} decision${E.updated===1?"":"s"}.`):y("No decisions were updated."),m(new Set)}catch(E){y(E instanceof Error?E.message:"Bulk approval failed.")}finally{f(!1)}}},T=async()=>{if(A===0||u)return;y(null),f(!0);let E=0,R=0;try{const j=S.map(B=>B.id).filter(B=>g.has(B));for(const B of j){h(D=>new Set(D).add(B));try{const D=await s(B);E+=D.updated,R+=D.failed}catch{R+=1}finally{h(D=>{const q=new Set(D);return q.delete(B),q})}}R>0?y(`Approved ${E}; ${R} failed.`):y(`Approved ${E} selected decision${E===1?"":"s"}.`),m(new Set)}finally{f(!1)}},O=async E=>{if(!(d.has(E)||u)){y(null),h(R=>{const j=new Set(R);return j.add(E),j});try{const R=await s(E);R.failed>0?y(`Approval failed for ${R.failed} decision.`):R.updated>0&&y("Decision approved.")}catch(R){y(R instanceof Error?R.message:"Decision approval failed.")}finally{h(R=>{const j=new Set(R);return j.delete(E),j}),m(R=>{if(!R.has(E))return R;const j=new Set(R);return j.delete(E),j})}}};return v.jsxs(vr,{className:"flex flex-col fade-in-up",children:[v.jsxs("div",{className:"space-y-2 border-b border-white/[0.06] px-4 py-3",children:[v.jsxs("div",{className:"flex items-center justify-between gap-2",children:[v.jsxs("div",{children:[v.jsx("h2",{className:"text-[13px] font-semibold text-white",children:"Decisions"}),v.jsx("p",{className:"text-[10px] text-white/45",children:"Select multiple items to bulk review and approve"})]}),v.jsx("button",{onClick:z,disabled:S.length===0||u,className:"rounded-lg px-2.5 py-1.5 text-[10px] font-semibold transition-colors",style:{backgroundColor:S.length===0||u?"rgba(255,255,255,0.08)":ne.lime,color:S.length===0||u?"rgba(255,255,255,0.45)":"#000"},children:u?"Approving…":`Approve all (${S.length})`})]}),v.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.jsx("button",{onClick:_,disabled:S.length===0||u,className:"rounded-md border border-white/[0.12] bg-white/[0.03] px-2 py-1 text-[10px] text-white/70 transition-colors hover:bg-white/[0.07] disabled:opacity-45",children:L?"Clear all":"Select all"}),v.jsx("button",{onClick:T,disabled:A===0||u,className:"rounded-md border border-lime/25 bg-lime/10 px-2 py-1 text-[10px] font-semibold text-lime transition-colors hover:bg-lime/20 disabled:opacity-45",children:u?"Approving…":`Approve selected (${A})`}),v.jsx("span",{className:"text-[10px] text-white/45",children:A>0?`${A} selected`:"No selection"})]})]}),v.jsxs("div",{className:"max-h-[28vh] space-y-2 overflow-y-auto p-3",children:[S.length===0&&v.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-xl border border-white/[0.06] bg-white/[0.02] p-4 text-center",children:[v.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:"text-white/25",children:[v.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),v.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}),v.jsx("p",{className:"text-[11px] text-white/45",children:"No pending decisions."})]}),v.jsx(dp,{mode:"popLayout",children:S.map(E=>{const R=d.has(E.id),j=Jw(E.waitingMinutes),B=g.has(E.id);return v.jsx(Om.article,{initial:{opacity:0,y:8,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.25,ease:[.4,0,.2,1]},layout:!0,className:"rounded-xl border bg-white/[0.03] px-3 py-2.5 transition-[border-color,box-shadow]",style:{borderColor:B?`${ne.lime}50`:`${j.border}35`,borderLeftWidth:3,borderLeftColor:`${j.border}80`,boxShadow:j.glow},children:v.jsxs("div",{className:"flex items-start gap-2.5",children:[v.jsx("input",{type:"checkbox",checked:B,onChange:()=>V(E.id),disabled:R||u,className:"mt-1 h-3.5 w-3.5 rounded border-white/20 bg-black/40 text-lime focus:ring-lime/40"}),v.jsx("div",{className:"min-w-0 flex-1",children:v.jsxs("div",{className:"flex items-start justify-between gap-3",children:[v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"text-[12px] font-medium text-white",children:E.title}),E.context&&v.jsx("p",{className:"mt-1 line-clamp-2 text-[10px] text-white/55",children:E.context}),v.jsxs("p",{className:"mt-1.5 text-[9px] text-white/40",children:[E.agentName??"System"," · Waiting ",E.waitingMinutes,"m",E.requestedAt?` · ${Qt(E.requestedAt)}`:""]})]}),v.jsx("button",{onClick:()=>O(E.id),disabled:R||u,className:"rounded-md border border-lime/25 bg-lime/10 px-2.5 py-1 text-[10px] font-semibold text-lime transition-colors hover:bg-lime/20 disabled:cursor-not-allowed disabled:border-white/10 disabled:bg-white/[0.08] disabled:text-white/45",children:R?"Approving…":"Approve"})]})})]})},E.id)})})]}),x&&v.jsx("div",{className:"border-t border-white/[0.06] px-4 py-2 text-[10px] text-white/55",children:x})]})});function tS({value:n,onChange:r,placeholder:s}){return v.jsxs("label",{className:"relative block",children:[v.jsx("span",{className:"sr-only",children:s}),v.jsxs("svg",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-white/35",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"11",cy:"11",r:"8"}),v.jsx("path",{d:"m21 21-4.3-4.3"})]}),v.jsx("input",{type:"text",value:n,onChange:a=>r(a.target.value),placeholder:s,className:"w-full rounded-xl border border-white/[0.08] bg-white/[0.03] py-2 pl-9 pr-3 text-[12px] text-white placeholder:text-white/35 transition-all focus:border-white/20 focus:bg-white/[0.05] focus:outline-none"})]})}const nS={xs:"w-6 h-6 text-[9px]",sm:"w-8 h-8 text-[10px]",md:"w-10 h-10 text-[12px]"};function rS({name:n,size:r="xs"}){const s=sv(n);return v.jsx("div",{className:`${nS[r]} rounded-full flex items-center justify-center font-semibold flex-shrink-0`,style:{backgroundColor:`${s}20`,color:s,border:`1px solid ${s}30`},children:ov(n)})}function iS(n,r){if(n.length===0)return 0;if(r>=n.length-1&&n.every(u=>u.status==="completed"))return 100;const s=r/Math.max(1,n.length-1)*100,a=n[r];return a?a.status==="completed"?Math.min(100,s+100/n.length):a.status==="current"||a.status==="warning"?Math.min(100,s+50/n.length):s:s}function sS({phases:n,currentPhase:r,health:s}){const a=iS(n,r);return v.jsxs("div",{className:"space-y-2.5",children:[v.jsxs("div",{className:"flex items-center justify-between text-[9px] uppercase tracking-[0.1em] text-white/38",children:[v.jsx("span",{children:"Momentum"}),v.jsxs("span",{children:[Math.round(s??a),"%"]})]}),v.jsxs("div",{className:"relative",children:[v.jsx("div",{className:"h-2 rounded-full bg-white/[0.08]"}),v.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full",style:{width:`${Math.max(0,Math.min(100,a))}%`,background:`linear-gradient(90deg, ${ne.lime}, ${ne.teal})`,boxShadow:`0 0 18px ${ne.teal}45`}}),n.map((u,f)=>{const d=f/Math.max(1,n.length-1)*100,h=u.status==="completed",g=u.status==="current",m=u.status==="warning";return v.jsx("div",{className:"absolute top-1/2 z-10 -translate-y-1/2",style:{left:`${d}%`,transform:"translate(-50%, -50%)"},children:v.jsx("div",{className:Vt("flex h-4 w-4 items-center justify-center rounded-full border text-[9px] font-semibold",h&&"border-lime/80 bg-lime text-black",g&&"border-lime/60 bg-lime/30 text-lime",m&&"border-amber-300/70 bg-amber-300 text-black",!h&&!g&&!m&&"border-white/20 bg-black/60 text-white/45"),children:h?"✓":m?"!":""})},u.name)})]}),v.jsx("div",{className:"grid gap-1",style:{gridTemplateColumns:`repeat(${Math.max(n.length,1)}, minmax(0, 1fr))`},children:n.map(u=>v.jsx("span",{className:Vt("truncate text-[8px] uppercase tracking-[0.12em]",u.status==="completed"||u.status==="current"?"text-white/60":"text-white/30"),children:u.name},u.name))})]})}function oS({names:n}){return v.jsx("div",{className:"flex -space-x-1.5",children:n.slice(0,3).map((r,s)=>v.jsx("div",{className:"relative",style:{zIndex:n.length-s},children:v.jsx(rS,{name:r,size:"xs"})},`${r}-${s}`))})}function aS(n){return n==="blocked"?{text:"Watch",className:"border-amber-300/45 bg-amber-300/10 text-amber-200"}:n==="completed"?{text:"Done",className:"border-lime/45 bg-lime/15 text-lime"}:n==="paused"?{text:"Paused",className:"border-white/20 bg-white/[0.04] text-white/60"}:{text:"In Motion",className:"border-teal/45 bg-teal/10 text-teal"}}function lS({initiative:n,onClick:r}){var h;const s=n.phases??[],a=n.currentPhase??0,u=n.avatars??[],f=aS(n.status),d=((h=n.workstreams)==null?void 0:h.length)??0;return v.jsxs("button",{onClick:r,className:"w-full rounded-xl border border-white/[0.08] bg-[linear-gradient(150deg,rgba(20,184,166,0.15),rgba(2,4,10,0.7)_42%,rgba(2,4,10,0.95))] p-3 text-left transition-all duration-200 hover:border-white/[0.16] hover:bg-[linear-gradient(150deg,rgba(20,184,166,0.22),rgba(2,4,10,0.72)_42%,rgba(2,4,10,0.95))]",children:[v.jsxs("div",{className:"mb-2 flex items-start justify-between gap-2",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[u.length>0&&v.jsx(oS,{names:u}),v.jsxs("div",{children:[v.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[v.jsx("span",{className:`rounded-full border px-1.5 py-0.5 text-[9px] uppercase tracking-[0.1em] ${f.className}`,children:f.text}),v.jsx("span",{className:"rounded-full border border-white/[0.16] bg-white/[0.03] px-1.5 py-0.5 text-[9px] uppercase tracking-[0.1em] text-white/60",children:n.category??"Program"})]}),v.jsx("h4",{className:"mt-1 text-[13px] font-semibold text-white",children:n.name})]})]}),v.jsxs("span",{className:"text-[10px] text-white/45",children:[n.health,"%"]})]}),n.description&&v.jsx("p",{className:"mb-2 text-[10px] text-white/65",children:n.description}),s.length>0&&v.jsx(sS,{phases:s,currentPhase:a,health:n.health}),v.jsxs("div",{className:"mt-2.5 grid grid-cols-3 gap-1.5 text-[9px] uppercase tracking-[0.08em]",children:[v.jsxs("div",{className:"rounded-md border border-white/[0.1] bg-black/25 px-1.5 py-1",children:[v.jsx("p",{className:"text-white/35",children:"Live Streams"}),v.jsx("p",{className:"text-[10px] font-semibold text-white",children:n.activeAgents})]}),v.jsxs("div",{className:"rounded-md border border-white/[0.1] bg-black/25 px-1.5 py-1",children:[v.jsx("p",{className:"text-white/35",children:"Total Streams"}),v.jsx("p",{className:"text-[10px] font-semibold text-white",children:n.totalAgents})]}),v.jsxs("div",{className:"rounded-md border border-white/[0.1] bg-black/25 px-1.5 py-1",children:[v.jsx("p",{className:"text-white/35",children:"Workstreams"}),v.jsx("p",{className:"text-[10px] font-semibold text-white",children:d})]})]})]})}function uS({initiatives:n,onInitiativeClick:r,onCreateInitiative:s,onCreateWorkstream:a}){const[u,f]=b.useState(""),[d,h]=b.useState(0),[g,m]=b.useState(null),x=3,y=b.useMemo(()=>n.filter(_=>_.name.toLowerCase().includes(u.toLowerCase())),[n,u]),S=Math.max(1,Math.ceil(y.length/x)),A=Math.min(d,Math.max(0,S-1)),L=y.slice(A*x,(A+1)*x),V=async(_,z)=>{if(!(!z||g)){m(_);try{await z()}finally{m(null)}}};return v.jsxs(vr,{className:"flex min-h-0 flex-1 flex-col",children:[v.jsxs("div",{className:"flex-shrink-0 space-y-2 border-b border-white/[0.06] px-4 py-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-[13px] font-semibold text-white",children:"Initiatives"}),v.jsx("span",{className:"text-[10px] text-white/35",children:n.length})]}),v.jsx(tS,{value:u,onChange:_=>{f(_),h(0)},placeholder:"Search initiatives..."}),v.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[v.jsx("button",{onClick:()=>V("initiative",s),disabled:!s||g!==null,className:"rounded-md border border-lime/25 bg-lime/10 px-2 py-1 text-[10px] font-semibold text-lime transition-colors hover:bg-lime/20 disabled:opacity-45",children:g==="initiative"?"Creating…":"Start initiative"}),v.jsx("button",{onClick:()=>V("workstream",a),disabled:!a||g!==null,className:"rounded-md border border-white/[0.12] bg-white/[0.03] px-2 py-1 text-[10px] text-white/75 transition-colors hover:bg-white/[0.08] disabled:opacity-45",children:g==="workstream"?"Creating…":"Start workstream"})]})]}),v.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto p-3",children:[L.length===0&&v.jsx("div",{className:"rounded-xl border border-white/[0.06] bg-white/[0.02] p-3 text-center",children:v.jsx("p",{className:"text-[11px] text-white/45",children:n.length===0?"No active initiatives yet.":"No initiatives match this search."})}),L.map(_=>v.jsx(lS,{initiative:_,onClick:()=>r(_)},_.id))]}),S>1&&v.jsx("div",{className:"flex-shrink-0 border-t border-white/[0.06] px-4 py-2",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("button",{onClick:()=>h(Math.max(0,A-1)),disabled:A===0,className:"rounded p-1 text-white/45 transition-colors hover:text-white disabled:opacity-30",children:v.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:v.jsx("path",{d:"m15 18-6-6 6-6"})})}),v.jsxs("span",{className:"text-[10px] text-white/45",children:[A+1," / ",S]}),v.jsx("button",{onClick:()=>h(Math.min(S-1,A+1)),disabled:A>=S-1,className:"rounded p-1 text-white/45 transition-colors hover:text-white disabled:opacity-30",children:v.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:v.jsx("path",{d:"m9 18 6-6-6-6"})})})]})})]})}const cS={connected:"Live",reconnecting:"Reconnecting",disconnected:"Offline"},dS={connected:ne.lime,reconnecting:ne.amber,disconnected:ne.red},sp={blocked:0,pending:1,queued:2,running:3,failed:4,cancelled:5,completed:6,archived:7};function Ql(n){if(!n)return 0;const r=Date.parse(n);return Number.isFinite(r)?r:0}function op(n,r){const s=sp[n.status]??99,a=sp[r.status]??99;return s!==a?s-a:Ql(n.updatedAt??n.lastEventAt??n.startedAt)-Ql(r.updatedAt??r.lastEventAt??r.startedAt)}function fS(n){const r=n.toLowerCase();return/market|email|campaign|content|brand/.test(r)?"Marketing":/product|feature|ux|discovery/.test(r)?"Product":/engineer|infra|platform|api|backend|frontend|dev/.test(r)?"Engineering":"Program"}function hS(n){return n==="Marketing"?["Brief","Draft","Review","Ship"]:n==="Engineering"?["Spec","Dev","QA","Deploy"]:n==="Product"?["Brief","Define","Build","Ship"]:["Plan","Build","Review","Ship"]}function di({label:n,value:r,accent:s}){return v.jsxs("div",{className:"rounded-xl border border-white/[0.08] bg-white/[0.03] px-3 py-2",style:s?{borderTopColor:`${s}50`,borderTopWidth:2}:void 0,children:[v.jsx("p",{className:"text-[9px] uppercase tracking-[0.12em] text-white/40",children:n}),v.jsx("p",{className:"mt-0.5 text-[12px] font-semibold",style:{color:s??"#fff"},children:r})]})}function pS(){return v.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("rect",{width:"32",height:"32",rx:"8",fill:ne.lime,fillOpacity:"0.12"}),v.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"7.5",stroke:ne.lime,strokeOpacity:"0.3"}),v.jsx("path",{d:"M10 16C10 12.686 12.686 10 16 10C19.314 10 22 12.686 22 16C22 19.314 19.314 22 16 22C12.686 22 10 19.314 10 16Z",stroke:ne.lime,strokeWidth:"1.8"}),v.jsx("path",{d:"M12.5 12.5L19.5 19.5M19.5 12.5L12.5 19.5",stroke:ne.lime,strokeWidth:"1.8",strokeLinecap:"round"})]})}function mS(){const{data:n,isLoading:r,error:s,refetch:a,approveDecision:u,approveAllDecisions:f}=rv({useMock:!1}),[d,h]=b.useState(null),[g,m]=b.useState(null),x=b.useCallback(()=>{h(null)},[]);b.useEffect(()=>{var D;const j=((D=n.sessions.nodes[0])==null?void 0:D.id)??null;if(!j){d!==null&&h(null);return}if(d===null){h(j);return}n.sessions.nodes.some(q=>q.id===d)||h(j)},[n.sessions.nodes,d]),b.useEffect(()=>{if(!g)return;const j=setTimeout(()=>m(null),5e3);return()=>clearTimeout(j)},[g]);const y=b.useMemo(()=>n.sessions.nodes.find(j=>j.id===d)??null,[n.sessions.nodes,d]),S=b.useMemo(()=>n.sessions.nodes.filter(j=>["running","queued","pending"].includes(j.status)).length,[n.sessions.nodes]),A=b.useMemo(()=>n.sessions.nodes.filter(j=>j.status==="blocked"||j.blockers.length>0).length,[n.sessions.nodes]),L=b.useMemo(()=>{const j=new Map;for(const D of n.sessions.nodes){const q=D.initiativeId??D.groupId??"unscoped",se=D.groupLabel&&D.groupLabel.trim().length>0?D.groupLabel:D.initiativeId??"Unscoped Initiative",re=fS(se),oe=j.get(q)??{id:q,name:se,category:re,progressTotal:0,progressCount:0,statusCounts:{},activeAgents:new Set,allAgents:new Set,workstreams:new Map,latestEpoch:0};D.progress!==null&&(oe.progressTotal+=D.progress,oe.progressCount+=1),oe.statusCounts[D.status]=(oe.statusCounts[D.status]??0)+1,D.agentName&&(oe.allAgents.add(D.agentName),["running","queued","pending","blocked"].includes(D.status)&&oe.activeAgents.add(D.agentName)),D.workstreamId&&oe.workstreams.set(D.workstreamId,D.workstreamId),oe.latestEpoch=Math.max(oe.latestEpoch,Ql(D.updatedAt??D.lastEventAt??D.startedAt)),j.set(q,oe)}const B=[];for(const D of j.values()){const q=D.progressCount>0?Math.round(D.progressTotal/D.progressCount):D.statusCounts.completed?100:D.statusCounts.running?55:0,se=D.category,re=hS(se),oe=Math.round(Math.max(0,Math.min(100,q))/100*(re.length-1)),de=(D.statusCounts.blocked??0)>0,me=(D.statusCounts.completed??0)>0&&(D.statusCounts.running??0)===0&&(D.statusCounts.queued??0)===0&&(D.statusCounts.pending??0)===0&&(D.statusCounts.blocked??0)===0,ke=re.map((J,Q)=>{let H="upcoming";return(me||Q<oe)&&(H="completed"),Q===oe&&!me&&(H=de?"warning":"current"),{name:J,status:H}});B.push({id:D.id,name:D.name,status:me?"completed":de?"blocked":"active",category:se,health:Math.max(0,Math.min(100,q)),phases:ke,currentPhase:me?re.length-1:oe,daysRemaining:0,activeAgents:D.activeAgents.size,totalAgents:D.allAgents.size,avatars:Array.from(D.activeAgents).slice(0,3),description:`${D.workstreams.size} workstreams are active right now.`,workstreams:Array.from(D.workstreams.entries()).map(([J,Q])=>({id:J,name:Q,status:"active"}))})}return B.sort((D,q)=>{const se=D.status==="blocked"?0:D.status==="active"?1:2,re=q.status==="blocked"?0:q.status==="active"?1:2;return se!==re?se-re:q.health-D.health})},[n.sessions.nodes]),V=b.useCallback(async()=>{if(n.sessions.nodes.length===0){m("No sessions available to continue.");return}const j=[...n.sessions.nodes].sort(op)[0];if(h(j.id),["blocked","pending","queued"].includes(j.status))try{await fetch(`/orgx/api/runs/${encodeURIComponent(j.runId)}/actions/resume`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:"continue_from_dashboard"})})}catch{}m(`Focused highest priority session: ${j.title}`),await a()},[n.sessions.nodes,a]),_=b.useCallback(async j=>{if(h(j.id),!["running","completed","archived"].includes(j.status))try{await fetch(`/orgx/api/runs/${encodeURIComponent(j.runId)}/actions/resume`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:"dispatch_from_dashboard"})})}catch{}m(`Dispatch requested: ${j.title}`),await a()},[a]),z=b.useCallback(async(j,B)=>{var re;const D=window.prompt(j==="initiative"?"Name the new initiative":"Name the new workstream");if(!D||D.trim().length===0)return;const q={type:j,title:D.trim(),status:"active"};if(j==="workstream"){const oe=B??(y==null?void 0:y.initiativeId)??((re=L[0])==null?void 0:re.id)??null;if(!oe){m("Select an initiative first to start a workstream.");return}q.initiative_id=oe,q.parentId=oe}const se=await fetch("/orgx/api/entities",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(q)});if(!se.ok){const oe=await se.json().catch(()=>null);throw new Error((oe==null?void 0:oe.error)??`Failed to create ${j}.`)}m(`Created ${j}: ${D.trim()}`),await a()},[L,a,y==null?void 0:y.initiativeId]),T=b.useCallback(async()=>{try{await z("initiative")}catch(j){m(j instanceof Error?j.message:"Failed to create initiative.")}},[z]),O=b.useCallback(async j=>{try{await z("workstream",j)}catch(B){m(B instanceof Error?B.message:"Failed to create workstream.")}},[z]),E=b.useCallback(()=>{var j;return O((y==null?void 0:y.initiativeId)??((j=L[0])==null?void 0:j.id)??null)},[L,y==null?void 0:y.initiativeId,O]),R=b.useCallback(j=>{const B=[...n.sessions.nodes].filter(D=>(D.initiativeId??D.groupId)===j.id).sort(op)[0];B&&(h(B.id),m(`Focused initiative: ${j.name}`))},[n.sessions.nodes]);return r?v.jsx("div",{className:"flex min-h-screen items-center justify-center",style:{backgroundColor:ne.background},children:v.jsx("div",{className:"rounded-2xl border border-white/[0.08] bg-white/[0.03] px-5 py-4 text-sm text-white/65",children:"Loading live workspace..."})}):v.jsxs("div",{className:"relative flex min-h-screen flex-col",style:{backgroundColor:ne.background},children:[typeof window<"u"&&window.location.port==="5173"&&v.jsx("div",{className:"absolute left-1/2 top-4 z-30 -translate-x-1/2",children:v.jsxs("div",{className:"rounded-full border border-white/[0.12] bg-white/[0.06] px-4 py-2 text-[11px] text-white/80 shadow-[0_10px_30px_rgba(0,0,0,0.35)] backdrop-blur",children:["Dev preview on 5173. Installed plugin runs on OpenClaw port"," ",v.jsx("a",{href:"http://127.0.0.1:18789/orgx/live/",className:"text-white underline underline-offset-4 hover:text-white/60",children:"18789"}),"."]})}),v.jsxs("div",{className:"pointer-events-none absolute inset-0",children:[v.jsx("div",{className:"ambient-orb orb-lime",style:{width:460,height:460,top:-180,left:-120}}),v.jsx("div",{className:"ambient-orb orb-teal",style:{width:520,height:520,top:-220,right:-180,animationDelay:"2s"}}),v.jsx("div",{className:"ambient-orb orb-iris",style:{width:420,height:420,bottom:-180,left:"30%",animationDelay:"4s"}}),v.jsx("div",{className:"grain-overlay absolute inset-0"})]}),v.jsxs("header",{className:"relative z-10 border-b border-white/[0.06] px-4 py-3 sm:px-6",children:[v.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[v.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[v.jsx(pS,{}),v.jsxs("h1",{className:"text-[18px] font-semibold tracking-tight text-white",children:["OrgX",v.jsx("span",{className:"ml-1.5 text-white/50",children:"Live"})]}),v.jsx(av,{color:dS[n.connection],children:cS[n.connection]??"Unknown"})]}),v.jsxs("div",{className:"flex items-center gap-2.5",children:[n.lastActivity&&v.jsxs("span",{className:"hidden text-[11px] text-white/45 sm:inline",children:["Last activity: ",n.lastActivity]}),v.jsx("a",{href:"https://mcp.useorgx.com",target:"_blank",rel:"noopener noreferrer",className:"hidden rounded-lg border border-white/[0.1] bg-white/[0.03] px-2.5 py-1.5 text-[11px] text-white/55 transition-colors hover:bg-white/[0.07] hover:text-white/80 sm:inline-flex",children:"Docs"}),v.jsxs("button",{onClick:a,className:"group flex items-center gap-1.5 rounded-lg border border-white/[0.1] bg-white/[0.03] px-2.5 py-1.5 text-[11px] text-white/80 transition-colors hover:bg-white/[0.07]",title:"Refresh data",children:[v.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"transition-transform group-hover:rotate-45",children:[v.jsx("path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}),v.jsx("path",{d:"M21 3v5h-5"})]}),"Refresh"]})]})]}),v.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 sm:grid-cols-5",children:[v.jsx(di,{label:"Sessions",value:n.sessions.nodes.length,accent:ne.teal}),v.jsx(di,{label:"Active",value:S,accent:S>0?ne.lime:void 0}),v.jsx(di,{label:"Blocked",value:A,accent:A>0?ne.red:void 0}),v.jsx(di,{label:"Pending Decisions",value:n.decisions.length,accent:n.decisions.length>0?ne.amber:void 0}),v.jsx(di,{label:"Open Handoffs",value:n.handoffs.length,accent:n.handoffs.length>0?ne.iris:void 0})]}),g&&v.jsx("div",{className:"mt-2 rounded-lg border border-white/[0.08] bg-white/[0.04] px-3 py-2 text-[11px] text-white/75",children:g}),s&&v.jsxs("div",{className:"mt-2 rounded-lg border border-red-500/35 bg-red-500/10 px-3 py-2 text-[11px] text-red-200",children:["Live stream degraded: ",s]})]}),v.jsxs("main",{className:"relative z-10 grid min-h-0 flex-1 grid-cols-1 gap-3 p-3 sm:gap-4 sm:p-4 lg:grid-cols-12",children:[v.jsx("section",{className:"min-h-0 lg:col-span-3",children:v.jsx(vv,{sessions:n.sessions,activity:n.activity,selectedSessionId:d,onSelectSession:h})}),v.jsx("section",{className:"min-h-0 lg:col-span-6",children:v.jsx(Zw,{activity:n.activity,sessions:n.sessions.nodes,selectedRunId:(y==null?void 0:y.runId)??null,onClearSelection:x})}),v.jsxs("section",{className:"flex min-h-0 flex-col gap-3 lg:col-span-3",children:[v.jsx(eS,{decisions:n.decisions,onApproveDecision:u,onApproveAll:f}),v.jsx(xv,{session:y,activity:n.activity,onContinueHighestPriority:V,onDispatchSession:_,onStartInitiative:T,onStartWorkstream:O}),v.jsx(uS,{initiatives:L,onInitiativeClick:R,onCreateInitiative:T,onCreateWorkstream:E})]})]})]})}H0.createRoot(document.getElementById("root")).render(v.jsx(b.StrictMode,{children:v.jsx(mS,{})}));