@rigour-labs/cli 4.3.6 → 5.0.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,301 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function bv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ff={exports:{}},Yi={},If={exports:{}},B={};/**
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 js=Symbol.for("react.element"),Wv=Symbol.for("react.portal"),Hv=Symbol.for("react.fragment"),Kv=Symbol.for("react.strict_mode"),Gv=Symbol.for("react.profiler"),Qv=Symbol.for("react.provider"),qv=Symbol.for("react.context"),Yv=Symbol.for("react.forward_ref"),Xv=Symbol.for("react.suspense"),Zv=Symbol.for("react.memo"),Jv=Symbol.for("react.lazy"),nc=Symbol.iterator;function eg(e){return e===null||typeof e!="object"?null:(e=nc&&e[nc]||e["@@iterator"],typeof e=="function"?e:null)}var Bf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$f=Object.assign,Uf={};function dr(e,t,n){this.props=e,this.context=t,this.refs=Uf,this.updater=n||Bf}dr.prototype.isReactComponent={};dr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};dr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bf(){}bf.prototype=dr.prototype;function Nl(e,t,n){this.props=e,this.context=t,this.refs=Uf,this.updater=n||Bf}var Cl=Nl.prototype=new bf;Cl.constructor=Nl;$f(Cl,dr.prototype);Cl.isPureReactComponent=!0;var rc=Array.isArray,Wf=Object.prototype.hasOwnProperty,Tl={current:null},Hf={key:!0,ref:!0,__self:!0,__source:!0};function Kf(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Wf.call(t,r)&&!Hf.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:js,type:e,key:i,ref:o,props:s,_owner:Tl.current}}function tg(e,t){return{$$typeof:js,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Pl(e){return typeof e=="object"&&e!==null&&e.$$typeof===js}function ng(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var sc=/\/+/g;function wo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ng(""+e.key):t.toString(36)}function ni(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case js:case Wv:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+wo(o,0):r,rc(s)?(n="",e!=null&&(n=e.replace(sc,"$&/")+"/"),ni(s,t,n,"",function(c){return c})):s!=null&&(Pl(s)&&(s=tg(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(sc,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",rc(e))for(var l=0;l<e.length;l++){i=e[l];var u=r+wo(i,l);o+=ni(i,t,n,u,s)}else if(u=eg(e),typeof u=="function")for(e=u.call(e),l=0;!(i=e.next()).done;)i=i.value,u=r+wo(i,l++),o+=ni(i,t,n,u,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ds(e,t,n){if(e==null)return e;var r=[],s=0;return ni(e,r,"","",function(i){return t.call(n,i,s++)}),r}function rg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Te={current:null},ri={transition:null},sg={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:ri,ReactCurrentOwner:Tl};function Gf(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:Ds,forEach:function(e,t,n){Ds(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ds(e,function(){t++}),t},toArray:function(e){return Ds(e,function(t){return t})||[]},only:function(e){if(!Pl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=dr;B.Fragment=Hv;B.Profiler=Gv;B.PureComponent=Nl;B.StrictMode=Kv;B.Suspense=Xv;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sg;B.act=Gf;B.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=$f({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Tl.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Wf.call(t,u)&&!Hf.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:js,type:e.type,key:s,ref:i,props:r,_owner:o}};B.createContext=function(e){return e={$$typeof:qv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Qv,_context:e},e.Consumer=e};B.createElement=Kf;B.createFactory=function(e){var t=Kf.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:Yv,render:e}};B.isValidElement=Pl;B.lazy=function(e){return{$$typeof:Jv,_payload:{_status:-1,_result:e},_init:rg}};B.memo=function(e,t){return{$$typeof:Zv,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=ri.transition;ri.transition={};try{e()}finally{ri.transition=t}};B.unstable_act=Gf;B.useCallback=function(e,t){return Te.current.useCallback(e,t)};B.useContext=function(e){return Te.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Te.current.useDeferredValue(e)};B.useEffect=function(e,t){return Te.current.useEffect(e,t)};B.useId=function(){return Te.current.useId()};B.useImperativeHandle=function(e,t,n){return Te.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Te.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Te.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Te.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Te.current.useReducer(e,t,n)};B.useRef=function(e){return Te.current.useRef(e)};B.useState=function(e){return Te.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Te.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Te.current.useTransition()};B.version="18.3.1";If.exports=B;var k=If.exports;const ze=bv(k);/**
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 ig=k,og=Symbol.for("react.element"),ag=Symbol.for("react.fragment"),lg=Object.prototype.hasOwnProperty,ug=ig.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cg={key:!0,ref:!0,__self:!0,__source:!0};function Qf(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)lg.call(t,r)&&!cg.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:og,type:e,key:i,ref:o,props:s,_owner:ug.current}}Yi.Fragment=ag;Yi.jsx=Qf;Yi.jsxs=Qf;Ff.exports=Yi;var a=Ff.exports,ha={},qf={exports:{}},Ue={},Yf={exports:{}},Xf={};/**
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
+ */(function(e){function t(T,A){var R=T.length;T.push(A);e:for(;0<R;){var L=R-1>>>1,z=T[L];if(0<s(z,A))T[L]=A,T[R]=z,R=L;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var A=T[0],R=T.pop();if(R!==A){T[0]=R;e:for(var L=0,z=T.length,ae=z>>>1;L<ae;){var X=2*(L+1)-1,ot=T[X],rn=X+1,As=T[rn];if(0>s(ot,R))rn<z&&0>s(As,ot)?(T[L]=As,T[rn]=R,L=rn):(T[L]=ot,T[X]=R,L=X);else if(rn<z&&0>s(As,R))T[L]=As,T[rn]=R,L=rn;else break e}}return A}function s(T,A){var R=T.sortIndex-A.sortIndex;return R!==0?R:T.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],c=[],d=1,h=null,f=3,g=!1,j=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(T){for(var A=n(c);A!==null;){if(A.callback===null)r(c);else if(A.startTime<=T)r(c),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(c)}}function w(T){if(y=!1,v(T),!j)if(n(u)!==null)j=!0,b(x);else{var A=n(c);A!==null&&W(w,A.startTime-T)}}function x(T,A){j=!1,y&&(y=!1,m(P),P=-1),g=!0;var R=f;try{for(v(A),h=n(u);h!==null&&(!(h.expirationTime>A)||T&&!$());){var L=h.callback;if(typeof L=="function"){h.callback=null,f=h.priorityLevel;var z=L(h.expirationTime<=A);A=e.unstable_now(),typeof z=="function"?h.callback=z:h===n(u)&&r(u),v(A)}else r(u);h=n(u)}if(h!==null)var ae=!0;else{var X=n(c);X!==null&&W(w,X.startTime-A),ae=!1}return ae}finally{h=null,f=R,g=!1}}var S=!1,N=null,P=-1,_=5,M=-1;function $(){return!(e.unstable_now()-M<_)}function I(){if(N!==null){var T=e.unstable_now();M=T;var A=!0;try{A=N(!0,T)}finally{A?de():(S=!1,N=null)}}else S=!1}var de;if(typeof p=="function")de=function(){p(I)};else if(typeof MessageChannel<"u"){var Ee=new MessageChannel,O=Ee.port2;Ee.port1.onmessage=I,de=function(){O.postMessage(null)}}else de=function(){C(I,0)};function b(T){N=T,S||(S=!0,de())}function W(T,A){P=C(function(){T(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){j||g||(j=!0,b(x))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(T){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var R=f;f=A;try{return T()}finally{f=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,A){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var R=f;f=T;try{return A()}finally{f=R}},e.unstable_scheduleCallback=function(T,A,R){var L=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?L+R:L):R=L,T){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=R+z,T={id:d++,callback:A,priorityLevel:T,startTime:R,expirationTime:z,sortIndex:-1},R>L?(T.sortIndex=R,t(c,T),n(u)===null&&T===n(c)&&(y?(m(P),P=-1):y=!0,W(w,R-L))):(T.sortIndex=z,t(u,T),j||g||(j=!0,b(x))),T},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(T){var A=f;return function(){var R=f;f=A;try{return T.apply(this,arguments)}finally{f=R}}}})(Xf);Yf.exports=Xf;var dg=Yf.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 fg=k,Be=dg;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 Zf=new Set,Qr={};function Tn(e,t){er(e,t),er(e+"Capture",t)}function er(e,t){for(Qr[e]=t,e=0;e<t.length;e++)Zf.add(t[e])}var Ct=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pa=Object.prototype.hasOwnProperty,hg=/^[: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]*$/,ic={},oc={};function pg(e){return pa.call(oc,e)?!0:pa.call(ic,e)?!1:hg.test(e)?oc[e]=!0:(ic[e]=!0,!1)}function mg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vg(e,t,n,r){if(t===null||typeof t>"u"||mg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Pe(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ge[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ge[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ge[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ge[e]=new Pe(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){ge[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ge[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ge[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ge[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ge[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var El=/[\-:]([a-z])/g;function Ml(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(El,Ml);ge[t]=new Pe(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(El,Ml);ge[t]=new Pe(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(El,Ml);ge[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ge[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)});ge.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ge[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Al(e,t,n,r){var s=ge.hasOwnProperty(t)?ge[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(vg(t,n,s,r)&&(n=null),r||s===null?pg(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var At=fg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_s=Symbol.for("react.element"),An=Symbol.for("react.portal"),Dn=Symbol.for("react.fragment"),Dl=Symbol.for("react.strict_mode"),ma=Symbol.for("react.profiler"),Jf=Symbol.for("react.provider"),eh=Symbol.for("react.context"),_l=Symbol.for("react.forward_ref"),va=Symbol.for("react.suspense"),ga=Symbol.for("react.suspense_list"),Ll=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),th=Symbol.for("react.offscreen"),ac=Symbol.iterator;function vr(e){return e===null||typeof e!="object"?null:(e=ac&&e[ac]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Object.assign,So;function Cr(e){if(So===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);So=t&&t[1]||""}return`
34
+ `+So+e}var ko=!1;function No(e,t){if(!e||ko)return"";ko=!0;var n=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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var s=c.stack.split(`
35
+ `),i=r.stack.split(`
36
+ `),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var u=`
37
+ `+s[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=l);break}}}finally{ko=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cr(e):""}function gg(e){switch(e.tag){case 5:return Cr(e.type);case 16:return Cr("Lazy");case 13:return Cr("Suspense");case 19:return Cr("SuspenseList");case 0:case 2:case 15:return e=No(e.type,!1),e;case 11:return e=No(e.type.render,!1),e;case 1:return e=No(e.type,!0),e;default:return""}}function ya(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 Dn:return"Fragment";case An:return"Portal";case ma:return"Profiler";case Dl:return"StrictMode";case va:return"Suspense";case ga:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eh:return(e.displayName||"Context")+".Consumer";case Jf:return(e._context.displayName||"Context")+".Provider";case _l:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ll:return t=e.displayName||null,t!==null?t:ya(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return ya(e(t))}catch{}}return null}function yg(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 ya(t);case 8:return t===Dl?"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 Qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xg(e){var t=nh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ls(e){e._valueTracker||(e._valueTracker=xg(e))}function rh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gi(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 xa(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function lc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function sh(e,t){t=t.checked,t!=null&&Al(e,"checked",t,!1)}function ja(e,t){sh(e,t);var n=Qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?wa(e,t.type,n):t.hasOwnProperty("defaultValue")&&wa(e,t.type,Qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function uc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function wa(e,t,n){(t!=="number"||gi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Tr=Array.isArray;function Qn(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Sa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function cc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(Tr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Qt(n)}}function ih(e,t){var n=Qt(t.value),r=Qt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function dc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function oh(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 ka(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?oh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rs,ah=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Rs=Rs||document.createElement("div"),Rs.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={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},jg=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){jg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function lh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function uh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=lh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var wg=ne({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 Na(e,t){if(t){if(wg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Ca(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 Ta=null;function Rl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pa=null,qn=null,Yn=null;function fc(e){if(e=ks(e)){if(typeof Pa!="function")throw Error(E(280));var t=e.stateNode;t&&(t=to(t),Pa(e.stateNode,e.type,t))}}function ch(e){qn?Yn?Yn.push(e):Yn=[e]:qn=e}function dh(){if(qn){var e=qn,t=Yn;if(Yn=qn=null,fc(e),t)for(e=0;e<t.length;e++)fc(t[e])}}function fh(e,t){return e(t)}function hh(){}var Co=!1;function ph(e,t,n){if(Co)return e(t,n);Co=!0;try{return fh(e,t,n)}finally{Co=!1,(qn!==null||Yn!==null)&&(hh(),dh())}}function Yr(e,t){var n=e.stateNode;if(n===null)return null;var r=to(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Ea=!1;if(Ct)try{var gr={};Object.defineProperty(gr,"passive",{get:function(){Ea=!0}}),window.addEventListener("test",gr,gr),window.removeEventListener("test",gr,gr)}catch{Ea=!1}function Sg(e,t,n,r,s,i,o,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Rr=!1,yi=null,xi=!1,Ma=null,kg={onError:function(e){Rr=!0,yi=e}};function Ng(e,t,n,r,s,i,o,l,u){Rr=!1,yi=null,Sg.apply(kg,arguments)}function Cg(e,t,n,r,s,i,o,l,u){if(Ng.apply(this,arguments),Rr){if(Rr){var c=yi;Rr=!1,yi=null}else throw Error(E(198));xi||(xi=!0,Ma=c)}}function Pn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mh(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 hc(e){if(Pn(e)!==e)throw Error(E(188))}function Tg(e){var t=e.alternate;if(!t){if(t=Pn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return hc(s),e;if(i===r)return hc(s),t;i=i.sibling}throw Error(E(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function vh(e){return e=Tg(e),e!==null?gh(e):null}function gh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gh(e);if(t!==null)return t;e=e.sibling}return null}var yh=Be.unstable_scheduleCallback,pc=Be.unstable_cancelCallback,Pg=Be.unstable_shouldYield,Eg=Be.unstable_requestPaint,oe=Be.unstable_now,Mg=Be.unstable_getCurrentPriorityLevel,Vl=Be.unstable_ImmediatePriority,xh=Be.unstable_UserBlockingPriority,ji=Be.unstable_NormalPriority,Ag=Be.unstable_LowPriority,jh=Be.unstable_IdlePriority,Xi=null,dt=null;function Dg(e){if(dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Xi,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:Rg,_g=Math.log,Lg=Math.LN2;function Rg(e){return e>>>=0,e===0?32:31-(_g(e)/Lg|0)|0}var Vs=64,zs=4194304;function Pr(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 wi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=Pr(l):(i&=o,i!==0&&(r=Pr(i)))}else o=n&~s,o!==0?r=Pr(o):i!==0&&(r=Pr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),s=1<<n,r|=e[n],t&=~s;return r}function Vg(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 zg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-rt(i),l=1<<o,u=s[o];u===-1?(!(l&n)||l&r)&&(s[o]=Vg(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}function Aa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wh(){var e=Vs;return Vs<<=1,!(Vs&4194240)&&(Vs=64),e}function To(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ws(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function Og(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-rt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function zl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var H=0;function Sh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kh,Ol,Nh,Ch,Th,Da=!1,Os=[],It=null,Bt=null,$t=null,Xr=new Map,Zr=new Map,Vt=[],Fg="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 mc(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Bt=null;break;case"mouseover":case"mouseout":$t=null;break;case"pointerover":case"pointerout":Xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(t.pointerId)}}function yr(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=ks(t),t!==null&&Ol(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Ig(e,t,n,r,s){switch(t){case"focusin":return It=yr(It,e,t,n,r,s),!0;case"dragenter":return Bt=yr(Bt,e,t,n,r,s),!0;case"mouseover":return $t=yr($t,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Xr.set(i,yr(Xr.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Zr.set(i,yr(Zr.get(i)||null,e,t,n,r,s)),!0}return!1}function Ph(e){var t=cn(e.target);if(t!==null){var n=Pn(t);if(n!==null){if(t=n.tag,t===13){if(t=mh(n),t!==null){e.blockedOn=t,Th(e.priority,function(){Nh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_a(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ta=r,n.target.dispatchEvent(r),Ta=null}else return t=ks(n),t!==null&&Ol(t),e.blockedOn=n,!1;t.shift()}return!0}function vc(e,t,n){si(e)&&n.delete(t)}function Bg(){Da=!1,It!==null&&si(It)&&(It=null),Bt!==null&&si(Bt)&&(Bt=null),$t!==null&&si($t)&&($t=null),Xr.forEach(vc),Zr.forEach(vc)}function xr(e,t){e.blockedOn===t&&(e.blockedOn=null,Da||(Da=!0,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,Bg)))}function Jr(e){function t(s){return xr(s,e)}if(0<Os.length){xr(Os[0],e);for(var n=1;n<Os.length;n++){var r=Os[n];r.blockedOn===e&&(r.blockedOn=null)}}for(It!==null&&xr(It,e),Bt!==null&&xr(Bt,e),$t!==null&&xr($t,e),Xr.forEach(t),Zr.forEach(t),n=0;n<Vt.length;n++)r=Vt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Vt.length&&(n=Vt[0],n.blockedOn===null);)Ph(n),n.blockedOn===null&&Vt.shift()}var Xn=At.ReactCurrentBatchConfig,Si=!0;function $g(e,t,n,r){var s=H,i=Xn.transition;Xn.transition=null;try{H=1,Fl(e,t,n,r)}finally{H=s,Xn.transition=i}}function Ug(e,t,n,r){var s=H,i=Xn.transition;Xn.transition=null;try{H=4,Fl(e,t,n,r)}finally{H=s,Xn.transition=i}}function Fl(e,t,n,r){if(Si){var s=_a(e,t,n,r);if(s===null)zo(e,t,r,ki,n),mc(e,r);else if(Ig(s,e,t,n,r))r.stopPropagation();else if(mc(e,r),t&4&&-1<Fg.indexOf(e)){for(;s!==null;){var i=ks(s);if(i!==null&&kh(i),i=_a(e,t,n,r),i===null&&zo(e,t,r,ki,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else zo(e,t,r,null,n)}}var ki=null;function _a(e,t,n,r){if(ki=null,e=Rl(r),e=cn(e),e!==null)if(t=Pn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ki=e,null}function Eh(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(Mg()){case Vl:return 1;case xh:return 4;case ji:case Ag:return 16;case jh:return 536870912;default:return 16}default:return 16}}var Ot=null,Il=null,ii=null;function Mh(){if(ii)return ii;var e,t=Il,n=t.length,r,s="value"in Ot?Ot.value:Ot.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return ii=s.slice(e,1<r?1-r:void 0)}function oi(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 Fs(){return!0}function gc(){return!1}function be(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Fs:gc,this.isPropagationStopped=gc,this}return ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fs)},persist:function(){},isPersistent:Fs}),t}var fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bl=be(fr),Ss=ne({},fr,{view:0,detail:0}),bg=be(Ss),Po,Eo,jr,Zi=ne({},Ss,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$l,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!==jr&&(jr&&e.type==="mousemove"?(Po=e.screenX-jr.screenX,Eo=e.screenY-jr.screenY):Eo=Po=0,jr=e),Po)},movementY:function(e){return"movementY"in e?e.movementY:Eo}}),yc=be(Zi),Wg=ne({},Zi,{dataTransfer:0}),Hg=be(Wg),Kg=ne({},Ss,{relatedTarget:0}),Mo=be(Kg),Gg=ne({},fr,{animationName:0,elapsedTime:0,pseudoElement:0}),Qg=be(Gg),qg=ne({},fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yg=be(qg),Xg=ne({},fr,{data:0}),xc=be(Xg),Zg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jg={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"},ey={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ty(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ey[e])?!!t[e]:!1}function $l(){return ty}var ny=ne({},Ss,{key:function(e){if(e.key){var t=Zg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$l,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ry=be(ny),sy=ne({},Zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jc=be(sy),iy=ne({},Ss,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$l}),oy=be(iy),ay=ne({},fr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ly=be(ay),uy=ne({},Zi,{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}),cy=be(uy),dy=[9,13,27,32],Ul=Ct&&"CompositionEvent"in window,Vr=null;Ct&&"documentMode"in document&&(Vr=document.documentMode);var fy=Ct&&"TextEvent"in window&&!Vr,Ah=Ct&&(!Ul||Vr&&8<Vr&&11>=Vr),wc=" ",Sc=!1;function Dh(e,t){switch(e){case"keyup":return dy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _h(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function hy(e,t){switch(e){case"compositionend":return _h(t);case"keypress":return t.which!==32?null:(Sc=!0,wc);case"textInput":return e=t.data,e===wc&&Sc?null:e;default:return null}}function py(e,t){if(_n)return e==="compositionend"||!Ul&&Dh(e,t)?(e=Mh(),ii=Il=Ot=null,_n=!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 Ah&&t.locale!=="ko"?null:t.data;default:return null}}var my={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 kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!my[e.type]:t==="textarea"}function Lh(e,t,n,r){ch(r),t=Ni(t,"onChange"),0<t.length&&(n=new Bl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zr=null,es=null;function vy(e){Wh(e,0)}function Ji(e){var t=Vn(e);if(rh(t))return e}function gy(e,t){if(e==="change")return t}var Rh=!1;if(Ct){var Ao;if(Ct){var Do="oninput"in document;if(!Do){var Nc=document.createElement("div");Nc.setAttribute("oninput","return;"),Do=typeof Nc.oninput=="function"}Ao=Do}else Ao=!1;Rh=Ao&&(!document.documentMode||9<document.documentMode)}function Cc(){zr&&(zr.detachEvent("onpropertychange",Vh),es=zr=null)}function Vh(e){if(e.propertyName==="value"&&Ji(es)){var t=[];Lh(t,es,e,Rl(e)),ph(vy,t)}}function yy(e,t,n){e==="focusin"?(Cc(),zr=t,es=n,zr.attachEvent("onpropertychange",Vh)):e==="focusout"&&Cc()}function xy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ji(es)}function jy(e,t){if(e==="click")return Ji(t)}function wy(e,t){if(e==="input"||e==="change")return Ji(t)}function Sy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var it=typeof Object.is=="function"?Object.is:Sy;function ts(e,t){if(it(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!pa.call(t,s)||!it(e[s],t[s]))return!1}return!0}function Tc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pc(e,t){var n=Tc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tc(n)}}function zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oh(){for(var e=window,t=gi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gi(e.document)}return t}function bl(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 ky(e){var t=Oh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zh(n.ownerDocument.documentElement,n)){if(r!==null&&bl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Pc(n,i);var o=Pc(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ny=Ct&&"documentMode"in document&&11>=document.documentMode,Ln=null,La=null,Or=null,Ra=!1;function Ec(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ra||Ln==null||Ln!==gi(r)||(r=Ln,"selectionStart"in r&&bl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Or&&ts(Or,r)||(Or=r,r=Ni(La,"onSelect"),0<r.length&&(t=new Bl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ln)))}function Is(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rn={animationend:Is("Animation","AnimationEnd"),animationiteration:Is("Animation","AnimationIteration"),animationstart:Is("Animation","AnimationStart"),transitionend:Is("Transition","TransitionEnd")},_o={},Fh={};Ct&&(Fh=document.createElement("div").style,"AnimationEvent"in window||(delete Rn.animationend.animation,delete Rn.animationiteration.animation,delete Rn.animationstart.animation),"TransitionEvent"in window||delete Rn.transitionend.transition);function eo(e){if(_o[e])return _o[e];if(!Rn[e])return e;var t=Rn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fh)return _o[e]=t[n];return e}var Ih=eo("animationend"),Bh=eo("animationiteration"),$h=eo("animationstart"),Uh=eo("transitionend"),bh=new Map,Mc="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 Jt(e,t){bh.set(e,t),Tn(t,[e])}for(var Lo=0;Lo<Mc.length;Lo++){var Ro=Mc[Lo],Cy=Ro.toLowerCase(),Ty=Ro[0].toUpperCase()+Ro.slice(1);Jt(Cy,"on"+Ty)}Jt(Ih,"onAnimationEnd");Jt(Bh,"onAnimationIteration");Jt($h,"onAnimationStart");Jt("dblclick","onDoubleClick");Jt("focusin","onFocus");Jt("focusout","onBlur");Jt(Uh,"onTransitionEnd");er("onMouseEnter",["mouseout","mouseover"]);er("onMouseLeave",["mouseout","mouseover"]);er("onPointerEnter",["pointerout","pointerover"]);er("onPointerLeave",["pointerout","pointerover"]);Tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="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(" "),Py=new Set("cancel close invalid load scroll toggle".split(" ").concat(Er));function Ac(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Cg(r,t,void 0,e),e.currentTarget=null}function Wh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==i&&s.isPropagationStopped())break e;Ac(s,l,c),i=u}else for(o=0;o<r.length;o++){if(l=r[o],u=l.instance,c=l.currentTarget,l=l.listener,u!==i&&s.isPropagationStopped())break e;Ac(s,l,c),i=u}}}if(xi)throw e=Ma,xi=!1,Ma=null,e}function Q(e,t){var n=t[Ia];n===void 0&&(n=t[Ia]=new Set);var r=e+"__bubble";n.has(r)||(Hh(t,e,2,!1),n.add(r))}function Vo(e,t,n){var r=0;t&&(r|=4),Hh(n,e,r,t)}var Bs="_reactListening"+Math.random().toString(36).slice(2);function ns(e){if(!e[Bs]){e[Bs]=!0,Zf.forEach(function(n){n!=="selectionchange"&&(Py.has(n)||Vo(n,!1,e),Vo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bs]||(t[Bs]=!0,Vo("selectionchange",!1,t))}}function Hh(e,t,n,r){switch(Eh(t)){case 1:var s=$g;break;case 4:s=Ug;break;default:s=Fl}n=s.bind(null,t,n,e),s=void 0,!Ea||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function zo(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;o=o.return}for(;l!==null;){if(o=cn(l),o===null)return;if(u=o.tag,u===5||u===6){r=i=o;continue e}l=l.parentNode}}r=r.return}ph(function(){var c=i,d=Rl(n),h=[];e:{var f=bh.get(e);if(f!==void 0){var g=Bl,j=e;switch(e){case"keypress":if(oi(n)===0)break e;case"keydown":case"keyup":g=ry;break;case"focusin":j="focus",g=Mo;break;case"focusout":j="blur",g=Mo;break;case"beforeblur":case"afterblur":g=Mo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=yc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Hg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=oy;break;case Ih:case Bh:case $h:g=Qg;break;case Uh:g=ly;break;case"scroll":g=bg;break;case"wheel":g=cy;break;case"copy":case"cut":case"paste":g=Yg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=jc}var y=(t&4)!==0,C=!y&&e==="scroll",m=y?f!==null?f+"Capture":null:f;y=[];for(var p=c,v;p!==null;){v=p;var w=v.stateNode;if(v.tag===5&&w!==null&&(v=w,m!==null&&(w=Yr(p,m),w!=null&&y.push(rs(p,w,v)))),C)break;p=p.return}0<y.length&&(f=new g(f,j,null,n,d),h.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&n!==Ta&&(j=n.relatedTarget||n.fromElement)&&(cn(j)||j[Tt]))break e;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(j=n.relatedTarget||n.toElement,g=c,j=j?cn(j):null,j!==null&&(C=Pn(j),j!==C||j.tag!==5&&j.tag!==6)&&(j=null)):(g=null,j=c),g!==j)){if(y=yc,w="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=jc,w="onPointerLeave",m="onPointerEnter",p="pointer"),C=g==null?f:Vn(g),v=j==null?f:Vn(j),f=new y(w,p+"leave",g,n,d),f.target=C,f.relatedTarget=v,w=null,cn(d)===c&&(y=new y(m,p+"enter",j,n,d),y.target=v,y.relatedTarget=C,w=y),C=w,g&&j)t:{for(y=g,m=j,p=0,v=y;v;v=Mn(v))p++;for(v=0,w=m;w;w=Mn(w))v++;for(;0<p-v;)y=Mn(y),p--;for(;0<v-p;)m=Mn(m),v--;for(;p--;){if(y===m||m!==null&&y===m.alternate)break t;y=Mn(y),m=Mn(m)}y=null}else y=null;g!==null&&Dc(h,f,g,y,!1),j!==null&&C!==null&&Dc(h,C,j,y,!0)}}e:{if(f=c?Vn(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var x=gy;else if(kc(f))if(Rh)x=wy;else{x=xy;var S=yy}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(x=jy);if(x&&(x=x(e,c))){Lh(h,x,n,d);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&wa(f,"number",f.value)}switch(S=c?Vn(c):window,e){case"focusin":(kc(S)||S.contentEditable==="true")&&(Ln=S,La=c,Or=null);break;case"focusout":Or=La=Ln=null;break;case"mousedown":Ra=!0;break;case"contextmenu":case"mouseup":case"dragend":Ra=!1,Ec(h,n,d);break;case"selectionchange":if(Ny)break;case"keydown":case"keyup":Ec(h,n,d)}var N;if(Ul)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else _n?Dh(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Ah&&n.locale!=="ko"&&(_n||P!=="onCompositionStart"?P==="onCompositionEnd"&&_n&&(N=Mh()):(Ot=d,Il="value"in Ot?Ot.value:Ot.textContent,_n=!0)),S=Ni(c,P),0<S.length&&(P=new xc(P,e,null,n,d),h.push({event:P,listeners:S}),N?P.data=N:(N=_h(n),N!==null&&(P.data=N)))),(N=fy?hy(e,n):py(e,n))&&(c=Ni(c,"onBeforeInput"),0<c.length&&(d=new xc("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:c}),d.data=N))}Wh(h,t)})}function rs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ni(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Yr(e,n),i!=null&&r.unshift(rs(e,i,s)),i=Yr(e,t),i!=null&&r.push(rs(e,i,s))),e=e.return}return r}function Mn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dc(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&c!==null&&(l=c,s?(u=Yr(n,i),u!=null&&o.unshift(rs(n,u,l))):s||(u=Yr(n,i),u!=null&&o.push(rs(n,u,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ey=/\r\n?/g,My=/\u0000|\uFFFD/g;function _c(e){return(typeof e=="string"?e:""+e).replace(Ey,`
38
+ `).replace(My,"")}function $s(e,t,n){if(t=_c(t),_c(e)!==t&&n)throw Error(E(425))}function Ci(){}var Va=null,za=null;function Oa(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 Fa=typeof setTimeout=="function"?setTimeout:void 0,Ay=typeof clearTimeout=="function"?clearTimeout:void 0,Lc=typeof Promise=="function"?Promise:void 0,Dy=typeof queueMicrotask=="function"?queueMicrotask:typeof Lc<"u"?function(e){return Lc.resolve(null).then(e).catch(_y)}:Fa;function _y(e){setTimeout(function(){throw e})}function Oo(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Jr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Jr(t)}function Ut(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 Rc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var hr=Math.random().toString(36).slice(2),ut="__reactFiber$"+hr,ss="__reactProps$"+hr,Tt="__reactContainer$"+hr,Ia="__reactEvents$"+hr,Ly="__reactListeners$"+hr,Ry="__reactHandles$"+hr;function cn(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Rc(e);e!==null;){if(n=e[ut])return n;e=Rc(e)}return t}e=n,n=e.parentNode}return null}function ks(e){return e=e[ut]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function to(e){return e[ss]||null}var Ba=[],zn=-1;function en(e){return{current:e}}function q(e){0>zn||(e.current=Ba[zn],Ba[zn]=null,zn--)}function K(e,t){zn++,Ba[zn]=e.current,e.current=t}var qt={},ke=en(qt),De=en(!1),jn=qt;function tr(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function _e(e){return e=e.childContextTypes,e!=null}function Ti(){q(De),q(ke)}function Vc(e,t,n){if(ke.current!==qt)throw Error(E(168));K(ke,t),K(De,n)}function Kh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(E(108,yg(e)||"Unknown",s));return ne({},n,r)}function Pi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,jn=ke.current,K(ke,e),K(De,De.current),!0}function zc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Kh(e,t,jn),r.__reactInternalMemoizedMergedChildContext=e,q(De),q(ke),K(ke,e)):q(De),K(De,n)}var xt=null,no=!1,Fo=!1;function Gh(e){xt===null?xt=[e]:xt.push(e)}function Vy(e){no=!0,Gh(e)}function tn(){if(!Fo&&xt!==null){Fo=!0;var e=0,t=H;try{var n=xt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}xt=null,no=!1}catch(s){throw xt!==null&&(xt=xt.slice(e+1)),yh(Vl,tn),s}finally{H=t,Fo=!1}}return null}var On=[],Fn=0,Ei=null,Mi=0,Ke=[],Ge=0,wn=null,jt=1,wt="";function on(e,t){On[Fn++]=Mi,On[Fn++]=Ei,Ei=e,Mi=t}function Qh(e,t,n){Ke[Ge++]=jt,Ke[Ge++]=wt,Ke[Ge++]=wn,wn=e;var r=jt;e=wt;var s=32-rt(r)-1;r&=~(1<<s),n+=1;var i=32-rt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,jt=1<<32-rt(t)+s|n<<s|r,wt=i+e}else jt=1<<i|n<<s|r,wt=e}function Wl(e){e.return!==null&&(on(e,1),Qh(e,1,0))}function Hl(e){for(;e===Ei;)Ei=On[--Fn],On[Fn]=null,Mi=On[--Fn],On[Fn]=null;for(;e===wn;)wn=Ke[--Ge],Ke[Ge]=null,wt=Ke[--Ge],Ke[Ge]=null,jt=Ke[--Ge],Ke[Ge]=null}var Fe=null,Oe=null,Z=!1,nt=null;function qh(e,t){var n=Qe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Oc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Fe=e,Oe=Ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Fe=e,Oe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=wn!==null?{id:jt,overflow:wt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Fe=e,Oe=null,!0):!1;default:return!1}}function $a(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ua(e){if(Z){var t=Oe;if(t){var n=t;if(!Oc(e,t)){if($a(e))throw Error(E(418));t=Ut(n.nextSibling);var r=Fe;t&&Oc(e,t)?qh(r,n):(e.flags=e.flags&-4097|2,Z=!1,Fe=e)}}else{if($a(e))throw Error(E(418));e.flags=e.flags&-4097|2,Z=!1,Fe=e}}}function Fc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fe=e}function Us(e){if(e!==Fe)return!1;if(!Z)return Fc(e),Z=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Oa(e.type,e.memoizedProps)),t&&(t=Oe)){if($a(e))throw Yh(),Error(E(418));for(;t;)qh(e,t),t=Ut(t.nextSibling)}if(Fc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Oe=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Oe=null}}else Oe=Fe?Ut(e.stateNode.nextSibling):null;return!0}function Yh(){for(var e=Oe;e;)e=Ut(e.nextSibling)}function nr(){Oe=Fe=null,Z=!1}function Kl(e){nt===null?nt=[e]:nt.push(e)}var zy=At.ReactCurrentBatchConfig;function wr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function bs(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ic(e){var t=e._init;return t(e._payload)}function Xh(e){function t(m,p){if(e){var v=m.deletions;v===null?(m.deletions=[p],m.flags|=16):v.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function s(m,p){return m=Kt(m,p),m.index=0,m.sibling=null,m}function i(m,p,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<p?(m.flags|=2,p):v):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,v,w){return p===null||p.tag!==6?(p=Ho(v,m.mode,w),p.return=m,p):(p=s(p,v),p.return=m,p)}function u(m,p,v,w){var x=v.type;return x===Dn?d(m,p,v.props.children,w,v.key):p!==null&&(p.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Lt&&Ic(x)===p.type)?(w=s(p,v.props),w.ref=wr(m,p,v),w.return=m,w):(w=hi(v.type,v.key,v.props,null,m.mode,w),w.ref=wr(m,p,v),w.return=m,w)}function c(m,p,v,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=Ko(v,m.mode,w),p.return=m,p):(p=s(p,v.children||[]),p.return=m,p)}function d(m,p,v,w,x){return p===null||p.tag!==7?(p=vn(v,m.mode,w,x),p.return=m,p):(p=s(p,v),p.return=m,p)}function h(m,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Ho(""+p,m.mode,v),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case _s:return v=hi(p.type,p.key,p.props,null,m.mode,v),v.ref=wr(m,null,p),v.return=m,v;case An:return p=Ko(p,m.mode,v),p.return=m,p;case Lt:var w=p._init;return h(m,w(p._payload),v)}if(Tr(p)||vr(p))return p=vn(p,m.mode,v,null),p.return=m,p;bs(m,p)}return null}function f(m,p,v,w){var x=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return x!==null?null:l(m,p,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case _s:return v.key===x?u(m,p,v,w):null;case An:return v.key===x?c(m,p,v,w):null;case Lt:return x=v._init,f(m,p,x(v._payload),w)}if(Tr(v)||vr(v))return x!==null?null:d(m,p,v,w,null);bs(m,v)}return null}function g(m,p,v,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(v)||null,l(p,m,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _s:return m=m.get(w.key===null?v:w.key)||null,u(p,m,w,x);case An:return m=m.get(w.key===null?v:w.key)||null,c(p,m,w,x);case Lt:var S=w._init;return g(m,p,v,S(w._payload),x)}if(Tr(w)||vr(w))return m=m.get(v)||null,d(p,m,w,x,null);bs(p,w)}return null}function j(m,p,v,w){for(var x=null,S=null,N=p,P=p=0,_=null;N!==null&&P<v.length;P++){N.index>P?(_=N,N=null):_=N.sibling;var M=f(m,N,v[P],w);if(M===null){N===null&&(N=_);break}e&&N&&M.alternate===null&&t(m,N),p=i(M,p,P),S===null?x=M:S.sibling=M,S=M,N=_}if(P===v.length)return n(m,N),Z&&on(m,P),x;if(N===null){for(;P<v.length;P++)N=h(m,v[P],w),N!==null&&(p=i(N,p,P),S===null?x=N:S.sibling=N,S=N);return Z&&on(m,P),x}for(N=r(m,N);P<v.length;P++)_=g(N,m,P,v[P],w),_!==null&&(e&&_.alternate!==null&&N.delete(_.key===null?P:_.key),p=i(_,p,P),S===null?x=_:S.sibling=_,S=_);return e&&N.forEach(function($){return t(m,$)}),Z&&on(m,P),x}function y(m,p,v,w){var x=vr(v);if(typeof x!="function")throw Error(E(150));if(v=x.call(v),v==null)throw Error(E(151));for(var S=x=null,N=p,P=p=0,_=null,M=v.next();N!==null&&!M.done;P++,M=v.next()){N.index>P?(_=N,N=null):_=N.sibling;var $=f(m,N,M.value,w);if($===null){N===null&&(N=_);break}e&&N&&$.alternate===null&&t(m,N),p=i($,p,P),S===null?x=$:S.sibling=$,S=$,N=_}if(M.done)return n(m,N),Z&&on(m,P),x;if(N===null){for(;!M.done;P++,M=v.next())M=h(m,M.value,w),M!==null&&(p=i(M,p,P),S===null?x=M:S.sibling=M,S=M);return Z&&on(m,P),x}for(N=r(m,N);!M.done;P++,M=v.next())M=g(N,m,P,M.value,w),M!==null&&(e&&M.alternate!==null&&N.delete(M.key===null?P:M.key),p=i(M,p,P),S===null?x=M:S.sibling=M,S=M);return e&&N.forEach(function(I){return t(m,I)}),Z&&on(m,P),x}function C(m,p,v,w){if(typeof v=="object"&&v!==null&&v.type===Dn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case _s:e:{for(var x=v.key,S=p;S!==null;){if(S.key===x){if(x=v.type,x===Dn){if(S.tag===7){n(m,S.sibling),p=s(S,v.props.children),p.return=m,m=p;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Lt&&Ic(x)===S.type){n(m,S.sibling),p=s(S,v.props),p.ref=wr(m,S,v),p.return=m,m=p;break e}n(m,S);break}else t(m,S);S=S.sibling}v.type===Dn?(p=vn(v.props.children,m.mode,w,v.key),p.return=m,m=p):(w=hi(v.type,v.key,v.props,null,m.mode,w),w.ref=wr(m,p,v),w.return=m,m=w)}return o(m);case An:e:{for(S=v.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),p=s(p,v.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Ko(v,m.mode,w),p.return=m,m=p}return o(m);case Lt:return S=v._init,C(m,p,S(v._payload),w)}if(Tr(v))return j(m,p,v,w);if(vr(v))return y(m,p,v,w);bs(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),p=s(p,v),p.return=m,m=p):(n(m,p),p=Ho(v,m.mode,w),p.return=m,m=p),o(m)):n(m,p)}return C}var rr=Xh(!0),Zh=Xh(!1),Ai=en(null),Di=null,In=null,Gl=null;function Ql(){Gl=In=Di=null}function ql(e){var t=Ai.current;q(Ai),e._currentValue=t}function ba(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zn(e,t){Di=e,Gl=In=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ae=!0),e.firstContext=null)}function Ye(e){var t=e._currentValue;if(Gl!==e)if(e={context:e,memoizedValue:t,next:null},In===null){if(Di===null)throw Error(E(308));In=e,Di.dependencies={lanes:0,firstContext:e}}else In=In.next=e;return t}var dn=null;function Yl(e){dn===null?dn=[e]:dn.push(e)}function Jh(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Yl(t)):(n.next=s.next,s.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function Xl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ep(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 St(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Pt(e,n)}return s=r.interleaved,s===null?(t.next=t,Yl(r)):(t.next=s.next,s.next=t),r.interleaved=t,Pt(e,n)}function ai(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zl(e,n)}}function Bc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _i(e,t,n,r){var s=e.updateQueue;Rt=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var h=s.baseState;o=0,d=c=u=null,l=i;do{var f=l.lane,g=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var j=e,y=l;switch(f=t,g=n,y.tag){case 1:if(j=y.payload,typeof j=="function"){h=j.call(g,h,f);break e}h=j;break e;case 3:j.flags=j.flags&-65537|128;case 0:if(j=y.payload,f=typeof j=="function"?j.call(g,h,f):j,f==null)break e;h=ne({},h,f);break e;case 2:Rt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,u=h):d=d.next=g,o|=f;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;f=l,l=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(d===null&&(u=h),s.baseState=u,s.firstBaseUpdate=c,s.lastBaseUpdate=d,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);kn|=o,e.lanes=o,e.memoizedState=h}}function $c(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(E(191,s));s.call(r)}}}var Ns={},ft=en(Ns),is=en(Ns),os=en(Ns);function fn(e){if(e===Ns)throw Error(E(174));return e}function Zl(e,t){switch(K(os,t),K(is,e),K(ft,Ns),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ka(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ka(t,e)}q(ft),K(ft,t)}function sr(){q(ft),q(is),q(os)}function tp(e){fn(os.current);var t=fn(ft.current),n=ka(t,e.type);t!==n&&(K(is,e),K(ft,n))}function Jl(e){is.current===e&&(q(ft),q(is))}var J=en(0);function Li(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Io=[];function eu(){for(var e=0;e<Io.length;e++)Io[e]._workInProgressVersionPrimary=null;Io.length=0}var li=At.ReactCurrentDispatcher,Bo=At.ReactCurrentBatchConfig,Sn=0,te=null,ue=null,fe=null,Ri=!1,Fr=!1,as=0,Oy=0;function ye(){throw Error(E(321))}function tu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!it(e[n],t[n]))return!1;return!0}function nu(e,t,n,r,s,i){if(Sn=i,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,li.current=e===null||e.memoizedState===null?$y:Uy,e=n(r,s),Fr){i=0;do{if(Fr=!1,as=0,25<=i)throw Error(E(301));i+=1,fe=ue=null,t.updateQueue=null,li.current=by,e=n(r,s)}while(Fr)}if(li.current=Vi,t=ue!==null&&ue.next!==null,Sn=0,fe=ue=te=null,Ri=!1,t)throw Error(E(300));return e}function ru(){var e=as!==0;return as=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fe===null?te.memoizedState=fe=e:fe=fe.next=e,fe}function Xe(){if(ue===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=ue.next;var t=fe===null?te.memoizedState:fe.next;if(t!==null)fe=t,ue=e;else{if(e===null)throw Error(E(310));ue=e,e={memoizedState:ue.memoizedState,baseState:ue.baseState,baseQueue:ue.baseQueue,queue:ue.queue,next:null},fe===null?te.memoizedState=fe=e:fe=fe.next=e}return fe}function ls(e,t){return typeof t=="function"?t(e):t}function $o(e){var t=Xe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=ue,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,u=null,c=i;do{var d=c.lane;if((Sn&d)===d)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(l=u=h,o=r):u=u.next=h,te.lanes|=d,kn|=d}c=c.next}while(c!==null&&c!==i);u===null?o=r:u.next=l,it(r,t.memoizedState)||(Ae=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,te.lanes|=i,kn|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Uo(e){var t=Xe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);it(i,t.memoizedState)||(Ae=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function np(){}function rp(e,t){var n=te,r=Xe(),s=t(),i=!it(r.memoizedState,s);if(i&&(r.memoizedState=s,Ae=!0),r=r.queue,su(op.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||fe!==null&&fe.memoizedState.tag&1){if(n.flags|=2048,us(9,ip.bind(null,n,r,s,t),void 0,null),he===null)throw Error(E(349));Sn&30||sp(n,t,s)}return s}function sp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ip(e,t,n,r){t.value=n,t.getSnapshot=r,ap(t)&&lp(e)}function op(e,t,n){return n(function(){ap(t)&&lp(e)})}function ap(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!it(e,n)}catch{return!0}}function lp(e){var t=Pt(e,1);t!==null&&st(t,e,1,-1)}function Uc(e){var t=lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ls,lastRenderedState:e},t.queue=e,e=e.dispatch=By.bind(null,te,e),[t.memoizedState,e]}function us(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=te.updateQueue,t===null?(t={lastEffect:null,stores:null},te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function up(){return Xe().memoizedState}function ui(e,t,n,r){var s=lt();te.flags|=e,s.memoizedState=us(1|t,n,void 0,r===void 0?null:r)}function ro(e,t,n,r){var s=Xe();r=r===void 0?null:r;var i=void 0;if(ue!==null){var o=ue.memoizedState;if(i=o.destroy,r!==null&&tu(r,o.deps)){s.memoizedState=us(t,n,i,r);return}}te.flags|=e,s.memoizedState=us(1|t,n,i,r)}function bc(e,t){return ui(8390656,8,e,t)}function su(e,t){return ro(2048,8,e,t)}function cp(e,t){return ro(4,2,e,t)}function dp(e,t){return ro(4,4,e,t)}function fp(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 hp(e,t,n){return n=n!=null?n.concat([e]):null,ro(4,4,fp.bind(null,t,e),n)}function iu(){}function pp(e,t){var n=Xe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mp(e,t){var n=Xe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vp(e,t,n){return Sn&21?(it(n,t)||(n=wh(),te.lanes|=n,kn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ae=!0),e.memoizedState=n)}function Fy(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Bo.transition;Bo.transition={};try{e(!1),t()}finally{H=n,Bo.transition=r}}function gp(){return Xe().memoizedState}function Iy(e,t,n){var r=Ht(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yp(e))xp(t,n);else if(n=Jh(e,t,n,r),n!==null){var s=Ce();st(n,e,r,s),jp(n,t,r)}}function By(e,t,n){var r=Ht(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yp(e))xp(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,it(l,o)){var u=t.interleaved;u===null?(s.next=s,Yl(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=Jh(e,t,s,r),n!==null&&(s=Ce(),st(n,e,r,s),jp(n,t,r))}}function yp(e){var t=e.alternate;return e===te||t!==null&&t===te}function xp(e,t){Fr=Ri=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zl(e,n)}}var Vi={readContext:Ye,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},$y={readContext:Ye,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Ye,useEffect:bc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ui(4194308,4,fp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ui(4194308,4,e,t)},useInsertionEffect:function(e,t){return ui(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Iy.bind(null,te,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Uc,useDebugValue:iu,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Uc(!1),t=e[0];return e=Fy.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=te,s=lt();if(Z){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),he===null)throw Error(E(349));Sn&30||sp(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,bc(op.bind(null,r,i,e),[e]),r.flags|=2048,us(9,ip.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=lt(),t=he.identifierPrefix;if(Z){var n=wt,r=jt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Oy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Uy={readContext:Ye,useCallback:pp,useContext:Ye,useEffect:su,useImperativeHandle:hp,useInsertionEffect:cp,useLayoutEffect:dp,useMemo:mp,useReducer:$o,useRef:up,useState:function(){return $o(ls)},useDebugValue:iu,useDeferredValue:function(e){var t=Xe();return vp(t,ue.memoizedState,e)},useTransition:function(){var e=$o(ls)[0],t=Xe().memoizedState;return[e,t]},useMutableSource:np,useSyncExternalStore:rp,useId:gp,unstable_isNewReconciler:!1},by={readContext:Ye,useCallback:pp,useContext:Ye,useEffect:su,useImperativeHandle:hp,useInsertionEffect:cp,useLayoutEffect:dp,useMemo:mp,useReducer:Uo,useRef:up,useState:function(){return Uo(ls)},useDebugValue:iu,useDeferredValue:function(e){var t=Xe();return ue===null?t.memoizedState=e:vp(t,ue.memoizedState,e)},useTransition:function(){var e=Uo(ls)[0],t=Xe().memoizedState;return[e,t]},useMutableSource:np,useSyncExternalStore:rp,useId:gp,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Wa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var so={isMounted:function(e){return(e=e._reactInternals)?Pn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ce(),s=Ht(e),i=St(r,s);i.payload=t,n!=null&&(i.callback=n),t=bt(e,i,s),t!==null&&(st(t,e,s,r),ai(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ce(),s=Ht(e),i=St(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=bt(e,i,s),t!==null&&(st(t,e,s,r),ai(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ce(),r=Ht(e),s=St(n,r);s.tag=2,t!=null&&(s.callback=t),t=bt(e,s,r),t!==null&&(st(t,e,r,n),ai(t,e,r))}};function Wc(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!ts(n,r)||!ts(s,i):!0}function wp(e,t,n){var r=!1,s=qt,i=t.contextType;return typeof i=="object"&&i!==null?i=Ye(i):(s=_e(t)?jn:ke.current,r=t.contextTypes,i=(r=r!=null)?tr(e,s):qt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=so,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Hc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&so.enqueueReplaceState(t,t.state,null)}function Ha(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Xl(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Ye(i):(i=_e(t)?jn:ke.current,s.context=tr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Wa(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&so.enqueueReplaceState(s,s.state,null),_i(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function ir(e,t){try{var n="",r=t;do n+=gg(r),r=r.return;while(r);var s=n}catch(i){s=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:s,digest:null}}function bo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ka(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Wy=typeof WeakMap=="function"?WeakMap:Map;function Sp(e,t,n){n=St(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Oi||(Oi=!0,nl=r),Ka(e,t)},n}function kp(e,t,n){n=St(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ka(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ka(e,t),typeof r!="function"&&(Wt===null?Wt=new Set([this]):Wt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Kc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wy;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=s0.bind(null,e,t,n),t.then(e,e))}function Gc(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 Qc(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=St(-1,1),t.tag=2,bt(n,t,1))),n.lanes|=1),e)}var Hy=At.ReactCurrentOwner,Ae=!1;function Ne(e,t,n,r){t.child=e===null?Zh(t,null,n,r):rr(t,e.child,n,r)}function qc(e,t,n,r,s){n=n.render;var i=t.ref;return Zn(t,s),r=nu(e,t,n,r,i,s),n=ru(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Et(e,t,s)):(Z&&n&&Wl(t),t.flags|=1,Ne(e,t,r,s),t.child)}function Yc(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!hu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Np(e,t,i,r,s)):(e=hi(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ts,n(o,r)&&e.ref===t.ref)return Et(e,t,s)}return t.flags|=1,e=Kt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Np(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(ts(i,r)&&e.ref===t.ref)if(Ae=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Ae=!0);else return t.lanes=e.lanes,Et(e,t,s)}return Ga(e,t,n,r,s)}function Cp(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K($n,Re),Re|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K($n,Re),Re|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,K($n,Re),Re|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,K($n,Re),Re|=r;return Ne(e,t,s,n),t.child}function Tp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ga(e,t,n,r,s){var i=_e(n)?jn:ke.current;return i=tr(t,i),Zn(t,s),n=nu(e,t,n,r,i,s),r=ru(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Et(e,t,s)):(Z&&r&&Wl(t),t.flags|=1,Ne(e,t,n,s),t.child)}function Xc(e,t,n,r,s){if(_e(n)){var i=!0;Pi(t)}else i=!1;if(Zn(t,s),t.stateNode===null)ci(e,t),wp(t,n,r),Ha(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var u=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ye(c):(c=_e(n)?jn:ke.current,c=tr(t,c));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||u!==c)&&Hc(t,o,r,c),Rt=!1;var f=t.memoizedState;o.state=f,_i(t,r,o,s),u=t.memoizedState,l!==r||f!==u||De.current||Rt?(typeof d=="function"&&(Wa(t,n,d,r),u=t.memoizedState),(l=Rt||Wc(t,n,l,r,f,u,c))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ep(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:et(t.type,l),o.props=c,h=t.pendingProps,f=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ye(u):(u=_e(n)?jn:ke.current,u=tr(t,u));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||f!==u)&&Hc(t,o,r,u),Rt=!1,f=t.memoizedState,o.state=f,_i(t,r,o,s);var j=t.memoizedState;l!==h||f!==j||De.current||Rt?(typeof g=="function"&&(Wa(t,n,g,r),j=t.memoizedState),(c=Rt||Wc(t,n,c,r,f,j,u)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,j,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,j,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=j),o.props=r,o.state=j,o.context=u,r=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Qa(e,t,n,r,i,s)}function Qa(e,t,n,r,s,i){Tp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&zc(t,n,!1),Et(e,t,i);r=t.stateNode,Hy.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=rr(t,e.child,null,i),t.child=rr(t,null,l,i)):Ne(e,t,l,i),t.memoizedState=r.state,s&&zc(t,n,!0),t.child}function Pp(e){var t=e.stateNode;t.pendingContext?Vc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vc(e,t.context,!1),Zl(e,t.containerInfo)}function Zc(e,t,n,r,s){return nr(),Kl(s),t.flags|=256,Ne(e,t,n,r),t.child}var qa={dehydrated:null,treeContext:null,retryLane:0};function Ya(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ep(e,t,n){var r=t.pendingProps,s=J.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),K(J,s&1),e===null)return Ua(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=ao(o,r,0,null),e=vn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ya(n),t.memoizedState=qa,e):ou(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Ky(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Kt(s,u),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Kt(l,i):(i=vn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Ya(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=qa,r}return i=e.child,e=i.sibling,r=Kt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ou(e,t){return t=ao({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ws(e,t,n,r){return r!==null&&Kl(r),rr(t,e.child,null,n),e=ou(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ky(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=bo(Error(E(422))),Ws(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=ao({mode:"visible",children:r.children},s,0,null),i=vn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&rr(t,e.child,null,o),t.child.memoizedState=Ya(o),t.memoizedState=qa,i);if(!(t.mode&1))return Ws(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(E(419)),r=bo(i,r,void 0),Ws(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ae||l){if(r=he,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Pt(e,s),st(r,e,s,-1))}return fu(),r=bo(Error(E(421))),Ws(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=i0.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Oe=Ut(s.nextSibling),Fe=t,Z=!0,nt=null,e!==null&&(Ke[Ge++]=jt,Ke[Ge++]=wt,Ke[Ge++]=wn,jt=e.id,wt=e.overflow,wn=t),t=ou(t,r.children),t.flags|=4096,t)}function Jc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ba(e.return,t,n)}function Wo(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Mp(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ne(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jc(e,n,t);else if(e.tag===19)Jc(e,n,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}r&=1}if(K(J,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Li(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Wo(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Li(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Wo(t,!0,n,null,i);break;case"together":Wo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ci(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Kt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Kt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Gy(e,t,n){switch(t.tag){case 3:Pp(t),nr();break;case 5:tp(t);break;case 1:_e(t.type)&&Pi(t);break;case 4:Zl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;K(Ai,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?Ep(e,t,n):(K(J,J.current&1),e=Et(e,t,n),e!==null?e.sibling:null);K(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Mp(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,Cp(e,t,n)}return Et(e,t,n)}var Ap,Xa,Dp,_p;Ap=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Xa=function(){};Dp=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,fn(ft.current);var i=null;switch(n){case"input":s=xa(e,s),r=xa(e,r),i=[];break;case"select":s=ne({},s,{value:void 0}),r=ne({},r,{value:void 0}),i=[];break;case"textarea":s=Sa(e,s),r=Sa(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ci)}Na(n,r);var o;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var l=s[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Qr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(l=s!=null?s[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(i=i||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Qr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Q("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};_p=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sr(e,t){if(!Z)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Qy(e,t,n){var r=t.pendingProps;switch(Hl(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 _e(t.type)&&Ti(),xe(t),null;case 3:return r=t.stateNode,sr(),q(De),q(ke),eu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Us(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(il(nt),nt=null))),Xa(e,t),xe(t),null;case 5:Jl(t);var s=fn(os.current);if(n=t.type,e!==null&&t.stateNode!=null)Dp(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return xe(t),null}if(e=fn(ft.current),Us(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ut]=t,r[ss]=i,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(s=0;s<Er.length;s++)Q(Er[s],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":lc(r,i),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Q("invalid",r);break;case"textarea":cc(r,i),Q("invalid",r)}Na(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&$s(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&$s(r.textContent,l,e),s=["children",""+l]):Qr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&Q("scroll",r)}switch(n){case"input":Ls(r),uc(r,i,!0);break;case"textarea":Ls(r),dc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ci)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=oh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[ss]=r,Ap(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ca(n,r),n){case"dialog":Q("cancel",e),Q("close",e),s=r;break;case"iframe":case"object":case"embed":Q("load",e),s=r;break;case"video":case"audio":for(s=0;s<Er.length;s++)Q(Er[s],e);s=r;break;case"source":Q("error",e),s=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),s=r;break;case"details":Q("toggle",e),s=r;break;case"input":lc(e,r),s=xa(e,r),Q("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ne({},r,{value:void 0}),Q("invalid",e);break;case"textarea":cc(e,r),s=Sa(e,r),Q("invalid",e);break;default:s=r}Na(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];i==="style"?uh(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&ah(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&qr(e,u):typeof u=="number"&&qr(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qr.hasOwnProperty(i)?u!=null&&i==="onScroll"&&Q("scroll",e):u!=null&&Al(e,i,u,o))}switch(n){case"input":Ls(e),uc(e,r,!1);break;case"textarea":Ls(e),dc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Qt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Qn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Qn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Ci)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)_p(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=fn(os.current),fn(ft.current),Us(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(i=r.nodeValue!==n)&&(e=Fe,e!==null))switch(e.tag){case 3:$s(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$s(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return xe(t),null;case 13:if(q(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&Oe!==null&&t.mode&1&&!(t.flags&128))Yh(),nr(),t.flags|=98560,i=!1;else if(i=Us(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[ut]=t}else nr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),i=!1}else nt!==null&&(il(nt),nt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?ce===0&&(ce=3):fu())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return sr(),Xa(e,t),e===null&&ns(t.stateNode.containerInfo),xe(t),null;case 10:return ql(t.type._context),xe(t),null;case 17:return _e(t.type)&&Ti(),xe(t),null;case 19:if(q(J),i=t.memoizedState,i===null)return xe(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Sr(i,!1);else{if(ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Li(e),o!==null){for(t.flags|=128,Sr(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(J,J.current&1|2),t.child}e=e.sibling}i.tail!==null&&oe()>or&&(t.flags|=128,r=!0,Sr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Li(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Z)return xe(t),null}else 2*oe()-i.renderingStartTime>or&&n!==1073741824&&(t.flags|=128,r=!0,Sr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=oe(),t.sibling=null,n=J.current,K(J,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return du(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function qy(e,t){switch(Hl(t),t.tag){case 1:return _e(t.type)&&Ti(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),q(De),q(ke),eu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jl(t),null;case 13:if(q(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(J),null;case 4:return sr(),null;case 10:return ql(t.type._context),null;case 22:case 23:return du(),null;case 24:return null;default:return null}}var Hs=!1,we=!1,Yy=typeof WeakSet=="function"?WeakSet:Set,D=null;function Bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){se(e,t,r)}else n.current=null}function Za(e,t,n){try{n()}catch(r){se(e,t,r)}}var ed=!1;function Xy(e,t){if(Va=Si,e=Oh(),bl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var g;h!==n||s!==0&&h.nodeType!==3||(l=o+s),h!==i||r!==0&&h.nodeType!==3||(u=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(g=h.firstChild)!==null;)f=h,h=g;for(;;){if(h===e)break t;if(f===n&&++c===s&&(l=o),f===i&&++d===r&&(u=o),(g=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=g}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(za={focusedElem:e,selectionRange:n},Si=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var j=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(j!==null){var y=j.memoizedProps,C=j.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:et(t.type,y),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(w){se(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return j=ed,ed=!1,j}function Ir(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Za(t,n,i)}s=s.next}while(s!==r)}}function io(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ja(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Lp(e){var t=e.alternate;t!==null&&(e.alternate=null,Lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[ss],delete t[Ia],delete t[Ly],delete t[Ry])),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 Rp(e){return e.tag===5||e.tag===3||e.tag===4}function td(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rp(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 el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ci));else if(r!==4&&(e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(tl(e,t,n),e=e.sibling;e!==null;)tl(e,t,n),e=e.sibling}var pe=null,tt=!1;function Dt(e,t,n){for(n=n.child;n!==null;)Vp(e,t,n),n=n.sibling}function Vp(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Xi,n)}catch{}switch(n.tag){case 5:we||Bn(n,t);case 6:var r=pe,s=tt;pe=null,Dt(e,t,n),pe=r,tt=s,pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(tt?(e=pe,n=n.stateNode,e.nodeType===8?Oo(e.parentNode,n):e.nodeType===1&&Oo(e,n),Jr(e)):Oo(pe,n.stateNode));break;case 4:r=pe,s=tt,pe=n.stateNode.containerInfo,tt=!0,Dt(e,t,n),pe=r,tt=s;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Za(n,t,o),s=s.next}while(s!==r)}Dt(e,t,n);break;case 1:if(!we&&(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){se(n,t,l)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Dt(e,t,n),we=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function nd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yy),t.forEach(function(r){var s=o0.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:pe=l.stateNode,tt=!1;break e;case 3:pe=l.stateNode.containerInfo,tt=!0;break e;case 4:pe=l.stateNode.containerInfo,tt=!0;break e}l=l.return}if(pe===null)throw Error(E(160));Vp(i,o,s),pe=null,tt=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){se(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zp(t,e),t=t.sibling}function zp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ze(t,e),at(e),r&4){try{Ir(3,e,e.return),io(3,e)}catch(y){se(e,e.return,y)}try{Ir(5,e,e.return)}catch(y){se(e,e.return,y)}}break;case 1:Ze(t,e),at(e),r&512&&n!==null&&Bn(n,n.return);break;case 5:if(Ze(t,e),at(e),r&512&&n!==null&&Bn(n,n.return),e.flags&32){var s=e.stateNode;try{qr(s,"")}catch(y){se(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&sh(s,i),Ca(l,o);var c=Ca(l,i);for(o=0;o<u.length;o+=2){var d=u[o],h=u[o+1];d==="style"?uh(s,h):d==="dangerouslySetInnerHTML"?ah(s,h):d==="children"?qr(s,h):Al(s,d,h,c)}switch(l){case"input":ja(s,i);break;case"textarea":ih(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?Qn(s,!!i.multiple,g,!1):f!==!!i.multiple&&(i.defaultValue!=null?Qn(s,!!i.multiple,i.defaultValue,!0):Qn(s,!!i.multiple,i.multiple?[]:"",!1))}s[ss]=i}catch(y){se(e,e.return,y)}}break;case 6:if(Ze(t,e),at(e),r&4){if(e.stateNode===null)throw Error(E(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){se(e,e.return,y)}}break;case 3:if(Ze(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Jr(t.containerInfo)}catch(y){se(e,e.return,y)}break;case 4:Ze(t,e),at(e);break;case 13:Ze(t,e),at(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(uu=oe())),r&4&&nd(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(we=(c=we)||d,Ze(t,e),we=c):Ze(t,e),at(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(h=D=d;D!==null;){switch(f=D,g=f.child,f.tag){case 0:case 11:case 14:case 15:Ir(4,f,f.return);break;case 1:Bn(f,f.return);var j=f.stateNode;if(typeof j.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,j.props=t.memoizedProps,j.state=t.memoizedState,j.componentWillUnmount()}catch(y){se(r,n,y)}}break;case 5:Bn(f,f.return);break;case 22:if(f.memoizedState!==null){sd(h);continue}}g!==null?(g.return=f,D=g):sd(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{s=h.stateNode,c?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,u=h.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=lh("display",o))}catch(y){se(e,e.return,y)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(y){se(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Ze(t,e),at(e),r&4&&nd(e);break;case 21:break;default:Ze(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rp(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(qr(s,""),r.flags&=-33);var i=td(e);tl(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=td(e);el(e,l,o);break;default:throw Error(E(161))}}catch(u){se(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Zy(e,t,n){D=e,Op(e)}function Op(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var s=D,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||Hs;if(!o){var l=s.alternate,u=l!==null&&l.memoizedState!==null||we;l=Hs;var c=we;if(Hs=o,(we=u)&&!c)for(D=s;D!==null;)o=D,u=o.child,o.tag===22&&o.memoizedState!==null?id(s):u!==null?(u.return=o,D=u):id(s);for(;i!==null;)D=i,Op(i),i=i.sibling;D=s,Hs=l,we=c}rd(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,D=i):rd(e)}}function rd(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:we||io(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!we)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&$c(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}$c(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Jr(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}we||t.flags&512&&Ja(t)}catch(f){se(t,t.return,f)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function sd(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function id(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{io(4,t)}catch(u){se(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){se(t,s,u)}}var i=t.return;try{Ja(t)}catch(u){se(t,i,u)}break;case 5:var o=t.return;try{Ja(t)}catch(u){se(t,o,u)}}}catch(u){se(t,t.return,u)}if(t===e){D=null;break}var l=t.sibling;if(l!==null){l.return=t.return,D=l;break}D=t.return}}var Jy=Math.ceil,zi=At.ReactCurrentDispatcher,au=At.ReactCurrentOwner,qe=At.ReactCurrentBatchConfig,U=0,he=null,le=null,ve=0,Re=0,$n=en(0),ce=0,cs=null,kn=0,oo=0,lu=0,Br=null,Me=null,uu=0,or=1/0,yt=null,Oi=!1,nl=null,Wt=null,Ks=!1,Ft=null,Fi=0,$r=0,rl=null,di=-1,fi=0;function Ce(){return U&6?oe():di!==-1?di:di=oe()}function Ht(e){return e.mode&1?U&2&&ve!==0?ve&-ve:zy.transition!==null?(fi===0&&(fi=wh()),fi):(e=H,e!==0||(e=window.event,e=e===void 0?16:Eh(e.type)),e):1}function st(e,t,n,r){if(50<$r)throw $r=0,rl=null,Error(E(185));ws(e,n,r),(!(U&2)||e!==he)&&(e===he&&(!(U&2)&&(oo|=n),ce===4&&zt(e,ve)),Le(e,r),n===1&&U===0&&!(t.mode&1)&&(or=oe()+500,no&&tn()))}function Le(e,t){var n=e.callbackNode;zg(e,t);var r=wi(e,e===he?ve:0);if(r===0)n!==null&&pc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&pc(n),t===1)e.tag===0?Vy(od.bind(null,e)):Gh(od.bind(null,e)),Dy(function(){!(U&6)&&tn()}),n=null;else{switch(Sh(r)){case 1:n=Vl;break;case 4:n=xh;break;case 16:n=ji;break;case 536870912:n=jh;break;default:n=ji}n=Hp(n,Fp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Fp(e,t){if(di=-1,fi=0,U&6)throw Error(E(327));var n=e.callbackNode;if(Jn()&&e.callbackNode!==n)return null;var r=wi(e,e===he?ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ii(e,r);else{t=r;var s=U;U|=2;var i=Bp();(he!==e||ve!==t)&&(yt=null,or=oe()+500,mn(e,t));do try{n0();break}catch(l){Ip(e,l)}while(!0);Ql(),zi.current=i,U=s,le!==null?t=0:(he=null,ve=0,t=ce)}if(t!==0){if(t===2&&(s=Aa(e),s!==0&&(r=s,t=sl(e,s))),t===1)throw n=cs,mn(e,0),zt(e,r),Le(e,oe()),n;if(t===6)zt(e,r);else{if(s=e.current.alternate,!(r&30)&&!e0(s)&&(t=Ii(e,r),t===2&&(i=Aa(e),i!==0&&(r=i,t=sl(e,i))),t===1))throw n=cs,mn(e,0),zt(e,r),Le(e,oe()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:an(e,Me,yt);break;case 3:if(zt(e,r),(r&130023424)===r&&(t=uu+500-oe(),10<t)){if(wi(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ce(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=Fa(an.bind(null,e,Me,yt),t);break}an(e,Me,yt);break;case 4:if(zt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-rt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Jy(r/1960))-r,10<r){e.timeoutHandle=Fa(an.bind(null,e,Me,yt),r);break}an(e,Me,yt);break;case 5:an(e,Me,yt);break;default:throw Error(E(329))}}}return Le(e,oe()),e.callbackNode===n?Fp.bind(null,e):null}function sl(e,t){var n=Br;return e.current.memoizedState.isDehydrated&&(mn(e,t).flags|=256),e=Ii(e,t),e!==2&&(t=Me,Me=n,t!==null&&il(t)),e}function il(e){Me===null?Me=e:Me.push.apply(Me,e)}function e0(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!it(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 zt(e,t){for(t&=~lu,t&=~oo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function od(e){if(U&6)throw Error(E(327));Jn();var t=wi(e,0);if(!(t&1))return Le(e,oe()),null;var n=Ii(e,t);if(e.tag!==0&&n===2){var r=Aa(e);r!==0&&(t=r,n=sl(e,r))}if(n===1)throw n=cs,mn(e,0),zt(e,t),Le(e,oe()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,an(e,Me,yt),Le(e,oe()),null}function cu(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(or=oe()+500,no&&tn())}}function Nn(e){Ft!==null&&Ft.tag===0&&!(U&6)&&Jn();var t=U;U|=1;var n=qe.transition,r=H;try{if(qe.transition=null,H=1,e)return e()}finally{H=r,qe.transition=n,U=t,!(U&6)&&tn()}}function du(){Re=$n.current,q($n)}function mn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ay(n)),le!==null)for(n=le.return;n!==null;){var r=n;switch(Hl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ti();break;case 3:sr(),q(De),q(ke),eu();break;case 5:Jl(r);break;case 4:sr();break;case 13:q(J);break;case 19:q(J);break;case 10:ql(r.type._context);break;case 22:case 23:du()}n=n.return}if(he=e,le=e=Kt(e.current,null),ve=Re=t,ce=0,cs=null,lu=oo=kn=0,Me=Br=null,dn!==null){for(t=0;t<dn.length;t++)if(n=dn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}dn=null}return e}function Ip(e,t){do{var n=le;try{if(Ql(),li.current=Vi,Ri){for(var r=te.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Ri=!1}if(Sn=0,fe=ue=te=null,Fr=!1,as=0,au.current=null,n===null||n.return===null){ce=1,cs=t,le=null;break}e:{var i=e,o=n.return,l=n,u=t;if(t=ve,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=Gc(o);if(g!==null){g.flags&=-257,Qc(g,o,l,i,t),g.mode&1&&Kc(i,c,t),t=g,u=c;var j=t.updateQueue;if(j===null){var y=new Set;y.add(u),t.updateQueue=y}else j.add(u);break e}else{if(!(t&1)){Kc(i,c,t),fu();break e}u=Error(E(426))}}else if(Z&&l.mode&1){var C=Gc(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Qc(C,o,l,i,t),Kl(ir(u,l));break e}}i=u=ir(u,l),ce!==4&&(ce=2),Br===null?Br=[i]:Br.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Sp(i,u,t);Bc(i,m);break e;case 1:l=u;var p=i.type,v=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Wt===null||!Wt.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=kp(i,l,t);Bc(i,w);break e}}i=i.return}while(i!==null)}Up(n)}catch(x){t=x,le===n&&n!==null&&(le=n=n.return);continue}break}while(!0)}function Bp(){var e=zi.current;return zi.current=Vi,e===null?Vi:e}function fu(){(ce===0||ce===3||ce===2)&&(ce=4),he===null||!(kn&268435455)&&!(oo&268435455)||zt(he,ve)}function Ii(e,t){var n=U;U|=2;var r=Bp();(he!==e||ve!==t)&&(yt=null,mn(e,t));do try{t0();break}catch(s){Ip(e,s)}while(!0);if(Ql(),U=n,zi.current=r,le!==null)throw Error(E(261));return he=null,ve=0,ce}function t0(){for(;le!==null;)$p(le)}function n0(){for(;le!==null&&!Pg();)$p(le)}function $p(e){var t=Wp(e.alternate,e,Re);e.memoizedProps=e.pendingProps,t===null?Up(e):le=t,au.current=null}function Up(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=qy(n,t),n!==null){n.flags&=32767,le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ce=6,le=null;return}}else if(n=Qy(n,t,Re),n!==null){le=n;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);ce===0&&(ce=5)}function an(e,t,n){var r=H,s=qe.transition;try{qe.transition=null,H=1,r0(e,t,n,r)}finally{qe.transition=s,H=r}return null}function r0(e,t,n,r){do Jn();while(Ft!==null);if(U&6)throw Error(E(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Og(e,i),e===he&&(le=he=null,ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ks||(Ks=!0,Hp(ji,function(){return Jn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=qe.transition,qe.transition=null;var o=H;H=1;var l=U;U|=4,au.current=null,Xy(e,n),zp(n,e),ky(za),Si=!!Va,za=Va=null,e.current=n,Zy(n),Eg(),U=l,H=o,qe.transition=i}else e.current=n;if(Ks&&(Ks=!1,Ft=e,Fi=s),i=e.pendingLanes,i===0&&(Wt=null),Dg(n.stateNode),Le(e,oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Oi)throw Oi=!1,e=nl,nl=null,e;return Fi&1&&e.tag!==0&&Jn(),i=e.pendingLanes,i&1?e===rl?$r++:($r=0,rl=e):$r=0,tn(),null}function Jn(){if(Ft!==null){var e=Sh(Fi),t=qe.transition,n=H;try{if(qe.transition=null,H=16>e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,Fi=0,U&6)throw Error(E(331));var s=U;for(U|=4,D=e.current;D!==null;){var i=D,o=i.child;if(D.flags&16){var l=i.deletions;if(l!==null){for(var u=0;u<l.length;u++){var c=l[u];for(D=c;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:Ir(8,d,i)}var h=d.child;if(h!==null)h.return=d,D=h;else for(;D!==null;){d=D;var f=d.sibling,g=d.return;if(Lp(d),d===c){D=null;break}if(f!==null){f.return=g,D=f;break}D=g}}}var j=i.alternate;if(j!==null){var y=j.child;if(y!==null){j.child=null;do{var C=y.sibling;y.sibling=null,y=C}while(y!==null)}}D=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,D=o;else e:for(;D!==null;){if(i=D,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ir(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,D=m;break e}D=i.return}}var p=e.current;for(D=p;D!==null;){o=D;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,D=v;else e:for(o=p;D!==null;){if(l=D,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:io(9,l)}}catch(x){se(l,l.return,x)}if(l===o){D=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,D=w;break e}D=l.return}}if(U=s,tn(),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Xi,e)}catch{}r=!0}return r}finally{H=n,qe.transition=t}}return!1}function ad(e,t,n){t=ir(n,t),t=Sp(e,t,1),e=bt(e,t,1),t=Ce(),e!==null&&(ws(e,1,t),Le(e,t))}function se(e,t,n){if(e.tag===3)ad(e,e,n);else for(;t!==null;){if(t.tag===3){ad(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wt===null||!Wt.has(r))){e=ir(n,e),e=kp(t,e,1),t=bt(t,e,1),e=Ce(),t!==null&&(ws(t,1,e),Le(t,e));break}}t=t.return}}function s0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ce(),e.pingedLanes|=e.suspendedLanes&n,he===e&&(ve&n)===n&&(ce===4||ce===3&&(ve&130023424)===ve&&500>oe()-uu?mn(e,0):lu|=n),Le(e,t)}function bp(e,t){t===0&&(e.mode&1?(t=zs,zs<<=1,!(zs&130023424)&&(zs=4194304)):t=1);var n=Ce();e=Pt(e,t),e!==null&&(ws(e,t,n),Le(e,n))}function i0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),bp(e,n)}function o0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),bp(e,n)}var Wp;Wp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,Gy(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,Z&&t.flags&1048576&&Qh(t,Mi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ci(e,t),e=t.pendingProps;var s=tr(t,ke.current);Zn(t,n),s=nu(null,t,r,e,s,n);var i=ru();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(i=!0,Pi(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Xl(t),s.updater=so,t.stateNode=s,s._reactInternals=t,Ha(t,r,e,n),t=Qa(null,t,r,!0,i,n)):(t.tag=0,Z&&i&&Wl(t),Ne(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ci(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=l0(r),e=et(r,e),s){case 0:t=Ga(null,t,r,e,n);break e;case 1:t=Xc(null,t,r,e,n);break e;case 11:t=qc(null,t,r,e,n);break e;case 14:t=Yc(null,t,r,et(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),Ga(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),Xc(e,t,r,s,n);case 3:e:{if(Pp(t),e===null)throw Error(E(387));r=t.pendingProps,i=t.memoizedState,s=i.element,ep(e,t),_i(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=ir(Error(E(423)),t),t=Zc(e,t,r,n,s);break e}else if(r!==s){s=ir(Error(E(424)),t),t=Zc(e,t,r,n,s);break e}else for(Oe=Ut(t.stateNode.containerInfo.firstChild),Fe=t,Z=!0,nt=null,n=Zh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nr(),r===s){t=Et(e,t,n);break e}Ne(e,t,r,n)}t=t.child}return t;case 5:return tp(t),e===null&&Ua(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Oa(r,s)?o=null:i!==null&&Oa(r,i)&&(t.flags|=32),Tp(e,t),Ne(e,t,o,n),t.child;case 6:return e===null&&Ua(t),null;case 13:return Ep(e,t,n);case 4:return Zl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rr(t,null,r,n):Ne(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),qc(e,t,r,s,n);case 7:return Ne(e,t,t.pendingProps,n),t.child;case 8:return Ne(e,t,t.pendingProps.children,n),t.child;case 12:return Ne(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,K(Ai,r._currentValue),r._currentValue=o,i!==null)if(it(i.value,o)){if(i.children===s.children&&!De.current){t=Et(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=St(-1,n&-n),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),ba(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(E(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ba(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ne(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Zn(t,n),s=Ye(s),r=r(s),t.flags|=1,Ne(e,t,r,n),t.child;case 14:return r=t.type,s=et(r,t.pendingProps),s=et(r.type,s),Yc(e,t,r,s,n);case 15:return Np(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:et(r,s),ci(e,t),t.tag=1,_e(r)?(e=!0,Pi(t)):e=!1,Zn(t,n),wp(t,r,s),Ha(t,r,s,n),Qa(null,t,r,!0,e,n);case 19:return Mp(e,t,n);case 22:return Cp(e,t,n)}throw Error(E(156,t.tag))};function Hp(e,t){return yh(e,t)}function a0(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qe(e,t,n,r){return new a0(e,t,n,r)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function l0(e){if(typeof e=="function")return hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_l)return 11;if(e===Ll)return 14}return 2}function Kt(e,t){var n=e.alternate;return n===null?(n=Qe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function hi(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")hu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Dn:return vn(n.children,s,i,t);case Dl:o=8,s|=8;break;case ma:return e=Qe(12,n,t,s|2),e.elementType=ma,e.lanes=i,e;case va:return e=Qe(13,n,t,s),e.elementType=va,e.lanes=i,e;case ga:return e=Qe(19,n,t,s),e.elementType=ga,e.lanes=i,e;case th:return ao(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jf:o=10;break e;case eh:o=9;break e;case _l:o=11;break e;case Ll:o=14;break e;case Lt:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Qe(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function vn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function ao(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=th,e.lanes=n,e.stateNode={isHidden:!1},e}function Ho(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function Ko(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function u0(e,t,n,r,s){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=To(0),this.expirationTimes=To(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=To(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function pu(e,t,n,r,s,i,o,l,u){return e=new u0(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Qe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xl(i),e}function c0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:An,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Kp(e){if(!e)return qt;e=e._reactInternals;e:{if(Pn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_e(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(_e(n))return Kh(e,n,t)}return t}function Gp(e,t,n,r,s,i,o,l,u){return e=pu(n,r,!0,e,s,i,o,l,u),e.context=Kp(null),n=e.current,r=Ce(),s=Ht(n),i=St(r,s),i.callback=t??null,bt(n,i,s),e.current.lanes=s,ws(e,s,r),Le(e,r),e}function lo(e,t,n,r){var s=t.current,i=Ce(),o=Ht(s);return n=Kp(n),t.context===null?t.context=n:t.pendingContext=n,t=St(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=bt(s,t,o),e!==null&&(st(e,s,o,i),ai(e,s,o)),o}function Bi(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 ld(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mu(e,t){ld(e,t),(e=e.alternate)&&ld(e,t)}function d0(){return null}var Qp=typeof reportError=="function"?reportError:function(e){console.error(e)};function vu(e){this._internalRoot=e}uo.prototype.render=vu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));lo(e,t,null,null)};uo.prototype.unmount=vu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nn(function(){lo(null,e,null,null)}),t[Tt]=null}};function uo(e){this._internalRoot=e}uo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ch();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Vt.length&&t!==0&&t<Vt[n].priority;n++);Vt.splice(n,0,e),n===0&&Ph(e)}};function gu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function co(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ud(){}function f0(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Bi(o);i.call(c)}}var o=Gp(t,r,e,0,null,!1,!1,"",ud);return e._reactRootContainer=o,e[Tt]=o.current,ns(e.nodeType===8?e.parentNode:e),Nn(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var c=Bi(u);l.call(c)}}var u=pu(e,0,!1,null,null,!1,!1,"",ud);return e._reactRootContainer=u,e[Tt]=u.current,ns(e.nodeType===8?e.parentNode:e),Nn(function(){lo(t,u,n,r)}),u}function fo(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var u=Bi(o);l.call(u)}}lo(t,o,e,s)}else o=f0(n,t,e,s,r);return Bi(o)}kh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Pr(t.pendingLanes);n!==0&&(zl(t,n|1),Le(t,oe()),!(U&6)&&(or=oe()+500,tn()))}break;case 13:Nn(function(){var r=Pt(e,1);if(r!==null){var s=Ce();st(r,e,1,s)}}),mu(e,1)}};Ol=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=Ce();st(t,e,134217728,n)}mu(e,134217728)}};Nh=function(e){if(e.tag===13){var t=Ht(e),n=Pt(e,t);if(n!==null){var r=Ce();st(n,e,t,r)}mu(e,t)}};Ch=function(){return H};Th=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};Pa=function(e,t,n){switch(t){case"input":if(ja(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=to(r);if(!s)throw Error(E(90));rh(r),ja(r,s)}}}break;case"textarea":ih(e,n);break;case"select":t=n.value,t!=null&&Qn(e,!!n.multiple,t,!1)}};fh=cu;hh=Nn;var h0={usingClientEntryPoint:!1,Events:[ks,Vn,to,ch,dh,cu]},kr={findFiberByHostInstance:cn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},p0={bundleType:kr.bundleType,version:kr.version,rendererPackageName:kr.rendererPackageName,rendererConfig:kr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:At.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vh(e),e===null?null:e.stateNode},findFiberByHostInstance:kr.findFiberByHostInstance||d0,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 Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{Xi=Gs.inject(p0),dt=Gs}catch{}}Ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h0;Ue.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gu(t))throw Error(E(200));return c0(e,t,null,n)};Ue.createRoot=function(e,t){if(!gu(e))throw Error(E(299));var n=!1,r="",s=Qp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=pu(e,1,!1,null,null,n,!1,r,s),e[Tt]=t.current,ns(e.nodeType===8?e.parentNode:e),new vu(t)};Ue.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(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=vh(t),e=e===null?null:e.stateNode,e};Ue.flushSync=function(e){return Nn(e)};Ue.hydrate=function(e,t,n){if(!co(t))throw Error(E(200));return fo(null,e,t,!0,n)};Ue.hydrateRoot=function(e,t,n){if(!gu(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Qp;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Gp(t,null,e,1,n??null,s,!1,i,o),e[Tt]=t.current,ns(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new uo(t)};Ue.render=function(e,t,n){if(!co(t))throw Error(E(200));return fo(null,e,t,!1,n)};Ue.unmountComponentAtNode=function(e){if(!co(e))throw Error(E(40));return e._reactRootContainer?(Nn(function(){fo(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1};Ue.unstable_batchedUpdates=cu;Ue.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!co(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return fo(e,t,n,!1,r)};Ue.version="18.3.1-next-f1338f8080-20240426";function qp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qp)}catch(e){console.error(e)}}qp(),qf.exports=Ue;var m0=qf.exports,cd=m0;ha.createRoot=cd.createRoot,ha.hydrateRoot=cd.hydrateRoot;/**
41
+ * @license lucide-react v0.441.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const v0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Yp=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
46
+ * @license lucide-react v0.441.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var g0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51
+ * @license lucide-react v0.441.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const y0=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...l},u)=>k.createElement("svg",{ref:u,...g0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Yp("lucide",s),...l},[...o.map(([c,d])=>k.createElement(c,d)),...Array.isArray(i)?i:[i]]));/**
56
+ * @license lucide-react v0.441.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const F=(e,t)=>{const n=k.forwardRef(({className:r,...s},i)=>k.createElement(y0,{ref:i,iconNode:t,className:Yp(`lucide-${v0(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
61
+ * @license lucide-react v0.441.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const gn=F("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
66
+ * @license lucide-react v0.441.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const ar=F("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
71
+ * @license lucide-react v0.441.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Xp=F("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
76
+ * @license lucide-react v0.441.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const x0=F("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
81
+ * @license lucide-react v0.441.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const ds=F("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
86
+ * @license lucide-react v0.441.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const Yt=F("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
91
+ * @license lucide-react v0.441.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const j0=F("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
96
+ * @license lucide-react v0.441.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const ht=F("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
101
+ * @license lucide-react v0.441.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const fs=F("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
106
+ * @license lucide-react v0.441.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const Go=F("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
111
+ * @license lucide-react v0.441.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const hs=F("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
116
+ * @license lucide-react v0.441.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const w0=F("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
121
+ * @license lucide-react v0.441.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const S0=F("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
126
+ * @license lucide-react v0.441.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Zp=F("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
131
+ * @license lucide-react v0.441.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const k0=F("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
136
+ * @license lucide-react v0.441.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const N0=F("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
141
+ * @license lucide-react v0.441.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const ct=F("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
146
+ * @license lucide-react v0.441.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const yu=F("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
151
+ * @license lucide-react v0.441.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const ol=F("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);/**
156
+ * @license lucide-react v0.441.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const C0=F("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
161
+ * @license lucide-react v0.441.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const ho=F("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
166
+ * @license lucide-react v0.441.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const T0=F("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
171
+ * @license lucide-react v0.441.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const dd=F("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
176
+ * @license lucide-react v0.441.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const P0=F("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
181
+ * @license lucide-react v0.441.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const fd=F("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
186
+ * @license lucide-react v0.441.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const yn=F("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
191
+ * @license lucide-react v0.441.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const Jp=F("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
196
+ * @license lucide-react v0.441.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const E0=F("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
201
+ * @license lucide-react v0.441.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const M0=F("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
206
+ * @license lucide-react v0.441.0 - ISC
207
+ *
208
+ * This source code is licensed under the ISC license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */const Cn=F("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
211
+ * @license lucide-react v0.441.0 - ISC
212
+ *
213
+ * This source code is licensed under the ISC license.
214
+ * See the LICENSE file in the root directory of this source tree.
215
+ */const xu=F("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
216
+ * @license lucide-react v0.441.0 - ISC
217
+ *
218
+ * This source code is licensed under the ISC license.
219
+ * See the LICENSE file in the root directory of this source tree.
220
+ */const em=F("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
221
+ * @license lucide-react v0.441.0 - ISC
222
+ *
223
+ * This source code is licensed under the ISC license.
224
+ * See the LICENSE file in the root directory of this source tree.
225
+ */const Qo=F("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
226
+ * @license lucide-react v0.441.0 - ISC
227
+ *
228
+ * This source code is licensed under the ISC license.
229
+ * See the LICENSE file in the root directory of this source tree.
230
+ */const Ur=F("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
231
+ * @license lucide-react v0.441.0 - ISC
232
+ *
233
+ * This source code is licensed under the ISC license.
234
+ * See the LICENSE file in the root directory of this source tree.
235
+ */const A0=F("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
236
+ * @license lucide-react v0.441.0 - ISC
237
+ *
238
+ * This source code is licensed under the ISC license.
239
+ * See the LICENSE file in the root directory of this source tree.
240
+ */const D0=F("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
241
+ * @license lucide-react v0.441.0 - ISC
242
+ *
243
+ * This source code is licensed under the ISC license.
244
+ * See the LICENSE file in the root directory of this source tree.
245
+ */const $i=F("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
246
+ * @license lucide-react v0.441.0 - ISC
247
+ *
248
+ * This source code is licensed under the ISC license.
249
+ * See the LICENSE file in the root directory of this source tree.
250
+ */const _0=F("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
251
+ * @license lucide-react v0.441.0 - ISC
252
+ *
253
+ * This source code is licensed under the ISC license.
254
+ * See the LICENSE file in the root directory of this source tree.
255
+ */const ju=F("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
256
+ * @license lucide-react v0.441.0 - ISC
257
+ *
258
+ * This source code is licensed under the ISC license.
259
+ * See the LICENSE file in the root directory of this source tree.
260
+ */const tm=F("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
261
+ * @license lucide-react v0.441.0 - ISC
262
+ *
263
+ * This source code is licensed under the ISC license.
264
+ * See the LICENSE file in the root directory of this source tree.
265
+ */const vt=F("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
266
+ * @license lucide-react v0.441.0 - ISC
267
+ *
268
+ * This source code is licensed under the ISC license.
269
+ * See the LICENSE file in the root directory of this source tree.
270
+ */const al=F("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
271
+ * @license lucide-react v0.441.0 - ISC
272
+ *
273
+ * This source code is licensed under the ISC license.
274
+ * See the LICENSE file in the root directory of this source tree.
275
+ */const wu=F("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
276
+ * @license lucide-react v0.441.0 - ISC
277
+ *
278
+ * This source code is licensed under the ISC license.
279
+ * See the LICENSE file in the root directory of this source tree.
280
+ */const hn=F("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Su=k.createContext({});function ku(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const po=k.createContext(null),Nu=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class L0 extends k.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function R0({children:e,isPresent:t}){const n=k.useId(),r=k.useRef(null),s=k.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=k.useContext(Nu);return k.useInsertionEffect(()=>{const{width:o,height:l,top:u,left:c}=s.current;if(t||!r.current||!o||!l)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
281
+ [data-motion-pop-id="${n}"] {
282
+ position: absolute !important;
283
+ width: ${o}px !important;
284
+ height: ${l}px !important;
285
+ top: ${u}px !important;
286
+ left: ${c}px !important;
287
+ }
288
+ `),()=>{document.head.removeChild(d)}},[t]),a.jsx(L0,{isPresent:t,childRef:r,sizeRef:s,children:k.cloneElement(e,{ref:r})})}const V0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o})=>{const l=ku(z0),u=k.useId(),c=k.useCallback(h=>{l.set(h,!0);for(const f of l.values())if(!f)return;r&&r()},[l,r]),d=k.useMemo(()=>({id:u,initial:t,isPresent:n,custom:s,onExitComplete:c,register:h=>(l.set(h,!1),()=>l.delete(h))}),i?[Math.random(),c]:[n,c]);return k.useMemo(()=>{l.forEach((h,f)=>l.set(f,!1))},[n]),k.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=a.jsx(R0,{isPresent:n,children:e})),a.jsx(po.Provider,{value:d,children:e})};function z0(){return new Map}function nm(e=!0){const t=k.useContext(po);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=k.useId();k.useEffect(()=>{e&&s(i)},[e]);const o=k.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,o]:[!0]}const Qs=e=>e.key||"";function hd(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const Cu=typeof window<"u",rm=Cu?k.useLayoutEffect:k.useEffect,O0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1})=>{const[l,u]=nm(o),c=k.useMemo(()=>hd(e),[e]),d=o&&!l?[]:c.map(Qs),h=k.useRef(!0),f=k.useRef(c),g=ku(()=>new Map),[j,y]=k.useState(c),[C,m]=k.useState(c);rm(()=>{h.current=!1,f.current=c;for(let w=0;w<C.length;w++){const x=Qs(C[w]);d.includes(x)?g.delete(x):g.get(x)!==!0&&g.set(x,!1)}},[C,d.length,d.join("-")]);const p=[];if(c!==j){let w=[...c];for(let x=0;x<C.length;x++){const S=C[x],N=Qs(S);d.includes(N)||(w.splice(x,0,S),p.push(S))}i==="wait"&&p.length&&(w=p),m(hd(w)),y(c);return}const{forceRender:v}=k.useContext(Su);return a.jsx(a.Fragment,{children:C.map(w=>{const x=Qs(w),S=o&&!l?!1:c===C||d.includes(x),N=()=>{if(g.has(x))g.set(x,!0);else return;let P=!0;g.forEach(_=>{_||(P=!1)}),P&&(v==null||v(),m(f.current),o&&(u==null||u()),r&&r())};return a.jsx(V0,{isPresent:S,initial:!h.current||n?void 0:!1,custom:S?void 0:t,presenceAffectsLayout:s,mode:i,onExitComplete:S?void 0:N,children:w},x)})})},Ie=e=>e;let sm=Ie;function Tu(e){let t;return()=>(t===void 0&&(t=e()),t)}const lr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},kt=e=>e*1e3,Nt=e=>e/1e3,F0={useManualTiming:!1};function I0(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(c){i.has(c)&&(u.schedule(c),e()),c(o)}const u={schedule:(c,d=!1,h=!1)=>{const g=h&&r?t:n;return d&&i.add(c),g.has(c)||g.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const qs=["read","resolveKeyframes","update","preRender","render","postRender"],B0=40;function im(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=qs.reduce((m,p)=>(m[p]=I0(i),m),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:h,postRender:f}=o,g=()=>{const m=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(m-s.timestamp,B0),1),s.timestamp=m,s.isProcessing=!0,l.process(s),u.process(s),c.process(s),d.process(s),h.process(s),f.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(g))},j=()=>{n=!0,r=!0,s.isProcessing||e(g)};return{schedule:qs.reduce((m,p)=>{const v=o[p];return m[p]=(w,x=!1,S=!1)=>(n||j(),v.schedule(w,x,S)),m},{}),cancel:m=>{for(let p=0;p<qs.length;p++)o[qs[p]].cancel(m)},state:s,steps:o}}const{schedule:Y,cancel:Xt,state:me,steps:qo}=im(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0),om=k.createContext({strict:!1}),pd={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"]},ur={};for(const e in pd)ur[e]={isEnabled:t=>pd[e].some(n=>!!t[n])};function $0(e){for(const t in e)ur[t]={...ur[t],...e[t]}}const U0=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 Ui(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||U0.has(e)}let am=e=>!Ui(e);function b0(e){e&&(am=t=>t.startsWith("on")?!Ui(t):e(t))}try{b0(require("@emotion/is-prop-valid").default)}catch{}function W0(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(am(s)||n===!0&&Ui(s)||!t&&!Ui(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function H0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,s)=>s==="create"?e:(t.has(s)||t.set(s,e(s)),t.get(s))})}const mo=k.createContext({});function ps(e){return typeof e=="string"||Array.isArray(e)}function vo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Pu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Eu=["initial",...Pu];function go(e){return vo(e.animate)||Eu.some(t=>ps(e[t]))}function lm(e){return!!(go(e)||e.variants)}function K0(e,t){if(go(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ps(n)?n:void 0,animate:ps(r)?r:void 0}}return e.inherit!==!1?t:{}}function G0(e){const{initial:t,animate:n}=K0(e,k.useContext(mo));return k.useMemo(()=>({initial:t,animate:n}),[md(t),md(n)])}function md(e){return Array.isArray(e)?e.join(" "):e}const Q0=Symbol.for("motionComponentSymbol");function Un(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function q0(e,t,n){return k.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Un(n)&&(n.current=r))},[t])}const Mu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Y0="framerAppearId",um="data-"+Mu(Y0),{schedule:Au}=im(queueMicrotask,!1),cm=k.createContext({});function X0(e,t,n,r,s){var i,o;const{visualElement:l}=k.useContext(mo),u=k.useContext(om),c=k.useContext(po),d=k.useContext(Nu).reducedMotion,h=k.useRef(null);r=r||u.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:l,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const f=h.current,g=k.useContext(cm);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&Z0(h.current,n,s,g);const j=k.useRef(!1);k.useInsertionEffect(()=>{f&&j.current&&f.update(n,c)});const y=n[um],C=k.useRef(!!y&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return rm(()=>{f&&(j.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Au.render(f.render),C.current&&f.animationState&&f.animationState.animateChanges())}),k.useEffect(()=>{f&&(!C.current&&f.animationState&&f.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,y)}),C.current=!1))}),f}function Z0(e,t,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:l,layoutScroll:u,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:dm(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||l&&Un(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:c})}function dm(e){if(e)return e.options.allowProjection!==!1?e.projection:dm(e.parent)}function J0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,o;e&&$0(e);function l(c,d){let h;const f={...k.useContext(Nu),...c,layoutId:e1(c)},{isStatic:g}=f,j=G0(c),y=r(c,g);if(!g&&Cu){t1();const C=n1(f);h=C.MeasureLayout,j.visualElement=X0(s,y,f,t,C.ProjectionNode)}return a.jsxs(mo.Provider,{value:j,children:[h&&j.visualElement?a.jsx(h,{visualElement:j.visualElement,...f}):null,n(s,c,q0(y,j.visualElement,d),y,g,j.visualElement)]})}l.displayName=`motion.${typeof s=="string"?s:`create(${(o=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&o!==void 0?o:""})`}`;const u=k.forwardRef(l);return u[Q0]=s,u}function e1({layoutId:e}){const t=k.useContext(Su).id;return t&&e!==void 0?t+"-"+e:e}function t1(e,t){k.useContext(om).strict}function n1(e){const{drag:t,layout:n}=ur;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const r1=["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 Du(e){return typeof e!="string"||e.includes("-")?!1:!!(r1.indexOf(e)>-1||/[A-Z]/u.test(e))}function vd(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _u(e,t,n,r){if(typeof t=="function"){const[s,i]=vd(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=vd(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const ll=e=>Array.isArray(e),s1=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),i1=e=>ll(e)?e[e.length-1]||0:e,Se=e=>!!(e&&e.getVelocity);function pi(e){const t=Se(e)?e.get():e;return s1(t)?t.toValue():t}function o1({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const o={latestValues:a1(r,s,i,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const fm=e=>(t,n)=>{const r=k.useContext(mo),s=k.useContext(po),i=()=>o1(e,t,r,s);return n?i():ku(i)};function a1(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=pi(i[f]);let{initial:o,animate:l}=e;const u=go(e),c=lm(e);t&&c&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?l:o;if(h&&typeof h!="boolean"&&!vo(h)){const f=Array.isArray(h)?h:[h];for(let g=0;g<f.length;g++){const j=_u(e,f[g]);if(j){const{transitionEnd:y,transition:C,...m}=j;for(const p in m){let v=m[p];if(Array.isArray(v)){const w=d?v.length-1:0;v=v[w]}v!==null&&(s[p]=v)}for(const p in y)s[p]=y[p]}}}return s}const pr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],En=new Set(pr),hm=e=>t=>typeof t=="string"&&t.startsWith(e),pm=hm("--"),l1=hm("var(--"),Lu=e=>l1(e)?u1.test(e.split("/*")[0].trim()):!1,u1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,mm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Mt=(e,t,n)=>n>t?t:n<e?e:n,mr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ms={...mr,transform:e=>Mt(0,1,e)},Ys={...mr,default:1},Cs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_t=Cs("deg"),pt=Cs("%"),V=Cs("px"),c1=Cs("vh"),d1=Cs("vw"),gd={...pt,parse:e=>pt.parse(e)/100,transform:e=>pt.transform(e*100)},f1={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V},h1={rotate:_t,rotateX:_t,rotateY:_t,rotateZ:_t,scale:Ys,scaleX:Ys,scaleY:Ys,scaleZ:Ys,skew:_t,skewX:_t,skewY:_t,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ms,originX:gd,originY:gd,originZ:V},yd={...mr,transform:Math.round},Ru={...f1,...h1,zIndex:yd,size:V,fillOpacity:ms,strokeOpacity:ms,numOctaves:yd},p1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},m1=pr.length;function v1(e,t,n){let r="",s=!0;for(let i=0;i<m1;i++){const o=pr[i],l=e[o];if(l===void 0)continue;let u=!0;if(typeof l=="number"?u=l===(o.startsWith("scale")?1:0):u=parseFloat(l)===0,!u||n){const c=mm(l,Ru[o]);if(!u){s=!1;const d=p1[o]||o;r+=`${d}(${c}) `}n&&(t[o]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Vu(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,l=!1;for(const u in t){const c=t[u];if(En.has(u)){o=!0;continue}else if(pm(u)){s[u]=c;continue}else{const d=mm(c,Ru[u]);u.startsWith("origin")?(l=!0,i[u]=d):r[u]=d}}if(t.transform||(o||n?r.transform=v1(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${u} ${c} ${d}`}}const g1={offset:"stroke-dashoffset",array:"stroke-dasharray"},y1={offset:"strokeDashoffset",array:"strokeDasharray"};function x1(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?g1:y1;e[i.offset]=V.transform(-r);const o=V.transform(t),l=V.transform(n);e[i.array]=`${o} ${l}`}function xd(e,t,n){return typeof e=="string"?e:V.transform(t+n*e)}function j1(e,t,n){const r=xd(t,e.x,e.width),s=xd(n,e.y,e.height);return`${r} ${s}`}function zu(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:o,pathSpacing:l=1,pathOffset:u=0,...c},d,h){if(Vu(e,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:g,dimensions:j}=e;f.transform&&(j&&(g.transform=f.transform),delete f.transform),j&&(s!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=j1(j,s!==void 0?s:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&x1(f,o,l,u,!1)}const Ou=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),vm=()=>({...Ou(),attrs:{}}),Fu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gm(e,{style:t,vars:n},r,s){Object.assign(e.style,t,s&&s.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const ym=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 xm(e,t,n,r){gm(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(ym.has(s)?s:Mu(s),t.attrs[s])}const bi={};function w1(e){Object.assign(bi,e)}function jm(e,{layout:t,layoutId:n}){return En.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bi[e]||e==="opacity")}function Iu(e,t,n){var r;const{style:s}=e,i={};for(const o in s)(Se(s[o])||t.style&&Se(t.style[o])||jm(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[o]=s[o]);return i}function wm(e,t,n){const r=Iu(e,t,n);for(const s in e)if(Se(e[s])||Se(t[s])){const i=pr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function S1(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const jd=["x","y","width","height","cx","cy","r"],k1={useVisualState:fm({scrapeMotionValuesFromProps:wm,createRenderState:vm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:s})=>{if(!n)return;let i=!!e.drag;if(!i){for(const l in s)if(En.has(l)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let l=0;l<jd.length;l++){const u=jd[l];e[u]!==t[u]&&(o=!0)}o&&Y.read(()=>{S1(n,r),Y.render(()=>{zu(r,s,Fu(n.tagName),e.transformTemplate),xm(n,r)})})}})},N1={useVisualState:fm({scrapeMotionValuesFromProps:Iu,createRenderState:Ou})};function Sm(e,t,n){for(const r in t)!Se(t[r])&&!jm(r,n)&&(e[r]=t[r])}function C1({transformTemplate:e},t){return k.useMemo(()=>{const n=Ou();return Vu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function T1(e,t){const n=e.style||{},r={};return Sm(r,n,e),Object.assign(r,C1(e,t)),r}function P1(e,t){const n={},r=T1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function E1(e,t,n,r){const s=k.useMemo(()=>{const i=vm();return zu(i,t,Fu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Sm(i,e.style,e),s.style={...i,...s.style}}return s}function M1(e=!1){return(n,r,s,{latestValues:i},o)=>{const u=(Du(n)?E1:P1)(r,i,o,n),c=W0(r,typeof n=="string",e),d=n!==k.Fragment?{...c,...u,ref:s}:{},{children:h}=r,f=k.useMemo(()=>Se(h)?h.get():h,[h]);return k.createElement(n,{...d,children:f})}}function A1(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Du(r)?k1:N1,preloadedFeatures:e,useRender:M1(s),createVisualElement:t,Component:r};return J0(o)}}function km(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function yo(e,t,n){const r=e.getProps();return _u(r,t,n!==void 0?n:r.custom,e)}const D1=Tu(()=>window.ScrollTimeline!==void 0);class _1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(s=>{if(D1()&&s.attachTimeline)return s.attachTimeline(t);if(typeof n=="function")return n(s)});return()=>{r.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class L1 extends _1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Bu(e,t){return e?e[t]||e.default||e:void 0}const ul=2e4;function Nm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ul;)t+=n,r=e.next(t);return t>=ul?1/0:t}function $u(e){return typeof e=="function"}function wd(e,t){e.timeline=t,e.onfinish=null}const Uu=e=>Array.isArray(e)&&typeof e[0]=="number",R1={linearEasing:void 0};function V1(e,t){const n=Tu(e);return()=>{var r;return(r=R1[t])!==null&&r!==void 0?r:n()}}const Wi=V1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Cm=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(lr(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function Tm(e){return!!(typeof e=="function"&&Wi()||!e||typeof e=="string"&&(e in cl||Wi())||Uu(e)||Array.isArray(e)&&e.every(Tm))}const Mr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mr([0,.65,.55,1]),circOut:Mr([.55,0,1,.45]),backIn:Mr([.31,.01,.66,-.59]),backOut:Mr([.33,1.53,.69,.99])};function Pm(e,t){if(e)return typeof e=="function"&&Wi()?Cm(e,t):Uu(e)?Mr(e):Array.isArray(e)?e.map(n=>Pm(n,t)||cl.easeOut):cl[e]}const Je={x:!1,y:!1};function Em(){return Je.x||Je.y}function z1(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;const i=(r=void 0)!==null&&r!==void 0?r:s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Mm(e,t){const n=z1(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Sd(e){return t=>{t.pointerType==="touch"||Em()||e(t)}}function O1(e,t,n={}){const[r,s,i]=Mm(e,n),o=Sd(l=>{const{target:u}=l,c=t(l);if(typeof c!="function"||!u)return;const d=Sd(h=>{c(h),u.removeEventListener("pointerleave",d)});u.addEventListener("pointerleave",d,s)});return r.forEach(l=>{l.addEventListener("pointerenter",o,s)}),i}const Am=(e,t)=>t?e===t?!0:Am(e,t.parentElement):!1,bu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,F1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function I1(e){return F1.has(e.tagName)||e.tabIndex!==-1}const Ar=new WeakSet;function kd(e){return t=>{t.key==="Enter"&&e(t)}}function Yo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const B1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=kd(()=>{if(Ar.has(n))return;Yo(n,"down");const s=kd(()=>{Yo(n,"up")}),i=()=>Yo(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Nd(e){return bu(e)&&!Em()}function $1(e,t,n={}){const[r,s,i]=Mm(e,n),o=l=>{const u=l.currentTarget;if(!Nd(l)||Ar.has(u))return;Ar.add(u);const c=t(l),d=(g,j)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!Nd(g)||!Ar.has(u))&&(Ar.delete(u),typeof c=="function"&&c(g,{success:j}))},h=g=>{d(g,n.useGlobalTarget||Am(u,g.target))},f=g=>{d(g,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return r.forEach(l=>{!I1(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,s),l.addEventListener("focus",c=>B1(c,s),s)}),i}function U1(e){return e==="x"||e==="y"?Je[e]?null:(Je[e]=!0,()=>{Je[e]=!1}):Je.x||Je.y?null:(Je.x=Je.y=!0,()=>{Je.x=Je.y=!1})}const Dm=new Set(["width","height","top","left","right","bottom",...pr]);let mi;function b1(){mi=void 0}const mt={now:()=>(mi===void 0&&mt.set(me.isProcessing||F0.useManualTiming?me.timestamp:performance.now()),mi),set:e=>{mi=e,queueMicrotask(b1)}};function Wu(e,t){e.indexOf(t)===-1&&e.push(t)}function Hu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ku{constructor(){this.subscriptions=[]}add(t){return Wu(this.subscriptions,t),()=>Hu(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function _m(e,t){return t?e*(1e3/t):0}const Cd=30,W1=e=>!isNaN(parseFloat(e));class H1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=mt.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=mt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=W1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ku);const r=this.events[t].add(n);return t==="change"?()=>{r(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=mt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Cd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Cd);return _m(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 vs(e,t){return new H1(e,t)}function K1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vs(n))}function G1(e,t){const n=yo(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const l=i1(i[o]);K1(e,o,l)}}function Q1(e){return!!(Se(e)&&e.add)}function dl(e,t){const n=e.getValue("willChange");if(Q1(n))return n.add(t)}function Lm(e){return e.props[um]}const Rm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q1=1e-7,Y1=12;function X1(e,t,n,r,s){let i,o,l=0;do o=t+(n-t)/2,i=Rm(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>q1&&++l<Y1);return o}function Ts(e,t,n,r){if(e===t&&n===r)return Ie;const s=i=>X1(i,0,1,e,n);return i=>i===0||i===1?i:Rm(s(i),t,r)}const Vm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zm=e=>t=>1-e(1-t),Om=Ts(.33,1.53,.69,.99),Gu=zm(Om),Fm=Vm(Gu),Im=e=>(e*=2)<1?.5*Gu(e):.5*(2-Math.pow(2,-10*(e-1))),Qu=e=>1-Math.sin(Math.acos(e)),Bm=zm(Qu),$m=Vm(Qu),Um=e=>/^0[^.\s]+$/u.test(e);function Z1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Um(e):!0}const br=e=>Math.round(e*1e5)/1e5,qu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function J1(e){return e==null}const ex=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Yu=(e,t)=>n=>!!(typeof n=="string"&&ex.test(n)&&n.startsWith(e)||t&&!J1(n)&&Object.prototype.hasOwnProperty.call(n,t)),bm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,l]=r.match(qu);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},tx=e=>Mt(0,255,e),Xo={...mr,transform:e=>Math.round(tx(e))},pn={test:Yu("rgb","red"),parse:bm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xo.transform(e)+", "+Xo.transform(t)+", "+Xo.transform(n)+", "+br(ms.transform(r))+")"};function nx(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const fl={test:Yu("#"),parse:nx,transform:pn.transform},bn={test:Yu("hsl","hue"),parse:bm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+pt.transform(br(t))+", "+pt.transform(br(n))+", "+br(ms.transform(r))+")"},je={test:e=>pn.test(e)||fl.test(e)||bn.test(e),parse:e=>pn.test(e)?pn.parse(e):bn.test(e)?bn.parse(e):fl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pn.transform(e):bn.transform(e)},rx=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function sx(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(qu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(rx))===null||n===void 0?void 0:n.length)||0)>0}const Wm="number",Hm="color",ix="var",ox="var(",Td="${}",ax=/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 gs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(ax,u=>(je.test(u)?(r.color.push(i),s.push(Hm),n.push(je.parse(u))):u.startsWith(ox)?(r.var.push(i),s.push(ix),n.push(u)):(r.number.push(i),s.push(Wm),n.push(parseFloat(u))),++i,Td)).split(Td);return{values:n,split:l,indexes:r,types:s}}function Km(e){return gs(e).values}function Gm(e){const{split:t,types:n}=gs(e),r=t.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],s[o]!==void 0){const l=n[o];l===Wm?i+=br(s[o]):l===Hm?i+=je.transform(s[o]):i+=s[o]}return i}}const lx=e=>typeof e=="number"?0:e;function ux(e){const t=Km(e);return Gm(e)(t.map(lx))}const Zt={test:sx,parse:Km,createTransformer:Gm,getAnimatableNone:ux},cx=new Set(["brightness","contrast","saturate","opacity"]);function dx(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qu)||[];if(!r)return e;const s=n.replace(r,"");let i=cx.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const fx=/\b([a-z-]*)\(.*?\)/gu,hl={...Zt,getAnimatableNone:e=>{const t=e.match(fx);return t?t.map(dx).join(" "):e}},hx={...Ru,color:je,backgroundColor:je,outlineColor:je,fill:je,stroke:je,borderColor:je,borderTopColor:je,borderRightColor:je,borderBottomColor:je,borderLeftColor:je,filter:hl,WebkitFilter:hl},Xu=e=>hx[e];function Qm(e,t){let n=Xu(e);return n!==hl&&(n=Zt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const px=new Set(["auto","none","0"]);function mx(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!px.has(i)&&gs(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Qm(n,s)}const Pd=e=>e===mr||e===V,Ed=(e,t)=>parseFloat(e.split(", ")[t]),Md=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Ed(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Ed(i[1],e):0}},vx=new Set(["x","y","z"]),gx=pr.filter(e=>!vx.has(e));function yx(e){const t=[];return gx.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const cr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Md(4,13),y:Md(5,14)};cr.translateX=cr.x;cr.translateY=cr.y;const xn=new Set;let pl=!1,ml=!1;function qm(){if(ml){const e=Array.from(xn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=yx(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var l;(l=r.getValue(i))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ml=!1,pl=!1,xn.forEach(e=>e.complete()),xn.clear()}function Ym(){xn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ml=!0)})}function xx(){Ym(),qm()}class Zu{constructor(t,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(xn.add(this),pl||(pl=!0,Y.read(Ym),Y.resolveKeyframes(qm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=s==null?void 0:s.get(),l=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),s&&o===void 0&&s.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),xn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,xn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Xm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),jx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wx(e){const t=jx.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function Zm(e,t,n=1){const[r,s]=wx(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return Xm(o)?parseFloat(o):o}return Lu(s)?Zm(s,t,n+1):s}const Jm=e=>t=>t.test(e),Sx={test:e=>e==="auto",parse:e=>e},ev=[mr,V,pt,_t,d1,c1,Sx],Ad=e=>ev.find(Jm(e));class tv extends Zu{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let c=t[u];if(typeof c=="string"&&(c=c.trim(),Lu(c))){const d=Zm(c,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Dm.has(r)||t.length!==2)return;const[s,i]=t,o=Ad(s),l=Ad(i);if(o!==l)if(Pd(o)&&Pd(l))for(let u=0;u<t.length;u++){const c=t[u];typeof c=="string"&&(t[u]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)Z1(t[s])&&r.push(s);r.length&&mx(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,l=s[o];s[o]=cr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,c])=>{n.getValue(u).set(c)}),this.resolveNoneKeyframes()}}const Dd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zt.test(e)||e==="0")&&!e.startsWith("url("));function kx(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Nx(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Dd(s,t),l=Dd(i,t);return!o||!l?!1:kx(e)||(n==="spring"||$u(n))&&r}const Cx=e=>e!==null;function xo(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(Cx),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const Tx=40;class nv{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=mt.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Tx?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&xx(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=mt.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:o,onComplete:l,onUpdate:u,isGenerator:c}=this.options;if(!c&&!Nx(t,r,s,i))if(o)this.options.duration=0;else{u&&u(xo(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ee=(e,t,n)=>e+(t-e)*n;function Zo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Px({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;s=Zo(u,l,e+1/3),i=Zo(u,l,e),o=Zo(u,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function Hi(e,t){return n=>n>0?t:e}const Jo=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Ex=[fl,pn,bn],Mx=e=>Ex.find(t=>t.test(e));function _d(e){const t=Mx(e);if(!t)return!1;let n=t.parse(e);return t===bn&&(n=Px(n)),n}const Ld=(e,t)=>{const n=_d(e),r=_d(t);if(!n||!r)return Hi(e,t);const s={...n};return i=>(s.red=Jo(n.red,r.red,i),s.green=Jo(n.green,r.green,i),s.blue=Jo(n.blue,r.blue,i),s.alpha=ee(n.alpha,r.alpha,i),pn.transform(s))},Ax=(e,t)=>n=>t(e(n)),Ps=(...e)=>e.reduce(Ax),vl=new Set(["none","hidden"]);function Dx(e,t){return vl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _x(e,t){return n=>ee(e,t,n)}function Ju(e){return typeof e=="number"?_x:typeof e=="string"?Lu(e)?Hi:je.test(e)?Ld:Vx:Array.isArray(e)?rv:typeof e=="object"?je.test(e)?Ld:Lx:Hi}function rv(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Ju(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function Lx(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Ju(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function Rx(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],l=e.indexes[o][s[o]],u=(n=e.values[l])!==null&&n!==void 0?n:0;r[i]=u,s[o]++}return r}const Vx=(e,t)=>{const n=Zt.createTransformer(t),r=gs(e),s=gs(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?vl.has(e)&&!s.values.length||vl.has(t)&&!r.values.length?Dx(e,t):Ps(rv(Rx(r,s),s.values),n):Hi(e,t)};function sv(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):Ju(e)(e,t)}const zx=5;function iv(e,t,n){const r=Math.max(t-zx,0);return _m(n-e(r),t-r)}const re={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},ea=.001;function Ox({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let s,i,o=1-t;o=Mt(re.minDamping,re.maxDamping,o),e=Mt(re.minDuration,re.maxDuration,Nt(e)),o<1?(s=c=>{const d=c*o,h=d*e,f=d-n,g=gl(c,o),j=Math.exp(-h);return ea-f/g*j},i=c=>{const h=c*o*e,f=h*n+n,g=Math.pow(o,2)*Math.pow(c,2)*e,j=Math.exp(-h),y=gl(Math.pow(c,2),o);return(-s(c)+ea>0?-1:1)*((f-g)*j)/y}):(s=c=>{const d=Math.exp(-c*e),h=(c-n)*e+1;return-ea+d*h},i=c=>{const d=Math.exp(-c*e),h=(n-c)*(e*e);return d*h});const l=5/e,u=Ix(s,i,l);if(e=kt(e),isNaN(u))return{stiffness:re.stiffness,damping:re.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const Fx=12;function Ix(e,t,n){let r=n;for(let s=1;s<Fx;s++)r=r-e(r)/t(r);return r}function gl(e,t){return e*Math.sqrt(1-t*t)}const Bx=["duration","bounce"],$x=["stiffness","damping","mass"];function Rd(e,t){return t.some(n=>e[n]!==void 0)}function Ux(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!Rd(e,$x)&&Rd(e,Bx))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Mt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:re.mass,stiffness:s,damping:i}}else{const n=Ox(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function ov(e=re.visualDuration,t=re.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:g}=Ux({...n,velocity:-Nt(n.velocity||0)}),j=f||0,y=c/(2*Math.sqrt(u*d)),C=o-i,m=Nt(Math.sqrt(u/d)),p=Math.abs(C)<5;r||(r=p?re.restSpeed.granular:re.restSpeed.default),s||(s=p?re.restDelta.granular:re.restDelta.default);let v;if(y<1){const x=gl(m,y);v=S=>{const N=Math.exp(-y*m*S);return o-N*((j+y*m*C)/x*Math.sin(x*S)+C*Math.cos(x*S))}}else if(y===1)v=x=>o-Math.exp(-m*x)*(C+(j+m*C)*x);else{const x=m*Math.sqrt(y*y-1);v=S=>{const N=Math.exp(-y*m*S),P=Math.min(x*S,300);return o-N*((j+y*m*C)*Math.sinh(P)+x*C*Math.cosh(P))/x}}const w={calculatedDuration:g&&h||null,next:x=>{const S=v(x);if(g)l.done=x>=h;else{let N=0;y<1&&(N=x===0?kt(j):iv(v,x,S));const P=Math.abs(N)<=r,_=Math.abs(o-S)<=s;l.done=P&&_}return l.value=l.done?o:S,l},toString:()=>{const x=Math.min(Nm(w),ul),S=Cm(N=>w.next(x*N).value,x,30);return x+"ms "+S}};return w}function Vd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:l,max:u,restDelta:c=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},g=P=>l!==void 0&&P<l||u!==void 0&&P>u,j=P=>l===void 0?u:u===void 0||Math.abs(l-P)<Math.abs(u-P)?l:u;let y=n*t;const C=h+y,m=o===void 0?C:o(C);m!==C&&(y=m-h);const p=P=>-y*Math.exp(-P/r),v=P=>m+p(P),w=P=>{const _=p(P),M=v(P);f.done=Math.abs(_)<=c,f.value=f.done?m:M};let x,S;const N=P=>{g(f.value)&&(x=P,S=ov({keyframes:[f.value,j(f.value)],velocity:iv(v,P,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return N(0),{calculatedDuration:null,next:P=>{let _=!1;return!S&&x===void 0&&(_=!0,w(P),N(P)),x!==void 0&&P>=x?S.next(P-x):(!_&&w(P),f)}}}const bx=Ts(.42,0,1,1),Wx=Ts(0,0,.58,1),av=Ts(.42,0,.58,1),Hx=e=>Array.isArray(e)&&typeof e[0]!="number",Kx={linear:Ie,easeIn:bx,easeInOut:av,easeOut:Wx,circIn:Qu,circInOut:$m,circOut:Bm,backIn:Gu,backInOut:Fm,backOut:Om,anticipate:Im},zd=e=>{if(Uu(e)){sm(e.length===4);const[t,n,r,s]=e;return Ts(t,n,r,s)}else if(typeof e=="string")return Kx[e];return e};function Gx(e,t,n){const r=[],s=n||sv,i=e.length-1;for(let o=0;o<i;o++){let l=s(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||Ie:t;l=Ps(u,l)}r.push(l)}return r}function Qx(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(sm(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Gx(t,r,s),u=l.length,c=d=>{if(o&&d<e[0])return t[0];let h=0;if(u>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=lr(e[h],e[h+1],d);return l[h](f)};return n?d=>c(Mt(e[0],e[i-1],d)):c}function qx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=lr(0,t,r);e.push(ee(n,1,s))}}function Yx(e){const t=[0];return qx(t,e.length-1),t}function Xx(e,t){return e.map(n=>n*t)}function Zx(e,t){return e.map(()=>t||av).splice(0,e.length-1)}function Ki({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Hx(r)?r.map(zd):zd(r),i={done:!1,value:t[0]},o=Xx(n&&n.length===t.length?n:Yx(t),e),l=Qx(o,t,{ease:Array.isArray(s)?s:Zx(t,s)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const Jx=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Y.update(t,!0),stop:()=>Xt(t),now:()=>me.isProcessing?me.timestamp:mt.now()}},ej={decay:Vd,inertia:Vd,tween:Ki,keyframes:Ki,spring:ov},tj=e=>e/100;class ec extends nv{constructor(t){super(t),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:u}=this.options;u&&u()};const{name:n,motionValue:r,element:s,keyframes:i}=this.options,o=(s==null?void 0:s.KeyframeResolver)||Zu,l=(u,c)=>this.onKeyframesResolved(u,c);this.resolver=new o(i,l,n,r,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=this.options,l=$u(n)?n:ej[n]||Ki;let u,c;l!==Ki&&typeof t[0]!="number"&&(u=Ps(tj,sv(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(c=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=Nm(d));const{calculatedDuration:h}=d,f=h+s,g=f*(r+1)-s;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:h,resolvedDuration:f,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:s,generator:i,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:g,repeatType:j,repeatDelay:y,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),p=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let v=this.currentTime,w=i;if(g){const P=Math.min(this.currentTime,d)/h;let _=Math.floor(P),M=P%1;!M&&P>=1&&(M=1),M===1&&_--,_=Math.min(_,g+1),!!(_%2)&&(j==="reverse"?(M=1-M,y&&(M-=y/h)):j==="mirror"&&(w=o)),v=Mt(0,1,M)*h}const x=p?{done:!1,value:u[0]}:w.next(v);l&&(x.value=l(x.value));let{done:S}=x;!p&&c!==null&&(S=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return N&&s!==void 0&&(x.value=xo(u,this.options,s)),C&&C(x.value),N&&this.finish(),x}get duration(){const{resolved:t}=this;return t?Nt(t.calculatedDuration):0}get time(){return Nt(this.currentTime)}set time(t){t=kt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Nt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Jx,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const nj=new Set(["opacity","clipPath","filter","transform"]);function rj(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:l="easeInOut",times:u}={}){const c={[t]:n};u&&(c.offset=u);const d=Pm(l,s);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const sj=Tu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gi=10,ij=2e4;function oj(e){return $u(e.type)||e.type==="spring"||!Tm(e.ease)}function aj(e,t){const n=new ec({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const s=[];let i=0;for(;!r.done&&i<ij;)r=n.sample(i),s.push(r.value),i+=Gi;return{times:void 0,keyframes:s,duration:i-Gi,ease:"linear"}}const lv={anticipate:Im,backInOut:Fm,circInOut:$m};function lj(e){return e in lv}class Od extends nv{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new tv(i,(o,l)=>this.onKeyframesResolved(o,l),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:o,motionValue:l,name:u,startTime:c}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&Wi()&&lj(i)&&(i=lv[i]),oj(this.options)){const{onComplete:h,onUpdate:f,motionValue:g,element:j,...y}=this.options,C=aj(t,y);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,s=C.times,i=C.ease,o="keyframes"}const d=rj(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(wd(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(xo(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Nt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Nt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=kt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ie;const{animation:r}=n;wd(r,t)}return Ie}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:s,type:i,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:h,element:f,...g}=this.options,j=new ec({...g,keyframes:r,duration:s,type:i,ease:o,times:l,isGenerator:!0}),y=kt(this.time);c.setWithVelocity(j.sample(y-Gi).value,j.sample(y).value,Gi)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:s,repeatType:i,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=n.owner.getProps();return sj()&&r&&nj.has(r)&&!u&&!c&&!s&&i!=="mirror"&&o!==0&&l!=="inertia"}}const uj={type:"spring",stiffness:500,damping:25,restSpeed:10},cj=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dj={type:"keyframes",duration:.8},fj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hj=(e,{keyframes:t})=>t.length>2?dj:En.has(e)?e.startsWith("scale")?cj(t[1]):uj:fj;function pj({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}const tc=(e,t,n,r={},s,i)=>o=>{const l=Bu(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-kt(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};pj(l)||(d={...d,...hj(e,d)}),d.duration&&(d.duration=kt(d.duration)),d.repeatDelay&&(d.repeatDelay=kt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!i&&t.get()!==void 0){const f=xo(d.keyframes,l);if(f!==void 0)return Y.update(()=>{d.onUpdate(f),d.onComplete()}),new L1([])}return!i&&Od.supports(d)?new Od(d):new ec(d)};function mj({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function uv(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(o=r);const c=[],d=s&&e.animationState&&e.animationState.getState()[s];for(const h in u){const f=e.getValue(h,(i=e.latestValues[h])!==null&&i!==void 0?i:null),g=u[h];if(g===void 0||d&&mj(d,h))continue;const j={delay:n,...Bu(o||{},h)};let y=!1;if(window.MotionHandoffAnimation){const m=Lm(e);if(m){const p=window.MotionHandoffAnimation(m,h,Y);p!==null&&(j.startTime=p,y=!0)}}dl(e,h),f.start(tc(h,f,g,e.shouldReduceMotion&&Dm.has(h)?{type:!1}:j,e,y));const C=f.animation;C&&c.push(C)}return l&&Promise.all(c).then(()=>{Y.update(()=>{l&&G1(e,l)})}),c}function yl(e,t,n={}){var r;const s=yo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(uv(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return vj(e,t,d+c,h,f,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,d]=u==="beforeChildren"?[o,l]:[l,o];return c().then(()=>d())}else return Promise.all([o(),l(n.delay)])}function vj(e,t,n=0,r=0,s=1,i){const o=[],l=(e.variantChildren.size-1)*r,u=s===1?(c=0)=>c*r:(c=0)=>l-c*r;return Array.from(e.variantChildren).sort(gj).forEach((c,d)=>{c.notify("AnimationStart",t),o.push(yl(c,t,{...i,delay:n+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(o)}function gj(e,t){return e.sortNodePosition(t)}function yj(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>yl(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=yl(e,t,n);else{const s=typeof t=="function"?yo(e,t,n.custom):t;r=Promise.all(uv(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const xj=Eu.length;function cv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?cv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<xj;n++){const r=Eu[n],s=e.props[r];(ps(s)||s===!1)&&(t[r]=s)}return t}const jj=[...Pu].reverse(),wj=Pu.length;function Sj(e){return t=>Promise.all(t.map(({animation:n,options:r})=>yj(e,n,r)))}function kj(e){let t=Sj(e),n=Fd(),r=!0;const s=u=>(c,d)=>{var h;const f=yo(e,d,u==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:g,transitionEnd:j,...y}=f;c={...c,...y,...j}}return c};function i(u){t=u(e)}function o(u){const{props:c}=e,d=cv(e.parent)||{},h=[],f=new Set;let g={},j=1/0;for(let C=0;C<wj;C++){const m=jj[C],p=n[m],v=c[m]!==void 0?c[m]:d[m],w=ps(v),x=m===u?p.isActive:null;x===!1&&(j=C);let S=v===d[m]&&v!==c[m]&&w;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),p.protectedKeys={...g},!p.isActive&&x===null||!v&&!p.prevProp||vo(v)||typeof v=="boolean")continue;const N=Nj(p.prevProp,v);let P=N||m===u&&p.isActive&&!S&&w||C>j&&w,_=!1;const M=Array.isArray(v)?v:[v];let $=M.reduce(s(m),{});x===!1&&($={});const{prevResolvedValues:I={}}=p,de={...I,...$},Ee=W=>{P=!0,f.has(W)&&(_=!0,f.delete(W)),p.needsAnimating[W]=!0;const T=e.getValue(W);T&&(T.liveStyle=!1)};for(const W in de){const T=$[W],A=I[W];if(g.hasOwnProperty(W))continue;let R=!1;ll(T)&&ll(A)?R=!km(T,A):R=T!==A,R?T!=null?Ee(W):f.add(W):T!==void 0&&f.has(W)?Ee(W):p.protectedKeys[W]=!0}p.prevProp=v,p.prevResolvedValues=$,p.isActive&&(g={...g,...$}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(S&&N)||_)&&h.push(...M.map(W=>({animation:W,options:{type:m}})))}if(f.size){const C={};f.forEach(m=>{const p=e.getBaseTarget(m),v=e.getValue(m);v&&(v.liveStyle=!0),C[m]=p??null}),h.push({animation:C})}let y=!!h.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(h):Promise.resolve()}function l(u,c){var d;if(n[u].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(u,c)}),n[u].isActive=c;const h=o(u);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Fd(),r=!0}}}function Nj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!km(t,e):!1}function sn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fd(){return{animate:sn(!0),whileInView:sn(),whileHover:sn(),whileTap:sn(),whileDrag:sn(),whileFocus:sn(),exit:sn()}}class nn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Cj extends nn{constructor(t){super(t),t.animationState||(t.animationState=kj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();vo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Tj=0;class Pj extends nn{constructor(){super(...arguments),this.id=Tj++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Ej={animation:{Feature:Cj},exit:{Feature:Pj}};function ys(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Es(e){return{point:{x:e.pageX,y:e.pageY}}}const Mj=e=>t=>bu(t)&&e(t,Es(t));function Wr(e,t,n,r){return ys(e,t,Mj(n),r)}const Id=(e,t)=>Math.abs(e-t);function Aj(e,t){const n=Id(e.x,t.x),r=Id(e.y,t.y);return Math.sqrt(n**2+r**2)}class dv{constructor(t,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!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 h=na(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=Aj(h.offset,{x:0,y:0})>=3;if(!f&&!g)return;const{point:j}=h,{timestamp:y}=me;this.history.push({...j,timestamp:y});const{onStart:C,onMove:m}=this.handlers;f||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ta(f,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:g,onSessionEnd:j,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=na(h.type==="pointercancel"?this.lastMoveEventInfo:ta(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),j&&j(h,C)},!bu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=Es(t),l=ta(o,this.transformPagePoint),{point:u}=l,{timestamp:c}=me;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,na(l,this.history)),this.removeListeners=Ps(Wr(this.contextWindow,"pointermove",this.handlePointerMove),Wr(this.contextWindow,"pointerup",this.handlePointerUp),Wr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Xt(this.updatePoint)}}function ta(e,t){return t?{point:t(e.point)}:e}function Bd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function na({point:e},t){return{point:e,delta:Bd(e,fv(t)),offset:Bd(e,Dj(t)),velocity:_j(t,.1)}}function Dj(e){return e[0]}function fv(e){return e[e.length-1]}function _j(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=fv(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>kt(t)));)n--;if(!r)return{x:0,y:0};const i=Nt(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const hv=1e-4,Lj=1-hv,Rj=1+hv,pv=.01,Vj=0-pv,zj=0+pv;function $e(e){return e.max-e.min}function Oj(e,t,n){return Math.abs(e-t)<=n}function $d(e,t,n,r=.5){e.origin=r,e.originPoint=ee(t.min,t.max,e.origin),e.scale=$e(n)/$e(t),e.translate=ee(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Lj&&e.scale<=Rj||isNaN(e.scale))&&(e.scale=1),(e.translate>=Vj&&e.translate<=zj||isNaN(e.translate))&&(e.translate=0)}function Hr(e,t,n,r){$d(e.x,t.x,n.x,r?r.originX:void 0),$d(e.y,t.y,n.y,r?r.originY:void 0)}function Ud(e,t,n){e.min=n.min+t.min,e.max=e.min+$e(t)}function Fj(e,t,n){Ud(e.x,t.x,n.x),Ud(e.y,t.y,n.y)}function bd(e,t,n){e.min=t.min-n.min,e.max=e.min+$e(t)}function Kr(e,t,n){bd(e.x,t.x,n.x),bd(e.y,t.y,n.y)}function Ij(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ee(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ee(n,e,r.max):Math.min(e,n)),e}function Wd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Bj(e,{top:t,left:n,bottom:r,right:s}){return{x:Wd(e.x,n,s),y:Wd(e.y,t,r)}}function Hd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function $j(e,t){return{x:Hd(e.x,t.x),y:Hd(e.y,t.y)}}function Uj(e,t){let n=.5;const r=$e(e),s=$e(t);return s>r?n=lr(t.min,t.max-r,e.min):r>s&&(n=lr(e.min,e.max-s,t.min)),Mt(0,1,n)}function bj(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const xl=.35;function Wj(e=xl){return e===!1?e=0:e===!0&&(e=xl),{x:Kd(e,"left","right"),y:Kd(e,"top","bottom")}}function Kd(e,t,n){return{min:Gd(e,t),max:Gd(e,n)}}function Gd(e,t){return typeof e=="number"?e:e[t]||0}const Qd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wn=()=>({x:Qd(),y:Qd()}),qd=()=>({min:0,max:0}),ie=()=>({x:qd(),y:qd()});function He(e){return[e("x"),e("y")]}function mv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Hj({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Kj(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ra(e){return e===void 0||e===1}function jl({scale:e,scaleX:t,scaleY:n}){return!ra(e)||!ra(t)||!ra(n)}function ln(e){return jl(e)||vv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function vv(e){return Yd(e.x)||Yd(e.y)}function Yd(e){return e&&e!=="0%"}function Qi(e,t,n){const r=e-n,s=t*r;return n+s}function Xd(e,t,n,r,s){return s!==void 0&&(e=Qi(e,s,r)),Qi(e,n,r)+t}function wl(e,t=0,n=1,r,s){e.min=Xd(e.min,t,n,r,s),e.max=Xd(e.max,t,n,r,s)}function gv(e,{x:t,y:n}){wl(e.x,t.translate,t.scale,t.originPoint),wl(e.y,n.translate,n.scale,n.originPoint)}const Zd=.999999999999,Jd=1.0000000000001;function Gj(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,o;for(let l=0;l<s;l++){i=n[l],o=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Kn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,gv(e,o)),r&&ln(i.latestValues)&&Kn(e,i.latestValues))}t.x<Jd&&t.x>Zd&&(t.x=1),t.y<Jd&&t.y>Zd&&(t.y=1)}function Hn(e,t){e.min=e.min+t,e.max=e.max+t}function ef(e,t,n,r,s=.5){const i=ee(e.min,e.max,s);wl(e,t,n,i,r)}function Kn(e,t){ef(e.x,t.x,t.scaleX,t.scale,t.originX),ef(e.y,t.y,t.scaleY,t.scale,t.originY)}function yv(e,t){return mv(Kj(e.getBoundingClientRect(),t))}function Qj(e,t,n){const r=yv(e,n),{scroll:s}=t;return s&&(Hn(r.x,s.offset.x),Hn(r.y,s.offset.y)),r}const xv=({current:e})=>e?e.ownerDocument.defaultView:null,qj=new WeakMap;class Yj{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Es(d).point)},i=(d,h)=>{const{drag:f,dragPropagation:g,onDragStart:j}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=U1(f),!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),He(C=>{let m=this.getAxisMotionValue(C).get()||0;if(pt.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const v=p.layout.layoutBox[C];v&&(m=$e(v)*(parseFloat(m)/100))}}this.originPoint[C]=m}),j&&Y.postRender(()=>j(d,h)),dl(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:j,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=Xj(C),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),y&&y(d,h)},l=(d,h)=>this.stop(d,h),u=()=>He(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new dv(t,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:xv(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Y.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:s}=this.getProps();if(!r||!Xs(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Ij(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Un(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Bj(s.layoutBox,n):this.constraints=!1,this.elastic=Wj(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&He(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=bj(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Un(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=Qj(r,s.root,this.visualElement.getTransformPagePoint());let o=$j(s.layout.layoutBox,i);if(n){const l=n(Hj(o));this.hasMutatedConstraints=!!l,l&&(o=mv(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=He(d=>{if(!Xs(d,n,this.currentDirection))return;let h=u&&u[d]||{};o&&(h={min:0,max:0});const f=s?200:1e6,g=s?40:1e7,j={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(d,j)});return Promise.all(c).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return dl(this.visualElement,t),r.start(tc(t,r,0,n,this.visualElement,!1))}stopAnimation(){He(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){He(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){He(n=>{const{drag:r}=this.getProps();if(!Xs(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:l}=s.layout.layoutBox[n];i.set(t[n]-ee(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Un(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};He(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const u=l.get();s[o]=Uj({min:u,max:u},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),He(o=>{if(!Xs(o,t,null))return;const l=this.getAxisMotionValue(o),{min:u,max:c}=this.constraints[o];l.set(ee(u,c,s[o]))})}addListeners(){if(!this.visualElement.current)return;qj.set(this.visualElement,this);const t=this.visualElement.current,n=Wr(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Un(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Y.read(r);const o=ys(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(He(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=xl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:l}}}function Xs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Xj(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Zj extends nn{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new Yj(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const tf=e=>(t,n)=>{e&&Y.postRender(()=>e(t,n))};class Jj extends nn{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new dv(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xv(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:tf(t),onStart:tf(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&Y.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=Wr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const vi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Nr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=nf(e,t.target.x),r=nf(e,t.target.y);return`${n}% ${r}%`}},ew={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=Zt.parse(e);if(s.length>5)return r;const i=Zt.createTransformer(e),o=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;s[0+o]/=l,s[1+o]/=u;const c=ee(l,u,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}};class tw extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;w1(nw),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),vi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,s||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Y.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Au.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=t;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function jv(e){const[t,n]=nm(),r=k.useContext(Su);return a.jsx(tw,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(cm),isPresent:t,safeToRemove:n})}const nw={borderRadius:{...Nr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nr,borderTopRightRadius:Nr,borderBottomLeftRadius:Nr,borderBottomRightRadius:Nr,boxShadow:ew};function rw(e,t,n){const r=Se(e)?e:vs(e);return r.start(tc("",r,t,n)),r.animation}function sw(e){return e instanceof SVGElement&&e.tagName!=="svg"}const iw=(e,t)=>e.depth-t.depth;class ow{constructor(){this.children=[],this.isDirty=!1}add(t){Wu(this.children,t),this.isDirty=!0}remove(t){Hu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iw),this.isDirty=!1,this.children.forEach(t)}}function aw(e,t){const n=mt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(Xt(r),e(i-t))};return Y.read(r,!0),()=>Xt(r)}const wv=["TopLeft","TopRight","BottomLeft","BottomRight"],lw=wv.length,rf=e=>typeof e=="string"?parseFloat(e):e,sf=e=>typeof e=="number"||V.test(e);function uw(e,t,n,r,s,i){s?(e.opacity=ee(0,n.opacity!==void 0?n.opacity:1,cw(r)),e.opacityExit=ee(t.opacity!==void 0?t.opacity:1,0,dw(r))):i&&(e.opacity=ee(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<lw;o++){const l=`border${wv[o]}Radius`;let u=of(t,l),c=of(n,l);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||sf(u)===sf(c)?(e[l]=Math.max(ee(rf(u),rf(c),r),0),(pt.test(c)||pt.test(u))&&(e[l]+="%")):e[l]=c}(t.rotate||n.rotate)&&(e.rotate=ee(t.rotate||0,n.rotate||0,r))}function of(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const cw=Sv(0,.5,Bm),dw=Sv(.5,.95,Ie);function Sv(e,t,n){return r=>r<e?0:r>t?1:n(lr(e,t,r))}function af(e,t){e.min=t.min,e.max=t.max}function We(e,t){af(e.x,t.x),af(e.y,t.y)}function lf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uf(e,t,n,r,s){return e-=t,e=Qi(e,1/n,r),s!==void 0&&(e=Qi(e,1/s,r)),e}function fw(e,t=0,n=1,r=.5,s,i=e,o=e){if(pt.test(t)&&(t=parseFloat(t),t=ee(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=ee(i.min,i.max,r);e===i&&(l-=t),e.min=uf(e.min,t,n,l,s),e.max=uf(e.max,t,n,l,s)}function cf(e,t,[n,r,s],i,o){fw(e,t[n],t[r],t[s],t.scale,i,o)}const hw=["x","scaleX","originX"],pw=["y","scaleY","originY"];function df(e,t,n,r){cf(e.x,t,hw,n?n.x:void 0,r?r.x:void 0),cf(e.y,t,pw,n?n.y:void 0,r?r.y:void 0)}function ff(e){return e.translate===0&&e.scale===1}function kv(e){return ff(e.x)&&ff(e.y)}function hf(e,t){return e.min===t.min&&e.max===t.max}function mw(e,t){return hf(e.x,t.x)&&hf(e.y,t.y)}function pf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Nv(e,t){return pf(e.x,t.x)&&pf(e.y,t.y)}function mf(e){return $e(e.x)/$e(e.y)}function vf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class vw{constructor(){this.members=[]}add(t){Wu(this.members,t),t.scheduleRender()}remove(t){if(Hu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(s=>t===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function gw(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:h,rotateY:f,skewX:g,skewY:j}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),g&&(r+=`skewX(${g}deg) `),j&&(r+=`skewY(${j}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const un={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Dr=typeof window<"u"&&window.MotionDebug!==void 0,sa=["","X","Y","Z"],yw={visibility:"hidden"},gf=1e3;let xw=0;function ia(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Cv(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Lm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Y,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Cv(r)}function Tv({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},l=t==null?void 0:t()){this.id=xw++,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,Dr&&(un.totalNodes=un.resolvedTargetDeltas=un.recalculatedProjection=0),this.nodes.forEach(Sw),this.nodes.forEach(Pw),this.nodes.forEach(Ew),this.nodes.forEach(kw),Dr&&window.MotionDebug.record(un)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new ow)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Ku),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const u=this.eventHandlers.get(o);u&&u.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=sw(o),this.instance=o;const{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(c||u)&&(this.isLayoutDirty=!0),e){let h;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=aw(f,250),vi.hasAnimatedSinceResize&&(vi.hasAnimatedSinceResize=!1,this.nodes.forEach(xf))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:g,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||Lw,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!Nv(this.targetLayout,j)||g,v=!f&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,v);const w={...Bu(y,"layout"),onPlay:C,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||xf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Xt(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:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Cv(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(yf);return}this.isUpdating||this.nodes.forEach(Cw),this.isUpdating=!1,this.nodes.forEach(Tw),this.nodes.forEach(jw),this.nodes.forEach(ww),this.clearAllSnapshots();const l=mt.now();me.delta=Mt(0,1e3/60,l-me.timestamp),me.timestamp=l,me.isProcessing=!0,qo.update.process(me),qo.preRender.process(me),qo.render.process(me),me.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Au.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nw),this.sharedNodes.forEach(Aw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!kv(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;o&&(l||ln(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return o&&(u=this.removeTransform(u)),Rw(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return ie();const u=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Vw))){const{scroll:d}=this.root;d&&(Hn(u.x,d.offset.x),Hn(u.y,d.offset.y))}return u}removeElementScroll(o){var l;const u=ie();if(We(u,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return u;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:h,options:f}=d;d!==this.root&&h&&f.layoutScroll&&(h.wasRoot&&We(u,o),Hn(u.x,h.offset.x),Hn(u.y,h.offset.y))}return u}applyTransform(o,l=!1){const u=ie();We(u,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Kn(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),ln(d.latestValues)&&Kn(u,d.latestValues)}return ln(this.latestValues)&&Kn(u,this.latestValues),u}removeTransform(o){const l=ie();We(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!ln(c.latestValues))continue;jl(c.latestValues)&&c.updateSnapshot();const d=ie(),h=c.measurePageBox();We(d,h),df(l,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return ln(this.latestValues)&&df(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==me.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==u;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=me.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),Kr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),We(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Fj(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):We(this.target,this.layout.layoutBox),gv(this.target,this.targetDelta)):We(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),Kr(this.relativeTargetOrigin,this.target,g.target),We(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Dr&&un.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||jl(this.parent.latestValues)||vv(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 o;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let c=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(c=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===me.timestamp&&(c=!1),c)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;We(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,g=this.treeScale.y;Gj(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=ie());const{target:j}=l;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(lf(this.prevProjectionDelta.x,this.projectionDelta.x),lf(this.prevProjectionDelta.y,this.projectionDelta.y)),Hr(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!vf(this.projectionDelta.x,this.prevProjectionDelta.x)||!vf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j)),Dr&&un.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Wn(),this.projectionDelta=Wn(),this.projectionDeltaWithTransform=Wn()}setAnimationOrigin(o,l=!1){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},h=Wn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=ie(),g=u?u.source:void 0,j=this.layout?this.layout.source:void 0,y=g!==j,C=this.getStack(),m=!C||C.members.length<=1,p=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(_w));this.animationProgress=0;let v;this.mixTargetDelta=w=>{const x=w/1e3;jf(h.x,o.x,x),jf(h.y,o.y,x),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Kr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Dw(this.relativeTarget,this.relativeTargetOrigin,f,x),v&&mw(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=ie()),We(v,this.relativeTarget)),y&&(this.animationValues=d,uw(d,c,this.latestValues,x,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Xt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{vi.hasAnimatedSinceResize=!0,this.currentAnimation=rw(0,gf,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=o;if(!(!l||!u||!c)){if(this!==o&&this.layout&&c&&Pv(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||ie();const h=$e(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+h;const f=$e(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+f}We(l,u),Kn(l,d),Hr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new vw),this.sharedNodes.get(o).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:u}=o;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&ia("z",o,c,this.animationValues);for(let d=0;d<sa.length;d++)ia(`rotate${sa[d]}`,o,c,this.animationValues),ia(`skew${sa[d]}`,o,c,this.animationValues);o.render();for(const d in c)o.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);o.scheduleRender()}getProjectionStyles(o){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return yw;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=pi(o==null?void 0:o.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=pi(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!ln(this.latestValues)&&(y.transform=d?d({},""):"none",this.hasProjected=!1),y}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=gw(this.projectionDeltaWithTransform,this.treeScale,f),d&&(c.transform=d(f,c.transform));const{x:g,y:j}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${j.origin*100}% 0`,h.animationValues?c.opacity=h===this?(u=(l=f.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in bi){if(f[y]===void 0)continue;const{correct:C,applyTo:m}=bi[y],p=c.transform==="none"?f[y]:C(f[y],h);if(m){const v=m.length;for(let w=0;w<v;w++)c[m[w]]=p}else c[y]=p}return this.options.layoutId&&(c.pointerEvents=h===this?pi(o==null?void 0:o.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(yf),this.root.sharedNodes.clear()}}}function jw(e){e.updateLayout()}function ww(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:s}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?He(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],g=$e(f);f.min=r[h].min,f.max=f.min+g}):Pv(i,n.layoutBox,r)&&He(h=>{const f=o?n.measuredBox[h]:n.layoutBox[h],g=$e(r[h]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const l=Wn();Hr(l,r,n.layoutBox);const u=Wn();o?Hr(u,e.applyTransform(s,!0),n.measuredBox):Hr(u,r,n.layoutBox);const c=!kv(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:g}=h;if(f&&g){const j=ie();Kr(j,n.layoutBox,f.layoutBox);const y=ie();Kr(y,r,g.layoutBox),Nv(j,y)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=j,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:l,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Sw(e){Dr&&un.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function kw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Nw(e){e.clearSnapshot()}function yf(e){e.clearMeasurements()}function Cw(e){e.isLayoutDirty=!1}function Tw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Pw(e){e.resolveTargetDelta()}function Ew(e){e.calcProjection()}function Mw(e){e.resetSkewAndRotation()}function Aw(e){e.removeLeadSnapshot()}function jf(e,t,n){e.translate=ee(t.translate,0,n),e.scale=ee(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wf(e,t,n,r){e.min=ee(t.min,n.min,r),e.max=ee(t.max,n.max,r)}function Dw(e,t,n,r){wf(e.x,t.x,n.x,r),wf(e.y,t.y,n.y,r)}function _w(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Lw={duration:.45,ease:[.4,0,.1,1]},Sf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),kf=Sf("applewebkit/")&&!Sf("chrome/")?Math.round:Ie;function Nf(e){e.min=kf(e.min),e.max=kf(e.max)}function Rw(e){Nf(e.x),Nf(e.y)}function Pv(e,t,n){return e==="position"||e==="preserve-aspect"&&!Oj(mf(t),mf(n),.2)}function Vw(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const zw=Tv({attachResizeListener:(e,t)=>ys(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oa={current:void 0},Ev=Tv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oa.current){const e=new zw({});e.mount(window),e.setOptions({layoutScroll:!0}),oa.current=e}return oa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ow={pan:{Feature:Jj},drag:{Feature:Zj,ProjectionNode:Ev,MeasureLayout:jv}};function Cf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Y.postRender(()=>i(t,Es(t)))}class Fw extends nn{mount(){const{current:t}=this.node;t&&(this.unmount=O1(t,n=>(Cf(this.node,n,"Start"),r=>Cf(this.node,r,"End"))))}unmount(){}}class Iw extends nn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Ps(ys(this.node.current,"focus",()=>this.onFocus()),ys(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Tf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Y.postRender(()=>i(t,Es(t)))}class Bw extends nn{mount(){const{current:t}=this.node;t&&(this.unmount=$1(t,n=>(Tf(this.node,n,"Start"),(r,{success:s})=>Tf(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Sl=new WeakMap,aa=new WeakMap,$w=e=>{const t=Sl.get(e.target);t&&t(e)},Uw=e=>{e.forEach($w)};function bw({root:e,...t}){const n=e||document;aa.has(n)||aa.set(n,{});const r=aa.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(Uw,{root:e,...t})),r[s]}function Ww(e,t,n){const r=bw(t);return Sl.set(e,n),r.observe(e),()=>{Sl.delete(e),r.unobserve(e)}}const Hw={some:0,all:1};class Kw extends nn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:Hw[s]},l=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=c?d:h;f&&f(u)};return Ww(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Gw(t,n))&&this.startObserver()}unmount(){}}function Gw({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Qw={inView:{Feature:Kw},tap:{Feature:Bw},focus:{Feature:Iw},hover:{Feature:Fw}},qw={layout:{ProjectionNode:Ev,MeasureLayout:jv}},kl={current:null},Mv={current:!1};function Yw(){if(Mv.current=!0,!!Cu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>kl.current=e.matches;e.addListener(t),t()}else kl.current=!1}const Xw=[...ev,je,Zt],Zw=e=>Xw.find(Jm(e)),Pf=new WeakMap;function Jw(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Se(s))e.addValue(r,s);else if(Se(i))e.addValue(r,vs(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,vs(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Ef=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zu,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 g=mt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Y.render(this.render,!1,!0))};const{latestValues:u,renderState:c,onUpdate:d}=o;this.onUpdate=d,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=go(n),this.isVariantNode=lm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in f){const j=f[g];u[g]!==void 0&&Se(j)&&j.set(u[g],!1)}}mount(t){this.current=t,Pf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Mv.current||Yw(),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(){Pf.delete(this.current),this.projection&&this.projection.unmount(),Xt(this.notifyUpdate),Xt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=En.has(t),s=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Y.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ur){const n=ur[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ef.length;r++){const s=Ef[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Jw(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=vs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(Xm(s)||Um(s))?s=parseFloat(s):!Zw(s)&&Zt.test(n)&&(s=Qm(t,n)),this.setBaseTarget(t,Se(s)?s.get():s)),Se(s)?s.get():s}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let s;if(typeof r=="string"||typeof r=="object"){const o=_u(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Se(i)?i:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ku),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Av extends eS{constructor(){super(...arguments),this.KeyframeResolver=tv}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function tS(e){return window.getComputedStyle(e)}class nS extends Av{constructor(){super(...arguments),this.type="html",this.renderInstance=gm}readValueFromInstance(t,n){if(En.has(n)){const r=Xu(n);return r&&r.default||0}else{const r=tS(t),s=(pm(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return yv(t,n)}build(t,n,r){Vu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Iu(t,n,r)}}class rS extends Av{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(En.has(n)){const r=Xu(n);return r&&r.default||0}return n=ym.has(n)?n:Mu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return wm(t,n,r)}build(t,n,r){zu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){xm(t,n,r,s)}mount(t){this.isSVGTag=Fu(t.tagName),super.mount(t)}}const sS=(e,t)=>Du(e)?new rS(t):new nS(t,{allowProjection:e!==k.Fragment}),iS=A1({...Ej,...Qw,...Ow,...qw},sS),gt=H0(iS);function Mf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oS(e){if(Array.isArray(e))return e}function aS(e,t,n){return(t=pS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,o,l=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(d){c=!0,s=d}finally{try{if(!u&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw s}}return l}}function uS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
289
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Df(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Af(Object(n),!0).forEach(function(r){aS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cS(e,t){if(e==null)return{};var n,r,s=dS(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(s[n]=e[n])}return s}function dS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fS(e,t){return oS(e)||lS(e,t)||mS(e,t)||uS()}function hS(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pS(e){var t=hS(e,"string");return typeof t=="symbol"?t:t+""}function mS(e,t){if(e){if(typeof e=="string")return Mf(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mf(e,t):void 0}}function vS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_f(Object(n),!0).forEach(function(r){vS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(s,i){return i(s)},r)}}function _r(e){return function t(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return s.length>=e.length?e.apply(this,s):function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return t.apply(n,[].concat(s,l))}}}function qi(e){return{}.toString.call(e).includes("Object")}function yS(e){return!Object.keys(e).length}function xs(e){return typeof e=="function"}function xS(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function jS(e,t){return qi(t)||Gt("changeType"),Object.keys(t).some(function(n){return!xS(e,n)})&&Gt("changeField"),t}function wS(e){xs(e)||Gt("selectorType")}function SS(e){xs(e)||qi(e)||Gt("handlerType"),qi(e)&&Object.values(e).some(function(t){return!xs(t)})&&Gt("handlersType")}function kS(e){e||Gt("initialIsRequired"),qi(e)||Gt("initialType"),yS(e)&&Gt("initialContent")}function NS(e,t){throw new Error(e[t]||e.default)}var CS={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Gt=_r(NS)(CS),Zs={changes:jS,selector:wS,handler:SS,initial:kS};function TS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zs.initial(e),Zs.handler(t);var n={current:e},r=_r(MS)(n,t),s=_r(ES)(n),i=_r(Zs.changes)(e),o=_r(PS)(n);function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return Zs.selector(c),c(n.current)}function u(c){gS(r,s,i,o)(c)}return[l,u]}function PS(e,t){return xs(t)?t(e.current):t}function ES(e,t){return e.current=Lf(Lf({},e.current),t),t}function MS(e,t,n){return xs(t)?t(e.current):Object.keys(n).forEach(function(r){var s;return(s=t[r])===null||s===void 0?void 0:s.call(t,e.current[r])}),n}var AS={create:TS},DS={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function _S(e){return function t(){for(var n=this,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return s.length>=e.length?e.apply(this,s):function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return t.apply(n,[].concat(s,l))}}}function LS(e){return{}.toString.call(e).includes("Object")}function RS(e){return e||Rf("configIsRequired"),LS(e)||Rf("configType"),e.urls?(VS(),{paths:{vs:e.urls.monacoBase}}):e}function VS(){console.warn(Dv.deprecation)}function zS(e,t){throw new Error(e[t]||e.default)}var Dv={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
290
+ You are using deprecated way of configuration.
291
+
292
+ Instead of using
293
+ monaco.config({ urls: { monacoBase: '...' } })
294
+ use
295
+ monaco.config({ paths: { vs: '...' } })
296
+
297
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
298
+ `},Rf=_S(zS)(Dv),OS={config:RS},FS=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(s){return n.reduceRight(function(i,o){return o(i)},s)}};function _v(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],_v(e[n],t[n]))}),Df(Df({},e),t)}var IS={type:"cancelation",msg:"operation is manually canceled"};function la(e){var t=!1,n=new Promise(function(r,s){e.then(function(i){return t?s(IS):r(i)}),e.catch(s)});return n.cancel=function(){return t=!0},n}var BS=["monaco"],$S=AS.create({config:DS,isInitialized:!1,resolve:null,reject:null,monaco:null}),Lv=fS($S,2),Ms=Lv[0],jo=Lv[1];function US(e){var t=OS.config(e),n=t.monaco,r=cS(t,BS);jo(function(s){return{config:_v(s.config,r),monaco:n}})}function bS(){var e=Ms(function(t){var n=t.monaco,r=t.isInitialized,s=t.resolve;return{monaco:n,isInitialized:r,resolve:s}});if(!e.isInitialized){if(jo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),la(ua);if(window.monaco&&window.monaco.editor)return Rv(window.monaco),e.resolve(window.monaco),la(ua);FS(WS,KS)(GS)}return la(ua)}function WS(e){return document.body.appendChild(e)}function HS(e){var t=document.createElement("script");return e&&(t.src=e),t}function KS(e){var t=Ms(function(r){var s=r.config,i=r.reject;return{config:s,reject:i}}),n=HS("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function GS(){var e=Ms(function(n){var r=n.config,s=n.resolve,i=n.reject;return{config:r,resolve:s,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Rv(r),e.resolve(r)},function(n){e.reject(n)})}function Rv(e){Ms().monaco||jo({monaco:e})}function QS(){return Ms(function(e){var t=e.monaco;return t})}var ua=new Promise(function(e,t){return jo({resolve:e,reject:t})}),Vv={config:US,init:bS,__getMonacoInstance:QS},qS={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ca=qS,YS={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},XS=YS;function ZS({children:e}){return ze.createElement("div",{style:XS.container},e)}var JS=ZS,e2=JS;function t2({width:e,height:t,isEditorReady:n,loading:r,_ref:s,className:i,wrapperProps:o}){return ze.createElement("section",{style:{...ca.wrapper,width:e,height:t},...o},!n&&ze.createElement(e2,null,r),ze.createElement("div",{ref:s,style:{...ca.fullWidth,...!n&&ca.hide},className:i}))}var n2=t2,zv=k.memo(n2);function r2(e){k.useEffect(e,[])}var Ov=r2;function s2(e,t,n=!0){let r=k.useRef(!0);k.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Ve=s2;function Gr(){}function Gn(e,t,n,r){return i2(e,r)||o2(e,t,n,r)}function i2(e,t){return e.editor.getModel(Fv(e,t))}function o2(e,t,n,r){return e.editor.createModel(t,n,r?Fv(e,r):void 0)}function Fv(e,t){return e.Uri.parse(t)}function a2({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:s,originalModelPath:i,modifiedModelPath:o,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:u=!1,theme:c="light",loading:d="Loading...",options:h={},height:f="100%",width:g="100%",className:j,wrapperProps:y={},beforeMount:C=Gr,onMount:m=Gr}){let[p,v]=k.useState(!1),[w,x]=k.useState(!0),S=k.useRef(null),N=k.useRef(null),P=k.useRef(null),_=k.useRef(m),M=k.useRef(C),$=k.useRef(!1);Ov(()=>{let O=Vv.init();return O.then(b=>(N.current=b)&&x(!1)).catch(b=>(b==null?void 0:b.type)!=="cancelation"&&console.error("Monaco initialization: error:",b)),()=>S.current?Ee():O.cancel()}),Ve(()=>{if(S.current&&N.current){let O=S.current.getOriginalEditor(),b=Gn(N.current,e||"",r||n||"text",i||"");b!==O.getModel()&&O.setModel(b)}},[i],p),Ve(()=>{if(S.current&&N.current){let O=S.current.getModifiedEditor(),b=Gn(N.current,t||"",s||n||"text",o||"");b!==O.getModel()&&O.setModel(b)}},[o],p),Ve(()=>{let O=S.current.getModifiedEditor();O.getOption(N.current.editor.EditorOption.readOnly)?O.setValue(t||""):t!==O.getValue()&&(O.executeEdits("",[{range:O.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),O.pushUndoStop())},[t],p),Ve(()=>{var O,b;(b=(O=S.current)==null?void 0:O.getModel())==null||b.original.setValue(e||"")},[e],p),Ve(()=>{let{original:O,modified:b}=S.current.getModel();N.current.editor.setModelLanguage(O,r||n||"text"),N.current.editor.setModelLanguage(b,s||n||"text")},[n,r,s],p),Ve(()=>{var O;(O=N.current)==null||O.editor.setTheme(c)},[c],p),Ve(()=>{var O;(O=S.current)==null||O.updateOptions(h)},[h],p);let I=k.useCallback(()=>{var W;if(!N.current)return;M.current(N.current);let O=Gn(N.current,e||"",r||n||"text",i||""),b=Gn(N.current,t||"",s||n||"text",o||"");(W=S.current)==null||W.setModel({original:O,modified:b})},[n,t,s,e,r,i,o]),de=k.useCallback(()=>{var O;!$.current&&P.current&&(S.current=N.current.editor.createDiffEditor(P.current,{automaticLayout:!0,...h}),I(),(O=N.current)==null||O.editor.setTheme(c),v(!0),$.current=!0)},[h,c,I]);k.useEffect(()=>{p&&_.current(S.current,N.current)},[p]),k.useEffect(()=>{!w&&!p&&de()},[w,p,de]);function Ee(){var b,W,T,A;let O=(b=S.current)==null?void 0:b.getModel();l||((W=O==null?void 0:O.original)==null||W.dispose()),u||((T=O==null?void 0:O.modified)==null||T.dispose()),(A=S.current)==null||A.dispose()}return ze.createElement(zv,{width:g,height:f,isEditorReady:p,loading:d,_ref:P,className:j,wrapperProps:y})}var l2=a2,u2=k.memo(l2);function c2(e){let t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}var d2=c2,Js=new Map;function f2({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:s,path:i,theme:o="light",line:l,loading:u="Loading...",options:c={},overrideServices:d={},saveViewState:h=!0,keepCurrentModel:f=!1,width:g="100%",height:j="100%",className:y,wrapperProps:C={},beforeMount:m=Gr,onMount:p=Gr,onChange:v,onValidate:w=Gr}){let[x,S]=k.useState(!1),[N,P]=k.useState(!0),_=k.useRef(null),M=k.useRef(null),$=k.useRef(null),I=k.useRef(p),de=k.useRef(m),Ee=k.useRef(),O=k.useRef(r),b=d2(i),W=k.useRef(!1),T=k.useRef(!1);Ov(()=>{let L=Vv.init();return L.then(z=>(_.current=z)&&P(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>M.current?R():L.cancel()}),Ve(()=>{var z,ae,X,ot;let L=Gn(_.current,e||r||"",t||s||"",i||n||"");L!==((z=M.current)==null?void 0:z.getModel())&&(h&&Js.set(b,(ae=M.current)==null?void 0:ae.saveViewState()),(X=M.current)==null||X.setModel(L),h&&((ot=M.current)==null||ot.restoreViewState(Js.get(i))))},[i],x),Ve(()=>{var L;(L=M.current)==null||L.updateOptions(c)},[c],x),Ve(()=>{!M.current||r===void 0||(M.current.getOption(_.current.editor.EditorOption.readOnly)?M.current.setValue(r):r!==M.current.getValue()&&(T.current=!0,M.current.executeEdits("",[{range:M.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),M.current.pushUndoStop(),T.current=!1))},[r],x),Ve(()=>{var z,ae;let L=(z=M.current)==null?void 0:z.getModel();L&&s&&((ae=_.current)==null||ae.editor.setModelLanguage(L,s))},[s],x),Ve(()=>{var L;l!==void 0&&((L=M.current)==null||L.revealLine(l))},[l],x),Ve(()=>{var L;(L=_.current)==null||L.editor.setTheme(o)},[o],x);let A=k.useCallback(()=>{var L;if(!(!$.current||!_.current)&&!W.current){de.current(_.current);let z=i||n,ae=Gn(_.current,r||e||"",t||s||"",z||"");M.current=(L=_.current)==null?void 0:L.editor.create($.current,{model:ae,automaticLayout:!0,...c},d),h&&M.current.restoreViewState(Js.get(z)),_.current.editor.setTheme(o),l!==void 0&&M.current.revealLine(l),S(!0),W.current=!0}},[e,t,n,r,s,i,c,d,h,o,l]);k.useEffect(()=>{x&&I.current(M.current,_.current)},[x]),k.useEffect(()=>{!N&&!x&&A()},[N,x,A]),O.current=r,k.useEffect(()=>{var L,z;x&&v&&((L=Ee.current)==null||L.dispose(),Ee.current=(z=M.current)==null?void 0:z.onDidChangeModelContent(ae=>{T.current||v(M.current.getValue(),ae)}))},[x,v]),k.useEffect(()=>{if(x){let L=_.current.editor.onDidChangeMarkers(z=>{var X;let ae=(X=M.current.getModel())==null?void 0:X.uri;if(ae&&z.find(ot=>ot.path===ae.path)){let ot=_.current.editor.getModelMarkers({resource:ae});w==null||w(ot)}});return()=>{L==null||L.dispose()}}return()=>{}},[x,w]);function R(){var L,z;(L=Ee.current)==null||L.dispose(),f?h&&Js.set(i,M.current.saveViewState()):(z=M.current.getModel())==null||z.dispose(),M.current.dispose()}return ze.createElement(zv,{width:g,height:j,isEditorReady:x,loading:u,_ref:$,className:y,wrapperProps:C})}var h2=f2,p2=k.memo(h2);const m2=e=>{var r;const t=(r=e.split(".").pop())==null?void 0:r.toLowerCase();return{ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",py:"python",rb:"ruby",rs:"rust",go:"go",json:"json",yaml:"yaml",yml:"yaml",md:"markdown",css:"css",scss:"scss",html:"html",xml:"xml",sql:"sql",sh:"shell",bash:"shell",zsh:"shell"}[t||""]||"plaintext"},v2=new Set(["txt","log","env"]);function g2(e){var n;const t=((n=e.split(".").pop())==null?void 0:n.toLowerCase())||"";return v2.has(t)}const y2=({filename:e,originalCode:t,modifiedCode:n,onClose:r,theme:s="dark",violations:i=[]})=>{const o=t!==n,l=m2(e),u=s==="dark"?"vs-dark":"light",c=g2(e)&&!o,d=h=>{if(!i.length||!h)return;const f=window.monaco;if(!f)return;const g=i.filter(j=>j.line).map(j=>({range:new f.Range(j.line,1,j.endLine||j.line,1),options:{isWholeLine:!0,className:"violation-line-highlight",glyphMarginClassName:"violation-glyph",glyphMarginHoverMessage:{value:`**[${j.id}] ${j.title}**
299
+
300
+ ${j.details}`},overviewRuler:{color:"#f87171",position:f.editor.OverviewRulerLane.Full}}}));h.deltaDecorations([],g)};return a.jsx("div",{className:"diff-viewer-overlay",children:a.jsxs("div",{className:"diff-viewer-window",children:[a.jsxs("div",{className:"diff-viewer-header",children:[a.jsxs("div",{className:"title",children:[a.jsx(ct,{size:18}),a.jsx("span",{children:e}),o&&a.jsx("span",{className:"diff-badge",children:"Modified"}),i.length>0&&a.jsxs("span",{className:"diff-badge",style:{background:"rgba(248, 113, 113, 0.12)",color:"#f87171",borderColor:"rgba(248, 113, 113, 0.3)"},children:[i.length," violation",i.length!==1?"s":""]})]}),a.jsx("button",{onClick:r,className:"close-btn",children:a.jsx(wu,{size:20})})]}),c?a.jsx("pre",{className:"markdown-viewer",children:n}):a.jsx("div",{className:"diff-editor-container",children:o?a.jsx(u2,{height:"100%",language:l,original:t,modified:n,theme:u,options:{renderSideBySide:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13}}):a.jsx(p2,{height:"100%",language:l,value:n,theme:u,onMount:d,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on",glyphMargin:i.length>0}})})]})})},x2=(e,t)=>{const n=[];e.forEach(s=>{const i=s.split("/");let o=n,l="";i.forEach((u,c)=>{l=l?`${l}/${u}`:u;const d=c<i.length-1;let h=o.find(f=>f.name===u);h||(h={name:u,path:l,isDirectory:d,children:[],isViolated:t.some(f=>f===l||f.startsWith(`${l}/`))},o.push(h)),o=h.children})});const r=s=>{s.sort((i,o)=>i.isDirectory&&!o.isDirectory?-1:!i.isDirectory&&o.isDirectory?1:i.name.localeCompare(o.name)),s.forEach(i=>r(i.children))};return r(n),n},Iv=({node:e,level:t,onSelect:n,activeFile:r})=>{const[s,i]=k.useState(t===0),o=r===e.path,l=u=>{u.stopPropagation(),e.isDirectory?i(!s):n(e.path)};return a.jsxs("div",{className:"tree-node-container",children:[a.jsxs("div",{className:`tree-item ${o?"active":""} ${e.isViolated?"violated":""}`,style:{paddingLeft:`${t*12+8}px`},onClick:l,children:[e.isDirectory?a.jsxs(a.Fragment,{children:[s?a.jsx(ds,{size:14,className:"chevron"}):a.jsx(Yt,{size:14,className:"chevron"}),s?a.jsx(C0,{size:14,className:"folder-icon"}):a.jsx(ho,{size:14,className:"folder-icon"})]}):a.jsx(ct,{size:14,className:"file-icon"}),a.jsx("span",{className:"node-name",title:e.path,children:e.name}),e.isViolated&&a.jsx(j0,{size:12,className:"violation-icon"})]}),e.isDirectory&&s&&a.jsx("div",{className:"tree-children",children:e.children.map(u=>a.jsx(Iv,{node:u,level:t+1,onSelect:n,activeFile:r},u.path))})]})},Vf=({files:e,onSelect:t,activeFile:n,violatedFiles:r=[]})=>{const s=k.useMemo(()=>x2(e,r),[e,r]);return a.jsxs("div",{className:"file-tree",children:[a.jsxs("div",{className:"tree-header",children:[a.jsx(ho,{size:14}),a.jsx("span",{children:"Project Explorer"})]}),a.jsx("div",{className:"tree-list",children:s.length===0?a.jsx("div",{className:"empty-tree-state",children:"No files found"}):s.map(i=>a.jsx(Iv,{node:i,level:0,onSelect:t,activeFile:n},i.path))})]})},da=e=>typeof e=="string"?e:JSON.stringify(e,null,2),j2=()=>{const[e,t]=k.useState({memories:{}}),[n,r]=k.useState(null),[s,i]=k.useState(""),[o,l]=k.useState(!0),[u,c]=k.useState(!1),d=async()=>{l(!0);try{const p=await(await fetch("/api/memory")).json();p.memories?t(p):t({memories:p})}catch(m){console.error("Failed to fetch memory:",m)}finally{l(!1)}};k.useEffect(()=>{d()},[]);const h=Object.entries(e.memories||{}),f=h.filter(([m])=>m.toLowerCase().includes(s.toLowerCase())),g=n?e.memories[n]:null,j=m=>{try{return new Date(m).toLocaleString()}catch{return m}},y=()=>{g&&(navigator.clipboard.writeText(da(g.value)),c(!0),setTimeout(()=>c(!1),2e3))},C=m=>{const p=da(m);if(p.includes("1)")&&p.includes("2)")){const v=p.split(/(\d+\))/);return a.jsx("div",{className:"formatted-content",children:v.map((w,x)=>{if(/^\d+\)$/.test(w))return a.jsx("div",{className:"section-marker",children:w},x);if(w.trim().startsWith("Priority:")){const[S,N]=w.split("Priority:");return a.jsxs(ze.Fragment,{children:[S.trim()&&a.jsx("div",{className:"section-body",children:S.trim()}),a.jsx("div",{className:"priority-box",children:N.trim()})]},x)}return w.trim()?a.jsx("div",{className:"section-body",children:w.trim()},x):null})})}return a.jsx("pre",{children:p})};return a.jsxs("div",{className:"memory-bank",children:[a.jsxs("div",{className:"memory-header",children:[a.jsxs("div",{className:"memory-title",children:[a.jsx(ar,{size:24}),a.jsx("h2",{children:"Memory Bank"}),a.jsxs("span",{className:"memory-count",children:[h.length," entries"]})]}),a.jsxs("div",{className:"memory-actions",children:[a.jsxs("div",{className:"search-box",children:[a.jsx(xu,{size:16}),a.jsx("input",{type:"text",placeholder:"Search memories...",value:s,onChange:m=>i(m.target.value)})]}),a.jsx("button",{className:"refresh-btn",onClick:d,disabled:o,children:a.jsx(Cn,{size:16,className:o?"spinning":""})})]})]}),a.jsxs("div",{className:"memory-content",children:[a.jsx("div",{className:"memory-list",children:o?a.jsx("div",{className:"memory-loading",children:"Loading memories..."}):f.length===0?a.jsxs("div",{className:"memory-empty",children:[a.jsx(Zp,{size:48}),a.jsx("h3",{children:"No Memories Stored"}),a.jsxs("p",{children:["Use ",a.jsx("code",{children:"store_memory"})," via MCP to persist agent context."]})]}):f.map(([m,p])=>a.jsxs("div",{className:`memory-item ${n===m?"active":""}`,onClick:()=>r(m),children:[a.jsxs("div",{className:"memory-item-header",children:[a.jsx(fd,{size:14}),a.jsx("span",{className:"memory-key",children:m}),a.jsx(Yt,{size:14,className:"chevron"})]}),a.jsxs("div",{className:"memory-item-meta",children:[a.jsx(hs,{size:12}),a.jsx("span",{children:j(p.timestamp)})]}),a.jsx("div",{className:"memory-item-preview",children:(()=>{const v=da(p.value);return v.slice(0,100)+(v.length>100?"...":"")})()})]},m))}),a.jsx("div",{className:"memory-detail",children:g?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"detail-header",children:[a.jsx(fd,{size:18}),a.jsx("h3",{children:n})]}),a.jsxs("div",{className:"detail-meta",children:[a.jsxs("div",{className:"meta-left",children:[a.jsx(hs,{size:14}),a.jsxs("span",{children:["Stored: ",j(g.timestamp)]})]}),a.jsxs("button",{className:`copy-btn ${u?"copied":""}`,onClick:y,children:[u?a.jsx(x0,{size:14}):a.jsx(w0,{size:14}),a.jsx("span",{children:u?"Copied":"Copy"})]})]}),a.jsx("div",{className:"detail-content",children:C(g.value)})]}):a.jsxs("div",{className:"detail-placeholder",children:[a.jsx(ar,{size:48}),a.jsx("p",{children:"Select a memory to view its contents"})]})})]})]})},w2=()=>{var x;const[e,t]=k.useState({patterns:[],stats:{totalPatterns:0,totalFiles:0,byType:{}}}),[n,r]=k.useState(null),[s,i]=k.useState(""),[o,l]=k.useState("all"),[u,c]=k.useState(!0),[d,h]=k.useState(!1),[f,g]=k.useState([]),[j,y]=k.useState(!1),C=async()=>{c(!0);try{const N=await(await fetch("/api/index-stats")).json();t(N)}catch(S){console.error("Failed to fetch pattern index:",S)}finally{c(!1)}};k.useEffect(()=>{C()},[]),k.useEffect(()=>{if(!d||s.length<3){g([]);return}const S=setTimeout(async()=>{y(!0);try{const P=await(await fetch(`/api/index-search?q=${encodeURIComponent(s)}`)).json();g(P)}catch(N){console.error("Semantic search failed:",N)}finally{y(!1)}},500);return()=>clearTimeout(S)},[s,d]);const m=d&&s.length>=3?f:e.patterns||[],p=e.stats||{totalPatterns:0,totalFiles:0,byType:{}},v=d&&s.length>=3?m:m.filter(S=>{const N=S.name.toLowerCase().includes(s.toLowerCase())||S.file.toLowerCase().includes(s.toLowerCase()),P=o==="all"||S.type===o;return N&&P}),w=Object.keys(p.byType||{});return a.jsxs("div",{className:"pattern-index",children:[a.jsxs("div",{className:"pattern-header",children:[a.jsxs("div",{className:"pattern-title",children:[a.jsx(yn,{size:24}),a.jsx("h2",{children:"Pattern Index"}),a.jsxs("span",{className:"pattern-count",children:[p.totalPatterns," patterns"]})]}),a.jsxs("div",{className:"pattern-actions",children:[a.jsxs("div",{className:"search-box",children:[a.jsx(xu,{size:16}),a.jsx("input",{type:"text",placeholder:"Search patterns...",value:s,onChange:S=>i(S.target.value)})]}),a.jsxs("div",{className:"filter-box",children:[a.jsx(yu,{size:16}),a.jsxs("select",{value:o,onChange:S=>l(S.target.value),children:[a.jsx("option",{value:"all",children:"All Types"}),w.map(S=>a.jsxs("option",{value:S,children:[S," (",p.byType[S],")"]},S))]})]}),a.jsxs("button",{className:`semantic-toggle ${d?"active":""}`,onClick:()=>h(!d),title:"Semantic Search (v2)",children:[a.jsx(dd,{size:16}),a.jsx("span",{children:"AI Search"})]}),a.jsx("button",{className:"refresh-btn",onClick:C,disabled:u,children:a.jsx(Cn,{size:16,className:u?"spinning":""})})]})]}),a.jsxs("div",{className:"pattern-stats",children:[a.jsxs("div",{className:"stat-card",children:[a.jsx(Xp,{size:20}),a.jsxs("div",{className:"stat-info",children:[a.jsx("span",{className:"stat-value",children:p.totalPatterns}),a.jsx("span",{className:"stat-label",children:"Total Patterns"})]})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx(ct,{size:20}),a.jsxs("div",{className:"stat-info",children:[a.jsx("span",{className:"stat-value",children:p.totalFiles}),a.jsx("span",{className:"stat-label",children:"Files Indexed"})]})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx(dd,{size:20}),a.jsxs("div",{className:"stat-info",children:[a.jsx("span",{className:"stat-value",children:w.length}),a.jsx("span",{className:"stat-label",children:"Pattern Types"})]})]}),p.indexDurationMs&&a.jsxs("div",{className:"stat-card",children:[a.jsx(hs,{size:20}),a.jsxs("div",{className:"stat-info",children:[a.jsxs("span",{className:"stat-value",children:[p.indexDurationMs,"ms"]}),a.jsx("span",{className:"stat-label",children:"Index Time"})]})]})]}),a.jsxs("div",{className:"pattern-content",children:[a.jsxs("div",{className:"pattern-list",children:[j&&a.jsxs("div",{className:"searching-indicator",children:[a.jsx(Cn,{size:14,className:"spinning"}),a.jsx("span",{children:"AI is analyzing your query..."})]}),u?a.jsx("div",{className:"pattern-loading",children:"Loading patterns..."}):v.length===0?a.jsxs("div",{className:"pattern-empty",children:[a.jsx(yn,{size:48}),a.jsx("h3",{children:"No Patterns Indexed"}),a.jsxs("p",{children:["Run ",a.jsx("code",{children:"rigour index"})," to scan your codebase."]})]}):v.map(S=>a.jsxs("div",{className:`pattern-item ${(n==null?void 0:n.id)===S.id?"active":""}`,onClick:()=>r(S),children:[S.similarity&&a.jsxs("div",{className:"similarity-badge",children:[(S.similarity*100).toFixed(0),"% Match"]}),a.jsxs("div",{className:"pattern-item-header",children:[a.jsx("span",{className:"pattern-type-badge",children:S.type}),a.jsx("span",{className:"pattern-name",children:S.name}),a.jsx(Yt,{size:14,className:"chevron"})]}),a.jsxs("div",{className:"pattern-item-file",children:[a.jsx(ct,{size:12}),a.jsxs("span",{children:[S.file,":",S.line]})]}),S.exported&&a.jsx("span",{className:"exported-badge",children:"exported"})]},S.id))]}),a.jsx("div",{className:"pattern-detail",children:n?a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"detail-header",children:[a.jsx("span",{className:"pattern-type-badge large",children:n.type}),a.jsx("h3",{children:n.name})]}),a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Location"}),a.jsxs("code",{children:[n.file,":",n.line,"-",n.endLine]})]}),n.signature&&a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Signature"}),a.jsx("pre",{children:n.signature})]}),n.description&&a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Description"}),a.jsx("p",{children:n.description})]}),((x=n.keywords)==null?void 0:x.length)>0&&a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Keywords"}),a.jsx("div",{className:"keywords-list",children:n.keywords.map((S,N)=>a.jsx("span",{className:"keyword-tag",children:S},N))})]}),a.jsxs("div",{className:"detail-section",children:[a.jsx("h4",{children:"Usage"}),a.jsxs("p",{children:["Imported in ",a.jsx("strong",{children:n.usageCount})," files"]})]})]}):a.jsxs("div",{className:"detail-placeholder",children:[a.jsx(yn,{size:48}),a.jsx("p",{children:"Select a pattern to view details"})]})})]})]})},S2=()=>{var g,j,y,C,m;const[e,t]=k.useState(null),[n,r]=k.useState(""),[s,i]=k.useState(null),[o,l]=k.useState(!0),[u,c]=k.useState("visual"),d=async()=>{l(!0);try{const v=await(await fetch("/api/config")).text();r(v);const w=h(v);t(w)}catch(p){console.error("Failed to fetch config:",p)}try{const p=await fetch("/api/report-stats");if(p.ok){const v=await p.json();i(v)}}catch{}l(!1)},h=p=>{var v;try{const w=p.split(`
301
+ `),x={};let S=null,N=null;for(const P of w){if(P.startsWith("#")||!P.trim())continue;const _=P.search(/\S/),M=P.trim();if(_===0&&M.includes(":")){const[$]=M.split(":");S=$.trim(),N=null;const I=(v=M.split(":")[1])==null?void 0:v.trim();I&&I!=="{}"&&I!=="[]"?x[S]=isNaN(Number(I))?I:Number(I):x[S]={}}else if(_===2&&S&&M.includes(":")){const[$]=M.split(":");N=$.trim();const I=M.split(":").slice(1).join(":").trim();if(I&&I!=="{}"&&I!=="[]"){typeof x[S]!="object"&&(x[S]={});const de=I==="true"?!0:I==="false"?!1:isNaN(Number(I))?I:Number(I);x[S][N]=de}else typeof x[S]!="object"&&(x[S]={}),x[S][N]={}}else if(_===4&&S&&N&&M.includes(":")){const[$]=M.split(":"),I=M.split(":").slice(1).join(":").trim();typeof x[S][N]!="object"&&(x[S][N]={});const de=I==="true"?!0:I==="false"?!1:isNaN(Number(I))?I:Number(I);x[S][N][$.trim()]=de}}return x}catch{return{}}};k.useEffect(()=>{d()},[]);const f=(e==null?void 0:e.gates)||{};return a.jsxs("div",{className:"quality-gates",children:[a.jsxs("div",{className:"gates-header",children:[a.jsxs("div",{className:"gates-title",children:[a.jsx(Ur,{size:24}),a.jsx("h2",{children:"Quality Gates"}),(e==null?void 0:e.preset)&&a.jsx("span",{className:"preset-badge",children:e.preset})]}),a.jsxs("div",{className:"gates-actions",children:[a.jsxs("div",{className:"view-toggle",children:[a.jsxs("button",{className:u==="visual"?"active":"",onClick:()=>c("visual"),children:[a.jsx(yn,{size:16})," Visual"]}),a.jsxs("button",{className:u==="raw"?"active":"",onClick:()=>c("raw"),children:[a.jsx(ct,{size:16})," YAML"]})]}),a.jsx("button",{className:"refresh-btn",onClick:d,disabled:o,children:a.jsx(Cn,{size:16,className:o?"spinning":""})})]})]}),o?a.jsx("div",{className:"gates-loading",children:"Loading configuration..."}):u==="raw"?a.jsx("div",{className:"gates-raw",children:a.jsx("pre",{children:n})}):a.jsxs("div",{className:"gates-content",children:[a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(ct,{size:18}),a.jsx("h3",{children:"Code Quality"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Max File Lines",value:f.max_file_lines,icon:a.jsx(ct,{size:16})}),a.jsx(G,{label:"Forbid TODOs",value:f.forbid_todos,icon:f.forbid_todos?a.jsx(fs,{size:16}):a.jsx(ht,{size:16})}),a.jsx(G,{label:"Forbid FIXMEs",value:f.forbid_fixme,icon:f.forbid_fixme?a.jsx(fs,{size:16}):a.jsx(ht,{size:16})})]})]}),f.ast&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(T0,{size:18}),a.jsx("h3",{children:"AST Limits"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Complexity",value:f.ast.complexity}),a.jsx(G,{label:"Max Methods",value:f.ast.max_methods}),a.jsx(G,{label:"Max Params",value:f.ast.max_params}),a.jsx(G,{label:"Max Nesting",value:f.ast.max_nesting}),a.jsx(G,{label:"Max Function Lines",value:f.ast.max_function_lines}),a.jsx(G,{label:"Max Inheritance",value:f.ast.max_inheritance_depth})]})]}),f.safety&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(Jp,{size:18}),a.jsx("h3",{children:"File Guard"})]}),a.jsx("div",{className:"gate-grid",children:a.jsx(G,{label:"Max Files/Cycle",value:f.safety.max_files_changed_per_cycle})}),f.safety.protected_paths&&f.safety.protected_paths.length>0&&a.jsxs("div",{className:"protected-paths",children:[a.jsx("h4",{children:"Protected Paths"}),a.jsx("div",{className:"path-list",children:f.safety.protected_paths.map((p,v)=>a.jsx("span",{className:"path-tag",children:p},v))})]})]}),f.required_files&&f.required_files.length>0&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(vt,{size:18}),a.jsx("h3",{children:"Required Files"})]}),a.jsx("div",{className:"file-list",children:f.required_files.map((p,v)=>a.jsxs("div",{className:"file-item",children:[a.jsx(ct,{size:14}),a.jsx("span",{children:p})]},v))})]}),f.context&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(hn,{size:18}),a.jsx("h3",{children:"Context Mining"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Enabled",value:f.context.enabled}),a.jsx(G,{label:"Sensitivity",value:f.context.sensitivity}),a.jsx(G,{label:"Mining Depth",value:f.context.mining_depth})]})]}),f.retry_loop_breaker&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(em,{size:18}),a.jsx("h3",{children:"Retry Loop Breaker"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Enabled",value:f.retry_loop_breaker.enabled}),a.jsx(G,{label:"Max Retries",value:f.retry_loop_breaker.max_retries})]})]}),a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(hn,{size:18}),a.jsx("h3",{children:"AI-Native Gates"})]}),a.jsxs("div",{className:"gate-grid",children:[a.jsx(G,{label:"Duplication Drift",value:((g=f.duplication_drift)==null?void 0:g.enabled)??!0,icon:a.jsx(ht,{size:16})}),a.jsx(G,{label:"Hallucinated Imports",value:((j=f.hallucinated_imports)==null?void 0:j.enabled)??!0,icon:a.jsx(vt,{size:16})}),a.jsx(G,{label:"Error Handling",value:((y=f.inconsistent_error_handling)==null?void 0:y.enabled)??!0,icon:a.jsx(Ur,{size:16})}),a.jsx(G,{label:"Context Artifacts",value:((C=f.context_window_artifacts)==null?void 0:C.enabled)??!0,icon:a.jsx(yn,{size:16})}),a.jsx(G,{label:"Async Safety",value:((m=f.promise_safety)==null?void 0:m.enabled)??!0,icon:a.jsx(hn,{size:16})})]})]}),s&&a.jsxs("div",{className:"gate-section",children:[a.jsxs("div",{className:"section-header",children:[a.jsx(Ur,{size:18}),a.jsx("h3",{children:"Latest Scores"})]}),a.jsxs("div",{className:"gate-grid",children:[s.score!==void 0&&a.jsx(G,{label:"Overall Score",value:`${s.score}/100`}),s.ai_health_score!==void 0&&a.jsx(G,{label:"AI Health",value:`${s.ai_health_score}/100`,icon:a.jsx(hn,{size:16})}),s.structural_score!==void 0&&a.jsx(G,{label:"Structural",value:`${s.structural_score}/100`,icon:a.jsx(yn,{size:16})})]}),s.severity_breakdown&&a.jsxs("div",{className:"severity-breakdown",children:[a.jsx("h4",{children:"Severity Breakdown"}),a.jsx("div",{className:"gate-grid",children:Object.entries(s.severity_breakdown).filter(([,p])=>p>0).map(([p,v])=>a.jsx(G,{label:p.charAt(0).toUpperCase()+p.slice(1),value:v},p))})]}),s.provenance_breakdown&&a.jsxs("div",{className:"provenance-breakdown",children:[a.jsx("h4",{children:"Provenance Breakdown"}),a.jsx("div",{className:"gate-grid",children:Object.entries(s.provenance_breakdown).filter(([,p])=>p>0).map(([p,v])=>a.jsx(G,{label:p,value:v},p))})]})]})]})]})},G=({label:e,value:t,icon:n})=>{const r=typeof t=="boolean"?t?"Yes":"No":t??"N/A";return a.jsxs("div",{className:"gate-card",children:[n&&a.jsx("div",{className:"gate-icon",children:n}),a.jsxs("div",{className:"gate-info",children:[a.jsx("span",{className:"gate-value",children:r}),a.jsx("span",{className:"gate-label",children:e})]})]})},k2=({logs:e,onClearLogs:t,onSelectLog:n,selectedLog:r})=>{const[s,i]=k.useState(""),[o,l]=k.useState("all"),[u,c]=k.useState("all"),d=ze.useMemo(()=>{const y={};return e.forEach(C=>{const m=C.requestId||C.id;y[m]?y[m]={...y[m],...C}:y[m]={...C}}),Object.values(y).sort((C,m)=>new Date(m.timestamp).getTime()-new Date(C.timestamp).getTime())},[e]),h=ze.useMemo(()=>{const y=new Set;return d.forEach(C=>C.tool&&y.add(C.tool)),Array.from(y)},[d]),f=ze.useMemo(()=>d.filter(y=>{var v;const C=!s||((v=y.tool)==null?void 0:v.toLowerCase().includes(s.toLowerCase()))||JSON.stringify(y.arguments||{}).toLowerCase().includes(s.toLowerCase()),m=o==="all"||y.status===o,p=u==="all"||y.tool===u;return C&&m&&p}),[d,s,o,u]),g=ze.useMemo(()=>({total:d.length,success:d.filter(y=>y.status==="success").length,error:d.filter(y=>y.status==="error").length,pending:d.filter(y=>!y.status||y.status==="pending").length}),[d]),j=()=>{const y=JSON.stringify(f,null,2),C=new Blob([y],{type:"application/json"}),m=URL.createObjectURL(C),p=document.createElement("a");p.href=m,p.download=`rigour-audit-${new Date().toISOString().split("T")[0]}.json`,p.click()};return a.jsxs("div",{className:"audit-log",children:[a.jsxs("div",{className:"audit-header",children:[a.jsxs("div",{className:"audit-title",children:[a.jsx(gn,{size:24}),a.jsx("h2",{children:"Audit Trail"}),a.jsxs("span",{className:"log-count",children:[f.length," events"]})]}),a.jsxs("div",{className:"audit-actions",children:[a.jsxs("button",{className:"btn-secondary",onClick:t,children:[a.jsx(_0,{size:16})," Clear"]}),a.jsxs("button",{className:"btn-primary",onClick:j,children:[a.jsx(k0,{size:16})," Export"]})]})]}),a.jsxs("div",{className:"audit-stats",children:[a.jsxs("div",{className:"stat-pill",children:[a.jsx(gn,{size:14}),a.jsxs("span",{children:[g.total," Total"]})]}),a.jsxs("div",{className:"stat-pill success",children:[a.jsx(ht,{size:14}),a.jsxs("span",{children:[g.success," Success"]})]}),a.jsxs("div",{className:"stat-pill error",children:[a.jsx(fs,{size:14}),a.jsxs("span",{children:[g.error," Failed"]})]}),a.jsxs("div",{className:"stat-pill pending",children:[a.jsx(vt,{size:14}),a.jsxs("span",{children:[g.pending," Pending"]})]})]}),a.jsxs("div",{className:"audit-filters",children:[a.jsxs("div",{className:"search-box",children:[a.jsx(xu,{size:16}),a.jsx("input",{type:"text",placeholder:"Search logs...",value:s,onChange:y=>i(y.target.value)})]}),a.jsxs("div",{className:"filter-box",children:[a.jsx(yu,{size:16}),a.jsxs("select",{value:o,onChange:y=>l(y.target.value),children:[a.jsx("option",{value:"all",children:"All Status"}),a.jsx("option",{value:"success",children:"Success"}),a.jsx("option",{value:"error",children:"Error"}),a.jsx("option",{value:"pending",children:"Pending"})]})]}),a.jsxs("div",{className:"filter-box",children:[a.jsx($i,{size:16}),a.jsxs("select",{value:u,onChange:y=>c(y.target.value),children:[a.jsx("option",{value:"all",children:"All Tools"}),h.map(y=>a.jsx("option",{value:y,children:y},y))]})]})]}),a.jsxs("div",{className:"audit-content",children:[a.jsx("div",{className:"log-list",children:f.length===0?a.jsxs("div",{className:"empty-state",children:[a.jsx($i,{size:48}),a.jsx("h3",{children:"No Interactions Detected"}),a.jsx("p",{children:"Rigour tool calls will appear here in real-time."})]}):f.map(y=>a.jsxs("div",{className:`log-entry ${(r==null?void 0:r.id)===y.id?"active":""} ${y._rigour_report?"has-report":""}`,onClick:()=>n((r==null?void 0:r.id)===y.id?null:y),children:[a.jsxs("div",{className:"log-header",children:[a.jsx("span",{className:`status-dot ${y.status||"pending"}`}),a.jsx("span",{className:"log-tool",children:y.tool}),a.jsxs("span",{className:"log-time",children:[a.jsx(hs,{size:12}),new Date(y.timestamp).toLocaleTimeString()]}),y._rigour_report&&a.jsxs("span",{className:"report-badge",children:[a.jsx(N0,{size:12})," Report"]}),y.arbitrated&&a.jsx("span",{className:`arbitrated-badge ${y.decision}`,children:y.decision==="approve"?"Approved":"Rejected"}),a.jsx(Yt,{size:14,className:"chevron"})]}),y.requestId&&a.jsxs("div",{className:"log-request-id",children:["ID: ",y.requestId.slice(0,12),"..."]})]},y.id))}),a.jsx("div",{className:"log-detail",children:r?a.jsx(N2,{log:r,onClose:()=>n(null)}):a.jsxs("div",{className:"detail-placeholder",children:[a.jsx(ct,{size:48}),a.jsx("p",{children:"Select a log entry to view details"})]})})]})]})},N2=({log:e,onClose:t})=>{var i,o,l,u,c,d,h;const n=!!e._rigour_report||["rigour_checkpoint","rigour_agent_register","rigour_handoff"].includes(e.tool),[r,s]=k.useState(n?"report":"args");return a.jsxs("div",{className:"log-detail-view",children:[a.jsxs("div",{className:"detail-header",children:[a.jsxs("div",{className:"detail-info",children:[a.jsxs("span",{className:`status-badge ${e.status||"pending"}`,children:[e.status==="success"?a.jsx(ht,{size:14}):e.status==="error"?a.jsx(fs,{size:14}):a.jsx(vt,{size:14}),e.status||"pending"]}),a.jsx("h3",{children:e.tool})]}),a.jsx("button",{className:"close-btn",onClick:t,children:a.jsx(wu,{size:18})})]}),a.jsxs("div",{className:"detail-meta",children:[a.jsxs("div",{className:"meta-item",children:[a.jsx("span",{className:"meta-label",children:"Timestamp"}),a.jsx("span",{className:"meta-value",children:new Date(e.timestamp).toLocaleString()})]}),e.requestId&&a.jsxs("div",{className:"meta-item",children:[a.jsx("span",{className:"meta-label",children:"Request ID"}),a.jsx("span",{className:"meta-value mono",children:e.requestId})]})]}),n&&a.jsxs("div",{className:"detail-tabs",children:[a.jsx("button",{className:r==="report"?"active":"",onClick:()=>s("report"),children:e._rigour_report?"Verification Report":"Visualized Content"}),a.jsx("button",{className:r==="args"?"active":"",onClick:()=>s("args"),children:"Technical Arguments"})]}),a.jsx("div",{className:"detail-body",children:r==="args"?a.jsxs(a.Fragment,{children:[e.arguments&&a.jsxs("div",{className:"code-section",children:[a.jsx("h4",{children:"Arguments"}),a.jsx("pre",{children:JSON.stringify(e.arguments,null,2)})]}),e.error&&a.jsxs("div",{className:"error-section",children:[a.jsx("h4",{children:"Error"}),a.jsx("div",{className:"error-message",children:e.error})]})]}):a.jsx("div",{className:"verification-view",children:e.tool==="rigour_checkpoint"?a.jsxs("div",{className:"checkpoint-viz",children:[a.jsxs("div",{className:"viz-stats",children:[a.jsxs("div",{className:"viz-stat",children:[a.jsx("span",{className:"label",children:"Progress"}),a.jsxs("span",{className:"value",children:[((i=e.arguments)==null?void 0:i.progressPct)??0,"%"]})]}),a.jsxs("div",{className:"viz-stat",children:[a.jsx("span",{className:"label",children:"Quality"}),a.jsxs("span",{className:"value",style:{color:(((o=e.arguments)==null?void 0:o.qualityScore)??0)>=80?"#34d399":"#f87171"},children:[((l=e.arguments)==null?void 0:l.qualityScore)??0,"%"]})]})]}),a.jsxs("div",{className:"viz-summary",children:[a.jsx("h4",{children:"Summary of Work"}),a.jsx("p",{children:((u=e.arguments)==null?void 0:u.summary)||"No summary provided."})]}),((c=e.arguments)==null?void 0:c.filesChanged)&&e.arguments.filesChanged.length>0&&a.jsxs("div",{className:"viz-files",children:[a.jsx("h4",{children:"Files Changed"}),a.jsx("div",{className:"file-badges",children:e.arguments.filesChanged.map(f=>a.jsx("span",{className:"file-badge",children:f},f))})]})]}):e.tool==="rigour_agent_register"?a.jsxs("div",{className:"agent-viz",children:[a.jsx(gn,{size:32,className:"viz-icon"}),a.jsx("h3",{children:"Agent Scope Claims"}),a.jsxs("div",{className:"scope-box",children:[a.jsx("h4",{children:"Claimed Scope:"}),a.jsx("div",{className:"scope-list",children:(h=(d=e.arguments)==null?void 0:d.taskScope)==null?void 0:h.map(f=>a.jsx("code",{children:f},f))})]})]}):a.jsxs("div",{className:"code-section",children:[a.jsx("h4",{children:"Rigour Report"}),a.jsx("pre",{children:JSON.stringify(e._rigour_report,null,2)})]})})})]})};function C2({session:e}){if(!e||e.agents.length===0)return a.jsxs("div",{className:"empty-state",children:[a.jsx(al,{size:48}),a.jsx("h3",{children:"No Active Agent Team"}),a.jsxs("p",{children:["When multiple agents register via ",a.jsx("code",{children:"rigour_agent_register"}),", they'll appear here."]}),a.jsxs("div",{className:"hint-box",children:[a.jsx("span",{children:"Supported Models:"}),a.jsxs("div",{className:"model-badges",children:[a.jsx("span",{className:"badge opus",children:"Opus 4.6"}),a.jsx("span",{className:"badge sonnet",children:"Sonnet 4.5"}),a.jsx("span",{className:"badge gpt",children:"GPT-5.3"}),a.jsx("span",{className:"badge codex",children:"Codex"})]})]})]});const t=r=>{switch(r){case"active":return a.jsx(Go,{size:10,fill:"#34d399",stroke:"#34d399"});case"idle":return a.jsx(Go,{size:10,fill:"#fbbf24",stroke:"#fbbf24"});case"completed":return a.jsx(ht,{size:14,color:"#34d399"});default:return a.jsx(Go,{size:10})}},n=(r,s)=>s.some(i=>i.agentId===r.agentId?!1:r.taskScope.some(o=>i.taskScope.some(l=>l===o||o.startsWith(l)||l.startsWith(o))));return a.jsxs("div",{className:"agent-teams",children:[a.jsxs("div",{className:"panel-header",children:[a.jsxs("div",{className:"title",children:[a.jsx(al,{size:18}),a.jsx("span",{children:"Agent Team Session"})]}),a.jsx("div",{className:`session-status ${e.status}`,children:e.status.toUpperCase()})]}),a.jsxs("div",{className:"session-info",children:[a.jsx("span",{className:"session-id",children:e.sessionId}),a.jsxs("span",{className:"agent-count",children:[e.agents.length," agents"]})]}),a.jsx("div",{className:"agents-grid",children:e.agents.map(r=>a.jsxs("div",{className:`agent-card ${r.status} ${n(r,e.agents)?"has-conflict":""}`,children:[a.jsxs("div",{className:"agent-header",children:[a.jsxs("div",{className:"agent-id",children:[t(r.status),a.jsx("span",{children:r.agentId})]}),n(r,e.agents)&&a.jsxs("div",{className:"conflict-badge",children:[a.jsx(vt,{size:12}),a.jsx("span",{children:"Scope Conflict"})]})]}),a.jsxs("div",{className:"task-scope",children:[a.jsx("h4",{children:"Task Scope"}),a.jsx("ul",{children:r.taskScope.map((s,i)=>a.jsxs("li",{children:[a.jsx(ho,{size:12}),a.jsx("code",{children:s})]},i))})]}),a.jsxs("div",{className:"agent-meta",children:[a.jsxs("span",{children:["Registered: ",new Date(r.registeredAt).toLocaleTimeString()]}),r.lastCheckpoint&&a.jsxs("span",{children:["Last checkpoint: ",new Date(r.lastCheckpoint).toLocaleTimeString()]})]})]},r.agentId))})]})}function T2({checkpoints:e}){if(!e||e.length===0)return a.jsxs("div",{className:"empty-state",children:[a.jsx(ol,{size:48}),a.jsx("h3",{children:"No Checkpoints Yet"}),a.jsxs("p",{children:["Checkpoints will appear here as agents report progress via ",a.jsx("code",{children:"rigour_checkpoint"}),"."]}),a.jsx("div",{className:"hint-box",children:a.jsx("span",{children:"Default interval: 15 minutes"})})]});const t=s=>s>=80?"#34d399":s>=60?"#fbbf24":"#f87171",n=s=>{if(s===0)return null;const i=e[s-1].qualityScore,o=e[s].qualityScore;return o>i+5?a.jsx(tm,{size:14,color:"#34d399"}):o<i-5?a.jsx(ju,{size:14,color:"#f87171"}):null},r=e.some((s,i)=>{if(i<2)return!1;const o=e.slice(Math.max(0,i-2),i),l=o.reduce((u,c)=>u+c.qualityScore,0)/o.length;return s.qualityScore<l-10});return a.jsxs("div",{className:"checkpoint-timeline",children:[a.jsxs("div",{className:"panel-header",children:[a.jsxs("div",{className:"title",children:[a.jsx(ol,{size:18}),a.jsx("span",{children:"Checkpoint Timeline"})]}),a.jsxs("div",{className:"drift-visualization",children:[a.jsxs("svg",{width:"120",height:"30",viewBox:"0 0 120 30",className:"drift-sparkline",children:[a.jsx("path",{d:`M ${e.map((s,i)=>`${i/(e.length-1||1)*120} ${30-s.qualityScore/100*30}`).join(" L ")}`,fill:"none",stroke:"var(--accent-primary)",strokeWidth:"2",strokeLinecap:"round"}),e.map((s,i)=>a.jsx("circle",{cx:i/(e.length-1||1)*120,cy:30-s.qualityScore/100*30,r:"2",fill:t(s.qualityScore)},i))]}),a.jsx("span",{className:"drift-label",children:"Session Stability"})]}),r&&a.jsxs("div",{className:"drift-alert",children:[a.jsx(vt,{size:14}),a.jsx("span",{children:"Drift Detected"})]})]}),a.jsxs("div",{className:"timeline-container",children:[a.jsx("div",{className:"timeline-line"}),e.map((s,i)=>a.jsxs("div",{className:`checkpoint-entry ${s.warnings.length>0?"has-warnings":""}`,children:[a.jsx("div",{className:"checkpoint-marker",children:a.jsx("div",{className:"marker-dot",style:{backgroundColor:t(s.qualityScore)}})}),a.jsxs("div",{className:"checkpoint-content",children:[a.jsxs("div",{className:"checkpoint-header",children:[a.jsx("span",{className:"checkpoint-id",children:s.checkpointId}),a.jsx("span",{className:"checkpoint-time",children:new Date(s.timestamp).toLocaleTimeString()})]}),a.jsxs("div",{className:"checkpoint-stats",children:[a.jsxs("div",{className:"stat",children:[a.jsx("span",{className:"label",children:"Progress"}),a.jsx("div",{className:"progress-bar",children:a.jsx("div",{className:"progress-fill",style:{width:`${s.progressPct}%`}})}),a.jsxs("span",{className:"value",children:[s.progressPct,"%"]})]}),a.jsxs("div",{className:"stat",children:[a.jsx("span",{className:"label",children:"Quality"}),a.jsxs("span",{className:"value score",style:{color:t(s.qualityScore)},children:[s.qualityScore,"%",n(i)]})]}),a.jsxs("div",{className:"stat",children:[a.jsx("span",{className:"label",children:"Agent"}),a.jsx("span",{className:"value agent-id",children:s.agentId})]})]}),a.jsx("div",{className:"checkpoint-summary",children:a.jsx("p",{children:s.summary})}),s.filesChanged.length>0&&a.jsx("div",{className:"files-changed",children:a.jsxs("span",{className:"count",children:[s.filesChanged.length," files changed"]})}),s.warnings.length>0&&a.jsx("div",{className:"warnings",children:s.warnings.map((o,l)=>a.jsxs("div",{className:"warning-item",children:[a.jsx(vt,{size:12}),a.jsx("span",{children:o})]},l))})]})]},s.checkpointId))]})]})}const Bv={critical:"var(--status-error)",high:"#f97316",medium:"var(--status-warning)",low:"var(--accent-primary)",info:"var(--text-dim)"},P2={srp_violation:"Single Responsibility",ocp_violation:"Open/Closed Principle",lsp_violation:"Liskov Substitution",isp_violation:"Interface Segregation",dip_violation:"Dependency Inversion",god_class:"God Class",god_function:"God Function",long_params:"Long Parameters",complex_conditional:"Complex Conditional",empty_catch:"Empty Catch Block",error_inconsistency:"Error Inconsistency",race_condition:"Race Condition",goroutine_leak:"Goroutine Leak",channel_misuse:"Channel Misuse",mutex_scope:"Mutex Scope",isp_violation_interface:"Interface Bloat",missing_test:"Missing Tests",long_file:"Long File",magic_number:"Magic Numbers",resource_leak:"Resource Leak",dry_violation:"DRY Violation",feature_envy:"Feature Envy",dead_code:"Dead Code",naming_convention:"Naming Convention",performance:"Performance"},zf={"SOLID Principles":["srp_violation","ocp_violation","lsp_violation","isp_violation","dip_violation"],"Code Smells":["god_class","god_function","long_params","complex_conditional","long_file","magic_number","dead_code","feature_envy"],"Error Handling":["empty_catch","error_inconsistency"],Concurrency:["race_condition","goroutine_leak","channel_misuse","mutex_scope"],Testing:["missing_test"],Architecture:["isp_violation_interface","dry_violation","naming_convention","resource_leak"],Performance:["performance"]},E2=()=>{const[e,t]=k.useState(null),[n,r]=k.useState(!0),[s,i]=k.useState(new Set),[o,l]=k.useState(new Set),[u,c]=k.useState("all"),[d,h]=k.useState(!1),f=async()=>{r(!0);try{const[x,S]=await Promise.all([fetch("/api/report-stats"),fetch("/api/deep-findings")]),N=x.ok?await x.json():{},P=S.ok?await S.json():[];t({...N,findings:P})}catch(x){console.error("Failed to fetch deep analysis data:",x)}r(!1)};k.useEffect(()=>{f()},[]);const g=x=>{i(S=>{const N=new Set(S);return N.has(x)?N.delete(x):N.add(x),N})},j=x=>{l(S=>{const N=new Set(S);return N.has(x)?N.delete(x):N.add(x),N})},y=((e==null?void 0:e.findings)||[]).filter(x=>x.provenance==="deep-analysis"),C=y.filter(x=>!(u!=="all"&&x.severity!==u||d&&!x.verified)),m=Object.entries(zf).map(([x,S])=>{const N=C.filter(P=>S.includes(P.category||""));return{group:x,findings:N}}).filter(x=>x.findings.length>0),p=Object.values(zf).flat(),v=C.filter(x=>!p.includes(x.category||"")),w=e==null?void 0:e.deep;return a.jsxs("div",{className:"deep-analysis",children:[a.jsxs("div",{className:"deep-header",children:[a.jsxs("div",{className:"deep-title",children:[a.jsx(ar,{size:24}),a.jsx("h2",{children:"Deep Analysis"}),(w==null?void 0:w.tier)&&a.jsx("span",{className:"tier-badge",children:w.tier})]}),a.jsx("div",{className:"deep-actions",children:a.jsx("button",{className:"refresh-btn",onClick:f,disabled:n,children:a.jsx(Cn,{size:16,className:n?"spinning":""})})})]}),n?a.jsx("div",{className:"deep-loading",children:"Loading deep analysis data..."}):!(w!=null&&w.enabled)&&y.length===0?a.jsxs("div",{className:"deep-empty",children:[a.jsx(ar,{size:48}),a.jsx("h3",{children:"Deep Analysis Not Yet Run"}),a.jsxs("p",{children:["Run ",a.jsx("code",{children:"rigour check --deep"})," to get LLM-powered code quality analysis with 40+ categories."]}),a.jsxs("div",{className:"empty-features",children:[a.jsxs("div",{className:"feature",children:[a.jsx(Ur,{size:16})," SOLID Principles"]}),a.jsxs("div",{className:"feature",children:[a.jsx(yn,{size:16})," Design Patterns"]}),a.jsxs("div",{className:"feature",children:[a.jsx(hn,{size:16})," Concurrency Safety"]}),a.jsxs("div",{className:"feature",children:[a.jsx(D0,{size:16})," Architecture Quality"]})]})]}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"deep-stats-banner",children:[a.jsxs("div",{className:"stat-card",children:[a.jsx("span",{className:"stat-value",children:(w==null?void 0:w.findings_count)??y.length}),a.jsx("span",{className:"stat-label",children:"Findings"})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx("span",{className:"stat-value",children:(w==null?void 0:w.findings_verified)??y.filter(x=>x.verified).length}),a.jsx("span",{className:"stat-label",children:"Verified"})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx("span",{className:"stat-value",children:(w==null?void 0:w.files_analyzed)??"—"}),a.jsx("span",{className:"stat-label",children:"Files Analyzed"})]}),a.jsxs("div",{className:"stat-card",children:[a.jsx("span",{className:"stat-value",children:(w==null?void 0:w.model)||"—"}),a.jsx("span",{className:"stat-label",children:"Model"})]}),(w==null?void 0:w.total_ms)&&a.jsxs("div",{className:"stat-card",children:[a.jsxs("span",{className:"stat-value",children:[(w.total_ms/1e3).toFixed(1),"s"]}),a.jsx("span",{className:"stat-label",children:"Inference"})]})]}),((e==null?void 0:e.score)!==void 0||(e==null?void 0:e.code_quality_score)!==void 0)&&a.jsxs("div",{className:"deep-scores",children:[(e==null?void 0:e.score)!==void 0&&a.jsx(fa,{label:"Overall",score:e.score}),(e==null?void 0:e.ai_health_score)!==void 0&&a.jsx(fa,{label:"AI Health",score:e.ai_health_score}),(e==null?void 0:e.structural_score)!==void 0&&a.jsx(fa,{label:"Structural",score:e.structural_score})]}),a.jsxs("div",{className:"deep-filters",children:[a.jsxs("div",{className:"filter-group",children:[a.jsx(yu,{size:14}),a.jsxs("select",{value:u,onChange:x=>c(x.target.value),className:"filter-select",children:[a.jsx("option",{value:"all",children:"All Severities"}),a.jsx("option",{value:"critical",children:"Critical"}),a.jsx("option",{value:"high",children:"High"}),a.jsx("option",{value:"medium",children:"Medium"}),a.jsx("option",{value:"low",children:"Low"})]})]}),a.jsxs("button",{className:`filter-toggle ${d?"active":""}`,onClick:()=>h(!d),children:[a.jsx(ht,{size:14}),"Verified Only"]}),a.jsxs("span",{className:"filter-count",children:[C.length," finding",C.length!==1?"s":""]})]}),a.jsxs("div",{className:"deep-findings",children:[m.map(({group:x,findings:S})=>a.jsxs("div",{className:"finding-group",children:[a.jsxs("button",{className:"group-header",onClick:()=>g(x),children:[s.has(x)?a.jsx(ds,{size:16}):a.jsx(Yt,{size:16}),a.jsx("span",{className:"group-name",children:x}),a.jsx("span",{className:"group-count",children:S.length}),a.jsx("div",{className:"group-severity-dots",children:["critical","high","medium","low"].map(N=>{const P=S.filter(_=>_.severity===N).length;return P>0?a.jsx("span",{className:"sev-dot",style:{backgroundColor:Bv[N]},title:`${P} ${N}`},N):null})})]}),s.has(x)&&a.jsx("div",{className:"group-findings",children:S.map(N=>a.jsx(Of,{finding:N,expanded:o.has(N.id),onToggle:()=>j(N.id)},N.id))})]},x)),v.length>0&&a.jsxs("div",{className:"finding-group",children:[a.jsxs("button",{className:"group-header",onClick:()=>g("_other"),children:[s.has("_other")?a.jsx(ds,{size:16}):a.jsx(Yt,{size:16}),a.jsx("span",{className:"group-name",children:"Other Findings"}),a.jsx("span",{className:"group-count",children:v.length})]}),s.has("_other")&&a.jsx("div",{className:"group-findings",children:v.map(x=>a.jsx(Of,{finding:x,expanded:o.has(x.id),onToggle:()=>j(x.id)},x.id))})]}),C.length===0&&a.jsxs("div",{className:"no-findings",children:[a.jsx(ht,{size:32}),a.jsx("p",{children:"No deep analysis findings match the current filters."})]})]})]})]})},Of=({finding:e,expanded:t,onToggle:n})=>{const r=Bv[e.severity||"info"],s=P2[e.category||""]||e.category||"Unknown";return a.jsxs("div",{className:`finding-card severity-${e.severity||"info"}`,children:[a.jsxs("button",{className:"finding-header",onClick:n,children:[a.jsxs("div",{className:"finding-left",children:[a.jsx("span",{className:"severity-indicator",style:{backgroundColor:r}}),a.jsx("span",{className:"finding-title",children:e.title})]}),a.jsxs("div",{className:"finding-right",children:[a.jsx("span",{className:"category-tag",children:s}),e.verified&&a.jsxs("span",{className:"verified-badge",title:"AST-verified",children:[a.jsx(ht,{size:12})," Verified"]}),e.confidence!==void 0&&a.jsxs("span",{className:"confidence-badge",title:`Confidence: ${(e.confidence*100).toFixed(0)}%`,children:[(e.confidence*100).toFixed(0),"%"]}),a.jsx("span",{className:"severity-badge",style:{color:r},children:e.severity||"info"}),t?a.jsx(ds,{size:14}):a.jsx(Yt,{size:14})]})]}),t&&a.jsxs("div",{className:"finding-body",children:[a.jsx("p",{className:"finding-details",children:e.details}),e.hint&&a.jsxs("div",{className:"finding-hint",children:[a.jsx(hn,{size:14}),a.jsx("span",{children:e.hint})]}),e.files&&e.files.length>0&&a.jsx("div",{className:"finding-files",children:e.files.map((i,o)=>a.jsxs("span",{className:"file-tag",children:[a.jsx(ct,{size:12}),i,e.line&&`:${e.line}`,e.endLine&&`-${e.endLine}`]},o))}),a.jsx("div",{className:"finding-meta",children:e.source&&a.jsxs("span",{className:"meta-tag",children:["Source: ",e.source]})})]})]})},fa=({label:e,score:t})=>{const n=2*Math.PI*36,r=n-t/100*n,s=t>=80?"var(--status-success)":t>=60?"var(--status-warning)":"var(--status-error)";return a.jsxs("div",{className:"score-ring",children:[a.jsxs("svg",{width:"88",height:"88",viewBox:"0 0 88 88",children:[a.jsx("circle",{cx:"44",cy:"44",r:"36",fill:"none",stroke:"var(--border-dim)",strokeWidth:"6"}),a.jsx("circle",{cx:"44",cy:"44",r:"36",fill:"none",stroke:s,strokeWidth:"6",strokeDasharray:n,strokeDashoffset:r,strokeLinecap:"round",transform:"rotate(-90 44 44)",style:{transition:"stroke-dashoffset 0.8s ease"}}),a.jsx("text",{x:"44",y:"42",textAnchor:"middle",fill:"var(--text-main)",fontSize:"18",fontWeight:"700",children:t}),a.jsx("text",{x:"44",y:"56",textAnchor:"middle",fill:"var(--text-dim)",fontSize:"9",children:"/100"})]}),a.jsx("span",{className:"score-label",children:e})]})},$v={improving:{color:"#34d399",icon:tm,label:"Improving"},stable:{color:"var(--accent-primary)",icon:E0,label:"Stable"},degrading:{color:"#f87171",icon:ju,label:"Degrading"}};function Uv({direction:e,zScore:t}){const n=$v[e],r=n.icon;return a.jsxs("span",{className:"direction-badge",style:{color:n.color,borderColor:n.color},children:[a.jsx(r,{size:14}),a.jsx("span",{children:n.label}),t!==void 0&&a.jsxs("span",{className:"z-score",children:["Z=",t.toFixed(1)]})]})}function ei({score:e,label:t,size:n=80}){const r=(n-8)/2,s=2*Math.PI*r,i=e/100*s,o=e>=80?"#34d399":e>=60?"#fbbf24":"#f87171";return a.jsxs("div",{className:"score-ring",style:{width:n,height:n+20},children:[a.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:[a.jsx("circle",{cx:n/2,cy:n/2,r,fill:"none",stroke:"var(--bg-tertiary)",strokeWidth:"6"}),a.jsx("circle",{cx:n/2,cy:n/2,r,fill:"none",stroke:o,strokeWidth:"6",strokeDasharray:`${i} ${s-i}`,strokeDashoffset:s/4,strokeLinecap:"round",style:{transition:"stroke-dasharray 0.8s ease"}}),a.jsx("text",{x:n/2,y:n/2,textAnchor:"middle",dominantBaseline:"central",fill:"var(--text-primary)",fontSize:"16",fontWeight:"bold",children:Math.round(e)})]}),a.jsx("span",{className:"ring-label",children:t})]})}function M2({series:e,direction:t}){if(e.length<2)return null;const n=200,r=50,s=4,i=e.map(j=>j.ewma),o=Math.min(...i)-5,u=Math.max(...i)+5-o||1,c=e.map((j,y)=>{const C=s+y/(e.length-1)*(n-2*s),m=r-s-(j.ewma-o)/u*(r-2*s);return`${C},${m}`}),d=$v[t].color,h=s,f=s+(e.length-1)/(e.length-1)*(n-2*s),g=`M ${c[0]} L ${c.join(" L ")} L ${f},${r} L ${h},${r} Z`;return a.jsxs("svg",{width:n,height:r,className:"ewma-sparkline",children:[a.jsx("defs",{children:a.jsxs("linearGradient",{id:`grad-${t}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[a.jsx("stop",{offset:"0%",stopColor:d,stopOpacity:"0.3"}),a.jsx("stop",{offset:"100%",stopColor:d,stopOpacity:"0.02"})]})}),a.jsx("path",{d:g,fill:`url(#grad-${t})`}),a.jsx("polyline",{points:c.join(" "),fill:"none",stroke:d,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("circle",{cx:parseFloat(c[c.length-1].split(",")[0]),cy:parseFloat(c[c.length-1].split(",")[1]),r:"3",fill:d})]})}function ti({name:e,icon:t,stream:n}){return a.jsxs("div",{className:"stream-card",children:[a.jsxs("div",{className:"stream-header",children:[a.jsxs("div",{className:"stream-name",children:[a.jsx(t,{size:16}),a.jsx("span",{children:e})]}),a.jsx(Uv,{direction:n.direction,zScore:n.zScore})]}),a.jsxs("div",{className:"stream-body",children:[a.jsx(M2,{series:n.series,direction:n.direction}),a.jsxs("div",{className:"stream-stats",children:[a.jsxs("div",{className:"stat",children:[a.jsx("span",{className:"stat-label",children:"Current EWMA"}),a.jsx("span",{className:"stat-value",children:n.currentEWMA.toFixed(1)})]}),a.jsxs("div",{className:"stat",children:[a.jsx("span",{className:"stat-label",children:"Historical Avg"}),a.jsx("span",{className:"stat-value",children:n.historicalAvg.toFixed(1)})]})]})]})]})}function A2({monthly:e}){const[t,n]=k.useState(!0);return e.length===0?null:a.jsxs("div",{className:"monthly-section",children:[a.jsxs("button",{className:"section-toggle",onClick:()=>n(!t),children:[t?a.jsx(ds,{size:16}):a.jsx(Yt,{size:16}),a.jsx(Xp,{size:16}),a.jsx("span",{children:"Monthly Breakdown"})]}),t&&a.jsxs("table",{className:"monthly-table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"Month"}),a.jsx("th",{children:"Score"}),a.jsx("th",{children:"AI Health"}),a.jsx("th",{children:"Structural"}),a.jsx("th",{children:"Scans"}),a.jsx("th",{children:"AI Drift"}),a.jsx("th",{children:"Security"})]})}),a.jsx("tbody",{children:e.slice().reverse().map(r=>{const s=r.avgScore>=80?"#34d399":r.avgScore>=60?"#fbbf24":"#f87171";return a.jsxs("tr",{children:[a.jsx("td",{className:"month-cell",children:r.month}),a.jsx("td",{style:{color:s,fontWeight:600},children:r.avgScore.toFixed(0)}),a.jsx("td",{children:r.avgAiHealth.toFixed(0)}),a.jsx("td",{children:r.avgStructural.toFixed(0)}),a.jsx("td",{className:"dim",children:r.scanCount}),a.jsx("td",{className:"dim",children:r.provenanceBreakdown.aiDrift}),a.jsx("td",{className:"dim",children:r.provenanceBreakdown.security})]},r.month)})})]})]})}function D2(){const[e,t]=k.useState(null),[n,r]=k.useState(!0),[s,i]=k.useState(null),o=async()=>{r(!0),i(null);try{const l=await fetch("/api/drift");if(!l.ok)throw new Error(`HTTP ${l.status}`);const u=await l.json();u&&u.totalScans>0?t(u):t(null)}catch(l){i(l.message)}finally{r(!1)}};return k.useEffect(()=>{o()},[]),n?a.jsxs("div",{className:"empty-state",children:[a.jsx(Cn,{size:48,className:"spin"}),a.jsx("h3",{children:"Analyzing Temporal Drift..."}),a.jsx("p",{children:"Reading scan history from SQLite brain."})]}):s?a.jsxs("div",{className:"empty-state",children:[a.jsx(vt,{size:48}),a.jsx("h3",{children:"Drift Analysis Unavailable"}),a.jsx("p",{children:s}),a.jsx("button",{className:"retry-btn",onClick:o,children:"Retry"})]}):e?a.jsxs("div",{className:"temporal-drift",children:[a.jsxs("div",{className:"panel-header",children:[a.jsxs("div",{className:"title",children:[a.jsx(gn,{size:18}),a.jsx("span",{children:"Temporal Drift Engine"}),a.jsx("span",{className:"badge",children:"v5 EWMA"})]}),a.jsx("button",{className:"refresh-btn",onClick:o,title:"Refresh",children:a.jsx(Cn,{size:16})})]}),a.jsxs("div",{className:`drift-banner drift-${e.overallDirection}`,children:[a.jsxs("div",{className:"banner-main",children:[a.jsx(Uv,{direction:e.overallDirection,zScore:e.overallZScore}),a.jsx("span",{className:"banner-repo",children:e.repo}),a.jsxs("span",{className:"banner-meta",children:[e.totalScans," scans over ",e.timeSpanDays," days"]})]}),e.latestScanAnomaly.isAnomaly&&a.jsxs("div",{className:"anomaly-alert",children:[a.jsx(vt,{size:14}),a.jsx("span",{children:e.latestScanAnomaly.message})]})]}),a.jsxs("div",{className:"score-rings-row",children:[a.jsx(ei,{score:e.streams.overall.currentEWMA,label:"Overall"}),a.jsx(ei,{score:e.streams.aiDrift.currentEWMA,label:"AI Health"}),a.jsx(ei,{score:e.streams.structural.currentEWMA,label:"Structural"}),a.jsx(ei,{score:e.streams.security.currentEWMA,label:"Security"})]}),a.jsxs("div",{className:"streams-grid",children:[a.jsx(ti,{name:"AI Drift",icon:ar,stream:e.streams.aiDrift}),a.jsx(ti,{name:"Structural",icon:hn,stream:e.streams.structural}),a.jsx(ti,{name:"Security",icon:Ur,stream:e.streams.security}),a.jsx(ti,{name:"Overall",icon:gn,stream:e.streams.overall})]}),a.jsx(A2,{monthly:e.monthly}),a.jsxs("div",{className:"narrative-section",children:[a.jsxs("div",{className:"narrative-header",children:[a.jsx(hs,{size:16}),a.jsx("span",{children:"Analysis Narrative"})]}),a.jsx("pre",{className:"narrative-text",children:e.narrative})]})]}):a.jsxs("div",{className:"empty-state",children:[a.jsx(gn,{size:48}),a.jsx("h3",{children:"Not Enough Data"}),a.jsxs("p",{children:["Run at least 3 scans with ",a.jsx("code",{children:"rigour check"})," to see temporal drift analysis."]}),a.jsx("div",{className:"hint-box",children:a.jsx("span",{children:"Drift detection uses EWMA + Z-score anomaly detection across per-provenance streams."})})]})}function _2(){var Ee,O,b,W;const[e,t]=k.useState(()=>localStorage.getItem("rigour-theme")||"dark"),[n,r]=k.useState("memory"),[s,i]=k.useState([]),[o,l]=k.useState(null),[u,c]=k.useState(null),[d,h]=k.useState(!1),[f,g]=k.useState([]),[j,y]=k.useState(null);ze.useEffect(()=>{const T=new EventSource("/api/events");return T.onmessage=A=>{try{const R=JSON.parse(A.data);i(L=>[R,...L].slice(0,100))}catch(R){console.error("Failed to parse event",R)}},fetch("/api/tree").then(A=>A.json()).then(g).catch(A=>console.error("Failed to fetch tree",A)),fetch("/api/info").then(A=>A.json()).then(y).catch(A=>console.error("Failed to fetch info",A)),()=>T.close()},[]),k.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("rigour-theme",e)},[e]);const C=()=>t(T=>T==="dark"?"light":"dark"),[m,p]=k.useState(""),[v,w]=k.useState({}),[x,S]=k.useState({}),[N,P]=k.useState(null),[_,M]=k.useState(null);k.useEffect(()=>{(async()=>{try{const[A,R,L,z,ae]=await Promise.all([fetch("/api/config").then(X=>X.ok?X.text():""),fetch("/api/memory").then(X=>X.json()),fetch("/api/index-stats").then(X=>X.json()),fetch("/api/agents").then(X=>X.json()),fetch("/api/checkpoints").then(X=>X.json())]);p(A),w(R),S(L),P(z),M(ae)}catch(A){console.error("Failed to fetch meta data",A)}})()},[]);const $=async T=>{try{const A=T.replace(/\s*\(\d+\s*lines\)$/,""),L=await(await fetch(`/api/file?path=${encodeURIComponent(A)}`)).text();l({filename:A,original:L,modified:L})}catch(A){console.error("Failed to fetch file content",A)}},I=async T=>{if(u)try{await fetch("/api/arbitrate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:u.requestId||u.id,decision:T,timestamp:new Date().toISOString()})}),i(A=>A.map(R=>(R.requestId||R.id)===(u.requestId||u.id)?{...R,status:T==="approve"?"success":"error",arbitrated:!0,decision:T}:R)),h(!1),c(null)}catch(A){console.error("Arbitration failed",A)}},de=[{id:"audit",label:"Audit Log",icon:$i},{id:"gates",label:"Quality Gates",icon:Qo},{id:"deep",label:"Deep Analysis",icon:ar},{id:"patterns",label:"Pattern Index",icon:Zp},{id:"memory",label:"Memory Bank",icon:S0},{id:"drift",label:"Temporal Drift",icon:ju},{id:"agents",label:"Agent Teams",icon:al},{id:"checkpoints",label:"Checkpoints",icon:ol}];return a.jsxs("div",{className:"studio",children:[a.jsxs("aside",{className:"sidebar",children:[a.jsxs("div",{className:"brand",children:[a.jsx("div",{className:"logo-icon",children:a.jsx(Qo,{size:18})}),a.jsx("span",{children:"Rigour Studio"}),a.jsxs("div",{className:"version-pill",children:["v",(j==null?void 0:j.version)||"2.13"]})]}),a.jsx("nav",{children:de.map(T=>a.jsxs("button",{className:`nav-item ${n===T.id?"active":""}`,onClick:()=>r(T.id),children:[a.jsx(T.icon,{size:18}),a.jsx("span",{children:T.label}),n===T.id&&a.jsx(gt.div,{layoutId:"nav-glow",className:"nav-glow"})]},T.id))}),a.jsxs("div",{className:"sidebar-footer",children:[a.jsxs("div",{className:"trust-indicator",children:[a.jsx(Jp,{size:14}),a.jsx("span",{children:"Local Governance"})]}),a.jsx("button",{className:"footer-item",children:a.jsx(em,{size:18})}),a.jsx("button",{className:"footer-item",children:a.jsx(P0,{size:18})})]})]}),a.jsxs("main",{className:"main-content",children:[a.jsxs("header",{children:[a.jsx("div",{className:"header-left",children:j&&a.jsxs("div",{className:"project-identity",children:[a.jsx(ho,{size:14,className:"folder-icon"}),a.jsx("span",{className:"project-name",children:j.name}),a.jsx("span",{className:"project-path",children:j.path})]})}),a.jsxs("div",{className:"header-right",children:[a.jsxs("div",{className:"connection-status",children:[a.jsxs("div",{className:"status-indicator",children:[a.jsx("div",{className:"pulse-emitter"}),a.jsx("span",{children:"LIVE"})]}),a.jsx("div",{className:"v-divider"}),a.jsxs("span",{children:["v",(j==null?void 0:j.version)||"0.0.0"]})]}),a.jsx("button",{className:"theme-toggle",onClick:C,children:e==="dark"?a.jsx(A0,{size:18}):a.jsx(M0,{size:18})})]})]}),a.jsxs("div",{className:"view-container",children:[a.jsxs(O0,{mode:"wait",children:[n==="audit"&&a.jsx(gt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(k2,{logs:s,onClearLogs:()=>i([]),onSelectLog:T=>{var A,R,L;if(c(T),T!=null&&T._rigour_report||(T==null?void 0:T.type)==="interception_requested"){if(T!=null&&T._rigour_report){const z=(L=(R=(A=T._rigour_report.failures)==null?void 0:A[0])==null?void 0:R.files)==null?void 0:L[0];z?$(z):l(null)}else l(null);h(!0)}else l(null),h(!1)},selectedLog:u})},"audit"),n==="gates"&&a.jsx(gt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(S2,{})},"gates"),n==="deep"&&a.jsx(gt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(E2,{})},"deep"),n==="drift"&&a.jsx(gt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(D2,{})},"drift"),n==="patterns"&&a.jsx(gt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(w2,{})},"patterns"),n==="memory"&&a.jsx(gt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(j2,{})},"memory"),n==="agents"&&a.jsx(gt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(C2,{session:N})},"agents"),n==="checkpoints"&&a.jsx(gt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:a.jsx(T2,{checkpoints:(_==null?void 0:_.checkpoints)||[]})},"checkpoints")]}),u&&d&&a.jsx("div",{className:"governance-overlay",children:a.jsxs("div",{className:"governance-window",children:[a.jsxs("div",{className:"governance-header",children:[a.jsxs("div",{className:"title",children:[a.jsx(Qo,{size:20}),a.jsxs("span",{children:["Governance Audit: ",u.tool]})]}),a.jsxs("div",{className:"hitl-actions",children:[u.type==="interception_requested"&&a.jsxs(a.Fragment,{children:[a.jsxs("button",{className:"btn-approve",onClick:()=>I("approve"),children:[a.jsx(ht,{size:16})," Approve"]}),a.jsxs("button",{className:"btn-reject",onClick:()=>I("reject"),children:[a.jsx(fs,{size:16})," Reject"]}),a.jsx("div",{className:"divider"})]}),a.jsx("button",{onClick:()=>h(!1),className:"close-btn",children:a.jsx(wu,{size:20})})]})]}),a.jsx("div",{className:"governance-body",children:u.type==="interception_requested"?a.jsxs("div",{className:"interception-view",children:[a.jsxs("div",{className:"interception-card",children:[a.jsx($i,{size:48}),a.jsx("h4",{children:"Command Intercepted"}),a.jsx("div",{className:"command-box",children:a.jsx("code",{children:u.command})}),a.jsx("p",{children:"An AI agent is requesting to execute this command. Review the project state below before arbitrating."}),a.jsxs("div",{className:"warning-note",children:[a.jsx(vt,{size:16}),a.jsx("span",{children:"Critical actions should be manually verified."})]})]}),a.jsx(Vf,{files:f.map(T=>T.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:T=>$(T),activeFile:o==null?void 0:o.filename,violatedFiles:[]})]}):a.jsxs(a.Fragment,{children:[a.jsx(Vf,{files:(((O=(Ee=u._rigour_report)==null?void 0:Ee.failures)==null?void 0:O.flatMap(T=>T.files||[]))||f).map(T=>T.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:T=>$(T),activeFile:o==null?void 0:o.filename,violatedFiles:(((W=(b=u._rigour_report)==null?void 0:b.failures)==null?void 0:W.flatMap(T=>T.files||[]))||[]).map(T=>T.replace(/\s*\(\d+\s*lines\)$/,""))}),a.jsx("div",{className:"diff-view-area",children:o?a.jsx(y2,{filename:o.filename,originalCode:o.original,modifiedCode:o.modified,onClose:()=>l(null),theme:e}):a.jsxs("div",{className:"diff-placeholder",children:[a.jsx(gn,{size:48}),a.jsx("p",{children:"Select a file to audit the proposed changes"})]})})]})})]})})]})]})]})}ha.createRoot(document.getElementById("root")).render(a.jsx(ze.StrictMode,{children:a.jsx(_2,{})}));