@rigour-labs/cli 5.2.9 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +28 -2
- package/dist/commands/guide.js +8 -1
- package/dist/commands/hooks.d.ts +2 -0
- package/dist/commands/hooks.js +16 -2
- package/dist/commands/init.js +13 -0
- package/dist/commands/studio.js +133 -0
- package/package.json +67 -67
- package/studio-dist/assets/index-C-kzKQ6s.js +322 -0
- package/studio-dist/index.html +1 -1
- package/LICENSE +0 -21
- package/studio-dist/assets/index-C0n6JWm-.js +0 -301
|
@@ -0,0 +1,322 @@
|
|
|
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 a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 Jg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wf={exports:{}},eo={},Hf={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 Ns=Symbol.for("react.element"),ev=Symbol.for("react.portal"),tv=Symbol.for("react.fragment"),nv=Symbol.for("react.strict_mode"),rv=Symbol.for("react.profiler"),sv=Symbol.for("react.provider"),iv=Symbol.for("react.context"),ov=Symbol.for("react.forward_ref"),av=Symbol.for("react.suspense"),lv=Symbol.for("react.memo"),uv=Symbol.for("react.lazy"),lc=Symbol.iterator;function cv(e){return e===null||typeof e!="object"?null:(e=lc&&e[lc]||e["@@iterator"],typeof e=="function"?e:null)}var Kf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gf=Object.assign,Qf={};function mr(e,t,n){this.props=e,this.context=t,this.refs=Qf,this.updater=n||Kf}mr.prototype.isReactComponent={};mr.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")};mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qf(){}qf.prototype=mr.prototype;function El(e,t,n){this.props=e,this.context=t,this.refs=Qf,this.updater=n||Kf}var Ml=El.prototype=new qf;Ml.constructor=El;Gf(Ml,mr.prototype);Ml.isPureReactComponent=!0;var uc=Array.isArray,Yf=Object.prototype.hasOwnProperty,Al={current:null},Xf={key:!0,ref:!0,__self:!0,__source:!0};function Zf(e,t,n){var r,s={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Yf.call(t,r)&&!Xf.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:Ns,type:e,key:i,ref:a,props:s,_owner:Al.current}}function dv(e,t){return{$$typeof:Ns,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Dl(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ns}function fv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var cc=/\/+/g;function To(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fv(""+e.key):t.toString(36)}function ii(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ns:case ev:a=!0}}if(a)return a=e,s=s(a),e=r===""?"."+To(a,0):r,uc(s)?(n="",e!=null&&(n=e.replace(cc,"$&/")+"/"),ii(s,t,n,"",function(c){return c})):s!=null&&(Dl(s)&&(s=dv(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(cc,"$&/")+"/")+e)),t.push(s)),1;if(a=0,r=r===""?".":r+":",uc(e))for(var l=0;l<e.length;l++){i=e[l];var u=r+To(i,l);a+=ii(i,t,n,u,s)}else if(u=cv(e),typeof u=="function")for(e=u.call(e),l=0;!(i=e.next()).done;)i=i.value,u=r+To(i,l++),a+=ii(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 a}function Ls(e,t,n){if(e==null)return e;var r=[],s=0;return ii(e,r,"","",function(i){return t.call(n,i,s++)}),r}function hv(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 Me={current:null},oi={transition:null},pv={ReactCurrentDispatcher:Me,ReactCurrentBatchConfig:oi,ReactCurrentOwner:Al};function Jf(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:Ls,forEach:function(e,t,n){Ls(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ls(e,function(){t++}),t},toArray:function(e){return Ls(e,function(t){return t})||[]},only:function(e){if(!Dl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=mr;B.Fragment=tv;B.Profiler=rv;B.PureComponent=El;B.StrictMode=nv;B.Suspense=av;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pv;B.act=Jf;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=Gf({},e.props),s=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Al.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)Yf.call(t,u)&&!Xf.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:Ns,type:e.type,key:s,ref:i,props:r,_owner:a}};B.createContext=function(e){return e={$$typeof:iv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:sv,_context:e},e.Consumer=e};B.createElement=Zf;B.createFactory=function(e){var t=Zf.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:ov,render:e}};B.isValidElement=Dl;B.lazy=function(e){return{$$typeof:uv,_payload:{_status:-1,_result:e},_init:hv}};B.memo=function(e,t){return{$$typeof:lv,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=oi.transition;oi.transition={};try{e()}finally{oi.transition=t}};B.unstable_act=Jf;B.useCallback=function(e,t){return Me.current.useCallback(e,t)};B.useContext=function(e){return Me.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return Me.current.useDeferredValue(e)};B.useEffect=function(e,t){return Me.current.useEffect(e,t)};B.useId=function(){return Me.current.useId()};B.useImperativeHandle=function(e,t,n){return Me.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return Me.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return Me.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return Me.current.useMemo(e,t)};B.useReducer=function(e,t,n){return Me.current.useReducer(e,t,n)};B.useRef=function(e){return Me.current.useRef(e)};B.useState=function(e){return Me.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return Me.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return Me.current.useTransition()};B.version="18.3.1";Hf.exports=B;var k=Hf.exports;const Fe=Jg(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 mv=k,gv=Symbol.for("react.element"),vv=Symbol.for("react.fragment"),yv=Object.prototype.hasOwnProperty,xv=mv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jv={key:!0,ref:!0,__self:!0,__source:!0};function eh(e,t,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)yv.call(t,r)&&!jv.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:gv,type:e,key:i,ref:a,props:s,_owner:xv.current}}eo.Fragment=vv;eo.jsx=eh;eo.jsxs=eh;Wf.exports=eo;var o=Wf.exports,va={},th={exports:{}},He={},nh={exports:{}},rh={};/**
|
|
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 L=T.length;T.push(A);e:for(;0<L;){var _=L-1>>>1,z=T[_];if(0<s(z,A))T[_]=A,T[L]=z,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],L=T.pop();if(L!==A){T[0]=L;e:for(var _=0,z=T.length,ie=z>>>1;_<ie;){var G=2*(_+1)-1,ze=T[G],dt=G+1,dn=T[dt];if(0>s(ze,L))dt<z&&0>s(dn,ze)?(T[_]=dn,T[dt]=L,_=dt):(T[_]=ze,T[G]=L,_=G);else if(dt<z&&0>s(dn,L))T[_]=dn,T[dt]=L,_=dt;else break e}}return A}function s(T,A){var L=T.sortIndex-A.sortIndex;return L!==0?L:T.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,h=null,f=3,v=!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 g(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,g(T),!j)if(n(u)!==null)j=!0,$(x);else{var A=n(c);A!==null&&U(w,A.startTime-T)}}function x(T,A){j=!1,y&&(y=!1,m(P),P=-1),v=!0;var L=f;try{for(g(A),h=n(u);h!==null&&(!(h.expirationTime>A)||T&&!I());){var _=h.callback;if(typeof _=="function"){h.callback=null,f=h.priorityLevel;var z=_(h.expirationTime<=A);A=e.unstable_now(),typeof z=="function"?h.callback=z:h===n(u)&&r(u),g(A)}else r(u);h=n(u)}if(h!==null)var ie=!0;else{var G=n(c);G!==null&&U(w,G.startTime-A),ie=!1}return ie}finally{h=null,f=L,v=!1}}var S=!1,N=null,P=-1,D=5,E=-1;function I(){return!(e.unstable_now()-E<D)}function F(){if(N!==null){var T=e.unstable_now();E=T;var A=!0;try{A=N(!0,T)}finally{A?ce():(S=!1,N=null)}}else S=!1}var ce;if(typeof p=="function")ce=function(){p(F)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,V=J.port2;J.port1.onmessage=F,ce=function(){V.postMessage(null)}}else ce=function(){C(F,0)};function $(T){N=T,S||(S=!0,ce())}function U(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||v||(j=!0,$(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"):D=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 L=f;f=A;try{return T()}finally{f=L}},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 L=f;f=T;try{return A()}finally{f=L}},e.unstable_scheduleCallback=function(T,A,L){var _=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?_+L:_):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=L+z,T={id:d++,callback:A,priorityLevel:T,startTime:L,expirationTime:z,sortIndex:-1},L>_?(T.sortIndex=L,t(c,T),n(u)===null&&T===n(c)&&(y?(m(P),P=-1):y=!0,U(w,L-_))):(T.sortIndex=z,t(u,T),j||v||(j=!0,$(x))),T},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(T){var A=f;return function(){var L=f;f=A;try{return T.apply(this,arguments)}finally{f=L}}}})(rh);nh.exports=rh;var wv=nh.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 Sv=k,Ue=wv;function M(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 sh=new Set,Zr={};function An(e,t){sr(e,t),sr(e+"Capture",t)}function sr(e,t){for(Zr[e]=t,e=0;e<t.length;e++)sh.add(t[e])}var Mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ya=Object.prototype.hasOwnProperty,kv=/^[: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]*$/,dc={},fc={};function Nv(e){return ya.call(fc,e)?!0:ya.call(dc,e)?!1:kv.test(e)?fc[e]=!0:(dc[e]=!0,!1)}function Cv(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 Tv(e,t,n,r){if(t===null||typeof t>"u"||Cv(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 Ae(e,t,n,r,s,i,a){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=a}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new Ae(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new Ae(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new Ae(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){xe[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new Ae(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new Ae(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new Ae(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rl=/[\-:]([a-z])/g;function _l(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(Rl,_l);xe[t]=new Ae(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(Rl,_l);xe[t]=new Ae(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(Rl,_l);xe[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ll(e,t,n,r){var s=xe.hasOwnProperty(t)?xe[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Tv(t,n,s,r)&&(n=null),r||s===null?Nv(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 Lt=Sv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vs=Symbol.for("react.element"),Ln=Symbol.for("react.portal"),Vn=Symbol.for("react.fragment"),Vl=Symbol.for("react.strict_mode"),xa=Symbol.for("react.profiler"),ih=Symbol.for("react.provider"),oh=Symbol.for("react.context"),zl=Symbol.for("react.forward_ref"),ja=Symbol.for("react.suspense"),wa=Symbol.for("react.suspense_list"),Ol=Symbol.for("react.memo"),Ot=Symbol.for("react.lazy"),ah=Symbol.for("react.offscreen"),hc=Symbol.iterator;function jr(e){return e===null||typeof e!="object"?null:(e=hc&&e[hc]||e["@@iterator"],typeof e=="function"?e:null)}var se=Object.assign,Po;function Mr(e){if(Po===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Po=t&&t[1]||""}return`
|
|
34
|
+
`+Po+e}var Eo=!1;function Mo(e,t){if(!e||Eo)return"";Eo=!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
|
+
`),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var u=`
|
|
37
|
+
`+s[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{Eo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mr(e):""}function Pv(e){switch(e.tag){case 5:return Mr(e.type);case 16:return Mr("Lazy");case 13:return Mr("Suspense");case 19:return Mr("SuspenseList");case 0:case 2:case 15:return e=Mo(e.type,!1),e;case 11:return e=Mo(e.type.render,!1),e;case 1:return e=Mo(e.type,!0),e;default:return""}}function Sa(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 Vn:return"Fragment";case Ln:return"Portal";case xa:return"Profiler";case Vl:return"StrictMode";case ja:return"Suspense";case wa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oh:return(e.displayName||"Context")+".Consumer";case ih:return(e._context.displayName||"Context")+".Provider";case zl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ol:return t=e.displayName||null,t!==null?t:Sa(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return Sa(e(t))}catch{}}return null}function Ev(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 Sa(t);case 8:return t===Vl?"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 en(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mv(e){var t=lh(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(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zs(e){e._valueTracker||(e._valueTracker=Mv(e))}function uh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wi(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 ka(e,t){var n=t.checked;return se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function pc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=en(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 ch(e,t){t=t.checked,t!=null&&Ll(e,"checked",t,!1)}function Na(e,t){ch(e,t);var n=en(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")?Ca(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ca(e,t.type,en(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mc(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 Ca(e,t,n){(t!=="number"||wi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ar=Array.isArray;function Zn(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=""+en(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 Ta(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(M(91));return se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function gc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(M(92));if(Ar(n)){if(1<n.length)throw Error(M(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:en(n)}}function dh(e,t){var n=en(t.value),r=en(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 vc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function fh(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 Pa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?fh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Os,hh=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(Os=Os||document.createElement("div"),Os.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Os.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Or={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},Av=["Webkit","ms","Moz","O"];Object.keys(Or).forEach(function(e){Av.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Or[t]=Or[e]})});function ph(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Or.hasOwnProperty(e)&&Or[e]?(""+t).trim():t+"px"}function mh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=ph(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Dv=se({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 Ea(e,t){if(t){if(Dv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Ma(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 Aa=null;function bl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Da=null,Jn=null,er=null;function yc(e){if(e=Ps(e)){if(typeof Da!="function")throw Error(M(280));var t=e.stateNode;t&&(t=io(t),Da(e.stateNode,e.type,t))}}function gh(e){Jn?er?er.push(e):er=[e]:Jn=e}function vh(){if(Jn){var e=Jn,t=er;if(er=Jn=null,yc(e),t)for(e=0;e<t.length;e++)yc(t[e])}}function yh(e,t){return e(t)}function xh(){}var Ao=!1;function jh(e,t,n){if(Ao)return e(t,n);Ao=!0;try{return yh(e,t,n)}finally{Ao=!1,(Jn!==null||er!==null)&&(xh(),vh())}}function es(e,t){var n=e.stateNode;if(n===null)return null;var r=io(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(M(231,t,typeof n));return n}var Ra=!1;if(Mt)try{var wr={};Object.defineProperty(wr,"passive",{get:function(){Ra=!0}}),window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{Ra=!1}function Rv(e,t,n,r,s,i,a,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var br=!1,Si=null,ki=!1,_a=null,_v={onError:function(e){br=!0,Si=e}};function Lv(e,t,n,r,s,i,a,l,u){br=!1,Si=null,Rv.apply(_v,arguments)}function Vv(e,t,n,r,s,i,a,l,u){if(Lv.apply(this,arguments),br){if(br){var c=Si;br=!1,Si=null}else throw Error(M(198));ki||(ki=!0,_a=c)}}function Dn(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 wh(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 xc(e){if(Dn(e)!==e)throw Error(M(188))}function zv(e){var t=e.alternate;if(!t){if(t=Dn(e),t===null)throw Error(M(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 xc(s),e;if(i===r)return xc(s),t;i=i.sibling}throw Error(M(188))}if(n.return!==r.return)n=s,r=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a)throw Error(M(189))}}if(n.alternate!==r)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?e:t}function Sh(e){return e=zv(e),e!==null?kh(e):null}function kh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=kh(e);if(t!==null)return t;e=e.sibling}return null}var Nh=Ue.unstable_scheduleCallback,jc=Ue.unstable_cancelCallback,Ov=Ue.unstable_shouldYield,bv=Ue.unstable_requestPaint,ue=Ue.unstable_now,Fv=Ue.unstable_getCurrentPriorityLevel,Fl=Ue.unstable_ImmediatePriority,Ch=Ue.unstable_UserBlockingPriority,Ni=Ue.unstable_NormalPriority,Iv=Ue.unstable_LowPriority,Th=Ue.unstable_IdlePriority,to=null,gt=null;function Bv(e){if(gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(to,e,void 0,(e.current.flags&128)===128)}catch{}}var lt=Math.clz32?Math.clz32:Wv,$v=Math.log,Uv=Math.LN2;function Wv(e){return e>>>=0,e===0?32:31-($v(e)/Uv|0)|0}var bs=64,Fs=4194304;function Dr(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 Ci(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?r=Dr(l):(i&=a,i!==0&&(r=Dr(i)))}else a=n&~s,a!==0?r=Dr(a):i!==0&&(r=Dr(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-lt(t),s=1<<n,r|=e[n],t&=~s;return r}function Hv(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 Kv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-lt(i),l=1<<a,u=s[a];u===-1?(!(l&n)||l&r)&&(s[a]=Hv(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}function La(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ph(){var e=bs;return bs<<=1,!(bs&4194240)&&(bs=64),e}function Do(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function Gv(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-lt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Il(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var H=0;function Eh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Mh,Bl,Ah,Dh,Rh,Va=!1,Is=[],Wt=null,Ht=null,Kt=null,ts=new Map,ns=new Map,Ft=[],Qv="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 wc(e,t){switch(e){case"focusin":case"focusout":Wt=null;break;case"dragenter":case"dragleave":Ht=null;break;case"mouseover":case"mouseout":Kt=null;break;case"pointerover":case"pointerout":ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function Sr(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=Ps(t),t!==null&&Bl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function qv(e,t,n,r,s){switch(t){case"focusin":return Wt=Sr(Wt,e,t,n,r,s),!0;case"dragenter":return Ht=Sr(Ht,e,t,n,r,s),!0;case"mouseover":return Kt=Sr(Kt,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return ts.set(i,Sr(ts.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ns.set(i,Sr(ns.get(i)||null,e,t,n,r,s)),!0}return!1}function _h(e){var t=vn(e.target);if(t!==null){var n=Dn(t);if(n!==null){if(t=n.tag,t===13){if(t=wh(n),t!==null){e.blockedOn=t,Rh(e.priority,function(){Ah(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 ai(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=za(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Aa=r,n.target.dispatchEvent(r),Aa=null}else return t=Ps(n),t!==null&&Bl(t),e.blockedOn=n,!1;t.shift()}return!0}function Sc(e,t,n){ai(e)&&n.delete(t)}function Yv(){Va=!1,Wt!==null&&ai(Wt)&&(Wt=null),Ht!==null&&ai(Ht)&&(Ht=null),Kt!==null&&ai(Kt)&&(Kt=null),ts.forEach(Sc),ns.forEach(Sc)}function kr(e,t){e.blockedOn===t&&(e.blockedOn=null,Va||(Va=!0,Ue.unstable_scheduleCallback(Ue.unstable_NormalPriority,Yv)))}function rs(e){function t(s){return kr(s,e)}if(0<Is.length){kr(Is[0],e);for(var n=1;n<Is.length;n++){var r=Is[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Wt!==null&&kr(Wt,e),Ht!==null&&kr(Ht,e),Kt!==null&&kr(Kt,e),ts.forEach(t),ns.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)_h(n),n.blockedOn===null&&Ft.shift()}var tr=Lt.ReactCurrentBatchConfig,Ti=!0;function Xv(e,t,n,r){var s=H,i=tr.transition;tr.transition=null;try{H=1,$l(e,t,n,r)}finally{H=s,tr.transition=i}}function Zv(e,t,n,r){var s=H,i=tr.transition;tr.transition=null;try{H=4,$l(e,t,n,r)}finally{H=s,tr.transition=i}}function $l(e,t,n,r){if(Ti){var s=za(e,t,n,r);if(s===null)Bo(e,t,r,Pi,n),wc(e,r);else if(qv(s,e,t,n,r))r.stopPropagation();else if(wc(e,r),t&4&&-1<Qv.indexOf(e)){for(;s!==null;){var i=Ps(s);if(i!==null&&Mh(i),i=za(e,t,n,r),i===null&&Bo(e,t,r,Pi,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Bo(e,t,r,null,n)}}var Pi=null;function za(e,t,n,r){if(Pi=null,e=bl(r),e=vn(e),e!==null)if(t=Dn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=wh(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 Pi=e,null}function Lh(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(Fv()){case Fl:return 1;case Ch:return 4;case Ni:case Iv:return 16;case Th:return 536870912;default:return 16}default:return 16}}var Bt=null,Ul=null,li=null;function Vh(){if(li)return li;var e,t=Ul,n=t.length,r,s="value"in Bt?Bt.value:Bt.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===s[i-r];r++);return li=s.slice(e,1<r?1-r:void 0)}function ui(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 Bs(){return!0}function kc(){return!1}function Ke(e){function t(n,r,s,i,a){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=a,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)?Bs:kc,this.isPropagationStopped=kc,this}return se(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=Bs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bs)},persist:function(){},isPersistent:Bs}),t}var gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wl=Ke(gr),Ts=se({},gr,{view:0,detail:0}),Jv=Ke(Ts),Ro,_o,Nr,no=se({},Ts,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hl,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!==Nr&&(Nr&&e.type==="mousemove"?(Ro=e.screenX-Nr.screenX,_o=e.screenY-Nr.screenY):_o=Ro=0,Nr=e),Ro)},movementY:function(e){return"movementY"in e?e.movementY:_o}}),Nc=Ke(no),ey=se({},no,{dataTransfer:0}),ty=Ke(ey),ny=se({},Ts,{relatedTarget:0}),Lo=Ke(ny),ry=se({},gr,{animationName:0,elapsedTime:0,pseudoElement:0}),sy=Ke(ry),iy=se({},gr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oy=Ke(iy),ay=se({},gr,{data:0}),Cc=Ke(ay),ly={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uy={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"},cy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cy[e])?!!t[e]:!1}function Hl(){return dy}var fy=se({},Ts,{key:function(e){if(e.key){var t=ly[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ui(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hl,charCode:function(e){return e.type==="keypress"?ui(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ui(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hy=Ke(fy),py=se({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tc=Ke(py),my=se({},Ts,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hl}),gy=Ke(my),vy=se({},gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),yy=Ke(vy),xy=se({},no,{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}),jy=Ke(xy),wy=[9,13,27,32],Kl=Mt&&"CompositionEvent"in window,Fr=null;Mt&&"documentMode"in document&&(Fr=document.documentMode);var Sy=Mt&&"TextEvent"in window&&!Fr,zh=Mt&&(!Kl||Fr&&8<Fr&&11>=Fr),Pc=" ",Ec=!1;function Oh(e,t){switch(e){case"keyup":return wy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zn=!1;function ky(e,t){switch(e){case"compositionend":return bh(t);case"keypress":return t.which!==32?null:(Ec=!0,Pc);case"textInput":return e=t.data,e===Pc&&Ec?null:e;default:return null}}function Ny(e,t){if(zn)return e==="compositionend"||!Kl&&Oh(e,t)?(e=Vh(),li=Ul=Bt=null,zn=!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 zh&&t.locale!=="ko"?null:t.data;default:return null}}var Cy={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 Mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cy[e.type]:t==="textarea"}function Fh(e,t,n,r){gh(r),t=Ei(t,"onChange"),0<t.length&&(n=new Wl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ir=null,ss=null;function Ty(e){Yh(e,0)}function ro(e){var t=Fn(e);if(uh(t))return e}function Py(e,t){if(e==="change")return t}var Ih=!1;if(Mt){var Vo;if(Mt){var zo="oninput"in document;if(!zo){var Ac=document.createElement("div");Ac.setAttribute("oninput","return;"),zo=typeof Ac.oninput=="function"}Vo=zo}else Vo=!1;Ih=Vo&&(!document.documentMode||9<document.documentMode)}function Dc(){Ir&&(Ir.detachEvent("onpropertychange",Bh),ss=Ir=null)}function Bh(e){if(e.propertyName==="value"&&ro(ss)){var t=[];Fh(t,ss,e,bl(e)),jh(Ty,t)}}function Ey(e,t,n){e==="focusin"?(Dc(),Ir=t,ss=n,Ir.attachEvent("onpropertychange",Bh)):e==="focusout"&&Dc()}function My(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ro(ss)}function Ay(e,t){if(e==="click")return ro(t)}function Dy(e,t){if(e==="input"||e==="change")return ro(t)}function Ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:Ry;function is(e,t){if(ct(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(!ya.call(t,s)||!ct(e[s],t[s]))return!1}return!0}function Rc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _c(e,t){var n=Rc(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=Rc(n)}}function $h(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$h(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uh(){for(var e=window,t=wi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wi(e.document)}return t}function Gl(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 _y(e){var t=Uh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&$h(n.ownerDocument.documentElement,n)){if(r!==null&&Gl(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=_c(n,i);var a=_c(n,r);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 Ly=Mt&&"documentMode"in document&&11>=document.documentMode,On=null,Oa=null,Br=null,ba=!1;function Lc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ba||On==null||On!==wi(r)||(r=On,"selectionStart"in r&&Gl(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}),Br&&is(Br,r)||(Br=r,r=Ei(Oa,"onSelect"),0<r.length&&(t=new Wl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=On)))}function $s(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bn={animationend:$s("Animation","AnimationEnd"),animationiteration:$s("Animation","AnimationIteration"),animationstart:$s("Animation","AnimationStart"),transitionend:$s("Transition","TransitionEnd")},Oo={},Wh={};Mt&&(Wh=document.createElement("div").style,"AnimationEvent"in window||(delete bn.animationend.animation,delete bn.animationiteration.animation,delete bn.animationstart.animation),"TransitionEvent"in window||delete bn.transitionend.transition);function so(e){if(Oo[e])return Oo[e];if(!bn[e])return e;var t=bn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wh)return Oo[e]=t[n];return e}var Hh=so("animationend"),Kh=so("animationiteration"),Gh=so("animationstart"),Qh=so("transitionend"),qh=new Map,Vc="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 an(e,t){qh.set(e,t),An(t,[e])}for(var bo=0;bo<Vc.length;bo++){var Fo=Vc[bo],Vy=Fo.toLowerCase(),zy=Fo[0].toUpperCase()+Fo.slice(1);an(Vy,"on"+zy)}an(Hh,"onAnimationEnd");an(Kh,"onAnimationIteration");an(Gh,"onAnimationStart");an("dblclick","onDoubleClick");an("focusin","onFocus");an("focusout","onBlur");an(Qh,"onTransitionEnd");sr("onMouseEnter",["mouseout","mouseover"]);sr("onMouseLeave",["mouseout","mouseover"]);sr("onPointerEnter",["pointerout","pointerover"]);sr("onPointerLeave",["pointerout","pointerover"]);An("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));An("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));An("onBeforeInput",["compositionend","keypress","textInput","paste"]);An("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));An("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));An("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="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(" "),Oy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function zc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Vv(r,t,void 0,e),e.currentTarget=null}function Yh(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 a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==i&&s.isPropagationStopped())break e;zc(s,l,c),i=u}else for(a=0;a<r.length;a++){if(l=r[a],u=l.instance,c=l.currentTarget,l=l.listener,u!==i&&s.isPropagationStopped())break e;zc(s,l,c),i=u}}}if(ki)throw e=_a,ki=!1,_a=null,e}function Y(e,t){var n=t[Ua];n===void 0&&(n=t[Ua]=new Set);var r=e+"__bubble";n.has(r)||(Xh(t,e,2,!1),n.add(r))}function Io(e,t,n){var r=0;t&&(r|=4),Xh(n,e,r,t)}var Us="_reactListening"+Math.random().toString(36).slice(2);function os(e){if(!e[Us]){e[Us]=!0,sh.forEach(function(n){n!=="selectionchange"&&(Oy.has(n)||Io(n,!1,e),Io(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Us]||(t[Us]=!0,Io("selectionchange",!1,t))}}function Xh(e,t,n,r){switch(Lh(t)){case 1:var s=Xv;break;case 4:s=Zv;break;default:s=$l}n=s.bind(null,t,n,e),s=void 0,!Ra||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 Bo(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===s||u.nodeType===8&&u.parentNode===s))return;a=a.return}for(;l!==null;){if(a=vn(l),a===null)return;if(u=a.tag,u===5||u===6){r=i=a;continue e}l=l.parentNode}}r=r.return}jh(function(){var c=i,d=bl(n),h=[];e:{var f=qh.get(e);if(f!==void 0){var v=Wl,j=e;switch(e){case"keypress":if(ui(n)===0)break e;case"keydown":case"keyup":v=hy;break;case"focusin":j="focus",v=Lo;break;case"focusout":j="blur",v=Lo;break;case"beforeblur":case"afterblur":v=Lo;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":v=Nc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=ty;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=gy;break;case Hh:case Kh:case Gh:v=sy;break;case Qh:v=yy;break;case"scroll":v=Jv;break;case"wheel":v=jy;break;case"copy":case"cut":case"paste":v=oy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Tc}var y=(t&4)!==0,C=!y&&e==="scroll",m=y?f!==null?f+"Capture":null:f;y=[];for(var p=c,g;p!==null;){g=p;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,m!==null&&(w=es(p,m),w!=null&&y.push(as(p,w,g)))),C)break;p=p.return}0<y.length&&(f=new v(f,j,null,n,d),h.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",f&&n!==Aa&&(j=n.relatedTarget||n.fromElement)&&(vn(j)||j[At]))break e;if((v||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,v?(j=n.relatedTarget||n.toElement,v=c,j=j?vn(j):null,j!==null&&(C=Dn(j),j!==C||j.tag!==5&&j.tag!==6)&&(j=null)):(v=null,j=c),v!==j)){if(y=Nc,w="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=Tc,w="onPointerLeave",m="onPointerEnter",p="pointer"),C=v==null?f:Fn(v),g=j==null?f:Fn(j),f=new y(w,p+"leave",v,n,d),f.target=C,f.relatedTarget=g,w=null,vn(d)===c&&(y=new y(m,p+"enter",j,n,d),y.target=g,y.relatedTarget=C,w=y),C=w,v&&j)t:{for(y=v,m=j,p=0,g=y;g;g=_n(g))p++;for(g=0,w=m;w;w=_n(w))g++;for(;0<p-g;)y=_n(y),p--;for(;0<g-p;)m=_n(m),g--;for(;p--;){if(y===m||m!==null&&y===m.alternate)break t;y=_n(y),m=_n(m)}y=null}else y=null;v!==null&&Oc(h,f,v,y,!1),j!==null&&C!==null&&Oc(h,C,j,y,!0)}}e:{if(f=c?Fn(c):window,v=f.nodeName&&f.nodeName.toLowerCase(),v==="select"||v==="input"&&f.type==="file")var x=Py;else if(Mc(f))if(Ih)x=Dy;else{x=My;var S=Ey}else(v=f.nodeName)&&v.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(x=Ay);if(x&&(x=x(e,c))){Fh(h,x,n,d);break e}S&&S(e,f,c),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&Ca(f,"number",f.value)}switch(S=c?Fn(c):window,e){case"focusin":(Mc(S)||S.contentEditable==="true")&&(On=S,Oa=c,Br=null);break;case"focusout":Br=Oa=On=null;break;case"mousedown":ba=!0;break;case"contextmenu":case"mouseup":case"dragend":ba=!1,Lc(h,n,d);break;case"selectionchange":if(Ly)break;case"keydown":case"keyup":Lc(h,n,d)}var N;if(Kl)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 zn?Oh(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(zh&&n.locale!=="ko"&&(zn||P!=="onCompositionStart"?P==="onCompositionEnd"&&zn&&(N=Vh()):(Bt=d,Ul="value"in Bt?Bt.value:Bt.textContent,zn=!0)),S=Ei(c,P),0<S.length&&(P=new Cc(P,e,null,n,d),h.push({event:P,listeners:S}),N?P.data=N:(N=bh(n),N!==null&&(P.data=N)))),(N=Sy?ky(e,n):Ny(e,n))&&(c=Ei(c,"onBeforeInput"),0<c.length&&(d=new Cc("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:c}),d.data=N))}Yh(h,t)})}function as(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ei(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=es(e,n),i!=null&&r.unshift(as(e,i,s)),i=es(e,t),i!=null&&r.push(as(e,i,s))),e=e.return}return r}function _n(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Oc(e,t,n,r,s){for(var i=t._reactName,a=[];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=es(n,i),u!=null&&a.unshift(as(n,u,l))):s||(u=es(n,i),u!=null&&a.push(as(n,u,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var by=/\r\n?/g,Fy=/\u0000|\uFFFD/g;function bc(e){return(typeof e=="string"?e:""+e).replace(by,`
|
|
38
|
+
`).replace(Fy,"")}function Ws(e,t,n){if(t=bc(t),bc(e)!==t&&n)throw Error(M(425))}function Mi(){}var Fa=null,Ia=null;function Ba(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 $a=typeof setTimeout=="function"?setTimeout:void 0,Iy=typeof clearTimeout=="function"?clearTimeout:void 0,Fc=typeof Promise=="function"?Promise:void 0,By=typeof queueMicrotask=="function"?queueMicrotask:typeof Fc<"u"?function(e){return Fc.resolve(null).then(e).catch($y)}:$a;function $y(e){setTimeout(function(){throw e})}function $o(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),rs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);rs(t)}function Gt(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 Ic(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 vr=Math.random().toString(36).slice(2),pt="__reactFiber$"+vr,ls="__reactProps$"+vr,At="__reactContainer$"+vr,Ua="__reactEvents$"+vr,Uy="__reactListeners$"+vr,Wy="__reactHandles$"+vr;function vn(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[At]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ic(e);e!==null;){if(n=e[pt])return n;e=Ic(e)}return t}e=n,n=e.parentNode}return null}function Ps(e){return e=e[pt]||e[At],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(M(33))}function io(e){return e[ls]||null}var Wa=[],In=-1;function ln(e){return{current:e}}function X(e){0>In||(e.current=Wa[In],Wa[In]=null,In--)}function Q(e,t){In++,Wa[In]=e.current,e.current=t}var tn={},Ce=ln(tn),_e=ln(!1),Cn=tn;function ir(e,t){var n=e.type.contextTypes;if(!n)return tn;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 Le(e){return e=e.childContextTypes,e!=null}function Ai(){X(_e),X(Ce)}function Bc(e,t,n){if(Ce.current!==tn)throw Error(M(168));Q(Ce,t),Q(_e,n)}function Zh(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(M(108,Ev(e)||"Unknown",s));return se({},n,r)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tn,Cn=Ce.current,Q(Ce,e),Q(_e,_e.current),!0}function $c(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=Zh(e,t,Cn),r.__reactInternalMemoizedMergedChildContext=e,X(_e),X(Ce),Q(Ce,e)):X(_e),Q(_e,n)}var kt=null,oo=!1,Uo=!1;function Jh(e){kt===null?kt=[e]:kt.push(e)}function Hy(e){oo=!0,Jh(e)}function un(){if(!Uo&&kt!==null){Uo=!0;var e=0,t=H;try{var n=kt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}kt=null,oo=!1}catch(s){throw kt!==null&&(kt=kt.slice(e+1)),Nh(Fl,un),s}finally{H=t,Uo=!1}}return null}var Bn=[],$n=0,Ri=null,_i=0,Ye=[],Xe=0,Tn=null,Nt=1,Ct="";function hn(e,t){Bn[$n++]=_i,Bn[$n++]=Ri,Ri=e,_i=t}function ep(e,t,n){Ye[Xe++]=Nt,Ye[Xe++]=Ct,Ye[Xe++]=Tn,Tn=e;var r=Nt;e=Ct;var s=32-lt(r)-1;r&=~(1<<s),n+=1;var i=32-lt(t)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,Nt=1<<32-lt(t)+s|n<<s|r,Ct=i+e}else Nt=1<<i|n<<s|r,Ct=e}function Ql(e){e.return!==null&&(hn(e,1),ep(e,1,0))}function ql(e){for(;e===Ri;)Ri=Bn[--$n],Bn[$n]=null,_i=Bn[--$n],Bn[$n]=null;for(;e===Tn;)Tn=Ye[--Xe],Ye[Xe]=null,Ct=Ye[--Xe],Ye[Xe]=null,Nt=Ye[--Xe],Ye[Xe]=null}var Be=null,Ie=null,ee=!1,at=null;function tp(e,t){var n=Ze(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 Uc(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,Be=e,Ie=Gt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Be=e,Ie=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tn!==null?{id:Nt,overflow:Ct}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Be=e,Ie=null,!0):!1;default:return!1}}function Ha(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ka(e){if(ee){var t=Ie;if(t){var n=t;if(!Uc(e,t)){if(Ha(e))throw Error(M(418));t=Gt(n.nextSibling);var r=Be;t&&Uc(e,t)?tp(r,n):(e.flags=e.flags&-4097|2,ee=!1,Be=e)}}else{if(Ha(e))throw Error(M(418));e.flags=e.flags&-4097|2,ee=!1,Be=e}}}function Wc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Be=e}function Hs(e){if(e!==Be)return!1;if(!ee)return Wc(e),ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ba(e.type,e.memoizedProps)),t&&(t=Ie)){if(Ha(e))throw np(),Error(M(418));for(;t;)tp(e,t),t=Gt(t.nextSibling)}if(Wc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(M(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ie=Gt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ie=null}}else Ie=Be?Gt(e.stateNode.nextSibling):null;return!0}function np(){for(var e=Ie;e;)e=Gt(e.nextSibling)}function or(){Ie=Be=null,ee=!1}function Yl(e){at===null?at=[e]:at.push(e)}var Ky=Lt.ReactCurrentBatchConfig;function Cr(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(M(309));var r=n.stateNode}if(!r)throw Error(M(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(a){var l=s.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,e))}return e}function Ks(e,t){throw e=Object.prototype.toString.call(t),Error(M(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hc(e){var t=e._init;return t(e._payload)}function rp(e){function t(m,p){if(e){var g=m.deletions;g===null?(m.deletions=[p],m.flags|=16):g.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=Xt(m,p),m.index=0,m.sibling=null,m}function i(m,p,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<p?(m.flags|=2,p):g):(m.flags|=2,p)):(m.flags|=1048576,p)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,g,w){return p===null||p.tag!==6?(p=Yo(g,m.mode,w),p.return=m,p):(p=s(p,g),p.return=m,p)}function u(m,p,g,w){var x=g.type;return x===Vn?d(m,p,g.props.children,w,g.key):p!==null&&(p.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ot&&Hc(x)===p.type)?(w=s(p,g.props),w.ref=Cr(m,p,g),w.return=m,w):(w=gi(g.type,g.key,g.props,null,m.mode,w),w.ref=Cr(m,p,g),w.return=m,w)}function c(m,p,g,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=Xo(g,m.mode,w),p.return=m,p):(p=s(p,g.children||[]),p.return=m,p)}function d(m,p,g,w,x){return p===null||p.tag!==7?(p=Sn(g,m.mode,w,x),p.return=m,p):(p=s(p,g),p.return=m,p)}function h(m,p,g){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Yo(""+p,m.mode,g),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Vs:return g=gi(p.type,p.key,p.props,null,m.mode,g),g.ref=Cr(m,null,p),g.return=m,g;case Ln:return p=Xo(p,m.mode,g),p.return=m,p;case Ot:var w=p._init;return h(m,w(p._payload),g)}if(Ar(p)||jr(p))return p=Sn(p,m.mode,g,null),p.return=m,p;Ks(m,p)}return null}function f(m,p,g,w){var x=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return x!==null?null:l(m,p,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Vs:return g.key===x?u(m,p,g,w):null;case Ln:return g.key===x?c(m,p,g,w):null;case Ot:return x=g._init,f(m,p,x(g._payload),w)}if(Ar(g)||jr(g))return x!==null?null:d(m,p,g,w,null);Ks(m,g)}return null}function v(m,p,g,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return m=m.get(g)||null,l(p,m,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Vs:return m=m.get(w.key===null?g:w.key)||null,u(p,m,w,x);case Ln:return m=m.get(w.key===null?g:w.key)||null,c(p,m,w,x);case Ot:var S=w._init;return v(m,p,g,S(w._payload),x)}if(Ar(w)||jr(w))return m=m.get(g)||null,d(p,m,w,x,null);Ks(p,w)}return null}function j(m,p,g,w){for(var x=null,S=null,N=p,P=p=0,D=null;N!==null&&P<g.length;P++){N.index>P?(D=N,N=null):D=N.sibling;var E=f(m,N,g[P],w);if(E===null){N===null&&(N=D);break}e&&N&&E.alternate===null&&t(m,N),p=i(E,p,P),S===null?x=E:S.sibling=E,S=E,N=D}if(P===g.length)return n(m,N),ee&&hn(m,P),x;if(N===null){for(;P<g.length;P++)N=h(m,g[P],w),N!==null&&(p=i(N,p,P),S===null?x=N:S.sibling=N,S=N);return ee&&hn(m,P),x}for(N=r(m,N);P<g.length;P++)D=v(N,m,P,g[P],w),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?P:D.key),p=i(D,p,P),S===null?x=D:S.sibling=D,S=D);return e&&N.forEach(function(I){return t(m,I)}),ee&&hn(m,P),x}function y(m,p,g,w){var x=jr(g);if(typeof x!="function")throw Error(M(150));if(g=x.call(g),g==null)throw Error(M(151));for(var S=x=null,N=p,P=p=0,D=null,E=g.next();N!==null&&!E.done;P++,E=g.next()){N.index>P?(D=N,N=null):D=N.sibling;var I=f(m,N,E.value,w);if(I===null){N===null&&(N=D);break}e&&N&&I.alternate===null&&t(m,N),p=i(I,p,P),S===null?x=I:S.sibling=I,S=I,N=D}if(E.done)return n(m,N),ee&&hn(m,P),x;if(N===null){for(;!E.done;P++,E=g.next())E=h(m,E.value,w),E!==null&&(p=i(E,p,P),S===null?x=E:S.sibling=E,S=E);return ee&&hn(m,P),x}for(N=r(m,N);!E.done;P++,E=g.next())E=v(N,m,P,E.value,w),E!==null&&(e&&E.alternate!==null&&N.delete(E.key===null?P:E.key),p=i(E,p,P),S===null?x=E:S.sibling=E,S=E);return e&&N.forEach(function(F){return t(m,F)}),ee&&hn(m,P),x}function C(m,p,g,w){if(typeof g=="object"&&g!==null&&g.type===Vn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Vs:e:{for(var x=g.key,S=p;S!==null;){if(S.key===x){if(x=g.type,x===Vn){if(S.tag===7){n(m,S.sibling),p=s(S,g.props.children),p.return=m,m=p;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Ot&&Hc(x)===S.type){n(m,S.sibling),p=s(S,g.props),p.ref=Cr(m,S,g),p.return=m,m=p;break e}n(m,S);break}else t(m,S);S=S.sibling}g.type===Vn?(p=Sn(g.props.children,m.mode,w,g.key),p.return=m,m=p):(w=gi(g.type,g.key,g.props,null,m.mode,w),w.ref=Cr(m,p,g),w.return=m,m=w)}return a(m);case Ln:e:{for(S=g.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=s(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Xo(g,m.mode,w),p.return=m,m=p}return a(m);case Ot:return S=g._init,C(m,p,S(g._payload),w)}if(Ar(g))return j(m,p,g,w);if(jr(g))return y(m,p,g,w);Ks(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=s(p,g),p.return=m,m=p):(n(m,p),p=Yo(g,m.mode,w),p.return=m,m=p),a(m)):n(m,p)}return C}var ar=rp(!0),sp=rp(!1),Li=ln(null),Vi=null,Un=null,Xl=null;function Zl(){Xl=Un=Vi=null}function Jl(e){var t=Li.current;X(Li),e._currentValue=t}function Ga(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 nr(e,t){Vi=e,Xl=Un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Re=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(Xl!==e)if(e={context:e,memoizedValue:t,next:null},Un===null){if(Vi===null)throw Error(M(308));Un=e,Vi.dependencies={lanes:0,firstContext:e}}else Un=Un.next=e;return t}var yn=null;function eu(e){yn===null?yn=[e]:yn.push(e)}function ip(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,eu(t)):(n.next=s.next,s.next=n),t.interleaved=n,Dt(e,r)}function Dt(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 bt=!1;function tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function op(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 Tt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Dt(e,n)}return s=r.interleaved,s===null?(t.next=t,eu(r)):(t.next=s.next,s.next=t),r.interleaved=t,Dt(e,n)}function ci(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,Il(e,n)}}function Kc(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 a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,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 zi(e,t,n,r){var s=e.updateQueue;bt=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?i=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(i!==null){var h=s.baseState;a=0,d=c=u=null,l=i;do{var f=l.lane,v=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var j=e,y=l;switch(f=t,v=n,y.tag){case 1:if(j=y.payload,typeof j=="function"){h=j.call(v,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(v,h,f):j,f==null)break e;h=se({},h,f);break e;case 2:bt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else v={eventTime:v,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=v,u=h):d=d.next=v,a|=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 a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);En|=a,e.lanes=a,e.memoizedState=h}}function Gc(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(M(191,s));s.call(r)}}}var Es={},vt=ln(Es),us=ln(Es),cs=ln(Es);function xn(e){if(e===Es)throw Error(M(174));return e}function nu(e,t){switch(Q(cs,t),Q(us,e),Q(vt,Es),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pa(t,e)}X(vt),Q(vt,t)}function lr(){X(vt),X(us),X(cs)}function ap(e){xn(cs.current);var t=xn(vt.current),n=Pa(t,e.type);t!==n&&(Q(us,e),Q(vt,n))}function ru(e){us.current===e&&(X(vt),X(us))}var te=ln(0);function Oi(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 Wo=[];function su(){for(var e=0;e<Wo.length;e++)Wo[e]._workInProgressVersionPrimary=null;Wo.length=0}var di=Lt.ReactCurrentDispatcher,Ho=Lt.ReactCurrentBatchConfig,Pn=0,re=null,fe=null,pe=null,bi=!1,$r=!1,ds=0,Gy=0;function je(){throw Error(M(321))}function iu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ct(e[n],t[n]))return!1;return!0}function ou(e,t,n,r,s,i){if(Pn=i,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,di.current=e===null||e.memoizedState===null?Xy:Zy,e=n(r,s),$r){i=0;do{if($r=!1,ds=0,25<=i)throw Error(M(301));i+=1,pe=fe=null,t.updateQueue=null,di.current=Jy,e=n(r,s)}while($r)}if(di.current=Fi,t=fe!==null&&fe.next!==null,Pn=0,pe=fe=re=null,bi=!1,t)throw Error(M(300));return e}function au(){var e=ds!==0;return ds=0,e}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pe===null?re.memoizedState=pe=e:pe=pe.next=e,pe}function tt(){if(fe===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=pe===null?re.memoizedState:pe.next;if(t!==null)pe=t,fe=e;else{if(e===null)throw Error(M(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},pe===null?re.memoizedState=pe=e:pe=pe.next=e}return pe}function fs(e,t){return typeof t=="function"?t(e):t}function Ko(e){var t=tt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=fe,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=a=null,u=null,c=i;do{var d=c.lane;if((Pn&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,a=r):u=u.next=h,re.lanes|=d,En|=d}c=c.next}while(c!==null&&c!==i);u===null?a=r:u.next=l,ct(r,t.memoizedState)||(Re=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,re.lanes|=i,En|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Go(e){var t=tt(),n=t.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var a=s=s.next;do i=e(i,a.action),a=a.next;while(a!==s);ct(i,t.memoizedState)||(Re=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function lp(){}function up(e,t){var n=re,r=tt(),s=t(),i=!ct(r.memoizedState,s);if(i&&(r.memoizedState=s,Re=!0),r=r.queue,lu(fp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||pe!==null&&pe.memoizedState.tag&1){if(n.flags|=2048,hs(9,dp.bind(null,n,r,s,t),void 0,null),me===null)throw Error(M(349));Pn&30||cp(n,t,s)}return s}function cp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t={lastEffect:null,stores:null},re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dp(e,t,n,r){t.value=n,t.getSnapshot=r,hp(t)&&pp(e)}function fp(e,t,n){return n(function(){hp(t)&&pp(e)})}function hp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ct(e,n)}catch{return!0}}function pp(e){var t=Dt(e,1);t!==null&&ut(t,e,1,-1)}function Qc(e){var t=ht();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:e},t.queue=e,e=e.dispatch=Yy.bind(null,re,e),[t.memoizedState,e]}function hs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=re.updateQueue,t===null?(t={lastEffect:null,stores:null},re.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 mp(){return tt().memoizedState}function fi(e,t,n,r){var s=ht();re.flags|=e,s.memoizedState=hs(1|t,n,void 0,r===void 0?null:r)}function ao(e,t,n,r){var s=tt();r=r===void 0?null:r;var i=void 0;if(fe!==null){var a=fe.memoizedState;if(i=a.destroy,r!==null&&iu(r,a.deps)){s.memoizedState=hs(t,n,i,r);return}}re.flags|=e,s.memoizedState=hs(1|t,n,i,r)}function qc(e,t){return fi(8390656,8,e,t)}function lu(e,t){return ao(2048,8,e,t)}function gp(e,t){return ao(4,2,e,t)}function vp(e,t){return ao(4,4,e,t)}function yp(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 xp(e,t,n){return n=n!=null?n.concat([e]):null,ao(4,4,yp.bind(null,t,e),n)}function uu(){}function jp(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&iu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function wp(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&iu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Sp(e,t,n){return Pn&21?(ct(n,t)||(n=Ph(),re.lanes|=n,En|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Re=!0),e.memoizedState=n)}function Qy(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Ho.transition;Ho.transition={};try{e(!1),t()}finally{H=n,Ho.transition=r}}function kp(){return tt().memoizedState}function qy(e,t,n){var r=Yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Np(e))Cp(t,n);else if(n=ip(e,t,n,r),n!==null){var s=Ee();ut(n,e,r,s),Tp(n,t,r)}}function Yy(e,t,n){var r=Yt(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Np(e))Cp(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,ct(l,a)){var u=t.interleaved;u===null?(s.next=s,eu(t)):(s.next=u.next,u.next=s),t.interleaved=s;return}}catch{}finally{}n=ip(e,t,s,r),n!==null&&(s=Ee(),ut(n,e,r,s),Tp(n,t,r))}}function Np(e){var t=e.alternate;return e===re||t!==null&&t===re}function Cp(e,t){$r=bi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Il(e,n)}}var Fi={readContext:et,useCallback:je,useContext:je,useEffect:je,useImperativeHandle:je,useInsertionEffect:je,useLayoutEffect:je,useMemo:je,useReducer:je,useRef:je,useState:je,useDebugValue:je,useDeferredValue:je,useTransition:je,useMutableSource:je,useSyncExternalStore:je,useId:je,unstable_isNewReconciler:!1},Xy={readContext:et,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:qc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fi(4194308,4,yp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return fi(4,2,e,t)},useMemo:function(e,t){var n=ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ht();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=qy.bind(null,re,e),[r.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:Qc,useDebugValue:uu,useDeferredValue:function(e){return ht().memoizedState=e},useTransition:function(){var e=Qc(!1),t=e[0];return e=Qy.bind(null,e[1]),ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=re,s=ht();if(ee){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),me===null)throw Error(M(349));Pn&30||cp(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,qc(fp.bind(null,r,i,e),[e]),r.flags|=2048,hs(9,dp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ht(),t=me.identifierPrefix;if(ee){var n=Ct,r=Nt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ds++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Gy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zy={readContext:et,useCallback:jp,useContext:et,useEffect:lu,useImperativeHandle:xp,useInsertionEffect:gp,useLayoutEffect:vp,useMemo:wp,useReducer:Ko,useRef:mp,useState:function(){return Ko(fs)},useDebugValue:uu,useDeferredValue:function(e){var t=tt();return Sp(t,fe.memoizedState,e)},useTransition:function(){var e=Ko(fs)[0],t=tt().memoizedState;return[e,t]},useMutableSource:lp,useSyncExternalStore:up,useId:kp,unstable_isNewReconciler:!1},Jy={readContext:et,useCallback:jp,useContext:et,useEffect:lu,useImperativeHandle:xp,useInsertionEffect:gp,useLayoutEffect:vp,useMemo:wp,useReducer:Go,useRef:mp,useState:function(){return Go(fs)},useDebugValue:uu,useDeferredValue:function(e){var t=tt();return fe===null?t.memoizedState=e:Sp(t,fe.memoizedState,e)},useTransition:function(){var e=Go(fs)[0],t=tt().memoizedState;return[e,t]},useMutableSource:lp,useSyncExternalStore:up,useId:kp,unstable_isNewReconciler:!1};function it(e,t){if(e&&e.defaultProps){t=se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Qa(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var lo={isMounted:function(e){return(e=e._reactInternals)?Dn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ee(),s=Yt(e),i=Tt(r,s);i.payload=t,n!=null&&(i.callback=n),t=Qt(e,i,s),t!==null&&(ut(t,e,s,r),ci(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ee(),s=Yt(e),i=Tt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Qt(e,i,s),t!==null&&(ut(t,e,s,r),ci(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ee(),r=Yt(e),s=Tt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Qt(e,s,r),t!==null&&(ut(t,e,r,n),ci(t,e,r))}};function Yc(e,t,n,r,s,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!is(n,r)||!is(s,i):!0}function Pp(e,t,n){var r=!1,s=tn,i=t.contextType;return typeof i=="object"&&i!==null?i=et(i):(s=Le(t)?Cn:Ce.current,r=t.contextTypes,i=(r=r!=null)?ir(e,s):tn),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=lo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Xc(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&&lo.enqueueReplaceState(t,t.state,null)}function qa(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},tu(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=et(i):(i=Le(t)?Cn:Ce.current,s.context=ir(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Qa(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&&lo.enqueueReplaceState(s,s.state,null),zi(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function ur(e,t){try{var n="",r=t;do n+=Pv(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 Qo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ya(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var e0=typeof WeakMap=="function"?WeakMap:Map;function Ep(e,t,n){n=Tt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bi||(Bi=!0,ol=r),Ya(e,t)},n}function Mp(e,t,n){n=Tt(-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(){Ya(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ya(e,t),typeof r!="function"&&(qt===null?qt=new Set([this]):qt.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Zc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new e0;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=p0.bind(null,e,t,n),t.then(e,e))}function Jc(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 ed(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=Tt(-1,1),t.tag=2,Qt(n,t,1))),n.lanes|=1),e)}var t0=Lt.ReactCurrentOwner,Re=!1;function Pe(e,t,n,r){t.child=e===null?sp(t,null,n,r):ar(t,e.child,n,r)}function td(e,t,n,r,s){n=n.render;var i=t.ref;return nr(t,s),r=ou(e,t,n,r,i,s),n=au(),e!==null&&!Re?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(ee&&n&&Ql(t),t.flags|=1,Pe(e,t,r,s),t.child)}function nd(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!vu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Ap(e,t,i,r,s)):(e=gi(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 a=i.memoizedProps;if(n=n.compare,n=n!==null?n:is,n(a,r)&&e.ref===t.ref)return Rt(e,t,s)}return t.flags|=1,e=Xt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Ap(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(is(i,r)&&e.ref===t.ref)if(Re=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Re=!0);else return t.lanes=e.lanes,Rt(e,t,s)}return Xa(e,t,n,r,s)}function Dp(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},Q(Hn,Oe),Oe|=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,Q(Hn,Oe),Oe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Q(Hn,Oe),Oe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Q(Hn,Oe),Oe|=r;return Pe(e,t,s,n),t.child}function Rp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xa(e,t,n,r,s){var i=Le(n)?Cn:Ce.current;return i=ir(t,i),nr(t,s),n=ou(e,t,n,r,i,s),r=au(),e!==null&&!Re?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Rt(e,t,s)):(ee&&r&&Ql(t),t.flags|=1,Pe(e,t,n,s),t.child)}function rd(e,t,n,r,s){if(Le(n)){var i=!0;Di(t)}else i=!1;if(nr(t,s),t.stateNode===null)hi(e,t),Pp(t,n,r),qa(t,n,r,s),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=et(c):(c=Le(n)?Cn:Ce.current,c=ir(t,c));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||u!==c)&&Xc(t,a,r,c),bt=!1;var f=t.memoizedState;a.state=f,zi(t,r,a,s),u=t.memoizedState,l!==r||f!==u||_e.current||bt?(typeof d=="function"&&(Qa(t,n,d,r),u=t.memoizedState),(l=bt||Yc(t,n,l,r,f,u,c))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,op(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:it(t.type,l),a.props=c,h=t.pendingProps,f=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=et(u):(u=Le(n)?Cn:Ce.current,u=ir(t,u));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||f!==u)&&Xc(t,a,r,u),bt=!1,f=t.memoizedState,a.state=f,zi(t,r,a,s);var j=t.memoizedState;l!==h||f!==j||_e.current||bt?(typeof v=="function"&&(Qa(t,n,v,r),j=t.memoizedState),(c=bt||Yc(t,n,c,r,f,j,u)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,j,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,j,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=j),a.props=r,a.state=j,a.context=u,r=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Za(e,t,n,r,i,s)}function Za(e,t,n,r,s,i){Rp(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return s&&$c(t,n,!1),Rt(e,t,i);r=t.stateNode,t0.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ar(t,e.child,null,i),t.child=ar(t,null,l,i)):Pe(e,t,l,i),t.memoizedState=r.state,s&&$c(t,n,!0),t.child}function _p(e){var t=e.stateNode;t.pendingContext?Bc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bc(e,t.context,!1),nu(e,t.containerInfo)}function sd(e,t,n,r,s){return or(),Yl(s),t.flags|=256,Pe(e,t,n,r),t.child}var Ja={dehydrated:null,treeContext:null,retryLane:0};function el(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lp(e,t,n){var r=t.pendingProps,s=te.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),Q(te,s&1),e===null)return Ka(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=fo(a,r,0,null),e=Sn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=el(n),t.memoizedState=Ja,e):cu(t,a));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return n0(e,t,a,r,l,s,n);if(i){i=r.fallback,a=t.mode,s=e.child,l=s.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Xt(s,u),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Xt(l,i):(i=Sn(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?el(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Ja,r}return i=e.child,e=i.sibling,r=Xt(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 cu(e,t){return t=fo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gs(e,t,n,r){return r!==null&&Yl(r),ar(t,e.child,null,n),e=cu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function n0(e,t,n,r,s,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Qo(Error(M(422))),Gs(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=fo({mode:"visible",children:r.children},s,0,null),i=Sn(i,s,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ar(t,e.child,null,a),t.child.memoizedState=el(a),t.memoizedState=Ja,i);if(!(t.mode&1))return Gs(e,t,a,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(M(419)),r=Qo(i,r,void 0),Gs(e,t,a,r)}if(l=(a&e.childLanes)!==0,Re||l){if(r=me,r!==null){switch(a&-a){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|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Dt(e,s),ut(r,e,s,-1))}return gu(),r=Qo(Error(M(421))),Gs(e,t,a,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=m0.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ie=Gt(s.nextSibling),Be=t,ee=!0,at=null,e!==null&&(Ye[Xe++]=Nt,Ye[Xe++]=Ct,Ye[Xe++]=Tn,Nt=e.id,Ct=e.overflow,Tn=t),t=cu(t,r.children),t.flags|=4096,t)}function id(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ga(e.return,t,n)}function qo(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 Vp(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Pe(e,t,r.children,n),r=te.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&&id(e,n,t);else if(e.tag===19)id(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(Q(te,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&&Oi(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),qo(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&&Oi(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}qo(t,!0,n,null,i);break;case"together":qo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),En|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=Xt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function r0(e,t,n){switch(t.tag){case 3:_p(t),or();break;case 5:ap(t);break;case 1:Le(t.type)&&Di(t);break;case 4:nu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;Q(Li,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(te,te.current&1),t.flags|=128,null):n&t.child.childLanes?Lp(e,t,n):(Q(te,te.current&1),e=Rt(e,t,n),e!==null?e.sibling:null);Q(te,te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vp(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(te,te.current),r)break;return null;case 22:case 23:return t.lanes=0,Dp(e,t,n)}return Rt(e,t,n)}var zp,tl,Op,bp;zp=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}};tl=function(){};Op=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,xn(vt.current);var i=null;switch(n){case"input":s=ka(e,s),r=ka(e,r),i=[];break;case"select":s=se({},s,{value:void 0}),r=se({},r,{value:void 0}),i=[];break;case"textarea":s=Ta(e,s),r=Ta(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Mi)}Ea(n,r);var a;n=null;for(c in s)if(!r.hasOwnProperty(c)&&s.hasOwnProperty(c)&&s[c]!=null)if(c==="style"){var l=s[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Zr.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(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}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"&&(Zr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Y("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)}};bp=function(e,t,n,r){n!==r&&(t.flags|=4)};function Tr(e,t){if(!ee)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 we(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 s0(e,t,n){var r=t.pendingProps;switch(ql(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return Le(t.type)&&Ai(),we(t),null;case 3:return r=t.stateNode,lr(),X(_e),X(Ce),su(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Hs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,at!==null&&(ul(at),at=null))),tl(e,t),we(t),null;case 5:ru(t);var s=xn(cs.current);if(n=t.type,e!==null&&t.stateNode!=null)Op(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return we(t),null}if(e=xn(vt.current),Hs(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pt]=t,r[ls]=i,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(s=0;s<Rr.length;s++)Y(Rr[s],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":pc(r,i),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Y("invalid",r);break;case"textarea":gc(r,i),Y("invalid",r)}Ea(n,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Ws(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Ws(r.textContent,l,e),s=["children",""+l]):Zr.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Y("scroll",r)}switch(n){case"input":zs(r),mc(r,i,!0);break;case"textarea":zs(r),vc(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Mi)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pt]=t,e[ls]=r,zp(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ma(n,r),n){case"dialog":Y("cancel",e),Y("close",e),s=r;break;case"iframe":case"object":case"embed":Y("load",e),s=r;break;case"video":case"audio":for(s=0;s<Rr.length;s++)Y(Rr[s],e);s=r;break;case"source":Y("error",e),s=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),s=r;break;case"details":Y("toggle",e),s=r;break;case"input":pc(e,r),s=ka(e,r),Y("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=se({},r,{value:void 0}),Y("invalid",e);break;case"textarea":gc(e,r),s=Ta(e,r),Y("invalid",e);break;default:s=r}Ea(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];i==="style"?mh(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&hh(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Jr(e,u):typeof u=="number"&&Jr(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Zr.hasOwnProperty(i)?u!=null&&i==="onScroll"&&Y("scroll",e):u!=null&&Ll(e,i,u,a))}switch(n){case"input":zs(e),mc(e,r,!1);break;case"textarea":zs(e),vc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+en(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Zn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Zn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Mi)}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 we(t),null;case 6:if(e&&t.stateNode!=null)bp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(M(166));if(n=xn(cs.current),xn(vt.current),Hs(t)){if(r=t.stateNode,n=t.memoizedProps,r[pt]=t,(i=r.nodeValue!==n)&&(e=Be,e!==null))switch(e.tag){case 3:Ws(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ws(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[pt]=t,t.stateNode=r}return we(t),null;case 13:if(X(te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ee&&Ie!==null&&t.mode&1&&!(t.flags&128))np(),or(),t.flags|=98560,i=!1;else if(i=Hs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(M(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(M(317));i[pt]=t}else or(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;we(t),i=!1}else at!==null&&(ul(at),at=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||te.current&1?he===0&&(he=3):gu())),t.updateQueue!==null&&(t.flags|=4),we(t),null);case 4:return lr(),tl(e,t),e===null&&os(t.stateNode.containerInfo),we(t),null;case 10:return Jl(t.type._context),we(t),null;case 17:return Le(t.type)&&Ai(),we(t),null;case 19:if(X(te),i=t.memoizedState,i===null)return we(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Tr(i,!1);else{if(he!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Oi(e),a!==null){for(t.flags|=128,Tr(i,!1),r=a.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,a=i.alternate,a===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=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(te,te.current&1|2),t.child}e=e.sibling}i.tail!==null&&ue()>cr&&(t.flags|=128,r=!0,Tr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Oi(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ee)return we(t),null}else 2*ue()-i.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Tr(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ue(),t.sibling=null,n=te.current,Q(te,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return mu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oe&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function i0(e,t){switch(ql(t),t.tag){case 1:return Le(t.type)&&Ai(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lr(),X(_e),X(Ce),su(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ru(t),null;case 13:if(X(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(te),null;case 4:return lr(),null;case 10:return Jl(t.type._context),null;case 22:case 23:return mu(),null;case 24:return null;default:return null}}var Qs=!1,ke=!1,o0=typeof WeakSet=="function"?WeakSet:Set,R=null;function Wn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ae(e,t,r)}else n.current=null}function nl(e,t,n){try{n()}catch(r){ae(e,t,r)}}var od=!1;function a0(e,t){if(Fa=Ti,e=Uh(),Gl(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 a=0,l=-1,u=-1,c=0,d=0,h=e,f=null;t:for(;;){for(var v;h!==n||s!==0&&h.nodeType!==3||(l=a+s),h!==i||r!==0&&h.nodeType!==3||(u=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(v=h.firstChild)!==null;)f=h,h=v;for(;;){if(h===e)break t;if(f===n&&++c===s&&(l=a),f===i&&++d===r&&(u=a),(v=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=v}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ia={focusedElem:e,selectionRange:n},Ti=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;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:it(t.type,y),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(w){ae(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return j=od,od=!1,j}function Ur(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&&nl(t,n,i)}s=s.next}while(s!==r)}}function uo(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 rl(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 Fp(e){var t=e.alternate;t!==null&&(e.alternate=null,Fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[ls],delete t[Ua],delete t[Uy],delete t[Wy])),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 Ip(e){return e.tag===5||e.tag===3||e.tag===4}function ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ip(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 sl(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=Mi));else if(r!==4&&(e=e.child,e!==null))for(sl(e,t,n),e=e.sibling;e!==null;)sl(e,t,n),e=e.sibling}function il(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(il(e,t,n),e=e.sibling;e!==null;)il(e,t,n),e=e.sibling}var ge=null,ot=!1;function Vt(e,t,n){for(n=n.child;n!==null;)Bp(e,t,n),n=n.sibling}function Bp(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(to,n)}catch{}switch(n.tag){case 5:ke||Wn(n,t);case 6:var r=ge,s=ot;ge=null,Vt(e,t,n),ge=r,ot=s,ge!==null&&(ot?(e=ge,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ge.removeChild(n.stateNode));break;case 18:ge!==null&&(ot?(e=ge,n=n.stateNode,e.nodeType===8?$o(e.parentNode,n):e.nodeType===1&&$o(e,n),rs(e)):$o(ge,n.stateNode));break;case 4:r=ge,s=ot,ge=n.stateNode.containerInfo,ot=!0,Vt(e,t,n),ge=r,ot=s;break;case 0:case 11:case 14:case 15:if(!ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&nl(n,t,a),s=s.next}while(s!==r)}Vt(e,t,n);break;case 1:if(!ke&&(Wn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ae(n,t,l)}Vt(e,t,n);break;case 21:Vt(e,t,n);break;case 22:n.mode&1?(ke=(r=ke)||n.memoizedState!==null,Vt(e,t,n),ke=r):Vt(e,t,n);break;default:Vt(e,t,n)}}function ld(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o0),t.forEach(function(r){var s=g0.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function rt(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,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:ge=l.stateNode,ot=!1;break e;case 3:ge=l.stateNode.containerInfo,ot=!0;break e;case 4:ge=l.stateNode.containerInfo,ot=!0;break e}l=l.return}if(ge===null)throw Error(M(160));Bp(i,a,s),ge=null,ot=!1;var u=s.alternate;u!==null&&(u.return=null),s.return=null}catch(c){ae(s,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$p(t,e),t=t.sibling}function $p(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(rt(t,e),ft(e),r&4){try{Ur(3,e,e.return),uo(3,e)}catch(y){ae(e,e.return,y)}try{Ur(5,e,e.return)}catch(y){ae(e,e.return,y)}}break;case 1:rt(t,e),ft(e),r&512&&n!==null&&Wn(n,n.return);break;case 5:if(rt(t,e),ft(e),r&512&&n!==null&&Wn(n,n.return),e.flags&32){var s=e.stateNode;try{Jr(s,"")}catch(y){ae(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,a=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&&ch(s,i),Ma(l,a);var c=Ma(l,i);for(a=0;a<u.length;a+=2){var d=u[a],h=u[a+1];d==="style"?mh(s,h):d==="dangerouslySetInnerHTML"?hh(s,h):d==="children"?Jr(s,h):Ll(s,d,h,c)}switch(l){case"input":Na(s,i);break;case"textarea":dh(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Zn(s,!!i.multiple,v,!1):f!==!!i.multiple&&(i.defaultValue!=null?Zn(s,!!i.multiple,i.defaultValue,!0):Zn(s,!!i.multiple,i.multiple?[]:"",!1))}s[ls]=i}catch(y){ae(e,e.return,y)}}break;case 6:if(rt(t,e),ft(e),r&4){if(e.stateNode===null)throw Error(M(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){ae(e,e.return,y)}}break;case 3:if(rt(t,e),ft(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rs(t.containerInfo)}catch(y){ae(e,e.return,y)}break;case 4:rt(t,e),ft(e);break;case 13:rt(t,e),ft(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(hu=ue())),r&4&&ld(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(ke=(c=ke)||d,rt(t,e),ke=c):rt(t,e),ft(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(h=R=d;R!==null;){switch(f=R,v=f.child,f.tag){case 0:case 11:case 14:case 15:Ur(4,f,f.return);break;case 1:Wn(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){ae(r,n,y)}}break;case 5:Wn(f,f.return);break;case 22:if(f.memoizedState!==null){cd(h);continue}}v!==null?(v.return=f,R=v):cd(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,a=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=ph("display",a))}catch(y){ae(e,e.return,y)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(y){ae(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:rt(t,e),ft(e),r&4&&ld(e);break;case 21:break;default:rt(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Ip(n)){var r=n;break e}n=n.return}throw Error(M(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Jr(s,""),r.flags&=-33);var i=ad(e);il(e,i,s);break;case 3:case 4:var a=r.stateNode.containerInfo,l=ad(e);sl(e,l,a);break;default:throw Error(M(161))}}catch(u){ae(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function l0(e,t,n){R=e,Up(e)}function Up(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var s=R,i=s.child;if(s.tag===22&&r){var a=s.memoizedState!==null||Qs;if(!a){var l=s.alternate,u=l!==null&&l.memoizedState!==null||ke;l=Qs;var c=ke;if(Qs=a,(ke=u)&&!c)for(R=s;R!==null;)a=R,u=a.child,a.tag===22&&a.memoizedState!==null?dd(s):u!==null?(u.return=a,R=u):dd(s);for(;i!==null;)R=i,Up(i),i=i.sibling;R=s,Qs=l,ke=c}ud(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,R=i):ud(e)}}function ud(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ke||uo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ke)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:it(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Gc(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Gc(t,a,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&&rs(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(M(163))}ke||t.flags&512&&rl(t)}catch(f){ae(t,t.return,f)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function cd(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function dd(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{uo(4,t)}catch(u){ae(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(u){ae(t,s,u)}}var i=t.return;try{rl(t)}catch(u){ae(t,i,u)}break;case 5:var a=t.return;try{rl(t)}catch(u){ae(t,a,u)}}}catch(u){ae(t,t.return,u)}if(t===e){R=null;break}var l=t.sibling;if(l!==null){l.return=t.return,R=l;break}R=t.return}}var u0=Math.ceil,Ii=Lt.ReactCurrentDispatcher,du=Lt.ReactCurrentOwner,Je=Lt.ReactCurrentBatchConfig,W=0,me=null,de=null,ye=0,Oe=0,Hn=ln(0),he=0,ps=null,En=0,co=0,fu=0,Wr=null,De=null,hu=0,cr=1/0,St=null,Bi=!1,ol=null,qt=null,qs=!1,$t=null,$i=0,Hr=0,al=null,pi=-1,mi=0;function Ee(){return W&6?ue():pi!==-1?pi:pi=ue()}function Yt(e){return e.mode&1?W&2&&ye!==0?ye&-ye:Ky.transition!==null?(mi===0&&(mi=Ph()),mi):(e=H,e!==0||(e=window.event,e=e===void 0?16:Lh(e.type)),e):1}function ut(e,t,n,r){if(50<Hr)throw Hr=0,al=null,Error(M(185));Cs(e,n,r),(!(W&2)||e!==me)&&(e===me&&(!(W&2)&&(co|=n),he===4&&It(e,ye)),Ve(e,r),n===1&&W===0&&!(t.mode&1)&&(cr=ue()+500,oo&&un()))}function Ve(e,t){var n=e.callbackNode;Kv(e,t);var r=Ci(e,e===me?ye:0);if(r===0)n!==null&&jc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&jc(n),t===1)e.tag===0?Hy(fd.bind(null,e)):Jh(fd.bind(null,e)),By(function(){!(W&6)&&un()}),n=null;else{switch(Eh(r)){case 1:n=Fl;break;case 4:n=Ch;break;case 16:n=Ni;break;case 536870912:n=Th;break;default:n=Ni}n=Xp(n,Wp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wp(e,t){if(pi=-1,mi=0,W&6)throw Error(M(327));var n=e.callbackNode;if(rr()&&e.callbackNode!==n)return null;var r=Ci(e,e===me?ye:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ui(e,r);else{t=r;var s=W;W|=2;var i=Kp();(me!==e||ye!==t)&&(St=null,cr=ue()+500,wn(e,t));do try{f0();break}catch(l){Hp(e,l)}while(!0);Zl(),Ii.current=i,W=s,de!==null?t=0:(me=null,ye=0,t=he)}if(t!==0){if(t===2&&(s=La(e),s!==0&&(r=s,t=ll(e,s))),t===1)throw n=ps,wn(e,0),It(e,r),Ve(e,ue()),n;if(t===6)It(e,r);else{if(s=e.current.alternate,!(r&30)&&!c0(s)&&(t=Ui(e,r),t===2&&(i=La(e),i!==0&&(r=i,t=ll(e,i))),t===1))throw n=ps,wn(e,0),It(e,r),Ve(e,ue()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(M(345));case 2:pn(e,De,St);break;case 3:if(It(e,r),(r&130023424)===r&&(t=hu+500-ue(),10<t)){if(Ci(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ee(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=$a(pn.bind(null,e,De,St),t);break}pn(e,De,St);break;case 4:if(It(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var a=31-lt(r);i=1<<a,a=t[a],a>s&&(s=a),r&=~i}if(r=s,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*u0(r/1960))-r,10<r){e.timeoutHandle=$a(pn.bind(null,e,De,St),r);break}pn(e,De,St);break;case 5:pn(e,De,St);break;default:throw Error(M(329))}}}return Ve(e,ue()),e.callbackNode===n?Wp.bind(null,e):null}function ll(e,t){var n=Wr;return e.current.memoizedState.isDehydrated&&(wn(e,t).flags|=256),e=Ui(e,t),e!==2&&(t=De,De=n,t!==null&&ul(t)),e}function ul(e){De===null?De=e:De.push.apply(De,e)}function c0(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(!ct(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 It(e,t){for(t&=~fu,t&=~co,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function fd(e){if(W&6)throw Error(M(327));rr();var t=Ci(e,0);if(!(t&1))return Ve(e,ue()),null;var n=Ui(e,t);if(e.tag!==0&&n===2){var r=La(e);r!==0&&(t=r,n=ll(e,r))}if(n===1)throw n=ps,wn(e,0),It(e,t),Ve(e,ue()),n;if(n===6)throw Error(M(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pn(e,De,St),Ve(e,ue()),null}function pu(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(cr=ue()+500,oo&&un())}}function Mn(e){$t!==null&&$t.tag===0&&!(W&6)&&rr();var t=W;W|=1;var n=Je.transition,r=H;try{if(Je.transition=null,H=1,e)return e()}finally{H=r,Je.transition=n,W=t,!(W&6)&&un()}}function mu(){Oe=Hn.current,X(Hn)}function wn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Iy(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(ql(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ai();break;case 3:lr(),X(_e),X(Ce),su();break;case 5:ru(r);break;case 4:lr();break;case 13:X(te);break;case 19:X(te);break;case 10:Jl(r.type._context);break;case 22:case 23:mu()}n=n.return}if(me=e,de=e=Xt(e.current,null),ye=Oe=t,he=0,ps=null,fu=co=En=0,De=Wr=null,yn!==null){for(t=0;t<yn.length;t++)if(n=yn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=s,r.next=a}n.pending=r}yn=null}return e}function Hp(e,t){do{var n=de;try{if(Zl(),di.current=Fi,bi){for(var r=re.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}bi=!1}if(Pn=0,pe=fe=re=null,$r=!1,ds=0,du.current=null,n===null||n.return===null){he=1,ps=t,de=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=ye,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 v=Jc(a);if(v!==null){v.flags&=-257,ed(v,a,l,i,t),v.mode&1&&Zc(i,c,t),t=v,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)){Zc(i,c,t),gu();break e}u=Error(M(426))}}else if(ee&&l.mode&1){var C=Jc(a);if(C!==null){!(C.flags&65536)&&(C.flags|=256),ed(C,a,l,i,t),Yl(ur(u,l));break e}}i=u=ur(u,l),he!==4&&(he=2),Wr===null?Wr=[i]:Wr.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Ep(i,u,t);Kc(i,m);break e;case 1:l=u;var p=i.type,g=i.stateNode;if(!(i.flags&128)&&(typeof p.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(qt===null||!qt.has(g)))){i.flags|=65536,t&=-t,i.lanes|=t;var w=Mp(i,l,t);Kc(i,w);break e}}i=i.return}while(i!==null)}Qp(n)}catch(x){t=x,de===n&&n!==null&&(de=n=n.return);continue}break}while(!0)}function Kp(){var e=Ii.current;return Ii.current=Fi,e===null?Fi:e}function gu(){(he===0||he===3||he===2)&&(he=4),me===null||!(En&268435455)&&!(co&268435455)||It(me,ye)}function Ui(e,t){var n=W;W|=2;var r=Kp();(me!==e||ye!==t)&&(St=null,wn(e,t));do try{d0();break}catch(s){Hp(e,s)}while(!0);if(Zl(),W=n,Ii.current=r,de!==null)throw Error(M(261));return me=null,ye=0,he}function d0(){for(;de!==null;)Gp(de)}function f0(){for(;de!==null&&!Ov();)Gp(de)}function Gp(e){var t=Yp(e.alternate,e,Oe);e.memoizedProps=e.pendingProps,t===null?Qp(e):de=t,du.current=null}function Qp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=i0(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,de=null;return}}else if(n=s0(n,t,Oe),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);he===0&&(he=5)}function pn(e,t,n){var r=H,s=Je.transition;try{Je.transition=null,H=1,h0(e,t,n,r)}finally{Je.transition=s,H=r}return null}function h0(e,t,n,r){do rr();while($t!==null);if(W&6)throw Error(M(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(M(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Gv(e,i),e===me&&(de=me=null,ye=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||qs||(qs=!0,Xp(Ni,function(){return rr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Je.transition,Je.transition=null;var a=H;H=1;var l=W;W|=4,du.current=null,a0(e,n),$p(n,e),_y(Ia),Ti=!!Fa,Ia=Fa=null,e.current=n,l0(n),bv(),W=l,H=a,Je.transition=i}else e.current=n;if(qs&&(qs=!1,$t=e,$i=s),i=e.pendingLanes,i===0&&(qt=null),Bv(n.stateNode),Ve(e,ue()),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(Bi)throw Bi=!1,e=ol,ol=null,e;return $i&1&&e.tag!==0&&rr(),i=e.pendingLanes,i&1?e===al?Hr++:(Hr=0,al=e):Hr=0,un(),null}function rr(){if($t!==null){var e=Eh($i),t=Je.transition,n=H;try{if(Je.transition=null,H=16>e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,$i=0,W&6)throw Error(M(331));var s=W;for(W|=4,R=e.current;R!==null;){var i=R,a=i.child;if(R.flags&16){var l=i.deletions;if(l!==null){for(var u=0;u<l.length;u++){var c=l[u];for(R=c;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:Ur(8,d,i)}var h=d.child;if(h!==null)h.return=d,R=h;else for(;R!==null;){d=R;var f=d.sibling,v=d.return;if(Fp(d),d===c){R=null;break}if(f!==null){f.return=v,R=f;break}R=v}}}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)}}R=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,R=a;else e:for(;R!==null;){if(i=R,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ur(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,R=m;break e}R=i.return}}var p=e.current;for(R=p;R!==null;){a=R;var g=a.child;if(a.subtreeFlags&2064&&g!==null)g.return=a,R=g;else e:for(a=p;R!==null;){if(l=R,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:uo(9,l)}}catch(x){ae(l,l.return,x)}if(l===a){R=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,R=w;break e}R=l.return}}if(W=s,un(),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(to,e)}catch{}r=!0}return r}finally{H=n,Je.transition=t}}return!1}function hd(e,t,n){t=ur(n,t),t=Ep(e,t,1),e=Qt(e,t,1),t=Ee(),e!==null&&(Cs(e,1,t),Ve(e,t))}function ae(e,t,n){if(e.tag===3)hd(e,e,n);else for(;t!==null;){if(t.tag===3){hd(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qt===null||!qt.has(r))){e=ur(n,e),e=Mp(t,e,1),t=Qt(t,e,1),e=Ee(),t!==null&&(Cs(t,1,e),Ve(t,e));break}}t=t.return}}function p0(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ee(),e.pingedLanes|=e.suspendedLanes&n,me===e&&(ye&n)===n&&(he===4||he===3&&(ye&130023424)===ye&&500>ue()-hu?wn(e,0):fu|=n),Ve(e,t)}function qp(e,t){t===0&&(e.mode&1?(t=Fs,Fs<<=1,!(Fs&130023424)&&(Fs=4194304)):t=1);var n=Ee();e=Dt(e,t),e!==null&&(Cs(e,t,n),Ve(e,n))}function m0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qp(e,n)}function g0(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(M(314))}r!==null&&r.delete(t),qp(e,n)}var Yp;Yp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Re=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Re=!1,r0(e,t,n);Re=!!(e.flags&131072)}else Re=!1,ee&&t.flags&1048576&&ep(t,_i,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hi(e,t),e=t.pendingProps;var s=ir(t,Ce.current);nr(t,n),s=ou(null,t,r,e,s,n);var i=au();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,Le(r)?(i=!0,Di(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,tu(t),s.updater=lo,t.stateNode=s,s._reactInternals=t,qa(t,r,e,n),t=Za(null,t,r,!0,i,n)):(t.tag=0,ee&&i&&Ql(t),Pe(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hi(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=y0(r),e=it(r,e),s){case 0:t=Xa(null,t,r,e,n);break e;case 1:t=rd(null,t,r,e,n);break e;case 11:t=td(null,t,r,e,n);break e;case 14:t=nd(null,t,r,it(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:it(r,s),Xa(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:it(r,s),rd(e,t,r,s,n);case 3:e:{if(_p(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,s=i.element,op(e,t),zi(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=ur(Error(M(423)),t),t=sd(e,t,r,n,s);break e}else if(r!==s){s=ur(Error(M(424)),t),t=sd(e,t,r,n,s);break e}else for(Ie=Gt(t.stateNode.containerInfo.firstChild),Be=t,ee=!0,at=null,n=sp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(or(),r===s){t=Rt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return ap(t),e===null&&Ka(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,Ba(r,s)?a=null:i!==null&&Ba(r,i)&&(t.flags|=32),Rp(e,t),Pe(e,t,a,n),t.child;case 6:return e===null&&Ka(t),null;case 13:return Lp(e,t,n);case 4:return nu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ar(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:it(r,s),td(e,t,r,s,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,Q(Li,r._currentValue),r._currentValue=a,i!==null)if(ct(i.value,a)){if(i.children===s.children&&!_e.current){t=Rt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Tt(-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),Ga(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(M(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Ga(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Pe(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,nr(t,n),s=et(s),r=r(s),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,s=it(r,t.pendingProps),s=it(r.type,s),nd(e,t,r,s,n);case 15:return Ap(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:it(r,s),hi(e,t),t.tag=1,Le(r)?(e=!0,Di(t)):e=!1,nr(t,n),Pp(t,r,s),qa(t,r,s,n),Za(null,t,r,!0,e,n);case 19:return Vp(e,t,n);case 22:return Dp(e,t,n)}throw Error(M(156,t.tag))};function Xp(e,t){return Nh(e,t)}function v0(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 Ze(e,t,n,r){return new v0(e,t,n,r)}function vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function y0(e){if(typeof e=="function")return vu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===zl)return 11;if(e===Ol)return 14}return 2}function Xt(e,t){var n=e.alternate;return n===null?(n=Ze(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 gi(e,t,n,r,s,i){var a=2;if(r=e,typeof e=="function")vu(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Vn:return Sn(n.children,s,i,t);case Vl:a=8,s|=8;break;case xa:return e=Ze(12,n,t,s|2),e.elementType=xa,e.lanes=i,e;case ja:return e=Ze(13,n,t,s),e.elementType=ja,e.lanes=i,e;case wa:return e=Ze(19,n,t,s),e.elementType=wa,e.lanes=i,e;case ah:return fo(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ih:a=10;break e;case oh:a=9;break e;case zl:a=11;break e;case Ol:a=14;break e;case Ot:a=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Ze(a,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Sn(e,t,n,r){return e=Ze(7,e,r,t),e.lanes=n,e}function fo(e,t,n,r){return e=Ze(22,e,r,t),e.elementType=ah,e.lanes=n,e.stateNode={isHidden:!1},e}function Yo(e,t,n){return e=Ze(6,e,null,t),e.lanes=n,e}function Xo(e,t,n){return t=Ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function x0(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=Do(0),this.expirationTimes=Do(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Do(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function yu(e,t,n,r,s,i,a,l,u){return e=new x0(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ze(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tu(i),e}function j0(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ln,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Zp(e){if(!e)return tn;e=e._reactInternals;e:{if(Dn(e)!==e||e.tag!==1)throw Error(M(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Le(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(M(171))}if(e.tag===1){var n=e.type;if(Le(n))return Zh(e,n,t)}return t}function Jp(e,t,n,r,s,i,a,l,u){return e=yu(n,r,!0,e,s,i,a,l,u),e.context=Zp(null),n=e.current,r=Ee(),s=Yt(n),i=Tt(r,s),i.callback=t??null,Qt(n,i,s),e.current.lanes=s,Cs(e,s,r),Ve(e,r),e}function ho(e,t,n,r){var s=t.current,i=Ee(),a=Yt(s);return n=Zp(n),t.context===null?t.context=n:t.pendingContext=n,t=Tt(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qt(s,t,a),e!==null&&(ut(e,s,a,i),ci(e,s,a)),a}function Wi(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 pd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xu(e,t){pd(e,t),(e=e.alternate)&&pd(e,t)}function w0(){return null}var em=typeof reportError=="function"?reportError:function(e){console.error(e)};function ju(e){this._internalRoot=e}po.prototype.render=ju.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(M(409));ho(e,t,null,null)};po.prototype.unmount=ju.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mn(function(){ho(null,e,null,null)}),t[At]=null}};function po(e){this._internalRoot=e}po.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&_h(e)}};function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function mo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function md(){}function S0(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var c=Wi(a);i.call(c)}}var a=Jp(t,r,e,0,null,!1,!1,"",md);return e._reactRootContainer=a,e[At]=a.current,os(e.nodeType===8?e.parentNode:e),Mn(),a}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var c=Wi(u);l.call(c)}}var u=yu(e,0,!1,null,null,!1,!1,"",md);return e._reactRootContainer=u,e[At]=u.current,os(e.nodeType===8?e.parentNode:e),Mn(function(){ho(t,u,n,r)}),u}function go(e,t,n,r,s){var i=n._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var l=s;s=function(){var u=Wi(a);l.call(u)}}ho(t,a,e,s)}else a=S0(n,t,e,s,r);return Wi(a)}Mh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dr(t.pendingLanes);n!==0&&(Il(t,n|1),Ve(t,ue()),!(W&6)&&(cr=ue()+500,un()))}break;case 13:Mn(function(){var r=Dt(e,1);if(r!==null){var s=Ee();ut(r,e,1,s)}}),xu(e,1)}};Bl=function(e){if(e.tag===13){var t=Dt(e,134217728);if(t!==null){var n=Ee();ut(t,e,134217728,n)}xu(e,134217728)}};Ah=function(e){if(e.tag===13){var t=Yt(e),n=Dt(e,t);if(n!==null){var r=Ee();ut(n,e,t,r)}xu(e,t)}};Dh=function(){return H};Rh=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};Da=function(e,t,n){switch(t){case"input":if(Na(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=io(r);if(!s)throw Error(M(90));uh(r),Na(r,s)}}}break;case"textarea":dh(e,n);break;case"select":t=n.value,t!=null&&Zn(e,!!n.multiple,t,!1)}};yh=pu;xh=Mn;var k0={usingClientEntryPoint:!1,Events:[Ps,Fn,io,gh,vh,pu]},Pr={findFiberByHostInstance:vn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},N0={bundleType:Pr.bundleType,version:Pr.version,rendererPackageName:Pr.rendererPackageName,rendererConfig:Pr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Lt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sh(e),e===null?null:e.stateNode},findFiberByHostInstance:Pr.findFiberByHostInstance||w0,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 Ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ys.isDisabled&&Ys.supportsFiber)try{to=Ys.inject(N0),gt=Ys}catch{}}He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k0;He.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wu(t))throw Error(M(200));return j0(e,t,null,n)};He.createRoot=function(e,t){if(!wu(e))throw Error(M(299));var n=!1,r="",s=em;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=yu(e,1,!1,null,null,n,!1,r,s),e[At]=t.current,os(e.nodeType===8?e.parentNode:e),new ju(t)};He.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(M(188)):(e=Object.keys(e).join(","),Error(M(268,e)));return e=Sh(t),e=e===null?null:e.stateNode,e};He.flushSync=function(e){return Mn(e)};He.hydrate=function(e,t,n){if(!mo(t))throw Error(M(200));return go(null,e,t,!0,n)};He.hydrateRoot=function(e,t,n){if(!wu(e))throw Error(M(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",a=em;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Jp(t,null,e,1,n??null,s,!1,i,a),e[At]=t.current,os(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 po(t)};He.render=function(e,t,n){if(!mo(t))throw Error(M(200));return go(null,e,t,!1,n)};He.unmountComponentAtNode=function(e){if(!mo(e))throw Error(M(40));return e._reactRootContainer?(Mn(function(){go(null,null,e,!1,function(){e._reactRootContainer=null,e[At]=null})}),!0):!1};He.unstable_batchedUpdates=pu;He.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!mo(n))throw Error(M(200));if(e==null||e._reactInternals===void 0)throw Error(M(38));return go(e,t,n,!1,r)};He.version="18.3.1-next-f1338f8080-20240426";function tm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tm)}catch(e){console.error(e)}}tm(),th.exports=He;var C0=th.exports,gd=C0;va.createRoot=gd.createRoot,va.hydrateRoot=gd.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 T0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nm=(...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 P0={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 E0=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...l},u)=>k.createElement("svg",{ref:u,...P0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:nm("lucide",s),...l},[...a.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 b=(e,t)=>{const n=k.forwardRef(({className:r,...s},i)=>k.createElement(E0,{ref:i,iconNode:t,className:nm(`lucide-${T0(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 kn=b("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 dr=b("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 rm=b("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 M0=b("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 ms=b("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 nn=b("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 sm=b("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 yt=b("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 A0=b("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
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 gs=b("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"}]]);/**
|
|
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 Zo=b("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
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 vs=b("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
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 im=b("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/**
|
|
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 D0=b("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"}]]);/**
|
|
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 R0=b("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"}]]);/**
|
|
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 Su=b("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"}]]);/**
|
|
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 _0=b("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"}]]);/**
|
|
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 L0=b("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"}]]);/**
|
|
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 mt=b("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"}]]);/**
|
|
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 ku=b("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
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 cl=b("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"}]]);/**
|
|
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 V0=b("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"}]]);/**
|
|
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 vo=b("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"}]]);/**
|
|
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 z0=b("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"}]]);/**
|
|
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 vd=b("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"}]]);/**
|
|
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 O0=b("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
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 b0=b("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
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 yd=b("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"}]]);/**
|
|
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 Zt=b("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"}]]);/**
|
|
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 om=b("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"}]]);/**
|
|
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 F0=b("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
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 I0=b("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 rn=b("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"}]]);/**
|
|
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 Nu=b("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 am=b("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"}]]);/**
|
|
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 vi=b("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"}]]);/**
|
|
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 Kr=b("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"}]]);/**
|
|
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 B0=b("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"}]]);/**
|
|
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 $0=b("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"}]]);/**
|
|
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 Hi=b("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
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 U0=b("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"}]]);/**
|
|
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 Cu=b("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"}]]);/**
|
|
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 lm=b("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"}]]);/**
|
|
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 wt=b("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"}]]);/**
|
|
281
|
+
* @license lucide-react v0.441.0 - ISC
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the ISC license.
|
|
284
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/const W0=b("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
286
|
+
* @license lucide-react v0.441.0 - ISC
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the ISC license.
|
|
289
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/const dl=b("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"}]]);/**
|
|
291
|
+
* @license lucide-react v0.441.0 - ISC
|
|
292
|
+
*
|
|
293
|
+
* This source code is licensed under the ISC license.
|
|
294
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
+
*/const Tu=b("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
296
|
+
* @license lucide-react v0.441.0 - ISC
|
|
297
|
+
*
|
|
298
|
+
* This source code is licensed under the ISC license.
|
|
299
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
+
*/const Ut=b("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"}]]),Pu=k.createContext({});function Eu(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const yo=k.createContext(null),Mu=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class H0 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 K0({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(Mu);return k.useInsertionEffect(()=>{const{width:a,height:l,top:u,left:c}=s.current;if(t||!r.current||!a||!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(`
|
|
301
|
+
[data-motion-pop-id="${n}"] {
|
|
302
|
+
position: absolute !important;
|
|
303
|
+
width: ${a}px !important;
|
|
304
|
+
height: ${l}px !important;
|
|
305
|
+
top: ${u}px !important;
|
|
306
|
+
left: ${c}px !important;
|
|
307
|
+
}
|
|
308
|
+
`),()=>{document.head.removeChild(d)}},[t]),o.jsx(H0,{isPresent:t,childRef:r,sizeRef:s,children:k.cloneElement(e,{ref:r})})}const G0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:a})=>{const l=Eu(Q0),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]),a==="popLayout"&&(e=o.jsx(K0,{isPresent:n,children:e})),o.jsx(yo.Provider,{value:d,children:e})};function Q0(){return new Map}function um(e=!0){const t=k.useContext(yo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=t,i=k.useId();k.useEffect(()=>{e&&s(i)},[e]);const a=k.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const Xs=e=>e.key||"";function xd(e){const t=[];return k.Children.forEach(e,n=>{k.isValidElement(n)&&t.push(n)}),t}const Au=typeof window<"u",cm=Au?k.useLayoutEffect:k.useEffect,q0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:a=!1})=>{const[l,u]=um(a),c=k.useMemo(()=>xd(e),[e]),d=a&&!l?[]:c.map(Xs),h=k.useRef(!0),f=k.useRef(c),v=Eu(()=>new Map),[j,y]=k.useState(c),[C,m]=k.useState(c);cm(()=>{h.current=!1,f.current=c;for(let w=0;w<C.length;w++){const x=Xs(C[w]);d.includes(x)?v.delete(x):v.get(x)!==!0&&v.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=Xs(S);d.includes(N)||(w.splice(x,0,S),p.push(S))}i==="wait"&&p.length&&(w=p),m(xd(w)),y(c);return}const{forceRender:g}=k.useContext(Pu);return o.jsx(o.Fragment,{children:C.map(w=>{const x=Xs(w),S=a&&!l?!1:c===C||d.includes(x),N=()=>{if(v.has(x))v.set(x,!0);else return;let P=!0;v.forEach(D=>{D||(P=!1)}),P&&(g==null||g(),m(f.current),a&&(u==null||u()),r&&r())};return o.jsx(G0,{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)})})},$e=e=>e;let dm=$e;function Du(e){let t;return()=>(t===void 0&&(t=e()),t)}const fr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Pt=e=>e*1e3,Et=e=>e/1e3,Y0={useManualTiming:!1};function X0(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){i.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,h=!1)=>{const v=h&&r?t:n;return d&&i.add(c),v.has(c)||v.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(a=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 Zs=["read","resolveKeyframes","update","preRender","render","postRender"],Z0=40;function fm(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Zs.reduce((m,p)=>(m[p]=X0(i),m),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:h,postRender:f}=a,v=()=>{const m=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(m-s.timestamp,Z0),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(v))},j=()=>{n=!0,r=!0,s.isProcessing||e(v)};return{schedule:Zs.reduce((m,p)=>{const g=a[p];return m[p]=(w,x=!1,S=!1)=>(n||j(),g.schedule(w,x,S)),m},{}),cancel:m=>{for(let p=0;p<Zs.length;p++)a[Zs[p]].cancel(m)},state:s,steps:a}}const{schedule:Z,cancel:sn,state:ve,steps:Jo}=fm(typeof requestAnimationFrame<"u"?requestAnimationFrame:$e,!0),hm=k.createContext({strict:!1}),jd={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"]},hr={};for(const e in jd)hr[e]={isEnabled:t=>jd[e].some(n=>!!t[n])};function J0(e){for(const t in e)hr[t]={...hr[t],...e[t]}}const ex=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 Ki(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ex.has(e)}let pm=e=>!Ki(e);function tx(e){e&&(pm=t=>t.startsWith("on")?!Ki(t):e(t))}try{tx(require("@emotion/is-prop-valid").default)}catch{}function nx(e,t,n){const r={};for(const s in e)s==="values"&&typeof e.values=="object"||(pm(s)||n===!0&&Ki(s)||!t&&!Ki(s)||e.draggable&&s.startsWith("onDrag"))&&(r[s]=e[s]);return r}function rx(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 xo=k.createContext({});function ys(e){return typeof e=="string"||Array.isArray(e)}function jo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ru=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_u=["initial",...Ru];function wo(e){return jo(e.animate)||_u.some(t=>ys(e[t]))}function mm(e){return!!(wo(e)||e.variants)}function sx(e,t){if(wo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ys(n)?n:void 0,animate:ys(r)?r:void 0}}return e.inherit!==!1?t:{}}function ix(e){const{initial:t,animate:n}=sx(e,k.useContext(xo));return k.useMemo(()=>({initial:t,animate:n}),[wd(t),wd(n)])}function wd(e){return Array.isArray(e)?e.join(" "):e}const ox=Symbol.for("motionComponentSymbol");function Kn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ax(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):Kn(n)&&(n.current=r))},[t])}const Lu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),lx="framerAppearId",gm="data-"+Lu(lx),{schedule:Vu}=fm(queueMicrotask,!1),vm=k.createContext({});function ux(e,t,n,r,s){var i,a;const{visualElement:l}=k.useContext(xo),u=k.useContext(hm),c=k.useContext(yo),d=k.useContext(Mu).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,v=k.useContext(vm);f&&!f.projection&&s&&(f.type==="html"||f.type==="svg")&&cx(h.current,n,s,v);const j=k.useRef(!1);k.useInsertionEffect(()=>{f&&j.current&&f.update(n,c)});const y=n[gm],C=k.useRef(!!y&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,y))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,y)));return cm(()=>{f&&(j.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Vu.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 cx(e,t,n,r){const{layoutId:s,layout:i,drag:a,dragConstraints:l,layoutScroll:u,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ym(e.parent)),e.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!a||l&&Kn(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:c})}function ym(e){if(e)return e.options.allowProjection!==!1?e.projection:ym(e.parent)}function dx({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:s}){var i,a;e&&J0(e);function l(c,d){let h;const f={...k.useContext(Mu),...c,layoutId:fx(c)},{isStatic:v}=f,j=ix(c),y=r(c,v);if(!v&&Au){hx();const C=px(f);h=C.MeasureLayout,j.visualElement=ux(s,y,f,t,C.ProjectionNode)}return o.jsxs(xo.Provider,{value:j,children:[h&&j.visualElement?o.jsx(h,{visualElement:j.visualElement,...f}):null,n(s,c,ax(y,j.visualElement,d),y,v,j.visualElement)]})}l.displayName=`motion.${typeof s=="string"?s:`create(${(a=(i=s.displayName)!==null&&i!==void 0?i:s.name)!==null&&a!==void 0?a:""})`}`;const u=k.forwardRef(l);return u[ox]=s,u}function fx({layoutId:e}){const t=k.useContext(Pu).id;return t&&e!==void 0?t+"-"+e:e}function hx(e,t){k.useContext(hm).strict}function px(e){const{drag:t,layout:n}=hr;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 mx=["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 zu(e){return typeof e!="string"||e.includes("-")?!1:!!(mx.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sd(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ou(e,t,n,r){if(typeof t=="function"){const[s,i]=Sd(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]=Sd(r);t=t(n!==void 0?n:e.custom,s,i)}return t}const fl=e=>Array.isArray(e),gx=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),vx=e=>fl(e)?e[e.length-1]||0:e,Ne=e=>!!(e&&e.getVelocity);function yi(e){const t=Ne(e)?e.get():e;return gx(t)?t.toValue():t}function yx({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,s,i){const a={latestValues:xx(r,s,i,e),renderState:t()};return n&&(a.onMount=l=>n({props:r,current:l,...a}),a.onUpdate=l=>n(l)),a}const xm=e=>(t,n)=>{const r=k.useContext(xo),s=k.useContext(yo),i=()=>yx(e,t,r,s);return n?i():Eu(i)};function xx(e,t,n,r){const s={},i=r(e,{});for(const f in i)s[f]=yi(i[f]);let{initial:a,animate:l}=e;const u=wo(e),c=mm(e);t&&c&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const h=d?l:a;if(h&&typeof h!="boolean"&&!jo(h)){const f=Array.isArray(h)?h:[h];for(let v=0;v<f.length;v++){const j=Ou(e,f[v]);if(j){const{transitionEnd:y,transition:C,...m}=j;for(const p in m){let g=m[p];if(Array.isArray(g)){const w=d?g.length-1:0;g=g[w]}g!==null&&(s[p]=g)}for(const p in y)s[p]=y[p]}}}return s}const yr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rn=new Set(yr),jm=e=>t=>typeof t=="string"&&t.startsWith(e),wm=jm("--"),jx=jm("var(--"),bu=e=>jx(e)?wx.test(e.split("/*")[0].trim()):!1,wx=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,_t=(e,t,n)=>n>t?t:n<e?e:n,xr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xs={...xr,transform:e=>_t(0,1,e)},Js={...xr,default:1},Ms=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zt=Ms("deg"),xt=Ms("%"),O=Ms("px"),Sx=Ms("vh"),kx=Ms("vw"),kd={...xt,parse:e=>xt.parse(e)/100,transform:e=>xt.transform(e*100)},Nx={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},Cx={rotate:zt,rotateX:zt,rotateY:zt,rotateZ:zt,scale:Js,scaleX:Js,scaleY:Js,scaleZ:Js,skew:zt,skewX:zt,skewY:zt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:xs,originX:kd,originY:kd,originZ:O},Nd={...xr,transform:Math.round},Fu={...Nx,...Cx,zIndex:Nd,size:O,fillOpacity:xs,strokeOpacity:xs,numOctaves:Nd},Tx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Px=yr.length;function Ex(e,t,n){let r="",s=!0;for(let i=0;i<Px;i++){const a=yr[i],l=e[a];if(l===void 0)continue;let u=!0;if(typeof l=="number"?u=l===(a.startsWith("scale")?1:0):u=parseFloat(l)===0,!u||n){const c=Sm(l,Fu[a]);if(!u){s=!1;const d=Tx[a]||a;r+=`${d}(${c}) `}n&&(t[a]=c)}}return r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Iu(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let a=!1,l=!1;for(const u in t){const c=t[u];if(Rn.has(u)){a=!0;continue}else if(wm(u)){s[u]=c;continue}else{const d=Sm(c,Fu[u]);u.startsWith("origin")?(l=!0,i[u]=d):r[u]=d}}if(t.transform||(a||n?r.transform=Ex(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 Mx={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ax={offset:"strokeDashoffset",array:"strokeDasharray"};function Dx(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Mx:Ax;e[i.offset]=O.transform(-r);const a=O.transform(t),l=O.transform(n);e[i.array]=`${a} ${l}`}function Cd(e,t,n){return typeof e=="string"?e:O.transform(t+n*e)}function Rx(e,t,n){const r=Cd(t,e.x,e.width),s=Cd(n,e.y,e.height);return`${r} ${s}`}function Bu(e,{attrX:t,attrY:n,attrScale:r,originX:s,originY:i,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...c},d,h){if(Iu(e,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:v,dimensions:j}=e;f.transform&&(j&&(v.transform=f.transform),delete f.transform),j&&(s!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=Rx(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),a!==void 0&&Dx(f,a,l,u,!1)}const $u=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),km=()=>({...$u(),attrs:{}}),Uu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Nm(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 Cm=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 Tm(e,t,n,r){Nm(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Cm.has(s)?s:Lu(s),t.attrs[s])}const Gi={};function _x(e){Object.assign(Gi,e)}function Pm(e,{layout:t,layoutId:n}){return Rn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gi[e]||e==="opacity")}function Wu(e,t,n){var r;const{style:s}=e,i={};for(const a in s)(Ne(s[a])||t.style&&Ne(t.style[a])||Pm(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[a]=s[a]);return i}function Em(e,t,n){const r=Wu(e,t,n);for(const s in e)if(Ne(e[s])||Ne(t[s])){const i=yr.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}function Lx(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 Td=["x","y","width","height","cx","cy","r"],Vx={useVisualState:xm({scrapeMotionValuesFromProps:Em,createRenderState:km,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(Rn.has(l)){i=!0;break}}if(!i)return;let a=!t;if(t)for(let l=0;l<Td.length;l++){const u=Td[l];e[u]!==t[u]&&(a=!0)}a&&Z.read(()=>{Lx(n,r),Z.render(()=>{Bu(r,s,Uu(n.tagName),e.transformTemplate),Tm(n,r)})})}})},zx={useVisualState:xm({scrapeMotionValuesFromProps:Wu,createRenderState:$u})};function Mm(e,t,n){for(const r in t)!Ne(t[r])&&!Pm(r,n)&&(e[r]=t[r])}function Ox({transformTemplate:e},t){return k.useMemo(()=>{const n=$u();return Iu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function bx(e,t){const n=e.style||{},r={};return Mm(r,n,e),Object.assign(r,Ox(e,t)),r}function Fx(e,t){const n={},r=bx(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 Ix(e,t,n,r){const s=k.useMemo(()=>{const i=km();return Bu(i,t,Uu(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Mm(i,e.style,e),s.style={...i,...s.style}}return s}function Bx(e=!1){return(n,r,s,{latestValues:i},a)=>{const u=(zu(n)?Ix:Fx)(r,i,a,n),c=nx(r,typeof n=="string",e),d=n!==k.Fragment?{...c,...u,ref:s}:{},{children:h}=r,f=k.useMemo(()=>Ne(h)?h.get():h,[h]);return k.createElement(n,{...d,children:f})}}function $x(e,t){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const a={...zu(r)?Vx:zx,preloadedFeatures:e,useRender:Bx(s),createVisualElement:t,Component:r};return dx(a)}}function Am(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 So(e,t,n){const r=e.getProps();return Ou(r,t,n!==void 0?n:r.custom,e)}const Ux=Du(()=>window.ScrollTimeline!==void 0);class Wx{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(Ux()&&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 Hx extends Wx{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Hu(e,t){return e?e[t]||e.default||e:void 0}const hl=2e4;function Dm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hl;)t+=n,r=e.next(t);return t>=hl?1/0:t}function Ku(e){return typeof e=="function"}function Pd(e,t){e.timeline=t,e.onfinish=null}const Gu=e=>Array.isArray(e)&&typeof e[0]=="number",Kx={linearEasing:void 0};function Gx(e,t){const n=Du(e);return()=>{var r;return(r=Kx[t])!==null&&r!==void 0?r:n()}}const Qi=Gx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Rm=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=e(fr(0,s-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function _m(e){return!!(typeof e=="function"&&Qi()||!e||typeof e=="string"&&(e in pl||Qi())||Gu(e)||Array.isArray(e)&&e.every(_m))}const _r=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,pl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_r([0,.65,.55,1]),circOut:_r([.55,0,1,.45]),backIn:_r([.31,.01,.66,-.59]),backOut:_r([.33,1.53,.69,.99])};function Lm(e,t){if(e)return typeof e=="function"&&Qi()?Rm(e,t):Gu(e)?_r(e):Array.isArray(e)?e.map(n=>Lm(n,t)||pl.easeOut):pl[e]}const st={x:!1,y:!1};function Vm(){return st.x||st.y}function Qx(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 zm(e,t){const n=Qx(e),r=new AbortController,s={passive:!0,...t,signal:r.signal};return[n,s,()=>r.abort()]}function Ed(e){return t=>{t.pointerType==="touch"||Vm()||e(t)}}function qx(e,t,n={}){const[r,s,i]=zm(e,n),a=Ed(l=>{const{target:u}=l,c=t(l);if(typeof c!="function"||!u)return;const d=Ed(h=>{c(h),u.removeEventListener("pointerleave",d)});u.addEventListener("pointerleave",d,s)});return r.forEach(l=>{l.addEventListener("pointerenter",a,s)}),i}const Om=(e,t)=>t?e===t?!0:Om(e,t.parentElement):!1,Qu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Yx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Xx(e){return Yx.has(e.tagName)||e.tabIndex!==-1}const Lr=new WeakSet;function Md(e){return t=>{t.key==="Enter"&&e(t)}}function ea(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Zx=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Md(()=>{if(Lr.has(n))return;ea(n,"down");const s=Md(()=>{ea(n,"up")}),i=()=>ea(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 Ad(e){return Qu(e)&&!Vm()}function Jx(e,t,n={}){const[r,s,i]=zm(e,n),a=l=>{const u=l.currentTarget;if(!Ad(l)||Lr.has(u))return;Lr.add(u);const c=t(l),d=(v,j)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),!(!Ad(v)||!Lr.has(u))&&(Lr.delete(u),typeof c=="function"&&c(v,{success:j}))},h=v=>{d(v,n.useGlobalTarget||Om(u,v.target))},f=v=>{d(v,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",f,s)};return r.forEach(l=>{!Xx(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,s),l.addEventListener("focus",c=>Zx(c,s),s)}),i}function e1(e){return e==="x"||e==="y"?st[e]?null:(st[e]=!0,()=>{st[e]=!1}):st.x||st.y?null:(st.x=st.y=!0,()=>{st.x=st.y=!1})}const bm=new Set(["width","height","top","left","right","bottom",...yr]);let xi;function t1(){xi=void 0}const jt={now:()=>(xi===void 0&&jt.set(ve.isProcessing||Y0.useManualTiming?ve.timestamp:performance.now()),xi),set:e=>{xi=e,queueMicrotask(t1)}};function qu(e,t){e.indexOf(t)===-1&&e.push(t)}function Yu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xu{constructor(){this.subscriptions=[]}add(t){return qu(this.subscriptions,t),()=>Yu(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 a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Fm(e,t){return t?e*(1e3/t):0}const Dd=30,n1=e=>!isNaN(parseFloat(e));class r1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=jt.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=jt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=n1(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 Xu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Z.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=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Dd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dd);return Fm(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 js(e,t){return new r1(e,t)}function s1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,js(n))}function i1(e,t){const n=So(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const a in i){const l=vx(i[a]);s1(e,a,l)}}function o1(e){return!!(Ne(e)&&e.add)}function ml(e,t){const n=e.getValue("willChange");if(o1(n))return n.add(t)}function Im(e){return e.props[gm]}const Bm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,a1=1e-7,l1=12;function u1(e,t,n,r,s){let i,a,l=0;do a=t+(n-t)/2,i=Bm(a,r,s)-e,i>0?n=a:t=a;while(Math.abs(i)>a1&&++l<l1);return a}function As(e,t,n,r){if(e===t&&n===r)return $e;const s=i=>u1(i,0,1,e,n);return i=>i===0||i===1?i:Bm(s(i),t,r)}const $m=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Um=e=>t=>1-e(1-t),Wm=As(.33,1.53,.69,.99),Zu=Um(Wm),Hm=$m(Zu),Km=e=>(e*=2)<1?.5*Zu(e):.5*(2-Math.pow(2,-10*(e-1))),Ju=e=>1-Math.sin(Math.acos(e)),Gm=Um(Ju),Qm=$m(Ju),qm=e=>/^0[^.\s]+$/u.test(e);function c1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||qm(e):!0}const Gr=e=>Math.round(e*1e5)/1e5,ec=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function d1(e){return e==null}const f1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tc=(e,t)=>n=>!!(typeof n=="string"&&f1.test(n)&&n.startsWith(e)||t&&!d1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ym=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,a,l]=r.match(ec);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},h1=e=>_t(0,255,e),ta={...xr,transform:e=>Math.round(h1(e))},jn={test:tc("rgb","red"),parse:Ym("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ta.transform(e)+", "+ta.transform(t)+", "+ta.transform(n)+", "+Gr(xs.transform(r))+")"};function p1(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 gl={test:tc("#"),parse:p1,transform:jn.transform},Gn={test:tc("hsl","hue"),parse:Ym("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xt.transform(Gr(t))+", "+xt.transform(Gr(n))+", "+Gr(xs.transform(r))+")"},Se={test:e=>jn.test(e)||gl.test(e)||Gn.test(e),parse:e=>jn.test(e)?jn.parse(e):Gn.test(e)?Gn.parse(e):gl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?jn.transform(e):Gn.transform(e)},m1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function g1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ec))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(m1))===null||n===void 0?void 0:n.length)||0)>0}const Xm="number",Zm="color",v1="var",y1="var(",Rd="${}",x1=/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 ws(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const l=t.replace(x1,u=>(Se.test(u)?(r.color.push(i),s.push(Zm),n.push(Se.parse(u))):u.startsWith(y1)?(r.var.push(i),s.push(v1),n.push(u)):(r.number.push(i),s.push(Xm),n.push(parseFloat(u))),++i,Rd)).split(Rd);return{values:n,split:l,indexes:r,types:s}}function Jm(e){return ws(e).values}function eg(e){const{split:t,types:n}=ws(e),r=t.length;return s=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],s[a]!==void 0){const l=n[a];l===Xm?i+=Gr(s[a]):l===Zm?i+=Se.transform(s[a]):i+=s[a]}return i}}const j1=e=>typeof e=="number"?0:e;function w1(e){const t=Jm(e);return eg(e)(t.map(j1))}const on={test:g1,parse:Jm,createTransformer:eg,getAnimatableNone:w1},S1=new Set(["brightness","contrast","saturate","opacity"]);function k1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ec)||[];if(!r)return e;const s=n.replace(r,"");let i=S1.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const N1=/\b([a-z-]*)\(.*?\)/gu,vl={...on,getAnimatableNone:e=>{const t=e.match(N1);return t?t.map(k1).join(" "):e}},C1={...Fu,color:Se,backgroundColor:Se,outlineColor:Se,fill:Se,stroke:Se,borderColor:Se,borderTopColor:Se,borderRightColor:Se,borderBottomColor:Se,borderLeftColor:Se,filter:vl,WebkitFilter:vl},nc=e=>C1[e];function tg(e,t){let n=nc(e);return n!==vl&&(n=on),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const T1=new Set(["auto","none","0"]);function P1(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!T1.has(i)&&ws(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=tg(n,s)}const _d=e=>e===xr||e===O,Ld=(e,t)=>parseFloat(e.split(", ")[t]),Vd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const s=r.match(/^matrix3d\((.+)\)$/u);if(s)return Ld(s[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Ld(i[1],e):0}},E1=new Set(["x","y","z"]),M1=yr.filter(e=>!E1.has(e));function A1(e){const t=[];return M1.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const pr={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:Vd(4,13),y:Vd(5,14)};pr.translateX=pr.x;pr.translateY=pr.y;const Nn=new Set;let yl=!1,xl=!1;function ng(){if(xl){const e=Array.from(Nn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=A1(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,a])=>{var l;(l=r.getValue(i))===null||l===void 0||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xl=!1,yl=!1,Nn.forEach(e=>e.complete()),Nn.clear()}function rg(){Nn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xl=!0)})}function D1(){rg(),ng()}class rc{constructor(t,n,r,s,i,a=!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=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Nn.add(this),yl||(yl=!0,Z.read(rg),Z.resolveKeyframes(ng))):(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 a=s==null?void 0:s.get(),l=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),s&&a===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),Nn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Nn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),R1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _1(e){const t=R1.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function ig(e,t,n=1){const[r,s]=_1(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return sg(a)?parseFloat(a):a}return bu(s)?ig(s,t,n+1):s}const og=e=>t=>t.test(e),L1={test:e=>e==="auto",parse:e=>e},ag=[xr,O,xt,zt,kx,Sx,L1],zd=e=>ag.find(og(e));class lg extends rc{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(),bu(c))){const d=ig(c,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!bm.has(r)||t.length!==2)return;const[s,i]=t,a=zd(s),l=zd(i);if(a!==l)if(_d(a)&&_d(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++)c1(t[s])&&r.push(s);r.length&&P1(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=pr[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 a=s.length-1,l=s[a];s[a]=pr[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 Od=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(on.test(e)||e==="0")&&!e.startsWith("url("));function V1(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 z1(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],a=Od(s,t),l=Od(i,t);return!a||!l?!1:V1(e)||(n==="spring"||Ku(n))&&r}const O1=e=>e!==null;function ko(e,{repeat:t,repeatType:n="loop"},r){const s=e.filter(O1),i=t&&n!=="loop"&&t%2===1?0:s.length-1;return!i||r===void 0?s[i]:r}const b1=40;class ug{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=jt.now(),this.options={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:a,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>b1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&D1(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=jt.now(),this.hasAttemptedResolve=!0;const{name:r,type:s,velocity:i,delay:a,onComplete:l,onUpdate:u,isGenerator:c}=this.options;if(!c&&!z1(t,r,s,i))if(a)this.options.duration=0;else{u&&u(ko(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 ne=(e,t,n)=>e+(t-e)*n;function na(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 F1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,a=0;if(!t)s=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;s=na(u,l,e+1/3),i=na(u,l,e),a=na(u,l,e-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function qi(e,t){return n=>n>0?t:e}const ra=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},I1=[gl,jn,Gn],B1=e=>I1.find(t=>t.test(e));function bd(e){const t=B1(e);if(!t)return!1;let n=t.parse(e);return t===Gn&&(n=F1(n)),n}const Fd=(e,t)=>{const n=bd(e),r=bd(t);if(!n||!r)return qi(e,t);const s={...n};return i=>(s.red=ra(n.red,r.red,i),s.green=ra(n.green,r.green,i),s.blue=ra(n.blue,r.blue,i),s.alpha=ne(n.alpha,r.alpha,i),jn.transform(s))},$1=(e,t)=>n=>t(e(n)),Ds=(...e)=>e.reduce($1),jl=new Set(["none","hidden"]);function U1(e,t){return jl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function W1(e,t){return n=>ne(e,t,n)}function sc(e){return typeof e=="number"?W1:typeof e=="string"?bu(e)?qi:Se.test(e)?Fd:G1:Array.isArray(e)?cg:typeof e=="object"?Se.test(e)?Fd:H1:qi}function cg(e,t){const n=[...e],r=n.length,s=e.map((i,a)=>sc(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=s[a](i);return n}}function H1(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=sc(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function K1(e,t){var n;const r=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],l=e.indexes[a][s[a]],u=(n=e.values[l])!==null&&n!==void 0?n:0;r[i]=u,s[a]++}return r}const G1=(e,t)=>{const n=on.createTransformer(t),r=ws(e),s=ws(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?jl.has(e)&&!s.values.length||jl.has(t)&&!r.values.length?U1(e,t):Ds(cg(K1(r,s),s.values),n):qi(e,t)};function dg(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):sc(e)(e,t)}const Q1=5;function fg(e,t,n){const r=Math.max(t-Q1,0);return Fm(n-e(r),t-r)}const oe={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},sa=.001;function q1({duration:e=oe.duration,bounce:t=oe.bounce,velocity:n=oe.velocity,mass:r=oe.mass}){let s,i,a=1-t;a=_t(oe.minDamping,oe.maxDamping,a),e=_t(oe.minDuration,oe.maxDuration,Et(e)),a<1?(s=c=>{const d=c*a,h=d*e,f=d-n,v=wl(c,a),j=Math.exp(-h);return sa-f/v*j},i=c=>{const h=c*a*e,f=h*n+n,v=Math.pow(a,2)*Math.pow(c,2)*e,j=Math.exp(-h),y=wl(Math.pow(c,2),a);return(-s(c)+sa>0?-1:1)*((f-v)*j)/y}):(s=c=>{const d=Math.exp(-c*e),h=(c-n)*e+1;return-sa+d*h},i=c=>{const d=Math.exp(-c*e),h=(n-c)*(e*e);return d*h});const l=5/e,u=X1(s,i,l);if(e=Pt(e),isNaN(u))return{stiffness:oe.stiffness,damping:oe.damping,duration:e};{const c=Math.pow(u,2)*r;return{stiffness:c,damping:a*2*Math.sqrt(r*c),duration:e}}}const Y1=12;function X1(e,t,n){let r=n;for(let s=1;s<Y1;s++)r=r-e(r)/t(r);return r}function wl(e,t){return e*Math.sqrt(1-t*t)}const Z1=["duration","bounce"],J1=["stiffness","damping","mass"];function Id(e,t){return t.some(n=>e[n]!==void 0)}function ej(e){let t={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...e};if(!Id(e,J1)&&Id(e,Z1))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*_t(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:oe.mass,stiffness:s,damping:i}}else{const n=q1(e);t={...t,...n,mass:oe.mass},t.isResolvedFromDuration=!0}return t}function hg(e=oe.visualDuration,t=oe.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],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:v}=ej({...n,velocity:-Et(n.velocity||0)}),j=f||0,y=c/(2*Math.sqrt(u*d)),C=a-i,m=Et(Math.sqrt(u/d)),p=Math.abs(C)<5;r||(r=p?oe.restSpeed.granular:oe.restSpeed.default),s||(s=p?oe.restDelta.granular:oe.restDelta.default);let g;if(y<1){const x=wl(m,y);g=S=>{const N=Math.exp(-y*m*S);return a-N*((j+y*m*C)/x*Math.sin(x*S)+C*Math.cos(x*S))}}else if(y===1)g=x=>a-Math.exp(-m*x)*(C+(j+m*C)*x);else{const x=m*Math.sqrt(y*y-1);g=S=>{const N=Math.exp(-y*m*S),P=Math.min(x*S,300);return a-N*((j+y*m*C)*Math.sinh(P)+x*C*Math.cosh(P))/x}}const w={calculatedDuration:v&&h||null,next:x=>{const S=g(x);if(v)l.done=x>=h;else{let N=0;y<1&&(N=x===0?Pt(j):fg(g,x,S));const P=Math.abs(N)<=r,D=Math.abs(a-S)<=s;l.done=P&&D}return l.value=l.done?a:S,l},toString:()=>{const x=Math.min(Dm(w),hl),S=Rm(N=>w.next(x*N).value,x,30);return x+"ms "+S}};return w}function Bd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:u,restDelta:c=.5,restSpeed:d}){const h=e[0],f={done:!1,value:h},v=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=a===void 0?C:a(C);m!==C&&(y=m-h);const p=P=>-y*Math.exp(-P/r),g=P=>m+p(P),w=P=>{const D=p(P),E=g(P);f.done=Math.abs(D)<=c,f.value=f.done?m:E};let x,S;const N=P=>{v(f.value)&&(x=P,S=hg({keyframes:[f.value,j(f.value)],velocity:fg(g,P,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:d}))};return N(0),{calculatedDuration:null,next:P=>{let D=!1;return!S&&x===void 0&&(D=!0,w(P),N(P)),x!==void 0&&P>=x?S.next(P-x):(!D&&w(P),f)}}}const tj=As(.42,0,1,1),nj=As(0,0,.58,1),pg=As(.42,0,.58,1),rj=e=>Array.isArray(e)&&typeof e[0]!="number",sj={linear:$e,easeIn:tj,easeInOut:pg,easeOut:nj,circIn:Ju,circInOut:Qm,circOut:Gm,backIn:Zu,backInOut:Hm,backOut:Wm,anticipate:Km},$d=e=>{if(Gu(e)){dm(e.length===4);const[t,n,r,s]=e;return As(t,n,r,s)}else if(typeof e=="string")return sj[e];return e};function ij(e,t,n){const r=[],s=n||dg,i=e.length-1;for(let a=0;a<i;a++){let l=s(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||$e:t;l=Ds(u,l)}r.push(l)}return r}function oj(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(dm(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=ij(t,r,s),u=l.length,c=d=>{if(a&&d<e[0])return t[0];let h=0;if(u>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const f=fr(e[h],e[h+1],d);return l[h](f)};return n?d=>c(_t(e[0],e[i-1],d)):c}function aj(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=fr(0,t,r);e.push(ne(n,1,s))}}function lj(e){const t=[0];return aj(t,e.length-1),t}function uj(e,t){return e.map(n=>n*t)}function cj(e,t){return e.map(()=>t||pg).splice(0,e.length-1)}function Yi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=rj(r)?r.map($d):$d(r),i={done:!1,value:t[0]},a=uj(n&&n.length===t.length?n:lj(t),e),l=oj(a,t,{ease:Array.isArray(s)?s:cj(t,s)});return{calculatedDuration:e,next:u=>(i.value=l(u),i.done=u>=e,i)}}const dj=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Z.update(t,!0),stop:()=>sn(t),now:()=>ve.isProcessing?ve.timestamp:jt.now()}},fj={decay:Bd,inertia:Bd,tween:Yi,keyframes:Yi,spring:hg},hj=e=>e/100;class ic extends ug{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,a=(s==null?void 0:s.KeyframeResolver)||rc,l=(u,c)=>this.onKeyframesResolved(u,c);this.resolver=new a(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:a=0}=this.options,l=Ku(n)?n:fj[n]||Yi;let u,c;l!==Yi&&typeof t[0]!="number"&&(u=Ds(hj,dg(t[0],t[1])),t=[0,100]);const d=l({...this.options,keyframes:t});i==="mirror"&&(c=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=Dm(d));const{calculatedDuration:h}=d,f=h+s,v=f*(r+1)-s;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:u,calculatedDuration:h,resolvedDuration:f,totalDuration:v}}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:a,mapPercentToKeyframes:l,keyframes:u,calculatedDuration:c,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:v,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 g=this.currentTime,w=i;if(v){const P=Math.min(this.currentTime,d)/h;let D=Math.floor(P),E=P%1;!E&&P>=1&&(E=1),E===1&&D--,D=Math.min(D,v+1),!!(D%2)&&(j==="reverse"?(E=1-E,y&&(E-=y/h)):j==="mirror"&&(w=a)),g=_t(0,1,E)*h}const x=p?{done:!1,value:u[0]}:w.next(g);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=ko(u,this.options,s)),C&&C(x.value),N&&this.finish(),x}get duration(){const{resolved:t}=this;return t?Et(t.calculatedDuration):0}get time(){return Et(this.currentTime)}set time(t){t=Pt(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=Et(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=dj,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 pj=new Set(["opacity","clipPath","filter","transform"]);function mj(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:a="loop",ease:l="easeInOut",times:u}={}){const c={[t]:n};u&&(c.offset=u);const d=Lm(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:a==="reverse"?"alternate":"normal"})}const gj=Du(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Xi=10,vj=2e4;function yj(e){return Ku(e.type)||e.type==="spring"||!_m(e.ease)}function xj(e,t){const n=new ic({...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<vj;)r=n.sample(i),s.push(r.value),i+=Xi;return{times:void 0,keyframes:s,duration:i-Xi,ease:"linear"}}const mg={anticipate:Km,backInOut:Hm,circInOut:Qm};function jj(e){return e in mg}class Ud extends ug{constructor(t){super(t);const{name:n,motionValue:r,element:s,keyframes:i}=this.options;this.resolver=new lg(i,(a,l)=>this.onKeyframesResolved(a,l),n,r,s),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:s,ease:i,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof i=="string"&&Qi()&&jj(i)&&(i=mg[i]),yj(this.options)){const{onComplete:h,onUpdate:f,motionValue:v,element:j,...y}=this.options,C=xj(t,y);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,s=C.times,i=C.ease,a="keyframes"}const d=mj(l.owner.current,u,t,{...this.options,duration:r,times:s,ease:i});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Pd(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(ko(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:a,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Et(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Et(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Pt(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 $e;const{animation:r}=n;Pd(r,t)}return $e}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:a,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:h,element:f,...v}=this.options,j=new ic({...v,keyframes:r,duration:s,type:i,ease:a,times:l,isGenerator:!0}),y=Pt(this.time);c.setWithVelocity(j.sample(y-Xi).value,j.sample(y).value,Xi)}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:a,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=n.owner.getProps();return gj()&&r&&pj.has(r)&&!u&&!c&&!s&&i!=="mirror"&&a!==0&&l!=="inertia"}}const wj={type:"spring",stiffness:500,damping:25,restSpeed:10},Sj=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),kj={type:"keyframes",duration:.8},Nj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Cj=(e,{keyframes:t})=>t.length>2?kj:Rn.has(e)?e.startsWith("scale")?Sj(t[1]):wj:Nj;function Tj({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:a,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length}const oc=(e,t,n,r={},s,i)=>a=>{const l=Hu(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Pt(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:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:s};Tj(l)||(d={...d,...Cj(e,d)}),d.duration&&(d.duration=Pt(d.duration)),d.repeatDelay&&(d.repeatDelay=Pt(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=ko(d.keyframes,l);if(f!==void 0)return Z.update(()=>{d.onUpdate(f),d.onComplete()}),new Hx([])}return!i&&Ud.supports(d)?new Ud(d):new ic(d)};function Pj({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function gg(e,t,{delay:n=0,transitionOverride:r,type:s}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(a=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),v=u[h];if(v===void 0||d&&Pj(d,h))continue;const j={delay:n,...Hu(a||{},h)};let y=!1;if(window.MotionHandoffAnimation){const m=Im(e);if(m){const p=window.MotionHandoffAnimation(m,h,Z);p!==null&&(j.startTime=p,y=!0)}}ml(e,h),f.start(oc(h,f,v,e.shouldReduceMotion&&bm.has(h)?{type:!1}:j,e,y));const C=f.animation;C&&c.push(C)}return l&&Promise.all(c).then(()=>{Z.update(()=>{l&&i1(e,l)})}),c}function Sl(e,t,n={}){var r;const s=So(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 a=s?()=>Promise.all(gg(e,s,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=i;return Ej(e,t,d+c,h,f,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,d]=u==="beforeChildren"?[a,l]:[l,a];return c().then(()=>d())}else return Promise.all([a(),l(n.delay)])}function Ej(e,t,n=0,r=0,s=1,i){const a=[],l=(e.variantChildren.size-1)*r,u=s===1?(c=0)=>c*r:(c=0)=>l-c*r;return Array.from(e.variantChildren).sort(Mj).forEach((c,d)=>{c.notify("AnimationStart",t),a.push(Sl(c,t,{...i,delay:n+u(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function Mj(e,t){return e.sortNodePosition(t)}function Aj(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const s=t.map(i=>Sl(e,i,n));r=Promise.all(s)}else if(typeof t=="string")r=Sl(e,t,n);else{const s=typeof t=="function"?So(e,t,n.custom):t;r=Promise.all(gg(e,s,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Dj=_u.length;function vg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?vg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Dj;n++){const r=_u[n],s=e.props[r];(ys(s)||s===!1)&&(t[r]=s)}return t}const Rj=[...Ru].reverse(),_j=Ru.length;function Lj(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Aj(e,n,r)))}function Vj(e){let t=Lj(e),n=Wd(),r=!0;const s=u=>(c,d)=>{var h;const f=So(e,d,u==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:v,transitionEnd:j,...y}=f;c={...c,...y,...j}}return c};function i(u){t=u(e)}function a(u){const{props:c}=e,d=vg(e.parent)||{},h=[],f=new Set;let v={},j=1/0;for(let C=0;C<_j;C++){const m=Rj[C],p=n[m],g=c[m]!==void 0?c[m]:d[m],w=ys(g),x=m===u?p.isActive:null;x===!1&&(j=C);let S=g===d[m]&&g!==c[m]&&w;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),p.protectedKeys={...v},!p.isActive&&x===null||!g&&!p.prevProp||jo(g)||typeof g=="boolean")continue;const N=zj(p.prevProp,g);let P=N||m===u&&p.isActive&&!S&&w||C>j&&w,D=!1;const E=Array.isArray(g)?g:[g];let I=E.reduce(s(m),{});x===!1&&(I={});const{prevResolvedValues:F={}}=p,ce={...F,...I},J=U=>{P=!0,f.has(U)&&(D=!0,f.delete(U)),p.needsAnimating[U]=!0;const T=e.getValue(U);T&&(T.liveStyle=!1)};for(const U in ce){const T=I[U],A=F[U];if(v.hasOwnProperty(U))continue;let L=!1;fl(T)&&fl(A)?L=!Am(T,A):L=T!==A,L?T!=null?J(U):f.add(U):T!==void 0&&f.has(U)?J(U):p.protectedKeys[U]=!0}p.prevProp=g,p.prevResolvedValues=I,p.isActive&&(v={...v,...I}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(S&&N)||D)&&h.push(...E.map(U=>({animation:U,options:{type:m}})))}if(f.size){const C={};f.forEach(m=>{const p=e.getBaseTarget(m),g=e.getValue(m);g&&(g.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 v;return(v=f.animationState)===null||v===void 0?void 0:v.setActive(u,c)}),n[u].isActive=c;const h=a(u);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Wd(),r=!0}}}function zj(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Am(t,e):!1}function fn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Wd(){return{animate:fn(!0),whileInView:fn(),whileHover:fn(),whileTap:fn(),whileDrag:fn(),whileFocus:fn(),exit:fn()}}class cn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Oj extends cn{constructor(t){super(t),t.animationState||(t.animationState=Vj(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();jo(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 bj=0;class Fj extends cn{constructor(){super(...arguments),this.id=bj++}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 Ij={animation:{Feature:Oj},exit:{Feature:Fj}};function Ss(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Rs(e){return{point:{x:e.pageX,y:e.pageY}}}const Bj=e=>t=>Qu(t)&&e(t,Rs(t));function Qr(e,t,n,r){return Ss(e,t,Bj(n),r)}const Hd=(e,t)=>Math.abs(e-t);function $j(e,t){const n=Hd(e.x,t.x),r=Hd(e.y,t.y);return Math.sqrt(n**2+r**2)}class yg{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=oa(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,v=$j(h.offset,{x:0,y:0})>=3;if(!f&&!v)return;const{point:j}=h,{timestamp:y}=ve;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=ia(f,this.transformPagePoint),Z.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:v,onSessionEnd:j,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=oa(h.type==="pointercancel"?this.lastMoveEventInfo:ia(f,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,C),j&&j(h,C)},!Qu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const a=Rs(t),l=ia(a,this.transformPagePoint),{point:u}=l,{timestamp:c}=ve;this.history=[{...u,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,oa(l,this.history)),this.removeListeners=Ds(Qr(this.contextWindow,"pointermove",this.handlePointerMove),Qr(this.contextWindow,"pointerup",this.handlePointerUp),Qr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),sn(this.updatePoint)}}function ia(e,t){return t?{point:t(e.point)}:e}function Kd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oa({point:e},t){return{point:e,delta:Kd(e,xg(t)),offset:Kd(e,Uj(t)),velocity:Wj(t,.1)}}function Uj(e){return e[0]}function xg(e){return e[e.length-1]}function Wj(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const s=xg(e);for(;n>=0&&(r=e[n],!(s.timestamp-r.timestamp>Pt(t)));)n--;if(!r)return{x:0,y:0};const i=Et(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const jg=1e-4,Hj=1-jg,Kj=1+jg,wg=.01,Gj=0-wg,Qj=0+wg;function We(e){return e.max-e.min}function qj(e,t,n){return Math.abs(e-t)<=n}function Gd(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=We(n)/We(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Hj&&e.scale<=Kj||isNaN(e.scale))&&(e.scale=1),(e.translate>=Gj&&e.translate<=Qj||isNaN(e.translate))&&(e.translate=0)}function qr(e,t,n,r){Gd(e.x,t.x,n.x,r?r.originX:void 0),Gd(e.y,t.y,n.y,r?r.originY:void 0)}function Qd(e,t,n){e.min=n.min+t.min,e.max=e.min+We(t)}function Yj(e,t,n){Qd(e.x,t.x,n.x),Qd(e.y,t.y,n.y)}function qd(e,t,n){e.min=t.min-n.min,e.max=e.min+We(t)}function Yr(e,t,n){qd(e.x,t.x,n.x),qd(e.y,t.y,n.y)}function Xj(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ne(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ne(n,e,r.max):Math.min(e,n)),e}function Yd(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 Zj(e,{top:t,left:n,bottom:r,right:s}){return{x:Yd(e.x,n,s),y:Yd(e.y,t,r)}}function Xd(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 Jj(e,t){return{x:Xd(e.x,t.x),y:Xd(e.y,t.y)}}function ew(e,t){let n=.5;const r=We(e),s=We(t);return s>r?n=fr(t.min,t.max-r,e.min):r>s&&(n=fr(e.min,e.max-s,t.min)),_t(0,1,n)}function tw(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 kl=.35;function nw(e=kl){return e===!1?e=0:e===!0&&(e=kl),{x:Zd(e,"left","right"),y:Zd(e,"top","bottom")}}function Zd(e,t,n){return{min:Jd(e,t),max:Jd(e,n)}}function Jd(e,t){return typeof e=="number"?e:e[t]||0}const ef=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qn=()=>({x:ef(),y:ef()}),tf=()=>({min:0,max:0}),le=()=>({x:tf(),y:tf()});function qe(e){return[e("x"),e("y")]}function Sg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function rw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function sw(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 aa(e){return e===void 0||e===1}function Nl({scale:e,scaleX:t,scaleY:n}){return!aa(e)||!aa(t)||!aa(n)}function mn(e){return Nl(e)||kg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function kg(e){return nf(e.x)||nf(e.y)}function nf(e){return e&&e!=="0%"}function Zi(e,t,n){const r=e-n,s=t*r;return n+s}function rf(e,t,n,r,s){return s!==void 0&&(e=Zi(e,s,r)),Zi(e,n,r)+t}function Cl(e,t=0,n=1,r,s){e.min=rf(e.min,t,n,r,s),e.max=rf(e.max,t,n,r,s)}function Ng(e,{x:t,y:n}){Cl(e.x,t.translate,t.scale,t.originPoint),Cl(e.y,n.translate,n.scale,n.originPoint)}const sf=.999999999999,of=1.0000000000001;function iw(e,t,n,r=!1){const s=n.length;if(!s)return;t.x=t.y=1;let i,a;for(let l=0;l<s;l++){i=n[l],a=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&&Yn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ng(e,a)),r&&mn(i.latestValues)&&Yn(e,i.latestValues))}t.x<of&&t.x>sf&&(t.x=1),t.y<of&&t.y>sf&&(t.y=1)}function qn(e,t){e.min=e.min+t,e.max=e.max+t}function af(e,t,n,r,s=.5){const i=ne(e.min,e.max,s);Cl(e,t,n,i,r)}function Yn(e,t){af(e.x,t.x,t.scaleX,t.scale,t.originX),af(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cg(e,t){return Sg(sw(e.getBoundingClientRect(),t))}function ow(e,t,n){const r=Cg(e,n),{scroll:s}=t;return s&&(qn(r.x,s.offset.x),qn(r.y,s.offset.y)),r}const Tg=({current:e})=>e?e.ownerDocument.defaultView:null,aw=new WeakMap;class lw{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=le(),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(Rs(d).point)},i=(d,h)=>{const{drag:f,dragPropagation:v,onDragStart:j}=this.getProps();if(f&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=e1(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),qe(C=>{let m=this.getAxisMotionValue(C).get()||0;if(xt.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const g=p.layout.layoutBox[C];g&&(m=We(g)*(parseFloat(m)/100))}}this.originPoint[C]=m}),j&&Z.postRender(()=>j(d,h)),ml(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(d,h)=>{const{dragPropagation:f,dragDirectionLock:v,onDirectionLock:j,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:C}=h;if(v&&this.currentDirection===null){this.currentDirection=uw(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=()=>qe(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 yg(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Tg(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&&Z.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||!ei(t,s,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Xj(a,this.constraints[t],this.elastic[t])),i.set(a)}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&&Kn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=Zj(s.layoutBox,n):this.constraints=!1,this.elastic=nw(r),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&qe(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=tw(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Kn(t))return!1;const r=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=ow(r,s.root,this.visualElement.getTransformPagePoint());let a=Jj(s.layout.layoutBox,i);if(n){const l=n(rw(a));this.hasMutatedConstraints=!!l,l&&(a=Sg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},c=qe(d=>{if(!ei(d,n,this.currentDirection))return;let h=u&&u[d]||{};a&&(h={min:0,max:0});const f=s?200:1e6,v=s?40:1e7,j={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:v,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 ml(this.visualElement,t),r.start(oc(t,r,0,n,this.visualElement,!1))}stopAnimation(){qe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){qe(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){qe(n=>{const{drag:r}=this.getProps();if(!ei(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:a,max:l}=s.layout.layoutBox[n];i.set(t[n]-ne(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Kn(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};qe(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const u=l.get();s[a]=ew({min:u,max:u},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),qe(a=>{if(!ei(a,t,null))return;const l=this.getAxisMotionValue(a),{min:u,max:c}=this.constraints[a];l.set(ne(u,c,s[a]))})}addListeners(){if(!this.visualElement.current)return;aw.set(this.visualElement,this);const t=this.visualElement.current,n=Qr(t,"pointerdown",u=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Kn(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()),Z.read(r);const a=Ss(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(qe(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:a=kl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function ei(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function uw(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class cw extends cn{constructor(t){super(t),this.removeGroupControls=$e,this.removeListeners=$e,this.controls=new lw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$e}unmount(){this.removeGroupControls(),this.removeListeners()}}const lf=e=>(t,n)=>{e&&Z.postRender(()=>e(t,n))};class dw extends cn{constructor(){super(...arguments),this.removePointerDownListener=$e}onPointerDown(t){this.session=new yg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:lf(t),onStart:lf(n),onMove:r,onEnd:(i,a)=>{delete this.session,s&&Z.postRender(()=>s(i,a))}}}mount(){this.removePointerDownListener=Qr(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 ji={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Er={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=uf(e,t.target.x),r=uf(e,t.target.y);return`${n}% ${r}%`}},fw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=on.parse(e);if(s.length>5)return r;const i=on.createTransformer(e),a=typeof s[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;s[0+a]/=l,s[1+a]/=u;const c=ne(l,u,.5);return typeof s[2+a]=="number"&&(s[2+a]/=c),typeof s[3+a]=="number"&&(s[3+a]/=c),i(s)}};class hw extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=t;_x(pw),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()})),ji.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,s||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Z.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Vu.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 Pg(e){const[t,n]=um(),r=k.useContext(Pu);return o.jsx(hw,{...e,layoutGroup:r,switchLayoutGroup:k.useContext(vm),isPresent:t,safeToRemove:n})}const pw={borderRadius:{...Er,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Er,borderTopRightRadius:Er,borderBottomLeftRadius:Er,borderBottomRightRadius:Er,boxShadow:fw};function mw(e,t,n){const r=Ne(e)?e:js(e);return r.start(oc("",r,t,n)),r.animation}function gw(e){return e instanceof SVGElement&&e.tagName!=="svg"}const vw=(e,t)=>e.depth-t.depth;class yw{constructor(){this.children=[],this.isDirty=!1}add(t){qu(this.children,t),this.isDirty=!0}remove(t){Yu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vw),this.isDirty=!1,this.children.forEach(t)}}function xw(e,t){const n=jt.now(),r=({timestamp:s})=>{const i=s-n;i>=t&&(sn(r),e(i-t))};return Z.read(r,!0),()=>sn(r)}const Eg=["TopLeft","TopRight","BottomLeft","BottomRight"],jw=Eg.length,cf=e=>typeof e=="string"?parseFloat(e):e,df=e=>typeof e=="number"||O.test(e);function ww(e,t,n,r,s,i){s?(e.opacity=ne(0,n.opacity!==void 0?n.opacity:1,Sw(r)),e.opacityExit=ne(t.opacity!==void 0?t.opacity:1,0,kw(r))):i&&(e.opacity=ne(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<jw;a++){const l=`border${Eg[a]}Radius`;let u=ff(t,l),c=ff(n,l);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||df(u)===df(c)?(e[l]=Math.max(ne(cf(u),cf(c),r),0),(xt.test(c)||xt.test(u))&&(e[l]+="%")):e[l]=c}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function ff(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Sw=Mg(0,.5,Gm),kw=Mg(.5,.95,$e);function Mg(e,t,n){return r=>r<e?0:r>t?1:n(fr(e,t,r))}function hf(e,t){e.min=t.min,e.max=t.max}function Qe(e,t){hf(e.x,t.x),hf(e.y,t.y)}function pf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function mf(e,t,n,r,s){return e-=t,e=Zi(e,1/n,r),s!==void 0&&(e=Zi(e,1/s,r)),e}function Nw(e,t=0,n=1,r=.5,s,i=e,a=e){if(xt.test(t)&&(t=parseFloat(t),t=ne(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=ne(i.min,i.max,r);e===i&&(l-=t),e.min=mf(e.min,t,n,l,s),e.max=mf(e.max,t,n,l,s)}function gf(e,t,[n,r,s],i,a){Nw(e,t[n],t[r],t[s],t.scale,i,a)}const Cw=["x","scaleX","originX"],Tw=["y","scaleY","originY"];function vf(e,t,n,r){gf(e.x,t,Cw,n?n.x:void 0,r?r.x:void 0),gf(e.y,t,Tw,n?n.y:void 0,r?r.y:void 0)}function yf(e){return e.translate===0&&e.scale===1}function Ag(e){return yf(e.x)&&yf(e.y)}function xf(e,t){return e.min===t.min&&e.max===t.max}function Pw(e,t){return xf(e.x,t.x)&&xf(e.y,t.y)}function jf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Dg(e,t){return jf(e.x,t.x)&&jf(e.y,t.y)}function wf(e){return We(e.x)/We(e.y)}function Sf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Ew{constructor(){this.members=[]}add(t){qu(this.members,t),t.scheduleRender()}remove(t){if(Yu(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 Mw(e,t,n){let r="";const s=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((s||i||a)&&(r=`translate3d(${s}px, ${i}px, ${a}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:v,skewY:j}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),f&&(r+=`rotateY(${f}deg) `),v&&(r+=`skewX(${v}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 gn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vr=typeof window<"u"&&window.MotionDebug!==void 0,la=["","X","Y","Z"],Aw={visibility:"hidden"},kf=1e3;let Dw=0;function ua(e,t,n,r){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Rg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Im(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Z,!(s||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Rg(r)}function _g({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(a={},l=t==null?void 0:t()){this.id=Dw++,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,Vr&&(gn.totalNodes=gn.resolvedTargetDeltas=gn.recalculatedProjection=0),this.nodes.forEach(Lw),this.nodes.forEach(Fw),this.nodes.forEach(Iw),this.nodes.forEach(Vw),Vr&&window.MotionDebug.record(gn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 yw)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Xu),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const u=this.eventHandlers.get(a);u&&u.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=gw(a),this.instance=a;const{layoutId:u,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),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(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=xw(f,250),ji.hasAnimatedSinceResize&&(ji.hasAnimatedSinceResize=!1,this.nodes.forEach(Cf))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:v,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||Hw,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!Dg(this.targetLayout,j)||v,g=!f&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const w={...Hu(y,"layout"),onPlay:C,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Cf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,sn(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(Bw),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Rg(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(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Nf);return}this.isUpdating||this.nodes.forEach(Ow),this.isUpdating=!1,this.nodes.forEach(bw),this.nodes.forEach(Rw),this.nodes.forEach(_w),this.clearAllSnapshots();const l=jt.now();ve.delta=_t(0,1e3/60,l-ve.timestamp),ve.timestamp=l,ve.isProcessing=!0,Jo.update.process(ve),Jo.preRender.process(ve),Jo.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Vu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zw),this.sharedNodes.forEach($w)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Z.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Z.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 a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=le(),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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!s)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Ag(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;a&&(l||mn(this.latestValues)||d)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return a&&(u=this.removeTransform(u)),Kw(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:l}=this.options;if(!l)return le();const u=l.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(Gw))){const{scroll:d}=this.root;d&&(qn(u.x,d.offset.x),qn(u.y,d.offset.y))}return u}removeElementScroll(a){var l;const u=le();if(Qe(u,a),!((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&&Qe(u,a),qn(u.x,h.offset.x),qn(u.y,h.offset.y))}return u}applyTransform(a,l=!1){const u=le();Qe(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Yn(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),mn(d.latestValues)&&Yn(u,d.latestValues)}return mn(this.latestValues)&&Yn(u,this.latestValues),u}removeTransform(a){const l=le();Qe(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!mn(c.latestValues))continue;Nl(c.latestValues)&&c.updateSnapshot();const d=le(),h=c.measurePageBox();Qe(d,h),vf(l,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return mn(this.latestValues)&&vf(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!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(!(a||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=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),Yr(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Qe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=le(),this.targetWithTransforms=le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Yj(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qe(this.target,this.layout.layoutBox),Ng(this.target,this.targetDelta)):Qe(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),Yr(this.relativeTargetOrigin,this.target,v.target),Qe(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vr&&gn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Nl(this.parent.latestValues)||kg(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 a;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let c=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(c=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ve.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;Qe(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,v=this.treeScale.y;iw(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=le());const{target:j}=l;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pf(this.prevProjectionDelta.x,this.projectionDelta.x),pf(this.prevProjectionDelta.y,this.projectionDelta.y)),qr(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==v||!Sf(this.projectionDelta.x,this.prevProjectionDelta.x)||!Sf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j)),Vr&&gn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),a){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qn(),this.projectionDelta=Qn(),this.projectionDeltaWithTransform=Qn()}setAnimationOrigin(a,l=!1){const u=this.snapshot,c=u?u.latestValues:{},d={...this.latestValues},h=Qn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=le(),v=u?u.source:void 0,j=this.layout?this.layout.source:void 0,y=v!==j,C=this.getStack(),m=!C||C.members.length<=1,p=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(Ww));this.animationProgress=0;let g;this.mixTargetDelta=w=>{const x=w/1e3;Tf(h.x,a.x,x),Tf(h.y,a.y,x),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Uw(this.relativeTarget,this.relativeTargetOrigin,f,x),g&&Pw(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=le()),Qe(g,this.relativeTarget)),y&&(this.animationValues=d,ww(d,c,this.latestValues,x,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(sn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Z.update(()=>{ji.hasAnimatedSinceResize=!0,this.currentAnimation=mw(0,kf,{...a,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:d}=a;if(!(!l||!u||!c)){if(this!==a&&this.layout&&c&&Lg(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||le();const h=We(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+h;const f=We(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+f}Qe(l,u),Yn(l,d),qr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Ew),this.sharedNodes.get(a).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 a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:l}=this.options;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:l}=this.options;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&ua("z",a,c,this.animationValues);for(let d=0;d<la.length;d++)ua(`rotate${la[d]}`,a,c,this.animationValues),ua(`skew${la[d]}`,a,c,this.animationValues);a.render();for(const d in c)a.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);a.scheduleRender()}getProjectionStyles(a){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Aw;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=yi(a==null?void 0:a.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=yi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!mn(this.latestValues)&&(y.transform=d?d({},""):"none",this.hasProjected=!1),y}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=Mw(this.projectionDeltaWithTransform,this.treeScale,f),d&&(c.transform=d(f,c.transform));const{x:v,y:j}=this.projectionDelta;c.transformOrigin=`${v.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 Gi){if(f[y]===void 0)continue;const{correct:C,applyTo:m}=Gi[y],p=c.transform==="none"?f[y]:C(f[y],h);if(m){const g=m.length;for(let w=0;w<g;w++)c[m[w]]=p}else c[y]=p}return this.options.layoutId&&(c.pointerEvents=h===this?yi(a==null?void 0:a.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Nf),this.root.sharedNodes.clear()}}}function Rw(e){e.updateLayout()}function _w(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,a=n.source!==e.layout.source;i==="size"?qe(h=>{const f=a?n.measuredBox[h]:n.layoutBox[h],v=We(f);f.min=r[h].min,f.max=f.min+v}):Lg(i,n.layoutBox,r)&&qe(h=>{const f=a?n.measuredBox[h]:n.layoutBox[h],v=We(r[h]);f.max=f.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+v)});const l=Qn();qr(l,r,n.layoutBox);const u=Qn();a?qr(u,e.applyTransform(s,!0),n.measuredBox):qr(u,r,n.layoutBox);const c=!Ag(l);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:v}=h;if(f&&v){const j=le();Yr(j,n.layoutBox,f.layoutBox);const y=le();Yr(y,r,v.layoutBox),Dg(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 Lw(e){Vr&&gn.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 Vw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zw(e){e.clearSnapshot()}function Nf(e){e.clearMeasurements()}function Ow(e){e.isLayoutDirty=!1}function bw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Cf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Fw(e){e.resolveTargetDelta()}function Iw(e){e.calcProjection()}function Bw(e){e.resetSkewAndRotation()}function $w(e){e.removeLeadSnapshot()}function Tf(e,t,n){e.translate=ne(t.translate,0,n),e.scale=ne(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Pf(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function Uw(e,t,n,r){Pf(e.x,t.x,n.x,r),Pf(e.y,t.y,n.y,r)}function Ww(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Hw={duration:.45,ease:[.4,0,.1,1]},Ef=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mf=Ef("applewebkit/")&&!Ef("chrome/")?Math.round:$e;function Af(e){e.min=Mf(e.min),e.max=Mf(e.max)}function Kw(e){Af(e.x),Af(e.y)}function Lg(e,t,n){return e==="position"||e==="preserve-aspect"&&!qj(wf(t),wf(n),.2)}function Gw(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Qw=_g({attachResizeListener:(e,t)=>Ss(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ca={current:void 0},Vg=_g({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ca.current){const e=new Qw({});e.mount(window),e.setOptions({layoutScroll:!0}),ca.current=e}return ca.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qw={pan:{Feature:dw},drag:{Feature:cw,ProjectionNode:Vg,MeasureLayout:Pg}};function Df(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&&Z.postRender(()=>i(t,Rs(t)))}class Yw extends cn{mount(){const{current:t}=this.node;t&&(this.unmount=qx(t,n=>(Df(this.node,n,"Start"),r=>Df(this.node,r,"End"))))}unmount(){}}class Xw extends cn{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=Ds(Ss(this.node.current,"focus",()=>this.onFocus()),Ss(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Rf(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&&Z.postRender(()=>i(t,Rs(t)))}class Zw extends cn{mount(){const{current:t}=this.node;t&&(this.unmount=Jx(t,n=>(Rf(this.node,n,"Start"),(r,{success:s})=>Rf(this.node,r,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Tl=new WeakMap,da=new WeakMap,Jw=e=>{const t=Tl.get(e.target);t&&t(e)},eS=e=>{e.forEach(Jw)};function tS({root:e,...t}){const n=e||document;da.has(n)||da.set(n,{});const r=da.get(n),s=JSON.stringify(t);return r[s]||(r[s]=new IntersectionObserver(eS,{root:e,...t})),r[s]}function nS(e,t,n){const r=tS(t);return Tl.set(e,n),r.observe(e),()=>{Tl.delete(e),r.unobserve(e)}}const rS={some:0,all:1};class sS extends cn{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,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:rS[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 nS(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iS(t,n))&&this.startObserver()}unmount(){}}function iS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oS={inView:{Feature:sS},tap:{Feature:Zw},focus:{Feature:Xw},hover:{Feature:Yw}},aS={layout:{ProjectionNode:Vg,MeasureLayout:Pg}},Pl={current:null},zg={current:!1};function lS(){if(zg.current=!0,!!Au)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Pl.current=e.matches;e.addListener(t),t()}else Pl.current=!1}const uS=[...ag,Se,on],cS=e=>uS.find(og(e)),_f=new WeakMap;function dS(e,t,n){for(const r in t){const s=t[r],i=n[r];if(Ne(s))e.addValue(r,s);else if(Ne(i))e.addValue(r,js(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(r);e.addValue(r,js(a!==void 0?a:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Lf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class fS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=rc,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 v=jt.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Z.render(this.render,!1,!0))};const{latestValues:u,renderState:c,onUpdate:d}=a;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=wo(n),this.isVariantNode=mm(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in f){const j=f[v];u[v]!==void 0&&Ne(j)&&j.set(u[v],!1)}}mount(t){this.current=t,_f.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)),zg.current||lS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Pl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_f.delete(this.current),this.projection&&this.projection.unmount(),sn(this.notifyUpdate),sn(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=Rn.has(t),s=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Z.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i(),a&&a(),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 hr){const n=hr[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):le()}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<Lf.length;r++){const s=Lf[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,a=t[i];a&&(this.propEventSubscriptions[s]=this.on(s,a))}this.prevMotionValues=dS(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=js(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"&&(sg(s)||qm(s))?s=parseFloat(s):!cS(s)&&on.test(n)&&(s=tg(t,n)),this.setBaseTarget(t,Ne(s)?s.get():s)),Ne(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 a=Ou(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(s=a[t])}if(r&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ne(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 Xu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Og extends fS{constructor(){super(...arguments),this.KeyframeResolver=lg}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;Ne(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function hS(e){return window.getComputedStyle(e)}class pS extends Og{constructor(){super(...arguments),this.type="html",this.renderInstance=Nm}readValueFromInstance(t,n){if(Rn.has(n)){const r=nc(n);return r&&r.default||0}else{const r=hS(t),s=(wm(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Cg(t,n)}build(t,n,r){Iu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Wu(t,n,r)}}class mS extends Og{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Rn.has(n)){const r=nc(n);return r&&r.default||0}return n=Cm.has(n)?n:Lu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Em(t,n,r)}build(t,n,r){Bu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,s){Tm(t,n,r,s)}mount(t){this.isSVGTag=Uu(t.tagName),super.mount(t)}}const gS=(e,t)=>zu(e)?new mS(t):new pS(t,{allowProjection:e!==k.Fragment}),vS=$x({...Ij,...oS,...qw,...aS},gS),Te=rx(vS);function Vf(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 yS(e){if(Array.isArray(e))return e}function xS(e,t,n){return(t=TS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,a,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&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw s}}return l}}function wS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
309
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zf(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 Of(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zf(Object(n),!0).forEach(function(r){xS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SS(e,t){if(e==null)return{};var n,r,s=kS(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 kS(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 NS(e,t){return yS(e)||jS(e,t)||PS(e,t)||wS()}function CS(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 TS(e){var t=CS(e,"string");return typeof t=="symbol"?t:t+""}function PS(e,t){if(e){if(typeof e=="string")return Vf(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)?Vf(e,t):void 0}}function ES(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bf(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 Ff(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bf(Object(n),!0).forEach(function(r){ES(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MS(){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 zr(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 a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return t.apply(n,[].concat(s,l))}}}function Ji(e){return{}.toString.call(e).includes("Object")}function AS(e){return!Object.keys(e).length}function ks(e){return typeof e=="function"}function DS(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function RS(e,t){return Ji(t)||Jt("changeType"),Object.keys(t).some(function(n){return!DS(e,n)})&&Jt("changeField"),t}function _S(e){ks(e)||Jt("selectorType")}function LS(e){ks(e)||Ji(e)||Jt("handlerType"),Ji(e)&&Object.values(e).some(function(t){return!ks(t)})&&Jt("handlersType")}function VS(e){e||Jt("initialIsRequired"),Ji(e)||Jt("initialType"),AS(e)&&Jt("initialContent")}function zS(e,t){throw new Error(e[t]||e.default)}var OS={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"},Jt=zr(zS)(OS),ti={changes:RS,selector:_S,handler:LS,initial:VS};function bS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ti.initial(e),ti.handler(t);var n={current:e},r=zr(BS)(n,t),s=zr(IS)(n),i=zr(ti.changes)(e),a=zr(FS)(n);function l(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return ti.selector(c),c(n.current)}function u(c){MS(r,s,i,a)(c)}return[l,u]}function FS(e,t){return ks(t)?t(e.current):t}function IS(e,t){return e.current=Ff(Ff({},e.current),t),t}function BS(e,t,n){return ks(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 $S={create:bS},US={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function WS(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 a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return t.apply(n,[].concat(s,l))}}}function HS(e){return{}.toString.call(e).includes("Object")}function KS(e){return e||If("configIsRequired"),HS(e)||If("configType"),e.urls?(GS(),{paths:{vs:e.urls.monacoBase}}):e}function GS(){console.warn(bg.deprecation)}function QS(e,t){throw new Error(e[t]||e.default)}var bg={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!
|
|
310
|
+
You are using deprecated way of configuration.
|
|
311
|
+
|
|
312
|
+
Instead of using
|
|
313
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
314
|
+
use
|
|
315
|
+
monaco.config({ paths: { vs: '...' } })
|
|
316
|
+
|
|
317
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
318
|
+
`},If=WS(QS)(bg),qS={config:KS},YS=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,a){return a(i)},s)}};function Fg(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Fg(e[n],t[n]))}),Of(Of({},e),t)}var XS={type:"cancelation",msg:"operation is manually canceled"};function fa(e){var t=!1,n=new Promise(function(r,s){e.then(function(i){return t?s(XS):r(i)}),e.catch(s)});return n.cancel=function(){return t=!0},n}var ZS=["monaco"],JS=$S.create({config:US,isInitialized:!1,resolve:null,reject:null,monaco:null}),Ig=NS(JS,2),_s=Ig[0],No=Ig[1];function e2(e){var t=qS.config(e),n=t.monaco,r=SS(t,ZS);No(function(s){return{config:Fg(s.config,r),monaco:n}})}function t2(){var e=_s(function(t){var n=t.monaco,r=t.isInitialized,s=t.resolve;return{monaco:n,isInitialized:r,resolve:s}});if(!e.isInitialized){if(No({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),fa(ha);if(window.monaco&&window.monaco.editor)return Bg(window.monaco),e.resolve(window.monaco),fa(ha);YS(n2,s2)(i2)}return fa(ha)}function n2(e){return document.body.appendChild(e)}function r2(e){var t=document.createElement("script");return e&&(t.src=e),t}function s2(e){var t=_s(function(r){var s=r.config,i=r.reject;return{config:s,reject:i}}),n=r2("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function i2(){var e=_s(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;Bg(r),e.resolve(r)},function(n){e.reject(n)})}function Bg(e){_s().monaco||No({monaco:e})}function o2(){return _s(function(e){var t=e.monaco;return t})}var ha=new Promise(function(e,t){return No({resolve:e,reject:t})}),$g={config:e2,init:t2,__getMonacoInstance:o2},a2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},pa=a2,l2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},u2=l2;function c2({children:e}){return Fe.createElement("div",{style:u2.container},e)}var d2=c2,f2=d2;function h2({width:e,height:t,isEditorReady:n,loading:r,_ref:s,className:i,wrapperProps:a}){return Fe.createElement("section",{style:{...pa.wrapper,width:e,height:t},...a},!n&&Fe.createElement(f2,null,r),Fe.createElement("div",{ref:s,style:{...pa.fullWidth,...!n&&pa.hide},className:i}))}var p2=h2,Ug=k.memo(p2);function m2(e){k.useEffect(e,[])}var Wg=m2;function g2(e,t,n=!0){let r=k.useRef(!0);k.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var be=g2;function Xr(){}function Xn(e,t,n,r){return v2(e,r)||y2(e,t,n,r)}function v2(e,t){return e.editor.getModel(Hg(e,t))}function y2(e,t,n,r){return e.editor.createModel(t,n,r?Hg(e,r):void 0)}function Hg(e,t){return e.Uri.parse(t)}function x2({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:s,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:u=!1,theme:c="light",loading:d="Loading...",options:h={},height:f="100%",width:v="100%",className:j,wrapperProps:y={},beforeMount:C=Xr,onMount:m=Xr}){let[p,g]=k.useState(!1),[w,x]=k.useState(!0),S=k.useRef(null),N=k.useRef(null),P=k.useRef(null),D=k.useRef(m),E=k.useRef(C),I=k.useRef(!1);Wg(()=>{let V=$g.init();return V.then($=>(N.current=$)&&x(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>S.current?J():V.cancel()}),be(()=>{if(S.current&&N.current){let V=S.current.getOriginalEditor(),$=Xn(N.current,e||"",r||n||"text",i||"");$!==V.getModel()&&V.setModel($)}},[i],p),be(()=>{if(S.current&&N.current){let V=S.current.getModifiedEditor(),$=Xn(N.current,t||"",s||n||"text",a||"");$!==V.getModel()&&V.setModel($)}},[a],p),be(()=>{let V=S.current.getModifiedEditor();V.getOption(N.current.editor.EditorOption.readOnly)?V.setValue(t||""):t!==V.getValue()&&(V.executeEdits("",[{range:V.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),V.pushUndoStop())},[t],p),be(()=>{var V,$;($=(V=S.current)==null?void 0:V.getModel())==null||$.original.setValue(e||"")},[e],p),be(()=>{let{original:V,modified:$}=S.current.getModel();N.current.editor.setModelLanguage(V,r||n||"text"),N.current.editor.setModelLanguage($,s||n||"text")},[n,r,s],p),be(()=>{var V;(V=N.current)==null||V.editor.setTheme(c)},[c],p),be(()=>{var V;(V=S.current)==null||V.updateOptions(h)},[h],p);let F=k.useCallback(()=>{var U;if(!N.current)return;E.current(N.current);let V=Xn(N.current,e||"",r||n||"text",i||""),$=Xn(N.current,t||"",s||n||"text",a||"");(U=S.current)==null||U.setModel({original:V,modified:$})},[n,t,s,e,r,i,a]),ce=k.useCallback(()=>{var V;!I.current&&P.current&&(S.current=N.current.editor.createDiffEditor(P.current,{automaticLayout:!0,...h}),F(),(V=N.current)==null||V.editor.setTheme(c),g(!0),I.current=!0)},[h,c,F]);k.useEffect(()=>{p&&D.current(S.current,N.current)},[p]),k.useEffect(()=>{!w&&!p&&ce()},[w,p,ce]);function J(){var $,U,T,A;let V=($=S.current)==null?void 0:$.getModel();l||((U=V==null?void 0:V.original)==null||U.dispose()),u||((T=V==null?void 0:V.modified)==null||T.dispose()),(A=S.current)==null||A.dispose()}return Fe.createElement(Ug,{width:v,height:f,isEditorReady:p,loading:d,_ref:P,className:j,wrapperProps:y})}var j2=x2,w2=k.memo(j2);function S2(e){let t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}var k2=S2,ni=new Map;function N2({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:s,path:i,theme:a="light",line:l,loading:u="Loading...",options:c={},overrideServices:d={},saveViewState:h=!0,keepCurrentModel:f=!1,width:v="100%",height:j="100%",className:y,wrapperProps:C={},beforeMount:m=Xr,onMount:p=Xr,onChange:g,onValidate:w=Xr}){let[x,S]=k.useState(!1),[N,P]=k.useState(!0),D=k.useRef(null),E=k.useRef(null),I=k.useRef(null),F=k.useRef(p),ce=k.useRef(m),J=k.useRef(),V=k.useRef(r),$=k2(i),U=k.useRef(!1),T=k.useRef(!1);Wg(()=>{let _=$g.init();return _.then(z=>(D.current=z)&&P(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>E.current?L():_.cancel()}),be(()=>{var z,ie,G,ze;let _=Xn(D.current,e||r||"",t||s||"",i||n||"");_!==((z=E.current)==null?void 0:z.getModel())&&(h&&ni.set($,(ie=E.current)==null?void 0:ie.saveViewState()),(G=E.current)==null||G.setModel(_),h&&((ze=E.current)==null||ze.restoreViewState(ni.get(i))))},[i],x),be(()=>{var _;(_=E.current)==null||_.updateOptions(c)},[c],x),be(()=>{!E.current||r===void 0||(E.current.getOption(D.current.editor.EditorOption.readOnly)?E.current.setValue(r):r!==E.current.getValue()&&(T.current=!0,E.current.executeEdits("",[{range:E.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),E.current.pushUndoStop(),T.current=!1))},[r],x),be(()=>{var z,ie;let _=(z=E.current)==null?void 0:z.getModel();_&&s&&((ie=D.current)==null||ie.editor.setModelLanguage(_,s))},[s],x),be(()=>{var _;l!==void 0&&((_=E.current)==null||_.revealLine(l))},[l],x),be(()=>{var _;(_=D.current)==null||_.editor.setTheme(a)},[a],x);let A=k.useCallback(()=>{var _;if(!(!I.current||!D.current)&&!U.current){ce.current(D.current);let z=i||n,ie=Xn(D.current,r||e||"",t||s||"",z||"");E.current=(_=D.current)==null?void 0:_.editor.create(I.current,{model:ie,automaticLayout:!0,...c},d),h&&E.current.restoreViewState(ni.get(z)),D.current.editor.setTheme(a),l!==void 0&&E.current.revealLine(l),S(!0),U.current=!0}},[e,t,n,r,s,i,c,d,h,a,l]);k.useEffect(()=>{x&&F.current(E.current,D.current)},[x]),k.useEffect(()=>{!N&&!x&&A()},[N,x,A]),V.current=r,k.useEffect(()=>{var _,z;x&&g&&((_=J.current)==null||_.dispose(),J.current=(z=E.current)==null?void 0:z.onDidChangeModelContent(ie=>{T.current||g(E.current.getValue(),ie)}))},[x,g]),k.useEffect(()=>{if(x){let _=D.current.editor.onDidChangeMarkers(z=>{var G;let ie=(G=E.current.getModel())==null?void 0:G.uri;if(ie&&z.find(ze=>ze.path===ie.path)){let ze=D.current.editor.getModelMarkers({resource:ie});w==null||w(ze)}});return()=>{_==null||_.dispose()}}return()=>{}},[x,w]);function L(){var _,z;(_=J.current)==null||_.dispose(),f?h&&ni.set(i,E.current.saveViewState()):(z=E.current.getModel())==null||z.dispose(),E.current.dispose()}return Fe.createElement(Ug,{width:v,height:j,isEditorReady:x,loading:u,_ref:I,className:y,wrapperProps:C})}var C2=N2,T2=k.memo(C2);const P2=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"},E2=new Set(["txt","log","env"]);function M2(e){var n;const t=((n=e.split(".").pop())==null?void 0:n.toLowerCase())||"";return E2.has(t)}const A2=({filename:e,originalCode:t,modifiedCode:n,onClose:r,theme:s="dark",violations:i=[]})=>{const a=t!==n,l=P2(e),u=s==="dark"?"vs-dark":"light",c=M2(e)&&!a,d=h=>{if(!i.length||!h)return;const f=window.monaco;if(!f)return;const v=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}**
|
|
319
|
+
|
|
320
|
+
${j.details}`},overviewRuler:{color:"#f87171",position:f.editor.OverviewRulerLane.Full}}}));h.deltaDecorations([],v)};return o.jsx("div",{className:"diff-viewer-overlay",children:o.jsxs("div",{className:"diff-viewer-window",children:[o.jsxs("div",{className:"diff-viewer-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(mt,{size:18}),o.jsx("span",{children:e}),a&&o.jsx("span",{className:"diff-badge",children:"Modified"}),i.length>0&&o.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":""]})]}),o.jsx("button",{onClick:r,className:"close-btn",children:o.jsx(Tu,{size:20})})]}),c?o.jsx("pre",{className:"markdown-viewer",children:n}):o.jsx("div",{className:"diff-editor-container",children:a?o.jsx(w2,{height:"100%",language:l,original:t,modified:n,theme:u,options:{renderSideBySide:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13}}):o.jsx(T2,{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}})})]})})},D2=(e,t)=>{const n=[];e.forEach(s=>{const i=s.split("/");let a=n,l="";i.forEach((u,c)=>{l=l?`${l}/${u}`:u;const d=c<i.length-1;let h=a.find(f=>f.name===u);h||(h={name:u,path:l,isDirectory:d,children:[],isViolated:t.some(f=>f===l||f.startsWith(`${l}/`))},a.push(h)),a=h.children})});const r=s=>{s.sort((i,a)=>i.isDirectory&&!a.isDirectory?-1:!i.isDirectory&&a.isDirectory?1:i.name.localeCompare(a.name)),s.forEach(i=>r(i.children))};return r(n),n},Kg=({node:e,level:t,onSelect:n,activeFile:r})=>{const[s,i]=k.useState(t===0),a=r===e.path,l=u=>{u.stopPropagation(),e.isDirectory?i(!s):n(e.path)};return o.jsxs("div",{className:"tree-node-container",children:[o.jsxs("div",{className:`tree-item ${a?"active":""} ${e.isViolated?"violated":""}`,style:{paddingLeft:`${t*12+8}px`},onClick:l,children:[e.isDirectory?o.jsxs(o.Fragment,{children:[s?o.jsx(ms,{size:14,className:"chevron"}):o.jsx(nn,{size:14,className:"chevron"}),s?o.jsx(V0,{size:14,className:"folder-icon"}):o.jsx(vo,{size:14,className:"folder-icon"})]}):o.jsx(mt,{size:14,className:"file-icon"}),o.jsx("span",{className:"node-name",title:e.path,children:e.name}),e.isViolated&&o.jsx(sm,{size:12,className:"violation-icon"})]}),e.isDirectory&&s&&o.jsx("div",{className:"tree-children",children:e.children.map(u=>o.jsx(Kg,{node:u,level:t+1,onSelect:n,activeFile:r},u.path))})]})},Bf=({files:e,onSelect:t,activeFile:n,violatedFiles:r=[]})=>{const s=k.useMemo(()=>D2(e,r),[e,r]);return o.jsxs("div",{className:"file-tree",children:[o.jsxs("div",{className:"tree-header",children:[o.jsx(vo,{size:14}),o.jsx("span",{children:"Project Explorer"})]}),o.jsx("div",{className:"tree-list",children:s.length===0?o.jsx("div",{className:"empty-tree-state",children:"No files found"}):s.map(i=>o.jsx(Kg,{node:i,level:0,onSelect:t,activeFile:n},i.path))})]})},ma=e=>typeof e=="string"?e:JSON.stringify(e,null,2),R2=()=>{const[e,t]=k.useState({memories:{}}),[n,r]=k.useState(null),[s,i]=k.useState(""),[a,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())),v=n?e.memories[n]:null,j=m=>{try{return new Date(m).toLocaleString()}catch{return m}},y=()=>{v&&(navigator.clipboard.writeText(ma(v.value)),c(!0),setTimeout(()=>c(!1),2e3))},C=m=>{const p=ma(m);if(p.includes("1)")&&p.includes("2)")){const g=p.split(/(\d+\))/);return o.jsx("div",{className:"formatted-content",children:g.map((w,x)=>{if(/^\d+\)$/.test(w))return o.jsx("div",{className:"section-marker",children:w},x);if(w.trim().startsWith("Priority:")){const[S,N]=w.split("Priority:");return o.jsxs(Fe.Fragment,{children:[S.trim()&&o.jsx("div",{className:"section-body",children:S.trim()}),o.jsx("div",{className:"priority-box",children:N.trim()})]},x)}return w.trim()?o.jsx("div",{className:"section-body",children:w.trim()},x):null})})}return o.jsx("pre",{children:p})};return o.jsxs("div",{className:"memory-bank",children:[o.jsxs("div",{className:"memory-header",children:[o.jsxs("div",{className:"memory-title",children:[o.jsx(dr,{size:24}),o.jsx("h2",{children:"Memory Bank"}),o.jsxs("span",{className:"memory-count",children:[h.length," entries"]})]}),o.jsxs("div",{className:"memory-actions",children:[o.jsxs("div",{className:"search-box",children:[o.jsx(Nu,{size:16}),o.jsx("input",{type:"text",placeholder:"Search memories...",value:s,onChange:m=>i(m.target.value)})]}),o.jsx("button",{className:"refresh-btn",onClick:d,disabled:a,children:o.jsx(rn,{size:16,className:a?"spinning":""})})]})]}),o.jsxs("div",{className:"memory-content",children:[o.jsx("div",{className:"memory-list",children:a?o.jsx("div",{className:"memory-loading",children:"Loading memories..."}):f.length===0?o.jsxs("div",{className:"memory-empty",children:[o.jsx(Su,{size:48}),o.jsx("h3",{children:"No Memories Stored"}),o.jsxs("p",{children:["Use ",o.jsx("code",{children:"store_memory"})," via MCP to persist agent context."]})]}):f.map(([m,p])=>o.jsxs("div",{className:`memory-item ${n===m?"active":""}`,onClick:()=>r(m),children:[o.jsxs("div",{className:"memory-item-header",children:[o.jsx(yd,{size:14}),o.jsx("span",{className:"memory-key",children:m}),o.jsx(nn,{size:14,className:"chevron"})]}),o.jsxs("div",{className:"memory-item-meta",children:[o.jsx(vs,{size:12}),o.jsx("span",{children:j(p.timestamp)})]}),o.jsx("div",{className:"memory-item-preview",children:(()=>{const g=ma(p.value);return g.slice(0,100)+(g.length>100?"...":"")})()})]},m))}),o.jsx("div",{className:"memory-detail",children:v?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"detail-header",children:[o.jsx(yd,{size:18}),o.jsx("h3",{children:n})]}),o.jsxs("div",{className:"detail-meta",children:[o.jsxs("div",{className:"meta-left",children:[o.jsx(vs,{size:14}),o.jsxs("span",{children:["Stored: ",j(v.timestamp)]})]}),o.jsxs("button",{className:`copy-btn ${u?"copied":""}`,onClick:y,children:[u?o.jsx(M0,{size:14}):o.jsx(D0,{size:14}),o.jsx("span",{children:u?"Copied":"Copy"})]})]}),o.jsx("div",{className:"detail-content",children:C(v.value)})]}):o.jsxs("div",{className:"detail-placeholder",children:[o.jsx(dr,{size:48}),o.jsx("p",{children:"Select a memory to view its contents"})]})})]})]})},_2=()=>{var x;const[e,t]=k.useState({patterns:[],stats:{totalPatterns:0,totalFiles:0,byType:{}}}),[n,r]=k.useState(null),[s,i]=k.useState(""),[a,l]=k.useState("all"),[u,c]=k.useState(!0),[d,h]=k.useState(!1),[f,v]=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){v([]);return}const S=setTimeout(async()=>{y(!0);try{const P=await(await fetch(`/api/index-search?q=${encodeURIComponent(s)}`)).json();v(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:{}},g=d&&s.length>=3?m:m.filter(S=>{const N=S.name.toLowerCase().includes(s.toLowerCase())||S.file.toLowerCase().includes(s.toLowerCase()),P=a==="all"||S.type===a;return N&&P}),w=Object.keys(p.byType||{});return o.jsxs("div",{className:"pattern-index",children:[o.jsxs("div",{className:"pattern-header",children:[o.jsxs("div",{className:"pattern-title",children:[o.jsx(Zt,{size:24}),o.jsx("h2",{children:"Pattern Index"}),o.jsxs("span",{className:"pattern-count",children:[p.totalPatterns," patterns"]})]}),o.jsxs("div",{className:"pattern-actions",children:[o.jsxs("div",{className:"search-box",children:[o.jsx(Nu,{size:16}),o.jsx("input",{type:"text",placeholder:"Search patterns...",value:s,onChange:S=>i(S.target.value)})]}),o.jsxs("div",{className:"filter-box",children:[o.jsx(ku,{size:16}),o.jsxs("select",{value:a,onChange:S=>l(S.target.value),children:[o.jsx("option",{value:"all",children:"All Types"}),w.map(S=>o.jsxs("option",{value:S,children:[S," (",p.byType[S],")"]},S))]})]}),o.jsxs("button",{className:`semantic-toggle ${d?"active":""}`,onClick:()=>h(!d),title:"Semantic Search (v2)",children:[o.jsx(vd,{size:16}),o.jsx("span",{children:"AI Search"})]}),o.jsx("button",{className:"refresh-btn",onClick:C,disabled:u,children:o.jsx(rn,{size:16,className:u?"spinning":""})})]})]}),o.jsxs("div",{className:"pattern-stats",children:[o.jsxs("div",{className:"stat-card",children:[o.jsx(rm,{size:20}),o.jsxs("div",{className:"stat-info",children:[o.jsx("span",{className:"stat-value",children:p.totalPatterns}),o.jsx("span",{className:"stat-label",children:"Total Patterns"})]})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx(mt,{size:20}),o.jsxs("div",{className:"stat-info",children:[o.jsx("span",{className:"stat-value",children:p.totalFiles}),o.jsx("span",{className:"stat-label",children:"Files Indexed"})]})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx(vd,{size:20}),o.jsxs("div",{className:"stat-info",children:[o.jsx("span",{className:"stat-value",children:w.length}),o.jsx("span",{className:"stat-label",children:"Pattern Types"})]})]}),p.indexDurationMs&&o.jsxs("div",{className:"stat-card",children:[o.jsx(vs,{size:20}),o.jsxs("div",{className:"stat-info",children:[o.jsxs("span",{className:"stat-value",children:[p.indexDurationMs,"ms"]}),o.jsx("span",{className:"stat-label",children:"Index Time"})]})]})]}),o.jsxs("div",{className:"pattern-content",children:[o.jsxs("div",{className:"pattern-list",children:[j&&o.jsxs("div",{className:"searching-indicator",children:[o.jsx(rn,{size:14,className:"spinning"}),o.jsx("span",{children:"AI is analyzing your query..."})]}),u?o.jsx("div",{className:"pattern-loading",children:"Loading patterns..."}):g.length===0?o.jsxs("div",{className:"pattern-empty",children:[o.jsx(Zt,{size:48}),o.jsx("h3",{children:"No Patterns Indexed"}),o.jsxs("p",{children:["Run ",o.jsx("code",{children:"rigour index"})," to scan your codebase."]})]}):g.map(S=>o.jsxs("div",{className:`pattern-item ${(n==null?void 0:n.id)===S.id?"active":""}`,onClick:()=>r(S),children:[S.similarity&&o.jsxs("div",{className:"similarity-badge",children:[(S.similarity*100).toFixed(0),"% Match"]}),o.jsxs("div",{className:"pattern-item-header",children:[o.jsx("span",{className:"pattern-type-badge",children:S.type}),o.jsx("span",{className:"pattern-name",children:S.name}),o.jsx(nn,{size:14,className:"chevron"})]}),o.jsxs("div",{className:"pattern-item-file",children:[o.jsx(mt,{size:12}),o.jsxs("span",{children:[S.file,":",S.line]})]}),S.exported&&o.jsx("span",{className:"exported-badge",children:"exported"})]},S.id))]}),o.jsx("div",{className:"pattern-detail",children:n?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"detail-header",children:[o.jsx("span",{className:"pattern-type-badge large",children:n.type}),o.jsx("h3",{children:n.name})]}),o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Location"}),o.jsxs("code",{children:[n.file,":",n.line,"-",n.endLine]})]}),n.signature&&o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Signature"}),o.jsx("pre",{children:n.signature})]}),n.description&&o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Description"}),o.jsx("p",{children:n.description})]}),((x=n.keywords)==null?void 0:x.length)>0&&o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Keywords"}),o.jsx("div",{className:"keywords-list",children:n.keywords.map((S,N)=>o.jsx("span",{className:"keyword-tag",children:S},N))})]}),o.jsxs("div",{className:"detail-section",children:[o.jsx("h4",{children:"Usage"}),o.jsxs("p",{children:["Imported in ",o.jsx("strong",{children:n.usageCount})," files"]})]})]}):o.jsxs("div",{className:"detail-placeholder",children:[o.jsx(Zt,{size:48}),o.jsx("p",{children:"Select a pattern to view details"})]})})]})]})},L2=()=>{var v,j,y,C,m;const[e,t]=k.useState(null),[n,r]=k.useState(""),[s,i]=k.useState(null),[a,l]=k.useState(!0),[u,c]=k.useState("visual"),d=async()=>{l(!0);try{const g=await(await fetch("/api/config")).text();r(g);const w=h(g);t(w)}catch(p){console.error("Failed to fetch config:",p)}try{const p=await fetch("/api/report-stats");if(p.ok){const g=await p.json();i(g)}}catch{}l(!1)},h=p=>{var g;try{const w=p.split(`
|
|
321
|
+
`),x={};let S=null,N=null;for(const P of w){if(P.startsWith("#")||!P.trim())continue;const D=P.search(/\S/),E=P.trim();if(D===0&&E.includes(":")){const[I]=E.split(":");S=I.trim(),N=null;const F=(g=E.split(":")[1])==null?void 0:g.trim();F&&F!=="{}"&&F!=="[]"?x[S]=isNaN(Number(F))?F:Number(F):x[S]={}}else if(D===2&&S&&E.includes(":")){const[I]=E.split(":");N=I.trim();const F=E.split(":").slice(1).join(":").trim();if(F&&F!=="{}"&&F!=="[]"){typeof x[S]!="object"&&(x[S]={});const ce=F==="true"?!0:F==="false"?!1:isNaN(Number(F))?F:Number(F);x[S][N]=ce}else typeof x[S]!="object"&&(x[S]={}),x[S][N]={}}else if(D===4&&S&&N&&E.includes(":")){const[I]=E.split(":"),F=E.split(":").slice(1).join(":").trim();typeof x[S][N]!="object"&&(x[S][N]={});const ce=F==="true"?!0:F==="false"?!1:isNaN(Number(F))?F:Number(F);x[S][N][I.trim()]=ce}}return x}catch{return{}}};k.useEffect(()=>{d()},[]);const f=(e==null?void 0:e.gates)||{};return o.jsxs("div",{className:"quality-gates",children:[o.jsxs("div",{className:"gates-header",children:[o.jsxs("div",{className:"gates-title",children:[o.jsx(Kr,{size:24}),o.jsx("h2",{children:"Quality Gates"}),(e==null?void 0:e.preset)&&o.jsx("span",{className:"preset-badge",children:e.preset})]}),o.jsxs("div",{className:"gates-actions",children:[o.jsxs("div",{className:"view-toggle",children:[o.jsxs("button",{className:u==="visual"?"active":"",onClick:()=>c("visual"),children:[o.jsx(Zt,{size:16})," Visual"]}),o.jsxs("button",{className:u==="raw"?"active":"",onClick:()=>c("raw"),children:[o.jsx(mt,{size:16})," YAML"]})]}),o.jsx("button",{className:"refresh-btn",onClick:d,disabled:a,children:o.jsx(rn,{size:16,className:a?"spinning":""})})]})]}),a?o.jsx("div",{className:"gates-loading",children:"Loading configuration..."}):u==="raw"?o.jsx("div",{className:"gates-raw",children:o.jsx("pre",{children:n})}):o.jsxs("div",{className:"gates-content",children:[o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(mt,{size:18}),o.jsx("h3",{children:"Code Quality"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Max File Lines",value:f.max_file_lines,icon:o.jsx(mt,{size:16})}),o.jsx(q,{label:"Forbid TODOs",value:f.forbid_todos,icon:f.forbid_todos?o.jsx(gs,{size:16}):o.jsx(yt,{size:16})}),o.jsx(q,{label:"Forbid FIXMEs",value:f.forbid_fixme,icon:f.forbid_fixme?o.jsx(gs,{size:16}):o.jsx(yt,{size:16})})]})]}),f.ast&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(z0,{size:18}),o.jsx("h3",{children:"AST Limits"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Complexity",value:f.ast.complexity}),o.jsx(q,{label:"Max Methods",value:f.ast.max_methods}),o.jsx(q,{label:"Max Params",value:f.ast.max_params}),o.jsx(q,{label:"Max Nesting",value:f.ast.max_nesting}),o.jsx(q,{label:"Max Function Lines",value:f.ast.max_function_lines}),o.jsx(q,{label:"Max Inheritance",value:f.ast.max_inheritance_depth})]})]}),f.safety&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(om,{size:18}),o.jsx("h3",{children:"File Guard"})]}),o.jsx("div",{className:"gate-grid",children:o.jsx(q,{label:"Max Files/Cycle",value:f.safety.max_files_changed_per_cycle})}),f.safety.protected_paths&&f.safety.protected_paths.length>0&&o.jsxs("div",{className:"protected-paths",children:[o.jsx("h4",{children:"Protected Paths"}),o.jsx("div",{className:"path-list",children:f.safety.protected_paths.map((p,g)=>o.jsx("span",{className:"path-tag",children:p},g))})]})]}),f.required_files&&f.required_files.length>0&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(wt,{size:18}),o.jsx("h3",{children:"Required Files"})]}),o.jsx("div",{className:"file-list",children:f.required_files.map((p,g)=>o.jsxs("div",{className:"file-item",children:[o.jsx(mt,{size:14}),o.jsx("span",{children:p})]},g))})]}),f.context&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(Ut,{size:18}),o.jsx("h3",{children:"Context Mining"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Enabled",value:f.context.enabled}),o.jsx(q,{label:"Sensitivity",value:f.context.sensitivity}),o.jsx(q,{label:"Mining Depth",value:f.context.mining_depth})]})]}),f.retry_loop_breaker&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(am,{size:18}),o.jsx("h3",{children:"Retry Loop Breaker"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Enabled",value:f.retry_loop_breaker.enabled}),o.jsx(q,{label:"Max Retries",value:f.retry_loop_breaker.max_retries})]})]}),o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(Ut,{size:18}),o.jsx("h3",{children:"AI-Native Gates"})]}),o.jsxs("div",{className:"gate-grid",children:[o.jsx(q,{label:"Duplication Drift",value:((v=f.duplication_drift)==null?void 0:v.enabled)??!0,icon:o.jsx(yt,{size:16})}),o.jsx(q,{label:"Hallucinated Imports",value:((j=f.hallucinated_imports)==null?void 0:j.enabled)??!0,icon:o.jsx(wt,{size:16})}),o.jsx(q,{label:"Error Handling",value:((y=f.inconsistent_error_handling)==null?void 0:y.enabled)??!0,icon:o.jsx(Kr,{size:16})}),o.jsx(q,{label:"Context Artifacts",value:((C=f.context_window_artifacts)==null?void 0:C.enabled)??!0,icon:o.jsx(Zt,{size:16})}),o.jsx(q,{label:"Async Safety",value:((m=f.promise_safety)==null?void 0:m.enabled)??!0,icon:o.jsx(Ut,{size:16})})]})]}),s&&o.jsxs("div",{className:"gate-section",children:[o.jsxs("div",{className:"section-header",children:[o.jsx(Kr,{size:18}),o.jsx("h3",{children:"Latest Scores"})]}),o.jsxs("div",{className:"gate-grid",children:[s.score!==void 0&&o.jsx(q,{label:"Overall Score",value:`${s.score}/100`}),s.ai_health_score!==void 0&&o.jsx(q,{label:"AI Health",value:`${s.ai_health_score}/100`,icon:o.jsx(Ut,{size:16})}),s.structural_score!==void 0&&o.jsx(q,{label:"Structural",value:`${s.structural_score}/100`,icon:o.jsx(Zt,{size:16})})]}),s.severity_breakdown&&o.jsxs("div",{className:"severity-breakdown",children:[o.jsx("h4",{children:"Severity Breakdown"}),o.jsx("div",{className:"gate-grid",children:Object.entries(s.severity_breakdown).filter(([,p])=>p>0).map(([p,g])=>o.jsx(q,{label:p.charAt(0).toUpperCase()+p.slice(1),value:g},p))})]}),s.provenance_breakdown&&o.jsxs("div",{className:"provenance-breakdown",children:[o.jsx("h4",{children:"Provenance Breakdown"}),o.jsx("div",{className:"gate-grid",children:Object.entries(s.provenance_breakdown).filter(([,p])=>p>0).map(([p,g])=>o.jsx(q,{label:p,value:g},p))})]})]})]})]})},q=({label:e,value:t,icon:n})=>{const r=typeof t=="boolean"?t?"Yes":"No":t??"N/A";return o.jsxs("div",{className:"gate-card",children:[n&&o.jsx("div",{className:"gate-icon",children:n}),o.jsxs("div",{className:"gate-info",children:[o.jsx("span",{className:"gate-value",children:r}),o.jsx("span",{className:"gate-label",children:e})]})]})},V2=({logs:e,onClearLogs:t,onSelectLog:n,selectedLog:r})=>{const[s,i]=k.useState(""),[a,l]=k.useState("all"),[u,c]=k.useState("all"),d=Fe.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=Fe.useMemo(()=>{const y=new Set;return d.forEach(C=>C.tool&&y.add(C.tool)),Array.from(y)},[d]),f=Fe.useMemo(()=>d.filter(y=>{var g;const C=!s||((g=y.tool)==null?void 0:g.toLowerCase().includes(s.toLowerCase()))||JSON.stringify(y.arguments||{}).toLowerCase().includes(s.toLowerCase()),m=a==="all"||y.status===a,p=u==="all"||y.tool===u;return C&&m&&p}),[d,s,a,u]),v=Fe.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 o.jsxs("div",{className:"audit-log",children:[o.jsxs("div",{className:"audit-header",children:[o.jsxs("div",{className:"audit-title",children:[o.jsx(kn,{size:24}),o.jsx("h2",{children:"Audit Trail"}),o.jsxs("span",{className:"log-count",children:[f.length," events"]})]}),o.jsxs("div",{className:"audit-actions",children:[o.jsxs("button",{className:"btn-secondary",onClick:t,children:[o.jsx(U0,{size:16})," Clear"]}),o.jsxs("button",{className:"btn-primary",onClick:j,children:[o.jsx(_0,{size:16})," Export"]})]})]}),o.jsxs("div",{className:"audit-stats",children:[o.jsxs("div",{className:"stat-pill",children:[o.jsx(kn,{size:14}),o.jsxs("span",{children:[v.total," Total"]})]}),o.jsxs("div",{className:"stat-pill success",children:[o.jsx(yt,{size:14}),o.jsxs("span",{children:[v.success," Success"]})]}),o.jsxs("div",{className:"stat-pill error",children:[o.jsx(gs,{size:14}),o.jsxs("span",{children:[v.error," Failed"]})]}),o.jsxs("div",{className:"stat-pill pending",children:[o.jsx(wt,{size:14}),o.jsxs("span",{children:[v.pending," Pending"]})]})]}),o.jsxs("div",{className:"audit-filters",children:[o.jsxs("div",{className:"search-box",children:[o.jsx(Nu,{size:16}),o.jsx("input",{type:"text",placeholder:"Search logs...",value:s,onChange:y=>i(y.target.value)})]}),o.jsxs("div",{className:"filter-box",children:[o.jsx(ku,{size:16}),o.jsxs("select",{value:a,onChange:y=>l(y.target.value),children:[o.jsx("option",{value:"all",children:"All Status"}),o.jsx("option",{value:"success",children:"Success"}),o.jsx("option",{value:"error",children:"Error"}),o.jsx("option",{value:"pending",children:"Pending"})]})]}),o.jsxs("div",{className:"filter-box",children:[o.jsx(Hi,{size:16}),o.jsxs("select",{value:u,onChange:y=>c(y.target.value),children:[o.jsx("option",{value:"all",children:"All Tools"}),h.map(y=>o.jsx("option",{value:y,children:y},y))]})]})]}),o.jsxs("div",{className:"audit-content",children:[o.jsx("div",{className:"log-list",children:f.length===0?o.jsxs("div",{className:"empty-state",children:[o.jsx(Hi,{size:48}),o.jsx("h3",{children:"No Interactions Detected"}),o.jsx("p",{children:"Rigour tool calls will appear here in real-time."})]}):f.map(y=>o.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:[o.jsxs("div",{className:"log-header",children:[o.jsx("span",{className:`status-dot ${y.status||"pending"}`}),o.jsx("span",{className:"log-tool",children:y.tool}),o.jsxs("span",{className:"log-time",children:[o.jsx(vs,{size:12}),new Date(y.timestamp).toLocaleTimeString()]}),y._rigour_report&&o.jsxs("span",{className:"report-badge",children:[o.jsx(L0,{size:12})," Report"]}),y.arbitrated&&o.jsx("span",{className:`arbitrated-badge ${y.decision}`,children:y.decision==="approve"?"Approved":"Rejected"}),o.jsx(nn,{size:14,className:"chevron"})]}),y.requestId&&o.jsxs("div",{className:"log-request-id",children:["ID: ",y.requestId.slice(0,12),"..."]})]},y.id))}),o.jsx("div",{className:"log-detail",children:r?o.jsx(z2,{log:r,onClose:()=>n(null)}):o.jsxs("div",{className:"detail-placeholder",children:[o.jsx(mt,{size:48}),o.jsx("p",{children:"Select a log entry to view details"})]})})]})]})},z2=({log:e,onClose:t})=>{var i,a,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 o.jsxs("div",{className:"log-detail-view",children:[o.jsxs("div",{className:"detail-header",children:[o.jsxs("div",{className:"detail-info",children:[o.jsxs("span",{className:`status-badge ${e.status||"pending"}`,children:[e.status==="success"?o.jsx(yt,{size:14}):e.status==="error"?o.jsx(gs,{size:14}):o.jsx(wt,{size:14}),e.status||"pending"]}),o.jsx("h3",{children:e.tool})]}),o.jsx("button",{className:"close-btn",onClick:t,children:o.jsx(Tu,{size:18})})]}),o.jsxs("div",{className:"detail-meta",children:[o.jsxs("div",{className:"meta-item",children:[o.jsx("span",{className:"meta-label",children:"Timestamp"}),o.jsx("span",{className:"meta-value",children:new Date(e.timestamp).toLocaleString()})]}),e.requestId&&o.jsxs("div",{className:"meta-item",children:[o.jsx("span",{className:"meta-label",children:"Request ID"}),o.jsx("span",{className:"meta-value mono",children:e.requestId})]})]}),n&&o.jsxs("div",{className:"detail-tabs",children:[o.jsx("button",{className:r==="report"?"active":"",onClick:()=>s("report"),children:e._rigour_report?"Verification Report":"Visualized Content"}),o.jsx("button",{className:r==="args"?"active":"",onClick:()=>s("args"),children:"Technical Arguments"})]}),o.jsx("div",{className:"detail-body",children:r==="args"?o.jsxs(o.Fragment,{children:[e.arguments&&o.jsxs("div",{className:"code-section",children:[o.jsx("h4",{children:"Arguments"}),o.jsx("pre",{children:JSON.stringify(e.arguments,null,2)})]}),e.error&&o.jsxs("div",{className:"error-section",children:[o.jsx("h4",{children:"Error"}),o.jsx("div",{className:"error-message",children:e.error})]})]}):o.jsx("div",{className:"verification-view",children:e.tool==="rigour_checkpoint"?o.jsxs("div",{className:"checkpoint-viz",children:[o.jsxs("div",{className:"viz-stats",children:[o.jsxs("div",{className:"viz-stat",children:[o.jsx("span",{className:"label",children:"Progress"}),o.jsxs("span",{className:"value",children:[((i=e.arguments)==null?void 0:i.progressPct)??0,"%"]})]}),o.jsxs("div",{className:"viz-stat",children:[o.jsx("span",{className:"label",children:"Quality"}),o.jsxs("span",{className:"value",style:{color:(((a=e.arguments)==null?void 0:a.qualityScore)??0)>=80?"#34d399":"#f87171"},children:[((l=e.arguments)==null?void 0:l.qualityScore)??0,"%"]})]})]}),o.jsxs("div",{className:"viz-summary",children:[o.jsx("h4",{children:"Summary of Work"}),o.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&&o.jsxs("div",{className:"viz-files",children:[o.jsx("h4",{children:"Files Changed"}),o.jsx("div",{className:"file-badges",children:e.arguments.filesChanged.map(f=>o.jsx("span",{className:"file-badge",children:f},f))})]})]}):e.tool==="rigour_agent_register"?o.jsxs("div",{className:"agent-viz",children:[o.jsx(kn,{size:32,className:"viz-icon"}),o.jsx("h3",{children:"Agent Scope Claims"}),o.jsxs("div",{className:"scope-box",children:[o.jsx("h4",{children:"Claimed Scope:"}),o.jsx("div",{className:"scope-list",children:(h=(d=e.arguments)==null?void 0:d.taskScope)==null?void 0:h.map(f=>o.jsx("code",{children:f},f))})]})]}):o.jsxs("div",{className:"code-section",children:[o.jsx("h4",{children:"Rigour Report"}),o.jsx("pre",{children:JSON.stringify(e._rigour_report,null,2)})]})})})]})};function O2({session:e}){if(!e||e.agents.length===0)return o.jsxs("div",{className:"empty-state",children:[o.jsx(dl,{size:48}),o.jsx("h3",{children:"No Active Agent Team"}),o.jsxs("p",{children:["When multiple agents register via ",o.jsx("code",{children:"rigour_agent_register"}),", they'll appear here."]}),o.jsxs("div",{className:"hint-box",children:[o.jsx("span",{children:"Supported Models:"}),o.jsxs("div",{className:"model-badges",children:[o.jsx("span",{className:"badge opus",children:"Opus 4.6"}),o.jsx("span",{className:"badge sonnet",children:"Sonnet 4.5"}),o.jsx("span",{className:"badge gpt",children:"GPT-5.3"}),o.jsx("span",{className:"badge codex",children:"Codex"})]})]})]});const t=r=>{switch(r){case"active":return o.jsx(Zo,{size:10,fill:"#34d399",stroke:"#34d399"});case"idle":return o.jsx(Zo,{size:10,fill:"#fbbf24",stroke:"#fbbf24"});case"completed":return o.jsx(yt,{size:14,color:"#34d399"});default:return o.jsx(Zo,{size:10})}},n=(r,s)=>s.some(i=>i.agentId===r.agentId?!1:r.taskScope.some(a=>i.taskScope.some(l=>l===a||a.startsWith(l)||l.startsWith(a))));return o.jsxs("div",{className:"agent-teams",children:[o.jsxs("div",{className:"panel-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(dl,{size:18}),o.jsx("span",{children:"Agent Team Session"})]}),o.jsx("div",{className:`session-status ${e.status}`,children:e.status.toUpperCase()})]}),o.jsxs("div",{className:"session-info",children:[o.jsx("span",{className:"session-id",children:e.sessionId}),o.jsxs("span",{className:"agent-count",children:[e.agents.length," agents"]})]}),o.jsx("div",{className:"agents-grid",children:e.agents.map(r=>o.jsxs("div",{className:`agent-card ${r.status} ${n(r,e.agents)?"has-conflict":""}`,children:[o.jsxs("div",{className:"agent-header",children:[o.jsxs("div",{className:"agent-id",children:[t(r.status),o.jsx("span",{children:r.agentId})]}),n(r,e.agents)&&o.jsxs("div",{className:"conflict-badge",children:[o.jsx(wt,{size:12}),o.jsx("span",{children:"Scope Conflict"})]})]}),o.jsxs("div",{className:"task-scope",children:[o.jsx("h4",{children:"Task Scope"}),o.jsx("ul",{children:r.taskScope.map((s,i)=>o.jsxs("li",{children:[o.jsx(vo,{size:12}),o.jsx("code",{children:s})]},i))})]}),o.jsxs("div",{className:"agent-meta",children:[o.jsxs("span",{children:["Registered: ",new Date(r.registeredAt).toLocaleTimeString()]}),r.lastCheckpoint&&o.jsxs("span",{children:["Last checkpoint: ",new Date(r.lastCheckpoint).toLocaleTimeString()]})]})]},r.agentId))})]})}function b2({checkpoints:e}){if(!e||e.length===0)return o.jsxs("div",{className:"empty-state",children:[o.jsx(cl,{size:48}),o.jsx("h3",{children:"No Checkpoints Yet"}),o.jsxs("p",{children:["Checkpoints will appear here as agents report progress via ",o.jsx("code",{children:"rigour_checkpoint"}),"."]}),o.jsx("div",{className:"hint-box",children:o.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,a=e[s].qualityScore;return a>i+5?o.jsx(lm,{size:14,color:"#34d399"}):a<i-5?o.jsx(Cu,{size:14,color:"#f87171"}):null},r=e.some((s,i)=>{if(i<2)return!1;const a=e.slice(Math.max(0,i-2),i),l=a.reduce((u,c)=>u+c.qualityScore,0)/a.length;return s.qualityScore<l-10});return o.jsxs("div",{className:"checkpoint-timeline",children:[o.jsxs("div",{className:"panel-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(cl,{size:18}),o.jsx("span",{children:"Checkpoint Timeline"})]}),o.jsxs("div",{className:"drift-visualization",children:[o.jsxs("svg",{width:"120",height:"30",viewBox:"0 0 120 30",className:"drift-sparkline",children:[o.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)=>o.jsx("circle",{cx:i/(e.length-1||1)*120,cy:30-s.qualityScore/100*30,r:"2",fill:t(s.qualityScore)},i))]}),o.jsx("span",{className:"drift-label",children:"Session Stability"})]}),r&&o.jsxs("div",{className:"drift-alert",children:[o.jsx(wt,{size:14}),o.jsx("span",{children:"Drift Detected"})]})]}),o.jsxs("div",{className:"timeline-container",children:[o.jsx("div",{className:"timeline-line"}),e.map((s,i)=>o.jsxs("div",{className:`checkpoint-entry ${s.warnings.length>0?"has-warnings":""}`,children:[o.jsx("div",{className:"checkpoint-marker",children:o.jsx("div",{className:"marker-dot",style:{backgroundColor:t(s.qualityScore)}})}),o.jsxs("div",{className:"checkpoint-content",children:[o.jsxs("div",{className:"checkpoint-header",children:[o.jsx("span",{className:"checkpoint-id",children:s.checkpointId}),o.jsx("span",{className:"checkpoint-time",children:new Date(s.timestamp).toLocaleTimeString()})]}),o.jsxs("div",{className:"checkpoint-stats",children:[o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"label",children:"Progress"}),o.jsx("div",{className:"progress-bar",children:o.jsx("div",{className:"progress-fill",style:{width:`${s.progressPct}%`}})}),o.jsxs("span",{className:"value",children:[s.progressPct,"%"]})]}),o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"label",children:"Quality"}),o.jsxs("span",{className:"value score",style:{color:t(s.qualityScore)},children:[s.qualityScore,"%",n(i)]})]}),o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"label",children:"Agent"}),o.jsx("span",{className:"value agent-id",children:s.agentId})]})]}),o.jsx("div",{className:"checkpoint-summary",children:o.jsx("p",{children:s.summary})}),s.filesChanged.length>0&&o.jsx("div",{className:"files-changed",children:o.jsxs("span",{className:"count",children:[s.filesChanged.length," files changed"]})}),s.warnings.length>0&&o.jsx("div",{className:"warnings",children:s.warnings.map((a,l)=>o.jsxs("div",{className:"warning-item",children:[o.jsx(wt,{size:12}),o.jsx("span",{children:a})]},l))})]})]},s.checkpointId))]})]})}const Gg={critical:"var(--status-error)",high:"#f97316",medium:"var(--status-warning)",low:"var(--accent-primary)",info:"var(--text-dim)"},F2={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"},$f={"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"]},I2=()=>{const[e,t]=k.useState(null),[n,r]=k.useState(!0),[s,i]=k.useState(new Set),[a,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 v=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($f).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($f).flat(),g=C.filter(x=>!p.includes(x.category||"")),w=e==null?void 0:e.deep;return o.jsxs("div",{className:"deep-analysis",children:[o.jsxs("div",{className:"deep-header",children:[o.jsxs("div",{className:"deep-title",children:[o.jsx(dr,{size:24}),o.jsx("h2",{children:"Deep Analysis"}),(w==null?void 0:w.tier)&&o.jsx("span",{className:"tier-badge",children:w.tier})]}),o.jsx("div",{className:"deep-actions",children:o.jsx("button",{className:"refresh-btn",onClick:f,disabled:n,children:o.jsx(rn,{size:16,className:n?"spinning":""})})})]}),n?o.jsx("div",{className:"deep-loading",children:"Loading deep analysis data..."}):!(w!=null&&w.enabled)&&y.length===0?o.jsxs("div",{className:"deep-empty",children:[o.jsx(dr,{size:48}),o.jsx("h3",{children:"Deep Analysis Not Yet Run"}),o.jsxs("p",{children:["Run ",o.jsx("code",{children:"rigour check --deep"})," to get LLM-powered code quality analysis with 40+ categories."]}),o.jsxs("div",{className:"empty-features",children:[o.jsxs("div",{className:"feature",children:[o.jsx(Kr,{size:16})," SOLID Principles"]}),o.jsxs("div",{className:"feature",children:[o.jsx(Zt,{size:16})," Design Patterns"]}),o.jsxs("div",{className:"feature",children:[o.jsx(Ut,{size:16})," Concurrency Safety"]}),o.jsxs("div",{className:"feature",children:[o.jsx($0,{size:16})," Architecture Quality"]})]})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"deep-stats-banner",children:[o.jsxs("div",{className:"stat-card",children:[o.jsx("span",{className:"stat-value",children:(w==null?void 0:w.findings_count)??y.length}),o.jsx("span",{className:"stat-label",children:"Findings"})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx("span",{className:"stat-value",children:(w==null?void 0:w.findings_verified)??y.filter(x=>x.verified).length}),o.jsx("span",{className:"stat-label",children:"Verified"})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx("span",{className:"stat-value",children:(w==null?void 0:w.files_analyzed)??"—"}),o.jsx("span",{className:"stat-label",children:"Files Analyzed"})]}),o.jsxs("div",{className:"stat-card",children:[o.jsx("span",{className:"stat-value",children:(w==null?void 0:w.model)||"—"}),o.jsx("span",{className:"stat-label",children:"Model"})]}),(w==null?void 0:w.total_ms)&&o.jsxs("div",{className:"stat-card",children:[o.jsxs("span",{className:"stat-value",children:[(w.total_ms/1e3).toFixed(1),"s"]}),o.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)&&o.jsxs("div",{className:"deep-scores",children:[(e==null?void 0:e.score)!==void 0&&o.jsx(ga,{label:"Overall",score:e.score}),(e==null?void 0:e.ai_health_score)!==void 0&&o.jsx(ga,{label:"AI Health",score:e.ai_health_score}),(e==null?void 0:e.structural_score)!==void 0&&o.jsx(ga,{label:"Structural",score:e.structural_score})]}),o.jsxs("div",{className:"deep-filters",children:[o.jsxs("div",{className:"filter-group",children:[o.jsx(ku,{size:14}),o.jsxs("select",{value:u,onChange:x=>c(x.target.value),className:"filter-select",children:[o.jsx("option",{value:"all",children:"All Severities"}),o.jsx("option",{value:"critical",children:"Critical"}),o.jsx("option",{value:"high",children:"High"}),o.jsx("option",{value:"medium",children:"Medium"}),o.jsx("option",{value:"low",children:"Low"})]})]}),o.jsxs("button",{className:`filter-toggle ${d?"active":""}`,onClick:()=>h(!d),children:[o.jsx(yt,{size:14}),"Verified Only"]}),o.jsxs("span",{className:"filter-count",children:[C.length," finding",C.length!==1?"s":""]})]}),o.jsxs("div",{className:"deep-findings",children:[m.map(({group:x,findings:S})=>o.jsxs("div",{className:"finding-group",children:[o.jsxs("button",{className:"group-header",onClick:()=>v(x),children:[s.has(x)?o.jsx(ms,{size:16}):o.jsx(nn,{size:16}),o.jsx("span",{className:"group-name",children:x}),o.jsx("span",{className:"group-count",children:S.length}),o.jsx("div",{className:"group-severity-dots",children:["critical","high","medium","low"].map(N=>{const P=S.filter(D=>D.severity===N).length;return P>0?o.jsx("span",{className:"sev-dot",style:{backgroundColor:Gg[N]},title:`${P} ${N}`},N):null})})]}),s.has(x)&&o.jsx("div",{className:"group-findings",children:S.map(N=>o.jsx(Uf,{finding:N,expanded:a.has(N.id),onToggle:()=>j(N.id)},N.id))})]},x)),g.length>0&&o.jsxs("div",{className:"finding-group",children:[o.jsxs("button",{className:"group-header",onClick:()=>v("_other"),children:[s.has("_other")?o.jsx(ms,{size:16}):o.jsx(nn,{size:16}),o.jsx("span",{className:"group-name",children:"Other Findings"}),o.jsx("span",{className:"group-count",children:g.length})]}),s.has("_other")&&o.jsx("div",{className:"group-findings",children:g.map(x=>o.jsx(Uf,{finding:x,expanded:a.has(x.id),onToggle:()=>j(x.id)},x.id))})]}),C.length===0&&o.jsxs("div",{className:"no-findings",children:[o.jsx(yt,{size:32}),o.jsx("p",{children:"No deep analysis findings match the current filters."})]})]})]})]})},Uf=({finding:e,expanded:t,onToggle:n})=>{const r=Gg[e.severity||"info"],s=F2[e.category||""]||e.category||"Unknown";return o.jsxs("div",{className:`finding-card severity-${e.severity||"info"}`,children:[o.jsxs("button",{className:"finding-header",onClick:n,children:[o.jsxs("div",{className:"finding-left",children:[o.jsx("span",{className:"severity-indicator",style:{backgroundColor:r}}),o.jsx("span",{className:"finding-title",children:e.title})]}),o.jsxs("div",{className:"finding-right",children:[o.jsx("span",{className:"category-tag",children:s}),e.verified&&o.jsxs("span",{className:"verified-badge",title:"AST-verified",children:[o.jsx(yt,{size:12})," Verified"]}),e.confidence!==void 0&&o.jsxs("span",{className:"confidence-badge",title:`Confidence: ${(e.confidence*100).toFixed(0)}%`,children:[(e.confidence*100).toFixed(0),"%"]}),o.jsx("span",{className:"severity-badge",style:{color:r},children:e.severity||"info"}),t?o.jsx(ms,{size:14}):o.jsx(nn,{size:14})]})]}),t&&o.jsxs("div",{className:"finding-body",children:[o.jsx("p",{className:"finding-details",children:e.details}),e.hint&&o.jsxs("div",{className:"finding-hint",children:[o.jsx(Ut,{size:14}),o.jsx("span",{children:e.hint})]}),e.files&&e.files.length>0&&o.jsx("div",{className:"finding-files",children:e.files.map((i,a)=>o.jsxs("span",{className:"file-tag",children:[o.jsx(mt,{size:12}),i,e.line&&`:${e.line}`,e.endLine&&`-${e.endLine}`]},a))}),o.jsx("div",{className:"finding-meta",children:e.source&&o.jsxs("span",{className:"meta-tag",children:["Source: ",e.source]})})]})]})},ga=({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 o.jsxs("div",{className:"score-ring",children:[o.jsxs("svg",{width:"88",height:"88",viewBox:"0 0 88 88",children:[o.jsx("circle",{cx:"44",cy:"44",r:"36",fill:"none",stroke:"var(--border-dim)",strokeWidth:"6"}),o.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"}}),o.jsx("text",{x:"44",y:"42",textAnchor:"middle",fill:"var(--text-main)",fontSize:"18",fontWeight:"700",children:t}),o.jsx("text",{x:"44",y:"56",textAnchor:"middle",fill:"var(--text-dim)",fontSize:"9",children:"/100"})]}),o.jsx("span",{className:"score-label",children:e})]})},Qg={improving:{color:"#34d399",icon:lm,label:"Improving"},stable:{color:"var(--accent-primary)",icon:F0,label:"Stable"},degrading:{color:"#f87171",icon:Cu,label:"Degrading"}};function qg({direction:e,zScore:t}){const n=Qg[e],r=n.icon;return o.jsxs("span",{className:"direction-badge",style:{color:n.color,borderColor:n.color},children:[o.jsx(r,{size:14}),o.jsx("span",{children:n.label}),t!==void 0&&o.jsxs("span",{className:"z-score",children:["Z=",t.toFixed(1)]})]})}function ri({score:e,label:t,size:n=80}){const r=(n-8)/2,s=2*Math.PI*r,i=e/100*s,a=e>=80?"#34d399":e>=60?"#fbbf24":"#f87171";return o.jsxs("div",{className:"score-ring",style:{width:n,height:n+20},children:[o.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,children:[o.jsx("circle",{cx:n/2,cy:n/2,r,fill:"none",stroke:"var(--bg-tertiary)",strokeWidth:"6"}),o.jsx("circle",{cx:n/2,cy:n/2,r,fill:"none",stroke:a,strokeWidth:"6",strokeDasharray:`${i} ${s-i}`,strokeDashoffset:s/4,strokeLinecap:"round",style:{transition:"stroke-dasharray 0.8s ease"}}),o.jsx("text",{x:n/2,y:n/2,textAnchor:"middle",dominantBaseline:"central",fill:"var(--text-primary)",fontSize:"16",fontWeight:"bold",children:Math.round(e)})]}),o.jsx("span",{className:"ring-label",children:t})]})}function B2({series:e,direction:t}){if(e.length<2)return null;const n=200,r=50,s=4,i=e.map(j=>j.ewma),a=Math.min(...i)-5,u=Math.max(...i)+5-a||1,c=e.map((j,y)=>{const C=s+y/(e.length-1)*(n-2*s),m=r-s-(j.ewma-a)/u*(r-2*s);return`${C},${m}`}),d=Qg[t].color,h=s,f=s+(e.length-1)/(e.length-1)*(n-2*s),v=`M ${c[0]} L ${c.join(" L ")} L ${f},${r} L ${h},${r} Z`;return o.jsxs("svg",{width:n,height:r,className:"ewma-sparkline",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:`grad-${t}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[o.jsx("stop",{offset:"0%",stopColor:d,stopOpacity:"0.3"}),o.jsx("stop",{offset:"100%",stopColor:d,stopOpacity:"0.02"})]})}),o.jsx("path",{d:v,fill:`url(#grad-${t})`}),o.jsx("polyline",{points:c.join(" "),fill:"none",stroke:d,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("circle",{cx:parseFloat(c[c.length-1].split(",")[0]),cy:parseFloat(c[c.length-1].split(",")[1]),r:"3",fill:d})]})}function si({name:e,icon:t,stream:n}){return o.jsxs("div",{className:"stream-card",children:[o.jsxs("div",{className:"stream-header",children:[o.jsxs("div",{className:"stream-name",children:[o.jsx(t,{size:16}),o.jsx("span",{children:e})]}),o.jsx(qg,{direction:n.direction,zScore:n.zScore})]}),o.jsxs("div",{className:"stream-body",children:[o.jsx(B2,{series:n.series,direction:n.direction}),o.jsxs("div",{className:"stream-stats",children:[o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"stat-label",children:"Current EWMA"}),o.jsx("span",{className:"stat-value",children:n.currentEWMA.toFixed(1)})]}),o.jsxs("div",{className:"stat",children:[o.jsx("span",{className:"stat-label",children:"Historical Avg"}),o.jsx("span",{className:"stat-value",children:n.historicalAvg.toFixed(1)})]})]})]})]})}function $2({monthly:e}){const[t,n]=k.useState(!0);return e.length===0?null:o.jsxs("div",{className:"monthly-section",children:[o.jsxs("button",{className:"section-toggle",onClick:()=>n(!t),children:[t?o.jsx(ms,{size:16}):o.jsx(nn,{size:16}),o.jsx(rm,{size:16}),o.jsx("span",{children:"Monthly Breakdown"})]}),t&&o.jsxs("table",{className:"monthly-table",children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Month"}),o.jsx("th",{children:"Score"}),o.jsx("th",{children:"AI Health"}),o.jsx("th",{children:"Structural"}),o.jsx("th",{children:"Scans"}),o.jsx("th",{children:"AI Drift"}),o.jsx("th",{children:"Security"})]})}),o.jsx("tbody",{children:e.slice().reverse().map(r=>{const s=r.avgScore>=80?"#34d399":r.avgScore>=60?"#fbbf24":"#f87171";return o.jsxs("tr",{children:[o.jsx("td",{className:"month-cell",children:r.month}),o.jsx("td",{style:{color:s,fontWeight:600},children:r.avgScore.toFixed(0)}),o.jsx("td",{children:r.avgAiHealth.toFixed(0)}),o.jsx("td",{children:r.avgStructural.toFixed(0)}),o.jsx("td",{className:"dim",children:r.scanCount}),o.jsx("td",{className:"dim",children:r.provenanceBreakdown.aiDrift}),o.jsx("td",{className:"dim",children:r.provenanceBreakdown.security})]},r.month)})})]})]})}function U2(){const[e,t]=k.useState(null),[n,r]=k.useState(!0),[s,i]=k.useState(null),a=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(()=>{a()},[]),n?o.jsxs("div",{className:"empty-state",children:[o.jsx(rn,{size:48,className:"spin"}),o.jsx("h3",{children:"Analyzing Temporal Drift..."}),o.jsx("p",{children:"Reading scan history from SQLite brain."})]}):s?o.jsxs("div",{className:"empty-state",children:[o.jsx(wt,{size:48}),o.jsx("h3",{children:"Drift Analysis Unavailable"}),o.jsx("p",{children:s}),o.jsx("button",{className:"retry-btn",onClick:a,children:"Retry"})]}):e?o.jsxs("div",{className:"temporal-drift",children:[o.jsxs("div",{className:"panel-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(kn,{size:18}),o.jsx("span",{children:"Temporal Drift Engine"}),o.jsx("span",{className:"badge",children:"v5 EWMA"})]}),o.jsx("button",{className:"refresh-btn",onClick:a,title:"Refresh",children:o.jsx(rn,{size:16})})]}),o.jsxs("div",{className:`drift-banner drift-${e.overallDirection}`,children:[o.jsxs("div",{className:"banner-main",children:[o.jsx(qg,{direction:e.overallDirection,zScore:e.overallZScore}),o.jsx("span",{className:"banner-repo",children:e.repo}),o.jsxs("span",{className:"banner-meta",children:[e.totalScans," scans over ",e.timeSpanDays," days"]})]}),e.latestScanAnomaly.isAnomaly&&o.jsxs("div",{className:"anomaly-alert",children:[o.jsx(wt,{size:14}),o.jsx("span",{children:e.latestScanAnomaly.message})]})]}),o.jsxs("div",{className:"score-rings-row",children:[o.jsx(ri,{score:e.streams.overall.currentEWMA,label:"Overall"}),o.jsx(ri,{score:e.streams.aiDrift.currentEWMA,label:"AI Health"}),o.jsx(ri,{score:e.streams.structural.currentEWMA,label:"Structural"}),o.jsx(ri,{score:e.streams.security.currentEWMA,label:"Security"})]}),o.jsxs("div",{className:"streams-grid",children:[o.jsx(si,{name:"AI Drift",icon:dr,stream:e.streams.aiDrift}),o.jsx(si,{name:"Structural",icon:Ut,stream:e.streams.structural}),o.jsx(si,{name:"Security",icon:Kr,stream:e.streams.security}),o.jsx(si,{name:"Overall",icon:kn,stream:e.streams.overall})]}),o.jsx($2,{monthly:e.monthly}),o.jsxs("div",{className:"narrative-section",children:[o.jsxs("div",{className:"narrative-header",children:[o.jsx(vs,{size:16}),o.jsx("span",{children:"Analysis Narrative"})]}),o.jsx("pre",{className:"narrative-text",children:e.narrative})]})]}):o.jsxs("div",{className:"empty-state",children:[o.jsx(kn,{size:48}),o.jsx("h3",{children:"Not Enough Data"}),o.jsxs("p",{children:["Run at least 3 scans with ",o.jsx("code",{children:"rigour check"})," to see temporal drift analysis."]}),o.jsx("div",{className:"hint-box",children:o.jsx("span",{children:"Drift detection uses EWMA + Z-score anomaly detection across per-provenance streams."})})]})}function W2(){var ze,dt,dn,ac;const[e,t]=k.useState(null),[n,r]=k.useState(null),[s,i]=k.useState(null),[a,l]=k.useState(null),[u,c]=k.useState(null),[d,h]=k.useState(null),[f,v]=k.useState("services/task"),[j,y]=k.useState(""),[C,m]=k.useState(null),[p,g]=k.useState(""),[w,x]=k.useState(!1),[S,N]=k.useState(null),[P,D]=k.useState(!0),E=async()=>{D(!0);try{const[K,Ge,Yg,Xg,Zg,Co]=await Promise.all([fetch("/api/context-stats").then(nt=>nt.json()),fetch("/api/task-cost").then(nt=>nt.json()),fetch("/api/cache-stats").then(nt=>nt.json()),fetch("/api/context-scope").then(nt=>nt.json()),fetch("/api/checkpoint-metrics").then(nt=>nt.json()),fetch("/api/cursor-api-key/status").then(nt=>nt.json())]);t(K),r(Ge),i(Yg),l(Xg),c(Zg),x(!!(Co!=null&&Co.configured))}catch(K){console.error("Failed to fetch cost & context telemetry",K)}finally{D(!1)}};k.useEffect(()=>{E()},[]);const I=async()=>{if(f)try{const Ge=await(await fetch(`/api/context-explain?target=${encodeURIComponent(f)}`)).json();h(Ge)}catch(K){console.error("Failed to get context explanation",K)}},F=async()=>{if(j.trim())try{const Ge=await(await fetch("/api/import-cursor-usage",{method:"POST",headers:{"Content-Type":"text/plain"},body:j})).json();Ge.success?(m(`Successfully imported ${Ge.importedCount} usage records!`),y(""),E()):m(`Import failed: ${Ge.error}`)}catch(K){m(`Import failed: ${K.message}`)}},ce=async()=>{if(p.trim())try{const Ge=await(await fetch("/api/cursor-api-key",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:p.trim()})})).json();Ge.success?(x(!0),g(""),N("Cursor Admin API key saved."),E()):N(`Save failed: ${Ge.error}`)}catch(K){N(`Save failed: ${K.message}`)}},J=K=>K?K>=1e6?`${(K/1e6).toFixed(2)}M`:K>=1e3?`${(K/1e3).toFixed(1)}K`:K.toString():"0",V=(e==null?void 0:e.candidateTokens)??0,$=(e==null?void 0:e.returnedTokens)??0,U=(e==null?void 0:e.potentialAvoidedTokens)??0,T=V>0?((V-$)/V*100).toFixed(1):"0.0",A=s!=null&&s.hitRate?Math.round(s.hitRate*100):0,L=((ze=n==null?void 0:n.actual)==null?void 0:ze.costUsd)??0,_=((dt=n==null?void 0:n.estimated)==null?void 0:dt.estimatedCostAvoidedUsd)??0,z=((dn=n==null?void 0:n.actual)==null?void 0:dn.inputTokens)??0,ie=((ac=n==null?void 0:n.actual)==null?void 0:ac.source)||"No usage data",G=((e==null?void 0:e.retrievals)??0)>0||z>0||((s==null?void 0:s.exactCacheHits)??0)+((s==null?void 0:s.semanticCacheHits)??0)+((s==null?void 0:s.partialCacheHits)??0)+((s==null?void 0:s.cacheMisses)??0)>0||((u==null?void 0:u.checkpointCount)??0)>0;return o.jsxs("div",{className:"cost-context-view space-y-6",children:[o.jsxs("div",{className:"flex items-center justify-between border-b border-border pb-4",children:[o.jsxs("div",{children:[o.jsxs("h2",{className:"text-xl font-bold flex items-center gap-2 text-primary",children:[o.jsx(Ut,{size:22,className:"text-amber-400"}),"Token Savings & Context Efficiency Telemetry"]}),o.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Two-layer context tracking: Exact observed Cursor usage & Rigour-measured avoided context"})]}),o.jsxs("button",{onClick:E,className:"px-3 py-1.5 bg-secondary text-secondary-foreground rounded-md flex items-center gap-2 hover:bg-secondary/80 text-sm transition",children:[o.jsx(rn,{size:14,className:P?"animate-spin":""})," Refresh"]})]}),!G&&!P&&o.jsxs("div",{className:"p-4 bg-amber-500/10 border border-amber-500/30 rounded-lg flex items-start gap-3",children:[o.jsx(sm,{size:20,className:"text-amber-400 mt-0.5 shrink-0"}),o.jsxs("div",{className:"text-sm",children:[o.jsx("p",{className:"font-semibold text-amber-300",children:"No telemetry recorded yet"}),o.jsx("p",{className:"text-muted-foreground mt-1",children:"Use Rigour MCP tools (rigour_context_stats, rigour_checkpoint, rigour_recall) or import Cursor usage data below. Metrics will show real values once agents interact with the project."})]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[o.jsxs(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"p-4 bg-card border border-border rounded-lg shadow-sm",children:[o.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Actual Model Tokens"}),o.jsx("div",{className:"text-2xl font-bold text-foreground mt-1",children:J(z)}),o.jsxs("div",{className:"text-xs text-emerald-400 mt-1",children:["Observed via ",ie]})]}),o.jsxs(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"p-4 bg-card border border-border rounded-lg shadow-sm",children:[o.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Potential Context Avoided"}),o.jsx("div",{className:"text-2xl font-bold text-amber-400 mt-1",children:J(U)}),o.jsxs("div",{className:"text-xs text-amber-300 mt-1",children:["Reduction Ratio: ",T,"%"]})]}),o.jsxs(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},className:"p-4 bg-card border border-border rounded-lg shadow-sm",children:[o.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Cache Hit Rate"}),o.jsxs("div",{className:"text-2xl font-bold text-cyan-400 mt-1",children:[A,"%"]}),o.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"across static & semantic layers"})]}),o.jsxs(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.3},className:"p-4 bg-card border border-border rounded-lg shadow-sm",children:[o.jsx("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:"Actual vs Avoided Cost"}),o.jsxs("div",{className:"text-2xl font-bold text-emerald-400 mt-1",children:["$",L.toFixed(2)," / ",o.jsxs("span",{className:"text-amber-400",children:["$",_.toFixed(2)]})]}),o.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:"Actual Spend / Est. Cost Avoided"})]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(Zt,{size:18,className:"text-cyan-400"})," A. Retrieval Efficiency"]}),o.jsxs("div",{className:"space-y-2 text-sm",children:[o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Context Candidates Scanned"}),o.jsxs("span",{className:"font-mono text-foreground",children:[J(V)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Context Returned"}),o.jsxs("span",{className:"font-mono text-cyan-400",children:[J($)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Potential Context Avoided"}),o.jsxs("span",{className:"font-mono text-amber-400",children:[J(U)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1",children:[o.jsx("span",{className:"text-muted-foreground",children:"Context Reduction Ratio"}),o.jsxs("span",{className:"font-semibold text-emerald-400",children:[T,"%"]})]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(Su,{size:18,className:"text-emerald-400"})," B. Cache Efficiency (4-Layer Engine)"]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-3 text-xs",children:[o.jsxs("div",{className:"p-2 bg-background rounded border border-border",children:[o.jsx("div",{className:"text-muted-foreground",children:"Exact Cache Hits"}),o.jsx("div",{className:"text-base font-bold text-emerald-400",children:(s==null?void 0:s.exactCacheHits)??0})]}),o.jsxs("div",{className:"p-2 bg-background rounded border border-border",children:[o.jsx("div",{className:"text-muted-foreground",children:"Semantic Cache Hits"}),o.jsx("div",{className:"text-base font-bold text-cyan-400",children:(s==null?void 0:s.semanticCacheHits)??0})]}),o.jsxs("div",{className:"p-2 bg-background rounded border border-border",children:[o.jsx("div",{className:"text-muted-foreground",children:"Partial Cache Hits"}),o.jsx("div",{className:"text-base font-bold text-amber-400",children:(s==null?void 0:s.partialCacheHits)??0})]}),o.jsxs("div",{className:"p-2 bg-background rounded border border-border",children:[o.jsx("div",{className:"text-muted-foreground",children:"Cache Misses"}),o.jsx("div",{className:"text-base font-bold text-rose-400",children:(s==null?void 0:s.cacheMisses)??0})]})]}),o.jsxs("div",{className:"flex justify-between text-xs pt-1 border-t border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Tokens Served from Cache"}),o.jsxs("span",{className:"font-mono text-emerald-400",children:[J((s==null?void 0:s.tokensServedFromCache)??0)," tokens"]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(vi,{size:18,className:"text-purple-400"})," C & D. Duplication & Overhead Prevention"]}),o.jsxs("div",{className:"space-y-2 text-sm",children:[o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Repeated File Reads Prevented"}),o.jsxs("span",{className:"font-mono text-emerald-400",children:[(e==null?void 0:e.repeatedReadsPrevented)??0," reads"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Overlapping Agent Scopes Resolved"}),o.jsxs("span",{className:"font-mono text-cyan-400",children:[(a==null?void 0:a.overlappingScopesResolved)??0," scopes"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Always-On Rule & MCP Tokens"}),o.jsxs("span",{className:"font-mono text-foreground",children:[J((a==null?void 0:a.alwaysOnRuleTokens)??0)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1",children:[o.jsx("span",{className:"text-muted-foreground",children:"Unused Tools Filtered"}),o.jsxs("span",{className:"font-mono text-purple-400",children:[(a==null?void 0:a.unusedToolsFiltered)??0," schema tools hidden"]})]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(im,{size:18,className:"text-amber-400"})," E & F. Checkpoint Compression & Cost Audit"]}),o.jsxs("div",{className:"space-y-2 text-sm",children:[o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Raw Session State"}),o.jsxs("span",{className:"font-mono text-foreground",children:[J((u==null?void 0:u.rawStateTokens)??0)," tokens"]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Checkpoint Packet Size"}),o.jsxs("span",{className:"font-mono text-emerald-400",children:[J((u==null?void 0:u.checkpointTokens)??0)," tokens",((u==null?void 0:u.compressionRatio)??0)>0?` (${u==null?void 0:u.compressionRatio}× compression)`:""]})]}),o.jsxs("div",{className:"flex justify-between py-1 border-b border-border/50",children:[o.jsx("span",{className:"text-muted-foreground",children:"Verified Cursor Cost"}),o.jsxs("span",{className:"font-mono text-emerald-400",children:["$",L.toFixed(2)," USD"]})]}),o.jsxs("div",{className:"flex justify-between py-1",children:[o.jsx("span",{className:"text-muted-foreground",children:"Estimated Avoided Spend"}),o.jsxs("span",{className:"font-mono text-amber-400 font-bold",children:["$",_.toFixed(2)," USD"]})]})]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(A0,{size:18,className:"text-cyan-400"})," Auditable Context Explainability (rigour_context_explain)"]}),o.jsxs("div",{className:"flex gap-2 mb-4",children:[o.jsx("input",{type:"text",value:f,onChange:K=>v(K.target.value),placeholder:"Enter file, service, or query target (e.g. services/task)",className:"flex-1 px-3 py-2 bg-background border border-border rounded-md text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-primary"}),o.jsx("button",{onClick:I,className:"px-4 py-2 bg-primary text-primary-foreground text-sm rounded-md hover:bg-primary/90 font-medium",children:"Explain Context"})]}),d&&o.jsxs(Te.div,{initial:{opacity:0},animate:{opacity:1},className:"p-4 bg-background border border-border rounded-md text-xs space-y-2",children:[o.jsxs("div",{className:"flex justify-between font-mono",children:[o.jsxs("span",{className:"text-muted-foreground",children:["Target: ",o.jsx("strong",{className:"text-foreground",children:d.fileOrService})]}),o.jsxs("span",{className:d.status==="included"?"text-emerald-400 font-bold":"text-rose-400 font-bold",children:["[",d.status.toUpperCase(),"]"]})]}),o.jsxs("div",{className:"text-muted-foreground",children:["Reason: ",o.jsx("span",{className:"text-foreground",children:d.reason})]}),o.jsxs("div",{className:"text-muted-foreground",children:["Cache Status: ",o.jsx("span",{className:"text-cyan-400",children:d.cacheStatus})]}),d.priorAgentRequests&&d.priorAgentRequests.length>0&&o.jsxs("div",{children:[o.jsx("div",{className:"text-muted-foreground mb-1",children:"Prior Agent Interactions:"}),o.jsx("ul",{className:"list-disc pl-4 space-y-1 text-foreground font-mono",children:d.priorAgentRequests.map((K,Ge)=>o.jsx("li",{children:K},Ge))})]})]})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(b0,{size:18,className:"text-cyan-400"})," Cursor Admin API Key"]}),o.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:["Optional: save your Cursor Admin API key to enable verified usage sync on refresh.",w?" Key is configured.":" No key configured yet."]}),o.jsxs("div",{className:"flex gap-2 mb-2",children:[o.jsx("input",{type:"password",value:p,onChange:K=>g(K.target.value),placeholder:"Cursor Admin API key",className:"flex-1 px-3 py-2 bg-background border border-border rounded-md text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-primary"}),o.jsx("button",{onClick:ce,className:"px-4 py-2 bg-primary text-primary-foreground text-sm rounded-md hover:bg-primary/90 font-medium",children:"Save Key"})]}),S&&o.jsx("span",{className:"text-xs font-semibold text-emerald-400",children:S})]}),o.jsxs("div",{className:"p-5 bg-card border border-border rounded-lg shadow-sm",children:[o.jsxs("h3",{className:"text-md font-semibold text-foreground flex items-center gap-2 mb-3",children:[o.jsx(W0,{size:18,className:"text-amber-400"})," Import Cursor Daily Spend / Admin Usage"]}),o.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Paste CSV or JSON exported from Cursor Dashboard or Admin API to reconcile verified model usage."}),o.jsx("textarea",{rows:4,value:j,onChange:K=>y(K.target.value),placeholder:`Date,Model,Input Tokens,Output Tokens,Cost
|
|
322
|
+
2026-08-05,claude-3-5-sonnet,510000,62000,4.83`,className:"w-full p-3 bg-background border border-border rounded-md font-mono text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary mb-3"}),o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("button",{onClick:F,className:"px-4 py-2 bg-amber-500 text-black text-sm rounded-md font-semibold hover:bg-amber-400 transition",children:"Import Usage Data"}),C&&o.jsx("span",{className:"text-xs font-semibold text-emerald-400",children:C})]})]})]})}function H2(){var J,V,$,U;const[e,t]=k.useState(()=>localStorage.getItem("rigour-theme")||"dark"),[n,r]=k.useState("memory"),[s,i]=k.useState([]),[a,l]=k.useState(null),[u,c]=k.useState(null),[d,h]=k.useState(!1),[f,v]=k.useState([]),[j,y]=k.useState(null);Fe.useEffect(()=>{const T=new EventSource("/api/events");return T.onmessage=A=>{try{const L=JSON.parse(A.data);i(_=>[L,..._].slice(0,100))}catch(L){console.error("Failed to parse event",L)}},fetch("/api/tree").then(A=>A.json()).then(v).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(""),[g,w]=k.useState({}),[x,S]=k.useState({}),[N,P]=k.useState(null),[D,E]=k.useState(null);k.useEffect(()=>{(async()=>{try{const[A,L,_,z,ie]=await Promise.all([fetch("/api/config").then(G=>G.ok?G.text():""),fetch("/api/memory").then(G=>G.json()),fetch("/api/index-stats").then(G=>G.json()),fetch("/api/agents").then(G=>G.json()),fetch("/api/checkpoints").then(G=>G.json())]);p(A),w(L),S(_),P(z),E(ie)}catch(A){console.error("Failed to fetch meta data",A)}})()},[]);const I=async T=>{try{const A=T.replace(/\s*\(\d+\s*lines\)$/,""),_=await(await fetch(`/api/file?path=${encodeURIComponent(A)}`)).text();l({filename:A,original:_,modified:_})}catch(A){console.error("Failed to fetch file content",A)}},F=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(L=>(L.requestId||L.id)===(u.requestId||u.id)?{...L,status:T==="approve"?"success":"error",arbitrated:!0,decision:T}:L)),h(!1),c(null)}catch(A){console.error("Arbitration failed",A)}},ce=[{id:"audit",label:"Audit Log",icon:Hi},{id:"gates",label:"Quality Gates",icon:vi},{id:"deep",label:"Deep Analysis",icon:dr},{id:"patterns",label:"Pattern Index",icon:Su},{id:"memory",label:"Memory Bank",icon:R0},{id:"drift",label:"Temporal Drift",icon:Cu},{id:"agents",label:"Agent Teams",icon:dl},{id:"checkpoints",label:"Checkpoints",icon:cl},{id:"cost",label:"Cost & Context",icon:im}];return o.jsxs("div",{className:"studio",children:[o.jsxs("aside",{className:"sidebar",children:[o.jsxs("div",{className:"brand",children:[o.jsx("div",{className:"logo-icon",children:o.jsx(vi,{size:18})}),o.jsx("span",{children:"Rigour Studio"}),o.jsxs("div",{className:"version-pill",children:["v",(j==null?void 0:j.version)||"2.13"]})]}),o.jsx("nav",{children:ce.map(T=>o.jsxs("button",{className:`nav-item ${n===T.id?"active":""}`,onClick:()=>r(T.id),children:[o.jsx(T.icon,{size:18}),o.jsx("span",{children:T.label}),n===T.id&&o.jsx(Te.div,{layoutId:"nav-glow",className:"nav-glow"})]},T.id))}),o.jsxs("div",{className:"sidebar-footer",children:[o.jsxs("div",{className:"trust-indicator",children:[o.jsx(om,{size:14}),o.jsx("span",{children:"Local Governance"})]}),o.jsx("button",{className:"footer-item",children:o.jsx(am,{size:18})}),o.jsx("button",{className:"footer-item",children:o.jsx(O0,{size:18})})]})]}),o.jsxs("main",{className:"main-content",children:[o.jsxs("header",{children:[o.jsx("div",{className:"header-left",children:j&&o.jsxs("div",{className:"project-identity",children:[o.jsx(vo,{size:14,className:"folder-icon"}),o.jsx("span",{className:"project-name",children:j.name}),o.jsx("span",{className:"project-path",children:j.path})]})}),o.jsxs("div",{className:"header-right",children:[o.jsxs("div",{className:"connection-status",children:[o.jsxs("div",{className:"status-indicator",children:[o.jsx("div",{className:"pulse-emitter"}),o.jsx("span",{children:"LIVE"})]}),o.jsx("div",{className:"v-divider"}),o.jsxs("span",{children:["v",(j==null?void 0:j.version)||"0.0.0"]})]}),o.jsx("button",{className:"theme-toggle",onClick:C,children:e==="dark"?o.jsx(B0,{size:18}):o.jsx(I0,{size:18})})]})]}),o.jsxs("div",{className:"view-container",children:[o.jsxs(q0,{mode:"wait",children:[n==="audit"&&o.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(V2,{logs:s,onClearLogs:()=>i([]),onSelectLog:T=>{var A,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=(A=T._rigour_report.failures)==null?void 0:A[0])==null?void 0:L.files)==null?void 0:_[0];z?I(z):l(null)}else l(null);h(!0)}else l(null),h(!1)},selectedLog:u})},"audit"),n==="gates"&&o.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(L2,{})},"gates"),n==="deep"&&o.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(I2,{})},"deep"),n==="drift"&&o.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(U2,{})},"drift"),n==="patterns"&&o.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(_2,{})},"patterns"),n==="memory"&&o.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(R2,{})},"memory"),n==="agents"&&o.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(O2,{session:N})},"agents"),n==="checkpoints"&&o.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(b2,{checkpoints:(D==null?void 0:D.checkpoints)||[]})},"checkpoints"),n==="cost"&&o.jsx(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:o.jsx(W2,{})},"cost")]}),u&&d&&o.jsx("div",{className:"governance-overlay",children:o.jsxs("div",{className:"governance-window",children:[o.jsxs("div",{className:"governance-header",children:[o.jsxs("div",{className:"title",children:[o.jsx(vi,{size:20}),o.jsxs("span",{children:["Governance Audit: ",u.tool]})]}),o.jsxs("div",{className:"hitl-actions",children:[u.type==="interception_requested"&&o.jsxs(o.Fragment,{children:[o.jsxs("button",{className:"btn-approve",onClick:()=>F("approve"),children:[o.jsx(yt,{size:16})," Approve"]}),o.jsxs("button",{className:"btn-reject",onClick:()=>F("reject"),children:[o.jsx(gs,{size:16})," Reject"]}),o.jsx("div",{className:"divider"})]}),o.jsx("button",{onClick:()=>h(!1),className:"close-btn",children:o.jsx(Tu,{size:20})})]})]}),o.jsx("div",{className:"governance-body",children:u.type==="interception_requested"?o.jsxs("div",{className:"interception-view",children:[o.jsxs("div",{className:"interception-card",children:[o.jsx(Hi,{size:48}),o.jsx("h4",{children:"Command Intercepted"}),o.jsx("div",{className:"command-box",children:o.jsx("code",{children:u.command})}),o.jsx("p",{children:"An AI agent is requesting to execute this command. Review the project state below before arbitrating."}),o.jsxs("div",{className:"warning-note",children:[o.jsx(wt,{size:16}),o.jsx("span",{children:"Critical actions should be manually verified."})]})]}),o.jsx(Bf,{files:f.map(T=>T.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:T=>I(T),activeFile:a==null?void 0:a.filename,violatedFiles:[]})]}):o.jsxs(o.Fragment,{children:[o.jsx(Bf,{files:(((V=(J=u._rigour_report)==null?void 0:J.failures)==null?void 0:V.flatMap(T=>T.files||[]))||f).map(T=>T.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:T=>I(T),activeFile:a==null?void 0:a.filename,violatedFiles:(((U=($=u._rigour_report)==null?void 0:$.failures)==null?void 0:U.flatMap(T=>T.files||[]))||[]).map(T=>T.replace(/\s*\(\d+\s*lines\)$/,""))}),o.jsx("div",{className:"diff-view-area",children:a?o.jsx(A2,{filename:a.filename,originalCode:a.original,modifiedCode:a.modified,onClose:()=>l(null),theme:e}):o.jsxs("div",{className:"diff-placeholder",children:[o.jsx(kn,{size:48}),o.jsx("p",{children:"Select a file to audit the proposed changes"})]})})]})})]})})]})]})]})}va.createRoot(document.getElementById("root")).render(o.jsx(Fe.StrictMode,{children:o.jsx(H2,{})}));
|