@rigour-labs/cli 2.17.0 → 2.17.2

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.
@@ -1,4 +1,4 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Py(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cf={exports:{}},Us={},Pf={exports:{}},U={};/**
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Ty(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pf={exports:{}},Us={},Tf={exports:{}},U={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ci=Symbol.for("react.element"),Ty=Symbol.for("react.portal"),Ey=Symbol.for("react.fragment"),Ny=Symbol.for("react.strict_mode"),My=Symbol.for("react.profiler"),Ay=Symbol.for("react.provider"),Dy=Symbol.for("react.context"),Ly=Symbol.for("react.forward_ref"),Ry=Symbol.for("react.suspense"),Vy=Symbol.for("react.memo"),_y=Symbol.for("react.lazy"),Wu=Symbol.iterator;function Oy(e){return e===null||typeof e!="object"?null:(e=Wu&&e[Wu]||e["@@iterator"],typeof e=="function"?e:null)}var Tf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ef=Object.assign,Nf={};function nr(e,t,n){this.props=e,this.context=t,this.refs=Nf,this.updater=n||Tf}nr.prototype.isReactComponent={};nr.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")};nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Mf(){}Mf.prototype=nr.prototype;function fl(e,t,n){this.props=e,this.context=t,this.refs=Nf,this.updater=n||Tf}var hl=fl.prototype=new Mf;hl.constructor=fl;Ef(hl,nr.prototype);hl.isPureReactComponent=!0;var Hu=Array.isArray,Af=Object.prototype.hasOwnProperty,pl={current:null},Df={key:!0,ref:!0,__self:!0,__source:!0};function Lf(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Af.call(t,r)&&!Df.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ci,type:e,key:s,ref:o,props:i,_owner:pl.current}}function zy(e,t){return{$$typeof:ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ml(e){return typeof e=="object"&&e!==null&&e.$$typeof===ci}function Fy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ku=/\/+/g;function ho(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fy(""+e.key):t.toString(36)}function Hi(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ci:case Ty:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ho(o,0):r,Hu(i)?(n="",e!=null&&(n=e.replace(Ku,"$&/")+"/"),Hi(i,t,n,"",function(u){return u})):i!=null&&(ml(i)&&(i=zy(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Ku,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Hu(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+ho(s,a);o+=Hi(s,t,n,l,i)}else if(l=Oy(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+ho(s,a++),o+=Hi(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Si(e,t,n){if(e==null)return e;var r=[],i=0;return Hi(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Iy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Te={current:null},Ki={transition:null},By={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:Ki,ReactCurrentOwner:pl};function Rf(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Si,forEach:function(e,t,n){Si(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Si(e,function(){t++}),t},toArray:function(e){return Si(e,function(t){return t})||[]},only:function(e){if(!ml(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=nr;U.Fragment=Ey;U.Profiler=My;U.PureComponent=fl;U.StrictMode=Ny;U.Suspense=Ry;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=By;U.act=Rf;U.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=Ef({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=pl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Af.call(t,l)&&!Df.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ci,type:e.type,key:i,ref:s,props:r,_owner:o}};U.createContext=function(e){return e={$$typeof:Dy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ay,_context:e},e.Consumer=e};U.createElement=Lf;U.createFactory=function(e){var t=Lf.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:Ly,render:e}};U.isValidElement=ml;U.lazy=function(e){return{$$typeof:_y,_payload:{_status:-1,_result:e},_init:Iy}};U.memo=function(e,t){return{$$typeof:Vy,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=Ki.transition;Ki.transition={};try{e()}finally{Ki.transition=t}};U.unstable_act=Rf;U.useCallback=function(e,t){return Te.current.useCallback(e,t)};U.useContext=function(e){return Te.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return Te.current.useDeferredValue(e)};U.useEffect=function(e,t){return Te.current.useEffect(e,t)};U.useId=function(){return Te.current.useId()};U.useImperativeHandle=function(e,t,n){return Te.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return Te.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return Te.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return Te.current.useMemo(e,t)};U.useReducer=function(e,t,n){return Te.current.useReducer(e,t,n)};U.useRef=function(e){return Te.current.useRef(e)};U.useState=function(e){return Te.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return Te.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return Te.current.useTransition()};U.version="18.3.1";Pf.exports=U;var j=Pf.exports;const Oe=Py(j);/**
9
+ */var ci=Symbol.for("react.element"),Ey=Symbol.for("react.portal"),Ny=Symbol.for("react.fragment"),My=Symbol.for("react.strict_mode"),Ay=Symbol.for("react.profiler"),Dy=Symbol.for("react.provider"),Ly=Symbol.for("react.context"),Ry=Symbol.for("react.forward_ref"),Vy=Symbol.for("react.suspense"),_y=Symbol.for("react.memo"),Oy=Symbol.for("react.lazy"),Hu=Symbol.iterator;function zy(e){return e===null||typeof e!="object"?null:(e=Hu&&e[Hu]||e["@@iterator"],typeof e=="function"?e:null)}var Ef={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nf=Object.assign,Mf={};function nr(e,t,n){this.props=e,this.context=t,this.refs=Mf,this.updater=n||Ef}nr.prototype.isReactComponent={};nr.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")};nr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Af(){}Af.prototype=nr.prototype;function hl(e,t,n){this.props=e,this.context=t,this.refs=Mf,this.updater=n||Ef}var pl=hl.prototype=new Af;pl.constructor=hl;Nf(pl,nr.prototype);pl.isPureReactComponent=!0;var Ku=Array.isArray,Df=Object.prototype.hasOwnProperty,ml={current:null},Lf={key:!0,ref:!0,__self:!0,__source:!0};function Rf(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Df.call(t,r)&&!Lf.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:ci,type:e,key:s,ref:o,props:i,_owner:ml.current}}function Fy(e,t){return{$$typeof:ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ci}function Iy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Gu=/\/+/g;function ho(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Iy(""+e.key):t.toString(36)}function Hi(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ci:case Ey:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ho(o,0):r,Ku(i)?(n="",e!=null&&(n=e.replace(Gu,"$&/")+"/"),Hi(i,t,n,"",function(u){return u})):i!=null&&(yl(i)&&(i=Fy(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Gu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Ku(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+ho(s,a);o+=Hi(s,t,n,l,i)}else if(l=zy(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+ho(s,a++),o+=Hi(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Si(e,t,n){if(e==null)return e;var r=[],i=0;return Hi(e,r,"","",function(s){return t.call(n,s,i++)}),r}function By(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Te={current:null},Ki={transition:null},Uy={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:Ki,ReactCurrentOwner:ml};function Vf(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Si,forEach:function(e,t,n){Si(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Si(e,function(){t++}),t},toArray:function(e){return Si(e,function(t){return t})||[]},only:function(e){if(!yl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=nr;U.Fragment=Ny;U.Profiler=Ay;U.PureComponent=hl;U.StrictMode=My;U.Suspense=Vy;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Uy;U.act=Vf;U.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=Nf({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=ml.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Df.call(t,l)&&!Lf.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:ci,type:e.type,key:i,ref:s,props:r,_owner:o}};U.createContext=function(e){return e={$$typeof:Ly,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Dy,_context:e},e.Consumer=e};U.createElement=Rf;U.createFactory=function(e){var t=Rf.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:Ry,render:e}};U.isValidElement=yl;U.lazy=function(e){return{$$typeof:Oy,_payload:{_status:-1,_result:e},_init:By}};U.memo=function(e,t){return{$$typeof:_y,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=Ki.transition;Ki.transition={};try{e()}finally{Ki.transition=t}};U.unstable_act=Vf;U.useCallback=function(e,t){return Te.current.useCallback(e,t)};U.useContext=function(e){return Te.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return Te.current.useDeferredValue(e)};U.useEffect=function(e,t){return Te.current.useEffect(e,t)};U.useId=function(){return Te.current.useId()};U.useImperativeHandle=function(e,t,n){return Te.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return Te.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return Te.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return Te.current.useMemo(e,t)};U.useReducer=function(e,t,n){return Te.current.useReducer(e,t,n)};U.useRef=function(e){return Te.current.useRef(e)};U.useState=function(e){return Te.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return Te.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return Te.current.useTransition()};U.version="18.3.1";Tf.exports=U;var j=Tf.exports;const Oe=Ty(j);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Uy=j,$y=Symbol.for("react.element"),Wy=Symbol.for("react.fragment"),Hy=Object.prototype.hasOwnProperty,Ky=Uy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Gy={key:!0,ref:!0,__self:!0,__source:!0};function Vf(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Hy.call(t,r)&&!Gy.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:$y,type:e,key:s,ref:o,props:i,_owner:Ky.current}}Us.Fragment=Wy;Us.jsx=Vf;Us.jsxs=Vf;Cf.exports=Us;var c=Cf.exports,na={},_f={exports:{}},$e={},Of={exports:{}},zf={};/**
17
+ */var $y=j,Wy=Symbol.for("react.element"),Hy=Symbol.for("react.fragment"),Ky=Object.prototype.hasOwnProperty,Gy=$y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qy={key:!0,ref:!0,__self:!0,__source:!0};function _f(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Ky.call(t,r)&&!Qy.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Wy,type:e,key:s,ref:o,props:i,_owner:Gy.current}}Us.Fragment=Hy;Us.jsx=_f;Us.jsxs=_f;Pf.exports=Us;var c=Pf.exports,ra={},Of={exports:{}},$e={},zf={exports:{}},Ff={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(N,_){var F=N.length;N.push(_);e:for(;0<F;){var V=F-1>>>1,I=N[V];if(0<i(I,_))N[V]=_,N[F]=I,F=V;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var _=N[0],F=N.pop();if(F!==_){N[0]=F;e:for(var V=0,I=N.length,le=I>>>1;V<le;){var Re=2*(V+1)-1,ot=N[Re],Jt=Re+1,wi=N[Jt];if(0>i(ot,F))Jt<I&&0>i(wi,ot)?(N[V]=wi,N[Jt]=F,V=Jt):(N[V]=ot,N[Re]=F,V=Re);else if(Jt<I&&0>i(wi,F))N[V]=wi,N[Jt]=F,V=Jt;else break e}}return _}function i(N,_){var F=N.sortIndex-_.sortIndex;return F!==0?F:N.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,f=null,h=3,g=!1,x=!1,v=!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 y(N){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=N)r(u),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(u)}}function S(N){if(v=!1,y(N),!x)if(n(l)!==null)x=!0,z(w);else{var _=n(u);_!==null&&B(S,_.startTime-N)}}function w(N,_){x=!1,v&&(v=!1,m(T),T=-1),g=!0;var F=h;try{for(y(_),f=n(l);f!==null&&(!(f.expirationTime>_)||N&&!K());){var V=f.callback;if(typeof V=="function"){f.callback=null,h=f.priorityLevel;var I=V(f.expirationTime<=_);_=e.unstable_now(),typeof I=="function"?f.callback=I:f===n(l)&&r(l),y(_)}else r(l);f=n(l)}if(f!==null)var le=!0;else{var Re=n(u);Re!==null&&B(S,Re.startTime-_),le=!1}return le}finally{f=null,h=F,g=!1}}var k=!1,P=null,T=-1,L=5,M=-1;function K(){return!(e.unstable_now()-M<L)}function me(){if(P!==null){var N=e.unstable_now();M=N;var _=!0;try{_=P(!0,N)}finally{_?ke():(k=!1,P=null)}}else k=!1}var ke;if(typeof p=="function")ke=function(){p(me)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,A=R.port2;R.port1.onmessage=me,ke=function(){A.postMessage(null)}}else ke=function(){C(me,0)};function z(N){P=N,k||(k=!0,ke())}function B(N,_){T=C(function(){N(e.unstable_now())},_)}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(N){N.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,z(w))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var F=h;h=_;try{return N()}finally{h=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,_){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var F=h;h=N;try{return _()}finally{h=F}},e.unstable_scheduleCallback=function(N,_,F){var V=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?V+F:V):F=V,N){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=F+I,N={id:d++,callback:_,priorityLevel:N,startTime:F,expirationTime:I,sortIndex:-1},F>V?(N.sortIndex=F,t(u,N),n(l)===null&&N===n(u)&&(v?(m(T),T=-1):v=!0,B(S,F-V))):(N.sortIndex=I,t(l,N),x||g||(x=!0,z(w))),N},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(N){var _=h;return function(){var F=h;h=_;try{return N.apply(this,arguments)}finally{h=F}}}})(zf);Of.exports=zf;var Qy=Of.exports;/**
25
+ */(function(e){function t(N,_){var F=N.length;N.push(_);e:for(;0<F;){var V=F-1>>>1,I=N[V];if(0<i(I,_))N[V]=_,N[F]=I,F=V;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var _=N[0],F=N.pop();if(F!==_){N[0]=F;e:for(var V=0,I=N.length,le=I>>>1;V<le;){var Re=2*(V+1)-1,ot=N[Re],Jt=Re+1,wi=N[Jt];if(0>i(ot,F))Jt<I&&0>i(wi,ot)?(N[V]=wi,N[Jt]=F,V=Jt):(N[V]=ot,N[Re]=F,V=Re);else if(Jt<I&&0>i(wi,F))N[V]=wi,N[Jt]=F,V=Jt;else break e}}return _}function i(N,_){var F=N.sortIndex-_.sortIndex;return F!==0?F:N.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],d=1,f=null,h=3,g=!1,x=!1,v=!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 y(N){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=N)r(u),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(u)}}function S(N){if(v=!1,y(N),!x)if(n(l)!==null)x=!0,z(w);else{var _=n(u);_!==null&&B(S,_.startTime-N)}}function w(N,_){x=!1,v&&(v=!1,m(T),T=-1),g=!0;var F=h;try{for(y(_),f=n(l);f!==null&&(!(f.expirationTime>_)||N&&!K());){var V=f.callback;if(typeof V=="function"){f.callback=null,h=f.priorityLevel;var I=V(f.expirationTime<=_);_=e.unstable_now(),typeof I=="function"?f.callback=I:f===n(l)&&r(l),y(_)}else r(l);f=n(l)}if(f!==null)var le=!0;else{var Re=n(u);Re!==null&&B(S,Re.startTime-_),le=!1}return le}finally{f=null,h=F,g=!1}}var k=!1,P=null,T=-1,L=5,M=-1;function K(){return!(e.unstable_now()-M<L)}function me(){if(P!==null){var N=e.unstable_now();M=N;var _=!0;try{_=P(!0,N)}finally{_?ke():(k=!1,P=null)}}else k=!1}var ke;if(typeof p=="function")ke=function(){p(me)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,A=R.port2;R.port1.onmessage=me,ke=function(){A.postMessage(null)}}else ke=function(){C(me,0)};function z(N){P=N,k||(k=!0,ke())}function B(N,_){T=C(function(){N(e.unstable_now())},_)}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(N){N.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,z(w))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var _=3;break;default:_=h}var F=h;h=_;try{return N()}finally{h=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,_){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var F=h;h=N;try{return _()}finally{h=F}},e.unstable_scheduleCallback=function(N,_,F){var V=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?V+F:V):F=V,N){case 1:var I=-1;break;case 2:I=250;break;case 5:I=1073741823;break;case 4:I=1e4;break;default:I=5e3}return I=F+I,N={id:d++,callback:_,priorityLevel:N,startTime:F,expirationTime:I,sortIndex:-1},F>V?(N.sortIndex=F,t(u,N),n(l)===null&&N===n(u)&&(v?(m(T),T=-1):v=!0,B(S,F-V))):(N.sortIndex=I,t(l,N),x||g||(x=!0,z(w))),N},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(N){var _=h;return function(){var F=h;h=_;try{return N.apply(this,arguments)}finally{h=F}}}})(Ff);zf.exports=Ff;var by=zf.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,59 +30,59 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var by=j,Be=Qy;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ff=new Set,Ir={};function gn(e,t){Gn(e,t),Gn(e+"Capture",t)}function Gn(e,t){for(Ir[e]=t,e=0;e<t.length;e++)Ff.add(t[e])}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ra=Object.prototype.hasOwnProperty,Yy=/^[: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]*$/,Gu={},Qu={};function Xy(e){return ra.call(Qu,e)?!0:ra.call(Gu,e)?!1:Yy.test(e)?Qu[e]=!0:(Gu[e]=!0,!1)}function qy(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 Zy(e,t,n,r){if(t===null||typeof t>"u"||qy(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 Ee(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ee(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){pe[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var yl=/[\-:]([a-z])/g;function vl(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(yl,vl);pe[t]=new Ee(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(yl,vl);pe[t]=new Ee(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(yl,vl);pe[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function gl(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zy(t,n,i,r)&&(n=null),r||i===null?Xy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Et=by.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ki=Symbol.for("react.element"),kn=Symbol.for("react.portal"),jn=Symbol.for("react.fragment"),xl=Symbol.for("react.strict_mode"),ia=Symbol.for("react.profiler"),If=Symbol.for("react.provider"),Bf=Symbol.for("react.context"),wl=Symbol.for("react.forward_ref"),sa=Symbol.for("react.suspense"),oa=Symbol.for("react.suspense_list"),Sl=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Uf=Symbol.for("react.offscreen"),bu=Symbol.iterator;function ar(e){return e===null||typeof e!="object"?null:(e=bu&&e[bu]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,po;function vr(e){if(po===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);po=t&&t[1]||""}return`
33
+ */var Yy=j,Be=by;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var If=new Set,Ir={};function gn(e,t){Gn(e,t),Gn(e+"Capture",t)}function Gn(e,t){for(Ir[e]=t,e=0;e<t.length;e++)If.add(t[e])}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ia=Object.prototype.hasOwnProperty,Xy=/^[: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]*$/,Qu={},bu={};function qy(e){return ia.call(bu,e)?!0:ia.call(Qu,e)?!1:Xy.test(e)?bu[e]=!0:(Qu[e]=!0,!1)}function Zy(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 Jy(e,t,n,r){if(t===null||typeof t>"u"||Zy(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 Ee(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ee(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){pe[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var vl=/[\-:]([a-z])/g;function gl(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(vl,gl);pe[t]=new Ee(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(vl,gl);pe[t]=new Ee(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(vl,gl);pe[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function xl(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Jy(t,n,i,r)&&(n=null),r||i===null?qy(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Et=Yy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ki=Symbol.for("react.element"),kn=Symbol.for("react.portal"),jn=Symbol.for("react.fragment"),wl=Symbol.for("react.strict_mode"),sa=Symbol.for("react.profiler"),Bf=Symbol.for("react.provider"),Uf=Symbol.for("react.context"),Sl=Symbol.for("react.forward_ref"),oa=Symbol.for("react.suspense"),aa=Symbol.for("react.suspense_list"),kl=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),$f=Symbol.for("react.offscreen"),Yu=Symbol.iterator;function ar(e){return e===null||typeof e!="object"?null:(e=Yu&&e[Yu]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,po;function vr(e){if(po===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);po=t&&t[1]||""}return`
34
34
  `+po+e}var mo=!1;function yo(e,t){if(!e||mo)return"";mo=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
35
  `),s=r.stack.split(`
36
36
  `),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
37
- `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function Jy(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=yo(e.type,!1),e;case 11:return e=yo(e.type.render,!1),e;case 1:return e=yo(e.type,!0),e;default:return""}}function aa(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 jn:return"Fragment";case kn:return"Portal";case ia:return"Profiler";case xl:return"StrictMode";case sa:return"Suspense";case oa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bf:return(e.displayName||"Context")+".Consumer";case If:return(e._context.displayName||"Context")+".Provider";case wl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sl:return t=e.displayName||null,t!==null?t:aa(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return aa(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 aa(t);case 8:return t===xl?"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 Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tv(e){var t=$f(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 i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ji(e){e._valueTracker||(e._valueTracker=tv(e))}function Wf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$f(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function os(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 la(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(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 Hf(e,t){t=t.checked,t!=null&&gl(e,"checked",t,!1)}function ua(e,t){Hf(e,t);var n=Kt(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,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xu(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"||os(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gr=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Kt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function da(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(gr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Kt(n)}}function Kf(e,t){var n=Kt(t.value),r=Kt(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 Zu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Gf(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 fa(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Gf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ci,Qf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ci=Ci||document.createElement("div"),Ci.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nv=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){nv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pr[t]=Pr[e]})});function bf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+t).trim():t+"px"}function Yf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var rv=ee({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 ha(e,t){if(t){if(rv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function pa(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 ma=null;function kl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ya=null,Un=null,$n=null;function Ju(e){if(e=hi(e)){if(typeof ya!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Gs(t),ya(e.stateNode,e.type,t))}}function Xf(e){Un?$n?$n.push(e):$n=[e]:Un=e}function qf(){if(Un){var e=Un,t=$n;if($n=Un=null,Ju(e),t)for(e=0;e<t.length;e++)Ju(t[e])}}function Zf(e,t){return e(t)}function Jf(){}var vo=!1;function eh(e,t,n){if(vo)return e(t,n);vo=!0;try{return Zf(e,t,n)}finally{vo=!1,(Un!==null||$n!==null)&&(Jf(),qf())}}function Ur(e,t){var n=e.stateNode;if(n===null)return null;var r=Gs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var va=!1;if(kt)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){va=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{va=!1}function iv(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Tr=!1,as=null,ls=!1,ga=null,sv={onError:function(e){Tr=!0,as=e}};function ov(e,t,n,r,i,s,o,a,l){Tr=!1,as=null,iv.apply(sv,arguments)}function av(e,t,n,r,i,s,o,a,l){if(ov.apply(this,arguments),Tr){if(Tr){var u=as;Tr=!1,as=null}else throw Error(E(198));ls||(ls=!0,ga=u)}}function xn(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 th(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 ec(e){if(xn(e)!==e)throw Error(E(188))}function lv(e){var t=e.alternate;if(!t){if(t=xn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return ec(i),e;if(s===r)return ec(i),t;s=s.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function nh(e){return e=lv(e),e!==null?rh(e):null}function rh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rh(e);if(t!==null)return t;e=e.sibling}return null}var ih=Be.unstable_scheduleCallback,tc=Be.unstable_cancelCallback,uv=Be.unstable_shouldYield,cv=Be.unstable_requestPaint,ie=Be.unstable_now,dv=Be.unstable_getCurrentPriorityLevel,jl=Be.unstable_ImmediatePriority,sh=Be.unstable_UserBlockingPriority,us=Be.unstable_NormalPriority,fv=Be.unstable_LowPriority,oh=Be.unstable_IdlePriority,$s=null,ct=null;function hv(e){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot($s,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:yv,pv=Math.log,mv=Math.LN2;function yv(e){return e>>>=0,e===0?32:31-(pv(e)/mv|0)|0}var Pi=64,Ti=4194304;function xr(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 cs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=xr(a):(s&=o,s!==0&&(r=xr(s)))}else o=n&~i,o!==0?r=xr(o):s!==0&&(r=xr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),i=1<<n,r|=e[n],t&=~i;return r}function vv(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 gv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-rt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=vv(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function xa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ah(){var e=Pi;return Pi<<=1,!(Pi&4194240)&&(Pi=64),e}function go(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function xv(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 i=31-rt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Cl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var H=0;function lh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uh,Pl,ch,dh,fh,wa=!1,Ei=[],Ot=null,zt=null,Ft=null,$r=new Map,Wr=new Map,Lt=[],wv="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 nc(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":$r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}function ur(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=hi(t),t!==null&&Pl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Sv(e,t,n,r,i){switch(t){case"focusin":return Ot=ur(Ot,e,t,n,r,i),!0;case"dragenter":return zt=ur(zt,e,t,n,r,i),!0;case"mouseover":return Ft=ur(Ft,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return $r.set(s,ur($r.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Wr.set(s,ur(Wr.get(s)||null,e,t,n,r,i)),!0}return!1}function hh(e){var t=on(e.target);if(t!==null){var n=xn(t);if(n!==null){if(t=n.tag,t===13){if(t=th(n),t!==null){e.blockedOn=t,fh(e.priority,function(){ch(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 Gi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ma=r,n.target.dispatchEvent(r),ma=null}else return t=hi(n),t!==null&&Pl(t),e.blockedOn=n,!1;t.shift()}return!0}function rc(e,t,n){Gi(e)&&n.delete(t)}function kv(){wa=!1,Ot!==null&&Gi(Ot)&&(Ot=null),zt!==null&&Gi(zt)&&(zt=null),Ft!==null&&Gi(Ft)&&(Ft=null),$r.forEach(rc),Wr.forEach(rc)}function cr(e,t){e.blockedOn===t&&(e.blockedOn=null,wa||(wa=!0,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,kv)))}function Hr(e){function t(i){return cr(i,e)}if(0<Ei.length){cr(Ei[0],e);for(var n=1;n<Ei.length;n++){var r=Ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ot!==null&&cr(Ot,e),zt!==null&&cr(zt,e),Ft!==null&&cr(Ft,e),$r.forEach(t),Wr.forEach(t),n=0;n<Lt.length;n++)r=Lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&(n=Lt[0],n.blockedOn===null);)hh(n),n.blockedOn===null&&Lt.shift()}var Wn=Et.ReactCurrentBatchConfig,ds=!0;function jv(e,t,n,r){var i=H,s=Wn.transition;Wn.transition=null;try{H=1,Tl(e,t,n,r)}finally{H=i,Wn.transition=s}}function Cv(e,t,n,r){var i=H,s=Wn.transition;Wn.transition=null;try{H=4,Tl(e,t,n,r)}finally{H=i,Wn.transition=s}}function Tl(e,t,n,r){if(ds){var i=Sa(e,t,n,r);if(i===null)No(e,t,r,fs,n),nc(e,r);else if(Sv(i,e,t,n,r))r.stopPropagation();else if(nc(e,r),t&4&&-1<wv.indexOf(e)){for(;i!==null;){var s=hi(i);if(s!==null&&uh(s),s=Sa(e,t,n,r),s===null&&No(e,t,r,fs,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else No(e,t,r,null,n)}}var fs=null;function Sa(e,t,n,r){if(fs=null,e=kl(r),e=on(e),e!==null)if(t=xn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=th(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 fs=e,null}function ph(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(dv()){case jl:return 1;case sh:return 4;case us:case fv:return 16;case oh:return 536870912;default:return 16}default:return 16}}var Vt=null,El=null,Qi=null;function mh(){if(Qi)return Qi;var e,t=El,n=t.length,r,i="value"in Vt?Vt.value:Vt.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Qi=i.slice(e,1<r?1-r:void 0)}function bi(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 Ni(){return!0}function ic(){return!1}function We(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ni:ic,this.isPropagationStopped=ic,this}return ee(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=Ni)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nl=We(rr),fi=ee({},rr,{view:0,detail:0}),Pv=We(fi),xo,wo,dr,Ws=ee({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ml,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!==dr&&(dr&&e.type==="mousemove"?(xo=e.screenX-dr.screenX,wo=e.screenY-dr.screenY):wo=xo=0,dr=e),xo)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),sc=We(Ws),Tv=ee({},Ws,{dataTransfer:0}),Ev=We(Tv),Nv=ee({},fi,{relatedTarget:0}),So=We(Nv),Mv=ee({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),Av=We(Mv),Dv=ee({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lv=We(Dv),Rv=ee({},rr,{data:0}),oc=We(Rv),Vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_v={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"},Ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ov[e])?!!t[e]:!1}function Ml(){return zv}var Fv=ee({},fi,{key:function(e){if(e.key){var t=Vv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_v[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ml,charCode:function(e){return e.type==="keypress"?bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Iv=We(Fv),Bv=ee({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ac=We(Bv),Uv=ee({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ml}),$v=We(Uv),Wv=ee({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hv=We(Wv),Kv=ee({},Ws,{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}),Gv=We(Kv),Qv=[9,13,27,32],Al=kt&&"CompositionEvent"in window,Er=null;kt&&"documentMode"in document&&(Er=document.documentMode);var bv=kt&&"TextEvent"in window&&!Er,yh=kt&&(!Al||Er&&8<Er&&11>=Er),lc=" ",uc=!1;function vh(e,t){switch(e){case"keyup":return Qv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function Yv(e,t){switch(e){case"compositionend":return gh(t);case"keypress":return t.which!==32?null:(uc=!0,lc);case"textInput":return e=t.data,e===lc&&uc?null:e;default:return null}}function Xv(e,t){if(Cn)return e==="compositionend"||!Al&&vh(e,t)?(e=mh(),Qi=El=Vt=null,Cn=!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 yh&&t.locale!=="ko"?null:t.data;default:return null}}var qv={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 cc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qv[e.type]:t==="textarea"}function xh(e,t,n,r){Xf(r),t=hs(t,"onChange"),0<t.length&&(n=new Nl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nr=null,Kr=null;function Zv(e){Ah(e,0)}function Hs(e){var t=En(e);if(Wf(t))return e}function Jv(e,t){if(e==="change")return t}var wh=!1;if(kt){var ko;if(kt){var jo="oninput"in document;if(!jo){var dc=document.createElement("div");dc.setAttribute("oninput","return;"),jo=typeof dc.oninput=="function"}ko=jo}else ko=!1;wh=ko&&(!document.documentMode||9<document.documentMode)}function fc(){Nr&&(Nr.detachEvent("onpropertychange",Sh),Kr=Nr=null)}function Sh(e){if(e.propertyName==="value"&&Hs(Kr)){var t=[];xh(t,Kr,e,kl(e)),eh(Zv,t)}}function eg(e,t,n){e==="focusin"?(fc(),Nr=t,Kr=n,Nr.attachEvent("onpropertychange",Sh)):e==="focusout"&&fc()}function tg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hs(Kr)}function ng(e,t){if(e==="click")return Hs(t)}function rg(e,t){if(e==="input"||e==="change")return Hs(t)}function ig(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var st=typeof Object.is=="function"?Object.is:ig;function Gr(e,t){if(st(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 i=n[r];if(!ra.call(t,i)||!st(e[i],t[i]))return!1}return!0}function hc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pc(e,t){var n=hc(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=hc(n)}}function kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jh(){for(var e=window,t=os();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=os(e.document)}return t}function Dl(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 sg(e){var t=jh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kh(n.ownerDocument.documentElement,n)){if(r!==null&&Dl(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=pc(n,s);var o=pc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var og=kt&&"documentMode"in document&&11>=document.documentMode,Pn=null,ka=null,Mr=null,ja=!1;function mc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ja||Pn==null||Pn!==os(r)||(r=Pn,"selectionStart"in r&&Dl(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}),Mr&&Gr(Mr,r)||(Mr=r,r=hs(ka,"onSelect"),0<r.length&&(t=new Nl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pn)))}function Mi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tn={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionend:Mi("Transition","TransitionEnd")},Co={},Ch={};kt&&(Ch=document.createElement("div").style,"AnimationEvent"in window||(delete Tn.animationend.animation,delete Tn.animationiteration.animation,delete Tn.animationstart.animation),"TransitionEvent"in window||delete Tn.transitionend.transition);function Ks(e){if(Co[e])return Co[e];if(!Tn[e])return e;var t=Tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ch)return Co[e]=t[n];return e}var Ph=Ks("animationend"),Th=Ks("animationiteration"),Eh=Ks("animationstart"),Nh=Ks("transitionend"),Mh=new Map,yc="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 Yt(e,t){Mh.set(e,t),gn(t,[e])}for(var Po=0;Po<yc.length;Po++){var To=yc[Po],ag=To.toLowerCase(),lg=To[0].toUpperCase()+To.slice(1);Yt(ag,"on"+lg)}Yt(Ph,"onAnimationEnd");Yt(Th,"onAnimationIteration");Yt(Eh,"onAnimationStart");Yt("dblclick","onDoubleClick");Yt("focusin","onFocus");Yt("focusout","onBlur");Yt(Nh,"onTransitionEnd");Gn("onMouseEnter",["mouseout","mouseover"]);Gn("onMouseLeave",["mouseout","mouseover"]);Gn("onPointerEnter",["pointerout","pointerover"]);Gn("onPointerLeave",["pointerout","pointerover"]);gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));gn("onBeforeInput",["compositionend","keypress","textInput","paste"]);gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="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(" "),ug=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function vc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,av(r,t,void 0,e),e.currentTarget=null}function Ah(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;vc(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;vc(i,a,u),s=l}}}if(ls)throw e=ga,ls=!1,ga=null,e}function Q(e,t){var n=t[Na];n===void 0&&(n=t[Na]=new Set);var r=e+"__bubble";n.has(r)||(Dh(t,e,2,!1),n.add(r))}function Eo(e,t,n){var r=0;t&&(r|=4),Dh(n,e,r,t)}var Ai="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Ai]){e[Ai]=!0,Ff.forEach(function(n){n!=="selectionchange"&&(ug.has(n)||Eo(n,!1,e),Eo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ai]||(t[Ai]=!0,Eo("selectionchange",!1,t))}}function Dh(e,t,n,r){switch(ph(t)){case 1:var i=jv;break;case 4:i=Cv;break;default:i=Tl}n=i.bind(null,t,n,e),i=void 0,!va||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function No(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=on(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}eh(function(){var u=s,d=kl(n),f=[];e:{var h=Mh.get(e);if(h!==void 0){var g=Nl,x=e;switch(e){case"keypress":if(bi(n)===0)break e;case"keydown":case"keyup":g=Iv;break;case"focusin":x="focus",g=So;break;case"focusout":x="blur",g=So;break;case"beforeblur":case"afterblur":g=So;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=sc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=$v;break;case Ph:case Th:case Eh:g=Av;break;case Nh:g=Hv;break;case"scroll":g=Pv;break;case"wheel":g=Gv;break;case"copy":case"cut":case"paste":g=Lv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=ac}var v=(t&4)!==0,C=!v&&e==="scroll",m=v?h!==null?h+"Capture":null:h;v=[];for(var p=u,y;p!==null;){y=p;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,m!==null&&(S=Ur(p,m),S!=null&&v.push(br(p,S,y)))),C)break;p=p.return}0<v.length&&(h=new g(h,x,null,n,d),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==ma&&(x=n.relatedTarget||n.fromElement)&&(on(x)||x[jt]))break e;if((g||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,g?(x=n.relatedTarget||n.toElement,g=u,x=x?on(x):null,x!==null&&(C=xn(x),x!==C||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=u),g!==x)){if(v=sc,S="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=ac,S="onPointerLeave",m="onPointerEnter",p="pointer"),C=g==null?h:En(g),y=x==null?h:En(x),h=new v(S,p+"leave",g,n,d),h.target=C,h.relatedTarget=y,S=null,on(d)===u&&(v=new v(m,p+"enter",x,n,d),v.target=y,v.relatedTarget=C,S=v),C=S,g&&x)t:{for(v=g,m=x,p=0,y=v;y;y=Sn(y))p++;for(y=0,S=m;S;S=Sn(S))y++;for(;0<p-y;)v=Sn(v),p--;for(;0<y-p;)m=Sn(m),y--;for(;p--;){if(v===m||m!==null&&v===m.alternate)break t;v=Sn(v),m=Sn(m)}v=null}else v=null;g!==null&&gc(f,h,g,v,!1),x!==null&&C!==null&&gc(f,C,x,v,!0)}}e:{if(h=u?En(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var w=Jv;else if(cc(h))if(wh)w=rg;else{w=tg;var k=eg}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=ng);if(w&&(w=w(e,u))){xh(f,w,n,d);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&ca(h,"number",h.value)}switch(k=u?En(u):window,e){case"focusin":(cc(k)||k.contentEditable==="true")&&(Pn=k,ka=u,Mr=null);break;case"focusout":Mr=ka=Pn=null;break;case"mousedown":ja=!0;break;case"contextmenu":case"mouseup":case"dragend":ja=!1,mc(f,n,d);break;case"selectionchange":if(og)break;case"keydown":case"keyup":mc(f,n,d)}var P;if(Al)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Cn?vh(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(yh&&n.locale!=="ko"&&(Cn||T!=="onCompositionStart"?T==="onCompositionEnd"&&Cn&&(P=mh()):(Vt=d,El="value"in Vt?Vt.value:Vt.textContent,Cn=!0)),k=hs(u,T),0<k.length&&(T=new oc(T,e,null,n,d),f.push({event:T,listeners:k}),P?T.data=P:(P=gh(n),P!==null&&(T.data=P)))),(P=bv?Yv(e,n):Xv(e,n))&&(u=hs(u,"onBeforeInput"),0<u.length&&(d=new oc("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=P))}Ah(f,t)})}function br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hs(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Ur(e,n),s!=null&&r.unshift(br(e,s,i)),s=Ur(e,t),s!=null&&r.push(br(e,s,i))),e=e.return}return r}function Sn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gc(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Ur(n,s),l!=null&&o.unshift(br(n,l,a))):i||(l=Ur(n,s),l!=null&&o.push(br(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var cg=/\r\n?/g,dg=/\u0000|\uFFFD/g;function xc(e){return(typeof e=="string"?e:""+e).replace(cg,`
38
- `).replace(dg,"")}function Di(e,t,n){if(t=xc(t),xc(e)!==t&&n)throw Error(E(425))}function ps(){}var Ca=null,Pa=null;function Ta(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 Ea=typeof setTimeout=="function"?setTimeout:void 0,fg=typeof clearTimeout=="function"?clearTimeout:void 0,wc=typeof Promise=="function"?Promise:void 0,hg=typeof queueMicrotask=="function"?queueMicrotask:typeof wc<"u"?function(e){return wc.resolve(null).then(e).catch(pg)}:Ea;function pg(e){setTimeout(function(){throw e})}function Mo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Hr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Hr(t)}function It(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 Sc(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 ir=Math.random().toString(36).slice(2),ut="__reactFiber$"+ir,Yr="__reactProps$"+ir,jt="__reactContainer$"+ir,Na="__reactEvents$"+ir,mg="__reactListeners$"+ir,yg="__reactHandles$"+ir;function on(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sc(e);e!==null;){if(n=e[ut])return n;e=Sc(e)}return t}e=n,n=e.parentNode}return null}function hi(e){return e=e[ut]||e[jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Gs(e){return e[Yr]||null}var Ma=[],Nn=-1;function Xt(e){return{current:e}}function b(e){0>Nn||(e.current=Ma[Nn],Ma[Nn]=null,Nn--)}function G(e,t){Nn++,Ma[Nn]=e.current,e.current=t}var Gt={},Se=Xt(Gt),Ae=Xt(!1),hn=Gt;function Qn(e,t){var n=e.type.contextTypes;if(!n)return Gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function De(e){return e=e.childContextTypes,e!=null}function ms(){b(Ae),b(Se)}function kc(e,t,n){if(Se.current!==Gt)throw Error(E(168));G(Se,t),G(Ae,n)}function Lh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,ev(e)||"Unknown",i));return ee({},n,r)}function ys(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,hn=Se.current,G(Se,e),G(Ae,Ae.current),!0}function jc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Lh(e,t,hn),r.__reactInternalMemoizedMergedChildContext=e,b(Ae),b(Se),G(Se,e)):b(Ae),G(Ae,n)}var mt=null,Qs=!1,Ao=!1;function Rh(e){mt===null?mt=[e]:mt.push(e)}function vg(e){Qs=!0,Rh(e)}function qt(){if(!Ao&&mt!==null){Ao=!0;var e=0,t=H;try{var n=mt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,Qs=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),ih(jl,qt),i}finally{H=t,Ao=!1}}return null}var Mn=[],An=0,vs=null,gs=0,Ge=[],Qe=0,pn=null,yt=1,vt="";function tn(e,t){Mn[An++]=gs,Mn[An++]=vs,vs=e,gs=t}function Vh(e,t,n){Ge[Qe++]=yt,Ge[Qe++]=vt,Ge[Qe++]=pn,pn=e;var r=yt;e=vt;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var s=32-rt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yt=1<<32-rt(t)+i|n<<i|r,vt=s+e}else yt=1<<s|n<<i|r,vt=e}function Ll(e){e.return!==null&&(tn(e,1),Vh(e,1,0))}function Rl(e){for(;e===vs;)vs=Mn[--An],Mn[An]=null,gs=Mn[--An],Mn[An]=null;for(;e===pn;)pn=Ge[--Qe],Ge[Qe]=null,vt=Ge[--Qe],Ge[Qe]=null,yt=Ge[--Qe],Ge[Qe]=null}var Fe=null,ze=null,X=!1,nt=null;function _h(e,t){var n=be(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 Cc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Fe=e,ze=It(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Fe=e,ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=pn!==null?{id:yt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=be(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Fe=e,ze=null,!0):!1;default:return!1}}function Aa(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Da(e){if(X){var t=ze;if(t){var n=t;if(!Cc(e,t)){if(Aa(e))throw Error(E(418));t=It(n.nextSibling);var r=Fe;t&&Cc(e,t)?_h(r,n):(e.flags=e.flags&-4097|2,X=!1,Fe=e)}}else{if(Aa(e))throw Error(E(418));e.flags=e.flags&-4097|2,X=!1,Fe=e}}}function Pc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fe=e}function Li(e){if(e!==Fe)return!1;if(!X)return Pc(e),X=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ta(e.type,e.memoizedProps)),t&&(t=ze)){if(Aa(e))throw Oh(),Error(E(418));for(;t;)_h(e,t),t=It(t.nextSibling)}if(Pc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ze=It(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ze=null}}else ze=Fe?It(e.stateNode.nextSibling):null;return!0}function Oh(){for(var e=ze;e;)e=It(e.nextSibling)}function bn(){ze=Fe=null,X=!1}function Vl(e){nt===null?nt=[e]:nt.push(e)}var gg=Et.ReactCurrentBatchConfig;function fr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Ri(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Tc(e){var t=e._init;return t(e._payload)}function zh(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.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 i(m,p){return m=Wt(m,p),m.index=0,m.sibling=null,m}function s(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,y,S){return p===null||p.tag!==6?(p=zo(y,m.mode,S),p.return=m,p):(p=i(p,y),p.return=m,p)}function l(m,p,y,S){var w=y.type;return w===jn?d(m,p,y.props.children,S,y.key):p!==null&&(p.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Tc(w)===p.type)?(S=i(p,y.props),S.ref=fr(m,p,y),S.return=m,S):(S=ts(y.type,y.key,y.props,null,m.mode,S),S.ref=fr(m,p,y),S.return=m,S)}function u(m,p,y,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Fo(y,m.mode,S),p.return=m,p):(p=i(p,y.children||[]),p.return=m,p)}function d(m,p,y,S,w){return p===null||p.tag!==7?(p=dn(y,m.mode,S,w),p.return=m,p):(p=i(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=zo(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ki:return y=ts(p.type,p.key,p.props,null,m.mode,y),y.ref=fr(m,null,p),y.return=m,y;case kn:return p=Fo(p,m.mode,y),p.return=m,p;case At:var S=p._init;return f(m,S(p._payload),y)}if(gr(p)||ar(p))return p=dn(p,m.mode,y,null),p.return=m,p;Ri(m,p)}return null}function h(m,p,y,S){var w=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return w!==null?null:a(m,p,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:return y.key===w?l(m,p,y,S):null;case kn:return y.key===w?u(m,p,y,S):null;case At:return w=y._init,h(m,p,w(y._payload),S)}if(gr(y)||ar(y))return w!==null?null:d(m,p,y,S,null);Ri(m,y)}return null}function g(m,p,y,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(y)||null,a(p,m,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ki:return m=m.get(S.key===null?y:S.key)||null,l(p,m,S,w);case kn:return m=m.get(S.key===null?y:S.key)||null,u(p,m,S,w);case At:var k=S._init;return g(m,p,y,k(S._payload),w)}if(gr(S)||ar(S))return m=m.get(y)||null,d(p,m,S,w,null);Ri(p,S)}return null}function x(m,p,y,S){for(var w=null,k=null,P=p,T=p=0,L=null;P!==null&&T<y.length;T++){P.index>T?(L=P,P=null):L=P.sibling;var M=h(m,P,y[T],S);if(M===null){P===null&&(P=L);break}e&&P&&M.alternate===null&&t(m,P),p=s(M,p,T),k===null?w=M:k.sibling=M,k=M,P=L}if(T===y.length)return n(m,P),X&&tn(m,T),w;if(P===null){for(;T<y.length;T++)P=f(m,y[T],S),P!==null&&(p=s(P,p,T),k===null?w=P:k.sibling=P,k=P);return X&&tn(m,T),w}for(P=r(m,P);T<y.length;T++)L=g(P,m,T,y[T],S),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?T:L.key),p=s(L,p,T),k===null?w=L:k.sibling=L,k=L);return e&&P.forEach(function(K){return t(m,K)}),X&&tn(m,T),w}function v(m,p,y,S){var w=ar(y);if(typeof w!="function")throw Error(E(150));if(y=w.call(y),y==null)throw Error(E(151));for(var k=w=null,P=p,T=p=0,L=null,M=y.next();P!==null&&!M.done;T++,M=y.next()){P.index>T?(L=P,P=null):L=P.sibling;var K=h(m,P,M.value,S);if(K===null){P===null&&(P=L);break}e&&P&&K.alternate===null&&t(m,P),p=s(K,p,T),k===null?w=K:k.sibling=K,k=K,P=L}if(M.done)return n(m,P),X&&tn(m,T),w;if(P===null){for(;!M.done;T++,M=y.next())M=f(m,M.value,S),M!==null&&(p=s(M,p,T),k===null?w=M:k.sibling=M,k=M);return X&&tn(m,T),w}for(P=r(m,P);!M.done;T++,M=y.next())M=g(P,m,T,M.value,S),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?T:M.key),p=s(M,p,T),k===null?w=M:k.sibling=M,k=M);return e&&P.forEach(function(me){return t(m,me)}),X&&tn(m,T),w}function C(m,p,y,S){if(typeof y=="object"&&y!==null&&y.type===jn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:e:{for(var w=y.key,k=p;k!==null;){if(k.key===w){if(w=y.type,w===jn){if(k.tag===7){n(m,k.sibling),p=i(k,y.props.children),p.return=m,m=p;break e}}else if(k.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Tc(w)===k.type){n(m,k.sibling),p=i(k,y.props),p.ref=fr(m,k,y),p.return=m,m=p;break e}n(m,k);break}else t(m,k);k=k.sibling}y.type===jn?(p=dn(y.props.children,m.mode,S,y.key),p.return=m,m=p):(S=ts(y.type,y.key,y.props,null,m.mode,S),S.ref=fr(m,p,y),S.return=m,m=S)}return o(m);case kn:e:{for(k=y.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=i(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Fo(y,m.mode,S),p.return=m,m=p}return o(m);case At:return k=y._init,C(m,p,k(y._payload),S)}if(gr(y))return x(m,p,y,S);if(ar(y))return v(m,p,y,S);Ri(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,y),p.return=m,m=p):(n(m,p),p=zo(y,m.mode,S),p.return=m,m=p),o(m)):n(m,p)}return C}var Yn=zh(!0),Fh=zh(!1),xs=Xt(null),ws=null,Dn=null,_l=null;function Ol(){_l=Dn=ws=null}function zl(e){var t=xs.current;b(xs),e._currentValue=t}function La(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 Hn(e,t){ws=e,_l=Dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Me=!0),e.firstContext=null)}function Xe(e){var t=e._currentValue;if(_l!==e)if(e={context:e,memoizedValue:t,next:null},Dn===null){if(ws===null)throw Error(E(308));Dn=e,ws.dependencies={lanes:0,firstContext:e}}else Dn=Dn.next=e;return t}var an=null;function Fl(e){an===null?an=[e]:an.push(e)}function Ih(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Fl(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ct(e,r)}function Ct(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 Dt=!1;function Il(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bh(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 xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ct(e,n)}return i=r.interleaved,i===null?(t.next=t,Fl(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ct(e,n)}function Yi(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,Cl(e,n)}}function Ec(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 Ss(e,t,n,r){var i=e.updateQueue;Dt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,d=u=l=null,a=s;do{var h=a.lane,g=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,v=a;switch(h=t,g=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){f=x.call(g,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,h=typeof x=="function"?x.call(g,f,h):x,h==null)break e;f=ee({},f,h);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else g={eventTime:g,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=g,l=f):d=d.next=g,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);yn|=o,e.lanes=o,e.memoizedState=f}}function Nc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var pi={},dt=Xt(pi),Xr=Xt(pi),qr=Xt(pi);function ln(e){if(e===pi)throw Error(E(174));return e}function Bl(e,t){switch(G(qr,t),G(Xr,e),G(dt,pi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fa(t,e)}b(dt),G(dt,t)}function Xn(){b(dt),b(Xr),b(qr)}function Uh(e){ln(qr.current);var t=ln(dt.current),n=fa(t,e.type);t!==n&&(G(Xr,e),G(dt,n))}function Ul(e){Xr.current===e&&(b(dt),b(Xr))}var q=Xt(0);function ks(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 Do=[];function $l(){for(var e=0;e<Do.length;e++)Do[e]._workInProgressVersionPrimary=null;Do.length=0}var Xi=Et.ReactCurrentDispatcher,Lo=Et.ReactCurrentBatchConfig,mn=0,J=null,oe=null,ue=null,js=!1,Ar=!1,Zr=0,xg=0;function ye(){throw Error(E(321))}function Wl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!st(e[n],t[n]))return!1;return!0}function Hl(e,t,n,r,i,s){if(mn=s,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=e===null||e.memoizedState===null?jg:Cg,e=n(r,i),Ar){s=0;do{if(Ar=!1,Zr=0,25<=s)throw Error(E(301));s+=1,ue=oe=null,t.updateQueue=null,Xi.current=Pg,e=n(r,i)}while(Ar)}if(Xi.current=Cs,t=oe!==null&&oe.next!==null,mn=0,ue=oe=J=null,js=!1,t)throw Error(E(300));return e}function Kl(){var e=Zr!==0;return Zr=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?J.memoizedState=ue=e:ue=ue.next=e,ue}function qe(){if(oe===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=ue===null?J.memoizedState:ue.next;if(t!==null)ue=t,oe=e;else{if(e===null)throw Error(E(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},ue===null?J.memoizedState=ue=e:ue=ue.next=e}return ue}function Jr(e,t){return typeof t=="function"?t(e):t}function Ro(e){var t=qe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=oe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var d=u.lane;if((mn&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,J.lanes|=d,yn|=d}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,st(r,t.memoizedState)||(Me=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,J.lanes|=s,yn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vo(e){var t=qe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);st(s,t.memoizedState)||(Me=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function $h(){}function Wh(e,t){var n=J,r=qe(),i=t(),s=!st(r.memoizedState,i);if(s&&(r.memoizedState=i,Me=!0),r=r.queue,Gl(Gh.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,ei(9,Kh.bind(null,n,r,i,t),void 0,null),ce===null)throw Error(E(349));mn&30||Hh(n,t,i)}return i}function Hh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Kh(e,t,n,r){t.value=n,t.getSnapshot=r,Qh(t)&&bh(e)}function Gh(e,t,n){return n(function(){Qh(t)&&bh(e)})}function Qh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!st(e,n)}catch{return!0}}function bh(e){var t=Ct(e,1);t!==null&&it(t,e,1,-1)}function Mc(e){var t=lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:e},t.queue=e,e=e.dispatch=kg.bind(null,J,e),[t.memoizedState,e]}function ei(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.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 Yh(){return qe().memoizedState}function qi(e,t,n,r){var i=lt();J.flags|=e,i.memoizedState=ei(1|t,n,void 0,r===void 0?null:r)}function bs(e,t,n,r){var i=qe();r=r===void 0?null:r;var s=void 0;if(oe!==null){var o=oe.memoizedState;if(s=o.destroy,r!==null&&Wl(r,o.deps)){i.memoizedState=ei(t,n,s,r);return}}J.flags|=e,i.memoizedState=ei(1|t,n,s,r)}function Ac(e,t){return qi(8390656,8,e,t)}function Gl(e,t){return bs(2048,8,e,t)}function Xh(e,t){return bs(4,2,e,t)}function qh(e,t){return bs(4,4,e,t)}function Zh(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 Jh(e,t,n){return n=n!=null?n.concat([e]):null,bs(4,4,Zh.bind(null,t,e),n)}function Ql(){}function ep(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tp(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function np(e,t,n){return mn&21?(st(n,t)||(n=ah(),J.lanes|=n,yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Me=!0),e.memoizedState=n)}function wg(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{H=n,Lo.transition=r}}function rp(){return qe().memoizedState}function Sg(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ip(e))sp(t,n);else if(n=Ih(e,t,n,r),n!==null){var i=Pe();it(n,e,r,i),op(n,t,r)}}function kg(e,t,n){var r=$t(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ip(e))sp(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,st(a,o)){var l=t.interleaved;l===null?(i.next=i,Fl(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ih(e,t,i,r),n!==null&&(i=Pe(),it(n,e,r,i),op(n,t,r))}}function ip(e){var t=e.alternate;return e===J||t!==null&&t===J}function sp(e,t){Ar=js=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function op(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Cl(e,n)}}var Cs={readContext:Xe,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},jg={readContext:Xe,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:Ac,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qi(4194308,4,Zh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qi(4194308,4,e,t)},useInsertionEffect:function(e,t){return qi(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Sg.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Mc,useDebugValue:Ql,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Mc(!1),t=e[0];return e=wg.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,i=lt();if(X){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ce===null)throw Error(E(349));mn&30||Hh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Ac(Gh.bind(null,r,s,e),[e]),r.flags|=2048,ei(9,Kh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=lt(),t=ce.identifierPrefix;if(X){var n=vt,r=yt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=xg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Cg={readContext:Xe,useCallback:ep,useContext:Xe,useEffect:Gl,useImperativeHandle:Jh,useInsertionEffect:Xh,useLayoutEffect:qh,useMemo:tp,useReducer:Ro,useRef:Yh,useState:function(){return Ro(Jr)},useDebugValue:Ql,useDeferredValue:function(e){var t=qe();return np(t,oe.memoizedState,e)},useTransition:function(){var e=Ro(Jr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:$h,useSyncExternalStore:Wh,useId:rp,unstable_isNewReconciler:!1},Pg={readContext:Xe,useCallback:ep,useContext:Xe,useEffect:Gl,useImperativeHandle:Jh,useInsertionEffect:Xh,useLayoutEffect:qh,useMemo:tp,useReducer:Vo,useRef:Yh,useState:function(){return Vo(Jr)},useDebugValue:Ql,useDeferredValue:function(e){var t=qe();return oe===null?t.memoizedState=e:np(t,oe.memoizedState,e)},useTransition:function(){var e=Vo(Jr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:$h,useSyncExternalStore:Wh,useId:rp,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ra(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ys={isMounted:function(e){return(e=e._reactInternals)?xn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=$t(e),s=xt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Yi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=$t(e),s=xt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Yi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pe(),r=$t(e),i=xt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Bt(e,i,r),t!==null&&(it(t,e,r,n),Yi(t,e,r))}};function Dc(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,r)||!Gr(i,s):!0}function ap(e,t,n){var r=!1,i=Gt,s=t.contextType;return typeof s=="object"&&s!==null?s=Xe(s):(i=De(t)?hn:Se.current,r=t.contextTypes,s=(r=r!=null)?Qn(e,i):Gt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ys,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Lc(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&&Ys.enqueueReplaceState(t,t.state,null)}function Va(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Il(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Xe(s):(s=De(t)?hn:Se.current,i.context=Qn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Ra(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ys.enqueueReplaceState(i,i.state,null),Ss(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qn(e,t){try{var n="",r=t;do n+=Jy(r),r=r.return;while(r);var i=n}catch(s){i=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function ev(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=yo(e.type,!1),e;case 11:return e=yo(e.type.render,!1),e;case 1:return e=yo(e.type,!0),e;default:return""}}function la(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 jn:return"Fragment";case kn:return"Portal";case sa:return"Profiler";case wl:return"StrictMode";case oa:return"Suspense";case aa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Uf:return(e.displayName||"Context")+".Consumer";case Bf:return(e._context.displayName||"Context")+".Provider";case Sl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kl:return t=e.displayName||null,t!==null?t:la(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return la(e(t))}catch{}}return null}function tv(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 la(t);case 8:return t===wl?"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 Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nv(e){var t=Wf(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 i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ji(e){e._valueTracker||(e._valueTracker=nv(e))}function Hf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function os(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 ua(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(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 Kf(e,t){t=t.checked,t!=null&&xl(e,"checked",t,!1)}function ca(e,t){Kf(e,t);var n=Kt(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")?da(e,t.type,n):t.hasOwnProperty("defaultValue")&&da(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qu(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 da(e,t,n){(t!=="number"||os(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gr=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Kt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function fa(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Zu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(gr(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Kt(n)}}function Gf(e,t){var n=Kt(t.value),r=Kt(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 Ju(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Qf(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 ha(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ci,bf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ci=Ci||document.createElement("div"),Ci.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ci.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rv=["Webkit","ms","Moz","O"];Object.keys(Pr).forEach(function(e){rv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pr[t]=Pr[e]})});function Yf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pr.hasOwnProperty(e)&&Pr[e]?(""+t).trim():t+"px"}function Xf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Yf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var iv=ee({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 pa(e,t){if(t){if(iv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function 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 ya=null;function jl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var va=null,Un=null,$n=null;function ec(e){if(e=hi(e)){if(typeof va!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Gs(t),va(e.stateNode,e.type,t))}}function qf(e){Un?$n?$n.push(e):$n=[e]:Un=e}function Zf(){if(Un){var e=Un,t=$n;if($n=Un=null,ec(e),t)for(e=0;e<t.length;e++)ec(t[e])}}function Jf(e,t){return e(t)}function eh(){}var vo=!1;function th(e,t,n){if(vo)return e(t,n);vo=!0;try{return Jf(e,t,n)}finally{vo=!1,(Un!==null||$n!==null)&&(eh(),Zf())}}function Ur(e,t){var n=e.stateNode;if(n===null)return null;var r=Gs(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var ga=!1;if(kt)try{var lr={};Object.defineProperty(lr,"passive",{get:function(){ga=!0}}),window.addEventListener("test",lr,lr),window.removeEventListener("test",lr,lr)}catch{ga=!1}function sv(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Tr=!1,as=null,ls=!1,xa=null,ov={onError:function(e){Tr=!0,as=e}};function av(e,t,n,r,i,s,o,a,l){Tr=!1,as=null,sv.apply(ov,arguments)}function lv(e,t,n,r,i,s,o,a,l){if(av.apply(this,arguments),Tr){if(Tr){var u=as;Tr=!1,as=null}else throw Error(E(198));ls||(ls=!0,xa=u)}}function xn(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 nh(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 tc(e){if(xn(e)!==e)throw Error(E(188))}function uv(e){var t=e.alternate;if(!t){if(t=xn(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return tc(i),e;if(s===r)return tc(i),t;s=s.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function rh(e){return e=uv(e),e!==null?ih(e):null}function ih(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ih(e);if(t!==null)return t;e=e.sibling}return null}var sh=Be.unstable_scheduleCallback,nc=Be.unstable_cancelCallback,cv=Be.unstable_shouldYield,dv=Be.unstable_requestPaint,ie=Be.unstable_now,fv=Be.unstable_getCurrentPriorityLevel,Cl=Be.unstable_ImmediatePriority,oh=Be.unstable_UserBlockingPriority,us=Be.unstable_NormalPriority,hv=Be.unstable_LowPriority,ah=Be.unstable_IdlePriority,$s=null,ct=null;function pv(e){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot($s,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:vv,mv=Math.log,yv=Math.LN2;function vv(e){return e>>>=0,e===0?32:31-(mv(e)/yv|0)|0}var Pi=64,Ti=4194304;function xr(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 cs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=xr(a):(s&=o,s!==0&&(r=xr(s)))}else o=n&~i,o!==0?r=xr(o):s!==0&&(r=xr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),i=1<<n,r|=e[n],t&=~i;return r}function gv(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 xv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-rt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=gv(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function wa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function lh(){var e=Pi;return Pi<<=1,!(Pi&4194240)&&(Pi=64),e}function go(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function di(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function wv(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 i=31-rt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Pl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var H=0;function uh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ch,Tl,dh,fh,hh,Sa=!1,Ei=[],Ot=null,zt=null,Ft=null,$r=new Map,Wr=new Map,Lt=[],Sv="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 rc(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":$r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}function ur(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=hi(t),t!==null&&Tl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kv(e,t,n,r,i){switch(t){case"focusin":return Ot=ur(Ot,e,t,n,r,i),!0;case"dragenter":return zt=ur(zt,e,t,n,r,i),!0;case"mouseover":return Ft=ur(Ft,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return $r.set(s,ur($r.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,Wr.set(s,ur(Wr.get(s)||null,e,t,n,r,i)),!0}return!1}function ph(e){var t=on(e.target);if(t!==null){var n=xn(t);if(n!==null){if(t=n.tag,t===13){if(t=nh(n),t!==null){e.blockedOn=t,hh(e.priority,function(){dh(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 Gi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ka(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ya=r,n.target.dispatchEvent(r),ya=null}else return t=hi(n),t!==null&&Tl(t),e.blockedOn=n,!1;t.shift()}return!0}function ic(e,t,n){Gi(e)&&n.delete(t)}function jv(){Sa=!1,Ot!==null&&Gi(Ot)&&(Ot=null),zt!==null&&Gi(zt)&&(zt=null),Ft!==null&&Gi(Ft)&&(Ft=null),$r.forEach(ic),Wr.forEach(ic)}function cr(e,t){e.blockedOn===t&&(e.blockedOn=null,Sa||(Sa=!0,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,jv)))}function Hr(e){function t(i){return cr(i,e)}if(0<Ei.length){cr(Ei[0],e);for(var n=1;n<Ei.length;n++){var r=Ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ot!==null&&cr(Ot,e),zt!==null&&cr(zt,e),Ft!==null&&cr(Ft,e),$r.forEach(t),Wr.forEach(t),n=0;n<Lt.length;n++)r=Lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&(n=Lt[0],n.blockedOn===null);)ph(n),n.blockedOn===null&&Lt.shift()}var Wn=Et.ReactCurrentBatchConfig,ds=!0;function Cv(e,t,n,r){var i=H,s=Wn.transition;Wn.transition=null;try{H=1,El(e,t,n,r)}finally{H=i,Wn.transition=s}}function Pv(e,t,n,r){var i=H,s=Wn.transition;Wn.transition=null;try{H=4,El(e,t,n,r)}finally{H=i,Wn.transition=s}}function El(e,t,n,r){if(ds){var i=ka(e,t,n,r);if(i===null)No(e,t,r,fs,n),rc(e,r);else if(kv(i,e,t,n,r))r.stopPropagation();else if(rc(e,r),t&4&&-1<Sv.indexOf(e)){for(;i!==null;){var s=hi(i);if(s!==null&&ch(s),s=ka(e,t,n,r),s===null&&No(e,t,r,fs,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else No(e,t,r,null,n)}}var fs=null;function ka(e,t,n,r){if(fs=null,e=jl(r),e=on(e),e!==null)if(t=xn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=nh(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 fs=e,null}function mh(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 Cl:return 1;case oh:return 4;case us:case hv:return 16;case ah:return 536870912;default:return 16}default:return 16}}var Vt=null,Nl=null,Qi=null;function yh(){if(Qi)return Qi;var e,t=Nl,n=t.length,r,i="value"in Vt?Vt.value:Vt.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Qi=i.slice(e,1<r?1-r:void 0)}function bi(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 Ni(){return!0}function sc(){return!1}function We(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ni:sc,this.isPropagationStopped=sc,this}return ee(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=Ni)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ni)},persist:function(){},isPersistent:Ni}),t}var rr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ml=We(rr),fi=ee({},rr,{view:0,detail:0}),Tv=We(fi),xo,wo,dr,Ws=ee({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Al,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!==dr&&(dr&&e.type==="mousemove"?(xo=e.screenX-dr.screenX,wo=e.screenY-dr.screenY):wo=xo=0,dr=e),xo)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),oc=We(Ws),Ev=ee({},Ws,{dataTransfer:0}),Nv=We(Ev),Mv=ee({},fi,{relatedTarget:0}),So=We(Mv),Av=ee({},rr,{animationName:0,elapsedTime:0,pseudoElement:0}),Dv=We(Av),Lv=ee({},rr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rv=We(Lv),Vv=ee({},rr,{data:0}),ac=We(Vv),_v={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ov={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"},zv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zv[e])?!!t[e]:!1}function Al(){return Fv}var Iv=ee({},fi,{key:function(e){if(e.key){var t=_v[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ov[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Al,charCode:function(e){return e.type==="keypress"?bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bv=We(Iv),Uv=ee({},Ws,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lc=We(Uv),$v=ee({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Al}),Wv=We($v),Hv=ee({},rr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kv=We(Hv),Gv=ee({},Ws,{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}),Qv=We(Gv),bv=[9,13,27,32],Dl=kt&&"CompositionEvent"in window,Er=null;kt&&"documentMode"in document&&(Er=document.documentMode);var Yv=kt&&"TextEvent"in window&&!Er,vh=kt&&(!Dl||Er&&8<Er&&11>=Er),uc=" ",cc=!1;function gh(e,t){switch(e){case"keyup":return bv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cn=!1;function Xv(e,t){switch(e){case"compositionend":return xh(t);case"keypress":return t.which!==32?null:(cc=!0,uc);case"textInput":return e=t.data,e===uc&&cc?null:e;default:return null}}function qv(e,t){if(Cn)return e==="compositionend"||!Dl&&gh(e,t)?(e=yh(),Qi=Nl=Vt=null,Cn=!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 vh&&t.locale!=="ko"?null:t.data;default:return null}}var Zv={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 dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zv[e.type]:t==="textarea"}function wh(e,t,n,r){qf(r),t=hs(t,"onChange"),0<t.length&&(n=new Ml("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nr=null,Kr=null;function Jv(e){Dh(e,0)}function Hs(e){var t=En(e);if(Hf(t))return e}function eg(e,t){if(e==="change")return t}var Sh=!1;if(kt){var ko;if(kt){var jo="oninput"in document;if(!jo){var fc=document.createElement("div");fc.setAttribute("oninput","return;"),jo=typeof fc.oninput=="function"}ko=jo}else ko=!1;Sh=ko&&(!document.documentMode||9<document.documentMode)}function hc(){Nr&&(Nr.detachEvent("onpropertychange",kh),Kr=Nr=null)}function kh(e){if(e.propertyName==="value"&&Hs(Kr)){var t=[];wh(t,Kr,e,jl(e)),th(Jv,t)}}function tg(e,t,n){e==="focusin"?(hc(),Nr=t,Kr=n,Nr.attachEvent("onpropertychange",kh)):e==="focusout"&&hc()}function ng(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hs(Kr)}function rg(e,t){if(e==="click")return Hs(t)}function ig(e,t){if(e==="input"||e==="change")return Hs(t)}function sg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var st=typeof Object.is=="function"?Object.is:sg;function Gr(e,t){if(st(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 i=n[r];if(!ia.call(t,i)||!st(e[i],t[i]))return!1}return!0}function pc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mc(e,t){var n=pc(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=pc(n)}}function jh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ch(){for(var e=window,t=os();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=os(e.document)}return t}function Ll(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 og(e){var t=Ch(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jh(n.ownerDocument.documentElement,n)){if(r!==null&&Ll(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 i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=mc(n,s);var o=mc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ag=kt&&"documentMode"in document&&11>=document.documentMode,Pn=null,ja=null,Mr=null,Ca=!1;function yc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ca||Pn==null||Pn!==os(r)||(r=Pn,"selectionStart"in r&&Ll(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}),Mr&&Gr(Mr,r)||(Mr=r,r=hs(ja,"onSelect"),0<r.length&&(t=new Ml("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pn)))}function Mi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tn={animationend:Mi("Animation","AnimationEnd"),animationiteration:Mi("Animation","AnimationIteration"),animationstart:Mi("Animation","AnimationStart"),transitionend:Mi("Transition","TransitionEnd")},Co={},Ph={};kt&&(Ph=document.createElement("div").style,"AnimationEvent"in window||(delete Tn.animationend.animation,delete Tn.animationiteration.animation,delete Tn.animationstart.animation),"TransitionEvent"in window||delete Tn.transitionend.transition);function Ks(e){if(Co[e])return Co[e];if(!Tn[e])return e;var t=Tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ph)return Co[e]=t[n];return e}var Th=Ks("animationend"),Eh=Ks("animationiteration"),Nh=Ks("animationstart"),Mh=Ks("transitionend"),Ah=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 Yt(e,t){Ah.set(e,t),gn(t,[e])}for(var Po=0;Po<vc.length;Po++){var To=vc[Po],lg=To.toLowerCase(),ug=To[0].toUpperCase()+To.slice(1);Yt(lg,"on"+ug)}Yt(Th,"onAnimationEnd");Yt(Eh,"onAnimationIteration");Yt(Nh,"onAnimationStart");Yt("dblclick","onDoubleClick");Yt("focusin","onFocus");Yt("focusout","onBlur");Yt(Mh,"onTransitionEnd");Gn("onMouseEnter",["mouseout","mouseover"]);Gn("onMouseLeave",["mouseout","mouseover"]);Gn("onPointerEnter",["pointerout","pointerover"]);Gn("onPointerLeave",["pointerout","pointerover"]);gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));gn("onBeforeInput",["compositionend","keypress","textInput","paste"]);gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="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(" "),cg=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function gc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,lv(r,t,void 0,e),e.currentTarget=null}function Dh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;gc(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;gc(i,a,u),s=l}}}if(ls)throw e=xa,ls=!1,xa=null,e}function Q(e,t){var n=t[Ma];n===void 0&&(n=t[Ma]=new Set);var r=e+"__bubble";n.has(r)||(Lh(t,e,2,!1),n.add(r))}function Eo(e,t,n){var r=0;t&&(r|=4),Lh(n,e,r,t)}var Ai="_reactListening"+Math.random().toString(36).slice(2);function Qr(e){if(!e[Ai]){e[Ai]=!0,If.forEach(function(n){n!=="selectionchange"&&(cg.has(n)||Eo(n,!1,e),Eo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ai]||(t[Ai]=!0,Eo("selectionchange",!1,t))}}function Lh(e,t,n,r){switch(mh(t)){case 1:var i=Cv;break;case 4:i=Pv;break;default:i=El}n=i.bind(null,t,n,e),i=void 0,!ga||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function No(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=on(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}th(function(){var u=s,d=jl(n),f=[];e:{var h=Ah.get(e);if(h!==void 0){var g=Ml,x=e;switch(e){case"keypress":if(bi(n)===0)break e;case"keydown":case"keyup":g=Bv;break;case"focusin":x="focus",g=So;break;case"focusout":x="blur",g=So;break;case"beforeblur":case"afterblur":g=So;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=oc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Nv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Wv;break;case Th:case Eh:case Nh:g=Dv;break;case Mh:g=Kv;break;case"scroll":g=Tv;break;case"wheel":g=Qv;break;case"copy":case"cut":case"paste":g=Rv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=lc}var v=(t&4)!==0,C=!v&&e==="scroll",m=v?h!==null?h+"Capture":null:h;v=[];for(var p=u,y;p!==null;){y=p;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,m!==null&&(S=Ur(p,m),S!=null&&v.push(br(p,S,y)))),C)break;p=p.return}0<v.length&&(h=new g(h,x,null,n,d),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==ya&&(x=n.relatedTarget||n.fromElement)&&(on(x)||x[jt]))break e;if((g||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,g?(x=n.relatedTarget||n.toElement,g=u,x=x?on(x):null,x!==null&&(C=xn(x),x!==C||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=u),g!==x)){if(v=oc,S="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=lc,S="onPointerLeave",m="onPointerEnter",p="pointer"),C=g==null?h:En(g),y=x==null?h:En(x),h=new v(S,p+"leave",g,n,d),h.target=C,h.relatedTarget=y,S=null,on(d)===u&&(v=new v(m,p+"enter",x,n,d),v.target=y,v.relatedTarget=C,S=v),C=S,g&&x)t:{for(v=g,m=x,p=0,y=v;y;y=Sn(y))p++;for(y=0,S=m;S;S=Sn(S))y++;for(;0<p-y;)v=Sn(v),p--;for(;0<y-p;)m=Sn(m),y--;for(;p--;){if(v===m||m!==null&&v===m.alternate)break t;v=Sn(v),m=Sn(m)}v=null}else v=null;g!==null&&xc(f,h,g,v,!1),x!==null&&C!==null&&xc(f,C,x,v,!0)}}e:{if(h=u?En(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var w=eg;else if(dc(h))if(Sh)w=ig;else{w=ng;var k=tg}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=rg);if(w&&(w=w(e,u))){wh(f,w,n,d);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&da(h,"number",h.value)}switch(k=u?En(u):window,e){case"focusin":(dc(k)||k.contentEditable==="true")&&(Pn=k,ja=u,Mr=null);break;case"focusout":Mr=ja=Pn=null;break;case"mousedown":Ca=!0;break;case"contextmenu":case"mouseup":case"dragend":Ca=!1,yc(f,n,d);break;case"selectionchange":if(ag)break;case"keydown":case"keyup":yc(f,n,d)}var P;if(Dl)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Cn?gh(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(vh&&n.locale!=="ko"&&(Cn||T!=="onCompositionStart"?T==="onCompositionEnd"&&Cn&&(P=yh()):(Vt=d,Nl="value"in Vt?Vt.value:Vt.textContent,Cn=!0)),k=hs(u,T),0<k.length&&(T=new ac(T,e,null,n,d),f.push({event:T,listeners:k}),P?T.data=P:(P=xh(n),P!==null&&(T.data=P)))),(P=Yv?Xv(e,n):qv(e,n))&&(u=hs(u,"onBeforeInput"),0<u.length&&(d=new ac("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=P))}Dh(f,t)})}function br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function hs(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Ur(e,n),s!=null&&r.unshift(br(e,s,i)),s=Ur(e,t),s!=null&&r.push(br(e,s,i))),e=e.return}return r}function Sn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xc(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=Ur(n,s),l!=null&&o.unshift(br(n,l,a))):i||(l=Ur(n,s),l!=null&&o.push(br(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var dg=/\r\n?/g,fg=/\u0000|\uFFFD/g;function wc(e){return(typeof e=="string"?e:""+e).replace(dg,`
38
+ `).replace(fg,"")}function Di(e,t,n){if(t=wc(t),wc(e)!==t&&n)throw Error(E(425))}function ps(){}var Pa=null,Ta=null;function Ea(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 Na=typeof setTimeout=="function"?setTimeout:void 0,hg=typeof clearTimeout=="function"?clearTimeout:void 0,Sc=typeof Promise=="function"?Promise:void 0,pg=typeof queueMicrotask=="function"?queueMicrotask:typeof Sc<"u"?function(e){return Sc.resolve(null).then(e).catch(mg)}:Na;function mg(e){setTimeout(function(){throw e})}function Mo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Hr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Hr(t)}function It(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 kc(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 ir=Math.random().toString(36).slice(2),ut="__reactFiber$"+ir,Yr="__reactProps$"+ir,jt="__reactContainer$"+ir,Ma="__reactEvents$"+ir,yg="__reactListeners$"+ir,vg="__reactHandles$"+ir;function on(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kc(e);e!==null;){if(n=e[ut])return n;e=kc(e)}return t}e=n,n=e.parentNode}return null}function hi(e){return e=e[ut]||e[jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function Gs(e){return e[Yr]||null}var Aa=[],Nn=-1;function Xt(e){return{current:e}}function b(e){0>Nn||(e.current=Aa[Nn],Aa[Nn]=null,Nn--)}function G(e,t){Nn++,Aa[Nn]=e.current,e.current=t}var Gt={},Se=Xt(Gt),Ae=Xt(!1),hn=Gt;function Qn(e,t){var n=e.type.contextTypes;if(!n)return Gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function De(e){return e=e.childContextTypes,e!=null}function ms(){b(Ae),b(Se)}function jc(e,t,n){if(Se.current!==Gt)throw Error(E(168));G(Se,t),G(Ae,n)}function Rh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,tv(e)||"Unknown",i));return ee({},n,r)}function ys(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,hn=Se.current,G(Se,e),G(Ae,Ae.current),!0}function Cc(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Rh(e,t,hn),r.__reactInternalMemoizedMergedChildContext=e,b(Ae),b(Se),G(Se,e)):b(Ae),G(Ae,n)}var mt=null,Qs=!1,Ao=!1;function Vh(e){mt===null?mt=[e]:mt.push(e)}function gg(e){Qs=!0,Vh(e)}function qt(){if(!Ao&&mt!==null){Ao=!0;var e=0,t=H;try{var n=mt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,Qs=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),sh(Cl,qt),i}finally{H=t,Ao=!1}}return null}var Mn=[],An=0,vs=null,gs=0,Ge=[],Qe=0,pn=null,yt=1,vt="";function tn(e,t){Mn[An++]=gs,Mn[An++]=vs,vs=e,gs=t}function _h(e,t,n){Ge[Qe++]=yt,Ge[Qe++]=vt,Ge[Qe++]=pn,pn=e;var r=yt;e=vt;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var s=32-rt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yt=1<<32-rt(t)+i|n<<i|r,vt=s+e}else yt=1<<s|n<<i|r,vt=e}function Rl(e){e.return!==null&&(tn(e,1),_h(e,1,0))}function Vl(e){for(;e===vs;)vs=Mn[--An],Mn[An]=null,gs=Mn[--An],Mn[An]=null;for(;e===pn;)pn=Ge[--Qe],Ge[Qe]=null,vt=Ge[--Qe],Ge[Qe]=null,yt=Ge[--Qe],Ge[Qe]=null}var Fe=null,ze=null,X=!1,nt=null;function Oh(e,t){var n=be(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 Pc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Fe=e,ze=It(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Fe=e,ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=pn!==null?{id:yt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=be(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Fe=e,ze=null,!0):!1;default:return!1}}function Da(e){return(e.mode&1)!==0&&(e.flags&128)===0}function La(e){if(X){var t=ze;if(t){var n=t;if(!Pc(e,t)){if(Da(e))throw Error(E(418));t=It(n.nextSibling);var r=Fe;t&&Pc(e,t)?Oh(r,n):(e.flags=e.flags&-4097|2,X=!1,Fe=e)}}else{if(Da(e))throw Error(E(418));e.flags=e.flags&-4097|2,X=!1,Fe=e}}}function Tc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Fe=e}function Li(e){if(e!==Fe)return!1;if(!X)return Tc(e),X=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ea(e.type,e.memoizedProps)),t&&(t=ze)){if(Da(e))throw zh(),Error(E(418));for(;t;)Oh(e,t),t=It(t.nextSibling)}if(Tc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ze=It(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ze=null}}else ze=Fe?It(e.stateNode.nextSibling):null;return!0}function zh(){for(var e=ze;e;)e=It(e.nextSibling)}function bn(){ze=Fe=null,X=!1}function _l(e){nt===null?nt=[e]:nt.push(e)}var xg=Et.ReactCurrentBatchConfig;function fr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Ri(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ec(e){var t=e._init;return t(e._payload)}function Fh(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.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 i(m,p){return m=Wt(m,p),m.index=0,m.sibling=null,m}function s(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,y,S){return p===null||p.tag!==6?(p=zo(y,m.mode,S),p.return=m,p):(p=i(p,y),p.return=m,p)}function l(m,p,y,S){var w=y.type;return w===jn?d(m,p,y.props.children,S,y.key):p!==null&&(p.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Ec(w)===p.type)?(S=i(p,y.props),S.ref=fr(m,p,y),S.return=m,S):(S=ts(y.type,y.key,y.props,null,m.mode,S),S.ref=fr(m,p,y),S.return=m,S)}function u(m,p,y,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=Fo(y,m.mode,S),p.return=m,p):(p=i(p,y.children||[]),p.return=m,p)}function d(m,p,y,S,w){return p===null||p.tag!==7?(p=dn(y,m.mode,S,w),p.return=m,p):(p=i(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=zo(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ki:return y=ts(p.type,p.key,p.props,null,m.mode,y),y.ref=fr(m,null,p),y.return=m,y;case kn:return p=Fo(p,m.mode,y),p.return=m,p;case At:var S=p._init;return f(m,S(p._payload),y)}if(gr(p)||ar(p))return p=dn(p,m.mode,y,null),p.return=m,p;Ri(m,p)}return null}function h(m,p,y,S){var w=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return w!==null?null:a(m,p,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:return y.key===w?l(m,p,y,S):null;case kn:return y.key===w?u(m,p,y,S):null;case At:return w=y._init,h(m,p,w(y._payload),S)}if(gr(y)||ar(y))return w!==null?null:d(m,p,y,S,null);Ri(m,y)}return null}function g(m,p,y,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(y)||null,a(p,m,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ki:return m=m.get(S.key===null?y:S.key)||null,l(p,m,S,w);case kn:return m=m.get(S.key===null?y:S.key)||null,u(p,m,S,w);case At:var k=S._init;return g(m,p,y,k(S._payload),w)}if(gr(S)||ar(S))return m=m.get(y)||null,d(p,m,S,w,null);Ri(p,S)}return null}function x(m,p,y,S){for(var w=null,k=null,P=p,T=p=0,L=null;P!==null&&T<y.length;T++){P.index>T?(L=P,P=null):L=P.sibling;var M=h(m,P,y[T],S);if(M===null){P===null&&(P=L);break}e&&P&&M.alternate===null&&t(m,P),p=s(M,p,T),k===null?w=M:k.sibling=M,k=M,P=L}if(T===y.length)return n(m,P),X&&tn(m,T),w;if(P===null){for(;T<y.length;T++)P=f(m,y[T],S),P!==null&&(p=s(P,p,T),k===null?w=P:k.sibling=P,k=P);return X&&tn(m,T),w}for(P=r(m,P);T<y.length;T++)L=g(P,m,T,y[T],S),L!==null&&(e&&L.alternate!==null&&P.delete(L.key===null?T:L.key),p=s(L,p,T),k===null?w=L:k.sibling=L,k=L);return e&&P.forEach(function(K){return t(m,K)}),X&&tn(m,T),w}function v(m,p,y,S){var w=ar(y);if(typeof w!="function")throw Error(E(150));if(y=w.call(y),y==null)throw Error(E(151));for(var k=w=null,P=p,T=p=0,L=null,M=y.next();P!==null&&!M.done;T++,M=y.next()){P.index>T?(L=P,P=null):L=P.sibling;var K=h(m,P,M.value,S);if(K===null){P===null&&(P=L);break}e&&P&&K.alternate===null&&t(m,P),p=s(K,p,T),k===null?w=K:k.sibling=K,k=K,P=L}if(M.done)return n(m,P),X&&tn(m,T),w;if(P===null){for(;!M.done;T++,M=y.next())M=f(m,M.value,S),M!==null&&(p=s(M,p,T),k===null?w=M:k.sibling=M,k=M);return X&&tn(m,T),w}for(P=r(m,P);!M.done;T++,M=y.next())M=g(P,m,T,M.value,S),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?T:M.key),p=s(M,p,T),k===null?w=M:k.sibling=M,k=M);return e&&P.forEach(function(me){return t(m,me)}),X&&tn(m,T),w}function C(m,p,y,S){if(typeof y=="object"&&y!==null&&y.type===jn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ki:e:{for(var w=y.key,k=p;k!==null;){if(k.key===w){if(w=y.type,w===jn){if(k.tag===7){n(m,k.sibling),p=i(k,y.props.children),p.return=m,m=p;break e}}else if(k.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===At&&Ec(w)===k.type){n(m,k.sibling),p=i(k,y.props),p.ref=fr(m,k,y),p.return=m,m=p;break e}n(m,k);break}else t(m,k);k=k.sibling}y.type===jn?(p=dn(y.props.children,m.mode,S,y.key),p.return=m,m=p):(S=ts(y.type,y.key,y.props,null,m.mode,S),S.ref=fr(m,p,y),S.return=m,m=S)}return o(m);case kn:e:{for(k=y.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=i(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Fo(y,m.mode,S),p.return=m,m=p}return o(m);case At:return k=y._init,C(m,p,k(y._payload),S)}if(gr(y))return x(m,p,y,S);if(ar(y))return v(m,p,y,S);Ri(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,y),p.return=m,m=p):(n(m,p),p=zo(y,m.mode,S),p.return=m,m=p),o(m)):n(m,p)}return C}var Yn=Fh(!0),Ih=Fh(!1),xs=Xt(null),ws=null,Dn=null,Ol=null;function zl(){Ol=Dn=ws=null}function Fl(e){var t=xs.current;b(xs),e._currentValue=t}function Ra(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 Hn(e,t){ws=e,Ol=Dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Me=!0),e.firstContext=null)}function Xe(e){var t=e._currentValue;if(Ol!==e)if(e={context:e,memoizedValue:t,next:null},Dn===null){if(ws===null)throw Error(E(308));Dn=e,ws.dependencies={lanes:0,firstContext:e}}else Dn=Dn.next=e;return t}var an=null;function Il(e){an===null?an=[e]:an.push(e)}function Bh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Il(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ct(e,r)}function Ct(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 Dt=!1;function Bl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uh(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 xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ct(e,n)}return i=r.interleaved,i===null?(t.next=t,Il(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ct(e,n)}function Yi(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,Pl(e,n)}}function Nc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 Ss(e,t,n,r){var i=e.updateQueue;Dt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,d=u=l=null,a=s;do{var h=a.lane,g=a.eventTime;if((r&h)===h){d!==null&&(d=d.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,v=a;switch(h=t,g=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){f=x.call(g,f,h);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,h=typeof x=="function"?x.call(g,f,h):x,h==null)break e;f=ee({},f,h);break e;case 2:Dt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else g={eventTime:g,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=g,l=f):d=d.next=g,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);yn|=o,e.lanes=o,e.memoizedState=f}}function Mc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(E(191,i));i.call(r)}}}var pi={},dt=Xt(pi),Xr=Xt(pi),qr=Xt(pi);function ln(e){if(e===pi)throw Error(E(174));return e}function Ul(e,t){switch(G(qr,t),G(Xr,e),G(dt,pi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ha(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ha(t,e)}b(dt),G(dt,t)}function Xn(){b(dt),b(Xr),b(qr)}function $h(e){ln(qr.current);var t=ln(dt.current),n=ha(t,e.type);t!==n&&(G(Xr,e),G(dt,n))}function $l(e){Xr.current===e&&(b(dt),b(Xr))}var q=Xt(0);function ks(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 Do=[];function Wl(){for(var e=0;e<Do.length;e++)Do[e]._workInProgressVersionPrimary=null;Do.length=0}var Xi=Et.ReactCurrentDispatcher,Lo=Et.ReactCurrentBatchConfig,mn=0,J=null,oe=null,ue=null,js=!1,Ar=!1,Zr=0,wg=0;function ye(){throw Error(E(321))}function Hl(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!st(e[n],t[n]))return!1;return!0}function Kl(e,t,n,r,i,s){if(mn=s,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=e===null||e.memoizedState===null?Cg:Pg,e=n(r,i),Ar){s=0;do{if(Ar=!1,Zr=0,25<=s)throw Error(E(301));s+=1,ue=oe=null,t.updateQueue=null,Xi.current=Tg,e=n(r,i)}while(Ar)}if(Xi.current=Cs,t=oe!==null&&oe.next!==null,mn=0,ue=oe=J=null,js=!1,t)throw Error(E(300));return e}function Gl(){var e=Zr!==0;return Zr=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?J.memoizedState=ue=e:ue=ue.next=e,ue}function qe(){if(oe===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=ue===null?J.memoizedState:ue.next;if(t!==null)ue=t,oe=e;else{if(e===null)throw Error(E(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},ue===null?J.memoizedState=ue=e:ue=ue.next=e}return ue}function Jr(e,t){return typeof t=="function"?t(e):t}function Ro(e){var t=qe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=oe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var d=u.lane;if((mn&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=r):l=l.next=f,J.lanes|=d,yn|=d}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,st(r,t.memoizedState)||(Me=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,J.lanes|=s,yn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Vo(e){var t=qe(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);st(s,t.memoizedState)||(Me=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Wh(){}function Hh(e,t){var n=J,r=qe(),i=t(),s=!st(r.memoizedState,i);if(s&&(r.memoizedState=i,Me=!0),r=r.queue,Ql(Qh.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,ei(9,Gh.bind(null,n,r,i,t),void 0,null),ce===null)throw Error(E(349));mn&30||Kh(n,t,i)}return i}function Kh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Gh(e,t,n,r){t.value=n,t.getSnapshot=r,bh(t)&&Yh(e)}function Qh(e,t,n){return n(function(){bh(t)&&Yh(e)})}function bh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!st(e,n)}catch{return!0}}function Yh(e){var t=Ct(e,1);t!==null&&it(t,e,1,-1)}function Ac(e){var t=lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jr,lastRenderedState:e},t.queue=e,e=e.dispatch=jg.bind(null,J,e),[t.memoizedState,e]}function ei(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=J.updateQueue,t===null?(t={lastEffect:null,stores:null},J.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 Xh(){return qe().memoizedState}function qi(e,t,n,r){var i=lt();J.flags|=e,i.memoizedState=ei(1|t,n,void 0,r===void 0?null:r)}function bs(e,t,n,r){var i=qe();r=r===void 0?null:r;var s=void 0;if(oe!==null){var o=oe.memoizedState;if(s=o.destroy,r!==null&&Hl(r,o.deps)){i.memoizedState=ei(t,n,s,r);return}}J.flags|=e,i.memoizedState=ei(1|t,n,s,r)}function Dc(e,t){return qi(8390656,8,e,t)}function Ql(e,t){return bs(2048,8,e,t)}function qh(e,t){return bs(4,2,e,t)}function Zh(e,t){return bs(4,4,e,t)}function Jh(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 ep(e,t,n){return n=n!=null?n.concat([e]):null,bs(4,4,Jh.bind(null,t,e),n)}function bl(){}function tp(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hl(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function np(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Hl(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function rp(e,t,n){return mn&21?(st(n,t)||(n=lh(),J.lanes|=n,yn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Me=!0),e.memoizedState=n)}function Sg(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{H=n,Lo.transition=r}}function ip(){return qe().memoizedState}function kg(e,t,n){var r=$t(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sp(e))op(t,n);else if(n=Bh(e,t,n,r),n!==null){var i=Pe();it(n,e,r,i),ap(n,t,r)}}function jg(e,t,n){var r=$t(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sp(e))op(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,st(a,o)){var l=t.interleaved;l===null?(i.next=i,Il(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Bh(e,t,i,r),n!==null&&(i=Pe(),it(n,e,r,i),ap(n,t,r))}}function sp(e){var t=e.alternate;return e===J||t!==null&&t===J}function op(e,t){Ar=js=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ap(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pl(e,n)}}var Cs={readContext:Xe,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},Cg={readContext:Xe,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:Dc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qi(4194308,4,Jh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qi(4194308,4,e,t)},useInsertionEffect:function(e,t){return qi(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kg.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:Ac,useDebugValue:bl,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=Ac(!1),t=e[0];return e=Sg.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,i=lt();if(X){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),ce===null)throw Error(E(349));mn&30||Kh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Dc(Qh.bind(null,r,s,e),[e]),r.flags|=2048,ei(9,Gh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=lt(),t=ce.identifierPrefix;if(X){var n=vt,r=yt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=wg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Pg={readContext:Xe,useCallback:tp,useContext:Xe,useEffect:Ql,useImperativeHandle:ep,useInsertionEffect:qh,useLayoutEffect:Zh,useMemo:np,useReducer:Ro,useRef:Xh,useState:function(){return Ro(Jr)},useDebugValue:bl,useDeferredValue:function(e){var t=qe();return rp(t,oe.memoizedState,e)},useTransition:function(){var e=Ro(Jr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Wh,useSyncExternalStore:Hh,useId:ip,unstable_isNewReconciler:!1},Tg={readContext:Xe,useCallback:tp,useContext:Xe,useEffect:Ql,useImperativeHandle:ep,useInsertionEffect:qh,useLayoutEffect:Zh,useMemo:np,useReducer:Vo,useRef:Xh,useState:function(){return Vo(Jr)},useDebugValue:bl,useDeferredValue:function(e){var t=qe();return oe===null?t.memoizedState=e:rp(t,oe.memoizedState,e)},useTransition:function(){var e=Vo(Jr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Wh,useSyncExternalStore:Hh,useId:ip,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Va(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ys={isMounted:function(e){return(e=e._reactInternals)?xn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=$t(e),s=xt(r,i);s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Yi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=$t(e),s=xt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Bt(e,s,i),t!==null&&(it(t,e,i,r),Yi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pe(),r=$t(e),i=xt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Bt(e,i,r),t!==null&&(it(t,e,r,n),Yi(t,e,r))}};function Lc(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,r)||!Gr(i,s):!0}function lp(e,t,n){var r=!1,i=Gt,s=t.contextType;return typeof s=="object"&&s!==null?s=Xe(s):(i=De(t)?hn:Se.current,r=t.contextTypes,s=(r=r!=null)?Qn(e,i):Gt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ys,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Rc(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&&Ys.enqueueReplaceState(t,t.state,null)}function _a(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Bl(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Xe(s):(s=De(t)?hn:Se.current,i.context=Qn(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Va(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ys.enqueueReplaceState(i,i.state,null),Ss(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qn(e,t){try{var n="",r=t;do n+=ev(r),r=r.return;while(r);var i=n}catch(s){i=`
39
39
  Error generating stack: `+s.message+`
40
- `+s.stack}return{value:e,source:t,stack:i,digest:null}}function _o(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function _a(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Tg=typeof WeakMap=="function"?WeakMap:Map;function lp(e,t,n){n=xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ts||(Ts=!0,Ka=r),_a(e,t)},n}function up(e,t,n){n=xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){_a(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){_a(e,t),typeof r!="function"&&(Ut===null?Ut=new Set([this]):Ut.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Rc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Tg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Bg.bind(null,e,t,n),t.then(e,e))}function Vc(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 _c(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=xt(-1,1),t.tag=2,Bt(n,t,1))),n.lanes|=1),e)}var Eg=Et.ReactCurrentOwner,Me=!1;function Ce(e,t,n,r){t.child=e===null?Fh(t,null,n,r):Yn(t,e.child,n,r)}function Oc(e,t,n,r,i){n=n.render;var s=t.ref;return Hn(t,i),r=Hl(e,t,n,r,s,i),n=Kl(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(X&&n&&Ll(t),t.flags|=1,Ce(e,t,r,i),t.child)}function zc(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!tu(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,cp(e,t,s,r,i)):(e=ts(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Gr,n(o,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=Wt(s,r),e.ref=t.ref,e.return=t,t.child=e}function cp(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Gr(s,r)&&e.ref===t.ref)if(Me=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Me=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return Oa(e,t,n,r,i)}function dp(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(Rn,Ve),Ve|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,G(Rn,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,G(Rn,Ve),Ve|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,G(Rn,Ve),Ve|=r;return Ce(e,t,i,n),t.child}function fp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Oa(e,t,n,r,i){var s=De(n)?hn:Se.current;return s=Qn(t,s),Hn(t,i),n=Hl(e,t,n,r,s,i),r=Kl(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(X&&r&&Ll(t),t.flags|=1,Ce(e,t,n,i),t.child)}function Fc(e,t,n,r,i){if(De(n)){var s=!0;ys(t)}else s=!1;if(Hn(t,i),t.stateNode===null)Zi(e,t),ap(t,n,r),Va(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Xe(u):(u=De(n)?hn:Se.current,u=Qn(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Lc(t,o,r,u),Dt=!1;var h=t.memoizedState;o.state=h,Ss(t,r,o,i),l=t.memoizedState,a!==r||h!==l||Ae.current||Dt?(typeof d=="function"&&(Ra(t,n,d,r),l=t.memoizedState),(a=Dt||Dc(t,n,a,r,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Bh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:et(t.type,a),o.props=u,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Xe(l):(l=De(n)?hn:Se.current,l=Qn(t,l));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&Lc(t,o,r,l),Dt=!1,h=t.memoizedState,o.state=h,Ss(t,r,o,i);var x=t.memoizedState;a!==f||h!==x||Ae.current||Dt?(typeof g=="function"&&(Ra(t,n,g,r),x=t.memoizedState),(u=Dt||Dc(t,n,u,r,h,x,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return za(e,t,n,r,s,i)}function za(e,t,n,r,i,s){fp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&jc(t,n,!1),Pt(e,t,s);r=t.stateNode,Eg.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Yn(t,e.child,null,s),t.child=Yn(t,null,a,s)):Ce(e,t,a,s),t.memoizedState=r.state,i&&jc(t,n,!0),t.child}function hp(e){var t=e.stateNode;t.pendingContext?kc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kc(e,t.context,!1),Bl(e,t.containerInfo)}function Ic(e,t,n,r,i){return bn(),Vl(i),t.flags|=256,Ce(e,t,n,r),t.child}var Fa={dehydrated:null,treeContext:null,retryLane:0};function Ia(e){return{baseLanes:e,cachePool:null,transitions:null}}function pp(e,t,n){var r=t.pendingProps,i=q.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),G(q,i&1),e===null)return Da(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Zs(o,r,0,null),e=dn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ia(n),t.memoizedState=Fa,e):bl(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Ng(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Wt(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Wt(a,s):(s=dn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Ia(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Fa,r}return s=e.child,e=s.sibling,r=Wt(s,{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 bl(e,t){return t=Zs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,r){return r!==null&&Vl(r),Yn(t,e.child,null,n),e=bl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ng(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=_o(Error(E(422))),Vi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Zs({mode:"visible",children:r.children},i,0,null),s=dn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Yn(t,e.child,null,o),t.child.memoizedState=Ia(o),t.memoizedState=Fa,s);if(!(t.mode&1))return Vi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(E(419)),r=_o(s,r,void 0),Vi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Me||a){if(r=ce,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ct(e,i),it(r,e,i,-1))}return eu(),r=_o(Error(E(421))),Vi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ug.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ze=It(i.nextSibling),Fe=t,X=!0,nt=null,e!==null&&(Ge[Qe++]=yt,Ge[Qe++]=vt,Ge[Qe++]=pn,yt=e.id,vt=e.overflow,pn=t),t=bl(t,r.children),t.flags|=4096,t)}function Bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),La(e.return,t,n)}function Oo(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function mp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ce(e,t,r.children,n),r=q.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&&Bc(e,n,t);else if(e.tag===19)Bc(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(G(q,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ks(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ks(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oo(t,!0,n,null,s);break;case"together":Oo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mg(e,t,n){switch(t.tag){case 3:hp(t),bn();break;case 5:Uh(t);break;case 1:De(t.type)&&ys(t);break;case 4:Bl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;G(xs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(G(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?pp(e,t,n):(G(q,q.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);G(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,dp(e,t,n)}return Pt(e,t,n)}var yp,Ba,vp,gp;yp=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}};Ba=function(){};vp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ln(dt.current);var s=null;switch(n){case"input":i=la(e,i),r=la(e,r),s=[];break;case"select":i=ee({},i,{value:void 0}),r=ee({},r,{value:void 0}),s=[];break;case"textarea":i=da(e,i),r=da(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ps)}ha(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ir.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ir.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Q("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};gp=function(e,t,n,r){n!==r&&(t.flags|=4)};function hr(e,t){if(!X)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 ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ag(e,t,n){var r=t.pendingProps;switch(Rl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return De(t.type)&&ms(),ve(t),null;case 3:return r=t.stateNode,Xn(),b(Ae),b(Se),$l(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(ba(nt),nt=null))),Ba(e,t),ve(t),null;case 5:Ul(t);var i=ln(qr.current);if(n=t.type,e!==null&&t.stateNode!=null)vp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return ve(t),null}if(e=ln(dt.current),Li(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ut]=t,r[Yr]=s,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(i=0;i<wr.length;i++)Q(wr[i],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":Yu(r,s),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Q("invalid",r);break;case"textarea":qu(r,s),Q("invalid",r)}ha(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Di(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Di(r.textContent,a,e),i=["children",""+a]):Ir.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Q("scroll",r)}switch(n){case"input":ji(r),Xu(r,s,!0);break;case"textarea":ji(r),Zu(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ps)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Gf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[Yr]=r,yp(e,t,!1,!1),t.stateNode=e;e:{switch(o=pa(n,r),n){case"dialog":Q("cancel",e),Q("close",e),i=r;break;case"iframe":case"object":case"embed":Q("load",e),i=r;break;case"video":case"audio":for(i=0;i<wr.length;i++)Q(wr[i],e);i=r;break;case"source":Q("error",e),i=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),i=r;break;case"details":Q("toggle",e),i=r;break;case"input":Yu(e,r),i=la(e,r),Q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ee({},r,{value:void 0}),Q("invalid",e);break;case"textarea":qu(e,r),i=da(e,r),Q("invalid",e);break;default:i=r}ha(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Yf(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Qf(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Br(e,l):typeof l=="number"&&Br(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ir.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Q("scroll",e):l!=null&&gl(e,s,l,o))}switch(n){case"input":ji(e),Xu(e,r,!1);break;case"textarea":ji(e),Zu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Kt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Bn(e,!!r.multiple,s,!1):r.defaultValue!=null&&Bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ps)}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 ve(t),null;case 6:if(e&&t.stateNode!=null)gp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=ln(qr.current),ln(dt.current),Li(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(s=r.nodeValue!==n)&&(e=Fe,e!==null))switch(e.tag){case 3:Di(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Di(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return ve(t),null;case 13:if(b(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(X&&ze!==null&&t.mode&1&&!(t.flags&128))Oh(),bn(),t.flags|=98560,s=!1;else if(s=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(E(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(E(317));s[ut]=t}else bn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ve(t),s=!1}else nt!==null&&(ba(nt),nt=null),s=!0;if(!s)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||q.current&1?ae===0&&(ae=3):eu())),t.updateQueue!==null&&(t.flags|=4),ve(t),null);case 4:return Xn(),Ba(e,t),e===null&&Qr(t.stateNode.containerInfo),ve(t),null;case 10:return zl(t.type._context),ve(t),null;case 17:return De(t.type)&&ms(),ve(t),null;case 19:if(b(q),s=t.memoizedState,s===null)return ve(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)hr(s,!1);else{if(ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ks(e),o!==null){for(t.flags|=128,hr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return G(q,q.current&1|2),t.child}e=e.sibling}s.tail!==null&&ie()>Zn&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!X)return ve(t),null}else 2*ie()-s.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ie(),t.sibling=null,n=q.current,G(q,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Jl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Dg(e,t){switch(Rl(t),t.tag){case 1:return De(t.type)&&ms(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xn(),b(Ae),b(Se),$l(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ul(t),null;case 13:if(b(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return b(q),null;case 4:return Xn(),null;case 10:return zl(t.type._context),null;case 22:case 23:return Jl(),null;case 24:return null;default:return null}}var _i=!1,xe=!1,Lg=typeof WeakSet=="function"?WeakSet:Set,D=null;function Ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function Ua(e,t,n){try{n()}catch(r){ne(e,t,r)}}var Uc=!1;function Rg(e,t){if(Ca=ds,e=jh(),Dl(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++u===i&&(a=o),h===s&&++d===r&&(l=o),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pa={focusedElem:e,selectionRange:n},ds=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,C=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:et(t.type,v),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=Uc,Uc=!1,x}function Dr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Ua(t,n,s)}i=i.next}while(i!==r)}}function Xs(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 $a(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 xp(e){var t=e.alternate;t!==null&&(e.alternate=null,xp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Yr],delete t[Na],delete t[mg],delete t[yg])),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 wp(e){return e.tag===5||e.tag===3||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wp(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 Wa(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=ps));else if(r!==4&&(e=e.child,e!==null))for(Wa(e,t,n),e=e.sibling;e!==null;)Wa(e,t,n),e=e.sibling}function Ha(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(Ha(e,t,n),e=e.sibling;e!==null;)Ha(e,t,n),e=e.sibling}var de=null,tt=!1;function Nt(e,t,n){for(n=n.child;n!==null;)Sp(e,t,n),n=n.sibling}function Sp(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount($s,n)}catch{}switch(n.tag){case 5:xe||Ln(n,t);case 6:var r=de,i=tt;de=null,Nt(e,t,n),de=r,tt=i,de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?Mo(e.parentNode,n):e.nodeType===1&&Mo(e,n),Hr(e)):Mo(de,n.stateNode));break;case 4:r=de,i=tt,de=n.stateNode.containerInfo,tt=!0,Nt(e,t,n),de=r,tt=i;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Ua(n,t,o),i=i.next}while(i!==r)}Nt(e,t,n);break;case 1:if(!xe&&(Ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ne(n,t,a)}Nt(e,t,n);break;case 21:Nt(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,Nt(e,t,n),xe=r):Nt(e,t,n);break;default:Nt(e,t,n)}}function Wc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Lg),t.forEach(function(r){var i=$g.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:de=a.stateNode,tt=!1;break e;case 3:de=a.stateNode.containerInfo,tt=!0;break e;case 4:de=a.stateNode.containerInfo,tt=!0;break e}a=a.return}if(de===null)throw Error(E(160));Sp(s,o,i),de=null,tt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ne(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kp(t,e),t=t.sibling}function kp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ze(t,e),at(e),r&4){try{Dr(3,e,e.return),Xs(3,e)}catch(v){ne(e,e.return,v)}try{Dr(5,e,e.return)}catch(v){ne(e,e.return,v)}}break;case 1:Ze(t,e),at(e),r&512&&n!==null&&Ln(n,n.return);break;case 5:if(Ze(t,e),at(e),r&512&&n!==null&&Ln(n,n.return),e.flags&32){var i=e.stateNode;try{Br(i,"")}catch(v){ne(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Hf(i,s),pa(a,o);var u=pa(a,s);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?Yf(i,f):d==="dangerouslySetInnerHTML"?Qf(i,f):d==="children"?Br(i,f):gl(i,d,f,u)}switch(a){case"input":ua(i,s);break;case"textarea":Kf(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?Bn(i,!!s.multiple,g,!1):h!==!!s.multiple&&(s.defaultValue!=null?Bn(i,!!s.multiple,s.defaultValue,!0):Bn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Yr]=s}catch(v){ne(e,e.return,v)}}break;case 6:if(Ze(t,e),at(e),r&4){if(e.stateNode===null)throw Error(E(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(v){ne(e,e.return,v)}}break;case 3:if(Ze(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hr(t.containerInfo)}catch(v){ne(e,e.return,v)}break;case 4:Ze(t,e),at(e);break;case 13:Ze(t,e),at(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(ql=ie())),r&4&&Wc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(xe=(u=xe)||d,Ze(t,e),xe=u):Ze(t,e),at(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(f=D=d;D!==null;){switch(h=D,g=h.child,h.tag){case 0:case 11:case 14:case 15:Dr(4,h,h.return);break;case 1:Ln(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){ne(r,n,v)}}break;case 5:Ln(h,h.return);break;case 22:if(h.memoizedState!==null){Kc(f);continue}}g!==null?(g.return=h,D=g):Kc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=bf("display",o))}catch(v){ne(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){ne(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ze(t,e),at(e),r&4&&Wc(e);break;case 21:break;default:Ze(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(wp(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Br(i,""),r.flags&=-33);var s=$c(e);Ha(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=$c(e);Wa(e,a,o);break;default:throw Error(E(161))}}catch(l){ne(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vg(e,t,n){D=e,jp(e)}function jp(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||_i;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||xe;a=_i;var u=xe;if(_i=o,(xe=l)&&!u)for(D=i;D!==null;)o=D,l=o.child,o.tag===22&&o.memoizedState!==null?Gc(i):l!==null?(l.return=o,D=l):Gc(i);for(;s!==null;)D=s,jp(s),s=s.sibling;D=i,_i=a,xe=u}Hc(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,D=s):Hc(e)}}function Hc(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:xe||Xs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!xe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Nc(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Nc(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Hr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}xe||t.flags&512&&$a(t)}catch(h){ne(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Kc(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Gc(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Xs(4,t)}catch(l){ne(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ne(t,i,l)}}var s=t.return;try{$a(t)}catch(l){ne(t,s,l)}break;case 5:var o=t.return;try{$a(t)}catch(l){ne(t,o,l)}}}catch(l){ne(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var _g=Math.ceil,Ps=Et.ReactCurrentDispatcher,Yl=Et.ReactCurrentOwner,Ye=Et.ReactCurrentBatchConfig,W=0,ce=null,se=null,he=0,Ve=0,Rn=Xt(0),ae=0,ti=null,yn=0,qs=0,Xl=0,Lr=null,Ne=null,ql=0,Zn=1/0,pt=null,Ts=!1,Ka=null,Ut=null,Oi=!1,_t=null,Es=0,Rr=0,Ga=null,Ji=-1,es=0;function Pe(){return W&6?ie():Ji!==-1?Ji:Ji=ie()}function $t(e){return e.mode&1?W&2&&he!==0?he&-he:gg.transition!==null?(es===0&&(es=ah()),es):(e=H,e!==0||(e=window.event,e=e===void 0?16:ph(e.type)),e):1}function it(e,t,n,r){if(50<Rr)throw Rr=0,Ga=null,Error(E(185));di(e,n,r),(!(W&2)||e!==ce)&&(e===ce&&(!(W&2)&&(qs|=n),ae===4&&Rt(e,he)),Le(e,r),n===1&&W===0&&!(t.mode&1)&&(Zn=ie()+500,Qs&&qt()))}function Le(e,t){var n=e.callbackNode;gv(e,t);var r=cs(e,e===ce?he:0);if(r===0)n!==null&&tc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&tc(n),t===1)e.tag===0?vg(Qc.bind(null,e)):Rh(Qc.bind(null,e)),hg(function(){!(W&6)&&qt()}),n=null;else{switch(lh(r)){case 1:n=jl;break;case 4:n=sh;break;case 16:n=us;break;case 536870912:n=oh;break;default:n=us}n=Dp(n,Cp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Cp(e,t){if(Ji=-1,es=0,W&6)throw Error(E(327));var n=e.callbackNode;if(Kn()&&e.callbackNode!==n)return null;var r=cs(e,e===ce?he:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ns(e,r);else{t=r;var i=W;W|=2;var s=Tp();(ce!==e||he!==t)&&(pt=null,Zn=ie()+500,cn(e,t));do try{Fg();break}catch(a){Pp(e,a)}while(!0);Ol(),Ps.current=s,W=i,se!==null?t=0:(ce=null,he=0,t=ae)}if(t!==0){if(t===2&&(i=xa(e),i!==0&&(r=i,t=Qa(e,i))),t===1)throw n=ti,cn(e,0),Rt(e,r),Le(e,ie()),n;if(t===6)Rt(e,r);else{if(i=e.current.alternate,!(r&30)&&!Og(i)&&(t=Ns(e,r),t===2&&(s=xa(e),s!==0&&(r=s,t=Qa(e,s))),t===1))throw n=ti,cn(e,0),Rt(e,r),Le(e,ie()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:nn(e,Ne,pt);break;case 3:if(Rt(e,r),(r&130023424)===r&&(t=ql+500-ie(),10<t)){if(cs(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Pe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ea(nn.bind(null,e,Ne,pt),t);break}nn(e,Ne,pt);break;case 4:if(Rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-rt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_g(r/1960))-r,10<r){e.timeoutHandle=Ea(nn.bind(null,e,Ne,pt),r);break}nn(e,Ne,pt);break;case 5:nn(e,Ne,pt);break;default:throw Error(E(329))}}}return Le(e,ie()),e.callbackNode===n?Cp.bind(null,e):null}function Qa(e,t){var n=Lr;return e.current.memoizedState.isDehydrated&&(cn(e,t).flags|=256),e=Ns(e,t),e!==2&&(t=Ne,Ne=n,t!==null&&ba(t)),e}function ba(e){Ne===null?Ne=e:Ne.push.apply(Ne,e)}function Og(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 i=n[r],s=i.getSnapshot;i=i.value;try{if(!st(s(),i))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 Rt(e,t){for(t&=~Xl,t&=~qs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function Qc(e){if(W&6)throw Error(E(327));Kn();var t=cs(e,0);if(!(t&1))return Le(e,ie()),null;var n=Ns(e,t);if(e.tag!==0&&n===2){var r=xa(e);r!==0&&(t=r,n=Qa(e,r))}if(n===1)throw n=ti,cn(e,0),Rt(e,t),Le(e,ie()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nn(e,Ne,pt),Le(e,ie()),null}function Zl(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(Zn=ie()+500,Qs&&qt())}}function vn(e){_t!==null&&_t.tag===0&&!(W&6)&&Kn();var t=W;W|=1;var n=Ye.transition,r=H;try{if(Ye.transition=null,H=1,e)return e()}finally{H=r,Ye.transition=n,W=t,!(W&6)&&qt()}}function Jl(){Ve=Rn.current,b(Rn)}function cn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,fg(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(Rl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ms();break;case 3:Xn(),b(Ae),b(Se),$l();break;case 5:Ul(r);break;case 4:Xn();break;case 13:b(q);break;case 19:b(q);break;case 10:zl(r.type._context);break;case 22:case 23:Jl()}n=n.return}if(ce=e,se=e=Wt(e.current,null),he=Ve=t,ae=0,ti=null,Xl=qs=yn=0,Ne=Lr=null,an!==null){for(t=0;t<an.length;t++)if(n=an[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}an=null}return e}function Pp(e,t){do{var n=se;try{if(Ol(),Xi.current=Cs,js){for(var r=J.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}js=!1}if(mn=0,ue=oe=J=null,Ar=!1,Zr=0,Yl.current=null,n===null||n.return===null){ae=1,ti=t,se=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=he,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=Vc(o);if(g!==null){g.flags&=-257,_c(g,o,a,s,t),g.mode&1&&Rc(s,u,t),t=g,l=u;var x=t.updateQueue;if(x===null){var v=new Set;v.add(l),t.updateQueue=v}else x.add(l);break e}else{if(!(t&1)){Rc(s,u,t),eu();break e}l=Error(E(426))}}else if(X&&a.mode&1){var C=Vc(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),_c(C,o,a,s,t),Vl(qn(l,a));break e}}s=l=qn(l,a),ae!==4&&(ae=2),Lr===null?Lr=[s]:Lr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=lp(s,l,t);Ec(s,m);break e;case 1:a=l;var p=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ut===null||!Ut.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=up(s,a,t);Ec(s,S);break e}}s=s.return}while(s!==null)}Np(n)}catch(w){t=w,se===n&&n!==null&&(se=n=n.return);continue}break}while(!0)}function Tp(){var e=Ps.current;return Ps.current=Cs,e===null?Cs:e}function eu(){(ae===0||ae===3||ae===2)&&(ae=4),ce===null||!(yn&268435455)&&!(qs&268435455)||Rt(ce,he)}function Ns(e,t){var n=W;W|=2;var r=Tp();(ce!==e||he!==t)&&(pt=null,cn(e,t));do try{zg();break}catch(i){Pp(e,i)}while(!0);if(Ol(),W=n,Ps.current=r,se!==null)throw Error(E(261));return ce=null,he=0,ae}function zg(){for(;se!==null;)Ep(se)}function Fg(){for(;se!==null&&!uv();)Ep(se)}function Ep(e){var t=Ap(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?Np(e):se=t,Yl.current=null}function Np(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Dg(n,t),n!==null){n.flags&=32767,se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ae=6,se=null;return}}else if(n=Ag(n,t,Ve),n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);ae===0&&(ae=5)}function nn(e,t,n){var r=H,i=Ye.transition;try{Ye.transition=null,H=1,Ig(e,t,n,r)}finally{Ye.transition=i,H=r}return null}function Ig(e,t,n,r){do Kn();while(_t!==null);if(W&6)throw Error(E(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(xv(e,s),e===ce&&(se=ce=null,he=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Oi||(Oi=!0,Dp(us,function(){return Kn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ye.transition,Ye.transition=null;var o=H;H=1;var a=W;W|=4,Yl.current=null,Rg(e,n),kp(n,e),sg(Pa),ds=!!Ca,Pa=Ca=null,e.current=n,Vg(n),cv(),W=a,H=o,Ye.transition=s}else e.current=n;if(Oi&&(Oi=!1,_t=e,Es=i),s=e.pendingLanes,s===0&&(Ut=null),hv(n.stateNode),Le(e,ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ts)throw Ts=!1,e=Ka,Ka=null,e;return Es&1&&e.tag!==0&&Kn(),s=e.pendingLanes,s&1?e===Ga?Rr++:(Rr=0,Ga=e):Rr=0,qt(),null}function Kn(){if(_t!==null){var e=lh(Es),t=Ye.transition,n=H;try{if(Ye.transition=null,H=16>e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,Es=0,W&6)throw Error(E(331));var i=W;for(W|=4,D=e.current;D!==null;){var s=D,o=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(D=u;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:Dr(8,d,s)}var f=d.child;if(f!==null)f.return=d,D=f;else for(;D!==null;){d=D;var h=d.sibling,g=d.return;if(xp(d),d===u){D=null;break}if(h!==null){h.return=g,D=h;break}D=g}}}var x=s.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var C=v.sibling;v.sibling=null,v=C}while(v!==null)}}D=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,D=o;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Dr(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var p=e.current;for(D=p;D!==null;){o=D;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,D=y;else e:for(o=p;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Xs(9,a)}}catch(w){ne(a,a.return,w)}if(a===o){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(W=i,qt(),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot($s,e)}catch{}r=!0}return r}finally{H=n,Ye.transition=t}}return!1}function bc(e,t,n){t=qn(n,t),t=lp(e,t,1),e=Bt(e,t,1),t=Pe(),e!==null&&(di(e,1,t),Le(e,t))}function ne(e,t,n){if(e.tag===3)bc(e,e,n);else for(;t!==null;){if(t.tag===3){bc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ut===null||!Ut.has(r))){e=qn(n,e),e=up(t,e,1),t=Bt(t,e,1),e=Pe(),t!==null&&(di(t,1,e),Le(t,e));break}}t=t.return}}function Bg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Pe(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(he&n)===n&&(ae===4||ae===3&&(he&130023424)===he&&500>ie()-ql?cn(e,0):Xl|=n),Le(e,t)}function Mp(e,t){t===0&&(e.mode&1?(t=Ti,Ti<<=1,!(Ti&130023424)&&(Ti=4194304)):t=1);var n=Pe();e=Ct(e,t),e!==null&&(di(e,t,n),Le(e,n))}function Ug(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mp(e,n)}function $g(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Mp(e,n)}var Ap;Ap=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)Me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Me=!1,Mg(e,t,n);Me=!!(e.flags&131072)}else Me=!1,X&&t.flags&1048576&&Vh(t,gs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var i=Qn(t,Se.current);Hn(t,n),i=Hl(null,t,r,e,i,n);var s=Kl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,De(r)?(s=!0,ys(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Il(t),i.updater=Ys,t.stateNode=i,i._reactInternals=t,Va(t,r,e,n),t=za(null,t,r,!0,s,n)):(t.tag=0,X&&s&&Ll(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Hg(r),e=et(r,e),i){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=Fc(null,t,r,e,n);break e;case 11:t=Oc(null,t,r,e,n);break e;case 14:t=zc(null,t,r,et(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Oa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Fc(e,t,r,i,n);case 3:e:{if(hp(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Bh(e,t),Ss(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qn(Error(E(423)),t),t=Ic(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(E(424)),t),t=Ic(e,t,r,n,i);break e}else for(ze=It(t.stateNode.containerInfo.firstChild),Fe=t,X=!0,nt=null,n=Fh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),r===i){t=Pt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return Uh(t),e===null&&Da(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Ta(r,i)?o=null:s!==null&&Ta(r,s)&&(t.flags|=32),fp(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&Da(t),null;case 13:return pp(e,t,n);case 4:return Bl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Oc(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,G(xs,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!Ae.current){t=Pt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=xt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),La(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),La(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hn(t,n),i=Xe(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),zc(e,t,r,i,n);case 15:return cp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Zi(e,t),t.tag=1,De(r)?(e=!0,ys(t)):e=!1,Hn(t,n),ap(t,r,i),Va(t,r,i,n),za(null,t,r,!0,e,n);case 19:return mp(e,t,n);case 22:return dp(e,t,n)}throw Error(E(156,t.tag))};function Dp(e,t){return ih(e,t)}function Wg(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 be(e,t,n,r){return new Wg(e,t,n,r)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hg(e){if(typeof e=="function")return tu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wl)return 11;if(e===Sl)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=be(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 ts(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")tu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case jn:return dn(n.children,i,s,t);case xl:o=8,i|=8;break;case ia:return e=be(12,n,t,i|2),e.elementType=ia,e.lanes=s,e;case sa:return e=be(13,n,t,i),e.elementType=sa,e.lanes=s,e;case oa:return e=be(19,n,t,i),e.elementType=oa,e.lanes=s,e;case Uf:return Zs(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case If:o=10;break e;case Bf:o=9;break e;case wl:o=11;break e;case Sl:o=14;break e;case At:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=be(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function dn(e,t,n,r){return e=be(7,e,r,t),e.lanes=n,e}function Zs(e,t,n,r){return e=be(22,e,r,t),e.elementType=Uf,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=be(6,e,null,t),e.lanes=n,e}function Fo(e,t,n){return t=be(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kg(e,t,n,r,i){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=go(0),this.expirationTimes=go(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nu(e,t,n,r,i,s,o,a,l){return e=new Kg(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=be(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Il(s),e}function Gg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Lp(e){if(!e)return Gt;e=e._reactInternals;e:{if(xn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(De(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(De(n))return Lh(e,n,t)}return t}function Rp(e,t,n,r,i,s,o,a,l){return e=nu(n,r,!0,e,i,s,o,a,l),e.context=Lp(null),n=e.current,r=Pe(),i=$t(n),s=xt(r,i),s.callback=t??null,Bt(n,s,i),e.current.lanes=i,di(e,i,r),Le(e,r),e}function Js(e,t,n,r){var i=t.current,s=Pe(),o=$t(i);return n=Lp(n),t.context===null?t.context=n:t.pendingContext=n,t=xt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Bt(i,t,o),e!==null&&(it(e,i,o,s),Yi(e,i,o)),o}function Ms(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 Yc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ru(e,t){Yc(e,t),(e=e.alternate)&&Yc(e,t)}function Qg(){return null}var Vp=typeof reportError=="function"?reportError:function(e){console.error(e)};function iu(e){this._internalRoot=e}eo.prototype.render=iu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));Js(e,t,null,null)};eo.prototype.unmount=iu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vn(function(){Js(null,e,null,null)}),t[jt]=null}};function eo(e){this._internalRoot=e}eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=dh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&t!==0&&t<Lt[n].priority;n++);Lt.splice(n,0,e),n===0&&hh(e)}};function su(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function to(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xc(){}function bg(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Ms(o);s.call(u)}}var o=Rp(t,r,e,0,null,!1,!1,"",Xc);return e._reactRootContainer=o,e[jt]=o.current,Qr(e.nodeType===8?e.parentNode:e),vn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Ms(l);a.call(u)}}var l=nu(e,0,!1,null,null,!1,!1,"",Xc);return e._reactRootContainer=l,e[jt]=l.current,Qr(e.nodeType===8?e.parentNode:e),vn(function(){Js(t,l,n,r)}),l}function no(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Ms(o);a.call(l)}}Js(t,o,e,i)}else o=bg(n,t,e,i,r);return Ms(o)}uh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xr(t.pendingLanes);n!==0&&(Cl(t,n|1),Le(t,ie()),!(W&6)&&(Zn=ie()+500,qt()))}break;case 13:vn(function(){var r=Ct(e,1);if(r!==null){var i=Pe();it(r,e,1,i)}}),ru(e,1)}};Pl=function(e){if(e.tag===13){var t=Ct(e,134217728);if(t!==null){var n=Pe();it(t,e,134217728,n)}ru(e,134217728)}};ch=function(e){if(e.tag===13){var t=$t(e),n=Ct(e,t);if(n!==null){var r=Pe();it(n,e,t,r)}ru(e,t)}};dh=function(){return H};fh=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};ya=function(e,t,n){switch(t){case"input":if(ua(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 i=Gs(r);if(!i)throw Error(E(90));Wf(r),ua(r,i)}}}break;case"textarea":Kf(e,n);break;case"select":t=n.value,t!=null&&Bn(e,!!n.multiple,t,!1)}};Zf=Zl;Jf=vn;var Yg={usingClientEntryPoint:!1,Events:[hi,En,Gs,Xf,qf,Zl]},pr={findFiberByHostInstance:on,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Xg={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:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nh(e),e===null?null:e.stateNode},findFiberByHostInstance:pr.findFiberByHostInstance||Qg,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 zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zi.isDisabled&&zi.supportsFiber)try{$s=zi.inject(Xg),ct=zi}catch{}}$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yg;$e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!su(t))throw Error(E(200));return Gg(e,t,null,n)};$e.createRoot=function(e,t){if(!su(e))throw Error(E(299));var n=!1,r="",i=Vp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=nu(e,1,!1,null,null,n,!1,r,i),e[jt]=t.current,Qr(e.nodeType===8?e.parentNode:e),new iu(t)};$e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=nh(t),e=e===null?null:e.stateNode,e};$e.flushSync=function(e){return vn(e)};$e.hydrate=function(e,t,n){if(!to(t))throw Error(E(200));return no(null,e,t,!0,n)};$e.hydrateRoot=function(e,t,n){if(!su(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Vp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Rp(t,null,e,1,n??null,i,!1,s,o),e[jt]=t.current,Qr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new eo(t)};$e.render=function(e,t,n){if(!to(t))throw Error(E(200));return no(null,e,t,!1,n)};$e.unmountComponentAtNode=function(e){if(!to(e))throw Error(E(40));return e._reactRootContainer?(vn(function(){no(null,null,e,!1,function(){e._reactRootContainer=null,e[jt]=null})}),!0):!1};$e.unstable_batchedUpdates=Zl;$e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!to(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return no(e,t,n,!1,r)};$e.version="18.3.1-next-f1338f8080-20240426";function _p(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_p)}catch(e){console.error(e)}}_p(),_f.exports=$e;var qg=_f.exports,qc=qg;na.createRoot=qc.createRoot,na.hydrateRoot=qc.hydrateRoot;/**
40
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function _o(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Oa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Eg=typeof WeakMap=="function"?WeakMap:Map;function up(e,t,n){n=xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ts||(Ts=!0,Ga=r),Oa(e,t)},n}function cp(e,t,n){n=xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Oa(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Oa(e,t),typeof r!="function"&&(Ut===null?Ut=new Set([this]):Ut.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Vc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Eg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ug.bind(null,e,t,n),t.then(e,e))}function _c(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 Oc(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=xt(-1,1),t.tag=2,Bt(n,t,1))),n.lanes|=1),e)}var Ng=Et.ReactCurrentOwner,Me=!1;function Ce(e,t,n,r){t.child=e===null?Ih(t,null,n,r):Yn(t,e.child,n,r)}function zc(e,t,n,r,i){n=n.render;var s=t.ref;return Hn(t,i),r=Kl(e,t,n,r,s,i),n=Gl(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(X&&n&&Rl(t),t.flags|=1,Ce(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!nu(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,dp(e,t,s,r,i)):(e=ts(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Gr,n(o,r)&&e.ref===t.ref)return Pt(e,t,i)}return t.flags|=1,e=Wt(s,r),e.ref=t.ref,e.return=t,t.child=e}function dp(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Gr(s,r)&&e.ref===t.ref)if(Me=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Me=!0);else return t.lanes=e.lanes,Pt(e,t,i)}return za(e,t,n,r,i)}function fp(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(Rn,Ve),Ve|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,G(Rn,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,G(Rn,Ve),Ve|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,G(Rn,Ve),Ve|=r;return Ce(e,t,i,n),t.child}function hp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function za(e,t,n,r,i){var s=De(n)?hn:Se.current;return s=Qn(t,s),Hn(t,i),n=Kl(e,t,n,r,s,i),r=Gl(),e!==null&&!Me?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pt(e,t,i)):(X&&r&&Rl(t),t.flags|=1,Ce(e,t,n,i),t.child)}function Ic(e,t,n,r,i){if(De(n)){var s=!0;ys(t)}else s=!1;if(Hn(t,i),t.stateNode===null)Zi(e,t),lp(t,n,r),_a(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Xe(u):(u=De(n)?hn:Se.current,u=Qn(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Rc(t,o,r,u),Dt=!1;var h=t.memoizedState;o.state=h,Ss(t,r,o,i),l=t.memoizedState,a!==r||h!==l||Ae.current||Dt?(typeof d=="function"&&(Va(t,n,d,r),l=t.memoizedState),(a=Dt||Lc(t,n,a,r,h,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Uh(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:et(t.type,a),o.props=u,f=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Xe(l):(l=De(n)?hn:Se.current,l=Qn(t,l));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||h!==l)&&Rc(t,o,r,l),Dt=!1,h=t.memoizedState,o.state=h,Ss(t,r,o,i);var x=t.memoizedState;a!==f||h!==x||Ae.current||Dt?(typeof g=="function"&&(Va(t,n,g,r),x=t.memoizedState),(u=Dt||Lc(t,n,u,r,h,x,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Fa(e,t,n,r,s,i)}function Fa(e,t,n,r,i,s){hp(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Cc(t,n,!1),Pt(e,t,s);r=t.stateNode,Ng.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Yn(t,e.child,null,s),t.child=Yn(t,null,a,s)):Ce(e,t,a,s),t.memoizedState=r.state,i&&Cc(t,n,!0),t.child}function pp(e){var t=e.stateNode;t.pendingContext?jc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jc(e,t.context,!1),Ul(e,t.containerInfo)}function Bc(e,t,n,r,i){return bn(),_l(i),t.flags|=256,Ce(e,t,n,r),t.child}var Ia={dehydrated:null,treeContext:null,retryLane:0};function Ba(e){return{baseLanes:e,cachePool:null,transitions:null}}function mp(e,t,n){var r=t.pendingProps,i=q.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),G(q,i&1),e===null)return La(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Zs(o,r,0,null),e=dn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ba(n),t.memoizedState=Ia,e):Yl(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Mg(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Wt(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Wt(a,s):(s=dn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Ba(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Ia,r}return s=e.child,e=s.sibling,r=Wt(s,{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 Yl(e,t){return t=Zs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,r){return r!==null&&_l(r),Yn(t,e.child,null,n),e=Yl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mg(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=_o(Error(E(422))),Vi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Zs({mode:"visible",children:r.children},i,0,null),s=dn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Yn(t,e.child,null,o),t.child.memoizedState=Ba(o),t.memoizedState=Ia,s);if(!(t.mode&1))return Vi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(E(419)),r=_o(s,r,void 0),Vi(e,t,o,r)}if(a=(o&e.childLanes)!==0,Me||a){if(r=ce,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ct(e,i),it(r,e,i,-1))}return tu(),r=_o(Error(E(421))),Vi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$g.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,ze=It(i.nextSibling),Fe=t,X=!0,nt=null,e!==null&&(Ge[Qe++]=yt,Ge[Qe++]=vt,Ge[Qe++]=pn,yt=e.id,vt=e.overflow,pn=t),t=Yl(t,r.children),t.flags|=4096,t)}function Uc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ra(e.return,t,n)}function Oo(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function yp(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ce(e,t,r.children,n),r=q.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&&Uc(e,n,t);else if(e.tag===19)Uc(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(G(q,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ks(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ks(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oo(t,!0,n,null,s);break;case"together":Oo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ag(e,t,n){switch(t.tag){case 3:pp(t),bn();break;case 5:$h(t);break;case 1:De(t.type)&&ys(t);break;case 4:Ul(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;G(xs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(G(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?mp(e,t,n):(G(q,q.current&1),e=Pt(e,t,n),e!==null?e.sibling:null);G(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,fp(e,t,n)}return Pt(e,t,n)}var vp,Ua,gp,xp;vp=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}};Ua=function(){};gp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ln(dt.current);var s=null;switch(n){case"input":i=ua(e,i),r=ua(e,r),s=[];break;case"select":i=ee({},i,{value:void 0}),r=ee({},r,{value:void 0}),s=[];break;case"textarea":i=fa(e,i),r=fa(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ps)}pa(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ir.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ir.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Q("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};xp=function(e,t,n,r){n!==r&&(t.flags|=4)};function hr(e,t){if(!X)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 ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Dg(e,t,n){var r=t.pendingProps;switch(Vl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return De(t.type)&&ms(),ve(t),null;case 3:return r=t.stateNode,Xn(),b(Ae),b(Se),Wl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(Ya(nt),nt=null))),Ua(e,t),ve(t),null;case 5:$l(t);var i=ln(qr.current);if(n=t.type,e!==null&&t.stateNode!=null)gp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return ve(t),null}if(e=ln(dt.current),Li(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ut]=t,r[Yr]=s,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(i=0;i<wr.length;i++)Q(wr[i],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":Xu(r,s),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Q("invalid",r);break;case"textarea":Zu(r,s),Q("invalid",r)}pa(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Di(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Di(r.textContent,a,e),i=["children",""+a]):Ir.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Q("scroll",r)}switch(n){case"input":ji(r),qu(r,s,!0);break;case"textarea":ji(r),Ju(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ps)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Qf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[Yr]=r,vp(e,t,!1,!1),t.stateNode=e;e:{switch(o=ma(n,r),n){case"dialog":Q("cancel",e),Q("close",e),i=r;break;case"iframe":case"object":case"embed":Q("load",e),i=r;break;case"video":case"audio":for(i=0;i<wr.length;i++)Q(wr[i],e);i=r;break;case"source":Q("error",e),i=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),i=r;break;case"details":Q("toggle",e),i=r;break;case"input":Xu(e,r),i=ua(e,r),Q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ee({},r,{value:void 0}),Q("invalid",e);break;case"textarea":Zu(e,r),i=fa(e,r),Q("invalid",e);break;default:i=r}pa(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Xf(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&bf(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Br(e,l):typeof l=="number"&&Br(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ir.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Q("scroll",e):l!=null&&xl(e,s,l,o))}switch(n){case"input":ji(e),qu(e,r,!1);break;case"textarea":ji(e),Ju(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Kt(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Bn(e,!!r.multiple,s,!1):r.defaultValue!=null&&Bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ps)}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 ve(t),null;case 6:if(e&&t.stateNode!=null)xp(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=ln(qr.current),ln(dt.current),Li(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(s=r.nodeValue!==n)&&(e=Fe,e!==null))switch(e.tag){case 3:Di(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Di(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return ve(t),null;case 13:if(b(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(X&&ze!==null&&t.mode&1&&!(t.flags&128))zh(),bn(),t.flags|=98560,s=!1;else if(s=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(E(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(E(317));s[ut]=t}else bn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ve(t),s=!1}else nt!==null&&(Ya(nt),nt=null),s=!0;if(!s)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||q.current&1?ae===0&&(ae=3):tu())),t.updateQueue!==null&&(t.flags|=4),ve(t),null);case 4:return Xn(),Ua(e,t),e===null&&Qr(t.stateNode.containerInfo),ve(t),null;case 10:return Fl(t.type._context),ve(t),null;case 17:return De(t.type)&&ms(),ve(t),null;case 19:if(b(q),s=t.memoizedState,s===null)return ve(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)hr(s,!1);else{if(ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ks(e),o!==null){for(t.flags|=128,hr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return G(q,q.current&1|2),t.child}e=e.sibling}s.tail!==null&&ie()>Zn&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ks(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!X)return ve(t),null}else 2*ie()-s.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ie(),t.sibling=null,n=q.current,G(q,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return eu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Lg(e,t){switch(Vl(t),t.tag){case 1:return De(t.type)&&ms(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xn(),b(Ae),b(Se),Wl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $l(t),null;case 13:if(b(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return b(q),null;case 4:return Xn(),null;case 10:return Fl(t.type._context),null;case 22:case 23:return eu(),null;case 24:return null;default:return null}}var _i=!1,xe=!1,Rg=typeof WeakSet=="function"?WeakSet:Set,D=null;function Ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function $a(e,t,n){try{n()}catch(r){ne(e,t,r)}}var $c=!1;function Vg(e,t){if(Pa=ds,e=Ch(),Ll(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 i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(a=o+i),f!==s||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++u===i&&(a=o),h===s&&++d===r&&(l=o),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ta={focusedElem:e,selectionRange:n},ds=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,C=x.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:et(t.type,v),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(S){ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=$c,$c=!1,x}function Dr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&$a(t,n,s)}i=i.next}while(i!==r)}}function Xs(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 Wa(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 wp(e){var t=e.alternate;t!==null&&(e.alternate=null,wp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Yr],delete t[Ma],delete t[yg],delete t[vg])),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 Sp(e){return e.tag===5||e.tag===3||e.tag===4}function Wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sp(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 Ha(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=ps));else if(r!==4&&(e=e.child,e!==null))for(Ha(e,t,n),e=e.sibling;e!==null;)Ha(e,t,n),e=e.sibling}function Ka(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(Ka(e,t,n),e=e.sibling;e!==null;)Ka(e,t,n),e=e.sibling}var de=null,tt=!1;function Nt(e,t,n){for(n=n.child;n!==null;)kp(e,t,n),n=n.sibling}function kp(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount($s,n)}catch{}switch(n.tag){case 5:xe||Ln(n,t);case 6:var r=de,i=tt;de=null,Nt(e,t,n),de=r,tt=i,de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?Mo(e.parentNode,n):e.nodeType===1&&Mo(e,n),Hr(e)):Mo(de,n.stateNode));break;case 4:r=de,i=tt,de=n.stateNode.containerInfo,tt=!0,Nt(e,t,n),de=r,tt=i;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&$a(n,t,o),i=i.next}while(i!==r)}Nt(e,t,n);break;case 1:if(!xe&&(Ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ne(n,t,a)}Nt(e,t,n);break;case 21:Nt(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,Nt(e,t,n),xe=r):Nt(e,t,n);break;default:Nt(e,t,n)}}function Hc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Rg),t.forEach(function(r){var i=Wg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:de=a.stateNode,tt=!1;break e;case 3:de=a.stateNode.containerInfo,tt=!0;break e;case 4:de=a.stateNode.containerInfo,tt=!0;break e}a=a.return}if(de===null)throw Error(E(160));kp(s,o,i),de=null,tt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){ne(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jp(t,e),t=t.sibling}function jp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ze(t,e),at(e),r&4){try{Dr(3,e,e.return),Xs(3,e)}catch(v){ne(e,e.return,v)}try{Dr(5,e,e.return)}catch(v){ne(e,e.return,v)}}break;case 1:Ze(t,e),at(e),r&512&&n!==null&&Ln(n,n.return);break;case 5:if(Ze(t,e),at(e),r&512&&n!==null&&Ln(n,n.return),e.flags&32){var i=e.stateNode;try{Br(i,"")}catch(v){ne(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Kf(i,s),ma(a,o);var u=ma(a,s);for(o=0;o<l.length;o+=2){var d=l[o],f=l[o+1];d==="style"?Xf(i,f):d==="dangerouslySetInnerHTML"?bf(i,f):d==="children"?Br(i,f):xl(i,d,f,u)}switch(a){case"input":ca(i,s);break;case"textarea":Gf(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?Bn(i,!!s.multiple,g,!1):h!==!!s.multiple&&(s.defaultValue!=null?Bn(i,!!s.multiple,s.defaultValue,!0):Bn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Yr]=s}catch(v){ne(e,e.return,v)}}break;case 6:if(Ze(t,e),at(e),r&4){if(e.stateNode===null)throw Error(E(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(v){ne(e,e.return,v)}}break;case 3:if(Ze(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hr(t.containerInfo)}catch(v){ne(e,e.return,v)}break;case 4:Ze(t,e),at(e);break;case 13:Ze(t,e),at(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Zl=ie())),r&4&&Hc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(xe=(u=xe)||d,Ze(t,e),xe=u):Ze(t,e),at(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(f=D=d;D!==null;){switch(h=D,g=h.child,h.tag){case 0:case 11:case 14:case 15:Dr(4,h,h.return);break;case 1:Ln(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){ne(r,n,v)}}break;case 5:Ln(h,h.return);break;case 22:if(h.memoizedState!==null){Gc(f);continue}}g!==null?(g.return=h,D=g):Gc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Yf("display",o))}catch(v){ne(e,e.return,v)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){ne(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ze(t,e),at(e),r&4&&Hc(e);break;case 21:break;default:Ze(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Sp(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Br(i,""),r.flags&=-33);var s=Wc(e);Ka(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Wc(e);Ha(e,a,o);break;default:throw Error(E(161))}}catch(l){ne(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _g(e,t,n){D=e,Cp(e)}function Cp(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||_i;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||xe;a=_i;var u=xe;if(_i=o,(xe=l)&&!u)for(D=i;D!==null;)o=D,l=o.child,o.tag===22&&o.memoizedState!==null?Qc(i):l!==null?(l.return=o,D=l):Qc(i);for(;s!==null;)D=s,Cp(s),s=s.sibling;D=i,_i=a,xe=u}Kc(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,D=s):Kc(e)}}function Kc(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:xe||Xs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!xe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Mc(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mc(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Hr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}xe||t.flags&512&&Wa(t)}catch(h){ne(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Gc(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Qc(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Xs(4,t)}catch(l){ne(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ne(t,i,l)}}var s=t.return;try{Wa(t)}catch(l){ne(t,s,l)}break;case 5:var o=t.return;try{Wa(t)}catch(l){ne(t,o,l)}}}catch(l){ne(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var Og=Math.ceil,Ps=Et.ReactCurrentDispatcher,Xl=Et.ReactCurrentOwner,Ye=Et.ReactCurrentBatchConfig,W=0,ce=null,se=null,he=0,Ve=0,Rn=Xt(0),ae=0,ti=null,yn=0,qs=0,ql=0,Lr=null,Ne=null,Zl=0,Zn=1/0,pt=null,Ts=!1,Ga=null,Ut=null,Oi=!1,_t=null,Es=0,Rr=0,Qa=null,Ji=-1,es=0;function Pe(){return W&6?ie():Ji!==-1?Ji:Ji=ie()}function $t(e){return e.mode&1?W&2&&he!==0?he&-he:xg.transition!==null?(es===0&&(es=lh()),es):(e=H,e!==0||(e=window.event,e=e===void 0?16:mh(e.type)),e):1}function it(e,t,n,r){if(50<Rr)throw Rr=0,Qa=null,Error(E(185));di(e,n,r),(!(W&2)||e!==ce)&&(e===ce&&(!(W&2)&&(qs|=n),ae===4&&Rt(e,he)),Le(e,r),n===1&&W===0&&!(t.mode&1)&&(Zn=ie()+500,Qs&&qt()))}function Le(e,t){var n=e.callbackNode;xv(e,t);var r=cs(e,e===ce?he:0);if(r===0)n!==null&&nc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&nc(n),t===1)e.tag===0?gg(bc.bind(null,e)):Vh(bc.bind(null,e)),pg(function(){!(W&6)&&qt()}),n=null;else{switch(uh(r)){case 1:n=Cl;break;case 4:n=oh;break;case 16:n=us;break;case 536870912:n=ah;break;default:n=us}n=Lp(n,Pp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Pp(e,t){if(Ji=-1,es=0,W&6)throw Error(E(327));var n=e.callbackNode;if(Kn()&&e.callbackNode!==n)return null;var r=cs(e,e===ce?he:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ns(e,r);else{t=r;var i=W;W|=2;var s=Ep();(ce!==e||he!==t)&&(pt=null,Zn=ie()+500,cn(e,t));do try{Ig();break}catch(a){Tp(e,a)}while(!0);zl(),Ps.current=s,W=i,se!==null?t=0:(ce=null,he=0,t=ae)}if(t!==0){if(t===2&&(i=wa(e),i!==0&&(r=i,t=ba(e,i))),t===1)throw n=ti,cn(e,0),Rt(e,r),Le(e,ie()),n;if(t===6)Rt(e,r);else{if(i=e.current.alternate,!(r&30)&&!zg(i)&&(t=Ns(e,r),t===2&&(s=wa(e),s!==0&&(r=s,t=ba(e,s))),t===1))throw n=ti,cn(e,0),Rt(e,r),Le(e,ie()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:nn(e,Ne,pt);break;case 3:if(Rt(e,r),(r&130023424)===r&&(t=Zl+500-ie(),10<t)){if(cs(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Pe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Na(nn.bind(null,e,Ne,pt),t);break}nn(e,Ne,pt);break;case 4:if(Rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-rt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Og(r/1960))-r,10<r){e.timeoutHandle=Na(nn.bind(null,e,Ne,pt),r);break}nn(e,Ne,pt);break;case 5:nn(e,Ne,pt);break;default:throw Error(E(329))}}}return Le(e,ie()),e.callbackNode===n?Pp.bind(null,e):null}function ba(e,t){var n=Lr;return e.current.memoizedState.isDehydrated&&(cn(e,t).flags|=256),e=Ns(e,t),e!==2&&(t=Ne,Ne=n,t!==null&&Ya(t)),e}function Ya(e){Ne===null?Ne=e:Ne.push.apply(Ne,e)}function zg(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 i=n[r],s=i.getSnapshot;i=i.value;try{if(!st(s(),i))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 Rt(e,t){for(t&=~ql,t&=~qs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function bc(e){if(W&6)throw Error(E(327));Kn();var t=cs(e,0);if(!(t&1))return Le(e,ie()),null;var n=Ns(e,t);if(e.tag!==0&&n===2){var r=wa(e);r!==0&&(t=r,n=ba(e,r))}if(n===1)throw n=ti,cn(e,0),Rt(e,t),Le(e,ie()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nn(e,Ne,pt),Le(e,ie()),null}function Jl(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(Zn=ie()+500,Qs&&qt())}}function vn(e){_t!==null&&_t.tag===0&&!(W&6)&&Kn();var t=W;W|=1;var n=Ye.transition,r=H;try{if(Ye.transition=null,H=1,e)return e()}finally{H=r,Ye.transition=n,W=t,!(W&6)&&qt()}}function eu(){Ve=Rn.current,b(Rn)}function cn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hg(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(Vl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ms();break;case 3:Xn(),b(Ae),b(Se),Wl();break;case 5:$l(r);break;case 4:Xn();break;case 13:b(q);break;case 19:b(q);break;case 10:Fl(r.type._context);break;case 22:case 23:eu()}n=n.return}if(ce=e,se=e=Wt(e.current,null),he=Ve=t,ae=0,ti=null,ql=qs=yn=0,Ne=Lr=null,an!==null){for(t=0;t<an.length;t++)if(n=an[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}an=null}return e}function Tp(e,t){do{var n=se;try{if(zl(),Xi.current=Cs,js){for(var r=J.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}js=!1}if(mn=0,ue=oe=J=null,Ar=!1,Zr=0,Xl.current=null,n===null||n.return===null){ae=1,ti=t,se=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=he,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=_c(o);if(g!==null){g.flags&=-257,Oc(g,o,a,s,t),g.mode&1&&Vc(s,u,t),t=g,l=u;var x=t.updateQueue;if(x===null){var v=new Set;v.add(l),t.updateQueue=v}else x.add(l);break e}else{if(!(t&1)){Vc(s,u,t),tu();break e}l=Error(E(426))}}else if(X&&a.mode&1){var C=_c(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Oc(C,o,a,s,t),_l(qn(l,a));break e}}s=l=qn(l,a),ae!==4&&(ae=2),Lr===null?Lr=[s]:Lr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=up(s,l,t);Nc(s,m);break e;case 1:a=l;var p=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ut===null||!Ut.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=cp(s,a,t);Nc(s,S);break e}}s=s.return}while(s!==null)}Mp(n)}catch(w){t=w,se===n&&n!==null&&(se=n=n.return);continue}break}while(!0)}function Ep(){var e=Ps.current;return Ps.current=Cs,e===null?Cs:e}function tu(){(ae===0||ae===3||ae===2)&&(ae=4),ce===null||!(yn&268435455)&&!(qs&268435455)||Rt(ce,he)}function Ns(e,t){var n=W;W|=2;var r=Ep();(ce!==e||he!==t)&&(pt=null,cn(e,t));do try{Fg();break}catch(i){Tp(e,i)}while(!0);if(zl(),W=n,Ps.current=r,se!==null)throw Error(E(261));return ce=null,he=0,ae}function Fg(){for(;se!==null;)Np(se)}function Ig(){for(;se!==null&&!cv();)Np(se)}function Np(e){var t=Dp(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?Mp(e):se=t,Xl.current=null}function Mp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Lg(n,t),n!==null){n.flags&=32767,se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ae=6,se=null;return}}else if(n=Dg(n,t,Ve),n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);ae===0&&(ae=5)}function nn(e,t,n){var r=H,i=Ye.transition;try{Ye.transition=null,H=1,Bg(e,t,n,r)}finally{Ye.transition=i,H=r}return null}function Bg(e,t,n,r){do Kn();while(_t!==null);if(W&6)throw Error(E(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(wv(e,s),e===ce&&(se=ce=null,he=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Oi||(Oi=!0,Lp(us,function(){return Kn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ye.transition,Ye.transition=null;var o=H;H=1;var a=W;W|=4,Xl.current=null,Vg(e,n),jp(n,e),og(Ta),ds=!!Pa,Ta=Pa=null,e.current=n,_g(n),dv(),W=a,H=o,Ye.transition=s}else e.current=n;if(Oi&&(Oi=!1,_t=e,Es=i),s=e.pendingLanes,s===0&&(Ut=null),pv(n.stateNode),Le(e,ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ts)throw Ts=!1,e=Ga,Ga=null,e;return Es&1&&e.tag!==0&&Kn(),s=e.pendingLanes,s&1?e===Qa?Rr++:(Rr=0,Qa=e):Rr=0,qt(),null}function Kn(){if(_t!==null){var e=uh(Es),t=Ye.transition,n=H;try{if(Ye.transition=null,H=16>e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,Es=0,W&6)throw Error(E(331));var i=W;for(W|=4,D=e.current;D!==null;){var s=D,o=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(D=u;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:Dr(8,d,s)}var f=d.child;if(f!==null)f.return=d,D=f;else for(;D!==null;){d=D;var h=d.sibling,g=d.return;if(wp(d),d===u){D=null;break}if(h!==null){h.return=g,D=h;break}D=g}}}var x=s.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var C=v.sibling;v.sibling=null,v=C}while(v!==null)}}D=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,D=o;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Dr(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var p=e.current;for(D=p;D!==null;){o=D;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,D=y;else e:for(o=p;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Xs(9,a)}}catch(w){ne(a,a.return,w)}if(a===o){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(W=i,qt(),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot($s,e)}catch{}r=!0}return r}finally{H=n,Ye.transition=t}}return!1}function Yc(e,t,n){t=qn(n,t),t=up(e,t,1),e=Bt(e,t,1),t=Pe(),e!==null&&(di(e,1,t),Le(e,t))}function ne(e,t,n){if(e.tag===3)Yc(e,e,n);else for(;t!==null;){if(t.tag===3){Yc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ut===null||!Ut.has(r))){e=qn(n,e),e=cp(t,e,1),t=Bt(t,e,1),e=Pe(),t!==null&&(di(t,1,e),Le(t,e));break}}t=t.return}}function Ug(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Pe(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(he&n)===n&&(ae===4||ae===3&&(he&130023424)===he&&500>ie()-Zl?cn(e,0):ql|=n),Le(e,t)}function Ap(e,t){t===0&&(e.mode&1?(t=Ti,Ti<<=1,!(Ti&130023424)&&(Ti=4194304)):t=1);var n=Pe();e=Ct(e,t),e!==null&&(di(e,t,n),Le(e,n))}function $g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ap(e,n)}function Wg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),Ap(e,n)}var Dp;Dp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)Me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Me=!1,Ag(e,t,n);Me=!!(e.flags&131072)}else Me=!1,X&&t.flags&1048576&&_h(t,gs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var i=Qn(t,Se.current);Hn(t,n),i=Kl(null,t,r,e,i,n);var s=Gl();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,De(r)?(s=!0,ys(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Bl(t),i.updater=Ys,t.stateNode=i,i._reactInternals=t,_a(t,r,e,n),t=Fa(null,t,r,!0,s,n)):(t.tag=0,X&&s&&Rl(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Kg(r),e=et(r,e),i){case 0:t=za(null,t,r,e,n);break e;case 1:t=Ic(null,t,r,e,n);break e;case 11:t=zc(null,t,r,e,n);break e;case 14:t=Fc(null,t,r,et(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),za(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Ic(e,t,r,i,n);case 3:e:{if(pp(t),e===null)throw Error(E(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Uh(e,t),Ss(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qn(Error(E(423)),t),t=Bc(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(E(424)),t),t=Bc(e,t,r,n,i);break e}else for(ze=It(t.stateNode.containerInfo.firstChild),Fe=t,X=!0,nt=null,n=Ih(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(bn(),r===i){t=Pt(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return $h(t),e===null&&La(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Ea(r,i)?o=null:s!==null&&Ea(r,s)&&(t.flags|=32),hp(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&La(t),null;case 13:return mp(e,t,n);case 4:return Ul(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),zc(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,G(xs,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!Ae.current){t=Pt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=xt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ra(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(E(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ra(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hn(t,n),i=Xe(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Fc(e,t,r,i,n);case 15:return dp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Zi(e,t),t.tag=1,De(r)?(e=!0,ys(t)):e=!1,Hn(t,n),lp(t,r,i),_a(t,r,i,n),Fa(null,t,r,!0,e,n);case 19:return yp(e,t,n);case 22:return fp(e,t,n)}throw Error(E(156,t.tag))};function Lp(e,t){return sh(e,t)}function Hg(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 be(e,t,n,r){return new Hg(e,t,n,r)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kg(e){if(typeof e=="function")return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Sl)return 11;if(e===kl)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=be(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 ts(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")nu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case jn:return dn(n.children,i,s,t);case wl:o=8,i|=8;break;case sa:return e=be(12,n,t,i|2),e.elementType=sa,e.lanes=s,e;case oa:return e=be(13,n,t,i),e.elementType=oa,e.lanes=s,e;case aa:return e=be(19,n,t,i),e.elementType=aa,e.lanes=s,e;case $f:return Zs(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bf:o=10;break e;case Uf:o=9;break e;case Sl:o=11;break e;case kl:o=14;break e;case At:o=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=be(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function dn(e,t,n,r){return e=be(7,e,r,t),e.lanes=n,e}function Zs(e,t,n,r){return e=be(22,e,r,t),e.elementType=$f,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=be(6,e,null,t),e.lanes=n,e}function Fo(e,t,n){return t=be(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gg(e,t,n,r,i){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=go(0),this.expirationTimes=go(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ru(e,t,n,r,i,s,o,a,l){return e=new Gg(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=be(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bl(s),e}function Qg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Rp(e){if(!e)return Gt;e=e._reactInternals;e:{if(xn(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(De(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(De(n))return Rh(e,n,t)}return t}function Vp(e,t,n,r,i,s,o,a,l){return e=ru(n,r,!0,e,i,s,o,a,l),e.context=Rp(null),n=e.current,r=Pe(),i=$t(n),s=xt(r,i),s.callback=t??null,Bt(n,s,i),e.current.lanes=i,di(e,i,r),Le(e,r),e}function Js(e,t,n,r){var i=t.current,s=Pe(),o=$t(i);return n=Rp(n),t.context===null?t.context=n:t.pendingContext=n,t=xt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Bt(i,t,o),e!==null&&(it(e,i,o,s),Yi(e,i,o)),o}function Ms(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 Xc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function iu(e,t){Xc(e,t),(e=e.alternate)&&Xc(e,t)}function bg(){return null}var _p=typeof reportError=="function"?reportError:function(e){console.error(e)};function su(e){this._internalRoot=e}eo.prototype.render=su.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));Js(e,t,null,null)};eo.prototype.unmount=su.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vn(function(){Js(null,e,null,null)}),t[jt]=null}};function eo(e){this._internalRoot=e}eo.prototype.unstable_scheduleHydration=function(e){if(e){var t=fh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&t!==0&&t<Lt[n].priority;n++);Lt.splice(n,0,e),n===0&&ph(e)}};function ou(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function to(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qc(){}function Yg(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Ms(o);s.call(u)}}var o=Vp(t,r,e,0,null,!1,!1,"",qc);return e._reactRootContainer=o,e[jt]=o.current,Qr(e.nodeType===8?e.parentNode:e),vn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Ms(l);a.call(u)}}var l=ru(e,0,!1,null,null,!1,!1,"",qc);return e._reactRootContainer=l,e[jt]=l.current,Qr(e.nodeType===8?e.parentNode:e),vn(function(){Js(t,l,n,r)}),l}function no(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Ms(o);a.call(l)}}Js(t,o,e,i)}else o=Yg(n,t,e,i,r);return Ms(o)}ch=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xr(t.pendingLanes);n!==0&&(Pl(t,n|1),Le(t,ie()),!(W&6)&&(Zn=ie()+500,qt()))}break;case 13:vn(function(){var r=Ct(e,1);if(r!==null){var i=Pe();it(r,e,1,i)}}),iu(e,1)}};Tl=function(e){if(e.tag===13){var t=Ct(e,134217728);if(t!==null){var n=Pe();it(t,e,134217728,n)}iu(e,134217728)}};dh=function(e){if(e.tag===13){var t=$t(e),n=Ct(e,t);if(n!==null){var r=Pe();it(n,e,t,r)}iu(e,t)}};fh=function(){return H};hh=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};va=function(e,t,n){switch(t){case"input":if(ca(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 i=Gs(r);if(!i)throw Error(E(90));Hf(r),ca(r,i)}}}break;case"textarea":Gf(e,n);break;case"select":t=n.value,t!=null&&Bn(e,!!n.multiple,t,!1)}};Jf=Jl;eh=vn;var Xg={usingClientEntryPoint:!1,Events:[hi,En,Gs,qf,Zf,Jl]},pr={findFiberByHostInstance:on,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},qg={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:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=rh(e),e===null?null:e.stateNode},findFiberByHostInstance:pr.findFiberByHostInstance||bg,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 zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zi.isDisabled&&zi.supportsFiber)try{$s=zi.inject(qg),ct=zi}catch{}}$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xg;$e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ou(t))throw Error(E(200));return Qg(e,t,null,n)};$e.createRoot=function(e,t){if(!ou(e))throw Error(E(299));var n=!1,r="",i=_p;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ru(e,1,!1,null,null,n,!1,r,i),e[jt]=t.current,Qr(e.nodeType===8?e.parentNode:e),new su(t)};$e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=rh(t),e=e===null?null:e.stateNode,e};$e.flushSync=function(e){return vn(e)};$e.hydrate=function(e,t,n){if(!to(t))throw Error(E(200));return no(null,e,t,!0,n)};$e.hydrateRoot=function(e,t,n){if(!ou(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=_p;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Vp(t,null,e,1,n??null,i,!1,s,o),e[jt]=t.current,Qr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new eo(t)};$e.render=function(e,t,n){if(!to(t))throw Error(E(200));return no(null,e,t,!1,n)};$e.unmountComponentAtNode=function(e){if(!to(e))throw Error(E(40));return e._reactRootContainer?(vn(function(){no(null,null,e,!1,function(){e._reactRootContainer=null,e[jt]=null})}),!0):!1};$e.unstable_batchedUpdates=Jl;$e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!to(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return no(e,t,n,!1,r)};$e.version="18.3.1-next-f1338f8080-20240426";function Op(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Op)}catch(e){console.error(e)}}Op(),Of.exports=$e;var Zg=Of.exports,Zc=Zg;ra.createRoot=Zc.createRoot,ra.hydrateRoot=Zc.hydrateRoot;/**
41
41
  * @license lucide-react v0.441.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */const Zg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Op=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
45
+ */const Jg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zp=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
46
46
  * @license lucide-react v0.441.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */var Jg={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"};/**
50
+ */var e0={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
51
  * @license lucide-react v0.441.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const e0=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>j.createElement("svg",{ref:l,...Jg,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Op("lucide",i),...a},[...o.map(([u,d])=>j.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
55
+ */const t0=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>j.createElement("svg",{ref:l,...e0,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:zp("lucide",i),...a},[...o.map(([u,d])=>j.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
56
56
  * @license lucide-react v0.441.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const $=(e,t)=>{const n=j.forwardRef(({className:r,...i},s)=>j.createElement(e0,{ref:s,iconNode:t,className:Op(`lucide-${Zg(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
60
+ */const $=(e,t)=>{const n=j.forwardRef(({className:r,...i},s)=>j.createElement(t0,{ref:s,iconNode:t,className:zp(`lucide-${Jg(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61
61
  * @license lucide-react v0.441.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const Ya=$("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"}]]);/**
65
+ */const Xa=$("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
66
  * @license lucide-react v0.441.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const Zc=$("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"}]]);/**
70
+ */const Jc=$("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
71
  * @license lucide-react v0.441.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const t0=$("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"}]]);/**
75
+ */const n0=$("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
76
  * @license lucide-react v0.441.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const n0=$("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
80
+ */const r0=$("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
81
81
  * @license lucide-react v0.441.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const r0=$("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
85
+ */const i0=$("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
86
86
  * @license lucide-react v0.441.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
@@ -92,7 +92,7 @@ Error generating stack: `+s.message+`
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const i0=$("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"}]]);/**
95
+ */const s0=$("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
96
  * @license lucide-react v0.441.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
@@ -112,27 +112,27 @@ Error generating stack: `+s.message+`
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const s0=$("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"}]]);/**
115
+ */const o0=$("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"}]]);/**
116
116
  * @license lucide-react v0.441.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const o0=$("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"}]]);/**
120
+ */const a0=$("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"}]]);/**
121
121
  * @license lucide-react v0.441.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
- */const zp=$("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"}]]);/**
125
+ */const Fp=$("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"}]]);/**
126
126
  * @license lucide-react v0.441.0 - ISC
127
127
  *
128
128
  * This source code is licensed under the ISC license.
129
129
  * See the LICENSE file in the root directory of this source tree.
130
- */const a0=$("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"}]]);/**
130
+ */const l0=$("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"}]]);/**
131
131
  * @license lucide-react v0.441.0 - ISC
132
132
  *
133
133
  * This source code is licensed under the ISC license.
134
134
  * See the LICENSE file in the root directory of this source tree.
135
- */const l0=$("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"}]]);/**
135
+ */const u0=$("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"}]]);/**
136
136
  * @license lucide-react v0.441.0 - ISC
137
137
  *
138
138
  * This source code is licensed under the ISC license.
@@ -142,37 +142,37 @@ Error generating stack: `+s.message+`
142
142
  *
143
143
  * This source code is licensed under the ISC license.
144
144
  * See the LICENSE file in the root directory of this source tree.
145
- */const Fp=$("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
145
+ */const Ip=$("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
146
146
  * @license lucide-react v0.441.0 - ISC
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
- */const u0=$("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"}]]);/**
150
+ */const c0=$("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"}]]);/**
151
151
  * @license lucide-react v0.441.0 - ISC
152
152
  *
153
153
  * This source code is licensed under the ISC license.
154
154
  * See the LICENSE file in the root directory of this source tree.
155
- */const ou=$("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"}]]);/**
155
+ */const au=$("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"}]]);/**
156
156
  * @license lucide-react v0.441.0 - ISC
157
157
  *
158
158
  * This source code is licensed under the ISC license.
159
159
  * See the LICENSE file in the root directory of this source tree.
160
- */const c0=$("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"}]]);/**
160
+ */const d0=$("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"}]]);/**
161
161
  * @license lucide-react v0.441.0 - ISC
162
162
  *
163
163
  * This source code is licensed under the ISC license.
164
164
  * See the LICENSE file in the root directory of this source tree.
165
- */const Jc=$("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"}]]);/**
165
+ */const ed=$("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"}]]);/**
166
166
  * @license lucide-react v0.441.0 - ISC
167
167
  *
168
168
  * This source code is licensed under the ISC license.
169
169
  * See the LICENSE file in the root directory of this source tree.
170
- */const d0=$("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
170
+ */const f0=$("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
171
171
  * @license lucide-react v0.441.0 - ISC
172
172
  *
173
173
  * This source code is licensed under the ISC license.
174
174
  * See the LICENSE file in the root directory of this source tree.
175
- */const ed=$("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"}]]);/**
175
+ */const td=$("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"}]]);/**
176
176
  * @license lucide-react v0.441.0 - ISC
177
177
  *
178
178
  * This source code is licensed under the ISC license.
@@ -182,12 +182,12 @@ Error generating stack: `+s.message+`
182
182
  *
183
183
  * This source code is licensed under the ISC license.
184
184
  * See the LICENSE file in the root directory of this source tree.
185
- */const Ip=$("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"}]]);/**
185
+ */const Bp=$("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"}]]);/**
186
186
  * @license lucide-react v0.441.0 - ISC
187
187
  *
188
188
  * This source code is licensed under the ISC license.
189
189
  * See the LICENSE file in the root directory of this source tree.
190
- */const f0=$("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
190
+ */const h0=$("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
191
191
  * @license lucide-react v0.441.0 - ISC
192
192
  *
193
193
  * This source code is licensed under the ISC license.
@@ -197,12 +197,12 @@ Error generating stack: `+s.message+`
197
197
  *
198
198
  * This source code is licensed under the ISC license.
199
199
  * See the LICENSE file in the root directory of this source tree.
200
- */const au=$("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
200
+ */const lu=$("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
201
201
  * @license lucide-react v0.441.0 - ISC
202
202
  *
203
203
  * This source code is licensed under the ISC license.
204
204
  * See the LICENSE file in the root directory of this source tree.
205
- */const Bp=$("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"}]]);/**
205
+ */const Up=$("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"}]]);/**
206
206
  * @license lucide-react v0.441.0 - ISC
207
207
  *
208
208
  * This source code is licensed under the ISC license.
@@ -212,12 +212,12 @@ Error generating stack: `+s.message+`
212
212
  *
213
213
  * This source code is licensed under the ISC license.
214
214
  * See the LICENSE file in the root directory of this source tree.
215
- */const h0=$("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"}]]);/**
215
+ */const p0=$("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"}]]);/**
216
216
  * @license lucide-react v0.441.0 - ISC
217
217
  *
218
218
  * This source code is licensed under the ISC license.
219
219
  * See the LICENSE file in the root directory of this source tree.
220
- */const p0=$("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"}]]);/**
220
+ */const m0=$("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"}]]);/**
221
221
  * @license lucide-react v0.441.0 - ISC
222
222
  *
223
223
  * This source code is licensed under the ISC license.
@@ -227,7 +227,7 @@ Error generating stack: `+s.message+`
227
227
  *
228
228
  * This source code is licensed under the ISC license.
229
229
  * See the LICENSE file in the root directory of this source tree.
230
- */const m0=$("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"}]]);/**
230
+ */const y0=$("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"}]]);/**
231
231
  * @license lucide-react v0.441.0 - ISC
232
232
  *
233
233
  * This source code is licensed under the ISC license.
@@ -237,12 +237,12 @@ Error generating stack: `+s.message+`
237
237
  *
238
238
  * This source code is licensed under the ISC license.
239
239
  * See the LICENSE file in the root directory of this source tree.
240
- */const lu=$("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
240
+ */const uu=$("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
241
241
  * @license lucide-react v0.441.0 - ISC
242
242
  *
243
243
  * This source code is licensed under the ISC license.
244
244
  * See the LICENSE file in the root directory of this source tree.
245
- */const y0=$("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"}]]),uu=j.createContext({});function cu(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const so=j.createContext(null),du=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class v0 extends j.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 g0({children:e,isPresent:t}){const n=j.useId(),r=j.useRef(null),i=j.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=j.useContext(du);return j.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:u}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return s&&(d.nonce=s),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
245
+ */const v0=$("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"}]]),cu=j.createContext({});function du(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const so=j.createContext(null),fu=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class g0 extends j.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 x0({children:e,isPresent:t}){const n=j.useId(),r=j.useRef(null),i=j.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=j.useContext(fu);return j.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:u}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return s&&(d.nonce=s),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
246
246
  [data-motion-pop-id="${n}"] {
247
247
  position: absolute !important;
248
248
  width: ${o}px !important;
@@ -250,8 +250,8 @@ Error generating stack: `+s.message+`
250
250
  top: ${l}px !important;
251
251
  left: ${u}px !important;
252
252
  }
253
- `),()=>{document.head.removeChild(d)}},[t]),c.jsx(v0,{isPresent:t,childRef:r,sizeRef:i,children:j.cloneElement(e,{ref:r})})}const x0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=cu(w0),l=j.useId(),u=j.useCallback(f=>{a.set(f,!0);for(const h of a.values())if(!h)return;r&&r()},[a,r]),d=j.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(a.set(f,!1),()=>a.delete(f))}),s?[Math.random(),u]:[n,u]);return j.useMemo(()=>{a.forEach((f,h)=>a.set(h,!1))},[n]),j.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=c.jsx(g0,{isPresent:n,children:e})),c.jsx(so.Provider,{value:d,children:e})};function w0(){return new Map}function Up(e=!0){const t=j.useContext(so);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=j.useId();j.useEffect(()=>{e&&i(s)},[e]);const o=j.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Fi=e=>e.key||"";function td(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const fu=typeof window<"u",$p=fu?j.useLayoutEffect:j.useEffect,S0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[a,l]=Up(o),u=j.useMemo(()=>td(e),[e]),d=o&&!a?[]:u.map(Fi),f=j.useRef(!0),h=j.useRef(u),g=cu(()=>new Map),[x,v]=j.useState(u),[C,m]=j.useState(u);$p(()=>{f.current=!1,h.current=u;for(let S=0;S<C.length;S++){const w=Fi(C[S]);d.includes(w)?g.delete(w):g.get(w)!==!0&&g.set(w,!1)}},[C,d.length,d.join("-")]);const p=[];if(u!==x){let S=[...u];for(let w=0;w<C.length;w++){const k=C[w],P=Fi(k);d.includes(P)||(S.splice(w,0,k),p.push(k))}s==="wait"&&p.length&&(S=p),m(td(S)),v(u);return}const{forceRender:y}=j.useContext(uu);return c.jsx(c.Fragment,{children:C.map(S=>{const w=Fi(S),k=o&&!a?!1:u===C||d.includes(w),P=()=>{if(g.has(w))g.set(w,!0);else return;let T=!0;g.forEach(L=>{L||(T=!1)}),T&&(y==null||y(),m(h.current),o&&(l==null||l()),r&&r())};return c.jsx(x0,{isPresent:k,initial:!f.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:k?void 0:P,children:S},w)})})},Ie=e=>e;let Wp=Ie;function hu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Jn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wt=e=>e*1e3,St=e=>e/1e3,k0={useManualTiming:!1};function j0(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,d=!1,f=!1)=>{const g=f&&r?t:n;return d&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const Ii=["read","resolveKeyframes","update","preRender","render","postRender"],C0=40;function Hp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ii.reduce((m,p)=>(m[p]=j0(s),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:d,render:f,postRender:h}=o,g=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,C0),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),d.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},x=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Ii.reduce((m,p)=>{const y=o[p];return m[p]=(S,w=!1,k=!1)=>(n||x(),y.schedule(S,w,k)),m},{}),cancel:m=>{for(let p=0;p<Ii.length;p++)o[Ii[p]].cancel(m)},state:i,steps:o}}const{schedule:Y,cancel:Qt,state:fe,steps:Bo}=Hp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0),Kp=j.createContext({strict:!1}),nd={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"]},er={};for(const e in nd)er[e]={isEnabled:t=>nd[e].some(n=>!!t[n])};function P0(e){for(const t in e)er[t]={...er[t],...e[t]}}const T0=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 Rs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||T0.has(e)}let Gp=e=>!Rs(e);function E0(e){e&&(Gp=t=>t.startsWith("on")?!Rs(t):e(t))}try{E0(require("@emotion/is-prop-valid").default)}catch{}function N0(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Gp(i)||n===!0&&Rs(i)||!t&&!Rs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function M0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const oo=j.createContext({});function ii(e){return typeof e=="string"||Array.isArray(e)}function ao(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const pu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mu=["initial",...pu];function lo(e){return ao(e.animate)||mu.some(t=>ii(e[t]))}function Qp(e){return!!(lo(e)||e.variants)}function A0(e,t){if(lo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ii(n)?n:void 0,animate:ii(r)?r:void 0}}return e.inherit!==!1?t:{}}function D0(e){const{initial:t,animate:n}=A0(e,j.useContext(oo));return j.useMemo(()=>({initial:t,animate:n}),[rd(t),rd(n)])}function rd(e){return Array.isArray(e)?e.join(" "):e}const L0=Symbol.for("motionComponentSymbol");function Vn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function R0(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vn(n)&&(n.current=r))},[t])}const yu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),V0="framerAppearId",bp="data-"+yu(V0),{schedule:vu}=Hp(queueMicrotask,!1),Yp=j.createContext({});function _0(e,t,n,r,i){var s,o;const{visualElement:a}=j.useContext(oo),l=j.useContext(Kp),u=j.useContext(so),d=j.useContext(du).reducedMotion,f=j.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,g=j.useContext(Yp);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&O0(f.current,n,i,g);const x=j.useRef(!1);j.useInsertionEffect(()=>{h&&x.current&&h.update(n,u)});const v=n[bp],C=j.useRef(!!v&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return $p(()=>{h&&(x.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),vu.render(h.render),C.current&&h.animationState&&h.animationState.animateChanges())}),j.useEffect(()=>{h&&(!C.current&&h.animationState&&h.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,v)}),C.current=!1))}),h}function O0(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Xp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Vn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Xp(e){if(e)return e.options.allowProjection!==!1?e.projection:Xp(e.parent)}function z0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&P0(e);function a(u,d){let f;const h={...j.useContext(du),...u,layoutId:F0(u)},{isStatic:g}=h,x=D0(u),v=r(u,g);if(!g&&fu){I0();const C=B0(h);f=C.MeasureLayout,x.visualElement=_0(i,v,h,t,C.ProjectionNode)}return c.jsxs(oo.Provider,{value:x,children:[f&&x.visualElement?c.jsx(f,{visualElement:x.visualElement,...h}):null,n(i,u,R0(v,x.visualElement,d),v,g,x.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=j.forwardRef(a);return l[L0]=i,l}function F0({layoutId:e}){const t=j.useContext(uu).id;return t&&e!==void 0?t+"-"+e:e}function I0(e,t){j.useContext(Kp).strict}function B0(e){const{drag:t,layout:n}=er;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 U0=["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 gu(e){return typeof e!="string"||e.includes("-")?!1:!!(U0.indexOf(e)>-1||/[A-Z]/u.test(e))}function id(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xu(e,t,n,r){if(typeof t=="function"){const[i,s]=id(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=id(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const Xa=e=>Array.isArray(e),$0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),W0=e=>Xa(e)?e[e.length-1]||0:e,we=e=>!!(e&&e.getVelocity);function rs(e){const t=we(e)?e.get():e;return $0(t)?t.toValue():t}function H0({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:K0(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const qp=e=>(t,n)=>{const r=j.useContext(oo),i=j.useContext(so),s=()=>H0(e,t,r,i);return n?s():cu(s)};function K0(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=rs(s[h]);let{initial:o,animate:a}=e;const l=lo(e),u=Qp(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!ao(f)){const h=Array.isArray(f)?f:[f];for(let g=0;g<h.length;g++){const x=xu(e,h[g]);if(x){const{transitionEnd:v,transition:C,...m}=x;for(const p in m){let y=m[p];if(Array.isArray(y)){const S=d?y.length-1:0;y=y[S]}y!==null&&(i[p]=y)}for(const p in v)i[p]=v[p]}}}return i}const sr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(sr),Zp=e=>t=>typeof t=="string"&&t.startsWith(e),Jp=Zp("--"),G0=Zp("var(--"),wu=e=>G0(e)?Q0.test(e.split("/*")[0].trim()):!1,Q0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,em=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Tt=(e,t,n)=>n>t?t:n<e?e:n,or={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},si={...or,transform:e=>Tt(0,1,e)},Bi={...or,default:1},mi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mt=mi("deg"),ft=mi("%"),O=mi("px"),b0=mi("vh"),Y0=mi("vw"),sd={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)},X0={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},q0={rotate:Mt,rotateX:Mt,rotateY:Mt,rotateZ:Mt,scale:Bi,scaleX:Bi,scaleY:Bi,scaleZ:Bi,skew:Mt,skewX:Mt,skewY:Mt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:si,originX:sd,originY:sd,originZ:O},od={...or,transform:Math.round},Su={...X0,...q0,zIndex:od,size:O,fillOpacity:si,strokeOpacity:si,numOctaves:od},Z0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},J0=sr.length;function e1(e,t,n){let r="",i=!0;for(let s=0;s<J0;s++){const o=sr[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=em(a,Su[o]);if(!l){i=!1;const d=Z0[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ku(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(wn.has(l)){o=!0;continue}else if(Jp(l)){i[l]=u;continue}else{const d=em(u,Su[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=e1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${u} ${d}`}}const t1={offset:"stroke-dashoffset",array:"stroke-dasharray"},n1={offset:"strokeDashoffset",array:"strokeDasharray"};function r1(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?t1:n1;e[s.offset]=O.transform(-r);const o=O.transform(t),a=O.transform(n);e[s.array]=`${o} ${a}`}function ad(e,t,n){return typeof e=="string"?e:O.transform(t+n*e)}function i1(e,t,n){const r=ad(t,e.x,e.width),i=ad(n,e.y,e.height);return`${r} ${i}`}function ju(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},d,f){if(ku(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:x}=e;h.transform&&(x&&(g.transform=h.transform),delete h.transform),x&&(i!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=i1(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&r1(h,o,a,l,!1)}const Cu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),tm=()=>({...Cu(),attrs:{}}),Pu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nm(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const rm=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 im(e,t,n,r){nm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(rm.has(i)?i:yu(i),t.attrs[i])}const Vs={};function s1(e){Object.assign(Vs,e)}function sm(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vs[e]||e==="opacity")}function Tu(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(we(i[o])||t.style&&we(t.style[o])||sm(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function om(e,t,n){const r=Tu(e,t,n);for(const i in e)if(we(e[i])||we(t[i])){const s=sr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function o1(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 ld=["x","y","width","height","cx","cy","r"],a1={useVisualState:qp({scrapeMotionValuesFromProps:om,createRenderState:tm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(wn.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a<ld.length;a++){const l=ld[a];e[l]!==t[l]&&(o=!0)}o&&Y.read(()=>{o1(n,r),Y.render(()=>{ju(r,i,Pu(n.tagName),e.transformTemplate),im(n,r)})})}})},l1={useVisualState:qp({scrapeMotionValuesFromProps:Tu,createRenderState:Cu})};function am(e,t,n){for(const r in t)!we(t[r])&&!sm(r,n)&&(e[r]=t[r])}function u1({transformTemplate:e},t){return j.useMemo(()=>{const n=Cu();return ku(n,t,e),Object.assign({},n.vars,n.style)},[t])}function c1(e,t){const n=e.style||{},r={};return am(r,n,e),Object.assign(r,u1(e,t)),r}function d1(e,t){const n={},r=c1(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 f1(e,t,n,r){const i=j.useMemo(()=>{const s=tm();return ju(s,t,Pu(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};am(s,e.style,e),i.style={...s,...i.style}}return i}function h1(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(gu(n)?f1:d1)(r,s,o,n),u=N0(r,typeof n=="string",e),d=n!==j.Fragment?{...u,...l,ref:i}:{},{children:f}=r,h=j.useMemo(()=>we(f)?f.get():f,[f]);return j.createElement(n,{...d,children:h})}}function p1(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...gu(r)?a1:l1,preloadedFeatures:e,useRender:h1(i),createVisualElement:t,Component:r};return z0(o)}}function lm(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 uo(e,t,n){const r=e.getProps();return xu(r,t,n!==void 0?n:r.custom,e)}const m1=hu(()=>window.ScrollTimeline!==void 0);class y1{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(i=>{if(m1()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].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 v1 extends y1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Eu(e,t){return e?e[t]||e.default||e:void 0}const qa=2e4;function um(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<qa;)t+=n,r=e.next(t);return t>=qa?1/0:t}function Nu(e){return typeof e=="function"}function ud(e,t){e.timeline=t,e.onfinish=null}const Mu=e=>Array.isArray(e)&&typeof e[0]=="number",g1={linearEasing:void 0};function x1(e,t){const n=hu(e);return()=>{var r;return(r=g1[t])!==null&&r!==void 0?r:n()}}const _s=x1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(Jn(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function dm(e){return!!(typeof e=="function"&&_s()||!e||typeof e=="string"&&(e in Za||_s())||Mu(e)||Array.isArray(e)&&e.every(dm))}const Sr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Za={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Sr([0,.65,.55,1]),circOut:Sr([.55,0,1,.45]),backIn:Sr([.31,.01,.66,-.59]),backOut:Sr([.33,1.53,.69,.99])};function fm(e,t){if(e)return typeof e=="function"&&_s()?cm(e,t):Mu(e)?Sr(e):Array.isArray(e)?e.map(n=>fm(n,t)||Za.easeOut):Za[e]}const Je={x:!1,y:!1};function hm(){return Je.x||Je.y}function w1(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function pm(e,t){const n=w1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function cd(e){return t=>{t.pointerType==="touch"||hm()||e(t)}}function S1(e,t,n={}){const[r,i,s]=pm(e,n),o=cd(a=>{const{target:l}=a,u=t(a);if(typeof u!="function"||!l)return;const d=cd(f=>{u(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,i)});return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const mm=(e,t)=>t?e===t?!0:mm(e,t.parentElement):!1,Au=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,k1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function j1(e){return k1.has(e.tagName)||e.tabIndex!==-1}const kr=new WeakSet;function dd(e){return t=>{t.key==="Enter"&&e(t)}}function Uo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const C1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=dd(()=>{if(kr.has(n))return;Uo(n,"down");const i=dd(()=>{Uo(n,"up")}),s=()=>Uo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function fd(e){return Au(e)&&!hm()}function P1(e,t,n={}){const[r,i,s]=pm(e,n),o=a=>{const l=a.currentTarget;if(!fd(a)||kr.has(l))return;kr.add(l);const u=t(a),d=(g,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!fd(g)||!kr.has(l))&&(kr.delete(l),typeof u=="function"&&u(g,{success:x}))},f=g=>{d(g,n.useGlobalTarget||mm(l,g.target))},h=g=>{d(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{!j1(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>C1(u,i),i)}),s}function T1(e){return e==="x"||e==="y"?Je[e]?null:(Je[e]=!0,()=>{Je[e]=!1}):Je.x||Je.y?null:(Je.x=Je.y=!0,()=>{Je.x=Je.y=!1})}const ym=new Set(["width","height","top","left","right","bottom",...sr]);let is;function E1(){is=void 0}const ht={now:()=>(is===void 0&&ht.set(fe.isProcessing||k0.useManualTiming?fe.timestamp:performance.now()),is),set:e=>{is=e,queueMicrotask(E1)}};function Du(e,t){e.indexOf(t)===-1&&e.push(t)}function Lu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ru{constructor(){this.subscriptions=[]}add(t){return Du(this.subscriptions,t),()=>Lu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vm(e,t){return t?e*(1e3/t):0}const hd=30,N1=e=>!isNaN(parseFloat(e));class M1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ht.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&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=ht.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 Ru);const r=this.events[t].add(n);return t==="change"?()=>{r(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>hd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,hd);return vm(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 oi(e,t){return new M1(e,t)}function A1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oi(n))}function D1(e,t){const n=uo(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=W0(s[o]);A1(e,o,a)}}function L1(e){return!!(we(e)&&e.add)}function Ja(e,t){const n=e.getValue("willChange");if(L1(n))return n.add(t)}function gm(e){return e.props[bp]}const xm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,R1=1e-7,V1=12;function _1(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=xm(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>R1&&++a<V1);return o}function yi(e,t,n,r){if(e===t&&n===r)return Ie;const i=s=>_1(s,0,1,e,n);return s=>s===0||s===1?s:xm(i(s),t,r)}const wm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sm=e=>t=>1-e(1-t),km=yi(.33,1.53,.69,.99),Vu=Sm(km),jm=wm(Vu),Cm=e=>(e*=2)<1?.5*Vu(e):.5*(2-Math.pow(2,-10*(e-1))),_u=e=>1-Math.sin(Math.acos(e)),Pm=Sm(_u),Tm=wm(_u),Em=e=>/^0[^.\s]+$/u.test(e);function O1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Em(e):!0}const Vr=e=>Math.round(e*1e5)/1e5,Ou=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z1(e){return e==null}const F1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,zu=(e,t)=>n=>!!(typeof n=="string"&&F1.test(n)&&n.startsWith(e)||t&&!z1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Ou);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},I1=e=>Tt(0,255,e),$o={...or,transform:e=>Math.round(I1(e))},un={test:zu("rgb","red"),parse:Nm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$o.transform(e)+", "+$o.transform(t)+", "+$o.transform(n)+", "+Vr(si.transform(r))+")"};function B1(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const el={test:zu("#"),parse:B1,transform:un.transform},_n={test:zu("hsl","hue"),parse:Nm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(Vr(t))+", "+ft.transform(Vr(n))+", "+Vr(si.transform(r))+")"},ge={test:e=>un.test(e)||el.test(e)||_n.test(e),parse:e=>un.test(e)?un.parse(e):_n.test(e)?_n.parse(e):el.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?un.transform(e):_n.transform(e)},U1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ou))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(U1))===null||n===void 0?void 0:n.length)||0)>0}const Mm="number",Am="color",W1="var",H1="var(",pd="${}",K1=/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 ai(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(K1,l=>(ge.test(l)?(r.color.push(s),i.push(Am),n.push(ge.parse(l))):l.startsWith(H1)?(r.var.push(s),i.push(W1),n.push(l)):(r.number.push(s),i.push(Mm),n.push(parseFloat(l))),++s,pd)).split(pd);return{values:n,split:a,indexes:r,types:i}}function Dm(e){return ai(e).values}function Lm(e){const{split:t,types:n}=ai(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Mm?s+=Vr(i[o]):a===Am?s+=ge.transform(i[o]):s+=i[o]}return s}}const G1=e=>typeof e=="number"?0:e;function Q1(e){const t=Dm(e);return Lm(e)(t.map(G1))}const bt={test:$1,parse:Dm,createTransformer:Lm,getAnimatableNone:Q1},b1=new Set(["brightness","contrast","saturate","opacity"]);function Y1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ou)||[];if(!r)return e;const i=n.replace(r,"");let s=b1.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const X1=/\b([a-z-]*)\(.*?\)/gu,tl={...bt,getAnimatableNone:e=>{const t=e.match(X1);return t?t.map(Y1).join(" "):e}},q1={...Su,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:tl,WebkitFilter:tl},Fu=e=>q1[e];function Rm(e,t){let n=Fu(e);return n!==tl&&(n=bt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Z1=new Set(["auto","none","0"]);function J1(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!Z1.has(s)&&ai(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Rm(n,i)}const md=e=>e===or||e===O,yd=(e,t)=>parseFloat(e.split(", ")[t]),vd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return yd(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?yd(s[1],e):0}},ex=new Set(["x","y","z"]),tx=sr.filter(e=>!ex.has(e));function nx(e){const t=[];return tx.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const tr={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)};tr.translateX=tr.x;tr.translateY=tr.y;const fn=new Set;let nl=!1,rl=!1;function Vm(){if(rl){const e=Array.from(fn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=nx(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}rl=!1,nl=!1,fn.forEach(e=>e.complete()),fn.clear()}function _m(){fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(rl=!0)})}function rx(){_m(),Vm()}class Iu{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fn.add(this),nl||(nl=!0,Y.read(_m),Y.resolveKeyframes(Vm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Om=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ix=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sx(e){const t=ix.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function zm(e,t,n=1){const[r,i]=sx(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return Om(o)?parseFloat(o):o}return wu(i)?zm(i,t,n+1):i}const Fm=e=>t=>t.test(e),ox={test:e=>e==="auto",parse:e=>e},Im=[or,O,ft,Mt,Y0,b0,ox],gd=e=>Im.find(Fm(e));class Bm extends Iu{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),wu(u))){const d=zm(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ym.has(r)||t.length!==2)return;const[i,s]=t,o=gd(i),a=gd(s);if(o!==a)if(md(o)&&md(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)O1(t[i])&&r.push(i);r.length&&J1(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=tr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=tr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const xd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bt.test(e)||e==="0")&&!e.startsWith("url("));function ax(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 lx(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=xd(i,t),a=xd(s,t);return!o||!a?!1:ax(e)||(n==="spring"||Nu(n))&&r}const ux=e=>e!==null;function co(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(ux),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const cx=40;class Um{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ht.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>cx?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&rx(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ht.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!lx(t,r,i,s))if(o)this.options.duration=0;else{l&&l(co(t,this.options,n)),a&&a(),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 Z=(e,t,n)=>e+(t-e)*n;function Wo(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 dx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Wo(l,a,e+1/3),s=Wo(l,a,e),o=Wo(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Os(e,t){return n=>n>0?t:e}const Ho=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},fx=[el,un,_n],hx=e=>fx.find(t=>t.test(e));function wd(e){const t=hx(e);if(!t)return!1;let n=t.parse(e);return t===_n&&(n=dx(n)),n}const Sd=(e,t)=>{const n=wd(e),r=wd(t);if(!n||!r)return Os(e,t);const i={...n};return s=>(i.red=Ho(n.red,r.red,s),i.green=Ho(n.green,r.green,s),i.blue=Ho(n.blue,r.blue,s),i.alpha=Z(n.alpha,r.alpha,s),un.transform(i))},px=(e,t)=>n=>t(e(n)),vi=(...e)=>e.reduce(px),il=new Set(["none","hidden"]);function mx(e,t){return il.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yx(e,t){return n=>Z(e,t,n)}function Bu(e){return typeof e=="number"?yx:typeof e=="string"?wu(e)?Os:ge.test(e)?Sd:xx:Array.isArray(e)?$m:typeof e=="object"?ge.test(e)?Sd:vx:Os}function $m(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Bu(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function vx(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Bu(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function gx(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][i[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const xx=(e,t)=>{const n=bt.createTransformer(t),r=ai(e),i=ai(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?il.has(e)&&!i.values.length||il.has(t)&&!r.values.length?mx(e,t):vi($m(gx(r,i),i.values),n):Os(e,t)};function Wm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Z(e,t,n):Bu(e)(e,t)}const wx=5;function Hm(e,t,n){const r=Math.max(t-wx,0);return vm(n-e(r),t-r)}const te={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},Ko=.001;function Sx({duration:e=te.duration,bounce:t=te.bounce,velocity:n=te.velocity,mass:r=te.mass}){let i,s,o=1-t;o=Tt(te.minDamping,te.maxDamping,o),e=Tt(te.minDuration,te.maxDuration,St(e)),o<1?(i=u=>{const d=u*o,f=d*e,h=d-n,g=sl(u,o),x=Math.exp(-f);return Ko-h/g*x},s=u=>{const f=u*o*e,h=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-f),v=sl(Math.pow(u,2),o);return(-i(u)+Ko>0?-1:1)*((h-g)*x)/v}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ko+d*f},s=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=jx(i,s,a);if(e=wt(e),isNaN(l))return{stiffness:te.stiffness,damping:te.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const kx=12;function jx(e,t,n){let r=n;for(let i=1;i<kx;i++)r=r-e(r)/t(r);return r}function sl(e,t){return e*Math.sqrt(1-t*t)}const Cx=["duration","bounce"],Px=["stiffness","damping","mass"];function kd(e,t){return t.some(n=>e[n]!==void 0)}function Tx(e){let t={velocity:te.velocity,stiffness:te.stiffness,damping:te.damping,mass:te.mass,isResolvedFromDuration:!1,...e};if(!kd(e,Px)&&kd(e,Cx))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:te.mass,stiffness:i,damping:s}}else{const n=Sx(e);t={...t,...n,mass:te.mass},t.isResolvedFromDuration=!0}return t}function Km(e=te.visualDuration,t=te.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:g}=Tx({...n,velocity:-St(n.velocity||0)}),x=h||0,v=u/(2*Math.sqrt(l*d)),C=o-s,m=St(Math.sqrt(l/d)),p=Math.abs(C)<5;r||(r=p?te.restSpeed.granular:te.restSpeed.default),i||(i=p?te.restDelta.granular:te.restDelta.default);let y;if(v<1){const w=sl(m,v);y=k=>{const P=Math.exp(-v*m*k);return o-P*((x+v*m*C)/w*Math.sin(w*k)+C*Math.cos(w*k))}}else if(v===1)y=w=>o-Math.exp(-m*w)*(C+(x+m*C)*w);else{const w=m*Math.sqrt(v*v-1);y=k=>{const P=Math.exp(-v*m*k),T=Math.min(w*k,300);return o-P*((x+v*m*C)*Math.sinh(T)+w*C*Math.cosh(T))/w}}const S={calculatedDuration:g&&f||null,next:w=>{const k=y(w);if(g)a.done=w>=f;else{let P=0;v<1&&(P=w===0?wt(x):Hm(y,w,k));const T=Math.abs(P)<=r,L=Math.abs(o-k)<=i;a.done=T&&L}return a.value=a.done?o:k,a},toString:()=>{const w=Math.min(um(S),qa),k=cm(P=>S.next(w*P).value,w,30);return w+"ms "+k}};return S}function jd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},g=T=>a!==void 0&&T<a||l!==void 0&&T>l,x=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let v=n*t;const C=f+v,m=o===void 0?C:o(C);m!==C&&(v=m-f);const p=T=>-v*Math.exp(-T/r),y=T=>m+p(T),S=T=>{const L=p(T),M=y(T);h.done=Math.abs(L)<=u,h.value=h.done?m:M};let w,k;const P=T=>{g(h.value)&&(w=T,k=Km({keyframes:[h.value,x(h.value)],velocity:Hm(y,T,h.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:T=>{let L=!1;return!k&&w===void 0&&(L=!0,S(T),P(T)),w!==void 0&&T>=w?k.next(T-w):(!L&&S(T),h)}}}const Ex=yi(.42,0,1,1),Nx=yi(0,0,.58,1),Gm=yi(.42,0,.58,1),Mx=e=>Array.isArray(e)&&typeof e[0]!="number",Ax={linear:Ie,easeIn:Ex,easeInOut:Gm,easeOut:Nx,circIn:_u,circInOut:Tm,circOut:Pm,backIn:Vu,backInOut:jm,backOut:km,anticipate:Cm},Cd=e=>{if(Mu(e)){Wp(e.length===4);const[t,n,r,i]=e;return yi(t,n,r,i)}else if(typeof e=="string")return Ax[e];return e};function Dx(e,t,n){const r=[],i=n||Wm,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ie:t;a=vi(l,a)}r.push(a)}return r}function Lx(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Wp(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Dx(t,r,i),l=a.length,u=d=>{if(o&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=Jn(e[f],e[f+1],d);return a[f](h)};return n?d=>u(Tt(e[0],e[s-1],d)):u}function Rx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Jn(0,t,r);e.push(Z(n,1,i))}}function Vx(e){const t=[0];return Rx(t,e.length-1),t}function _x(e,t){return e.map(n=>n*t)}function Ox(e,t){return e.map(()=>t||Gm).splice(0,e.length-1)}function zs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Mx(r)?r.map(Cd):Cd(r),s={done:!1,value:t[0]},o=_x(n&&n.length===t.length?n:Vx(t),e),a=Lx(o,t,{ease:Array.isArray(i)?i:Ox(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const zx=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Y.update(t,!0),stop:()=>Qt(t),now:()=>fe.isProcessing?fe.timestamp:ht.now()}},Fx={decay:jd,inertia:jd,tween:zs,keyframes:zs,spring:Km},Ix=e=>e/100;class Uu extends Um{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Iu,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(s,a,n,r,i),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:i=0,repeatType:s,velocity:o=0}=this.options,a=Nu(n)?n:Fx[n]||zs;let l,u;a!==zs&&typeof t[0]!="number"&&(l=vi(Ix,Wm(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});s==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=um(d));const{calculatedDuration:f}=d,h=f+i,g=h*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:h,repeat:g,repeatType:x,repeatDelay:v,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-h*(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 y=this.currentTime,S=s;if(g){const T=Math.min(this.currentTime,d)/f;let L=Math.floor(T),M=T%1;!M&&T>=1&&(M=1),M===1&&L--,L=Math.min(L,g+1),!!(L%2)&&(x==="reverse"?(M=1-M,v&&(M-=v/f)):x==="mirror"&&(S=o)),y=Tt(0,1,M)*f}const w=p?{done:!1,value:l[0]}:S.next(y);a&&(w.value=a(w.value));let{done:k}=w;!p&&u!==null&&(k=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&i!==void 0&&(w.value=co(l,this.options,i)),C&&C(w.value),P&&this.finish(),w}get duration(){const{resolved:t}=this;return t?St(t.calculatedDuration):0}get time(){return St(this.currentTime)}set time(t){t=wt(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=St(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=zx,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):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 Bx=new Set(["opacity","clipPath","filter","transform"]);function Ux(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=fm(a,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const $x=hu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fs=10,Wx=2e4;function Hx(e){return Nu(e.type)||e.type==="spring"||!dm(e.ease)}function Kx(e,t){const n=new Uu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<Wx;)r=n.sample(s),i.push(r.value),s+=Fs;return{times:void 0,keyframes:i,duration:s-Fs,ease:"linear"}}const Qm={anticipate:Cm,backInOut:jm,circInOut:Tm};function Gx(e){return e in Qm}class Pd extends Um{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Bm(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&_s()&&Gx(s)&&(s=Qm[s]),Hx(this.options)){const{onComplete:f,onUpdate:h,motionValue:g,element:x,...v}=this.options,C=Kx(t,v);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,i=C.times,s=C.ease,o="keyframes"}const d=Ux(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(ud(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;a.set(co(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return St(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return St(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ie;const{animation:r}=n;ud(r,t)}return Ie}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:h,...g}=this.options,x=new Uu({...g,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),v=wt(this.time);u.setWithVelocity(x.sample(v-Fs).value,x.sample(v).value,Fs)}const{onStop:l}=this.options;l&&l(),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:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return $x()&&r&&Bx.has(r)&&!l&&!u&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const Qx={type:"spring",stiffness:500,damping:25,restSpeed:10},bx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yx={type:"keyframes",duration:.8},Xx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qx=(e,{keyframes:t})=>t.length>2?Yx:wn.has(e)?e.startsWith("scale")?bx(t[1]):Qx:Xx;function Zx({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const $u=(e,t,n,r={},i,s)=>o=>{const a=Eu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-wt(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Zx(a)||(d={...d,...qx(e,d)}),d.duration&&(d.duration=wt(d.duration)),d.repeatDelay&&(d.repeatDelay=wt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const h=co(d.keyframes,a);if(h!==void 0)return Y.update(()=>{d.onUpdate(h),d.onComplete()}),new v1([])}return!s&&Pd.supports(d)?new Pd(d):new Uu(d)};function Jx({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function bm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const h=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),g=l[f];if(g===void 0||d&&Jx(d,f))continue;const x={delay:n,...Eu(o||{},f)};let v=!1;if(window.MotionHandoffAnimation){const m=gm(e);if(m){const p=window.MotionHandoffAnimation(m,f,Y);p!==null&&(x.startTime=p,v=!0)}}Ja(e,f),h.start($u(f,h,g,e.shouldReduceMotion&&ym.has(f)?{type:!1}:x,e,v));const C=h.animation;C&&u.push(C)}return a&&Promise.all(u).then(()=>{Y.update(()=>{a&&D1(e,a)})}),u}function ol(e,t,n={}){var r;const i=uo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(bm(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return ew(e,t,d+u,f,h,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>d())}else return Promise.all([o(),a(n.delay)])}function ew(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(tw).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(ol(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function tw(e,t){return e.sortNodePosition(t)}function nw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>ol(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=ol(e,t,n);else{const i=typeof t=="function"?uo(e,t,n.custom):t;r=Promise.all(bm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const rw=mu.length;function Ym(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ym(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rw;n++){const r=mu[n],i=e.props[r];(ii(i)||i===!1)&&(t[r]=i)}return t}const iw=[...pu].reverse(),sw=pu.length;function ow(e){return t=>Promise.all(t.map(({animation:n,options:r})=>nw(e,n,r)))}function aw(e){let t=ow(e),n=Td(),r=!0;const i=l=>(u,d)=>{var f;const h=uo(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:g,transitionEnd:x,...v}=h;u={...u,...v,...x}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,d=Ym(e.parent)||{},f=[],h=new Set;let g={},x=1/0;for(let C=0;C<sw;C++){const m=iw[C],p=n[m],y=u[m]!==void 0?u[m]:d[m],S=ii(y),w=m===l?p.isActive:null;w===!1&&(x=C);let k=y===d[m]&&y!==u[m]&&S;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),p.protectedKeys={...g},!p.isActive&&w===null||!y&&!p.prevProp||ao(y)||typeof y=="boolean")continue;const P=lw(p.prevProp,y);let T=P||m===l&&p.isActive&&!k&&S||C>x&&S,L=!1;const M=Array.isArray(y)?y:[y];let K=M.reduce(i(m),{});w===!1&&(K={});const{prevResolvedValues:me={}}=p,ke={...me,...K},R=B=>{T=!0,h.has(B)&&(L=!0,h.delete(B)),p.needsAnimating[B]=!0;const N=e.getValue(B);N&&(N.liveStyle=!1)};for(const B in ke){const N=K[B],_=me[B];if(g.hasOwnProperty(B))continue;let F=!1;Xa(N)&&Xa(_)?F=!lm(N,_):F=N!==_,F?N!=null?R(B):h.add(B):N!==void 0&&h.has(B)?R(B):p.protectedKeys[B]=!0}p.prevProp=y,p.prevResolvedValues=K,p.isActive&&(g={...g,...K}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(k&&P)||L)&&f.push(...M.map(B=>({animation:B,options:{type:m}})))}if(h.size){const C={};h.forEach(m=>{const p=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),C[m]=p??null}),f.push({animation:C})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const f=o(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Td(),r=!0}}}function lw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!lm(t,e):!1}function en(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Td(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class uw extends Zt{constructor(t){super(t),t.animationState||(t.animationState=aw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ao(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 cw=0;class dw extends Zt{constructor(){super(...arguments),this.id=cw++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const fw={animation:{Feature:uw},exit:{Feature:dw}};function li(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gi(e){return{point:{x:e.pageX,y:e.pageY}}}const hw=e=>t=>Au(t)&&e(t,gi(t));function _r(e,t,n,r){return li(e,t,hw(n),r)}const Ed=(e,t)=>Math.abs(e-t);function pw(e,t){const n=Ed(e.x,t.x),r=Ed(e.y,t.y);return Math.sqrt(n**2+r**2)}class Xm{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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 f=Qo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=pw(f.offset,{x:0,y:0})>=3;if(!h&&!g)return;const{point:x}=f,{timestamp:v}=fe;this.history.push({...x,timestamp:v});const{onStart:C,onMove:m}=this.handlers;h||(C&&C(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Go(h,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Qo(f.type==="pointercancel"?this.lastMoveEventInfo:Go(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,C),x&&x(f,C)},!Au(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=gi(t),a=Go(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=fe;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Qo(a,this.history)),this.removeListeners=vi(_r(this.contextWindow,"pointermove",this.handlePointerMove),_r(this.contextWindow,"pointerup",this.handlePointerUp),_r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qt(this.updatePoint)}}function Go(e,t){return t?{point:t(e.point)}:e}function Nd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qo({point:e},t){return{point:e,delta:Nd(e,qm(t)),offset:Nd(e,mw(t)),velocity:yw(t,.1)}}function mw(e){return e[0]}function qm(e){return e[e.length-1]}function yw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=qm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wt(t)));)n--;if(!r)return{x:0,y:0};const s=St(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Zm=1e-4,vw=1-Zm,gw=1+Zm,Jm=.01,xw=0-Jm,ww=0+Jm;function Ue(e){return e.max-e.min}function Sw(e,t,n){return Math.abs(e-t)<=n}function Md(e,t,n,r=.5){e.origin=r,e.originPoint=Z(t.min,t.max,e.origin),e.scale=Ue(n)/Ue(t),e.translate=Z(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vw&&e.scale<=gw||isNaN(e.scale))&&(e.scale=1),(e.translate>=xw&&e.translate<=ww||isNaN(e.translate))&&(e.translate=0)}function Or(e,t,n,r){Md(e.x,t.x,n.x,r?r.originX:void 0),Md(e.y,t.y,n.y,r?r.originY:void 0)}function Ad(e,t,n){e.min=n.min+t.min,e.max=e.min+Ue(t)}function kw(e,t,n){Ad(e.x,t.x,n.x),Ad(e.y,t.y,n.y)}function Dd(e,t,n){e.min=t.min-n.min,e.max=e.min+Ue(t)}function zr(e,t,n){Dd(e.x,t.x,n.x),Dd(e.y,t.y,n.y)}function jw(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Z(n,e,r.max):Math.min(e,n)),e}function Ld(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 Cw(e,{top:t,left:n,bottom:r,right:i}){return{x:Ld(e.x,n,i),y:Ld(e.y,t,r)}}function Rd(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 Pw(e,t){return{x:Rd(e.x,t.x),y:Rd(e.y,t.y)}}function Tw(e,t){let n=.5;const r=Ue(e),i=Ue(t);return i>r?n=Jn(t.min,t.max-r,e.min):r>i&&(n=Jn(e.min,e.max-i,t.min)),Tt(0,1,n)}function Ew(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 al=.35;function Nw(e=al){return e===!1?e=0:e===!0&&(e=al),{x:Vd(e,"left","right"),y:Vd(e,"top","bottom")}}function Vd(e,t,n){return{min:_d(e,t),max:_d(e,n)}}function _d(e,t){return typeof e=="number"?e:e[t]||0}const Od=()=>({translate:0,scale:1,origin:0,originPoint:0}),On=()=>({x:Od(),y:Od()}),zd=()=>({min:0,max:0}),re=()=>({x:zd(),y:zd()});function Ke(e){return[e("x"),e("y")]}function ey({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Mw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Aw(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 bo(e){return e===void 0||e===1}function ll({scale:e,scaleX:t,scaleY:n}){return!bo(e)||!bo(t)||!bo(n)}function rn(e){return ll(e)||ty(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ty(e){return Fd(e.x)||Fd(e.y)}function Fd(e){return e&&e!=="0%"}function Is(e,t,n){const r=e-n,i=t*r;return n+i}function Id(e,t,n,r,i){return i!==void 0&&(e=Is(e,i,r)),Is(e,n,r)+t}function ul(e,t=0,n=1,r,i){e.min=Id(e.min,t,n,r,i),e.max=Id(e.max,t,n,r,i)}function ny(e,{x:t,y:n}){ul(e.x,t.translate,t.scale,t.originPoint),ul(e.y,n.translate,n.scale,n.originPoint)}const Bd=.999999999999,Ud=1.0000000000001;function Dw(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Fn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ny(e,o)),r&&rn(s.latestValues)&&Fn(e,s.latestValues))}t.x<Ud&&t.x>Bd&&(t.x=1),t.y<Ud&&t.y>Bd&&(t.y=1)}function zn(e,t){e.min=e.min+t,e.max=e.max+t}function $d(e,t,n,r,i=.5){const s=Z(e.min,e.max,i);ul(e,t,n,s,r)}function Fn(e,t){$d(e.x,t.x,t.scaleX,t.scale,t.originX),$d(e.y,t.y,t.scaleY,t.scale,t.originY)}function ry(e,t){return ey(Aw(e.getBoundingClientRect(),t))}function Lw(e,t,n){const r=ry(e,n),{scroll:i}=t;return i&&(zn(r.x,i.offset.x),zn(r.y,i.offset.y)),r}const iy=({current:e})=>e?e.ownerDocument.defaultView:null,Rw=new WeakMap;class Vw{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=re(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gi(d).point)},s=(d,f)=>{const{drag:h,dragPropagation:g,onDragStart:x}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=T1(h),!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),Ke(C=>{let m=this.getAxisMotionValue(C).get()||0;if(ft.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const y=p.layout.layoutBox[C];y&&(m=Ue(y)*(parseFloat(m)/100))}}this.originPoint[C]=m}),x&&Y.postRender(()=>x(d,f)),Ja(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:x,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:C}=f;if(g&&this.currentDirection===null){this.currentDirection=_w(C),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,C),this.updateAxis("y",f.point,C),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>Ke(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Xm(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:iy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Y.postRender(()=>s(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:i}=this.getProps();if(!r||!Ui(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=jw(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Vn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Cw(i.layoutBox,n):this.constraints=!1,this.elastic=Nw(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ke(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Ew(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Lw(r,i.root,this.visualElement.getTransformPagePoint());let o=Pw(i.layout.layoutBox,s);if(n){const a=n(Mw(o));this.hasMutatedConstraints=!!a,a&&(o=ey(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ke(d=>{if(!Ui(d,n,this.currentDirection))return;let f=l&&l[d]||{};o&&(f={min:0,max:0});const h=i?200:1e6,g=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ja(this.visualElement,t),r.start($u(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ke(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(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ke(n=>{const{drag:r}=this.getProps();if(!Ui(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Z(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ke(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Tw({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ke(o=>{if(!Ui(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Z(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Rw.set(this.visualElement,this);const t=this.visualElement.current,n=_r(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Y.read(r);const o=li(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ke(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=al,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ui(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _w(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ow extends Zt{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new Vw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const Wd=e=>(t,n)=>{e&&Y.postRender(()=>e(t,n))};class zw extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new Xm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Wd(t),onStart:Wd(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Y.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=_r(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 ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=Hd(e,t.target.x),r=Hd(e,t.target.y);return`${n}% ${r}%`}},Fw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=bt.parse(e);if(i.length>5)return r;const s=bt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Z(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class Iw extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s1(Bw),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Y.postRender(()=>{const a=o.getStack();(!a||!a.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:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function sy(e){const[t,n]=Up(),r=j.useContext(uu);return c.jsx(Iw,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(Yp),isPresent:t,safeToRemove:n})}const Bw={borderRadius:{...mr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:mr,borderBottomRightRadius:mr,boxShadow:Fw};function Uw(e,t,n){const r=we(e)?e:oi(e);return r.start($u("",r,t,n)),r.animation}function $w(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Ww=(e,t)=>e.depth-t.depth;class Hw{constructor(){this.children=[],this.isDirty=!1}add(t){Du(this.children,t),this.isDirty=!0}remove(t){Lu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ww),this.isDirty=!1,this.children.forEach(t)}}function Kw(e,t){const n=ht.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Qt(r),e(s-t))};return Y.read(r,!0),()=>Qt(r)}const oy=["TopLeft","TopRight","BottomLeft","BottomRight"],Gw=oy.length,Kd=e=>typeof e=="string"?parseFloat(e):e,Gd=e=>typeof e=="number"||O.test(e);function Qw(e,t,n,r,i,s){i?(e.opacity=Z(0,n.opacity!==void 0?n.opacity:1,bw(r)),e.opacityExit=Z(t.opacity!==void 0?t.opacity:1,0,Yw(r))):s&&(e.opacity=Z(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Gw;o++){const a=`border${oy[o]}Radius`;let l=Qd(t,a),u=Qd(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Gd(l)===Gd(u)?(e[a]=Math.max(Z(Kd(l),Kd(u),r),0),(ft.test(u)||ft.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Z(t.rotate||0,n.rotate||0,r))}function Qd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const bw=ay(0,.5,Pm),Yw=ay(.5,.95,Ie);function ay(e,t,n){return r=>r<e?0:r>t?1:n(Jn(e,t,r))}function bd(e,t){e.min=t.min,e.max=t.max}function He(e,t){bd(e.x,t.x),bd(e.y,t.y)}function Yd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Xd(e,t,n,r,i){return e-=t,e=Is(e,1/n,r),i!==void 0&&(e=Is(e,1/i,r)),e}function Xw(e,t=0,n=1,r=.5,i,s=e,o=e){if(ft.test(t)&&(t=parseFloat(t),t=Z(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Z(s.min,s.max,r);e===s&&(a-=t),e.min=Xd(e.min,t,n,a,i),e.max=Xd(e.max,t,n,a,i)}function qd(e,t,[n,r,i],s,o){Xw(e,t[n],t[r],t[i],t.scale,s,o)}const qw=["x","scaleX","originX"],Zw=["y","scaleY","originY"];function Zd(e,t,n,r){qd(e.x,t,qw,n?n.x:void 0,r?r.x:void 0),qd(e.y,t,Zw,n?n.y:void 0,r?r.y:void 0)}function Jd(e){return e.translate===0&&e.scale===1}function ly(e){return Jd(e.x)&&Jd(e.y)}function ef(e,t){return e.min===t.min&&e.max===t.max}function Jw(e,t){return ef(e.x,t.x)&&ef(e.y,t.y)}function tf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function uy(e,t){return tf(e.x,t.x)&&tf(e.y,t.y)}function nf(e){return Ue(e.x)/Ue(e.y)}function rf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class eS{constructor(){this.members=[]}add(t){Du(this.members,t),t.scheduleRender()}remove(t){if(Lu(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;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:i}=t.options;i===!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 tS(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:g,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),g&&(r+=`skewX(${g}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const sn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},jr=typeof window<"u"&&window.MotionDebug!==void 0,Yo=["","X","Y","Z"],nS={visibility:"hidden"},sf=1e3;let rS=0;function Xo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=gm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Y,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cy(r)}function dy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=rS++,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,jr&&(sn.totalNodes=sn.resolvedTargetDeltas=sn.recalculatedProjection=0),this.nodes.forEach(oS),this.nodes.forEach(dS),this.nodes.forEach(fS),this.nodes.forEach(aS),jr&&window.MotionDebug.record(sn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Hw)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Ru),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=$w(o),this.instance=o;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Kw(h,250),ss.hasAnimatedSinceResize&&(ss.hasAnimatedSinceResize=!1,this.nodes.forEach(af))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||vS,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!uy(this.targetLayout,x)||g,y=!h&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const S={...Eu(v,"layout"),onPlay:C,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else h||af(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qt(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(hS),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(of);return}this.isUpdating||this.nodes.forEach(uS),this.isUpdating=!1,this.nodes.forEach(cS),this.nodes.forEach(iS),this.nodes.forEach(sS),this.clearAllSnapshots();const a=ht.now();fe.delta=Tt(0,1e3/60,a-fe.timestamp),fe.timestamp=a,fe.isProcessing=!0,Bo.update.process(fe),Bo.preRender.process(fe),Bo.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lS),this.sharedNodes.forEach(pS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ly(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(a||rn(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),gS(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return re();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(xS))){const{scroll:d}=this.root;d&&(zn(l.x,d.offset.x),zn(l.y,d.offset.y))}return l}removeElementScroll(o){var a;const l=re();if(He(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&He(l,o),zn(l.x,f.offset.x),zn(l.y,f.offset.y))}return l}applyTransform(o,a=!1){const l=re();He(l,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Fn(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),rn(d.latestValues)&&Fn(l,d.latestValues)}return rn(this.latestValues)&&Fn(l,this.latestValues),l}removeTransform(o){const a=re();He(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!rn(u.latestValues))continue;ll(u.latestValues)&&u.updateSnapshot();const d=re(),f=u.measurePageBox();He(d,f),Zd(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return rn(this.latestValues)&&Zd(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=fe.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),zr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),kw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):He(this.target,this.layout.layoutBox),ny(this.target,this.targetDelta)):He(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),zr(this.relativeTargetOrigin,this.target,g.target),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}jr&&sn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ll(this.parent.latestValues)||ty(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=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||f))return;He(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;Dw(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=re());const{target:x}=a;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Yd(this.prevProjectionDelta.x,this.projectionDelta.x),Yd(this.prevProjectionDelta.y,this.projectionDelta.y)),Or(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==g||!rf(this.projectionDelta.x,this.prevProjectionDelta.x)||!rf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),jr&&sn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=On(),this.projectionDelta=On(),this.projectionDeltaWithTransform=On()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=On();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=re(),g=l?l.source:void 0,x=this.layout?this.layout.source:void 0,v=g!==x,C=this.getStack(),m=!C||C.members.length<=1,p=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(yS));this.animationProgress=0;let y;this.mixTargetDelta=S=>{const w=S/1e3;lf(f.x,o.x,w),lf(f.y,o.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mS(this.relativeTarget,this.relativeTargetOrigin,h,w),y&&Jw(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=re()),He(y,this.relativeTarget)),v&&(this.animationValues=d,Qw(d,u,this.latestValues,w,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{ss.hasAnimatedSinceResize=!0,this.currentAnimation=Uw(0,sf,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(sf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&fy(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||re();const f=Ue(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Ue(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}He(a,l),Fn(a,d),Or(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new eS),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Xo("z",o,u,this.animationValues);for(let d=0;d<Yo.length;d++)Xo(`rotate${Yo[d]}`,o,u,this.animationValues),Xo(`skew${Yo[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nS;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=rs(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=rs(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!rn(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=tS(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:g,y:x}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${x.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const v in Vs){if(h[v]===void 0)continue;const{correct:C,applyTo:m}=Vs[v],p=u.transform==="none"?h[v]:C(h[v],f);if(m){const y=m.length;for(let S=0;S<y;S++)u[m[S]]=p}else u[v]=p}return this.options.layoutId&&(u.pointerEvents=f===this?rs(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(of),this.root.sharedNodes.clear()}}}function iS(e){e.updateLayout()}function sS(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:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Ke(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],g=Ue(h);h.min=r[f].min,h.max=h.min+g}):fy(s,n.layoutBox,r)&&Ke(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],g=Ue(r[f]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const a=On();Or(a,r,n.layoutBox);const l=On();o?Or(l,e.applyTransform(i,!0),n.measuredBox):Or(l,r,n.layoutBox);const u=!ly(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:g}=f;if(h&&g){const x=re();zr(x,n.layoutBox,h.layoutBox);const v=re();zr(v,r,g.layoutBox),uy(x,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function oS(e){jr&&sn.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 aS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lS(e){e.clearSnapshot()}function of(e){e.clearMeasurements()}function uS(e){e.isLayoutDirty=!1}function cS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function af(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dS(e){e.resolveTargetDelta()}function fS(e){e.calcProjection()}function hS(e){e.resetSkewAndRotation()}function pS(e){e.removeLeadSnapshot()}function lf(e,t,n){e.translate=Z(t.translate,0,n),e.scale=Z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function uf(e,t,n,r){e.min=Z(t.min,n.min,r),e.max=Z(t.max,n.max,r)}function mS(e,t,n,r){uf(e.x,t.x,n.x,r),uf(e.y,t.y,n.y,r)}function yS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vS={duration:.45,ease:[.4,0,.1,1]},cf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),df=cf("applewebkit/")&&!cf("chrome/")?Math.round:Ie;function ff(e){e.min=df(e.min),e.max=df(e.max)}function gS(e){ff(e.x),ff(e.y)}function fy(e,t,n){return e==="position"||e==="preserve-aspect"&&!Sw(nf(t),nf(n),.2)}function xS(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const wS=dy({attachResizeListener:(e,t)=>li(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qo={current:void 0},hy=dy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qo.current){const e=new wS({});e.mount(window),e.setOptions({layoutScroll:!0}),qo.current=e}return qo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),SS={pan:{Feature:zw},drag:{Feature:Ow,ProjectionNode:hy,MeasureLayout:sy}};function hf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Y.postRender(()=>s(t,gi(t)))}class kS extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=S1(t,n=>(hf(this.node,n,"Start"),r=>hf(this.node,r,"End"))))}unmount(){}}class jS extends Zt{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=vi(li(this.node.current,"focus",()=>this.onFocus()),li(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Y.postRender(()=>s(t,gi(t)))}class CS extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=P1(t,n=>(pf(this.node,n,"Start"),(r,{success:i})=>pf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const cl=new WeakMap,Zo=new WeakMap,PS=e=>{const t=cl.get(e.target);t&&t(e)},TS=e=>{e.forEach(PS)};function ES({root:e,...t}){const n=e||document;Zo.has(n)||Zo.set(n,{});const r=Zo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(TS,{root:e,...t})),r[i]}function NS(e,t,n){const r=ES(t);return cl.set(e,n),r.observe(e),()=>{cl.delete(e),r.unobserve(e)}}const MS={some:0,all:1};class AS extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:MS[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(l)};return NS(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(DS(t,n))&&this.startObserver()}unmount(){}}function DS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const LS={inView:{Feature:AS},tap:{Feature:CS},focus:{Feature:jS},hover:{Feature:kS}},RS={layout:{ProjectionNode:hy,MeasureLayout:sy}},dl={current:null},py={current:!1};function VS(){if(py.current=!0,!!fu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dl.current=e.matches;e.addListener(t),t()}else dl.current=!1}const _S=[...Im,ge,bt],OS=e=>_S.find(Fm(e)),mf=new WeakMap;function zS(e,t,n){for(const r in t){const i=t[r],s=n[r];if(we(i))e.addValue(r,i);else if(we(s))e.addValue(r,oi(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,oi(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class FS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Iu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=ht.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Y.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=lo(n),this.isVariantNode=Qp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const x=h[g];l[g]!==void 0&&we(x)&&x.set(l[g],!1)}}mount(t){this.current=t,mf.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)),py.current||VS(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:dl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){mf.delete(this.current),this.projection&&this.projection.unmount(),Qt(this.notifyUpdate),Qt(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=wn.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Y.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in er){const n=er[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):re()}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<yf.length;r++){const i=yf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=zS(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=oi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=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 i!=null&&(typeof i=="string"&&(Om(i)||Em(i))?i=parseFloat(i):!OS(i)&&bt.test(n)&&(i=Rm(t,n)),this.setBaseTarget(t,we(i)?i.get():i)),we(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=xu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!we(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ru),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class my extends FS{constructor(){super(...arguments),this.KeyframeResolver=Bm}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;we(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function IS(e){return window.getComputedStyle(e)}class BS extends my{constructor(){super(...arguments),this.type="html",this.renderInstance=nm}readValueFromInstance(t,n){if(wn.has(n)){const r=Fu(n);return r&&r.default||0}else{const r=IS(t),i=(Jp(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ry(t,n)}build(t,n,r){ku(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Tu(t,n,r)}}class US extends my{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=re}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wn.has(n)){const r=Fu(n);return r&&r.default||0}return n=rm.has(n)?n:yu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return om(t,n,r)}build(t,n,r){ju(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){im(t,n,r,i)}mount(t){this.isSVGTag=Pu(t.tagName),super.mount(t)}}const $S=(e,t)=>gu(e)?new US(t):new BS(t,{allowProjection:e!==j.Fragment}),WS=p1({...fw,...LS,...SS,...RS},$S),yr=M0(WS);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 HS(e){if(Array.isArray(e))return e}function KS(e,t,n){return(t=ZS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function QS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
254
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gf(Object(n),!0).forEach(function(r){KS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bS(e,t){if(e==null)return{};var n,r,i=YS(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function YS(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 XS(e,t){return HS(e)||GS(e,t)||JS(e,t)||QS()}function qS(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 ZS(e){var t=qS(e,"string");return typeof t=="symbol"?t:t+""}function JS(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 e2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wf(Object(n),!0).forEach(function(r){e2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t2(){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(i,s){return s(i)},r)}}function Cr(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function Bs(e){return{}.toString.call(e).includes("Object")}function n2(e){return!Object.keys(e).length}function ui(e){return typeof e=="function"}function r2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i2(e,t){return Bs(t)||Ht("changeType"),Object.keys(t).some(function(n){return!r2(e,n)})&&Ht("changeField"),t}function s2(e){ui(e)||Ht("selectorType")}function o2(e){ui(e)||Bs(e)||Ht("handlerType"),Bs(e)&&Object.values(e).some(function(t){return!ui(t)})&&Ht("handlersType")}function a2(e){e||Ht("initialIsRequired"),Bs(e)||Ht("initialType"),n2(e)&&Ht("initialContent")}function l2(e,t){throw new Error(e[t]||e.default)}var u2={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"},Ht=Cr(l2)(u2),$i={changes:i2,selector:s2,handler:o2,initial:a2};function c2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$i.initial(e),$i.handler(t);var n={current:e},r=Cr(h2)(n,t),i=Cr(f2)(n),s=Cr($i.changes)(e),o=Cr(d2)(n);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return $i.selector(u),u(n.current)}function l(u){t2(r,i,s,o)(u)}return[a,l]}function d2(e,t){return ui(t)?t(e.current):t}function f2(e,t){return e.current=Sf(Sf({},e.current),t),t}function h2(e,t,n){return ui(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var p2={create:c2},m2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function y2(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function v2(e){return{}.toString.call(e).includes("Object")}function g2(e){return e||kf("configIsRequired"),v2(e)||kf("configType"),e.urls?(x2(),{paths:{vs:e.urls.monacoBase}}):e}function x2(){console.warn(yy.deprecation)}function w2(e,t){throw new Error(e[t]||e.default)}var yy={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!
253
+ `),()=>{document.head.removeChild(d)}},[t]),c.jsx(g0,{isPresent:t,childRef:r,sizeRef:i,children:j.cloneElement(e,{ref:r})})}const w0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=du(S0),l=j.useId(),u=j.useCallback(f=>{a.set(f,!0);for(const h of a.values())if(!h)return;r&&r()},[a,r]),d=j.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(a.set(f,!1),()=>a.delete(f))}),s?[Math.random(),u]:[n,u]);return j.useMemo(()=>{a.forEach((f,h)=>a.set(h,!1))},[n]),j.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=c.jsx(x0,{isPresent:n,children:e})),c.jsx(so.Provider,{value:d,children:e})};function S0(){return new Map}function $p(e=!0){const t=j.useContext(so);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=j.useId();j.useEffect(()=>{e&&i(s)},[e]);const o=j.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const Fi=e=>e.key||"";function nd(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const hu=typeof window<"u",Wp=hu?j.useLayoutEffect:j.useEffect,k0=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[a,l]=$p(o),u=j.useMemo(()=>nd(e),[e]),d=o&&!a?[]:u.map(Fi),f=j.useRef(!0),h=j.useRef(u),g=du(()=>new Map),[x,v]=j.useState(u),[C,m]=j.useState(u);Wp(()=>{f.current=!1,h.current=u;for(let S=0;S<C.length;S++){const w=Fi(C[S]);d.includes(w)?g.delete(w):g.get(w)!==!0&&g.set(w,!1)}},[C,d.length,d.join("-")]);const p=[];if(u!==x){let S=[...u];for(let w=0;w<C.length;w++){const k=C[w],P=Fi(k);d.includes(P)||(S.splice(w,0,k),p.push(k))}s==="wait"&&p.length&&(S=p),m(nd(S)),v(u);return}const{forceRender:y}=j.useContext(cu);return c.jsx(c.Fragment,{children:C.map(S=>{const w=Fi(S),k=o&&!a?!1:u===C||d.includes(w),P=()=>{if(g.has(w))g.set(w,!0);else return;let T=!0;g.forEach(L=>{L||(T=!1)}),T&&(y==null||y(),m(h.current),o&&(l==null||l()),r&&r())};return c.jsx(w0,{isPresent:k,initial:!f.current||n?void 0:!1,custom:k?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:k?void 0:P,children:S},w)})})},Ie=e=>e;let Hp=Ie;function pu(e){let t;return()=>(t===void 0&&(t=e()),t)}const Jn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wt=e=>e*1e3,St=e=>e/1e3,j0={useManualTiming:!1};function C0(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){s.has(u)&&(l.schedule(u),e()),u(o)}const l={schedule:(u,d=!1,f=!1)=>{const g=f&&r?t:n;return d&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const Ii=["read","resolveKeyframes","update","preRender","render","postRender"],P0=40;function Kp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Ii.reduce((m,p)=>(m[p]=C0(s),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:d,render:f,postRender:h}=o,g=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,P0),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),d.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},x=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Ii.reduce((m,p)=>{const y=o[p];return m[p]=(S,w=!1,k=!1)=>(n||x(),y.schedule(S,w,k)),m},{}),cancel:m=>{for(let p=0;p<Ii.length;p++)o[Ii[p]].cancel(m)},state:i,steps:o}}const{schedule:Y,cancel:Qt,state:fe,steps:Bo}=Kp(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0),Gp=j.createContext({strict:!1}),rd={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"]},er={};for(const e in rd)er[e]={isEnabled:t=>rd[e].some(n=>!!t[n])};function T0(e){for(const t in e)er[t]={...er[t],...e[t]}}const E0=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 Rs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||E0.has(e)}let Qp=e=>!Rs(e);function N0(e){e&&(Qp=t=>t.startsWith("on")?!Rs(t):e(t))}try{N0(require("@emotion/is-prop-valid").default)}catch{}function M0(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Qp(i)||n===!0&&Rs(i)||!t&&!Rs(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function A0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const oo=j.createContext({});function ii(e){return typeof e=="string"||Array.isArray(e)}function ao(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const mu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yu=["initial",...mu];function lo(e){return ao(e.animate)||yu.some(t=>ii(e[t]))}function bp(e){return!!(lo(e)||e.variants)}function D0(e,t){if(lo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ii(n)?n:void 0,animate:ii(r)?r:void 0}}return e.inherit!==!1?t:{}}function L0(e){const{initial:t,animate:n}=D0(e,j.useContext(oo));return j.useMemo(()=>({initial:t,animate:n}),[id(t),id(n)])}function id(e){return Array.isArray(e)?e.join(" "):e}const R0=Symbol.for("motionComponentSymbol");function Vn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function V0(e,t,n){return j.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vn(n)&&(n.current=r))},[t])}const vu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_0="framerAppearId",Yp="data-"+vu(_0),{schedule:gu}=Kp(queueMicrotask,!1),Xp=j.createContext({});function O0(e,t,n,r,i){var s,o;const{visualElement:a}=j.useContext(oo),l=j.useContext(Gp),u=j.useContext(so),d=j.useContext(fu).reducedMotion,f=j.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,g=j.useContext(Xp);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&z0(f.current,n,i,g);const x=j.useRef(!1);j.useInsertionEffect(()=>{h&&x.current&&h.update(n,u)});const v=n[Yp],C=j.useRef(!!v&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return Wp(()=>{h&&(x.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),gu.render(h.render),C.current&&h.animationState&&h.animationState.animateChanges())}),j.useEffect(()=>{h&&(!C.current&&h.animationState&&h.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,v)}),C.current=!1))}),h}function z0(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:qp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Vn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function qp(e){if(e)return e.options.allowProjection!==!1?e.projection:qp(e.parent)}function F0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&T0(e);function a(u,d){let f;const h={...j.useContext(fu),...u,layoutId:I0(u)},{isStatic:g}=h,x=L0(u),v=r(u,g);if(!g&&hu){B0();const C=U0(h);f=C.MeasureLayout,x.visualElement=O0(i,v,h,t,C.ProjectionNode)}return c.jsxs(oo.Provider,{value:x,children:[f&&x.visualElement?c.jsx(f,{visualElement:x.visualElement,...h}):null,n(i,u,V0(v,x.visualElement,d),v,g,x.visualElement)]})}a.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const l=j.forwardRef(a);return l[R0]=i,l}function I0({layoutId:e}){const t=j.useContext(cu).id;return t&&e!==void 0?t+"-"+e:e}function B0(e,t){j.useContext(Gp).strict}function U0(e){const{drag:t,layout:n}=er;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 $0=["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 xu(e){return typeof e!="string"||e.includes("-")?!1:!!($0.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 wu(e,t,n,r){if(typeof t=="function"){const[i,s]=sd(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=sd(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const qa=e=>Array.isArray(e),W0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),H0=e=>qa(e)?e[e.length-1]||0:e,we=e=>!!(e&&e.getVelocity);function rs(e){const t=we(e)?e.get():e;return W0(t)?t.toValue():t}function K0({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:G0(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Zp=e=>(t,n)=>{const r=j.useContext(oo),i=j.useContext(so),s=()=>K0(e,t,r,i);return n?s():du(s)};function G0(e,t,n,r){const i={},s=r(e,{});for(const h in s)i[h]=rs(s[h]);let{initial:o,animate:a}=e;const l=lo(e),u=bp(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const f=d?a:o;if(f&&typeof f!="boolean"&&!ao(f)){const h=Array.isArray(f)?f:[f];for(let g=0;g<h.length;g++){const x=wu(e,h[g]);if(x){const{transitionEnd:v,transition:C,...m}=x;for(const p in m){let y=m[p];if(Array.isArray(y)){const S=d?y.length-1:0;y=y[S]}y!==null&&(i[p]=y)}for(const p in v)i[p]=v[p]}}}return i}const sr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wn=new Set(sr),Jp=e=>t=>typeof t=="string"&&t.startsWith(e),em=Jp("--"),Q0=Jp("var(--"),Su=e=>Q0(e)?b0.test(e.split("/*")[0].trim()):!1,b0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tm=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Tt=(e,t,n)=>n>t?t:n<e?e:n,or={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},si={...or,transform:e=>Tt(0,1,e)},Bi={...or,default:1},mi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mt=mi("deg"),ft=mi("%"),O=mi("px"),Y0=mi("vh"),X0=mi("vw"),od={...ft,parse:e=>ft.parse(e)/100,transform:e=>ft.transform(e*100)},q0={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},Z0={rotate:Mt,rotateX:Mt,rotateY:Mt,rotateZ:Mt,scale:Bi,scaleX:Bi,scaleY:Bi,scaleZ:Bi,skew:Mt,skewX:Mt,skewY:Mt,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:si,originX:od,originY:od,originZ:O},ad={...or,transform:Math.round},ku={...q0,...Z0,zIndex:ad,size:O,fillOpacity:si,strokeOpacity:si,numOctaves:ad},J0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},e1=sr.length;function t1(e,t,n){let r="",i=!0;for(let s=0;s<e1;s++){const o=sr[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=tm(a,ku[o]);if(!l){i=!1;const d=J0[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ju(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(wn.has(l)){o=!0;continue}else if(em(l)){i[l]=u;continue}else{const d=tm(u,ku[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=t1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${u} ${d}`}}const n1={offset:"stroke-dashoffset",array:"stroke-dasharray"},r1={offset:"strokeDashoffset",array:"strokeDasharray"};function i1(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?n1:r1;e[s.offset]=O.transform(-r);const o=O.transform(t),a=O.transform(n);e[s.array]=`${o} ${a}`}function ld(e,t,n){return typeof e=="string"?e:O.transform(t+n*e)}function s1(e,t,n){const r=ld(t,e.x,e.width),i=ld(n,e.y,e.height);return`${r} ${i}`}function Cu(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},d,f){if(ju(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:g,dimensions:x}=e;h.transform&&(x&&(g.transform=h.transform),delete h.transform),x&&(i!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=s1(x,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),o!==void 0&&i1(h,o,a,l,!1)}const Pu=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),nm=()=>({...Pu(),attrs:{}}),Tu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rm(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const im=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 sm(e,t,n,r){rm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(im.has(i)?i:vu(i),t.attrs[i])}const Vs={};function o1(e){Object.assign(Vs,e)}function om(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vs[e]||e==="opacity")}function Eu(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(we(i[o])||t.style&&we(t.style[o])||om(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function am(e,t,n){const r=Eu(e,t,n);for(const i in e)if(we(e[i])||we(t[i])){const s=sr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function a1(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 ud=["x","y","width","height","cx","cy","r"],l1={useVisualState:Zp({scrapeMotionValuesFromProps:am,createRenderState:nm,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(wn.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a<ud.length;a++){const l=ud[a];e[l]!==t[l]&&(o=!0)}o&&Y.read(()=>{a1(n,r),Y.render(()=>{Cu(r,i,Tu(n.tagName),e.transformTemplate),sm(n,r)})})}})},u1={useVisualState:Zp({scrapeMotionValuesFromProps:Eu,createRenderState:Pu})};function lm(e,t,n){for(const r in t)!we(t[r])&&!om(r,n)&&(e[r]=t[r])}function c1({transformTemplate:e},t){return j.useMemo(()=>{const n=Pu();return ju(n,t,e),Object.assign({},n.vars,n.style)},[t])}function d1(e,t){const n=e.style||{},r={};return lm(r,n,e),Object.assign(r,c1(e,t)),r}function f1(e,t){const n={},r=d1(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 h1(e,t,n,r){const i=j.useMemo(()=>{const s=nm();return Cu(s,t,Tu(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};lm(s,e.style,e),i.style={...s,...i.style}}return i}function p1(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(xu(n)?h1:f1)(r,s,o,n),u=M0(r,typeof n=="string",e),d=n!==j.Fragment?{...u,...l,ref:i}:{},{children:f}=r,h=j.useMemo(()=>we(f)?f.get():f,[f]);return j.createElement(n,{...d,children:h})}}function m1(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...xu(r)?l1:u1,preloadedFeatures:e,useRender:p1(i),createVisualElement:t,Component:r};return F0(o)}}function um(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 uo(e,t,n){const r=e.getProps();return wu(r,t,n!==void 0?n:r.custom,e)}const y1=pu(()=>window.ScrollTimeline!==void 0);class v1{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(i=>{if(y1()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].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 g1 extends v1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Nu(e,t){return e?e[t]||e.default||e:void 0}const Za=2e4;function cm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Za;)t+=n,r=e.next(t);return t>=Za?1/0:t}function Mu(e){return typeof e=="function"}function cd(e,t){e.timeline=t,e.onfinish=null}const Au=e=>Array.isArray(e)&&typeof e[0]=="number",x1={linearEasing:void 0};function w1(e,t){const n=pu(e);return()=>{var r;return(r=x1[t])!==null&&r!==void 0?r:n()}}const _s=w1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),dm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(Jn(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function fm(e){return!!(typeof e=="function"&&_s()||!e||typeof e=="string"&&(e in Ja||_s())||Au(e)||Array.isArray(e)&&e.every(fm))}const Sr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ja={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Sr([0,.65,.55,1]),circOut:Sr([.55,0,1,.45]),backIn:Sr([.31,.01,.66,-.59]),backOut:Sr([.33,1.53,.69,.99])};function hm(e,t){if(e)return typeof e=="function"&&_s()?dm(e,t):Au(e)?Sr(e):Array.isArray(e)?e.map(n=>hm(n,t)||Ja.easeOut):Ja[e]}const Je={x:!1,y:!1};function pm(){return Je.x||Je.y}function S1(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function mm(e,t){const n=S1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function dd(e){return t=>{t.pointerType==="touch"||pm()||e(t)}}function k1(e,t,n={}){const[r,i,s]=mm(e,n),o=dd(a=>{const{target:l}=a,u=t(a);if(typeof u!="function"||!l)return;const d=dd(f=>{u(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,i)});return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const ym=(e,t)=>t?e===t?!0:ym(e,t.parentElement):!1,Du=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,j1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function C1(e){return j1.has(e.tagName)||e.tabIndex!==-1}const kr=new WeakSet;function fd(e){return t=>{t.key==="Enter"&&e(t)}}function Uo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const P1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=fd(()=>{if(kr.has(n))return;Uo(n,"down");const i=fd(()=>{Uo(n,"up")}),s=()=>Uo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function hd(e){return Du(e)&&!pm()}function T1(e,t,n={}){const[r,i,s]=mm(e,n),o=a=>{const l=a.currentTarget;if(!hd(a)||kr.has(l))return;kr.add(l);const u=t(a),d=(g,x)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!hd(g)||!kr.has(l))&&(kr.delete(l),typeof u=="function"&&u(g,{success:x}))},f=g=>{d(g,n.useGlobalTarget||ym(l,g.target))},h=g=>{d(g,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return r.forEach(a=>{!C1(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a.addEventListener("focus",u=>P1(u,i),i)}),s}function E1(e){return e==="x"||e==="y"?Je[e]?null:(Je[e]=!0,()=>{Je[e]=!1}):Je.x||Je.y?null:(Je.x=Je.y=!0,()=>{Je.x=Je.y=!1})}const vm=new Set(["width","height","top","left","right","bottom",...sr]);let is;function N1(){is=void 0}const ht={now:()=>(is===void 0&&ht.set(fe.isProcessing||j0.useManualTiming?fe.timestamp:performance.now()),is),set:e=>{is=e,queueMicrotask(N1)}};function Lu(e,t){e.indexOf(t)===-1&&e.push(t)}function Ru(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Vu{constructor(){this.subscriptions=[]}add(t){return Lu(this.subscriptions,t),()=>Ru(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function gm(e,t){return t?e*(1e3/t):0}const pd=30,M1=e=>!isNaN(parseFloat(e));class A1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ht.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&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=ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=M1(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 Vu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Y.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pd);return gm(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 oi(e,t){return new A1(e,t)}function D1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,oi(n))}function L1(e,t){const n=uo(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=H0(s[o]);D1(e,o,a)}}function R1(e){return!!(we(e)&&e.add)}function el(e,t){const n=e.getValue("willChange");if(R1(n))return n.add(t)}function xm(e){return e.props[Yp]}const wm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,V1=1e-7,_1=12;function O1(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=wm(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>V1&&++a<_1);return o}function yi(e,t,n,r){if(e===t&&n===r)return Ie;const i=s=>O1(s,0,1,e,n);return s=>s===0||s===1?s:wm(i(s),t,r)}const Sm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,km=e=>t=>1-e(1-t),jm=yi(.33,1.53,.69,.99),_u=km(jm),Cm=Sm(_u),Pm=e=>(e*=2)<1?.5*_u(e):.5*(2-Math.pow(2,-10*(e-1))),Ou=e=>1-Math.sin(Math.acos(e)),Tm=km(Ou),Em=Sm(Ou),Nm=e=>/^0[^.\s]+$/u.test(e);function z1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Nm(e):!0}const Vr=e=>Math.round(e*1e5)/1e5,zu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function F1(e){return e==null}const I1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Fu=(e,t)=>n=>!!(typeof n=="string"&&I1.test(n)&&n.startsWith(e)||t&&!F1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Mm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(zu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},B1=e=>Tt(0,255,e),$o={...or,transform:e=>Math.round(B1(e))},un={test:Fu("rgb","red"),parse:Mm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$o.transform(e)+", "+$o.transform(t)+", "+$o.transform(n)+", "+Vr(si.transform(r))+")"};function U1(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const tl={test:Fu("#"),parse:U1,transform:un.transform},_n={test:Fu("hsl","hue"),parse:Mm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ft.transform(Vr(t))+", "+ft.transform(Vr(n))+", "+Vr(si.transform(r))+")"},ge={test:e=>un.test(e)||tl.test(e)||_n.test(e),parse:e=>un.test(e)?un.parse(e):_n.test(e)?_n.parse(e):tl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?un.transform(e):_n.transform(e)},$1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function W1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(zu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match($1))===null||n===void 0?void 0:n.length)||0)>0}const Am="number",Dm="color",H1="var",K1="var(",md="${}",G1=/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 ai(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(G1,l=>(ge.test(l)?(r.color.push(s),i.push(Dm),n.push(ge.parse(l))):l.startsWith(K1)?(r.var.push(s),i.push(H1),n.push(l)):(r.number.push(s),i.push(Am),n.push(parseFloat(l))),++s,md)).split(md);return{values:n,split:a,indexes:r,types:i}}function Lm(e){return ai(e).values}function Rm(e){const{split:t,types:n}=ai(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===Am?s+=Vr(i[o]):a===Dm?s+=ge.transform(i[o]):s+=i[o]}return s}}const Q1=e=>typeof e=="number"?0:e;function b1(e){const t=Lm(e);return Rm(e)(t.map(Q1))}const bt={test:W1,parse:Lm,createTransformer:Rm,getAnimatableNone:b1},Y1=new Set(["brightness","contrast","saturate","opacity"]);function X1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(zu)||[];if(!r)return e;const i=n.replace(r,"");let s=Y1.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const q1=/\b([a-z-]*)\(.*?\)/gu,nl={...bt,getAnimatableNone:e=>{const t=e.match(q1);return t?t.map(X1).join(" "):e}},Z1={...ku,color:ge,backgroundColor:ge,outlineColor:ge,fill:ge,stroke:ge,borderColor:ge,borderTopColor:ge,borderRightColor:ge,borderBottomColor:ge,borderLeftColor:ge,filter:nl,WebkitFilter:nl},Iu=e=>Z1[e];function Vm(e,t){let n=Iu(e);return n!==nl&&(n=bt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const J1=new Set(["auto","none","0"]);function ex(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!J1.has(s)&&ai(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Vm(n,i)}const yd=e=>e===or||e===O,vd=(e,t)=>parseFloat(e.split(", ")[t]),gd=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return vd(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?vd(s[1],e):0}},tx=new Set(["x","y","z"]),nx=sr.filter(e=>!tx.has(e));function rx(e){const t=[];return nx.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const tr={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:gd(4,13),y:gd(5,14)};tr.translateX=tr.x;tr.translateY=tr.y;const fn=new Set;let rl=!1,il=!1;function _m(){if(il){const e=Array.from(fn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=rx(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}il=!1,rl=!1,fn.forEach(e=>e.complete()),fn.clear()}function Om(){fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(il=!0)})}function ix(){Om(),_m()}class Bu{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fn.add(this),rl||(rl=!0,Y.read(Om),Y.resolveKeyframes(_m))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),fn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,fn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const zm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),sx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ox(e){const t=sx.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Fm(e,t,n=1){const[r,i]=ox(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return zm(o)?parseFloat(o):o}return Su(i)?Fm(i,t,n+1):i}const Im=e=>t=>t.test(e),ax={test:e=>e==="auto",parse:e=>e},Bm=[or,O,ft,Mt,X0,Y0,ax],xd=e=>Bm.find(Im(e));class Um extends Bu{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),Su(u))){const d=Fm(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!vm.has(r)||t.length!==2)return;const[i,s]=t,o=xd(i),a=xd(s);if(o!==a)if(yd(o)&&yd(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)z1(t[i])&&r.push(i);r.length&&ex(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=tr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=tr[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const wd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bt.test(e)||e==="0")&&!e.startsWith("url("));function lx(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 ux(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=wd(i,t),a=wd(s,t);return!o||!a?!1:lx(e)||(n==="spring"||Mu(n))&&r}const cx=e=>e!==null;function co(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(cx),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const dx=40;class $m{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ht.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>dx?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ix(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ht.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ux(t,r,i,s))if(o)this.options.duration=0;else{l&&l(co(t,this.options,n)),a&&a(),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 Z=(e,t,n)=>e+(t-e)*n;function Wo(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 fx({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Wo(l,a,e+1/3),s=Wo(l,a,e),o=Wo(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Os(e,t){return n=>n>0?t:e}const Ho=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},hx=[tl,un,_n],px=e=>hx.find(t=>t.test(e));function Sd(e){const t=px(e);if(!t)return!1;let n=t.parse(e);return t===_n&&(n=fx(n)),n}const kd=(e,t)=>{const n=Sd(e),r=Sd(t);if(!n||!r)return Os(e,t);const i={...n};return s=>(i.red=Ho(n.red,r.red,s),i.green=Ho(n.green,r.green,s),i.blue=Ho(n.blue,r.blue,s),i.alpha=Z(n.alpha,r.alpha,s),un.transform(i))},mx=(e,t)=>n=>t(e(n)),vi=(...e)=>e.reduce(mx),sl=new Set(["none","hidden"]);function yx(e,t){return sl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vx(e,t){return n=>Z(e,t,n)}function Uu(e){return typeof e=="number"?vx:typeof e=="string"?Su(e)?Os:ge.test(e)?kd:wx:Array.isArray(e)?Wm:typeof e=="object"?ge.test(e)?kd:gx:Os}function Wm(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Uu(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function gx(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Uu(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function xx(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][i[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[s]=l,i[o]++}return r}const wx=(e,t)=>{const n=bt.createTransformer(t),r=ai(e),i=ai(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?sl.has(e)&&!i.values.length||sl.has(t)&&!r.values.length?yx(e,t):vi(Wm(xx(r,i),i.values),n):Os(e,t)};function Hm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Z(e,t,n):Uu(e)(e,t)}const Sx=5;function Km(e,t,n){const r=Math.max(t-Sx,0);return gm(n-e(r),t-r)}const te={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},Ko=.001;function kx({duration:e=te.duration,bounce:t=te.bounce,velocity:n=te.velocity,mass:r=te.mass}){let i,s,o=1-t;o=Tt(te.minDamping,te.maxDamping,o),e=Tt(te.minDuration,te.maxDuration,St(e)),o<1?(i=u=>{const d=u*o,f=d*e,h=d-n,g=ol(u,o),x=Math.exp(-f);return Ko-h/g*x},s=u=>{const f=u*o*e,h=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,x=Math.exp(-f),v=ol(Math.pow(u,2),o);return(-i(u)+Ko>0?-1:1)*((h-g)*x)/v}):(i=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ko+d*f},s=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const a=5/e,l=Cx(i,s,a);if(e=wt(e),isNaN(l))return{stiffness:te.stiffness,damping:te.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const jx=12;function Cx(e,t,n){let r=n;for(let i=1;i<jx;i++)r=r-e(r)/t(r);return r}function ol(e,t){return e*Math.sqrt(1-t*t)}const Px=["duration","bounce"],Tx=["stiffness","damping","mass"];function jd(e,t){return t.some(n=>e[n]!==void 0)}function Ex(e){let t={velocity:te.velocity,stiffness:te.stiffness,damping:te.damping,mass:te.mass,isResolvedFromDuration:!1,...e};if(!jd(e,Tx)&&jd(e,Px))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Tt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:te.mass,stiffness:i,damping:s}}else{const n=kx(e);t={...t,...n,mass:te.mass},t.isResolvedFromDuration=!0}return t}function Gm(e=te.visualDuration,t=te.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:g}=Ex({...n,velocity:-St(n.velocity||0)}),x=h||0,v=u/(2*Math.sqrt(l*d)),C=o-s,m=St(Math.sqrt(l/d)),p=Math.abs(C)<5;r||(r=p?te.restSpeed.granular:te.restSpeed.default),i||(i=p?te.restDelta.granular:te.restDelta.default);let y;if(v<1){const w=ol(m,v);y=k=>{const P=Math.exp(-v*m*k);return o-P*((x+v*m*C)/w*Math.sin(w*k)+C*Math.cos(w*k))}}else if(v===1)y=w=>o-Math.exp(-m*w)*(C+(x+m*C)*w);else{const w=m*Math.sqrt(v*v-1);y=k=>{const P=Math.exp(-v*m*k),T=Math.min(w*k,300);return o-P*((x+v*m*C)*Math.sinh(T)+w*C*Math.cosh(T))/w}}const S={calculatedDuration:g&&f||null,next:w=>{const k=y(w);if(g)a.done=w>=f;else{let P=0;v<1&&(P=w===0?wt(x):Km(y,w,k));const T=Math.abs(P)<=r,L=Math.abs(o-k)<=i;a.done=T&&L}return a.value=a.done?o:k,a},toString:()=>{const w=Math.min(cm(S),Za),k=dm(P=>S.next(w*P).value,w,30);return w+"ms "+k}};return S}function Cd({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},g=T=>a!==void 0&&T<a||l!==void 0&&T>l,x=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l;let v=n*t;const C=f+v,m=o===void 0?C:o(C);m!==C&&(v=m-f);const p=T=>-v*Math.exp(-T/r),y=T=>m+p(T),S=T=>{const L=p(T),M=y(T);h.done=Math.abs(L)<=u,h.value=h.done?m:M};let w,k;const P=T=>{g(h.value)&&(w=T,k=Gm({keyframes:[h.value,x(h.value)],velocity:Km(y,T,h.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return P(0),{calculatedDuration:null,next:T=>{let L=!1;return!k&&w===void 0&&(L=!0,S(T),P(T)),w!==void 0&&T>=w?k.next(T-w):(!L&&S(T),h)}}}const Nx=yi(.42,0,1,1),Mx=yi(0,0,.58,1),Qm=yi(.42,0,.58,1),Ax=e=>Array.isArray(e)&&typeof e[0]!="number",Dx={linear:Ie,easeIn:Nx,easeInOut:Qm,easeOut:Mx,circIn:Ou,circInOut:Em,circOut:Tm,backIn:_u,backInOut:Cm,backOut:jm,anticipate:Pm},Pd=e=>{if(Au(e)){Hp(e.length===4);const[t,n,r,i]=e;return yi(t,n,r,i)}else if(typeof e=="string")return Dx[e];return e};function Lx(e,t,n){const r=[],i=n||Hm,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ie:t;a=vi(l,a)}r.push(a)}return r}function Rx(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(Hp(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Lx(t,r,i),l=a.length,u=d=>{if(o&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=Jn(e[f],e[f+1],d);return a[f](h)};return n?d=>u(Tt(e[0],e[s-1],d)):u}function Vx(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Jn(0,t,r);e.push(Z(n,1,i))}}function _x(e){const t=[0];return Vx(t,e.length-1),t}function Ox(e,t){return e.map(n=>n*t)}function zx(e,t){return e.map(()=>t||Qm).splice(0,e.length-1)}function zs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Ax(r)?r.map(Pd):Pd(r),s={done:!1,value:t[0]},o=Ox(n&&n.length===t.length?n:_x(t),e),a=Rx(o,t,{ease:Array.isArray(i)?i:zx(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Fx=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Y.update(t,!0),stop:()=>Qt(t),now:()=>fe.isProcessing?fe.timestamp:ht.now()}},Ix={decay:Cd,inertia:Cd,tween:zs,keyframes:zs,spring:Gm},Bx=e=>e/100;class $u extends $m{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:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Bu,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(s,a,n,r,i),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:i=0,repeatType:s,velocity:o=0}=this.options,a=Mu(n)?n:Ix[n]||zs;let l,u;a!==zs&&typeof t[0]!="number"&&(l=vi(Bx,Hm(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});s==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=cm(d));const{calculatedDuration:f}=d,h=f+i,g=h*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:h,repeat:g,repeatType:x,repeatDelay:v,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-h*(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 y=this.currentTime,S=s;if(g){const T=Math.min(this.currentTime,d)/f;let L=Math.floor(T),M=T%1;!M&&T>=1&&(M=1),M===1&&L--,L=Math.min(L,g+1),!!(L%2)&&(x==="reverse"?(M=1-M,v&&(M-=v/f)):x==="mirror"&&(S=o)),y=Tt(0,1,M)*f}const w=p?{done:!1,value:l[0]}:S.next(y);a&&(w.value=a(w.value));let{done:k}=w;!p&&u!==null&&(k=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return P&&i!==void 0&&(w.value=co(l,this.options,i)),C&&C(w.value),P&&this.finish(),w}get duration(){const{resolved:t}=this;return t?St(t.calculatedDuration):0}get time(){return St(this.currentTime)}set time(t){t=wt(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=St(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Fx,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):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 Ux=new Set(["opacity","clipPath","filter","transform"]);function $x(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const d=hm(a,i);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Wx=pu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fs=10,Hx=2e4;function Kx(e){return Mu(e.type)||e.type==="spring"||!fm(e.ease)}function Gx(e,t){const n=new $u({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<Hx;)r=n.sample(s),i.push(r.value),s+=Fs;return{times:void 0,keyframes:i,duration:s-Fs,ease:"linear"}}const bm={anticipate:Pm,backInOut:Cm,circInOut:Em};function Qx(e){return e in bm}class Td extends $m{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Um(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&_s()&&Qx(s)&&(s=bm[s]),Kx(this.options)){const{onComplete:f,onUpdate:h,motionValue:g,element:x,...v}=this.options,C=Gx(t,v);t=C.keyframes,t.length===1&&(t[1]=t[0]),r=C.duration,i=C.times,s=C.ease,o="keyframes"}const d=$x(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(cd(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;a.set(co(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return St(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return St(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ie;const{animation:r}=n;cd(r,t)}return Ie}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:f,element:h,...g}=this.options,x=new $u({...g,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),v=wt(this.time);u.setWithVelocity(x.sample(v-Fs).value,x.sample(v).value,Fs)}const{onStop:l}=this.options;l&&l(),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:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return Wx()&&r&&Ux.has(r)&&!l&&!u&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const bx={type:"spring",stiffness:500,damping:25,restSpeed:10},Yx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Xx={type:"keyframes",duration:.8},qx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Zx=(e,{keyframes:t})=>t.length>2?Xx:wn.has(e)?e.startsWith("scale")?Yx(t[1]):bx:qx;function Jx({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Wu=(e,t,n,r={},i,s)=>o=>{const a=Nu(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-wt(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};Jx(a)||(d={...d,...Zx(e,d)}),d.duration&&(d.duration=wt(d.duration)),d.repeatDelay&&(d.repeatDelay=wt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const h=co(d.keyframes,a);if(h!==void 0)return Y.update(()=>{d.onUpdate(h),d.onComplete()}),new g1([])}return!s&&Td.supports(d)?new Td(d):new $u(d)};function ew({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ym(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const h=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),g=l[f];if(g===void 0||d&&ew(d,f))continue;const x={delay:n,...Nu(o||{},f)};let v=!1;if(window.MotionHandoffAnimation){const m=xm(e);if(m){const p=window.MotionHandoffAnimation(m,f,Y);p!==null&&(x.startTime=p,v=!0)}}el(e,f),h.start(Wu(f,h,g,e.shouldReduceMotion&&vm.has(f)?{type:!1}:x,e,v));const C=h.animation;C&&u.push(C)}return a&&Promise.all(u).then(()=>{Y.update(()=>{a&&L1(e,a)})}),u}function al(e,t,n={}){var r;const i=uo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(Ym(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return tw(e,t,d+u,f,h,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,d]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>d())}else return Promise.all([o(),a(n.delay)])}function tw(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(nw).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(al(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function nw(e,t){return e.sortNodePosition(t)}function rw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>al(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=al(e,t,n);else{const i=typeof t=="function"?uo(e,t,n.custom):t;r=Promise.all(Ym(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const iw=yu.length;function Xm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Xm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<iw;n++){const r=yu[n],i=e.props[r];(ii(i)||i===!1)&&(t[r]=i)}return t}const sw=[...mu].reverse(),ow=mu.length;function aw(e){return t=>Promise.all(t.map(({animation:n,options:r})=>rw(e,n,r)))}function lw(e){let t=aw(e),n=Ed(),r=!0;const i=l=>(u,d)=>{var f;const h=uo(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:g,transitionEnd:x,...v}=h;u={...u,...v,...x}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,d=Xm(e.parent)||{},f=[],h=new Set;let g={},x=1/0;for(let C=0;C<ow;C++){const m=sw[C],p=n[m],y=u[m]!==void 0?u[m]:d[m],S=ii(y),w=m===l?p.isActive:null;w===!1&&(x=C);let k=y===d[m]&&y!==u[m]&&S;if(k&&r&&e.manuallyAnimateOnMount&&(k=!1),p.protectedKeys={...g},!p.isActive&&w===null||!y&&!p.prevProp||ao(y)||typeof y=="boolean")continue;const P=uw(p.prevProp,y);let T=P||m===l&&p.isActive&&!k&&S||C>x&&S,L=!1;const M=Array.isArray(y)?y:[y];let K=M.reduce(i(m),{});w===!1&&(K={});const{prevResolvedValues:me={}}=p,ke={...me,...K},R=B=>{T=!0,h.has(B)&&(L=!0,h.delete(B)),p.needsAnimating[B]=!0;const N=e.getValue(B);N&&(N.liveStyle=!1)};for(const B in ke){const N=K[B],_=me[B];if(g.hasOwnProperty(B))continue;let F=!1;qa(N)&&qa(_)?F=!um(N,_):F=N!==_,F?N!=null?R(B):h.add(B):N!==void 0&&h.has(B)?R(B):p.protectedKeys[B]=!0}p.prevProp=y,p.prevResolvedValues=K,p.isActive&&(g={...g,...K}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(k&&P)||L)&&f.push(...M.map(B=>({animation:B,options:{type:m}})))}if(h.size){const C={};h.forEach(m=>{const p=e.getBaseTarget(m),y=e.getValue(m);y&&(y.liveStyle=!0),C[m]=p??null}),f.push({animation:C})}let v=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const f=o(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Ed(),r=!0}}}function uw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!um(t,e):!1}function en(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ed(){return{animate:en(!0),whileInView:en(),whileHover:en(),whileTap:en(),whileDrag:en(),whileFocus:en(),exit:en()}}class Zt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cw extends Zt{constructor(t){super(t),t.animationState||(t.animationState=lw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ao(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 dw=0;class fw extends Zt{constructor(){super(...arguments),this.id=dw++}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 i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const hw={animation:{Feature:cw},exit:{Feature:fw}};function li(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gi(e){return{point:{x:e.pageX,y:e.pageY}}}const pw=e=>t=>Du(t)&&e(t,gi(t));function _r(e,t,n,r){return li(e,t,pw(n),r)}const Nd=(e,t)=>Math.abs(e-t);function mw(e,t){const n=Nd(e.x,t.x),r=Nd(e.y,t.y);return Math.sqrt(n**2+r**2)}class qm{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!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 f=Qo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=mw(f.offset,{x:0,y:0})>=3;if(!h&&!g)return;const{point:x}=f,{timestamp:v}=fe;this.history.push({...x,timestamp:v});const{onStart:C,onMove:m}=this.handlers;h||(C&&C(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Go(h,this.transformPagePoint),Y.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Qo(f.type==="pointercancel"?this.lastMoveEventInfo:Go(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,C),x&&x(f,C)},!Du(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=gi(t),a=Go(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=fe;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Qo(a,this.history)),this.removeListeners=vi(_r(this.contextWindow,"pointermove",this.handlePointerMove),_r(this.contextWindow,"pointerup",this.handlePointerUp),_r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Qt(this.updatePoint)}}function Go(e,t){return t?{point:t(e.point)}:e}function Md(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qo({point:e},t){return{point:e,delta:Md(e,Zm(t)),offset:Md(e,yw(t)),velocity:vw(t,.1)}}function yw(e){return e[0]}function Zm(e){return e[e.length-1]}function vw(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Zm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wt(t)));)n--;if(!r)return{x:0,y:0};const s=St(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Jm=1e-4,gw=1-Jm,xw=1+Jm,ey=.01,ww=0-ey,Sw=0+ey;function Ue(e){return e.max-e.min}function kw(e,t,n){return Math.abs(e-t)<=n}function Ad(e,t,n,r=.5){e.origin=r,e.originPoint=Z(t.min,t.max,e.origin),e.scale=Ue(n)/Ue(t),e.translate=Z(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gw&&e.scale<=xw||isNaN(e.scale))&&(e.scale=1),(e.translate>=ww&&e.translate<=Sw||isNaN(e.translate))&&(e.translate=0)}function Or(e,t,n,r){Ad(e.x,t.x,n.x,r?r.originX:void 0),Ad(e.y,t.y,n.y,r?r.originY:void 0)}function Dd(e,t,n){e.min=n.min+t.min,e.max=e.min+Ue(t)}function jw(e,t,n){Dd(e.x,t.x,n.x),Dd(e.y,t.y,n.y)}function Ld(e,t,n){e.min=t.min-n.min,e.max=e.min+Ue(t)}function zr(e,t,n){Ld(e.x,t.x,n.x),Ld(e.y,t.y,n.y)}function Cw(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Z(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Z(n,e,r.max):Math.min(e,n)),e}function Rd(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 Pw(e,{top:t,left:n,bottom:r,right:i}){return{x:Rd(e.x,n,i),y:Rd(e.y,t,r)}}function Vd(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 Tw(e,t){return{x:Vd(e.x,t.x),y:Vd(e.y,t.y)}}function Ew(e,t){let n=.5;const r=Ue(e),i=Ue(t);return i>r?n=Jn(t.min,t.max-r,e.min):r>i&&(n=Jn(e.min,e.max-i,t.min)),Tt(0,1,n)}function Nw(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 ll=.35;function Mw(e=ll){return e===!1?e=0:e===!0&&(e=ll),{x:_d(e,"left","right"),y:_d(e,"top","bottom")}}function _d(e,t,n){return{min:Od(e,t),max:Od(e,n)}}function Od(e,t){return typeof e=="number"?e:e[t]||0}const zd=()=>({translate:0,scale:1,origin:0,originPoint:0}),On=()=>({x:zd(),y:zd()}),Fd=()=>({min:0,max:0}),re=()=>({x:Fd(),y:Fd()});function Ke(e){return[e("x"),e("y")]}function ty({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Aw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Dw(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 bo(e){return e===void 0||e===1}function ul({scale:e,scaleX:t,scaleY:n}){return!bo(e)||!bo(t)||!bo(n)}function rn(e){return ul(e)||ny(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ny(e){return Id(e.x)||Id(e.y)}function Id(e){return e&&e!=="0%"}function Is(e,t,n){const r=e-n,i=t*r;return n+i}function Bd(e,t,n,r,i){return i!==void 0&&(e=Is(e,i,r)),Is(e,n,r)+t}function cl(e,t=0,n=1,r,i){e.min=Bd(e.min,t,n,r,i),e.max=Bd(e.max,t,n,r,i)}function ry(e,{x:t,y:n}){cl(e.x,t.translate,t.scale,t.originPoint),cl(e.y,n.translate,n.scale,n.originPoint)}const Ud=.999999999999,$d=1.0000000000001;function Lw(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Fn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ry(e,o)),r&&rn(s.latestValues)&&Fn(e,s.latestValues))}t.x<$d&&t.x>Ud&&(t.x=1),t.y<$d&&t.y>Ud&&(t.y=1)}function zn(e,t){e.min=e.min+t,e.max=e.max+t}function Wd(e,t,n,r,i=.5){const s=Z(e.min,e.max,i);cl(e,t,n,s,r)}function Fn(e,t){Wd(e.x,t.x,t.scaleX,t.scale,t.originX),Wd(e.y,t.y,t.scaleY,t.scale,t.originY)}function iy(e,t){return ty(Dw(e.getBoundingClientRect(),t))}function Rw(e,t,n){const r=iy(e,n),{scroll:i}=t;return i&&(zn(r.x,i.offset.x),zn(r.y,i.offset.y)),r}const sy=({current:e})=>e?e.ownerDocument.defaultView:null,Vw=new WeakMap;class _w{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=re(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gi(d).point)},s=(d,f)=>{const{drag:h,dragPropagation:g,onDragStart:x}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=E1(h),!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),Ke(C=>{let m=this.getAxisMotionValue(C).get()||0;if(ft.test(m)){const{projection:p}=this.visualElement;if(p&&p.layout){const y=p.layout.layoutBox[C];y&&(m=Ue(y)*(parseFloat(m)/100))}}this.originPoint[C]=m}),x&&Y.postRender(()=>x(d,f)),el(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},o=(d,f)=>{const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:x,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:C}=f;if(g&&this.currentDirection===null){this.currentDirection=Ow(C),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,C),this.updateAxis("y",f.point,C),this.visualElement.render(),v&&v(d,f)},a=(d,f)=>this.stop(d,f),l=()=>Ke(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new qm(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:sy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Y.postRender(()=>s(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:i}=this.getProps();if(!r||!Ui(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Cw(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Vn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Pw(i.layoutBox,n):this.constraints=!1,this.elastic=Mw(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ke(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Nw(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Rw(r,i.root,this.visualElement.getTransformPagePoint());let o=Tw(i.layout.layoutBox,s);if(n){const a=n(Aw(o));this.hasMutatedConstraints=!!a,a&&(o=ty(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ke(d=>{if(!Ui(d,n,this.currentDirection))return;let f=l&&l[d]||{};o&&(f={min:0,max:0});const h=i?200:1e6,g=i?40:1e7,x={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,x)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return el(this.visualElement,t),r.start(Wu(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ke(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(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ke(n=>{const{drag:r}=this.getProps();if(!Ui(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Z(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ke(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=Ew({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ke(o=>{if(!Ui(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Z(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;Vw.set(this.visualElement,this);const t=this.visualElement.current,n=_r(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Vn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Y.read(r);const o=li(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ke(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=ll,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ui(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ow(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zw extends Zt{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new _w(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hd=e=>(t,n)=>{e&&Y.postRender(()=>e(t,n))};class Fw extends Zt{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new qm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Hd(t),onStart:Hd(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Y.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=_r(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 ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Kd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=Kd(e,t.target.x),r=Kd(e,t.target.y);return`${n}% ${r}%`}},Iw={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=bt.parse(e);if(i.length>5)return r;const s=bt.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Z(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class Bw extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;o1(Uw),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Y.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),gu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function oy(e){const[t,n]=$p(),r=j.useContext(cu);return c.jsx(Bw,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(Xp),isPresent:t,safeToRemove:n})}const Uw={borderRadius:{...mr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:mr,borderBottomRightRadius:mr,boxShadow:Iw};function $w(e,t,n){const r=we(e)?e:oi(e);return r.start(Wu("",r,t,n)),r.animation}function Ww(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Hw=(e,t)=>e.depth-t.depth;class Kw{constructor(){this.children=[],this.isDirty=!1}add(t){Lu(this.children,t),this.isDirty=!0}remove(t){Ru(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Hw),this.isDirty=!1,this.children.forEach(t)}}function Gw(e,t){const n=ht.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Qt(r),e(s-t))};return Y.read(r,!0),()=>Qt(r)}const ay=["TopLeft","TopRight","BottomLeft","BottomRight"],Qw=ay.length,Gd=e=>typeof e=="string"?parseFloat(e):e,Qd=e=>typeof e=="number"||O.test(e);function bw(e,t,n,r,i,s){i?(e.opacity=Z(0,n.opacity!==void 0?n.opacity:1,Yw(r)),e.opacityExit=Z(t.opacity!==void 0?t.opacity:1,0,Xw(r))):s&&(e.opacity=Z(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Qw;o++){const a=`border${ay[o]}Radius`;let l=bd(t,a),u=bd(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Qd(l)===Qd(u)?(e[a]=Math.max(Z(Gd(l),Gd(u),r),0),(ft.test(u)||ft.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Z(t.rotate||0,n.rotate||0,r))}function bd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Yw=ly(0,.5,Tm),Xw=ly(.5,.95,Ie);function ly(e,t,n){return r=>r<e?0:r>t?1:n(Jn(e,t,r))}function Yd(e,t){e.min=t.min,e.max=t.max}function He(e,t){Yd(e.x,t.x),Yd(e.y,t.y)}function Xd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function qd(e,t,n,r,i){return e-=t,e=Is(e,1/n,r),i!==void 0&&(e=Is(e,1/i,r)),e}function qw(e,t=0,n=1,r=.5,i,s=e,o=e){if(ft.test(t)&&(t=parseFloat(t),t=Z(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Z(s.min,s.max,r);e===s&&(a-=t),e.min=qd(e.min,t,n,a,i),e.max=qd(e.max,t,n,a,i)}function Zd(e,t,[n,r,i],s,o){qw(e,t[n],t[r],t[i],t.scale,s,o)}const Zw=["x","scaleX","originX"],Jw=["y","scaleY","originY"];function Jd(e,t,n,r){Zd(e.x,t,Zw,n?n.x:void 0,r?r.x:void 0),Zd(e.y,t,Jw,n?n.y:void 0,r?r.y:void 0)}function ef(e){return e.translate===0&&e.scale===1}function uy(e){return ef(e.x)&&ef(e.y)}function tf(e,t){return e.min===t.min&&e.max===t.max}function eS(e,t){return tf(e.x,t.x)&&tf(e.y,t.y)}function nf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cy(e,t){return nf(e.x,t.x)&&nf(e.y,t.y)}function rf(e){return Ue(e.x)/Ue(e.y)}function sf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class tS{constructor(){this.members=[]}add(t){Lu(this.members,t),t.scheduleRender()}remove(t){if(Ru(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;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:i}=t.options;i===!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 nS(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:h,skewX:g,skewY:x}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),g&&(r+=`skewX(${g}deg) `),x&&(r+=`skewY(${x}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const sn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},jr=typeof window<"u"&&window.MotionDebug!==void 0,Yo=["","X","Y","Z"],rS={visibility:"hidden"},of=1e3;let iS=0;function Xo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function dy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=xm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Y,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&dy(r)}function fy({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=iS++,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,jr&&(sn.totalNodes=sn.resolvedTargetDeltas=sn.recalculatedProjection=0),this.nodes.forEach(aS),this.nodes.forEach(fS),this.nodes.forEach(hS),this.nodes.forEach(lS),jr&&window.MotionDebug.record(sn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Kw)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Vu),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ww(o),this.instance=o;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Gw(h,250),ss.hasAnimatedSinceResize&&(ss.hasAnimatedSinceResize=!1,this.nodes.forEach(lf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||gS,{onLayoutAnimationStart:C,onLayoutAnimationComplete:m}=d.getProps(),p=!this.targetLayout||!cy(this.targetLayout,x)||g,y=!h&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||h&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const S={...Nu(v,"layout"),onPlay:C,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else h||lf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qt(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(pS),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&dy(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(af);return}this.isUpdating||this.nodes.forEach(cS),this.isUpdating=!1,this.nodes.forEach(dS),this.nodes.forEach(sS),this.nodes.forEach(oS),this.clearAllSnapshots();const a=ht.now();fe.delta=Tt(0,1e3/60,a-fe.timestamp),fe.timestamp=a,fe.isProcessing=!0,Bo.update.process(fe),Bo.preRender.process(fe),Bo.render.process(fe),fe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,gu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uS),this.sharedNodes.forEach(mS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Y.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Y.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=re(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!uy(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(a||rn(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),xS(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return re();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(wS))){const{scroll:d}=this.root;d&&(zn(l.x,d.offset.x),zn(l.y,d.offset.y))}return l}removeElementScroll(o){var a;const l=re();if(He(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&He(l,o),zn(l.x,f.offset.x),zn(l.y,f.offset.y))}return l}applyTransform(o,a=!1){const l=re();He(l,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Fn(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),rn(d.latestValues)&&Fn(l,d.latestValues)}return rn(this.latestValues)&&Fn(l,this.latestValues),l}removeTransform(o){const a=re();He(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!rn(u.latestValues))continue;ul(u.latestValues)&&u.updateSnapshot();const d=re(),f=u.measurePageBox();He(d,f),Jd(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return rn(this.latestValues)&&Jd(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=fe.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),zr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=re(),this.targetWithTransforms=re()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),jw(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):He(this.target,this.layout.layoutBox),ry(this.target,this.targetDelta)):He(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=re(),this.relativeTargetOrigin=re(),zr(this.relativeTargetOrigin,this.target,g.target),He(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}jr&&sn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ul(this.parent.latestValues)||ny(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===fe.timestamp&&(u=!1),u)return;const{layout:d,layoutId:f}=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||f))return;He(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,g=this.treeScale.y;Lw(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=re());const{target:x}=a;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xd(this.prevProjectionDelta.x,this.projectionDelta.x),Xd(this.prevProjectionDelta.y,this.projectionDelta.y)),Or(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==g||!sf(this.projectionDelta.x,this.prevProjectionDelta.x)||!sf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x)),jr&&sn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=On(),this.projectionDelta=On(),this.projectionDeltaWithTransform=On()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=On();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=re(),g=l?l.source:void 0,x=this.layout?this.layout.source:void 0,v=g!==x,C=this.getStack(),m=!C||C.members.length<=1,p=!!(v&&!m&&this.options.crossfade===!0&&!this.path.some(vS));this.animationProgress=0;let y;this.mixTargetDelta=S=>{const w=S/1e3;uf(f.x,o.x,w),uf(f.y,o.y,w),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yS(this.relativeTarget,this.relativeTargetOrigin,h,w),y&&eS(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=re()),He(y,this.relativeTarget)),v&&(this.animationValues=d,bw(d,u,this.latestValues,w,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Y.update(()=>{ss.hasAnimatedSinceResize=!0,this.currentAnimation=$w(0,of,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(of),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&hy(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||re();const f=Ue(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=Ue(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}He(a,l),Fn(a,d),Or(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new tS),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Xo("z",o,u,this.animationValues);for(let d=0;d<Yo.length;d++)Xo(`rotate${Yo[d]}`,o,u,this.animationValues),Xo(`skew${Yo[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rS;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=rs(o==null?void 0:o.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const v={};return this.options.layoutId&&(v.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,v.pointerEvents=rs(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!rn(this.latestValues)&&(v.transform=d?d({},""):"none",this.hasProjected=!1),v}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=nS(this.projectionDeltaWithTransform,this.treeScale,h),d&&(u.transform=d(h,u.transform));const{x:g,y:x}=this.projectionDelta;u.transformOrigin=`${g.origin*100}% ${x.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const v in Vs){if(h[v]===void 0)continue;const{correct:C,applyTo:m}=Vs[v],p=u.transform==="none"?h[v]:C(h[v],f);if(m){const y=m.length;for(let S=0;S<y;S++)u[m[S]]=p}else u[v]=p}return this.options.layoutId&&(u.pointerEvents=f===this?rs(o==null?void 0:o.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(af),this.root.sharedNodes.clear()}}}function sS(e){e.updateLayout()}function oS(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:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Ke(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],g=Ue(h);h.min=r[f].min,h.max=h.min+g}):hy(s,n.layoutBox,r)&&Ke(f=>{const h=o?n.measuredBox[f]:n.layoutBox[f],g=Ue(r[f]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const a=On();Or(a,r,n.layoutBox);const l=On();o?Or(l,e.applyTransform(i,!0),n.measuredBox):Or(l,r,n.layoutBox);const u=!uy(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:g}=f;if(h&&g){const x=re();zr(x,n.layoutBox,h.layoutBox);const v=re();zr(v,r,g.layoutBox),cy(x,v)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function aS(e){jr&&sn.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 lS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uS(e){e.clearSnapshot()}function af(e){e.clearMeasurements()}function cS(e){e.isLayoutDirty=!1}function dS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function lf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fS(e){e.resolveTargetDelta()}function hS(e){e.calcProjection()}function pS(e){e.resetSkewAndRotation()}function mS(e){e.removeLeadSnapshot()}function uf(e,t,n){e.translate=Z(t.translate,0,n),e.scale=Z(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function cf(e,t,n,r){e.min=Z(t.min,n.min,r),e.max=Z(t.max,n.max,r)}function yS(e,t,n,r){cf(e.x,t.x,n.x,r),cf(e.y,t.y,n.y,r)}function vS(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const gS={duration:.45,ease:[.4,0,.1,1]},df=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ff=df("applewebkit/")&&!df("chrome/")?Math.round:Ie;function hf(e){e.min=ff(e.min),e.max=ff(e.max)}function xS(e){hf(e.x),hf(e.y)}function hy(e,t,n){return e==="position"||e==="preserve-aspect"&&!kw(rf(t),rf(n),.2)}function wS(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const SS=fy({attachResizeListener:(e,t)=>li(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),qo={current:void 0},py=fy({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!qo.current){const e=new SS({});e.mount(window),e.setOptions({layoutScroll:!0}),qo.current=e}return qo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),kS={pan:{Feature:Fw},drag:{Feature:zw,ProjectionNode:py,MeasureLayout:oy}};function pf(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Y.postRender(()=>s(t,gi(t)))}class jS extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=k1(t,n=>(pf(this.node,n,"Start"),r=>pf(this.node,r,"End"))))}unmount(){}}class CS extends Zt{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=vi(li(this.node.current,"focus",()=>this.onFocus()),li(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mf(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Y.postRender(()=>s(t,gi(t)))}class PS extends Zt{mount(){const{current:t}=this.node;t&&(this.unmount=T1(t,n=>(mf(this.node,n,"Start"),(r,{success:i})=>mf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const dl=new WeakMap,Zo=new WeakMap,TS=e=>{const t=dl.get(e.target);t&&t(e)},ES=e=>{e.forEach(TS)};function NS({root:e,...t}){const n=e||document;Zo.has(n)||Zo.set(n,{});const r=Zo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ES,{root:e,...t})),r[i]}function MS(e,t,n){const r=NS(t);return dl.set(e,n),r.observe(e),()=>{dl.delete(e),r.unobserve(e)}}const AS={some:0,all:1};class DS extends Zt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:AS[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=u?d:f;h&&h(l)};return MS(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(LS(t,n))&&this.startObserver()}unmount(){}}function LS({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const RS={inView:{Feature:DS},tap:{Feature:PS},focus:{Feature:CS},hover:{Feature:jS}},VS={layout:{ProjectionNode:py,MeasureLayout:oy}},fl={current:null},my={current:!1};function _S(){if(my.current=!0,!!hu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fl.current=e.matches;e.addListener(t),t()}else fl.current=!1}const OS=[...Bm,ge,bt],zS=e=>OS.find(Im(e)),yf=new WeakMap;function FS(e,t,n){for(const r in t){const i=t[r],s=n[r];if(we(i))e.addValue(r,i);else if(we(s))e.addValue(r,oi(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,oi(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const vf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class IS{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Bu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=ht.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Y.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=lo(n),this.isVariantNode=bp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in h){const x=h[g];l[g]!==void 0&&we(x)&&x.set(l[g],!1)}}mount(t){this.current=t,yf.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)),my.current||_S(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yf.delete(this.current),this.projection&&this.projection.unmount(),Qt(this.notifyUpdate),Qt(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=wn.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Y.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in er){const n=er[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):re()}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<vf.length;r++){const i=vf[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=FS(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=oi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=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 i!=null&&(typeof i=="string"&&(zm(i)||Nm(i))?i=parseFloat(i):!zS(i)&&bt.test(n)&&(i=Vm(t,n)),this.setBaseTarget(t,we(i)?i.get():i)),we(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=wu(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!we(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class yy extends IS{constructor(){super(...arguments),this.KeyframeResolver=Um}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;we(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function BS(e){return window.getComputedStyle(e)}class US extends yy{constructor(){super(...arguments),this.type="html",this.renderInstance=rm}readValueFromInstance(t,n){if(wn.has(n)){const r=Iu(n);return r&&r.default||0}else{const r=BS(t),i=(em(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return iy(t,n)}build(t,n,r){ju(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Eu(t,n,r)}}class $S extends yy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=re}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wn.has(n)){const r=Iu(n);return r&&r.default||0}return n=im.has(n)?n:vu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return am(t,n,r)}build(t,n,r){Cu(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){sm(t,n,r,i)}mount(t){this.isSVGTag=Tu(t.tagName),super.mount(t)}}const WS=(e,t)=>xu(e)?new $S(t):new US(t,{allowProjection:e!==j.Fragment}),HS=m1({...hw,...RS,...kS,...VS},WS),yr=A0(HS);function gf(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 KS(e){if(Array.isArray(e))return e}function GS(e,t,n){return(t=JS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QS(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function bS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
254
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xf(Object(n),!0).forEach(function(r){GS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YS(e,t){if(e==null)return{};var n,r,i=XS(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XS(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 qS(e,t){return KS(e)||QS(e,t)||e2(e,t)||bS()}function ZS(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 JS(e){var t=ZS(e,"string");return typeof t=="symbol"?t:t+""}function e2(e,t){if(e){if(typeof e=="string")return gf(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)?gf(e,t):void 0}}function t2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sf(Object(n),!0).forEach(function(r){t2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n2(){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(i,s){return s(i)},r)}}function Cr(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function Bs(e){return{}.toString.call(e).includes("Object")}function r2(e){return!Object.keys(e).length}function ui(e){return typeof e=="function"}function i2(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s2(e,t){return Bs(t)||Ht("changeType"),Object.keys(t).some(function(n){return!i2(e,n)})&&Ht("changeField"),t}function o2(e){ui(e)||Ht("selectorType")}function a2(e){ui(e)||Bs(e)||Ht("handlerType"),Bs(e)&&Object.values(e).some(function(t){return!ui(t)})&&Ht("handlersType")}function l2(e){e||Ht("initialIsRequired"),Bs(e)||Ht("initialType"),r2(e)&&Ht("initialContent")}function u2(e,t){throw new Error(e[t]||e.default)}var c2={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"},Ht=Cr(u2)(c2),$i={changes:s2,selector:o2,handler:a2,initial:l2};function d2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};$i.initial(e),$i.handler(t);var n={current:e},r=Cr(p2)(n,t),i=Cr(h2)(n),s=Cr($i.changes)(e),o=Cr(f2)(n);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return $i.selector(u),u(n.current)}function l(u){n2(r,i,s,o)(u)}return[a,l]}function f2(e,t){return ui(t)?t(e.current):t}function h2(e,t){return e.current=kf(kf({},e.current),t),t}function p2(e,t,n){return ui(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var m2={create:d2},y2={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function v2(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return i.length>=e.length?e.apply(this,i):function(){for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return t.apply(n,[].concat(i,a))}}}function g2(e){return{}.toString.call(e).includes("Object")}function x2(e){return e||jf("configIsRequired"),g2(e)||jf("configType"),e.urls?(w2(),{paths:{vs:e.urls.monacoBase}}):e}function w2(){console.warn(vy.deprecation)}function S2(e,t){throw new Error(e[t]||e.default)}var vy={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!
255
255
  You are using deprecated way of configuration.
256
256
 
257
257
  Instead of using
@@ -260,5 +260,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
260
260
  monaco.config({ paths: { vs: '...' } })
261
261
 
262
262
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
263
- `},kf=y2(w2)(yy),S2={config:g2},k2=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(i){return n.reduceRight(function(s,o){return o(s)},i)}};function vy(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],vy(e[n],t[n]))}),xf(xf({},e),t)}var j2={type:"cancelation",msg:"operation is manually canceled"};function Jo(e){var t=!1,n=new Promise(function(r,i){e.then(function(s){return t?i(j2):r(s)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var C2=["monaco"],P2=p2.create({config:m2,isInitialized:!1,resolve:null,reject:null,monaco:null}),gy=XS(P2,2),xi=gy[0],fo=gy[1];function T2(e){var t=S2.config(e),n=t.monaco,r=bS(t,C2);fo(function(i){return{config:vy(i.config,r),monaco:n}})}function E2(){var e=xi(function(t){var n=t.monaco,r=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:r,resolve:i}});if(!e.isInitialized){if(fo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Jo(ea);if(window.monaco&&window.monaco.editor)return xy(window.monaco),e.resolve(window.monaco),Jo(ea);k2(N2,A2)(D2)}return Jo(ea)}function N2(e){return document.body.appendChild(e)}function M2(e){var t=document.createElement("script");return e&&(t.src=e),t}function A2(e){var t=xi(function(r){var i=r.config,s=r.reject;return{config:i,reject:s}}),n=M2("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function D2(){var e=xi(function(n){var r=n.config,i=n.resolve,s=n.reject;return{config:r,resolve:i,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;xy(r),e.resolve(r)},function(n){e.reject(n)})}function xy(e){xi().monaco||fo({monaco:e})}function L2(){return xi(function(e){var t=e.monaco;return t})}var ea=new Promise(function(e,t){return fo({resolve:e,reject:t})}),wy={config:T2,init:E2,__getMonacoInstance:L2},R2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ta=R2,V2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},_2=V2;function O2({children:e}){return Oe.createElement("div",{style:_2.container},e)}var z2=O2,F2=z2;function I2({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:s,wrapperProps:o}){return Oe.createElement("section",{style:{...ta.wrapper,width:e,height:t},...o},!n&&Oe.createElement(F2,null,r),Oe.createElement("div",{ref:i,style:{...ta.fullWidth,...!n&&ta.hide},className:s}))}var B2=I2,Sy=j.memo(B2);function U2(e){j.useEffect(e,[])}var ky=U2;function $2(e,t,n=!0){let r=j.useRef(!0);j.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var _e=$2;function Fr(){}function In(e,t,n,r){return W2(e,r)||H2(e,t,n,r)}function W2(e,t){return e.editor.getModel(jy(e,t))}function H2(e,t,n,r){return e.editor.createModel(t,n,r?jy(e,r):void 0)}function jy(e,t){return e.Uri.parse(t)}function K2({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:s,modifiedModelPath:o,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:d="Loading...",options:f={},height:h="100%",width:g="100%",className:x,wrapperProps:v={},beforeMount:C=Fr,onMount:m=Fr}){let[p,y]=j.useState(!1),[S,w]=j.useState(!0),k=j.useRef(null),P=j.useRef(null),T=j.useRef(null),L=j.useRef(m),M=j.useRef(C),K=j.useRef(!1);ky(()=>{let A=wy.init();return A.then(z=>(P.current=z)&&w(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>k.current?R():A.cancel()}),_e(()=>{if(k.current&&P.current){let A=k.current.getOriginalEditor(),z=In(P.current,e||"",r||n||"text",s||"");z!==A.getModel()&&A.setModel(z)}},[s],p),_e(()=>{if(k.current&&P.current){let A=k.current.getModifiedEditor(),z=In(P.current,t||"",i||n||"text",o||"");z!==A.getModel()&&A.setModel(z)}},[o],p),_e(()=>{let A=k.current.getModifiedEditor();A.getOption(P.current.editor.EditorOption.readOnly)?A.setValue(t||""):t!==A.getValue()&&(A.executeEdits("",[{range:A.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),A.pushUndoStop())},[t],p),_e(()=>{var A,z;(z=(A=k.current)==null?void 0:A.getModel())==null||z.original.setValue(e||"")},[e],p),_e(()=>{let{original:A,modified:z}=k.current.getModel();P.current.editor.setModelLanguage(A,r||n||"text"),P.current.editor.setModelLanguage(z,i||n||"text")},[n,r,i],p),_e(()=>{var A;(A=P.current)==null||A.editor.setTheme(u)},[u],p),_e(()=>{var A;(A=k.current)==null||A.updateOptions(f)},[f],p);let me=j.useCallback(()=>{var B;if(!P.current)return;M.current(P.current);let A=In(P.current,e||"",r||n||"text",s||""),z=In(P.current,t||"",i||n||"text",o||"");(B=k.current)==null||B.setModel({original:A,modified:z})},[n,t,i,e,r,s,o]),ke=j.useCallback(()=>{var A;!K.current&&T.current&&(k.current=P.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...f}),me(),(A=P.current)==null||A.editor.setTheme(u),y(!0),K.current=!0)},[f,u,me]);j.useEffect(()=>{p&&L.current(k.current,P.current)},[p]),j.useEffect(()=>{!S&&!p&&ke()},[S,p,ke]);function R(){var z,B,N,_;let A=(z=k.current)==null?void 0:z.getModel();a||((B=A==null?void 0:A.original)==null||B.dispose()),l||((N=A==null?void 0:A.modified)==null||N.dispose()),(_=k.current)==null||_.dispose()}return Oe.createElement(Sy,{width:g,height:h,isEditorReady:p,loading:d,_ref:T,className:x,wrapperProps:v})}var G2=K2,Q2=j.memo(G2);function b2(e){let t=j.useRef();return j.useEffect(()=>{t.current=e},[e]),t.current}var Y2=b2,Wi=new Map;function X2({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:s,theme:o="light",line:a,loading:l="Loading...",options:u={},overrideServices:d={},saveViewState:f=!0,keepCurrentModel:h=!1,width:g="100%",height:x="100%",className:v,wrapperProps:C={},beforeMount:m=Fr,onMount:p=Fr,onChange:y,onValidate:S=Fr}){let[w,k]=j.useState(!1),[P,T]=j.useState(!0),L=j.useRef(null),M=j.useRef(null),K=j.useRef(null),me=j.useRef(p),ke=j.useRef(m),R=j.useRef(),A=j.useRef(r),z=Y2(s),B=j.useRef(!1),N=j.useRef(!1);ky(()=>{let V=wy.init();return V.then(I=>(L.current=I)&&T(!1)).catch(I=>(I==null?void 0:I.type)!=="cancelation"&&console.error("Monaco initialization: error:",I)),()=>M.current?F():V.cancel()}),_e(()=>{var I,le,Re,ot;let V=In(L.current,e||r||"",t||i||"",s||n||"");V!==((I=M.current)==null?void 0:I.getModel())&&(f&&Wi.set(z,(le=M.current)==null?void 0:le.saveViewState()),(Re=M.current)==null||Re.setModel(V),f&&((ot=M.current)==null||ot.restoreViewState(Wi.get(s))))},[s],w),_e(()=>{var V;(V=M.current)==null||V.updateOptions(u)},[u],w),_e(()=>{!M.current||r===void 0||(M.current.getOption(L.current.editor.EditorOption.readOnly)?M.current.setValue(r):r!==M.current.getValue()&&(N.current=!0,M.current.executeEdits("",[{range:M.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),M.current.pushUndoStop(),N.current=!1))},[r],w),_e(()=>{var I,le;let V=(I=M.current)==null?void 0:I.getModel();V&&i&&((le=L.current)==null||le.editor.setModelLanguage(V,i))},[i],w),_e(()=>{var V;a!==void 0&&((V=M.current)==null||V.revealLine(a))},[a],w),_e(()=>{var V;(V=L.current)==null||V.editor.setTheme(o)},[o],w);let _=j.useCallback(()=>{var V;if(!(!K.current||!L.current)&&!B.current){ke.current(L.current);let I=s||n,le=In(L.current,r||e||"",t||i||"",I||"");M.current=(V=L.current)==null?void 0:V.editor.create(K.current,{model:le,automaticLayout:!0,...u},d),f&&M.current.restoreViewState(Wi.get(I)),L.current.editor.setTheme(o),a!==void 0&&M.current.revealLine(a),k(!0),B.current=!0}},[e,t,n,r,i,s,u,d,f,o,a]);j.useEffect(()=>{w&&me.current(M.current,L.current)},[w]),j.useEffect(()=>{!P&&!w&&_()},[P,w,_]),A.current=r,j.useEffect(()=>{var V,I;w&&y&&((V=R.current)==null||V.dispose(),R.current=(I=M.current)==null?void 0:I.onDidChangeModelContent(le=>{N.current||y(M.current.getValue(),le)}))},[w,y]),j.useEffect(()=>{if(w){let V=L.current.editor.onDidChangeMarkers(I=>{var Re;let le=(Re=M.current.getModel())==null?void 0:Re.uri;if(le&&I.find(ot=>ot.path===le.path)){let ot=L.current.editor.getModelMarkers({resource:le});S==null||S(ot)}});return()=>{V==null||V.dispose()}}return()=>{}},[w,S]);function F(){var V,I;(V=R.current)==null||V.dispose(),h?f&&Wi.set(s,M.current.saveViewState()):(I=M.current.getModel())==null||I.dispose(),M.current.dispose()}return Oe.createElement(Sy,{width:g,height:x,isEditorReady:w,loading:l,_ref:K,className:v,wrapperProps:C})}var q2=X2,Z2=j.memo(q2);const J2=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"},ek=({filename:e,originalCode:t,modifiedCode:n,onClose:r,theme:i="dark"})=>{const s=t!==n,o=J2(e),a=i==="dark"?"vs-dark":"light";return c.jsx("div",{className:"diff-viewer-overlay",children:c.jsxs("div",{className:"diff-viewer-window",children:[c.jsxs("div",{className:"diff-viewer-header",children:[c.jsxs("div",{className:"title",children:[c.jsx(gt,{size:18}),c.jsx("span",{children:e}),s&&c.jsx("span",{className:"diff-badge",children:"Modified"})]}),c.jsx("button",{onClick:r,className:"close-btn",children:c.jsx(lu,{size:20})})]}),c.jsx("div",{className:"diff-editor-container",children:s?c.jsx(Q2,{height:"100%",language:o,original:t,modified:n,theme:a,options:{renderSideBySide:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13}}):c.jsx(Z2,{height:"100%",language:o,value:n,theme:a,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on"}})})]})})},tk=(e,t)=>{const n=[];e.forEach(i=>{const s=i.split("/");let o=n,a="";s.forEach((l,u)=>{a=a?`${a}/${l}`:l;const d=u<s.length-1;let f=o.find(h=>h.name===l);f||(f={name:l,path:a,isDirectory:d,children:[],isViolated:t.some(h=>h===a||h.startsWith(`${a}/`))},o.push(f)),o=f.children})});const r=i=>{i.sort((s,o)=>s.isDirectory&&!o.isDirectory?-1:!s.isDirectory&&o.isDirectory?1:s.name.localeCompare(o.name)),i.forEach(s=>r(s.children))};return r(n),n},Cy=({node:e,level:t,onSelect:n,activeFile:r})=>{const[i,s]=j.useState(t===0),o=r===e.path,a=l=>{l.stopPropagation(),e.isDirectory?s(!i):n(e.path)};return c.jsxs("div",{className:"tree-node-container",children:[c.jsxs("div",{className:`tree-item ${o?"active":""} ${e.isViolated?"violated":""}`,style:{paddingLeft:`${t*12+8}px`},onClick:a,children:[e.isDirectory?c.jsxs(c.Fragment,{children:[i?c.jsx(r0,{size:14,className:"chevron"}):c.jsx(ro,{size:14,className:"chevron"}),i?c.jsx(u0,{size:14,className:"folder-icon"}):c.jsx(ou,{size:14,className:"folder-icon"})]}):c.jsx(gt,{size:14,className:"file-icon"}),c.jsx("span",{className:"node-name",title:e.path,children:e.name}),e.isViolated&&c.jsx(i0,{size:12,className:"violation-icon"})]}),e.isDirectory&&i&&c.jsx("div",{className:"tree-children",children:e.children.map(l=>c.jsx(Cy,{node:l,level:t+1,onSelect:n,activeFile:r},l.path))})]})},jf=({files:e,onSelect:t,activeFile:n,violatedFiles:r=[]})=>{const i=j.useMemo(()=>tk(e,r),[e,r]);return c.jsxs("div",{className:"file-tree",children:[c.jsxs("div",{className:"tree-header",children:[c.jsx(ou,{size:14}),c.jsx("span",{children:"Project Explorer"})]}),c.jsx("div",{className:"tree-list",children:i.length===0?c.jsx("div",{className:"empty-tree-state",children:"No files found"}):i.map(s=>c.jsx(Cy,{node:s,level:0,onSelect:t,activeFile:n},s.path))})]})},nk=()=>{const[e,t]=j.useState({memories:{}}),[n,r]=j.useState(null),[i,s]=j.useState(""),[o,a]=j.useState(!0),[l,u]=j.useState(!1),d=async()=>{a(!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{a(!1)}};j.useEffect(()=>{d()},[]);const f=Object.entries(e.memories||{}),h=f.filter(([m])=>m.toLowerCase().includes(i.toLowerCase())),g=n?e.memories[n]:null,x=m=>{try{return new Date(m).toLocaleString()}catch{return m}},v=()=>{g&&(navigator.clipboard.writeText(g.value),u(!0),setTimeout(()=>u(!1),2e3))},C=m=>{if(m.includes("1)")&&m.includes("2)")){const p=m.split(/(\d+\))/);return c.jsx("div",{className:"formatted-content",children:p.map((y,S)=>{if(/^\d+\)$/.test(y))return c.jsx("div",{className:"section-marker",children:y},S);if(y.trim().startsWith("Priority:")){const[w,k]=y.split("Priority:");return c.jsxs(Oe.Fragment,{children:[w.trim()&&c.jsx("div",{className:"section-body",children:w.trim()}),c.jsx("div",{className:"priority-box",children:k.trim()})]},S)}return y.trim()?c.jsx("div",{className:"section-body",children:y.trim()},S):null})})}return c.jsx("pre",{children:m})};return c.jsxs("div",{className:"memory-bank",children:[c.jsxs("div",{className:"memory-header",children:[c.jsxs("div",{className:"memory-title",children:[c.jsx(Zc,{size:24}),c.jsx("h2",{children:"Memory Bank"}),c.jsxs("span",{className:"memory-count",children:[f.length," entries"]})]}),c.jsxs("div",{className:"memory-actions",children:[c.jsxs("div",{className:"search-box",children:[c.jsx(au,{size:16}),c.jsx("input",{type:"text",placeholder:"Search memories...",value:i,onChange:m=>s(m.target.value)})]}),c.jsx("button",{className:"refresh-btn",onClick:d,disabled:o,children:c.jsx(Ds,{size:16,className:o?"spinning":""})})]})]}),c.jsxs("div",{className:"memory-content",children:[c.jsx("div",{className:"memory-list",children:o?c.jsx("div",{className:"memory-loading",children:"Loading memories..."}):h.length===0?c.jsxs("div",{className:"memory-empty",children:[c.jsx(zp,{size:48}),c.jsx("h3",{children:"No Memories Stored"}),c.jsxs("p",{children:["Use ",c.jsx("code",{children:"store_memory"})," via MCP to persist agent context."]})]}):h.map(([m,p])=>c.jsxs("div",{className:`memory-item ${n===m?"active":""}`,onClick:()=>r(m),children:[c.jsxs("div",{className:"memory-item-header",children:[c.jsx(ed,{size:14}),c.jsx("span",{className:"memory-key",children:m}),c.jsx(ro,{size:14,className:"chevron"})]}),c.jsxs("div",{className:"memory-item-meta",children:[c.jsx(As,{size:12}),c.jsx("span",{children:x(p.timestamp)})]}),c.jsxs("div",{className:"memory-item-preview",children:[p.value.slice(0,100),p.value.length>100?"...":""]})]},m))}),c.jsx("div",{className:"memory-detail",children:g?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"detail-header",children:[c.jsx(ed,{size:18}),c.jsx("h3",{children:n})]}),c.jsxs("div",{className:"detail-meta",children:[c.jsxs("div",{className:"meta-left",children:[c.jsx(As,{size:14}),c.jsxs("span",{children:["Stored: ",x(g.timestamp)]})]}),c.jsxs("button",{className:`copy-btn ${l?"copied":""}`,onClick:v,children:[l?c.jsx(n0,{size:14}):c.jsx(s0,{size:14}),c.jsx("span",{children:l?"Copied":"Copy"})]})]}),c.jsx("div",{className:"detail-content",children:C(g.value)})]}):c.jsxs("div",{className:"detail-placeholder",children:[c.jsx(Zc,{size:48}),c.jsx("p",{children:"Select a memory to view its contents"})]})})]})]})},rk=()=>{var w;const[e,t]=j.useState({patterns:[],stats:{totalPatterns:0,totalFiles:0,byType:{}}}),[n,r]=j.useState(null),[i,s]=j.useState(""),[o,a]=j.useState("all"),[l,u]=j.useState(!0),[d,f]=j.useState(!1),[h,g]=j.useState([]),[x,v]=j.useState(!1),C=async()=>{u(!0);try{const P=await(await fetch("/api/index-stats")).json();t(P)}catch(k){console.error("Failed to fetch pattern index:",k)}finally{u(!1)}};j.useEffect(()=>{C()},[]),j.useEffect(()=>{if(!d||i.length<3){g([]);return}const k=setTimeout(async()=>{v(!0);try{const T=await(await fetch(`/api/index-search?q=${encodeURIComponent(i)}`)).json();g(T)}catch(P){console.error("Semantic search failed:",P)}finally{v(!1)}},500);return()=>clearTimeout(k)},[i,d]);const m=d&&i.length>=3?h:e.patterns||[],p=e.stats||{totalPatterns:0,totalFiles:0,byType:{}},y=d&&i.length>=3?m:m.filter(k=>{const P=k.name.toLowerCase().includes(i.toLowerCase())||k.file.toLowerCase().includes(i.toLowerCase()),T=o==="all"||k.type===o;return P&&T}),S=Object.keys(p.byType||{});return c.jsxs("div",{className:"pattern-index",children:[c.jsxs("div",{className:"pattern-header",children:[c.jsxs("div",{className:"pattern-title",children:[c.jsx(ns,{size:24}),c.jsx("h2",{children:"Pattern Index"}),c.jsxs("span",{className:"pattern-count",children:[p.totalPatterns," patterns"]})]}),c.jsxs("div",{className:"pattern-actions",children:[c.jsxs("div",{className:"search-box",children:[c.jsx(au,{size:16}),c.jsx("input",{type:"text",placeholder:"Search patterns...",value:i,onChange:k=>s(k.target.value)})]}),c.jsxs("div",{className:"filter-box",children:[c.jsx(Fp,{size:16}),c.jsxs("select",{value:o,onChange:k=>a(k.target.value),children:[c.jsx("option",{value:"all",children:"All Types"}),S.map(k=>c.jsxs("option",{value:k,children:[k," (",p.byType[k],")"]},k))]})]}),c.jsxs("button",{className:`semantic-toggle ${d?"active":""}`,onClick:()=>f(!d),title:"Semantic Search (v2)",children:[c.jsx(Jc,{size:16}),c.jsx("span",{children:"AI Search"})]}),c.jsx("button",{className:"refresh-btn",onClick:C,disabled:l,children:c.jsx(Ds,{size:16,className:l?"spinning":""})})]})]}),c.jsxs("div",{className:"pattern-stats",children:[c.jsxs("div",{className:"stat-card",children:[c.jsx(t0,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsx("span",{className:"stat-value",children:p.totalPatterns}),c.jsx("span",{className:"stat-label",children:"Total Patterns"})]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx(gt,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsx("span",{className:"stat-value",children:p.totalFiles}),c.jsx("span",{className:"stat-label",children:"Files Indexed"})]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx(Jc,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsx("span",{className:"stat-value",children:S.length}),c.jsx("span",{className:"stat-label",children:"Pattern Types"})]})]}),p.indexDurationMs&&c.jsxs("div",{className:"stat-card",children:[c.jsx(As,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsxs("span",{className:"stat-value",children:[p.indexDurationMs,"ms"]}),c.jsx("span",{className:"stat-label",children:"Index Time"})]})]})]}),c.jsxs("div",{className:"pattern-content",children:[c.jsxs("div",{className:"pattern-list",children:[x&&c.jsxs("div",{className:"searching-indicator",children:[c.jsx(Ds,{size:14,className:"spinning"}),c.jsx("span",{children:"AI is analyzing your query..."})]}),l?c.jsx("div",{className:"pattern-loading",children:"Loading patterns..."}):y.length===0?c.jsxs("div",{className:"pattern-empty",children:[c.jsx(ns,{size:48}),c.jsx("h3",{children:"No Patterns Indexed"}),c.jsxs("p",{children:["Run ",c.jsx("code",{children:"rigour index"})," to scan your codebase."]})]}):y.map(k=>c.jsxs("div",{className:`pattern-item ${(n==null?void 0:n.id)===k.id?"active":""}`,onClick:()=>r(k),children:[k.similarity&&c.jsxs("div",{className:"similarity-badge",children:[(k.similarity*100).toFixed(0),"% Match"]}),c.jsxs("div",{className:"pattern-item-header",children:[c.jsx("span",{className:"pattern-type-badge",children:k.type}),c.jsx("span",{className:"pattern-name",children:k.name}),c.jsx(ro,{size:14,className:"chevron"})]}),c.jsxs("div",{className:"pattern-item-file",children:[c.jsx(gt,{size:12}),c.jsxs("span",{children:[k.file,":",k.line]})]}),k.exported&&c.jsx("span",{className:"exported-badge",children:"exported"})]},k.id))]}),c.jsx("div",{className:"pattern-detail",children:n?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"detail-header",children:[c.jsx("span",{className:"pattern-type-badge large",children:n.type}),c.jsx("h3",{children:n.name})]}),c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Location"}),c.jsxs("code",{children:[n.file,":",n.line,"-",n.endLine]})]}),n.signature&&c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Signature"}),c.jsx("pre",{children:n.signature})]}),n.description&&c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Description"}),c.jsx("p",{children:n.description})]}),((w=n.keywords)==null?void 0:w.length)>0&&c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Keywords"}),c.jsx("div",{className:"keywords-list",children:n.keywords.map((k,P)=>c.jsx("span",{className:"keyword-tag",children:k},P))})]}),c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Usage"}),c.jsxs("p",{children:["Imported in ",c.jsx("strong",{children:n.usageCount})," files"]})]})]}):c.jsxs("div",{className:"detail-placeholder",children:[c.jsx(ns,{size:48}),c.jsx("p",{children:"Select a pattern to view details"})]})})]})]})},ik=()=>{const[e,t]=j.useState(null),[n,r]=j.useState(""),[i,s]=j.useState(!0),[o,a]=j.useState("visual"),l=async()=>{s(!0);try{const h=await(await fetch("/api/config")).text();r(h);const g=u(h);t(g)}catch(f){console.error("Failed to fetch config:",f)}finally{s(!1)}},u=f=>{var h;try{const g=f.split(`
264
- `),x={};let v=null,C=null;for(const m of g){if(m.startsWith("#")||!m.trim())continue;const p=m.search(/\S/),y=m.trim();if(p===0&&y.includes(":")){const[S]=y.split(":");v=S.trim(),C=null;const w=(h=y.split(":")[1])==null?void 0:h.trim();w&&w!=="{}"&&w!=="[]"?x[v]=isNaN(Number(w))?w:Number(w):x[v]={}}else if(p===2&&v&&y.includes(":")){const[S]=y.split(":");C=S.trim();const w=y.split(":").slice(1).join(":").trim();if(w&&w!=="{}"&&w!=="[]"){typeof x[v]!="object"&&(x[v]={});const k=w==="true"?!0:w==="false"?!1:isNaN(Number(w))?w:Number(w);x[v][C]=k}else typeof x[v]!="object"&&(x[v]={}),x[v][C]={}}else if(p===4&&v&&C&&y.includes(":")){const[S]=y.split(":"),w=y.split(":").slice(1).join(":").trim();typeof x[v][C]!="object"&&(x[v][C]={});const k=w==="true"?!0:w==="false"?!1:isNaN(Number(w))?w:Number(w);x[v][C][S.trim()]=k}}return x}catch{return{}}};j.useEffect(()=>{l()},[]);const d=(e==null?void 0:e.gates)||{};return c.jsxs("div",{className:"quality-gates",children:[c.jsxs("div",{className:"gates-header",children:[c.jsxs("div",{className:"gates-title",children:[c.jsx(h0,{size:24}),c.jsx("h2",{children:"Quality Gates"}),(e==null?void 0:e.preset)&&c.jsx("span",{className:"preset-badge",children:e.preset})]}),c.jsxs("div",{className:"gates-actions",children:[c.jsxs("div",{className:"view-toggle",children:[c.jsxs("button",{className:o==="visual"?"active":"",onClick:()=>a("visual"),children:[c.jsx(ns,{size:16})," Visual"]}),c.jsxs("button",{className:o==="raw"?"active":"",onClick:()=>a("raw"),children:[c.jsx(gt,{size:16})," YAML"]})]}),c.jsx("button",{className:"refresh-btn",onClick:l,disabled:i,children:c.jsx(Ds,{size:16,className:i?"spinning":""})})]})]}),i?c.jsx("div",{className:"gates-loading",children:"Loading configuration..."}):o==="raw"?c.jsx("div",{className:"gates-raw",children:c.jsx("pre",{children:n})}):c.jsxs("div",{className:"gates-content",children:[c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(gt,{size:18}),c.jsx("h3",{children:"Code Quality"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Max File Lines",value:d.max_file_lines,icon:c.jsx(gt,{size:16})}),c.jsx(je,{label:"Forbid TODOs",value:d.forbid_todos,icon:d.forbid_todos?c.jsx(ri,{size:16}):c.jsx(ni,{size:16})}),c.jsx(je,{label:"Forbid FIXMEs",value:d.forbid_fixme,icon:d.forbid_fixme?c.jsx(ri,{size:16}):c.jsx(ni,{size:16})})]})]}),d.ast&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(c0,{size:18}),c.jsx("h3",{children:"AST Limits"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Complexity",value:d.ast.complexity}),c.jsx(je,{label:"Max Methods",value:d.ast.max_methods}),c.jsx(je,{label:"Max Params",value:d.ast.max_params}),c.jsx(je,{label:"Max Nesting",value:d.ast.max_nesting}),c.jsx(je,{label:"Max Function Lines",value:d.ast.max_function_lines}),c.jsx(je,{label:"Max Inheritance",value:d.ast.max_inheritance_depth})]})]}),d.safety&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(Ip,{size:18}),c.jsx("h3",{children:"Safety Controls"})]}),c.jsx("div",{className:"gate-grid",children:c.jsx(je,{label:"Max Files/Cycle",value:d.safety.max_files_changed_per_cycle})}),d.safety.protected_paths&&d.safety.protected_paths.length>0&&c.jsxs("div",{className:"protected-paths",children:[c.jsx("h4",{children:"Protected Paths"}),c.jsx("div",{className:"path-list",children:d.safety.protected_paths.map((f,h)=>c.jsx("span",{className:"path-tag",children:f},h))})]})]}),d.required_files&&d.required_files.length>0&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(io,{size:18}),c.jsx("h3",{children:"Required Files"})]}),c.jsx("div",{className:"file-list",children:d.required_files.map((f,h)=>c.jsxs("div",{className:"file-item",children:[c.jsx(gt,{size:14}),c.jsx("span",{children:f})]},h))})]}),d.context&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(y0,{size:18}),c.jsx("h3",{children:"Context Mining"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Enabled",value:d.context.enabled}),c.jsx(je,{label:"Sensitivity",value:d.context.sensitivity}),c.jsx(je,{label:"Mining Depth",value:d.context.mining_depth})]})]}),d.retry_loop_breaker&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(Bp,{size:18}),c.jsx("h3",{children:"Retry Loop Breaker"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Enabled",value:d.retry_loop_breaker.enabled}),c.jsx(je,{label:"Max Retries",value:d.retry_loop_breaker.max_retries})]})]})]})]})},je=({label:e,value:t,icon:n})=>{const r=typeof t=="boolean"?t?"Yes":"No":t??"N/A";return c.jsxs("div",{className:"gate-card",children:[n&&c.jsx("div",{className:"gate-icon",children:n}),c.jsxs("div",{className:"gate-info",children:[c.jsx("span",{className:"gate-value",children:r}),c.jsx("span",{className:"gate-label",children:e})]})]})},sk=({logs:e,onClearLogs:t,onSelectLog:n,selectedLog:r})=>{const[i,s]=j.useState(""),[o,a]=j.useState("all"),[l,u]=j.useState("all"),d=Oe.useMemo(()=>{const v={};return e.forEach(C=>{const m=C.requestId||C.id;v[m]?v[m]={...v[m],...C}:v[m]={...C}}),Object.values(v).sort((C,m)=>new Date(m.timestamp).getTime()-new Date(C.timestamp).getTime())},[e]),f=Oe.useMemo(()=>{const v=new Set;return d.forEach(C=>C.tool&&v.add(C.tool)),Array.from(v)},[d]),h=Oe.useMemo(()=>d.filter(v=>{var y;const C=!i||((y=v.tool)==null?void 0:y.toLowerCase().includes(i.toLowerCase()))||JSON.stringify(v.arguments||{}).toLowerCase().includes(i.toLowerCase()),m=o==="all"||v.status===o,p=l==="all"||v.tool===l;return C&&m&&p}),[d,i,o,l]),g=Oe.useMemo(()=>({total:d.length,success:d.filter(v=>v.status==="success").length,error:d.filter(v=>v.status==="error").length,pending:d.filter(v=>!v.status||v.status==="pending").length}),[d]),x=()=>{const v=JSON.stringify(h,null,2),C=new Blob([v],{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 c.jsxs("div",{className:"audit-log",children:[c.jsxs("div",{className:"audit-header",children:[c.jsxs("div",{className:"audit-title",children:[c.jsx(Ya,{size:24}),c.jsx("h2",{children:"Audit Trail"}),c.jsxs("span",{className:"log-count",children:[h.length," events"]})]}),c.jsxs("div",{className:"audit-actions",children:[c.jsxs("button",{className:"btn-secondary",onClick:t,children:[c.jsx(m0,{size:16})," Clear"]}),c.jsxs("button",{className:"btn-primary",onClick:x,children:[c.jsx(a0,{size:16})," Export"]})]})]}),c.jsxs("div",{className:"audit-stats",children:[c.jsxs("div",{className:"stat-pill",children:[c.jsx(Ya,{size:14}),c.jsxs("span",{children:[g.total," Total"]})]}),c.jsxs("div",{className:"stat-pill success",children:[c.jsx(ni,{size:14}),c.jsxs("span",{children:[g.success," Success"]})]}),c.jsxs("div",{className:"stat-pill error",children:[c.jsx(ri,{size:14}),c.jsxs("span",{children:[g.error," Failed"]})]}),c.jsxs("div",{className:"stat-pill pending",children:[c.jsx(io,{size:14}),c.jsxs("span",{children:[g.pending," Pending"]})]})]}),c.jsxs("div",{className:"audit-filters",children:[c.jsxs("div",{className:"search-box",children:[c.jsx(au,{size:16}),c.jsx("input",{type:"text",placeholder:"Search logs...",value:i,onChange:v=>s(v.target.value)})]}),c.jsxs("div",{className:"filter-box",children:[c.jsx(Fp,{size:16}),c.jsxs("select",{value:o,onChange:v=>a(v.target.value),children:[c.jsx("option",{value:"all",children:"All Status"}),c.jsx("option",{value:"success",children:"Success"}),c.jsx("option",{value:"error",children:"Error"}),c.jsx("option",{value:"pending",children:"Pending"})]})]}),c.jsxs("div",{className:"filter-box",children:[c.jsx(Ls,{size:16}),c.jsxs("select",{value:l,onChange:v=>u(v.target.value),children:[c.jsx("option",{value:"all",children:"All Tools"}),f.map(v=>c.jsx("option",{value:v,children:v},v))]})]})]}),c.jsxs("div",{className:"audit-content",children:[c.jsx("div",{className:"log-list",children:h.length===0?c.jsxs("div",{className:"empty-state",children:[c.jsx(Ls,{size:48}),c.jsx("h3",{children:"No Interactions Detected"}),c.jsx("p",{children:"Rigour tool calls will appear here in real-time."})]}):h.map(v=>c.jsxs("div",{className:`log-entry ${(r==null?void 0:r.id)===v.id?"active":""} ${v._rigour_report?"has-report":""}`,onClick:()=>n((r==null?void 0:r.id)===v.id?null:v),children:[c.jsxs("div",{className:"log-header",children:[c.jsx("span",{className:`status-dot ${v.status||"pending"}`}),c.jsx("span",{className:"log-tool",children:v.tool}),c.jsxs("span",{className:"log-time",children:[c.jsx(As,{size:12}),new Date(v.timestamp).toLocaleTimeString()]}),v._rigour_report&&c.jsxs("span",{className:"report-badge",children:[c.jsx(l0,{size:12})," Report"]}),v.arbitrated&&c.jsx("span",{className:`arbitrated-badge ${v.decision}`,children:v.decision==="approve"?"Approved":"Rejected"}),c.jsx(ro,{size:14,className:"chevron"})]}),v.requestId&&c.jsxs("div",{className:"log-request-id",children:["ID: ",v.requestId.slice(0,12),"..."]})]},v.id))}),c.jsx("div",{className:"log-detail",children:r?c.jsx(ok,{log:r,onClose:()=>n(null)}):c.jsxs("div",{className:"detail-placeholder",children:[c.jsx(gt,{size:48}),c.jsx("p",{children:"Select a log entry to view details"})]})})]})]})},ok=({log:e,onClose:t})=>{const[n,r]=j.useState(e._rigour_report?"report":"args");return c.jsxs("div",{className:"log-detail-view",children:[c.jsxs("div",{className:"detail-header",children:[c.jsxs("div",{className:"detail-info",children:[c.jsxs("span",{className:`status-badge ${e.status||"pending"}`,children:[e.status==="success"?c.jsx(ni,{size:14}):e.status==="error"?c.jsx(ri,{size:14}):c.jsx(io,{size:14}),e.status||"pending"]}),c.jsx("h3",{children:e.tool})]}),c.jsx("button",{className:"close-btn",onClick:t,children:c.jsx(lu,{size:18})})]}),c.jsxs("div",{className:"detail-meta",children:[c.jsxs("div",{className:"meta-item",children:[c.jsx("span",{className:"meta-label",children:"Timestamp"}),c.jsx("span",{className:"meta-value",children:new Date(e.timestamp).toLocaleString()})]}),e.requestId&&c.jsxs("div",{className:"meta-item",children:[c.jsx("span",{className:"meta-label",children:"Request ID"}),c.jsx("span",{className:"meta-value mono",children:e.requestId})]})]}),e._rigour_report&&c.jsxs("div",{className:"detail-tabs",children:[c.jsx("button",{className:n==="report"?"active":"",onClick:()=>r("report"),children:"Verification Report"}),c.jsx("button",{className:n==="args"?"active":"",onClick:()=>r("args"),children:"Technical Arguments"})]}),c.jsx("div",{className:"detail-body",children:n==="args"?c.jsxs(c.Fragment,{children:[e.arguments&&c.jsxs("div",{className:"code-section",children:[c.jsx("h4",{children:"Arguments"}),c.jsx("pre",{children:JSON.stringify(e.arguments,null,2)})]}),e.error&&c.jsxs("div",{className:"error-section",children:[c.jsx("h4",{children:"Error"}),c.jsx("div",{className:"error-message",children:e.error})]})]}):c.jsxs("div",{className:"code-section",children:[c.jsx("h4",{children:"Rigour Report"}),c.jsx("pre",{children:JSON.stringify(e._rigour_report,null,2)})]})})]})};function ak(){var M,K,me,ke;const[e,t]=j.useState(()=>localStorage.getItem("rigour-theme")||"dark"),[n,r]=j.useState("memory"),[i,s]=j.useState([]),[o,a]=j.useState(null),[l,u]=j.useState(null),[d,f]=j.useState(!1),[h,g]=j.useState([]),[x,v]=j.useState(null);Oe.useEffect(()=>{const R=new EventSource("/api/events");return R.onmessage=A=>{try{const z=JSON.parse(A.data);s(B=>[z,...B].slice(0,100))}catch(z){console.error("Failed to parse event",z)}},fetch("/api/tree").then(A=>A.json()).then(g).catch(A=>console.error("Failed to fetch tree",A)),fetch("/api/info").then(A=>A.json()).then(v).catch(A=>console.error("Failed to fetch info",A)),()=>R.close()},[]),j.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("rigour-theme",e)},[e]);const C=()=>t(R=>R==="dark"?"light":"dark"),[m,p]=j.useState(""),[y,S]=j.useState({}),[w,k]=j.useState({});j.useEffect(()=>{(async()=>{try{const[A,z,B]=await Promise.all([fetch("/api/config").then(N=>N.ok?N.text():""),fetch("/api/memory").then(N=>N.json()),fetch("/api/index-stats").then(N=>N.json())]);p(A),S(z),k(B)}catch(A){console.error("Failed to fetch meta data",A)}})()},[]);const P=async R=>{try{const A=R.replace(/\s*\(\d+\s*lines\)$/,""),B=await(await fetch(`/api/file?path=${encodeURIComponent(A)}`)).text();a({filename:A,original:B,modified:B})}catch(A){console.error("Failed to fetch file content",A)}},T=async R=>{if(l)try{await fetch("/api/arbitrate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:l.requestId||l.id,decision:R,timestamp:new Date().toISOString()})}),s(A=>A.map(z=>(z.requestId||z.id)===(l.requestId||l.id)?{...z,status:R==="approve"?"success":"error",arbitrated:!0,decision:R}:z)),f(!1),u(null)}catch(A){console.error("Arbitration failed",A)}},L=[{id:"audit",label:"Audit Log",icon:Ls},{id:"gates",label:"Quality Gates",icon:Io},{id:"patterns",label:"Pattern Index",icon:zp},{id:"memory",label:"Memory Bank",icon:o0}];return c.jsxs("div",{className:"studio",children:[c.jsxs("aside",{className:"sidebar",children:[c.jsxs("div",{className:"brand",children:[c.jsx("div",{className:"logo-icon",children:c.jsx(Io,{size:18})}),c.jsx("span",{children:"Rigour Studio"}),c.jsxs("div",{className:"version-pill",children:["v",(x==null?void 0:x.version)||"2.13"]})]}),c.jsx("nav",{children:L.map(R=>c.jsxs("button",{className:`nav-item ${n===R.id?"active":""}`,onClick:()=>r(R.id),children:[c.jsx(R.icon,{size:18}),c.jsx("span",{children:R.label}),n===R.id&&c.jsx(yr.div,{layoutId:"nav-glow",className:"nav-glow"})]},R.id))}),c.jsxs("div",{className:"sidebar-footer",children:[c.jsxs("div",{className:"trust-indicator",children:[c.jsx(Ip,{size:14}),c.jsx("span",{children:"Local Governance"})]}),c.jsx("button",{className:"footer-item",children:c.jsx(Bp,{size:18})}),c.jsx("button",{className:"footer-item",children:c.jsx(d0,{size:18})})]})]}),c.jsxs("main",{className:"main-content",children:[c.jsxs("header",{children:[c.jsx("div",{className:"header-left",children:x&&c.jsxs("div",{className:"project-identity",children:[c.jsx(ou,{size:14,className:"folder-icon"}),c.jsx("span",{className:"project-name",children:x.name}),c.jsx("span",{className:"project-path",children:x.path})]})}),c.jsxs("div",{className:"header-right",children:[c.jsxs("div",{className:"connection-status",children:[c.jsxs("div",{className:"status-indicator",children:[c.jsx("div",{className:"pulse-emitter"}),c.jsx("span",{children:"LIVE"})]}),c.jsx("div",{className:"v-divider"}),c.jsxs("span",{children:["v",(x==null?void 0:x.version)||"0.0.0"]})]}),c.jsx("button",{className:"theme-toggle",onClick:C,children:e==="dark"?c.jsx(p0,{size:18}):c.jsx(f0,{size:18})})]})]}),c.jsxs("div",{className:"view-container",children:[c.jsxs(S0,{mode:"wait",children:[n==="audit"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(sk,{logs:i,onClearLogs:()=>s([]),onSelectLog:R=>{var A,z,B;if(u(R),R!=null&&R._rigour_report||(R==null?void 0:R.type)==="interception_requested"){if(R!=null&&R._rigour_report){const N=(B=(z=(A=R._rigour_report.failures)==null?void 0:A[0])==null?void 0:z.files)==null?void 0:B[0];N?P(N):a(null)}else a(null);f(!0)}else a(null),f(!1)},selectedLog:l})},"audit"),n==="gates"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(ik,{})},"gates"),n==="patterns"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(rk,{})},"patterns"),n==="memory"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(nk,{})},"memory")]}),l&&d&&c.jsx("div",{className:"governance-overlay",children:c.jsxs("div",{className:"governance-window",children:[c.jsxs("div",{className:"governance-header",children:[c.jsxs("div",{className:"title",children:[c.jsx(Io,{size:20}),c.jsxs("span",{children:["Governance Audit: ",l.tool]})]}),c.jsxs("div",{className:"hitl-actions",children:[l.type==="interception_requested"&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{className:"btn-approve",onClick:()=>T("approve"),children:[c.jsx(ni,{size:16})," Approve"]}),c.jsxs("button",{className:"btn-reject",onClick:()=>T("reject"),children:[c.jsx(ri,{size:16})," Reject"]}),c.jsx("div",{className:"divider"})]}),c.jsx("button",{onClick:()=>f(!1),className:"close-btn",children:c.jsx(lu,{size:20})})]})]}),c.jsx("div",{className:"governance-body",children:l.type==="interception_requested"?c.jsxs("div",{className:"interception-view",children:[c.jsxs("div",{className:"interception-card",children:[c.jsx(Ls,{size:48}),c.jsx("h4",{children:"Command Intercepted"}),c.jsx("div",{className:"command-box",children:c.jsx("code",{children:l.command})}),c.jsx("p",{children:"An AI agent is requesting to execute this command. Review the project state below before arbitrating."}),c.jsxs("div",{className:"warning-note",children:[c.jsx(io,{size:16}),c.jsx("span",{children:"Critical actions should be manually verified."})]})]}),c.jsx(jf,{files:h.map(R=>R.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:R=>P(R),activeFile:o==null?void 0:o.filename,violatedFiles:[]})]}):c.jsxs(c.Fragment,{children:[c.jsx(jf,{files:(((K=(M=l._rigour_report)==null?void 0:M.failures)==null?void 0:K.flatMap(R=>R.files||[]))||h).map(R=>R.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:R=>P(R),activeFile:o==null?void 0:o.filename,violatedFiles:(((ke=(me=l._rigour_report)==null?void 0:me.failures)==null?void 0:ke.flatMap(R=>R.files||[]))||[]).map(R=>R.replace(/\s*\(\d+\s*lines\)$/,""))}),c.jsx("div",{className:"diff-view-area",children:o?c.jsx(ek,{filename:o.filename,originalCode:o.original,modifiedCode:o.modified,onClose:()=>a(null),theme:e}):c.jsxs("div",{className:"diff-placeholder",children:[c.jsx(Ya,{size:48}),c.jsx("p",{children:"Select a file to audit the proposed changes"})]})})]})})]})})]})]})]})}na.createRoot(document.getElementById("root")).render(c.jsx(Oe.StrictMode,{children:c.jsx(ak,{})}));
263
+ `},jf=v2(S2)(vy),k2={config:x2},j2=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(i){return n.reduceRight(function(s,o){return o(s)},i)}};function gy(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],gy(e[n],t[n]))}),wf(wf({},e),t)}var C2={type:"cancelation",msg:"operation is manually canceled"};function Jo(e){var t=!1,n=new Promise(function(r,i){e.then(function(s){return t?i(C2):r(s)}),e.catch(i)});return n.cancel=function(){return t=!0},n}var P2=["monaco"],T2=m2.create({config:y2,isInitialized:!1,resolve:null,reject:null,monaco:null}),xy=qS(T2,2),xi=xy[0],fo=xy[1];function E2(e){var t=k2.config(e),n=t.monaco,r=YS(t,P2);fo(function(i){return{config:gy(i.config,r),monaco:n}})}function N2(){var e=xi(function(t){var n=t.monaco,r=t.isInitialized,i=t.resolve;return{monaco:n,isInitialized:r,resolve:i}});if(!e.isInitialized){if(fo({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Jo(ea);if(window.monaco&&window.monaco.editor)return wy(window.monaco),e.resolve(window.monaco),Jo(ea);j2(M2,D2)(L2)}return Jo(ea)}function M2(e){return document.body.appendChild(e)}function A2(e){var t=document.createElement("script");return e&&(t.src=e),t}function D2(e){var t=xi(function(r){var i=r.config,s=r.reject;return{config:i,reject:s}}),n=A2("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function L2(){var e=xi(function(n){var r=n.config,i=n.resolve,s=n.reject;return{config:r,resolve:i,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;wy(r),e.resolve(r)},function(n){e.reject(n)})}function wy(e){xi().monaco||fo({monaco:e})}function R2(){return xi(function(e){var t=e.monaco;return t})}var ea=new Promise(function(e,t){return fo({resolve:e,reject:t})}),Sy={config:E2,init:N2,__getMonacoInstance:R2},V2={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ta=V2,_2={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},O2=_2;function z2({children:e}){return Oe.createElement("div",{style:O2.container},e)}var F2=z2,I2=F2;function B2({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:s,wrapperProps:o}){return Oe.createElement("section",{style:{...ta.wrapper,width:e,height:t},...o},!n&&Oe.createElement(I2,null,r),Oe.createElement("div",{ref:i,style:{...ta.fullWidth,...!n&&ta.hide},className:s}))}var U2=B2,ky=j.memo(U2);function $2(e){j.useEffect(e,[])}var jy=$2;function W2(e,t,n=!0){let r=j.useRef(!0);j.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var _e=W2;function Fr(){}function In(e,t,n,r){return H2(e,r)||K2(e,t,n,r)}function H2(e,t){return e.editor.getModel(Cy(e,t))}function K2(e,t,n,r){return e.editor.createModel(t,n,r?Cy(e,r):void 0)}function Cy(e,t){return e.Uri.parse(t)}function G2({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:s,modifiedModelPath:o,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:u="light",loading:d="Loading...",options:f={},height:h="100%",width:g="100%",className:x,wrapperProps:v={},beforeMount:C=Fr,onMount:m=Fr}){let[p,y]=j.useState(!1),[S,w]=j.useState(!0),k=j.useRef(null),P=j.useRef(null),T=j.useRef(null),L=j.useRef(m),M=j.useRef(C),K=j.useRef(!1);jy(()=>{let A=Sy.init();return A.then(z=>(P.current=z)&&w(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>k.current?R():A.cancel()}),_e(()=>{if(k.current&&P.current){let A=k.current.getOriginalEditor(),z=In(P.current,e||"",r||n||"text",s||"");z!==A.getModel()&&A.setModel(z)}},[s],p),_e(()=>{if(k.current&&P.current){let A=k.current.getModifiedEditor(),z=In(P.current,t||"",i||n||"text",o||"");z!==A.getModel()&&A.setModel(z)}},[o],p),_e(()=>{let A=k.current.getModifiedEditor();A.getOption(P.current.editor.EditorOption.readOnly)?A.setValue(t||""):t!==A.getValue()&&(A.executeEdits("",[{range:A.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),A.pushUndoStop())},[t],p),_e(()=>{var A,z;(z=(A=k.current)==null?void 0:A.getModel())==null||z.original.setValue(e||"")},[e],p),_e(()=>{let{original:A,modified:z}=k.current.getModel();P.current.editor.setModelLanguage(A,r||n||"text"),P.current.editor.setModelLanguage(z,i||n||"text")},[n,r,i],p),_e(()=>{var A;(A=P.current)==null||A.editor.setTheme(u)},[u],p),_e(()=>{var A;(A=k.current)==null||A.updateOptions(f)},[f],p);let me=j.useCallback(()=>{var B;if(!P.current)return;M.current(P.current);let A=In(P.current,e||"",r||n||"text",s||""),z=In(P.current,t||"",i||n||"text",o||"");(B=k.current)==null||B.setModel({original:A,modified:z})},[n,t,i,e,r,s,o]),ke=j.useCallback(()=>{var A;!K.current&&T.current&&(k.current=P.current.editor.createDiffEditor(T.current,{automaticLayout:!0,...f}),me(),(A=P.current)==null||A.editor.setTheme(u),y(!0),K.current=!0)},[f,u,me]);j.useEffect(()=>{p&&L.current(k.current,P.current)},[p]),j.useEffect(()=>{!S&&!p&&ke()},[S,p,ke]);function R(){var z,B,N,_;let A=(z=k.current)==null?void 0:z.getModel();a||((B=A==null?void 0:A.original)==null||B.dispose()),l||((N=A==null?void 0:A.modified)==null||N.dispose()),(_=k.current)==null||_.dispose()}return Oe.createElement(ky,{width:g,height:h,isEditorReady:p,loading:d,_ref:T,className:x,wrapperProps:v})}var Q2=G2,b2=j.memo(Q2);function Y2(e){let t=j.useRef();return j.useEffect(()=>{t.current=e},[e]),t.current}var X2=Y2,Wi=new Map;function q2({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:s,theme:o="light",line:a,loading:l="Loading...",options:u={},overrideServices:d={},saveViewState:f=!0,keepCurrentModel:h=!1,width:g="100%",height:x="100%",className:v,wrapperProps:C={},beforeMount:m=Fr,onMount:p=Fr,onChange:y,onValidate:S=Fr}){let[w,k]=j.useState(!1),[P,T]=j.useState(!0),L=j.useRef(null),M=j.useRef(null),K=j.useRef(null),me=j.useRef(p),ke=j.useRef(m),R=j.useRef(),A=j.useRef(r),z=X2(s),B=j.useRef(!1),N=j.useRef(!1);jy(()=>{let V=Sy.init();return V.then(I=>(L.current=I)&&T(!1)).catch(I=>(I==null?void 0:I.type)!=="cancelation"&&console.error("Monaco initialization: error:",I)),()=>M.current?F():V.cancel()}),_e(()=>{var I,le,Re,ot;let V=In(L.current,e||r||"",t||i||"",s||n||"");V!==((I=M.current)==null?void 0:I.getModel())&&(f&&Wi.set(z,(le=M.current)==null?void 0:le.saveViewState()),(Re=M.current)==null||Re.setModel(V),f&&((ot=M.current)==null||ot.restoreViewState(Wi.get(s))))},[s],w),_e(()=>{var V;(V=M.current)==null||V.updateOptions(u)},[u],w),_e(()=>{!M.current||r===void 0||(M.current.getOption(L.current.editor.EditorOption.readOnly)?M.current.setValue(r):r!==M.current.getValue()&&(N.current=!0,M.current.executeEdits("",[{range:M.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),M.current.pushUndoStop(),N.current=!1))},[r],w),_e(()=>{var I,le;let V=(I=M.current)==null?void 0:I.getModel();V&&i&&((le=L.current)==null||le.editor.setModelLanguage(V,i))},[i],w),_e(()=>{var V;a!==void 0&&((V=M.current)==null||V.revealLine(a))},[a],w),_e(()=>{var V;(V=L.current)==null||V.editor.setTheme(o)},[o],w);let _=j.useCallback(()=>{var V;if(!(!K.current||!L.current)&&!B.current){ke.current(L.current);let I=s||n,le=In(L.current,r||e||"",t||i||"",I||"");M.current=(V=L.current)==null?void 0:V.editor.create(K.current,{model:le,automaticLayout:!0,...u},d),f&&M.current.restoreViewState(Wi.get(I)),L.current.editor.setTheme(o),a!==void 0&&M.current.revealLine(a),k(!0),B.current=!0}},[e,t,n,r,i,s,u,d,f,o,a]);j.useEffect(()=>{w&&me.current(M.current,L.current)},[w]),j.useEffect(()=>{!P&&!w&&_()},[P,w,_]),A.current=r,j.useEffect(()=>{var V,I;w&&y&&((V=R.current)==null||V.dispose(),R.current=(I=M.current)==null?void 0:I.onDidChangeModelContent(le=>{N.current||y(M.current.getValue(),le)}))},[w,y]),j.useEffect(()=>{if(w){let V=L.current.editor.onDidChangeMarkers(I=>{var Re;let le=(Re=M.current.getModel())==null?void 0:Re.uri;if(le&&I.find(ot=>ot.path===le.path)){let ot=L.current.editor.getModelMarkers({resource:le});S==null||S(ot)}});return()=>{V==null||V.dispose()}}return()=>{}},[w,S]);function F(){var V,I;(V=R.current)==null||V.dispose(),h?f&&Wi.set(s,M.current.saveViewState()):(I=M.current.getModel())==null||I.dispose(),M.current.dispose()}return Oe.createElement(ky,{width:g,height:x,isEditorReady:w,loading:l,_ref:K,className:v,wrapperProps:C})}var Z2=q2,J2=j.memo(Z2);const ek=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"},tk=({filename:e,originalCode:t,modifiedCode:n,onClose:r,theme:i="dark"})=>{const s=t!==n,o=ek(e),a=i==="dark"?"vs-dark":"light";return c.jsx("div",{className:"diff-viewer-overlay",children:c.jsxs("div",{className:"diff-viewer-window",children:[c.jsxs("div",{className:"diff-viewer-header",children:[c.jsxs("div",{className:"title",children:[c.jsx(gt,{size:18}),c.jsx("span",{children:e}),s&&c.jsx("span",{className:"diff-badge",children:"Modified"})]}),c.jsx("button",{onClick:r,className:"close-btn",children:c.jsx(uu,{size:20})})]}),c.jsx("div",{className:"diff-editor-container",children:s?c.jsx(b2,{height:"100%",language:o,original:t,modified:n,theme:a,options:{renderSideBySide:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13}}):c.jsx(J2,{height:"100%",language:o,value:n,theme:a,options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on"}})})]})})},nk=(e,t)=>{const n=[];e.forEach(i=>{const s=i.split("/");let o=n,a="";s.forEach((l,u)=>{a=a?`${a}/${l}`:l;const d=u<s.length-1;let f=o.find(h=>h.name===l);f||(f={name:l,path:a,isDirectory:d,children:[],isViolated:t.some(h=>h===a||h.startsWith(`${a}/`))},o.push(f)),o=f.children})});const r=i=>{i.sort((s,o)=>s.isDirectory&&!o.isDirectory?-1:!s.isDirectory&&o.isDirectory?1:s.name.localeCompare(o.name)),i.forEach(s=>r(s.children))};return r(n),n},Py=({node:e,level:t,onSelect:n,activeFile:r})=>{const[i,s]=j.useState(t===0),o=r===e.path,a=l=>{l.stopPropagation(),e.isDirectory?s(!i):n(e.path)};return c.jsxs("div",{className:"tree-node-container",children:[c.jsxs("div",{className:`tree-item ${o?"active":""} ${e.isViolated?"violated":""}`,style:{paddingLeft:`${t*12+8}px`},onClick:a,children:[e.isDirectory?c.jsxs(c.Fragment,{children:[i?c.jsx(i0,{size:14,className:"chevron"}):c.jsx(ro,{size:14,className:"chevron"}),i?c.jsx(c0,{size:14,className:"folder-icon"}):c.jsx(au,{size:14,className:"folder-icon"})]}):c.jsx(gt,{size:14,className:"file-icon"}),c.jsx("span",{className:"node-name",title:e.path,children:e.name}),e.isViolated&&c.jsx(s0,{size:12,className:"violation-icon"})]}),e.isDirectory&&i&&c.jsx("div",{className:"tree-children",children:e.children.map(l=>c.jsx(Py,{node:l,level:t+1,onSelect:n,activeFile:r},l.path))})]})},Cf=({files:e,onSelect:t,activeFile:n,violatedFiles:r=[]})=>{const i=j.useMemo(()=>nk(e,r),[e,r]);return c.jsxs("div",{className:"file-tree",children:[c.jsxs("div",{className:"tree-header",children:[c.jsx(au,{size:14}),c.jsx("span",{children:"Project Explorer"})]}),c.jsx("div",{className:"tree-list",children:i.length===0?c.jsx("div",{className:"empty-tree-state",children:"No files found"}):i.map(s=>c.jsx(Py,{node:s,level:0,onSelect:t,activeFile:n},s.path))})]})},na=e=>typeof e=="string"?e:JSON.stringify(e,null,2),rk=()=>{const[e,t]=j.useState({memories:{}}),[n,r]=j.useState(null),[i,s]=j.useState(""),[o,a]=j.useState(!0),[l,u]=j.useState(!1),d=async()=>{a(!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{a(!1)}};j.useEffect(()=>{d()},[]);const f=Object.entries(e.memories||{}),h=f.filter(([m])=>m.toLowerCase().includes(i.toLowerCase())),g=n?e.memories[n]:null,x=m=>{try{return new Date(m).toLocaleString()}catch{return m}},v=()=>{g&&(navigator.clipboard.writeText(na(g.value)),u(!0),setTimeout(()=>u(!1),2e3))},C=m=>{const p=na(m);if(p.includes("1)")&&p.includes("2)")){const y=p.split(/(\d+\))/);return c.jsx("div",{className:"formatted-content",children:y.map((S,w)=>{if(/^\d+\)$/.test(S))return c.jsx("div",{className:"section-marker",children:S},w);if(S.trim().startsWith("Priority:")){const[k,P]=S.split("Priority:");return c.jsxs(Oe.Fragment,{children:[k.trim()&&c.jsx("div",{className:"section-body",children:k.trim()}),c.jsx("div",{className:"priority-box",children:P.trim()})]},w)}return S.trim()?c.jsx("div",{className:"section-body",children:S.trim()},w):null})})}return c.jsx("pre",{children:p})};return c.jsxs("div",{className:"memory-bank",children:[c.jsxs("div",{className:"memory-header",children:[c.jsxs("div",{className:"memory-title",children:[c.jsx(Jc,{size:24}),c.jsx("h2",{children:"Memory Bank"}),c.jsxs("span",{className:"memory-count",children:[f.length," entries"]})]}),c.jsxs("div",{className:"memory-actions",children:[c.jsxs("div",{className:"search-box",children:[c.jsx(lu,{size:16}),c.jsx("input",{type:"text",placeholder:"Search memories...",value:i,onChange:m=>s(m.target.value)})]}),c.jsx("button",{className:"refresh-btn",onClick:d,disabled:o,children:c.jsx(Ds,{size:16,className:o?"spinning":""})})]})]}),c.jsxs("div",{className:"memory-content",children:[c.jsx("div",{className:"memory-list",children:o?c.jsx("div",{className:"memory-loading",children:"Loading memories..."}):h.length===0?c.jsxs("div",{className:"memory-empty",children:[c.jsx(Fp,{size:48}),c.jsx("h3",{children:"No Memories Stored"}),c.jsxs("p",{children:["Use ",c.jsx("code",{children:"store_memory"})," via MCP to persist agent context."]})]}):h.map(([m,p])=>c.jsxs("div",{className:`memory-item ${n===m?"active":""}`,onClick:()=>r(m),children:[c.jsxs("div",{className:"memory-item-header",children:[c.jsx(td,{size:14}),c.jsx("span",{className:"memory-key",children:m}),c.jsx(ro,{size:14,className:"chevron"})]}),c.jsxs("div",{className:"memory-item-meta",children:[c.jsx(As,{size:12}),c.jsx("span",{children:x(p.timestamp)})]}),c.jsx("div",{className:"memory-item-preview",children:(()=>{const y=na(p.value);return y.slice(0,100)+(y.length>100?"...":"")})()})]},m))}),c.jsx("div",{className:"memory-detail",children:g?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"detail-header",children:[c.jsx(td,{size:18}),c.jsx("h3",{children:n})]}),c.jsxs("div",{className:"detail-meta",children:[c.jsxs("div",{className:"meta-left",children:[c.jsx(As,{size:14}),c.jsxs("span",{children:["Stored: ",x(g.timestamp)]})]}),c.jsxs("button",{className:`copy-btn ${l?"copied":""}`,onClick:v,children:[l?c.jsx(r0,{size:14}):c.jsx(o0,{size:14}),c.jsx("span",{children:l?"Copied":"Copy"})]})]}),c.jsx("div",{className:"detail-content",children:C(g.value)})]}):c.jsxs("div",{className:"detail-placeholder",children:[c.jsx(Jc,{size:48}),c.jsx("p",{children:"Select a memory to view its contents"})]})})]})]})},ik=()=>{var w;const[e,t]=j.useState({patterns:[],stats:{totalPatterns:0,totalFiles:0,byType:{}}}),[n,r]=j.useState(null),[i,s]=j.useState(""),[o,a]=j.useState("all"),[l,u]=j.useState(!0),[d,f]=j.useState(!1),[h,g]=j.useState([]),[x,v]=j.useState(!1),C=async()=>{u(!0);try{const P=await(await fetch("/api/index-stats")).json();t(P)}catch(k){console.error("Failed to fetch pattern index:",k)}finally{u(!1)}};j.useEffect(()=>{C()},[]),j.useEffect(()=>{if(!d||i.length<3){g([]);return}const k=setTimeout(async()=>{v(!0);try{const T=await(await fetch(`/api/index-search?q=${encodeURIComponent(i)}`)).json();g(T)}catch(P){console.error("Semantic search failed:",P)}finally{v(!1)}},500);return()=>clearTimeout(k)},[i,d]);const m=d&&i.length>=3?h:e.patterns||[],p=e.stats||{totalPatterns:0,totalFiles:0,byType:{}},y=d&&i.length>=3?m:m.filter(k=>{const P=k.name.toLowerCase().includes(i.toLowerCase())||k.file.toLowerCase().includes(i.toLowerCase()),T=o==="all"||k.type===o;return P&&T}),S=Object.keys(p.byType||{});return c.jsxs("div",{className:"pattern-index",children:[c.jsxs("div",{className:"pattern-header",children:[c.jsxs("div",{className:"pattern-title",children:[c.jsx(ns,{size:24}),c.jsx("h2",{children:"Pattern Index"}),c.jsxs("span",{className:"pattern-count",children:[p.totalPatterns," patterns"]})]}),c.jsxs("div",{className:"pattern-actions",children:[c.jsxs("div",{className:"search-box",children:[c.jsx(lu,{size:16}),c.jsx("input",{type:"text",placeholder:"Search patterns...",value:i,onChange:k=>s(k.target.value)})]}),c.jsxs("div",{className:"filter-box",children:[c.jsx(Ip,{size:16}),c.jsxs("select",{value:o,onChange:k=>a(k.target.value),children:[c.jsx("option",{value:"all",children:"All Types"}),S.map(k=>c.jsxs("option",{value:k,children:[k," (",p.byType[k],")"]},k))]})]}),c.jsxs("button",{className:`semantic-toggle ${d?"active":""}`,onClick:()=>f(!d),title:"Semantic Search (v2)",children:[c.jsx(ed,{size:16}),c.jsx("span",{children:"AI Search"})]}),c.jsx("button",{className:"refresh-btn",onClick:C,disabled:l,children:c.jsx(Ds,{size:16,className:l?"spinning":""})})]})]}),c.jsxs("div",{className:"pattern-stats",children:[c.jsxs("div",{className:"stat-card",children:[c.jsx(n0,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsx("span",{className:"stat-value",children:p.totalPatterns}),c.jsx("span",{className:"stat-label",children:"Total Patterns"})]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx(gt,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsx("span",{className:"stat-value",children:p.totalFiles}),c.jsx("span",{className:"stat-label",children:"Files Indexed"})]})]}),c.jsxs("div",{className:"stat-card",children:[c.jsx(ed,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsx("span",{className:"stat-value",children:S.length}),c.jsx("span",{className:"stat-label",children:"Pattern Types"})]})]}),p.indexDurationMs&&c.jsxs("div",{className:"stat-card",children:[c.jsx(As,{size:20}),c.jsxs("div",{className:"stat-info",children:[c.jsxs("span",{className:"stat-value",children:[p.indexDurationMs,"ms"]}),c.jsx("span",{className:"stat-label",children:"Index Time"})]})]})]}),c.jsxs("div",{className:"pattern-content",children:[c.jsxs("div",{className:"pattern-list",children:[x&&c.jsxs("div",{className:"searching-indicator",children:[c.jsx(Ds,{size:14,className:"spinning"}),c.jsx("span",{children:"AI is analyzing your query..."})]}),l?c.jsx("div",{className:"pattern-loading",children:"Loading patterns..."}):y.length===0?c.jsxs("div",{className:"pattern-empty",children:[c.jsx(ns,{size:48}),c.jsx("h3",{children:"No Patterns Indexed"}),c.jsxs("p",{children:["Run ",c.jsx("code",{children:"rigour index"})," to scan your codebase."]})]}):y.map(k=>c.jsxs("div",{className:`pattern-item ${(n==null?void 0:n.id)===k.id?"active":""}`,onClick:()=>r(k),children:[k.similarity&&c.jsxs("div",{className:"similarity-badge",children:[(k.similarity*100).toFixed(0),"% Match"]}),c.jsxs("div",{className:"pattern-item-header",children:[c.jsx("span",{className:"pattern-type-badge",children:k.type}),c.jsx("span",{className:"pattern-name",children:k.name}),c.jsx(ro,{size:14,className:"chevron"})]}),c.jsxs("div",{className:"pattern-item-file",children:[c.jsx(gt,{size:12}),c.jsxs("span",{children:[k.file,":",k.line]})]}),k.exported&&c.jsx("span",{className:"exported-badge",children:"exported"})]},k.id))]}),c.jsx("div",{className:"pattern-detail",children:n?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"detail-header",children:[c.jsx("span",{className:"pattern-type-badge large",children:n.type}),c.jsx("h3",{children:n.name})]}),c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Location"}),c.jsxs("code",{children:[n.file,":",n.line,"-",n.endLine]})]}),n.signature&&c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Signature"}),c.jsx("pre",{children:n.signature})]}),n.description&&c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Description"}),c.jsx("p",{children:n.description})]}),((w=n.keywords)==null?void 0:w.length)>0&&c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Keywords"}),c.jsx("div",{className:"keywords-list",children:n.keywords.map((k,P)=>c.jsx("span",{className:"keyword-tag",children:k},P))})]}),c.jsxs("div",{className:"detail-section",children:[c.jsx("h4",{children:"Usage"}),c.jsxs("p",{children:["Imported in ",c.jsx("strong",{children:n.usageCount})," files"]})]})]}):c.jsxs("div",{className:"detail-placeholder",children:[c.jsx(ns,{size:48}),c.jsx("p",{children:"Select a pattern to view details"})]})})]})]})},sk=()=>{const[e,t]=j.useState(null),[n,r]=j.useState(""),[i,s]=j.useState(!0),[o,a]=j.useState("visual"),l=async()=>{s(!0);try{const h=await(await fetch("/api/config")).text();r(h);const g=u(h);t(g)}catch(f){console.error("Failed to fetch config:",f)}finally{s(!1)}},u=f=>{var h;try{const g=f.split(`
264
+ `),x={};let v=null,C=null;for(const m of g){if(m.startsWith("#")||!m.trim())continue;const p=m.search(/\S/),y=m.trim();if(p===0&&y.includes(":")){const[S]=y.split(":");v=S.trim(),C=null;const w=(h=y.split(":")[1])==null?void 0:h.trim();w&&w!=="{}"&&w!=="[]"?x[v]=isNaN(Number(w))?w:Number(w):x[v]={}}else if(p===2&&v&&y.includes(":")){const[S]=y.split(":");C=S.trim();const w=y.split(":").slice(1).join(":").trim();if(w&&w!=="{}"&&w!=="[]"){typeof x[v]!="object"&&(x[v]={});const k=w==="true"?!0:w==="false"?!1:isNaN(Number(w))?w:Number(w);x[v][C]=k}else typeof x[v]!="object"&&(x[v]={}),x[v][C]={}}else if(p===4&&v&&C&&y.includes(":")){const[S]=y.split(":"),w=y.split(":").slice(1).join(":").trim();typeof x[v][C]!="object"&&(x[v][C]={});const k=w==="true"?!0:w==="false"?!1:isNaN(Number(w))?w:Number(w);x[v][C][S.trim()]=k}}return x}catch{return{}}};j.useEffect(()=>{l()},[]);const d=(e==null?void 0:e.gates)||{};return c.jsxs("div",{className:"quality-gates",children:[c.jsxs("div",{className:"gates-header",children:[c.jsxs("div",{className:"gates-title",children:[c.jsx(p0,{size:24}),c.jsx("h2",{children:"Quality Gates"}),(e==null?void 0:e.preset)&&c.jsx("span",{className:"preset-badge",children:e.preset})]}),c.jsxs("div",{className:"gates-actions",children:[c.jsxs("div",{className:"view-toggle",children:[c.jsxs("button",{className:o==="visual"?"active":"",onClick:()=>a("visual"),children:[c.jsx(ns,{size:16})," Visual"]}),c.jsxs("button",{className:o==="raw"?"active":"",onClick:()=>a("raw"),children:[c.jsx(gt,{size:16})," YAML"]})]}),c.jsx("button",{className:"refresh-btn",onClick:l,disabled:i,children:c.jsx(Ds,{size:16,className:i?"spinning":""})})]})]}),i?c.jsx("div",{className:"gates-loading",children:"Loading configuration..."}):o==="raw"?c.jsx("div",{className:"gates-raw",children:c.jsx("pre",{children:n})}):c.jsxs("div",{className:"gates-content",children:[c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(gt,{size:18}),c.jsx("h3",{children:"Code Quality"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Max File Lines",value:d.max_file_lines,icon:c.jsx(gt,{size:16})}),c.jsx(je,{label:"Forbid TODOs",value:d.forbid_todos,icon:d.forbid_todos?c.jsx(ri,{size:16}):c.jsx(ni,{size:16})}),c.jsx(je,{label:"Forbid FIXMEs",value:d.forbid_fixme,icon:d.forbid_fixme?c.jsx(ri,{size:16}):c.jsx(ni,{size:16})})]})]}),d.ast&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(d0,{size:18}),c.jsx("h3",{children:"AST Limits"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Complexity",value:d.ast.complexity}),c.jsx(je,{label:"Max Methods",value:d.ast.max_methods}),c.jsx(je,{label:"Max Params",value:d.ast.max_params}),c.jsx(je,{label:"Max Nesting",value:d.ast.max_nesting}),c.jsx(je,{label:"Max Function Lines",value:d.ast.max_function_lines}),c.jsx(je,{label:"Max Inheritance",value:d.ast.max_inheritance_depth})]})]}),d.safety&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(Bp,{size:18}),c.jsx("h3",{children:"Safety Controls"})]}),c.jsx("div",{className:"gate-grid",children:c.jsx(je,{label:"Max Files/Cycle",value:d.safety.max_files_changed_per_cycle})}),d.safety.protected_paths&&d.safety.protected_paths.length>0&&c.jsxs("div",{className:"protected-paths",children:[c.jsx("h4",{children:"Protected Paths"}),c.jsx("div",{className:"path-list",children:d.safety.protected_paths.map((f,h)=>c.jsx("span",{className:"path-tag",children:f},h))})]})]}),d.required_files&&d.required_files.length>0&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(io,{size:18}),c.jsx("h3",{children:"Required Files"})]}),c.jsx("div",{className:"file-list",children:d.required_files.map((f,h)=>c.jsxs("div",{className:"file-item",children:[c.jsx(gt,{size:14}),c.jsx("span",{children:f})]},h))})]}),d.context&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(v0,{size:18}),c.jsx("h3",{children:"Context Mining"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Enabled",value:d.context.enabled}),c.jsx(je,{label:"Sensitivity",value:d.context.sensitivity}),c.jsx(je,{label:"Mining Depth",value:d.context.mining_depth})]})]}),d.retry_loop_breaker&&c.jsxs("div",{className:"gate-section",children:[c.jsxs("div",{className:"section-header",children:[c.jsx(Up,{size:18}),c.jsx("h3",{children:"Retry Loop Breaker"})]}),c.jsxs("div",{className:"gate-grid",children:[c.jsx(je,{label:"Enabled",value:d.retry_loop_breaker.enabled}),c.jsx(je,{label:"Max Retries",value:d.retry_loop_breaker.max_retries})]})]})]})]})},je=({label:e,value:t,icon:n})=>{const r=typeof t=="boolean"?t?"Yes":"No":t??"N/A";return c.jsxs("div",{className:"gate-card",children:[n&&c.jsx("div",{className:"gate-icon",children:n}),c.jsxs("div",{className:"gate-info",children:[c.jsx("span",{className:"gate-value",children:r}),c.jsx("span",{className:"gate-label",children:e})]})]})},ok=({logs:e,onClearLogs:t,onSelectLog:n,selectedLog:r})=>{const[i,s]=j.useState(""),[o,a]=j.useState("all"),[l,u]=j.useState("all"),d=Oe.useMemo(()=>{const v={};return e.forEach(C=>{const m=C.requestId||C.id;v[m]?v[m]={...v[m],...C}:v[m]={...C}}),Object.values(v).sort((C,m)=>new Date(m.timestamp).getTime()-new Date(C.timestamp).getTime())},[e]),f=Oe.useMemo(()=>{const v=new Set;return d.forEach(C=>C.tool&&v.add(C.tool)),Array.from(v)},[d]),h=Oe.useMemo(()=>d.filter(v=>{var y;const C=!i||((y=v.tool)==null?void 0:y.toLowerCase().includes(i.toLowerCase()))||JSON.stringify(v.arguments||{}).toLowerCase().includes(i.toLowerCase()),m=o==="all"||v.status===o,p=l==="all"||v.tool===l;return C&&m&&p}),[d,i,o,l]),g=Oe.useMemo(()=>({total:d.length,success:d.filter(v=>v.status==="success").length,error:d.filter(v=>v.status==="error").length,pending:d.filter(v=>!v.status||v.status==="pending").length}),[d]),x=()=>{const v=JSON.stringify(h,null,2),C=new Blob([v],{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 c.jsxs("div",{className:"audit-log",children:[c.jsxs("div",{className:"audit-header",children:[c.jsxs("div",{className:"audit-title",children:[c.jsx(Xa,{size:24}),c.jsx("h2",{children:"Audit Trail"}),c.jsxs("span",{className:"log-count",children:[h.length," events"]})]}),c.jsxs("div",{className:"audit-actions",children:[c.jsxs("button",{className:"btn-secondary",onClick:t,children:[c.jsx(y0,{size:16})," Clear"]}),c.jsxs("button",{className:"btn-primary",onClick:x,children:[c.jsx(l0,{size:16})," Export"]})]})]}),c.jsxs("div",{className:"audit-stats",children:[c.jsxs("div",{className:"stat-pill",children:[c.jsx(Xa,{size:14}),c.jsxs("span",{children:[g.total," Total"]})]}),c.jsxs("div",{className:"stat-pill success",children:[c.jsx(ni,{size:14}),c.jsxs("span",{children:[g.success," Success"]})]}),c.jsxs("div",{className:"stat-pill error",children:[c.jsx(ri,{size:14}),c.jsxs("span",{children:[g.error," Failed"]})]}),c.jsxs("div",{className:"stat-pill pending",children:[c.jsx(io,{size:14}),c.jsxs("span",{children:[g.pending," Pending"]})]})]}),c.jsxs("div",{className:"audit-filters",children:[c.jsxs("div",{className:"search-box",children:[c.jsx(lu,{size:16}),c.jsx("input",{type:"text",placeholder:"Search logs...",value:i,onChange:v=>s(v.target.value)})]}),c.jsxs("div",{className:"filter-box",children:[c.jsx(Ip,{size:16}),c.jsxs("select",{value:o,onChange:v=>a(v.target.value),children:[c.jsx("option",{value:"all",children:"All Status"}),c.jsx("option",{value:"success",children:"Success"}),c.jsx("option",{value:"error",children:"Error"}),c.jsx("option",{value:"pending",children:"Pending"})]})]}),c.jsxs("div",{className:"filter-box",children:[c.jsx(Ls,{size:16}),c.jsxs("select",{value:l,onChange:v=>u(v.target.value),children:[c.jsx("option",{value:"all",children:"All Tools"}),f.map(v=>c.jsx("option",{value:v,children:v},v))]})]})]}),c.jsxs("div",{className:"audit-content",children:[c.jsx("div",{className:"log-list",children:h.length===0?c.jsxs("div",{className:"empty-state",children:[c.jsx(Ls,{size:48}),c.jsx("h3",{children:"No Interactions Detected"}),c.jsx("p",{children:"Rigour tool calls will appear here in real-time."})]}):h.map(v=>c.jsxs("div",{className:`log-entry ${(r==null?void 0:r.id)===v.id?"active":""} ${v._rigour_report?"has-report":""}`,onClick:()=>n((r==null?void 0:r.id)===v.id?null:v),children:[c.jsxs("div",{className:"log-header",children:[c.jsx("span",{className:`status-dot ${v.status||"pending"}`}),c.jsx("span",{className:"log-tool",children:v.tool}),c.jsxs("span",{className:"log-time",children:[c.jsx(As,{size:12}),new Date(v.timestamp).toLocaleTimeString()]}),v._rigour_report&&c.jsxs("span",{className:"report-badge",children:[c.jsx(u0,{size:12})," Report"]}),v.arbitrated&&c.jsx("span",{className:`arbitrated-badge ${v.decision}`,children:v.decision==="approve"?"Approved":"Rejected"}),c.jsx(ro,{size:14,className:"chevron"})]}),v.requestId&&c.jsxs("div",{className:"log-request-id",children:["ID: ",v.requestId.slice(0,12),"..."]})]},v.id))}),c.jsx("div",{className:"log-detail",children:r?c.jsx(ak,{log:r,onClose:()=>n(null)}):c.jsxs("div",{className:"detail-placeholder",children:[c.jsx(gt,{size:48}),c.jsx("p",{children:"Select a log entry to view details"})]})})]})]})},ak=({log:e,onClose:t})=>{const[n,r]=j.useState(e._rigour_report?"report":"args");return c.jsxs("div",{className:"log-detail-view",children:[c.jsxs("div",{className:"detail-header",children:[c.jsxs("div",{className:"detail-info",children:[c.jsxs("span",{className:`status-badge ${e.status||"pending"}`,children:[e.status==="success"?c.jsx(ni,{size:14}):e.status==="error"?c.jsx(ri,{size:14}):c.jsx(io,{size:14}),e.status||"pending"]}),c.jsx("h3",{children:e.tool})]}),c.jsx("button",{className:"close-btn",onClick:t,children:c.jsx(uu,{size:18})})]}),c.jsxs("div",{className:"detail-meta",children:[c.jsxs("div",{className:"meta-item",children:[c.jsx("span",{className:"meta-label",children:"Timestamp"}),c.jsx("span",{className:"meta-value",children:new Date(e.timestamp).toLocaleString()})]}),e.requestId&&c.jsxs("div",{className:"meta-item",children:[c.jsx("span",{className:"meta-label",children:"Request ID"}),c.jsx("span",{className:"meta-value mono",children:e.requestId})]})]}),e._rigour_report&&c.jsxs("div",{className:"detail-tabs",children:[c.jsx("button",{className:n==="report"?"active":"",onClick:()=>r("report"),children:"Verification Report"}),c.jsx("button",{className:n==="args"?"active":"",onClick:()=>r("args"),children:"Technical Arguments"})]}),c.jsx("div",{className:"detail-body",children:n==="args"?c.jsxs(c.Fragment,{children:[e.arguments&&c.jsxs("div",{className:"code-section",children:[c.jsx("h4",{children:"Arguments"}),c.jsx("pre",{children:JSON.stringify(e.arguments,null,2)})]}),e.error&&c.jsxs("div",{className:"error-section",children:[c.jsx("h4",{children:"Error"}),c.jsx("div",{className:"error-message",children:e.error})]})]}):c.jsxs("div",{className:"code-section",children:[c.jsx("h4",{children:"Rigour Report"}),c.jsx("pre",{children:JSON.stringify(e._rigour_report,null,2)})]})})]})};function lk(){var M,K,me,ke;const[e,t]=j.useState(()=>localStorage.getItem("rigour-theme")||"dark"),[n,r]=j.useState("memory"),[i,s]=j.useState([]),[o,a]=j.useState(null),[l,u]=j.useState(null),[d,f]=j.useState(!1),[h,g]=j.useState([]),[x,v]=j.useState(null);Oe.useEffect(()=>{const R=new EventSource("/api/events");return R.onmessage=A=>{try{const z=JSON.parse(A.data);s(B=>[z,...B].slice(0,100))}catch(z){console.error("Failed to parse event",z)}},fetch("/api/tree").then(A=>A.json()).then(g).catch(A=>console.error("Failed to fetch tree",A)),fetch("/api/info").then(A=>A.json()).then(v).catch(A=>console.error("Failed to fetch info",A)),()=>R.close()},[]),j.useEffect(()=>{document.documentElement.setAttribute("data-theme",e),localStorage.setItem("rigour-theme",e)},[e]);const C=()=>t(R=>R==="dark"?"light":"dark"),[m,p]=j.useState(""),[y,S]=j.useState({}),[w,k]=j.useState({});j.useEffect(()=>{(async()=>{try{const[A,z,B]=await Promise.all([fetch("/api/config").then(N=>N.ok?N.text():""),fetch("/api/memory").then(N=>N.json()),fetch("/api/index-stats").then(N=>N.json())]);p(A),S(z),k(B)}catch(A){console.error("Failed to fetch meta data",A)}})()},[]);const P=async R=>{try{const A=R.replace(/\s*\(\d+\s*lines\)$/,""),B=await(await fetch(`/api/file?path=${encodeURIComponent(A)}`)).text();a({filename:A,original:B,modified:B})}catch(A){console.error("Failed to fetch file content",A)}},T=async R=>{if(l)try{await fetch("/api/arbitrate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({requestId:l.requestId||l.id,decision:R,timestamp:new Date().toISOString()})}),s(A=>A.map(z=>(z.requestId||z.id)===(l.requestId||l.id)?{...z,status:R==="approve"?"success":"error",arbitrated:!0,decision:R}:z)),f(!1),u(null)}catch(A){console.error("Arbitration failed",A)}},L=[{id:"audit",label:"Audit Log",icon:Ls},{id:"gates",label:"Quality Gates",icon:Io},{id:"patterns",label:"Pattern Index",icon:Fp},{id:"memory",label:"Memory Bank",icon:a0}];return c.jsxs("div",{className:"studio",children:[c.jsxs("aside",{className:"sidebar",children:[c.jsxs("div",{className:"brand",children:[c.jsx("div",{className:"logo-icon",children:c.jsx(Io,{size:18})}),c.jsx("span",{children:"Rigour Studio"}),c.jsxs("div",{className:"version-pill",children:["v",(x==null?void 0:x.version)||"2.13"]})]}),c.jsx("nav",{children:L.map(R=>c.jsxs("button",{className:`nav-item ${n===R.id?"active":""}`,onClick:()=>r(R.id),children:[c.jsx(R.icon,{size:18}),c.jsx("span",{children:R.label}),n===R.id&&c.jsx(yr.div,{layoutId:"nav-glow",className:"nav-glow"})]},R.id))}),c.jsxs("div",{className:"sidebar-footer",children:[c.jsxs("div",{className:"trust-indicator",children:[c.jsx(Bp,{size:14}),c.jsx("span",{children:"Local Governance"})]}),c.jsx("button",{className:"footer-item",children:c.jsx(Up,{size:18})}),c.jsx("button",{className:"footer-item",children:c.jsx(f0,{size:18})})]})]}),c.jsxs("main",{className:"main-content",children:[c.jsxs("header",{children:[c.jsx("div",{className:"header-left",children:x&&c.jsxs("div",{className:"project-identity",children:[c.jsx(au,{size:14,className:"folder-icon"}),c.jsx("span",{className:"project-name",children:x.name}),c.jsx("span",{className:"project-path",children:x.path})]})}),c.jsxs("div",{className:"header-right",children:[c.jsxs("div",{className:"connection-status",children:[c.jsxs("div",{className:"status-indicator",children:[c.jsx("div",{className:"pulse-emitter"}),c.jsx("span",{children:"LIVE"})]}),c.jsx("div",{className:"v-divider"}),c.jsxs("span",{children:["v",(x==null?void 0:x.version)||"0.0.0"]})]}),c.jsx("button",{className:"theme-toggle",onClick:C,children:e==="dark"?c.jsx(m0,{size:18}):c.jsx(h0,{size:18})})]})]}),c.jsxs("div",{className:"view-container",children:[c.jsxs(k0,{mode:"wait",children:[n==="audit"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(ok,{logs:i,onClearLogs:()=>s([]),onSelectLog:R=>{var A,z,B;if(u(R),R!=null&&R._rigour_report||(R==null?void 0:R.type)==="interception_requested"){if(R!=null&&R._rigour_report){const N=(B=(z=(A=R._rigour_report.failures)==null?void 0:A[0])==null?void 0:z.files)==null?void 0:B[0];N?P(N):a(null)}else a(null);f(!0)}else a(null),f(!1)},selectedLog:l})},"audit"),n==="gates"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(sk,{})},"gates"),n==="patterns"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(ik,{})},"patterns"),n==="memory"&&c.jsx(yr.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"full-view",children:c.jsx(rk,{})},"memory")]}),l&&d&&c.jsx("div",{className:"governance-overlay",children:c.jsxs("div",{className:"governance-window",children:[c.jsxs("div",{className:"governance-header",children:[c.jsxs("div",{className:"title",children:[c.jsx(Io,{size:20}),c.jsxs("span",{children:["Governance Audit: ",l.tool]})]}),c.jsxs("div",{className:"hitl-actions",children:[l.type==="interception_requested"&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{className:"btn-approve",onClick:()=>T("approve"),children:[c.jsx(ni,{size:16})," Approve"]}),c.jsxs("button",{className:"btn-reject",onClick:()=>T("reject"),children:[c.jsx(ri,{size:16})," Reject"]}),c.jsx("div",{className:"divider"})]}),c.jsx("button",{onClick:()=>f(!1),className:"close-btn",children:c.jsx(uu,{size:20})})]})]}),c.jsx("div",{className:"governance-body",children:l.type==="interception_requested"?c.jsxs("div",{className:"interception-view",children:[c.jsxs("div",{className:"interception-card",children:[c.jsx(Ls,{size:48}),c.jsx("h4",{children:"Command Intercepted"}),c.jsx("div",{className:"command-box",children:c.jsx("code",{children:l.command})}),c.jsx("p",{children:"An AI agent is requesting to execute this command. Review the project state below before arbitrating."}),c.jsxs("div",{className:"warning-note",children:[c.jsx(io,{size:16}),c.jsx("span",{children:"Critical actions should be manually verified."})]})]}),c.jsx(Cf,{files:h.map(R=>R.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:R=>P(R),activeFile:o==null?void 0:o.filename,violatedFiles:[]})]}):c.jsxs(c.Fragment,{children:[c.jsx(Cf,{files:(((K=(M=l._rigour_report)==null?void 0:M.failures)==null?void 0:K.flatMap(R=>R.files||[]))||h).map(R=>R.replace(/\s*\(\d+\s*lines\)$/,"")),onSelect:R=>P(R),activeFile:o==null?void 0:o.filename,violatedFiles:(((ke=(me=l._rigour_report)==null?void 0:me.failures)==null?void 0:ke.flatMap(R=>R.files||[]))||[]).map(R=>R.replace(/\s*\(\d+\s*lines\)$/,""))}),c.jsx("div",{className:"diff-view-area",children:o?c.jsx(tk,{filename:o.filename,originalCode:o.original,modifiedCode:o.modified,onClose:()=>a(null),theme:e}):c.jsxs("div",{className:"diff-placeholder",children:[c.jsx(Xa,{size:48}),c.jsx("p",{children:"Select a file to audit the proposed changes"})]})})]})})]})})]})]})]})}ra.createRoot(document.getElementById("root")).render(c.jsx(Oe.StrictMode,{children:c.jsx(lk,{})}));