axiodb 2.31.100 → 2.31.102

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
- var Jb=Object.defineProperty,Wb=Object.defineProperties;var Ib=Object.getOwnPropertyDescriptors;var _r=Object.getOwnPropertySymbols;var wp=Object.prototype.hasOwnProperty,jp=Object.prototype.propertyIsEnumerable;var Os=(n,a)=>(a=Symbol[n])?a:Symbol.for("Symbol."+n),e2=n=>{throw TypeError(n)},Uc=Math.pow,Sp=(n,a,i)=>a in n?Jb(n,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[a]=i,X=(n,a)=>{for(var i in a||(a={}))wp.call(a,i)&&Sp(n,i,a[i]);if(_r)for(var i of _r(a))jp.call(a,i)&&Sp(n,i,a[i]);return n},le=(n,a)=>Wb(n,Ib(a));var ot=(n,a)=>{var i={};for(var r in n)wp.call(n,r)&&a.indexOf(r)<0&&(i[r]=n[r]);if(n!=null&&_r)for(var r of _r(n))a.indexOf(r)<0&&jp.call(n,r)&&(i[r]=n[r]);return i};var t2=(n,a)=>()=>(a||n((a={exports:{}}).exports,a),a.exports);var Ae=(n,a,i)=>new Promise((r,o)=>{var c=g=>{try{p(i.next(g))}catch(m){o(m)}},d=g=>{try{p(i.throw(g))}catch(m){o(m)}},p=g=>g.done?r(g.value):Promise.resolve(g.value).then(c,d);p((i=i.apply(n,a)).next())}),La=function(n,a){this[0]=n,this[1]=a},Vc=(n,a,i)=>{var r=(d,p,g,m)=>{try{var y=i[d](p),v=(p=y.value)instanceof La,b=y.done;Promise.resolve(v?p[0]:p).then(j=>v?r(d==="return"?d:"next",p[1]?{done:j.done,value:j.value}:j,g,m):g({value:j,done:b})).catch(j=>r("throw",j,g,m))}catch(j){m(j)}},o=d=>c[d]=p=>new Promise((g,m)=>r(d,p,g,m)),c={};return i=i.apply(n,a),c[Os("asyncIterator")]=()=>c,o("next"),o("throw"),o("return"),c},_c=n=>{var a=n[Os("asyncIterator")],i=!1,r,o={};return a==null?(a=n[Os("iterator")](),r=c=>o[c]=d=>a[c](d)):(a=a.call(n),r=c=>o[c]=d=>{if(i){if(i=!1,c==="throw")throw d;return d}return i=!0,{done:!1,value:new La(new Promise(p=>{var g=a[c](d);g instanceof Object||e2("Object expected"),p(g)}),1)}}),o[Os("iterator")]=()=>o,r("next"),"throw"in a?r("throw"):o.throw=c=>{throw c},"return"in a&&r("return"),o},Np=(n,a,i)=>(a=n[Os("asyncIterator")])?a.call(n):(n=n[Os("iterator")](),a={},i=(r,o)=>(o=n[r])&&(a[r]=c=>new Promise((d,p,g)=>(c=o.call(n,c),g=c.done,Promise.resolve(c.value).then(m=>d({value:m,done:g}),p)))),i("next"),i("return"),a);var z3=t2(Ge=>{(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function n2(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var kc={exports:{}},Zi={};/**
1
+ var Wb=Object.defineProperty,Ib=Object.defineProperties;var e2=Object.getOwnPropertyDescriptors;var _r=Object.getOwnPropertySymbols;var bp=Object.prototype.hasOwnProperty,Sp=Object.prototype.propertyIsEnumerable;var Os=(n,a)=>(a=Symbol[n])?a:Symbol.for("Symbol."+n),t2=n=>{throw TypeError(n)},Bc=Math.pow,vp=(n,a,i)=>a in n?Wb(n,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[a]=i,X=(n,a)=>{for(var i in a||(a={}))bp.call(a,i)&&vp(n,i,a[i]);if(_r)for(var i of _r(a))Sp.call(a,i)&&vp(n,i,a[i]);return n},le=(n,a)=>Ib(n,e2(a));var ot=(n,a)=>{var i={};for(var r in n)bp.call(n,r)&&a.indexOf(r)<0&&(i[r]=n[r]);if(n!=null&&_r)for(var r of _r(n))a.indexOf(r)<0&&Sp.call(n,r)&&(i[r]=n[r]);return i};var n2=(n,a)=>()=>(a||n((a={exports:{}}).exports,a),a.exports);var Re=(n,a,i)=>new Promise((r,o)=>{var c=g=>{try{p(i.next(g))}catch(m){o(m)}},d=g=>{try{p(i.throw(g))}catch(m){o(m)}},p=g=>g.done?r(g.value):Promise.resolve(g.value).then(c,d);p((i=i.apply(n,a)).next())}),La=function(n,a){this[0]=n,this[1]=a},Uc=(n,a,i)=>{var r=(d,p,g,m)=>{try{var y=i[d](p),v=(p=y.value)instanceof La,b=y.done;Promise.resolve(v?p[0]:p).then(j=>v?r(d==="return"?d:"next",p[1]?{done:j.done,value:j.value}:j,g,m):g({value:j,done:b})).catch(j=>r("throw",j,g,m))}catch(j){m(j)}},o=d=>c[d]=p=>new Promise((g,m)=>r(d,p,g,m)),c={};return i=i.apply(n,a),c[Os("asyncIterator")]=()=>c,o("next"),o("throw"),o("return"),c},Vc=n=>{var a=n[Os("asyncIterator")],i=!1,r,o={};return a==null?(a=n[Os("iterator")](),r=c=>o[c]=d=>a[c](d)):(a=a.call(n),r=c=>o[c]=d=>{if(i){if(i=!1,c==="throw")throw d;return d}return i=!0,{done:!1,value:new La(new Promise(p=>{var g=a[c](d);g instanceof Object||t2("Object expected"),p(g)}),1)}}),o[Os("iterator")]=()=>o,r("next"),"throw"in a?r("throw"):o.throw=c=>{throw c},"return"in a&&r("return"),o},wp=(n,a,i)=>(a=n[Os("asyncIterator")])?a.call(n):(n=n[Os("iterator")](),a={},i=(r,o)=>(o=n[r])&&(a[r]=c=>new Promise((d,p,g)=>(c=o.call(n,c),g=c.done,Promise.resolve(c.value).then(m=>d({value:m,done:g}),p)))),i("next"),i("return"),a);var O3=n2(Ge=>{(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function a2(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _c={exports:{}},Qi={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ var Jb=Object.defineProperty,Wb=Object.defineProperties;var Ib=Object.getOwnProp
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 Tp;function a2(){if(Tp)return Zi;Tp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var p in o)p!=="key"&&(c[p]=o[p])}else c=o;return o=c.ref,{$$typeof:n,type:r,key:d,ref:o!==void 0?o:null,props:c}}return Zi.Fragment=a,Zi.jsx=i,Zi.jsxs=i,Zi}var Ep;function s2(){return Ep||(Ep=1,kc.exports=a2()),kc.exports}var f=s2(),Hc={exports:{}},de={};/**
9
+ */var jp;function s2(){if(jp)return Qi;jp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var p in o)p!=="key"&&(c[p]=o[p])}else c=o;return o=c.ref,{$$typeof:n,type:r,key:d,ref:o!==void 0?o:null,props:c}}return Qi.Fragment=a,Qi.jsx=i,Qi.jsxs=i,Qi}var Np;function i2(){return Np||(Np=1,_c.exports=s2()),_c.exports}var f=i2(),kc={exports:{}},me={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ var Jb=Object.defineProperty,Wb=Object.defineProperties;var Ib=Object.getOwnProp
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 Ap;function i2(){if(Ap)return de;Ap=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function b(C){return C===null||typeof C!="object"?null:(C=v&&C[v]||C["@@iterator"],typeof C=="function"?C:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,A={};function E(C,Y,W){this.props=C,this.context=Y,this.refs=A,this.updater=W||j}E.prototype.isReactComponent={},E.prototype.setState=function(C,Y){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,Y,"setState")},E.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function O(){}O.prototype=E.prototype;function L(C,Y,W){this.props=C,this.context=Y,this.refs=A,this.updater=W||j}var M=L.prototype=new O;M.constructor=L,N(M,E.prototype),M.isPureReactComponent=!0;var K=Array.isArray,U={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function Q(C,Y,W,$,ne,we){return W=we.ref,{$$typeof:n,type:C,key:Y,ref:W!==void 0?W:null,props:we}}function J(C,Y){return Q(C.type,Y,void 0,void 0,void 0,C.props)}function ce(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function Se(C){var Y={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(W){return Y[W]})}var ge=/\/+/g;function he(C,Y){return typeof C=="object"&&C!==null&&C.key!=null?Se(""+C.key):Y.toString(36)}function ke(){}function We(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(ke,ke):(C.status="pending",C.then(function(Y){C.status==="pending"&&(C.status="fulfilled",C.value=Y)},function(Y){C.status==="pending"&&(C.status="rejected",C.reason=Y)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function Le(C,Y,W,$,ne){var we=typeof C;(we==="undefined"||we==="boolean")&&(C=null);var ue=!1;if(C===null)ue=!0;else switch(we){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(C.$$typeof){case n:case a:ue=!0;break;case y:return ue=C._init,Le(ue(C._payload),Y,W,$,ne)}}if(ue)return ne=ne(C),ue=$===""?"."+he(C,0):$,K(ne)?(W="",ue!=null&&(W=ue.replace(ge,"$&/")+"/"),Le(ne,Y,W,"",function(It){return It})):ne!=null&&(ce(ne)&&(ne=J(ne,W+(ne.key==null||C&&C.key===ne.key?"":(""+ne.key).replace(ge,"$&/")+"/")+ue)),Y.push(ne)),1;ue=0;var xt=$===""?".":$+":";if(K(C))for(var ze=0;ze<C.length;ze++)$=C[ze],we=xt+he($,ze),ue+=Le($,Y,W,we,ne);else if(ze=b(C),typeof ze=="function")for(C=ze.call(C),ze=0;!($=C.next()).done;)$=$.value,we=xt+he($,ze++),ue+=Le($,Y,W,we,ne);else if(we==="object"){if(typeof C.then=="function")return Le(We(C),Y,W,$,ne);throw Y=String(C),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return ue}function H(C,Y,W){if(C==null)return C;var $=[],ne=0;return Le(C,$,"","",function(we){return Y.call(W,we,ne++)}),$}function F(C){if(C._status===-1){var Y=C._result;Y=Y(),Y.then(function(W){(C._status===0||C._status===-1)&&(C._status=1,C._result=W)},function(W){(C._status===0||C._status===-1)&&(C._status=2,C._result=W)}),C._status===-1&&(C._status=0,C._result=Y)}if(C._status===1)return C._result.default;throw C._result}var ee=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function xe(){}return de.Children={map:H,forEach:function(C,Y,W){H(C,function(){Y.apply(this,arguments)},W)},count:function(C){var Y=0;return H(C,function(){Y++}),Y},toArray:function(C){return H(C,function(Y){return Y})||[]},only:function(C){if(!ce(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},de.Component=E,de.Fragment=i,de.Profiler=o,de.PureComponent=L,de.StrictMode=r,de.Suspense=g,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,de.__COMPILER_RUNTIME={__proto__:null,c:function(C){return U.H.useMemoCache(C)}},de.cache=function(C){return function(){return C.apply(null,arguments)}},de.cloneElement=function(C,Y,W){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var $=N({},C.props),ne=C.key,we=void 0;if(Y!=null)for(ue in Y.ref!==void 0&&(we=void 0),Y.key!==void 0&&(ne=""+Y.key),Y)!Z.call(Y,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Y.ref===void 0||($[ue]=Y[ue]);var ue=arguments.length-2;if(ue===1)$.children=W;else if(1<ue){for(var xt=Array(ue),ze=0;ze<ue;ze++)xt[ze]=arguments[ze+2];$.children=xt}return Q(C.type,ne,void 0,void 0,we,$)},de.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},de.createElement=function(C,Y,W){var $,ne={},we=null;if(Y!=null)for($ in Y.key!==void 0&&(we=""+Y.key),Y)Z.call(Y,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ne[$]=Y[$]);var ue=arguments.length-2;if(ue===1)ne.children=W;else if(1<ue){for(var xt=Array(ue),ze=0;ze<ue;ze++)xt[ze]=arguments[ze+2];ne.children=xt}if(C&&C.defaultProps)for($ in ue=C.defaultProps,ue)ne[$]===void 0&&(ne[$]=ue[$]);return Q(C,we,void 0,void 0,null,ne)},de.createRef=function(){return{current:null}},de.forwardRef=function(C){return{$$typeof:p,render:C}},de.isValidElement=ce,de.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:F}},de.memo=function(C,Y){return{$$typeof:m,type:C,compare:Y===void 0?null:Y}},de.startTransition=function(C){var Y=U.T,W={};U.T=W;try{var $=C(),ne=U.S;ne!==null&&ne(W,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(xe,ee)}catch(we){ee(we)}finally{U.T=Y}},de.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},de.use=function(C){return U.H.use(C)},de.useActionState=function(C,Y,W){return U.H.useActionState(C,Y,W)},de.useCallback=function(C,Y){return U.H.useCallback(C,Y)},de.useContext=function(C){return U.H.useContext(C)},de.useDebugValue=function(){},de.useDeferredValue=function(C,Y){return U.H.useDeferredValue(C,Y)},de.useEffect=function(C,Y,W){var $=U.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return $.useEffect(C,Y)},de.useId=function(){return U.H.useId()},de.useImperativeHandle=function(C,Y,W){return U.H.useImperativeHandle(C,Y,W)},de.useInsertionEffect=function(C,Y){return U.H.useInsertionEffect(C,Y)},de.useLayoutEffect=function(C,Y){return U.H.useLayoutEffect(C,Y)},de.useMemo=function(C,Y){return U.H.useMemo(C,Y)},de.useOptimistic=function(C,Y){return U.H.useOptimistic(C,Y)},de.useReducer=function(C,Y,W){return U.H.useReducer(C,Y,W)},de.useRef=function(C){return U.H.useRef(C)},de.useState=function(C){return U.H.useState(C)},de.useSyncExternalStore=function(C,Y,W){return U.H.useSyncExternalStore(C,Y,W)},de.useTransition=function(){return U.H.useTransition()},de.version="19.1.1",de}var Cp;function Yf(){return Cp||(Cp=1,Hc.exports=i2()),Hc.exports}var w=Yf();const kr=n2(w);var qc={exports:{}},Qi={},Pc={exports:{}},Yc={};/**
17
+ */var Tp;function l2(){if(Tp)return me;Tp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function b(C){return C===null||typeof C!="object"?null:(C=v&&C[v]||C["@@iterator"],typeof C=="function"?C:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,A={};function T(C,P,J){this.props=C,this.context=P,this.refs=A,this.updater=J||j}T.prototype.isReactComponent={},T.prototype.setState=function(C,P){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,P,"setState")},T.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function O(){}O.prototype=T.prototype;function z(C,P,J){this.props=C,this.context=P,this.refs=A,this.updater=J||j}var M=z.prototype=new O;M.constructor=z,N(M,T.prototype),M.isPureReactComponent=!0;var K=Array.isArray,U={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function Q(C,P,J,$,ne,je){return J=je.ref,{$$typeof:n,type:C,key:P,ref:J!==void 0?J:null,props:je}}function W(C,P){return Q(C.type,P,void 0,void 0,void 0,C.props)}function fe(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function xe(C){var P={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(J){return P[J]})}var de=/\/+/g;function ue(C,P){return typeof C=="object"&&C!==null&&C.key!=null?xe(""+C.key):P.toString(36)}function Ae(){}function He(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Ae,Ae):(C.status="pending",C.then(function(P){C.status==="pending"&&(C.status="fulfilled",C.value=P)},function(P){C.status==="pending"&&(C.status="rejected",C.reason=P)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function ve(C,P,J,$,ne){var je=typeof C;(je==="undefined"||je==="boolean")&&(C=null);var ce=!1;if(C===null)ce=!0;else switch(je){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(C.$$typeof){case n:case a:ce=!0;break;case y:return ce=C._init,ve(ce(C._payload),P,J,$,ne)}}if(ce)return ne=ne(C),ce=$===""?"."+ue(C,0):$,K(ne)?(J="",ce!=null&&(J=ce.replace(de,"$&/")+"/"),ve(ne,P,J,"",function(It){return It})):ne!=null&&(fe(ne)&&(ne=W(ne,J+(ne.key==null||C&&C.key===ne.key?"":(""+ne.key).replace(de,"$&/")+"/")+ce)),P.push(ne)),1;ce=0;var xt=$===""?".":$+":";if(K(C))for(var Be=0;Be<C.length;Be++)$=C[Be],je=xt+ue($,Be),ce+=ve($,P,J,je,ne);else if(Be=b(C),typeof Be=="function")for(C=Be.call(C),Be=0;!($=C.next()).done;)$=$.value,je=xt+ue($,Be++),ce+=ve($,P,J,je,ne);else if(je==="object"){if(typeof C.then=="function")return ve(He(C),P,J,$,ne);throw P=String(C),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ce}function H(C,P,J){if(C==null)return C;var $=[],ne=0;return ve(C,$,"","",function(je){return P.call(J,je,ne++)}),$}function F(C){if(C._status===-1){var P=C._result;P=P(),P.then(function(J){(C._status===0||C._status===-1)&&(C._status=1,C._result=J)},function(J){(C._status===0||C._status===-1)&&(C._status=2,C._result=J)}),C._status===-1&&(C._status=0,C._result=P)}if(C._status===1)return C._result.default;throw C._result}var ee=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function ge(){}return me.Children={map:H,forEach:function(C,P,J){H(C,function(){P.apply(this,arguments)},J)},count:function(C){var P=0;return H(C,function(){P++}),P},toArray:function(C){return H(C,function(P){return P})||[]},only:function(C){if(!fe(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},me.Component=T,me.Fragment=i,me.Profiler=o,me.PureComponent=z,me.StrictMode=r,me.Suspense=g,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,me.__COMPILER_RUNTIME={__proto__:null,c:function(C){return U.H.useMemoCache(C)}},me.cache=function(C){return function(){return C.apply(null,arguments)}},me.cloneElement=function(C,P,J){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var $=N({},C.props),ne=C.key,je=void 0;if(P!=null)for(ce in P.ref!==void 0&&(je=void 0),P.key!==void 0&&(ne=""+P.key),P)!Z.call(P,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&P.ref===void 0||($[ce]=P[ce]);var ce=arguments.length-2;if(ce===1)$.children=J;else if(1<ce){for(var xt=Array(ce),Be=0;Be<ce;Be++)xt[Be]=arguments[Be+2];$.children=xt}return Q(C.type,ne,void 0,void 0,je,$)},me.createContext=function(C){return C={$$typeof:d,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},me.createElement=function(C,P,J){var $,ne={},je=null;if(P!=null)for($ in P.key!==void 0&&(je=""+P.key),P)Z.call(P,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ne[$]=P[$]);var ce=arguments.length-2;if(ce===1)ne.children=J;else if(1<ce){for(var xt=Array(ce),Be=0;Be<ce;Be++)xt[Be]=arguments[Be+2];ne.children=xt}if(C&&C.defaultProps)for($ in ce=C.defaultProps,ce)ne[$]===void 0&&(ne[$]=ce[$]);return Q(C,je,void 0,void 0,null,ne)},me.createRef=function(){return{current:null}},me.forwardRef=function(C){return{$$typeof:p,render:C}},me.isValidElement=fe,me.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:F}},me.memo=function(C,P){return{$$typeof:m,type:C,compare:P===void 0?null:P}},me.startTransition=function(C){var P=U.T,J={};U.T=J;try{var $=C(),ne=U.S;ne!==null&&ne(J,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ge,ee)}catch(je){ee(je)}finally{U.T=P}},me.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},me.use=function(C){return U.H.use(C)},me.useActionState=function(C,P,J){return U.H.useActionState(C,P,J)},me.useCallback=function(C,P){return U.H.useCallback(C,P)},me.useContext=function(C){return U.H.useContext(C)},me.useDebugValue=function(){},me.useDeferredValue=function(C,P){return U.H.useDeferredValue(C,P)},me.useEffect=function(C,P,J){var $=U.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return $.useEffect(C,P)},me.useId=function(){return U.H.useId()},me.useImperativeHandle=function(C,P,J){return U.H.useImperativeHandle(C,P,J)},me.useInsertionEffect=function(C,P){return U.H.useInsertionEffect(C,P)},me.useLayoutEffect=function(C,P){return U.H.useLayoutEffect(C,P)},me.useMemo=function(C,P){return U.H.useMemo(C,P)},me.useOptimistic=function(C,P){return U.H.useOptimistic(C,P)},me.useReducer=function(C,P,J){return U.H.useReducer(C,P,J)},me.useRef=function(C){return U.H.useRef(C)},me.useState=function(C){return U.H.useState(C)},me.useSyncExternalStore=function(C,P,J){return U.H.useSyncExternalStore(C,P,J)},me.useTransition=function(){return U.H.useTransition()},me.version="19.1.1",me}var Ep;function qf(){return Ep||(Ep=1,kc.exports=l2()),kc.exports}var w=qf();const kr=a2(w);var Hc={exports:{}},$i={},qc={exports:{}},Pc={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var Jb=Object.defineProperty,Wb=Object.defineProperties;var Ib=Object.getOwnProp
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
- */var Rp;function l2(){return Rp||(Rp=1,function(n){function a(H,F){var ee=H.length;H.push(F);e:for(;0<ee;){var xe=ee-1>>>1,C=H[xe];if(0<o(C,F))H[xe]=F,H[ee]=C,ee=xe;else break e}}function i(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var F=H[0],ee=H.pop();if(ee!==F){H[0]=ee;e:for(var xe=0,C=H.length,Y=C>>>1;xe<Y;){var W=2*(xe+1)-1,$=H[W],ne=W+1,we=H[ne];if(0>o($,ee))ne<C&&0>o(we,$)?(H[xe]=we,H[ne]=ee,xe=ne):(H[xe]=$,H[W]=ee,xe=W);else if(ne<C&&0>o(we,ee))H[xe]=we,H[ne]=ee,xe=ne;else break e}}return F}function o(H,F){var ee=H.sortIndex-F.sortIndex;return ee!==0?ee:H.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var g=[],m=[],y=1,v=null,b=3,j=!1,N=!1,A=!1,E=!1,O=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate!="undefined"?setImmediate:null;function K(H){for(var F=i(m);F!==null;){if(F.callback===null)r(m);else if(F.startTime<=H)r(m),F.sortIndex=F.expirationTime,a(g,F);else break;F=i(m)}}function U(H){if(A=!1,K(H),!N)if(i(g)!==null)N=!0,Z||(Z=!0,he());else{var F=i(m);F!==null&&Le(U,F.startTime-H)}}var Z=!1,Q=-1,J=5,ce=-1;function Se(){return E?!0:!(n.unstable_now()-ce<J)}function ge(){if(E=!1,Z){var H=n.unstable_now();ce=H;var F=!0;try{e:{N=!1,A&&(A=!1,L(Q),Q=-1),j=!0;var ee=b;try{t:{for(K(H),v=i(g);v!==null&&!(v.expirationTime>H&&Se());){var xe=v.callback;if(typeof xe=="function"){v.callback=null,b=v.priorityLevel;var C=xe(v.expirationTime<=H);if(H=n.unstable_now(),typeof C=="function"){v.callback=C,K(H),F=!0;break t}v===i(g)&&r(g),K(H)}else r(g);v=i(g)}if(v!==null)F=!0;else{var Y=i(m);Y!==null&&Le(U,Y.startTime-H),F=!1}}break e}finally{v=null,b=ee,j=!1}F=void 0}}finally{F?he():Z=!1}}}var he;if(typeof M=="function")he=function(){M(ge)};else if(typeof MessageChannel!="undefined"){var ke=new MessageChannel,We=ke.port2;ke.port1.onmessage=ge,he=function(){We.postMessage(null)}}else he=function(){O(ge,0)};function Le(H,F){Q=O(function(){H(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(H){switch(b){case 1:case 2:case 3:var F=3;break;default:F=b}var ee=b;b=F;try{return H()}finally{b=ee}},n.unstable_requestPaint=function(){E=!0},n.unstable_runWithPriority=function(H,F){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ee=b;b=H;try{return F()}finally{b=ee}},n.unstable_scheduleCallback=function(H,F,ee){var xe=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?xe+ee:xe):ee=xe,H){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ee+C,H={id:y++,callback:F,priorityLevel:H,startTime:ee,expirationTime:C,sortIndex:-1},ee>xe?(H.sortIndex=ee,a(m,H),i(g)===null&&H===i(m)&&(A?(L(Q),Q=-1):A=!0,Le(U,ee-xe))):(H.sortIndex=C,a(g,H),N||j||(N=!0,Z||(Z=!0,he()))),H},n.unstable_shouldYield=Se,n.unstable_wrapCallback=function(H){var F=b;return function(){var ee=b;b=F;try{return H.apply(this,arguments)}finally{b=ee}}}}(Yc)),Yc}var Dp;function r2(){return Dp||(Dp=1,Pc.exports=l2()),Pc.exports}var Gc={exports:{}},pt={};/**
25
+ */var Ap;function r2(){return Ap||(Ap=1,function(n){function a(H,F){var ee=H.length;H.push(F);e:for(;0<ee;){var ge=ee-1>>>1,C=H[ge];if(0<o(C,F))H[ge]=F,H[ee]=C,ee=ge;else break e}}function i(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var F=H[0],ee=H.pop();if(ee!==F){H[0]=ee;e:for(var ge=0,C=H.length,P=C>>>1;ge<P;){var J=2*(ge+1)-1,$=H[J],ne=J+1,je=H[ne];if(0>o($,ee))ne<C&&0>o(je,$)?(H[ge]=je,H[ne]=ee,ge=ne):(H[ge]=$,H[J]=ee,ge=J);else if(ne<C&&0>o(je,ee))H[ge]=je,H[ne]=ee,ge=ne;else break e}}return F}function o(H,F){var ee=H.sortIndex-F.sortIndex;return ee!==0?ee:H.id-F.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();n.unstable_now=function(){return d.now()-p}}var g=[],m=[],y=1,v=null,b=3,j=!1,N=!1,A=!1,T=!1,O=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate!="undefined"?setImmediate:null;function K(H){for(var F=i(m);F!==null;){if(F.callback===null)r(m);else if(F.startTime<=H)r(m),F.sortIndex=F.expirationTime,a(g,F);else break;F=i(m)}}function U(H){if(A=!1,K(H),!N)if(i(g)!==null)N=!0,Z||(Z=!0,ue());else{var F=i(m);F!==null&&ve(U,F.startTime-H)}}var Z=!1,Q=-1,W=5,fe=-1;function xe(){return T?!0:!(n.unstable_now()-fe<W)}function de(){if(T=!1,Z){var H=n.unstable_now();fe=H;var F=!0;try{e:{N=!1,A&&(A=!1,z(Q),Q=-1),j=!0;var ee=b;try{t:{for(K(H),v=i(g);v!==null&&!(v.expirationTime>H&&xe());){var ge=v.callback;if(typeof ge=="function"){v.callback=null,b=v.priorityLevel;var C=ge(v.expirationTime<=H);if(H=n.unstable_now(),typeof C=="function"){v.callback=C,K(H),F=!0;break t}v===i(g)&&r(g),K(H)}else r(g);v=i(g)}if(v!==null)F=!0;else{var P=i(m);P!==null&&ve(U,P.startTime-H),F=!1}}break e}finally{v=null,b=ee,j=!1}F=void 0}}finally{F?ue():Z=!1}}}var ue;if(typeof M=="function")ue=function(){M(de)};else if(typeof MessageChannel!="undefined"){var Ae=new MessageChannel,He=Ae.port2;Ae.port1.onmessage=de,ue=function(){He.postMessage(null)}}else ue=function(){O(de,0)};function ve(H,F){Q=O(function(){H(n.unstable_now())},F)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(H){H.callback=null},n.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<H?Math.floor(1e3/H):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(H){switch(b){case 1:case 2:case 3:var F=3;break;default:F=b}var ee=b;b=F;try{return H()}finally{b=ee}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(H,F){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ee=b;b=H;try{return F()}finally{b=ee}},n.unstable_scheduleCallback=function(H,F,ee){var ge=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ge+ee:ge):ee=ge,H){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=ee+C,H={id:y++,callback:F,priorityLevel:H,startTime:ee,expirationTime:C,sortIndex:-1},ee>ge?(H.sortIndex=ee,a(m,H),i(g)===null&&H===i(m)&&(A?(z(Q),Q=-1):A=!0,ve(U,ee-ge))):(H.sortIndex=C,a(g,H),N||j||(N=!0,Z||(Z=!0,ue()))),H},n.unstable_shouldYield=xe,n.unstable_wrapCallback=function(H){var F=b;return function(){var ee=b;b=F;try{return H.apply(this,arguments)}finally{b=ee}}}}(Pc)),Pc}var Cp;function o2(){return Cp||(Cp=1,qc.exports=r2()),qc.exports}var Yc={exports:{}},pt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var Jb=Object.defineProperty,Wb=Object.defineProperties;var Ib=Object.getOwnProp
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 Mp;function o2(){if(Mp)return pt;Mp=1;var n=Yf();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(g,m,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:g,containerInfo:m,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,pt.createPortal=function(g,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(g,m,null,y)},pt.flushSync=function(g){var m=d.T,y=r.p;try{if(d.T=null,r.p=2,g)return g()}finally{d.T=m,r.p=y,r.d.f()}},pt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(g,m))},pt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},pt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var y=m.as,v=p(y,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,j=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?r.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:j}):y==="script"&&r.d.X(g,{crossOrigin:v,integrity:b,fetchPriority:j,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},pt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=p(m.as,m.crossOrigin);r.d.M(g,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(g)},pt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=p(y,m.crossOrigin);r.d.L(g,y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},pt.preloadModule=function(g,m){if(typeof g=="string")if(m){var y=p(m.as,m.crossOrigin);r.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(g)},pt.requestFormReset=function(g){r.d.r(g)},pt.unstable_batchedUpdates=function(g,m){return g(m)},pt.useFormState=function(g,m,y){return d.H.useFormState(g,m,y)},pt.useFormStatus=function(){return d.H.useHostTransitionStatus()},pt.version="19.1.1",pt}var Op;function u2(){if(Op)return Gc.exports;Op=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Gc.exports=o2(),Gc.exports}/**
33
+ */var Rp;function u2(){if(Rp)return pt;Rp=1;var n=qf();function a(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(g,m,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:g,containerInfo:m,implementation:y}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return pt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,pt.createPortal=function(g,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(g,m,null,y)},pt.flushSync=function(g){var m=d.T,y=r.p;try{if(d.T=null,r.p=2,g)return g()}finally{d.T=m,r.p=y,r.d.f()}},pt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(g,m))},pt.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},pt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var y=m.as,v=p(y,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,j=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?r.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:j}):y==="script"&&r.d.X(g,{crossOrigin:v,integrity:b,fetchPriority:j,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},pt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=p(m.as,m.crossOrigin);r.d.M(g,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(g)},pt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,v=p(y,m.crossOrigin);r.d.L(g,y,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},pt.preloadModule=function(g,m){if(typeof g=="string")if(m){var y=p(m.as,m.crossOrigin);r.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(g)},pt.requestFormReset=function(g){r.d.r(g)},pt.unstable_batchedUpdates=function(g,m){return g(m)},pt.useFormState=function(g,m,y){return d.H.useFormState(g,m,y)},pt.useFormStatus=function(){return d.H.useHostTransitionStatus()},pt.version="19.1.1",pt}var Dp;function c2(){if(Dp)return Yc.exports;Dp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Yc.exports=u2(),Yc.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@ var Jb=Object.defineProperty,Wb=Object.defineProperties;var Ib=Object.getOwnProp
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Lp;function c2(){if(Lp)return Qi;Lp=1;var n=r2(),a=Yf(),i=u2();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function d(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 p(e){if(c(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(r(188));return t!==e?null:e}for(var s=e,l=t;;){var u=s.return;if(u===null)break;var h=u.alternate;if(h===null){if(l=u.return,l!==null){s=l;continue}break}if(u.child===h.child){for(h=u.child;h;){if(h===s)return p(u),e;if(h===l)return p(u),t;h=h.sibling}throw Error(r(188))}if(s.return!==l.return)s=u,l=h;else{for(var x=!1,S=u.child;S;){if(S===s){x=!0,s=u,l=h;break}if(S===l){x=!0,l=u,s=h;break}S=S.sibling}if(!x){for(S=h.child;S;){if(S===s){x=!0,s=h,l=u;break}if(S===l){x=!0,l=h,s=u;break}S=S.sibling}if(!x)throw Error(r(189))}}if(s.alternate!==l)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),M=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),Se=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function he(e){return e===null||typeof e!="object"?null:(e=ge&&e[ge]||e["@@iterator"],typeof e=="function"?e:null)}var ke=Symbol.for("react.client.reference");function We(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ke?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case E:return"Profiler";case A:return"StrictMode";case U:return"Suspense";case Z:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case M:return(e.displayName||"Context")+".Provider";case L:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:We(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return We(e(t))}catch(s){}}return null}var Le=Array.isArray,H=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},xe=[],C=-1;function Y(e){return{current:e}}function W(e){0>C||(e.current=xe[C],xe[C]=null,C--)}function $(e,t){C++,xe[C]=e.current,e.current=t}var ne=Y(null),we=Y(null),ue=Y(null),xt=Y(null);function ze(e,t){switch($(ue,t),$(we,e),$(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Q0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Q0(t),e=$0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(ne),$(ne,e)}function It(){W(ne),W(we),W(ue)}function Ya(e){e.memoizedState!==null&&$(xt,e);var t=ne.current,s=$0(t,e.type);t!==s&&($(we,e),$(ne,s))}function Ga(e){we.current===e&&(W(ne),W(we)),xt.current===e&&(W(xt),Yi._currentValue=ee)}var Zs=Object.prototype.hasOwnProperty,Qs=n.unstable_scheduleCallback,Xa=n.unstable_cancelCallback,wo=n.unstable_shouldYield,jo=n.unstable_requestPaint,kt=n.unstable_now,No=n.unstable_getCurrentPriorityLevel,$s=n.unstable_ImmediatePriority,Js=n.unstable_UserBlockingPriority,Ka=n.unstable_NormalPriority,I=n.unstable_LowPriority,Ne=n.unstable_IdlePriority,He=n.log,en=n.unstable_setDisableYieldValue,vt=null,bt=null;function kn(e){if(typeof He=="function"&&en(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(vt,e)}catch(t){}}var Mt=Math.clz32?Math.clz32:V1,B1=Math.log,U1=Math.LN2;function V1(e){return e>>>=0,e===0?32:31-(B1(e)/U1|0)|0}var Tl=256,El=4194304;function pa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Al(e,t,s){var l=e.pendingLanes;if(l===0)return 0;var u=0,h=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~h,l!==0?u=pa(l):(x&=S,x!==0?u=pa(x):s||(s=S&~e,s!==0&&(u=pa(s))))):(S=l&~h,S!==0?u=pa(S):x!==0?u=pa(x):s||(s=l&~e,s!==0&&(u=pa(s)))),u===0?0:t!==0&&t!==u&&(t&h)===0&&(h=u&-u,s=t&-t,h>=s||h===32&&(s&4194048)!==0)?t:u}function Ws(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Od(){var e=Tl;return Tl<<=1,(Tl&4194048)===0&&(Tl=256),e}function Ld(){var e=El;return El<<=1,(El&62914560)===0&&(El=4194304),e}function To(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function Is(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function k1(e,t,s,l,u,h){var x=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var S=e.entanglements,T=e.expirationTimes,B=e.hiddenUpdates;for(s=x&~s;0<s;){var q=31-Mt(s),G=1<<q;S[q]=0,T[q]=-1;var V=B[q];if(V!==null)for(B[q]=null,q=0;q<V.length;q++){var _=V[q];_!==null&&(_.lane&=-536870913)}s&=~G}l!==0&&zd(e,l,0),h!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=h&~(x&~t))}function zd(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Mt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|s&4194090}function Bd(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var l=31-Mt(s),u=1<<l;u&t|e[l]&t&&(e[l]|=t),s&=~u}}function Eo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ao(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ud(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:pp(e.type))}function H1(e,t){var s=F.p;try{return F.p=e,t()}finally{F.p=s}}var Hn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Hn,jt="__reactProps$"+Hn,Fa="__reactContainer$"+Hn,Co="__reactEvents$"+Hn,q1="__reactListeners$"+Hn,P1="__reactHandles$"+Hn,Vd="__reactResources$"+Hn,ei="__reactMarker$"+Hn;function Ro(e){delete e[ht],delete e[jt],delete e[Co],delete e[q1],delete e[P1]}function Za(e){var t=e[ht];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Fa]||s[ht]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=ep(e);e!==null;){if(s=e[ht])return s;e=ep(e)}return t}e=s,s=e.parentNode}return null}function Qa(e){if(e=e[ht]||e[Fa]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function ti(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function $a(e){var t=e[Vd];return t||(t=e[Vd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function st(e){e[ei]=!0}var _d=new Set,kd={};function ga(e,t){Ja(e,t),Ja(e+"Capture",t)}function Ja(e,t){for(kd[e]=t,e=0;e<t.length;e++)_d.add(t[e])}var Y1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Hd={},qd={};function G1(e){return Zs.call(qd,e)?!0:Zs.call(Hd,e)?!1:Y1.test(e)?qd[e]=!0:(Hd[e]=!0,!1)}function Cl(e,t,s){if(G1(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+s)}}function Rl(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function vn(e,t,s,l){if(l===null)e.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+l)}}var Do,Pd;function Wa(e){if(Do===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);Do=t&&t[1]||"",Pd=-1<s.stack.indexOf(`
41
+ */var Mp;function f2(){if(Mp)return $i;Mp=1;var n=o2(),a=qf(),i=c2();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function d(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 p(e){if(c(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(r(188));return t!==e?null:e}for(var s=e,l=t;;){var u=s.return;if(u===null)break;var h=u.alternate;if(h===null){if(l=u.return,l!==null){s=l;continue}break}if(u.child===h.child){for(h=u.child;h;){if(h===s)return p(u),e;if(h===l)return p(u),t;h=h.sibling}throw Error(r(188))}if(s.return!==l.return)s=u,l=h;else{for(var x=!1,S=u.child;S;){if(S===s){x=!0,s=u,l=h;break}if(S===l){x=!0,l=u,s=h;break}S=S.sibling}if(!x){for(S=h.child;S;){if(S===s){x=!0,s=h,l=u;break}if(S===l){x=!0,l=h,s=u;break}S=S.sibling}if(!x)throw Error(r(189))}}if(s.alternate!==l)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),z=Symbol.for("react.consumer"),M=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),xe=Symbol.for("react.memo_cache_sentinel"),de=Symbol.iterator;function ue(e){return e===null||typeof e!="object"?null:(e=de&&e[de]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Symbol.for("react.client.reference");function He(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case T:return"Profiler";case A:return"StrictMode";case U:return"Suspense";case Z:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case M:return(e.displayName||"Context")+".Provider";case z:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:He(e.type)||"Memo";case W:t=e._payload,e=e._init;try{return He(e(t))}catch(s){}}return null}var ve=Array.isArray,H=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ge=[],C=-1;function P(e){return{current:e}}function J(e){0>C||(e.current=ge[C],ge[C]=null,C--)}function $(e,t){C++,ge[C]=e.current,e.current=t}var ne=P(null),je=P(null),ce=P(null),xt=P(null);function Be(e,t){switch($(ce,t),$(je,e),$(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?F0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=F0(t),e=Z0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}J(ne),$(ne,e)}function It(){J(ne),J(je),J(ce)}function Ya(e){e.memoizedState!==null&&$(xt,e);var t=ne.current,s=Z0(t,e.type);t!==s&&($(je,e),$(ne,s))}function Ga(e){je.current===e&&(J(ne),J(je)),xt.current===e&&(J(xt),Gi._currentValue=ee)}var Qs=Object.prototype.hasOwnProperty,$s=n.unstable_scheduleCallback,Xa=n.unstable_cancelCallback,So=n.unstable_shouldYield,wo=n.unstable_requestPaint,kt=n.unstable_now,jo=n.unstable_getCurrentPriorityLevel,Js=n.unstable_ImmediatePriority,Ws=n.unstable_UserBlockingPriority,Ka=n.unstable_NormalPriority,I=n.unstable_LowPriority,Te=n.unstable_IdlePriority,qe=n.log,en=n.unstable_setDisableYieldValue,vt=null,bt=null;function kn(e){if(typeof qe=="function"&&en(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(vt,e)}catch(t){}}var Mt=Math.clz32?Math.clz32:_1,U1=Math.log,V1=Math.LN2;function _1(e){return e>>>=0,e===0?32:31-(U1(e)/V1|0)|0}var Tl=256,El=4194304;function pa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Al(e,t,s){var l=e.pendingLanes;if(l===0)return 0;var u=0,h=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~h,l!==0?u=pa(l):(x&=S,x!==0?u=pa(x):s||(s=S&~e,s!==0&&(u=pa(s))))):(S=l&~h,S!==0?u=pa(S):x!==0?u=pa(x):s||(s=l&~e,s!==0&&(u=pa(s)))),u===0?0:t!==0&&t!==u&&(t&h)===0&&(h=u&-u,s=t&-t,h>=s||h===32&&(s&4194048)!==0)?t:u}function Is(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function k1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Dd(){var e=Tl;return Tl<<=1,(Tl&4194048)===0&&(Tl=256),e}function Md(){var e=El;return El<<=1,(El&62914560)===0&&(El=4194304),e}function No(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function ei(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function H1(e,t,s,l,u,h){var x=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var S=e.entanglements,E=e.expirationTimes,B=e.hiddenUpdates;for(s=x&~s;0<s;){var q=31-Mt(s),G=1<<q;S[q]=0,E[q]=-1;var V=B[q];if(V!==null)for(B[q]=null,q=0;q<V.length;q++){var _=V[q];_!==null&&(_.lane&=-536870913)}s&=~G}l!==0&&Od(e,l,0),h!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=h&~(x&~t))}function Od(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Mt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|s&4194090}function Ld(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var l=31-Mt(s),u=1<<l;u&t|e[l]&t&&(e[l]|=t),s&=~u}}function To(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Eo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zd(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:hp(e.type))}function q1(e,t){var s=F.p;try{return F.p=e,t()}finally{F.p=s}}var Hn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Hn,jt="__reactProps$"+Hn,Fa="__reactContainer$"+Hn,Ao="__reactEvents$"+Hn,P1="__reactListeners$"+Hn,Y1="__reactHandles$"+Hn,Bd="__reactResources$"+Hn,ti="__reactMarker$"+Hn;function Co(e){delete e[ht],delete e[jt],delete e[Ao],delete e[P1],delete e[Y1]}function Za(e){var t=e[ht];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Fa]||s[ht]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=W0(e);e!==null;){if(s=e[ht])return s;e=W0(e)}return t}e=s,s=e.parentNode}return null}function Qa(e){if(e=e[ht]||e[Fa]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function ni(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function $a(e){var t=e[Bd];return t||(t=e[Bd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function st(e){e[ti]=!0}var Ud=new Set,Vd={};function ga(e,t){Ja(e,t),Ja(e+"Capture",t)}function Ja(e,t){for(Vd[e]=t,e=0;e<t.length;e++)Ud.add(t[e])}var G1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_d={},kd={};function X1(e){return Qs.call(kd,e)?!0:Qs.call(_d,e)?!1:G1.test(e)?kd[e]=!0:(_d[e]=!0,!1)}function Cl(e,t,s){if(X1(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+s)}}function Rl(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function vn(e,t,s,l){if(l===null)e.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+l)}}var Ro,Hd;function Wa(e){if(Ro===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);Ro=t&&t[1]||"",Hd=-1<s.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Do+e+Pd}var Mo=!1;function Oo(e,t){if(!e||Mo)return"";Mo=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(_){var V=_}Reflect.construct(e,[],G)}else{try{G.call()}catch(_){V=_}e.call(G.prototype)}}else{try{throw Error()}catch(_){V=_}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(_){if(_&&V&&typeof _.stack=="string")return[_.stack,V.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),x=h[0],S=h[1];if(x&&S){var T=x.split(`
43
+ `+Ro+e+Hd}var Do=!1;function Mo(e,t){if(!e||Do)return"";Do=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(_){var V=_}Reflect.construct(e,[],G)}else{try{G.call()}catch(_){V=_}e.call(G.prototype)}}else{try{throw Error()}catch(_){V=_}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(_){if(_&&V&&typeof _.stack=="string")return[_.stack,V.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),x=h[0],S=h[1];if(x&&S){var E=x.split(`
44
44
  `),B=S.split(`
45
- `);for(u=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;u<B.length&&!B[u].includes("DetermineComponentFrameRoot");)u++;if(l===T.length||u===B.length)for(l=T.length-1,u=B.length-1;1<=l&&0<=u&&T[l]!==B[u];)u--;for(;1<=l&&0<=u;l--,u--)if(T[l]!==B[u]){if(l!==1||u!==1)do if(l--,u--,0>u||T[l]!==B[u]){var q=`
46
- `+T[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=u);break}}}finally{Mo=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?Wa(s):""}function X1(e){switch(e.tag){case 26:case 27:case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return Oo(e.type,!1);case 11:return Oo(e.type.render,!1);case 1:return Oo(e.type,!0);case 31:return Wa("Activity");default:return""}}function Yd(e){try{var t="";do t+=X1(e),e=e.return;while(e);return t}catch(s){return`
45
+ `);for(u=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;u<B.length&&!B[u].includes("DetermineComponentFrameRoot");)u++;if(l===E.length||u===B.length)for(l=E.length-1,u=B.length-1;1<=l&&0<=u&&E[l]!==B[u];)u--;for(;1<=l&&0<=u;l--,u--)if(E[l]!==B[u]){if(l!==1||u!==1)do if(l--,u--,0>u||E[l]!==B[u]){var q=`
46
+ `+E[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=u);break}}}finally{Do=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?Wa(s):""}function K1(e){switch(e.tag){case 26:case 27:case 5:return Wa(e.type);case 16:return Wa("Lazy");case 13:return Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return Mo(e.type,!1);case 11:return Mo(e.type.render,!1);case 1:return Mo(e.type,!0);case 31:return Wa("Activity");default:return""}}function qd(e){try{var t="";do t+=K1(e),e=e.return;while(e);return t}catch(s){return`
47
47
  Error generating stack: `+s.message+`
48
- `+s.stack}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function K1(e){var t=Gd(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof s!="undefined"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,h=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(x){l=""+x,h.call(this,x)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dl(e){e._valueTracker||(e._valueTracker=K1(e))}function Xd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),l="";return e&&(l=Gd(e)?e.checked?"true":"false":e.value),e=l,e!==s?(t.setValue(e),!0):!1}function Ml(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var F1=/[\n"\\]/g;function qt(e){return e.replace(F1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lo(e,t,s,l,u,h,x,S){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?zo(e,x,Ht(t)):s!=null?zo(e,x,Ht(s)):l!=null&&e.removeAttribute("value"),u==null&&h!=null&&(e.defaultChecked=!!h),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Ht(S):e.removeAttribute("name")}function Kd(e,t,s,l,u,h,x,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||t!=null))return;s=s!=null?""+Ht(s):"",t=t!=null?""+Ht(t):s,S||t===e.value||(e.value=t),e.defaultValue=t}l=l!=null?l:u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function zo(e,t,s){t==="number"&&Ml(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Ia(e,t,s,l){if(e=e.options,t){t={};for(var u=0;u<s.length;u++)t["$"+s[u]]=!0;for(s=0;s<e.length;s++)u=t.hasOwnProperty("$"+e[s].value),e[s].selected!==u&&(e[s].selected=u),u&&l&&(e[s].defaultSelected=!0)}else{for(s=""+Ht(s),t=null,u=0;u<e.length;u++){if(e[u].value===s){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Fd(e,t,s){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+Ht(s):""}function Zd(e,t,s,l){if(t==null){if(l!=null){if(s!=null)throw Error(r(92));if(Le(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),t=s}s=Ht(t),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l)}function es(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Z1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Qd(e,t,s){var l=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,s):typeof s!="number"||s===0||Z1.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function $d(e,t,s){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&s[u]!==l&&Qd(e,u,l)}else for(var h in t)t.hasOwnProperty(h)&&Qd(e,h,t[h])}function Bo(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Q1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ol(e){return $1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Uo=null;function Vo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ts=null,ns=null;function Jd(e){var t=Qa(e);if(t&&(e=t.stateNode)){var s=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lo(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+qt(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var l=s[t];if(l!==e&&l.form===e.form){var u=l[jt]||null;if(!u)throw Error(r(90));Lo(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<s.length;t++)l=s[t],l.form===e.form&&Xd(l)}break e;case"textarea":Fd(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&Ia(e,!!s.multiple,t,!1)}}}var _o=!1;function Wd(e,t,s){if(_o)return e(t,s);_o=!0;try{var l=e(t);return l}finally{if(_o=!1,(ts!==null||ns!==null)&&(yr(),ts&&(t=ts,e=ns,ns=ts=null,Jd(t),e)))for(t=0;t<e.length;t++)Jd(e[t])}}function ni(e,t){var s=e.stateNode;if(s===null)return null;var l=s[jt]||null;if(l===null)return null;s=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(r(231,t,typeof s));return s}var bn=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),ko=!1;if(bn)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){ko=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch(e){ko=!1}var qn=null,Ho=null,Ll=null;function Id(){if(Ll)return Ll;var e,t=Ho,s=t.length,l,u="value"in qn?qn.value:qn.textContent,h=u.length;for(e=0;e<s&&t[e]===u[e];e++);var x=s-e;for(l=1;l<=x&&t[s-l]===u[h-l];l++);return Ll=u.slice(e,1<l?1-l:void 0)}function zl(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 Bl(){return!0}function eh(){return!1}function Nt(e){function t(s,l,u,h,x){this._reactName=s,this._targetInst=u,this.type=l,this.nativeEvent=h,this.target=x,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(s=e[S],this[S]=s?s(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Bl:eh,this.isPropagationStopped=eh,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Bl)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),t}var ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ul=Nt(ya),si=y({},ya,{view:0,detail:0}),J1=Nt(si),qo,Po,ii,Vl=y({},si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Go,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!==ii&&(ii&&e.type==="mousemove"?(qo=e.screenX-ii.screenX,Po=e.screenY-ii.screenY):Po=qo=0,ii=e),qo)},movementY:function(e){return"movementY"in e?e.movementY:Po}}),th=Nt(Vl),W1=y({},Vl,{dataTransfer:0}),I1=Nt(W1),ev=y({},si,{relatedTarget:0}),Yo=Nt(ev),tv=y({},ya,{animationName:0,elapsedTime:0,pseudoElement:0}),nv=Nt(tv),av=y({},ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sv=Nt(av),iv=y({},ya,{data:0}),nh=Nt(iv),lv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rv={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 uv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ov[e])?!!t[e]:!1}function Go(){return uv}var cv=y({},si,{key:function(e){if(e.key){var t=lv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Go,charCode:function(e){return e.type==="keypress"?zl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fv=Nt(cv),dv=y({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=Nt(dv),hv=y({},si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Go}),mv=Nt(hv),pv=y({},ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),gv=Nt(pv),yv=y({},Vl,{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}),xv=Nt(yv),vv=y({},ya,{newState:0,oldState:0}),bv=Nt(vv),Sv=[9,13,27,32],Xo=bn&&"CompositionEvent"in window,li=null;bn&&"documentMode"in document&&(li=document.documentMode);var wv=bn&&"TextEvent"in window&&!li,sh=bn&&(!Xo||li&&8<li&&11>=li),ih=" ",lh=!1;function rh(e,t){switch(e){case"keyup":return Sv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var as=!1;function jv(e,t){switch(e){case"compositionend":return oh(t);case"keypress":return t.which!==32?null:(lh=!0,ih);case"textInput":return e=t.data,e===ih&&lh?null:e;default:return null}}function Nv(e,t){if(as)return e==="compositionend"||!Xo&&rh(e,t)?(e=Id(),Ll=Ho=qn=null,as=!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 sh&&t.locale!=="ko"?null:t.data;default:return null}}var Tv={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 uh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Tv[e.type]:t==="textarea"}function ch(e,t,s,l){ts?ns?ns.push(l):ns=[l]:ts=l,t=jr(t,"onChange"),0<t.length&&(s=new Ul("onChange","change",null,s,l),e.push({event:s,listeners:t}))}var ri=null,oi=null;function Ev(e){G0(e,0)}function _l(e){var t=ti(e);if(Xd(t))return e}function fh(e,t){if(e==="change")return t}var dh=!1;if(bn){var Ko;if(bn){var Fo="oninput"in document;if(!Fo){var hh=document.createElement("div");hh.setAttribute("oninput","return;"),Fo=typeof hh.oninput=="function"}Ko=Fo}else Ko=!1;dh=Ko&&(!document.documentMode||9<document.documentMode)}function mh(){ri&&(ri.detachEvent("onpropertychange",ph),oi=ri=null)}function ph(e){if(e.propertyName==="value"&&_l(oi)){var t=[];ch(t,oi,e,Vo(e)),Wd(Ev,t)}}function Av(e,t,s){e==="focusin"?(mh(),ri=t,oi=s,ri.attachEvent("onpropertychange",ph)):e==="focusout"&&mh()}function Cv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _l(oi)}function Rv(e,t){if(e==="click")return _l(t)}function Dv(e,t){if(e==="input"||e==="change")return _l(t)}function Mv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Mv;function ui(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),l=Object.keys(t);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var u=s[l];if(!Zs.call(t,u)||!Ot(e[u],t[u]))return!1}return!0}function gh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yh(e,t){var s=gh(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=t&&l>=t)return{node:s,offset:t-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=gh(s)}}function xh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ml(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch(l){s=!1}if(s)e=t.contentWindow;else break;t=Ml(e.document)}return t}function Zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Ov=bn&&"documentMode"in document&&11>=document.documentMode,ss=null,Qo=null,ci=null,$o=!1;function bh(e,t,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;$o||ss==null||ss!==Ml(l)||(l=ss,"selectionStart"in l&&Zo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ci&&ui(ci,l)||(ci=l,l=jr(Qo,"onSelect"),0<l.length&&(t=new Ul("onSelect","select",null,t,s),e.push({event:t,listeners:l}),t.target=ss)))}function xa(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var is={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},Jo={},Sh={};bn&&(Sh=document.createElement("div").style,"AnimationEvent"in window||(delete is.animationend.animation,delete is.animationiteration.animation,delete is.animationstart.animation),"TransitionEvent"in window||delete is.transitionend.transition);function va(e){if(Jo[e])return Jo[e];if(!is[e])return e;var t=is[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in Sh)return Jo[e]=t[s];return e}var wh=va("animationend"),jh=va("animationiteration"),Nh=va("animationstart"),Lv=va("transitionrun"),zv=va("transitionstart"),Bv=va("transitioncancel"),Th=va("transitionend"),Eh=new Map,Wo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Wo.push("scrollEnd");function tn(e,t){Eh.set(e,t),ga(t,[e])}var Ah=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var s=Ah.get(e);return s!==void 0?s:(t={value:e,source:t,stack:Yd(t)},Ah.set(e,t),t)}return{value:e,source:t,stack:Yd(t)}}var Yt=[],ls=0,Io=0;function kl(){for(var e=ls,t=Io=ls=0;t<e;){var s=Yt[t];Yt[t++]=null;var l=Yt[t];Yt[t++]=null;var u=Yt[t];Yt[t++]=null;var h=Yt[t];if(Yt[t++]=null,l!==null&&u!==null){var x=l.pending;x===null?u.next=u:(u.next=x.next,x.next=u),l.pending=u}h!==0&&Ch(s,u,h)}}function Hl(e,t,s,l){Yt[ls++]=e,Yt[ls++]=t,Yt[ls++]=s,Yt[ls++]=l,Io|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function eu(e,t,s,l){return Hl(e,t,s,l),ql(e)}function rs(e,t){return Hl(e,null,null,t),ql(e)}function Ch(e,t,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var u=!1,h=e.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(u=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,u&&t!==null&&(u=31-Mt(s),e=h.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=s|536870912),h):null}function ql(e){if(50<Bi)throw Bi=0,lc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var os={};function Uv(e,t,s,l){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,s,l){return new Uv(e,t,s,l)}function tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sn(e,t){var s=e.alternate;return s===null?(s=Lt(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Rh(e,t){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Pl(e,t,s,l,u,h){var x=0;if(l=e,typeof e=="function")tu(e)&&(x=1);else if(typeof e=="string")x=_b(e,s,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Lt(31,s,t,u),e.elementType=ce,e.lanes=h,e;case N:return ba(s.children,u,h,t);case A:x=8,u|=24;break;case E:return e=Lt(12,s,t,u|2),e.elementType=E,e.lanes=h,e;case U:return e=Lt(13,s,t,u),e.elementType=U,e.lanes=h,e;case Z:return e=Lt(19,s,t,u),e.elementType=Z,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:case M:x=10;break e;case L:x=9;break e;case K:x=11;break e;case Q:x=14;break e;case J:x=16,l=null;break e}x=29,s=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Lt(x,s,t,u),t.elementType=e,t.type=l,t.lanes=h,t}function ba(e,t,s,l){return e=Lt(7,e,l,t),e.lanes=s,e}function nu(e,t,s){return e=Lt(6,e,null,t),e.lanes=s,e}function au(e,t,s){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var us=[],cs=0,Yl=null,Gl=0,Gt=[],Xt=0,Sa=null,wn=1,jn="";function wa(e,t){us[cs++]=Gl,us[cs++]=Yl,Yl=e,Gl=t}function Dh(e,t,s){Gt[Xt++]=wn,Gt[Xt++]=jn,Gt[Xt++]=Sa,Sa=e;var l=wn;e=jn;var u=32-Mt(l)-1;l&=~(1<<u),s+=1;var h=32-Mt(t)+u;if(30<h){var x=u-u%5;h=(l&(1<<x)-1).toString(32),l>>=x,u-=x,wn=1<<32-Mt(t)+u|s<<u|l,jn=h+e}else wn=1<<h|s<<u|l,jn=e}function su(e){e.return!==null&&(wa(e,1),Dh(e,1,0))}function iu(e){for(;e===Yl;)Yl=us[--cs],us[cs]=null,Gl=us[--cs],us[cs]=null;for(;e===Sa;)Sa=Gt[--Xt],Gt[Xt]=null,jn=Gt[--Xt],Gt[Xt]=null,wn=Gt[--Xt],Gt[Xt]=null}var St=null,Xe=null,Ee=!1,ja=null,on=!1,lu=Error(r(519));function Na(e){var t=Error(r(418,""));throw hi(Pt(t,e)),lu}function Mh(e){var t=e.stateNode,s=e.type,l=e.memoizedProps;switch(t[ht]=e,t[jt]=l,s){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(s=0;s<Vi.length;s++)be(Vi[s],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Kd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Dl(t);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Zd(t,l.value,l.defaultValue,l.children),Dl(t)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||l.suppressHydrationWarning===!0||Z0(t.textContent,s)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=Nr),t=!0):t=!1,t||Na(e)}function Oh(e){for(St=e.return;St;)switch(St.tag){case 5:case 13:on=!1;return;case 27:case 3:on=!0;return;default:St=St.return}}function fi(e){if(e!==St)return!1;if(!Ee)return Oh(e),Ee=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||wc(e.type,e.memoizedProps)),s=!s),s&&Xe&&Na(e),Oh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(s=e.data,s==="/$"){if(t===0){Xe=an(e.nextSibling);break e}t--}else s!=="$"&&s!=="$!"&&s!=="$?"||t++;e=e.nextSibling}Xe=null}}else t===27?(t=Xe,aa(e.type)?(e=Ec,Ec=null,Xe=e):Xe=t):Xe=St?an(e.stateNode.nextSibling):null;return!0}function di(){Xe=St=null,Ee=!1}function Lh(){var e=ja;return e!==null&&(At===null?At=e:At.push.apply(At,e),ja=null),e}function hi(e){ja===null?ja=[e]:ja.push(e)}var ru=Y(null),Ta=null,Nn=null;function Pn(e,t,s){$(ru,t._currentValue),t._currentValue=s}function Tn(e){e._currentValue=ru.current,W(ru)}function ou(e,t,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===s)break;e=e.return}}function uu(e,t,s,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var h=u.dependencies;if(h!==null){var x=u.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=u;for(var T=0;T<t.length;T++)if(S.context===t[T]){h.lanes|=s,S=h.alternate,S!==null&&(S.lanes|=s),ou(h.return,s,e),l||(x=null);break e}h=S.next}}else if(u.tag===18){if(x=u.return,x===null)throw Error(r(341));x.lanes|=s,h=x.alternate,h!==null&&(h.lanes|=s),ou(x,s,e),x=null}else x=u.child;if(x!==null)x.return=u;else for(x=u;x!==null;){if(x===e){x=null;break}if(u=x.sibling,u!==null){u.return=x.return,x=u;break}x=x.return}u=x}}function mi(e,t,s,l){e=null;for(var u=t,h=!1;u!==null;){if(!h){if((u.flags&524288)!==0)h=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var x=u.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var S=u.type;Ot(u.pendingProps.value,x.value)||(e!==null?e.push(S):e=[S])}}else if(u===xt.current){if(x=u.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Yi):e=[Yi])}u=u.return}e!==null&&uu(t,e,s,l),t.flags|=262144}function Xl(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ea(e){Ta=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return zh(Ta,e)}function Kl(e,t){return Ta===null&&Ea(e),zh(e,t)}function zh(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},Nn===null){if(e===null)throw Error(r(308));Nn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nn=Nn.next=t;return s}var Vv=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},_v=n.unstable_scheduleCallback,kv=n.unstable_NormalPriority,nt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cu(){return{controller:new Vv,data:new Map,refCount:0}}function pi(e){e.refCount--,e.refCount===0&&_v(kv,function(){e.controller.abort()})}var gi=null,fu=0,fs=0,ds=null;function Hv(e,t){if(gi===null){var s=gi=[];fu=0,fs=hc(),ds={status:"pending",value:void 0,then:function(l){s.push(l)}}}return fu++,t.then(Bh,Bh),t}function Bh(){if(--fu===0&&gi!==null){ds!==null&&(ds.status="fulfilled");var e=gi;gi=null,fs=0,ds=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qv(e,t){var s=[],l={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<s.length;u++)(0,s[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),l}var Uh=H.S;H.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Hv(e,t),Uh!==null&&Uh(e,t)};var Aa=Y(null);function du(){var e=Aa.current;return e!==null?e:Ue.pooledCache}function Fl(e,t){t===null?$(Aa,Aa.current):$(Aa,t.pool)}function Vh(){var e=du();return e===null?null:{parent:nt._currentValue,pool:e}}var yi=Error(r(460)),_h=Error(r(474)),Zl=Error(r(542)),hu={then:function(){}};function kh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ql(){}function Hh(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(Ql,Ql),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ph(e),e;default:if(typeof t.status=="string")t.then(Ql,Ql);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ph(e),e}throw xi=t,yi}}var xi=null;function qh(){if(xi===null)throw Error(r(459));var e=xi;return xi=null,e}function Ph(e){if(e===yi||e===Zl)throw Error(r(483))}var Yn=!1;function mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ce&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=ql(e),Ch(e,null,s),t}return Hl(e,l,t,s),ql(e)}function vi(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,s|=l,t.lanes=s,Bd(e,s)}}function gu(e,t){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var u=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?u=h=x:h=h.next=x,s=s.next}while(s!==null);h===null?u=h=t:h=h.next=t}else u=h=t;s={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var yu=!1;function bi(){if(yu){var e=ds;if(e!==null)throw e}}function Si(e,t,s,l){yu=!1;var u=e.updateQueue;Yn=!1;var h=u.firstBaseUpdate,x=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var T=S,B=T.next;T.next=null,x===null?h=B:x.next=B,x=T;var q=e.alternate;q!==null&&(q=q.updateQueue,S=q.lastBaseUpdate,S!==x&&(S===null?q.firstBaseUpdate=B:S.next=B,q.lastBaseUpdate=T))}if(h!==null){var G=u.baseState;x=0,q=B=T=null,S=h;do{var V=S.lane&-536870913,_=V!==S.lane;if(_?(je&V)===V:(l&V)===V){V!==0&&V===fs&&(yu=!0),q!==null&&(q=q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var re=e,se=S;V=t;var Oe=s;switch(se.tag){case 1:if(re=se.payload,typeof re=="function"){G=re.call(Oe,G,V);break e}G=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=se.payload,V=typeof re=="function"?re.call(Oe,G,V):re,V==null)break e;G=y({},G,V);break e;case 2:Yn=!0}}V=S.callback,V!==null&&(e.flags|=64,_&&(e.flags|=8192),_=u.callbacks,_===null?u.callbacks=[V]:_.push(V))}else _={lane:V,tag:S.tag,payload:S.payload,callback:S.callback,next:null},q===null?(B=q=_,T=G):q=q.next=_,x|=V;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;_=S,S=_.next,_.next=null,u.lastBaseUpdate=_,u.shared.pending=null}}while(!0);q===null&&(T=G),u.baseState=T,u.firstBaseUpdate=B,u.lastBaseUpdate=q,h===null&&(u.shared.lanes=0),In|=x,e.lanes=x,e.memoizedState=G}}function Yh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Gh(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)Yh(s[e],t)}var hs=Y(null),$l=Y(0);function Xh(e,t){e=On,$($l,e),$(hs,t),On=e|t.baseLanes}function xu(){$($l,On),$(hs,hs.current)}function vu(){On=$l.current,W(hs),W($l)}var Kn=0,pe=null,De=null,Ie=null,Jl=!1,ms=!1,Ca=!1,Wl=0,wi=0,ps=null,Pv=0;function Ze(){throw Error(r(321))}function bu(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!Ot(e[s],t[s]))return!1;return!0}function Su(e,t,s,l,u,h){return Kn=h,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?Cm:Rm,Ca=!1,h=s(l,u),Ca=!1,ms&&(h=Fh(t,s,l,u)),Kh(e),h}function Kh(e){H.H=sr;var t=De!==null&&De.next!==null;if(Kn=0,Ie=De=pe=null,Jl=!1,wi=0,ps=null,t)throw Error(r(300));e===null||it||(e=e.dependencies,e!==null&&Xl(e)&&(it=!0))}function Fh(e,t,s,l){pe=e;var u=0;do{if(ms&&(ps=null),wi=0,ms=!1,25<=u)throw Error(r(301));if(u+=1,Ie=De=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}H.H=Qv,h=t(s,l)}while(ms);return h}function Yv(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?ji(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(pe.flags|=1024),t}function wu(){var e=Wl!==0;return Wl=0,e}function ju(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function Nu(e){if(Jl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jl=!1}Kn=0,Ie=De=pe=null,ms=!1,wi=Wl=0,ps=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?pe.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function et(){if(De===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ie===null?pe.memoizedState:Ie.next;if(t!==null)Ie=t,De=e;else{if(e===null)throw pe.alternate===null?Error(r(467)):Error(r(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ie===null?pe.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Tu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ji(e){var t=wi;return wi+=1,ps===null&&(ps=[]),e=Hh(ps,e,t),t=pe,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?Cm:Rm),e}function Il(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ji(e);if(e.$$typeof===M)return mt(e)}throw Error(r(438,String(e)))}function Eu(e){var t=null,s=pe.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var l=pe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=Tu(),pe.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),l=0;l<e;l++)s[l]=Se;return t.index++,s}function En(e,t){return typeof t=="function"?t(e):t}function er(e){var t=et();return Au(t,De,e)}function Au(e,t,s){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var u=e.baseQueue,h=l.pending;if(h!==null){if(u!==null){var x=u.next;u.next=h.next,h.next=x}t.baseQueue=u=h,l.pending=null}if(h=e.baseState,u===null)e.memoizedState=h;else{t=u.next;var S=x=null,T=null,B=t,q=!1;do{var G=B.lane&-536870913;if(G!==B.lane?(je&G)===G:(Kn&G)===G){var V=B.revertLane;if(V===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),G===fs&&(q=!0);else if((Kn&V)===V){B=B.next,V===fs&&(q=!0);continue}else G={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(S=T=G,x=h):T=T.next=G,pe.lanes|=V,In|=V;G=B.action,Ca&&s(h,G),h=B.hasEagerState?B.eagerState:s(h,G)}else V={lane:G,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(S=T=V,x=h):T=T.next=V,pe.lanes|=G,In|=G;B=B.next}while(B!==null&&B!==t);if(T===null?x=h:T.next=S,!Ot(h,e.memoizedState)&&(it=!0,q&&(s=ds,s!==null)))throw s;e.memoizedState=h,e.baseState=x,e.baseQueue=T,l.lastRenderedState=h}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Cu(e){var t=et(),s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var l=s.dispatch,u=s.pending,h=t.memoizedState;if(u!==null){s.pending=null;var x=u=u.next;do h=e(h,x.action),x=x.next;while(x!==u);Ot(h,t.memoizedState)||(it=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),s.lastRenderedState=h}return[h,l]}function Zh(e,t,s){var l=pe,u=et(),h=Ee;if(h){if(s===void 0)throw Error(r(407));s=s()}else s=t();var x=!Ot((De||u).memoizedState,s);x&&(u.memoizedState=s,it=!0),u=u.queue;var S=Jh.bind(null,l,u,e);if(Ni(2048,8,S,[e]),u.getSnapshot!==t||x||Ie!==null&&Ie.memoizedState.tag&1){if(l.flags|=2048,gs(9,tr(),$h.bind(null,l,u,s,t),null),Ue===null)throw Error(r(349));h||(Kn&124)!==0||Qh(l,t,s)}return s}function Qh(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=pe.updateQueue,t===null?(t=Tu(),pe.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function $h(e,t,s,l){t.value=s,t.getSnapshot=l,Wh(t)&&Ih(e)}function Jh(e,t,s){return s(function(){Wh(t)&&Ih(e)})}function Wh(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!Ot(e,s)}catch(l){return!0}}function Ih(e){var t=rs(e,2);t!==null&&_t(t,e,2)}function Ru(e){var t=Tt();if(typeof e=="function"){var s=e;if(e=s(),Ca){kn(!0);try{s()}finally{kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function em(e,t,s,l){return e.baseState=s,Au(e,De,typeof l=="function"?l:En)}function Gv(e,t,s,l,u){if(ar(e))throw Error(r(485));if(e=t.action,e!==null){var h={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){h.listeners.push(x)}};H.T!==null?s(!0):h.isTransition=!1,l(h),s=t.pending,s===null?(h.next=t.pending=h,tm(t,h)):(h.next=s.next,t.pending=s.next=h)}}function tm(e,t){var s=t.action,l=t.payload,u=e.state;if(t.isTransition){var h=H.T,x={};H.T=x;try{var S=s(u,l),T=H.S;T!==null&&T(x,S),nm(e,t,S)}catch(B){Du(e,t,B)}finally{H.T=h}}else try{h=s(u,l),nm(e,t,h)}catch(B){Du(e,t,B)}}function nm(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){am(e,t,l)},function(l){return Du(e,t,l)}):am(e,t,s)}function am(e,t,s){t.status="fulfilled",t.value=s,sm(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,tm(e,s)))}function Du(e,t,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=s,sm(t),t=t.next;while(t!==l)}e.action=null}function sm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function im(e,t){return t}function lm(e,t){if(Ee){var s=Ue.formState;if(s!==null){e:{var l=pe;if(Ee){if(Xe){t:{for(var u=Xe,h=on;u.nodeType!==8;){if(!h){u=null;break t}if(u=an(u.nextSibling),u===null){u=null;break t}}h=u.data,u=h==="F!"||h==="F"?u:null}if(u){Xe=an(u.nextSibling),l=u.data==="F!";break e}}Na(l)}l=!1}l&&(t=s[0])}}return s=Tt(),s.memoizedState=s.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:im,lastRenderedState:t},s.queue=l,s=Tm.bind(null,pe,l),l.dispatch=s,l=Ru(!1),h=Bu.bind(null,pe,!1,l.queue),l=Tt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,s=Gv.bind(null,pe,u,h,s),u.dispatch=s,l.memoizedState=e,[t,s,!1]}function rm(e){var t=et();return om(t,De,e)}function om(e,t,s){if(t=Au(e,t,im)[0],e=er(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ji(t)}catch(x){throw x===yi?Zl:x}else l=t;t=et();var u=t.queue,h=u.dispatch;return s!==t.memoizedState&&(pe.flags|=2048,gs(9,tr(),Xv.bind(null,u,s),null)),[l,h,e]}function Xv(e,t){e.action=t}function um(e){var t=et(),s=De;if(s!==null)return om(t,s,e);et(),t=t.memoizedState,s=et();var l=s.queue.dispatch;return s.memoizedState=e,[t,l,!1]}function gs(e,t,s,l){return e={tag:e,create:s,deps:l,inst:t,next:null},t=pe.updateQueue,t===null&&(t=Tu(),pe.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,t.lastEffect=e),e}function tr(){return{destroy:void 0,resource:void 0}}function cm(){return et().memoizedState}function nr(e,t,s,l){var u=Tt();l=l===void 0?null:l,pe.flags|=e,u.memoizedState=gs(1|t,tr(),s,l)}function Ni(e,t,s,l){var u=et();l=l===void 0?null:l;var h=u.memoizedState.inst;De!==null&&l!==null&&bu(l,De.memoizedState.deps)?u.memoizedState=gs(t,h,s,l):(pe.flags|=e,u.memoizedState=gs(1|t,h,s,l))}function fm(e,t){nr(8390656,8,e,t)}function dm(e,t){Ni(2048,8,e,t)}function hm(e,t){return Ni(4,2,e,t)}function mm(e,t){return Ni(4,4,e,t)}function pm(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gm(e,t,s){s=s!=null?s.concat([e]):null,Ni(4,4,pm.bind(null,t,e),s)}function Mu(){}function ym(e,t){var s=et();t=t===void 0?null:t;var l=s.memoizedState;return t!==null&&bu(t,l[1])?l[0]:(s.memoizedState=[e,t],e)}function xm(e,t){var s=et();t=t===void 0?null:t;var l=s.memoizedState;if(t!==null&&bu(t,l[1]))return l[0];if(l=e(),Ca){kn(!0);try{e()}finally{kn(!1)}}return s.memoizedState=[l,t],l}function Ou(e,t,s){return s===void 0||(Kn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=s,e=S0(),pe.lanes|=e,In|=e,s)}function vm(e,t,s,l){return Ot(s,t)?s:hs.current!==null?(e=Ou(e,s,l),Ot(e,t)||(it=!0),e):(Kn&42)===0?(it=!0,e.memoizedState=s):(e=S0(),pe.lanes|=e,In|=e,t)}function bm(e,t,s,l,u){var h=F.p;F.p=h!==0&&8>h?h:8;var x=H.T,S={};H.T=S,Bu(e,!1,t,s);try{var T=u(),B=H.S;if(B!==null&&B(S,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var q=qv(T,l);Ti(e,t,q,Vt(e))}else Ti(e,t,l,Vt(e))}catch(G){Ti(e,t,{then:function(){},status:"rejected",reason:G},Vt())}finally{F.p=h,H.T=x}}function Kv(){}function Lu(e,t,s,l){if(e.tag!==5)throw Error(r(476));var u=Sm(e).queue;bm(e,u,t,ee,s===null?Kv:function(){return wm(e),s(l)})}function Sm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:ee},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wm(e){var t=Sm(e).next.queue;Ti(e,t,{},Vt())}function zu(){return mt(Yi)}function jm(){return et().memoizedState}function Nm(){return et().memoizedState}function Fv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=Vt();e=Gn(s);var l=Xn(t,e,s);l!==null&&(_t(l,t,s),vi(l,t,s)),t={cache:cu()},e.payload=t;return}t=t.return}}function Zv(e,t,s){var l=Vt();s={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},ar(e)?Em(t,s):(s=eu(e,t,s,l),s!==null&&(_t(s,e,l),Am(s,t,l)))}function Tm(e,t,s){var l=Vt();Ti(e,t,s,l)}function Ti(e,t,s,l){var u={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(ar(e))Em(t,u);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var x=t.lastRenderedState,S=h(x,s);if(u.hasEagerState=!0,u.eagerState=S,Ot(S,x))return Hl(e,t,u,0),Ue===null&&kl(),!1}catch(T){}finally{}if(s=eu(e,t,u,l),s!==null)return _t(s,e,l),Am(s,t,l),!0}return!1}function Bu(e,t,s,l){if(l={lane:2,revertLane:hc(),action:l,hasEagerState:!1,eagerState:null,next:null},ar(e)){if(t)throw Error(r(479))}else t=eu(e,s,l,2),t!==null&&_t(t,e,2)}function ar(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Em(e,t){ms=Jl=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Am(e,t,s){if((s&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,s|=l,t.lanes=s,Bd(e,s)}}var sr={readContext:mt,use:Il,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},Cm={readContext:mt,use:Il,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:fm,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,nr(4194308,4,pm.bind(null,t,e),s)},useLayoutEffect:function(e,t){return nr(4194308,4,e,t)},useInsertionEffect:function(e,t){nr(4,2,e,t)},useMemo:function(e,t){var s=Tt();t=t===void 0?null:t;var l=e();if(Ca){kn(!0);try{e()}finally{kn(!1)}}return s.memoizedState=[l,t],l},useReducer:function(e,t,s){var l=Tt();if(s!==void 0){var u=s(t);if(Ca){kn(!0);try{s(t)}finally{kn(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Zv.bind(null,pe,e),[l.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ru(e);var t=e.queue,s=Tm.bind(null,pe,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:Mu,useDeferredValue:function(e,t){var s=Tt();return Ou(s,e,t)},useTransition:function(){var e=Ru(!1);return e=bm.bind(null,pe,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var l=pe,u=Tt();if(Ee){if(s===void 0)throw Error(r(407));s=s()}else{if(s=t(),Ue===null)throw Error(r(349));(je&124)!==0||Qh(l,t,s)}u.memoizedState=s;var h={value:s,getSnapshot:t};return u.queue=h,fm(Jh.bind(null,l,h,e),[e]),l.flags|=2048,gs(9,tr(),$h.bind(null,l,h,s,t),null),s},useId:function(){var e=Tt(),t=Ue.identifierPrefix;if(Ee){var s=jn,l=wn;s=(l&~(1<<32-Mt(l)-1)).toString(32)+s,t="«"+t+"R"+s,s=Wl++,0<s&&(t+="H"+s.toString(32)),t+="»"}else s=Pv++,t="«"+t+"r"+s.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:zu,useFormState:lm,useActionState:lm,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=Bu.bind(null,pe,!0,s),s.dispatch=t,[e,t]},useMemoCache:Eu,useCacheRefresh:function(){return Tt().memoizedState=Fv.bind(null,pe)}},Rm={readContext:mt,use:Il,useCallback:ym,useContext:mt,useEffect:dm,useImperativeHandle:gm,useInsertionEffect:hm,useLayoutEffect:mm,useMemo:xm,useReducer:er,useRef:cm,useState:function(){return er(En)},useDebugValue:Mu,useDeferredValue:function(e,t){var s=et();return vm(s,De.memoizedState,e,t)},useTransition:function(){var e=er(En)[0],t=et().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:Zh,useId:jm,useHostTransitionStatus:zu,useFormState:rm,useActionState:rm,useOptimistic:function(e,t){var s=et();return em(s,De,e,t)},useMemoCache:Eu,useCacheRefresh:Nm},Qv={readContext:mt,use:Il,useCallback:ym,useContext:mt,useEffect:dm,useImperativeHandle:gm,useInsertionEffect:hm,useLayoutEffect:mm,useMemo:xm,useReducer:Cu,useRef:cm,useState:function(){return Cu(En)},useDebugValue:Mu,useDeferredValue:function(e,t){var s=et();return De===null?Ou(s,e,t):vm(s,De.memoizedState,e,t)},useTransition:function(){var e=Cu(En)[0],t=et().memoizedState;return[typeof e=="boolean"?e:ji(e),t]},useSyncExternalStore:Zh,useId:jm,useHostTransitionStatus:zu,useFormState:um,useActionState:um,useOptimistic:function(e,t){var s=et();return De!==null?em(s,De,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Eu,useCacheRefresh:Nm},ys=null,Ei=0;function ir(e){var t=Ei;return Ei+=1,ys===null&&(ys=[]),Hh(ys,e,t)}function Ai(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lr(e,t){throw t.$$typeof===v?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Dm(e){var t=e._init;return t(e._payload)}function Mm(e){function t(D,R){if(e){var z=D.deletions;z===null?(D.deletions=[R],D.flags|=16):z.push(R)}}function s(D,R){if(!e)return null;for(;R!==null;)t(D,R),R=R.sibling;return null}function l(D){for(var R=new Map;D!==null;)D.key!==null?R.set(D.key,D):R.set(D.index,D),D=D.sibling;return R}function u(D,R){return D=Sn(D,R),D.index=0,D.sibling=null,D}function h(D,R,z){return D.index=z,e?(z=D.alternate,z!==null?(z=z.index,z<R?(D.flags|=67108866,R):z):(D.flags|=67108866,R)):(D.flags|=1048576,R)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,R,z,P){return R===null||R.tag!==6?(R=nu(z,D.mode,P),R.return=D,R):(R=u(R,z),R.return=D,R)}function T(D,R,z,P){var te=z.type;return te===N?q(D,R,z.props.children,P,z.key):R!==null&&(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&Dm(te)===R.type)?(R=u(R,z.props),Ai(R,z),R.return=D,R):(R=Pl(z.type,z.key,z.props,null,D.mode,P),Ai(R,z),R.return=D,R)}function B(D,R,z,P){return R===null||R.tag!==4||R.stateNode.containerInfo!==z.containerInfo||R.stateNode.implementation!==z.implementation?(R=au(z,D.mode,P),R.return=D,R):(R=u(R,z.children||[]),R.return=D,R)}function q(D,R,z,P,te){return R===null||R.tag!==7?(R=ba(z,D.mode,P,te),R.return=D,R):(R=u(R,z),R.return=D,R)}function G(D,R,z){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=nu(""+R,D.mode,z),R.return=D,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case b:return z=Pl(R.type,R.key,R.props,null,D.mode,z),Ai(z,R),z.return=D,z;case j:return R=au(R,D.mode,z),R.return=D,R;case J:var P=R._init;return R=P(R._payload),G(D,R,z)}if(Le(R)||he(R))return R=ba(R,D.mode,z,null),R.return=D,R;if(typeof R.then=="function")return G(D,ir(R),z);if(R.$$typeof===M)return G(D,Kl(D,R),z);lr(D,R)}return null}function V(D,R,z,P){var te=R!==null?R.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return te!==null?null:S(D,R,""+z,P);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case b:return z.key===te?T(D,R,z,P):null;case j:return z.key===te?B(D,R,z,P):null;case J:return te=z._init,z=te(z._payload),V(D,R,z,P)}if(Le(z)||he(z))return te!==null?null:q(D,R,z,P,null);if(typeof z.then=="function")return V(D,R,ir(z),P);if(z.$$typeof===M)return V(D,R,Kl(D,z),P);lr(D,z)}return null}function _(D,R,z,P,te){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return D=D.get(z)||null,S(R,D,""+P,te);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case b:return D=D.get(P.key===null?z:P.key)||null,T(R,D,P,te);case j:return D=D.get(P.key===null?z:P.key)||null,B(R,D,P,te);case J:var ye=P._init;return P=ye(P._payload),_(D,R,z,P,te)}if(Le(P)||he(P))return D=D.get(z)||null,q(R,D,P,te,null);if(typeof P.then=="function")return _(D,R,z,ir(P),te);if(P.$$typeof===M)return _(D,R,z,Kl(R,P),te);lr(R,P)}return null}function re(D,R,z,P){for(var te=null,ye=null,ae=R,ie=R=0,rt=null;ae!==null&&ie<z.length;ie++){ae.index>ie?(rt=ae,ae=null):rt=ae.sibling;var Te=V(D,ae,z[ie],P);if(Te===null){ae===null&&(ae=rt);break}e&&ae&&Te.alternate===null&&t(D,ae),R=h(Te,R,ie),ye===null?te=Te:ye.sibling=Te,ye=Te,ae=rt}if(ie===z.length)return s(D,ae),Ee&&wa(D,ie),te;if(ae===null){for(;ie<z.length;ie++)ae=G(D,z[ie],P),ae!==null&&(R=h(ae,R,ie),ye===null?te=ae:ye.sibling=ae,ye=ae);return Ee&&wa(D,ie),te}for(ae=l(ae);ie<z.length;ie++)rt=_(ae,D,ie,z[ie],P),rt!==null&&(e&&rt.alternate!==null&&ae.delete(rt.key===null?ie:rt.key),R=h(rt,R,ie),ye===null?te=rt:ye.sibling=rt,ye=rt);return e&&ae.forEach(function(oa){return t(D,oa)}),Ee&&wa(D,ie),te}function se(D,R,z,P){if(z==null)throw Error(r(151));for(var te=null,ye=null,ae=R,ie=R=0,rt=null,Te=z.next();ae!==null&&!Te.done;ie++,Te=z.next()){ae.index>ie?(rt=ae,ae=null):rt=ae.sibling;var oa=V(D,ae,Te.value,P);if(oa===null){ae===null&&(ae=rt);break}e&&ae&&oa.alternate===null&&t(D,ae),R=h(oa,R,ie),ye===null?te=oa:ye.sibling=oa,ye=oa,ae=rt}if(Te.done)return s(D,ae),Ee&&wa(D,ie),te;if(ae===null){for(;!Te.done;ie++,Te=z.next())Te=G(D,Te.value,P),Te!==null&&(R=h(Te,R,ie),ye===null?te=Te:ye.sibling=Te,ye=Te);return Ee&&wa(D,ie),te}for(ae=l(ae);!Te.done;ie++,Te=z.next())Te=_(ae,D,ie,Te.value,P),Te!==null&&(e&&Te.alternate!==null&&ae.delete(Te.key===null?ie:Te.key),R=h(Te,R,ie),ye===null?te=Te:ye.sibling=Te,ye=Te);return e&&ae.forEach(function($b){return t(D,$b)}),Ee&&wa(D,ie),te}function Oe(D,R,z,P){if(typeof z=="object"&&z!==null&&z.type===N&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case b:e:{for(var te=z.key;R!==null;){if(R.key===te){if(te=z.type,te===N){if(R.tag===7){s(D,R.sibling),P=u(R,z.props.children),P.return=D,D=P;break e}}else if(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&Dm(te)===R.type){s(D,R.sibling),P=u(R,z.props),Ai(P,z),P.return=D,D=P;break e}s(D,R);break}else t(D,R);R=R.sibling}z.type===N?(P=ba(z.props.children,D.mode,P,z.key),P.return=D,D=P):(P=Pl(z.type,z.key,z.props,null,D.mode,P),Ai(P,z),P.return=D,D=P)}return x(D);case j:e:{for(te=z.key;R!==null;){if(R.key===te)if(R.tag===4&&R.stateNode.containerInfo===z.containerInfo&&R.stateNode.implementation===z.implementation){s(D,R.sibling),P=u(R,z.children||[]),P.return=D,D=P;break e}else{s(D,R);break}else t(D,R);R=R.sibling}P=au(z,D.mode,P),P.return=D,D=P}return x(D);case J:return te=z._init,z=te(z._payload),Oe(D,R,z,P)}if(Le(z))return re(D,R,z,P);if(he(z)){if(te=he(z),typeof te!="function")throw Error(r(150));return z=te.call(z),se(D,R,z,P)}if(typeof z.then=="function")return Oe(D,R,ir(z),P);if(z.$$typeof===M)return Oe(D,R,Kl(D,z),P);lr(D,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,R!==null&&R.tag===6?(s(D,R.sibling),P=u(R,z),P.return=D,D=P):(s(D,R),P=nu(z,D.mode,P),P.return=D,D=P),x(D)):s(D,R)}return function(D,R,z,P){try{Ei=0;var te=Oe(D,R,z,P);return ys=null,te}catch(ae){if(ae===yi||ae===Zl)throw ae;var ye=Lt(29,ae,null,D.mode);return ye.lanes=P,ye.return=D,ye}finally{}}}var xs=Mm(!0),Om=Mm(!1),Kt=Y(null),un=null;function Fn(e){var t=e.alternate;$(at,at.current&1),$(Kt,e),un===null&&(t===null||hs.current!==null||t.memoizedState!==null)&&(un=e)}function Lm(e){if(e.tag===22){if($(at,at.current),$(Kt,e),un===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(un=e)}}else Zn()}function Zn(){$(at,at.current),$(Kt,Kt.current)}function An(e){W(Kt),un===e&&(un=null),W(at)}var at=Y(0);function rr(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||Tc(s)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Uu(e,t,s,l){t=e.memoizedState,s=s(l,t),s=s==null?t:y({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Vu={enqueueSetState:function(e,t,s){e=e._reactInternals;var l=Vt(),u=Gn(l);u.payload=t,s!=null&&(u.callback=s),t=Xn(e,u,l),t!==null&&(_t(t,e,l),vi(t,e,l))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var l=Vt(),u=Gn(l);u.tag=1,u.payload=t,s!=null&&(u.callback=s),t=Xn(e,u,l),t!==null&&(_t(t,e,l),vi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=Vt(),l=Gn(s);l.tag=2,t!=null&&(l.callback=t),t=Xn(e,l,s),t!==null&&(_t(t,e,s),vi(t,e,s))}};function zm(e,t,s,l,u,h,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,h,x):t.prototype&&t.prototype.isPureReactComponent?!ui(s,l)||!ui(u,h):!0}function Bm(e,t,s,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,l),t.state!==e&&Vu.enqueueReplaceState(t,t.state,null)}function Ra(e,t){var s=t;if("ref"in t){s={};for(var l in t)l!=="ref"&&(s[l]=t[l])}if(e=e.defaultProps){s===t&&(s=y({},s));for(var u in e)s[u]===void 0&&(s[u]=e[u])}return s}var or=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Um(e){or(e)}function Vm(e){console.error(e)}function _m(e){or(e)}function ur(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function km(e,t,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function _u(e,t,s){return s=Gn(s),s.tag=3,s.payload={element:null},s.callback=function(){ur(e,t)},s}function Hm(e){return e=Gn(e),e.tag=3,e}function qm(e,t,s,l){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var h=l.value;e.payload=function(){return u(h)},e.callback=function(){km(t,s,l)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){km(t,s,l),typeof u!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function $v(e,t,s,l,u){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=s.alternate,t!==null&&mi(t,s,u,!0),s=Kt.current,s!==null){switch(s.tag){case 13:return un===null?oc():s.alternate===null&&Ke===0&&(Ke=3),s.flags&=-257,s.flags|=65536,s.lanes=u,l===hu?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([l]):t.add(l),cc(e,l,u)),!1;case 22:return s.flags|=65536,l===hu?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([l]):s.add(l)),cc(e,l,u)),!1}throw Error(r(435,s.tag))}return cc(e,l,u),oc(),!1}if(Ee)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==lu&&(e=Error(r(422),{cause:l}),hi(Pt(e,s)))):(l!==lu&&(t=Error(r(423),{cause:l}),hi(Pt(t,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Pt(l,s),u=_u(e.stateNode,l,u),gu(e,u),Ke!==4&&(Ke=2)),!1;var h=Error(r(520),{cause:l});if(h=Pt(h,s),zi===null?zi=[h]:zi.push(h),Ke!==4&&(Ke=2),t===null)return!0;l=Pt(l,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=_u(s.stateNode,l,e),gu(s,e),!1;case 1:if(t=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(ea===null||!ea.has(h))))return s.flags|=65536,u&=-u,s.lanes|=u,u=Hm(u),qm(u,e,s,l),gu(s,u),!1}s=s.return}while(s!==null);return!1}var Pm=Error(r(461)),it=!1;function ut(e,t,s,l){t.child=e===null?Om(t,null,s,l):xs(t,e.child,s,l)}function Ym(e,t,s,l,u){s=s.render;var h=t.ref;if("ref"in l){var x={};for(var S in l)S!=="ref"&&(x[S]=l[S])}else x=l;return Ea(t),l=Su(e,t,s,x,h,u),S=wu(),e!==null&&!it?(ju(e,t,u),Cn(e,t,u)):(Ee&&S&&su(t),t.flags|=1,ut(e,t,l,u),t.child)}function Gm(e,t,s,l,u){if(e===null){var h=s.type;return typeof h=="function"&&!tu(h)&&h.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=h,Xm(e,t,h,l,u)):(e=Pl(s.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Ku(e,u)){var x=h.memoizedProps;if(s=s.compare,s=s!==null?s:ui,s(x,l)&&e.ref===t.ref)return Cn(e,t,u)}return t.flags|=1,e=Sn(h,l),e.ref=t.ref,e.return=t,t.child=e}function Xm(e,t,s,l,u){if(e!==null){var h=e.memoizedProps;if(ui(h,l)&&e.ref===t.ref)if(it=!1,t.pendingProps=l=h,Ku(e,u))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Cn(e,t,u)}return ku(e,t,s,l,u)}function Km(e,t,s){var l=t.pendingProps,u=l.children,h=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=h!==null?h.baseLanes|s:s,e!==null){for(u=t.child=e.child,h=0;u!==null;)h=h|u.lanes|u.childLanes,u=u.sibling;t.childLanes=h&~l}else t.childLanes=0,t.child=null;return Fm(e,t,l,s)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fl(t,h!==null?h.cachePool:null),h!==null?Xh(t,h):xu(),Lm(t);else return t.lanes=t.childLanes=536870912,Fm(e,t,h!==null?h.baseLanes|s:s,s)}else h!==null?(Fl(t,h.cachePool),Xh(t,h),Zn(),t.memoizedState=null):(e!==null&&Fl(t,null),xu(),Zn());return ut(e,t,u,s),t.child}function Fm(e,t,s,l){var u=du();return u=u===null?null:{parent:nt._currentValue,pool:u},t.memoizedState={baseLanes:s,cachePool:u},e!==null&&Fl(t,null),xu(),Lm(t),e!==null&&mi(e,t,l,!0),null}function cr(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function ku(e,t,s,l,u){return Ea(t),s=Su(e,t,s,l,void 0,u),l=wu(),e!==null&&!it?(ju(e,t,u),Cn(e,t,u)):(Ee&&l&&su(t),t.flags|=1,ut(e,t,s,u),t.child)}function Zm(e,t,s,l,u,h){return Ea(t),t.updateQueue=null,s=Fh(t,l,s,u),Kh(e),l=wu(),e!==null&&!it?(ju(e,t,h),Cn(e,t,h)):(Ee&&l&&su(t),t.flags|=1,ut(e,t,s,h),t.child)}function Qm(e,t,s,l,u){if(Ea(t),t.stateNode===null){var h=os,x=s.contextType;typeof x=="object"&&x!==null&&(h=mt(x)),h=new s(l,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Vu,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=l,h.state=t.memoizedState,h.refs={},mu(t),x=s.contextType,h.context=typeof x=="object"&&x!==null?mt(x):os,h.state=t.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(Uu(t,s,x,l),h.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(x=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),x!==h.state&&Vu.enqueueReplaceState(h,h.state,null),Si(t,l,h,u),bi(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){h=t.stateNode;var S=t.memoizedProps,T=Ra(s,S);h.props=T;var B=h.context,q=s.contextType;x=os,typeof q=="object"&&q!==null&&(x=mt(q));var G=s.getDerivedStateFromProps;q=typeof G=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,q||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||B!==x)&&Bm(t,h,l,x),Yn=!1;var V=t.memoizedState;h.state=V,Si(t,l,h,u),bi(),B=t.memoizedState,S||V!==B||Yn?(typeof G=="function"&&(Uu(t,s,G,l),B=t.memoizedState),(T=Yn||zm(t,s,T,l,V,B,x))?(q||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),h.props=l,h.state=B,h.context=x,l=T):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{h=t.stateNode,pu(e,t),x=t.memoizedProps,q=Ra(s,x),h.props=q,G=t.pendingProps,V=h.context,B=s.contextType,T=os,typeof B=="object"&&B!==null&&(T=mt(B)),S=s.getDerivedStateFromProps,(B=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x!==G||V!==T)&&Bm(t,h,l,T),Yn=!1,V=t.memoizedState,h.state=V,Si(t,l,h,u),bi();var _=t.memoizedState;x!==G||V!==_||Yn||e!==null&&e.dependencies!==null&&Xl(e.dependencies)?(typeof S=="function"&&(Uu(t,s,S,l),_=t.memoizedState),(q=Yn||zm(t,s,q,l,V,_,T)||e!==null&&e.dependencies!==null&&Xl(e.dependencies))?(B||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,_,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,_,T)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=_),h.props=l,h.state=_,h.context=T,l=q):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),l=!1)}return h=l,cr(e,t),l=(t.flags&128)!==0,h||l?(h=t.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&l?(t.child=xs(t,e.child,null,u),t.child=xs(t,null,s,u)):ut(e,t,s,u),t.memoizedState=h.state,e=t.child):e=Cn(e,t,u),e}function $m(e,t,s,l){return di(),t.flags|=256,ut(e,t,s,l),t.child}var Hu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qu(e){return{baseLanes:e,cachePool:Vh()}}function Pu(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=Ft),e}function Jm(e,t,s){var l=t.pendingProps,u=!1,h=(t.flags&128)!==0,x;if((x=h)||(x=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),x&&(u=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(u?Fn(t):Zn(),Ee){var S=Xe,T;if(T=S){e:{for(T=S,S=on;T.nodeType!==8;){if(!S){S=null;break e}if(T=an(T.nextSibling),T===null){S=null;break e}}S=T}S!==null?(t.memoizedState={dehydrated:S,treeContext:Sa!==null?{id:wn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},T=Lt(18,null,null,0),T.stateNode=S,T.return=t,t.child=T,St=t,Xe=null,T=!0):T=!1}T||Na(t)}if(S=t.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return Tc(S)?t.lanes=32:t.lanes=536870912,null;An(t)}return S=l.children,l=l.fallback,u?(Zn(),u=t.mode,S=fr({mode:"hidden",children:S},u),l=ba(l,u,s,null),S.return=t,l.return=t,S.sibling=l,t.child=S,u=t.child,u.memoizedState=qu(s),u.childLanes=Pu(e,x,s),t.memoizedState=Hu,l):(Fn(t),Yu(t,S))}if(T=e.memoizedState,T!==null&&(S=T.dehydrated,S!==null)){if(h)t.flags&256?(Fn(t),t.flags&=-257,t=Gu(e,t,s)):t.memoizedState!==null?(Zn(),t.child=e.child,t.flags|=128,t=null):(Zn(),u=l.fallback,S=t.mode,l=fr({mode:"visible",children:l.children},S),u=ba(u,S,s,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,xs(t,e.child,null,s),l=t.child,l.memoizedState=qu(s),l.childLanes=Pu(e,x,s),t.memoizedState=Hu,t=u);else if(Fn(t),Tc(S)){if(x=S.nextSibling&&S.nextSibling.dataset,x)var B=x.dgst;x=B,l=Error(r(419)),l.stack="",l.digest=x,hi({value:l,source:null,stack:null}),t=Gu(e,t,s)}else if(it||mi(e,t,s,!1),x=(s&e.childLanes)!==0,it||x){if(x=Ue,x!==null&&(l=s&-s,l=(l&42)!==0?1:Eo(l),l=(l&(x.suspendedLanes|s))!==0?0:l,l!==0&&l!==T.retryLane))throw T.retryLane=l,rs(e,l),_t(x,e,l),Pm;S.data==="$?"||oc(),t=Gu(e,t,s)}else S.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Xe=an(S.nextSibling),St=t,Ee=!0,ja=null,on=!1,e!==null&&(Gt[Xt++]=wn,Gt[Xt++]=jn,Gt[Xt++]=Sa,wn=e.id,jn=e.overflow,Sa=t),t=Yu(t,l.children),t.flags|=4096);return t}return u?(Zn(),u=l.fallback,S=t.mode,T=e.child,B=T.sibling,l=Sn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,B!==null?u=Sn(B,u):(u=ba(u,S,s,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,S=e.child.memoizedState,S===null?S=qu(s):(T=S.cachePool,T!==null?(B=nt._currentValue,T=T.parent!==B?{parent:B,pool:B}:T):T=Vh(),S={baseLanes:S.baseLanes|s,cachePool:T}),u.memoizedState=S,u.childLanes=Pu(e,x,s),t.memoizedState=Hu,l):(Fn(t),s=e.child,e=s.sibling,s=Sn(s,{mode:"visible",children:l.children}),s.return=t,s.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=s,t.memoizedState=null,s)}function Yu(e,t){return t=fr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function fr(e,t){return e=Lt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Gu(e,t,s){return xs(t,e.child,null,s),e=Yu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wm(e,t,s){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ou(e.return,t,s)}function Xu(e,t,s,l,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=s,h.tailMode=u)}function Im(e,t,s){var l=t.pendingProps,u=l.revealOrder,h=l.tail;if(ut(e,t,l.children,s),l=at.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wm(e,s,t);else if(e.tag===19)Wm(e,s,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}l&=1}switch($(at,l),u){case"forwards":for(s=t.child,u=null;s!==null;)e=s.alternate,e!==null&&rr(e)===null&&(u=s),s=s.sibling;s=u,s===null?(u=t.child,t.child=null):(u=s.sibling,s.sibling=null),Xu(t,!1,u,s,h);break;case"backwards":for(s=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&rr(e)===null){t.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}Xu(t,!0,s,null,h);break;case"together":Xu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cn(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),In|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(mi(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,s=Sn(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=Sn(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function Ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Xl(e)))}function Jv(e,t,s){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),Pn(t,nt,e.memoizedState.cache),di();break;case 27:case 5:Ya(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:Pn(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Fn(t),t.flags|=128,null):(s&t.child.childLanes)!==0?Jm(e,t,s):(Fn(t),e=Cn(e,t,s),e!==null?e.sibling:null);Fn(t);break;case 19:var u=(e.flags&128)!==0;if(l=(s&t.childLanes)!==0,l||(mi(e,t,s,!1),l=(s&t.childLanes)!==0),u){if(l)return Im(e,t,s);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),$(at,at.current),l)break;return null;case 22:case 23:return t.lanes=0,Km(e,t,s);case 24:Pn(t,nt,e.memoizedState.cache)}return Cn(e,t,s)}function e0(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!Ku(e,s)&&(t.flags&128)===0)return it=!1,Jv(e,t,s);it=(e.flags&131072)!==0}else it=!1,Ee&&(t.flags&1048576)!==0&&Dh(t,Gl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")tu(l)?(e=Ra(l,e),t.tag=1,t=Qm(null,t,l,e,s)):(t.tag=0,t=ku(null,t,l,e,s));else{if(l!=null){if(u=l.$$typeof,u===K){t.tag=11,t=Ym(null,t,l,e,s);break e}else if(u===Q){t.tag=14,t=Gm(null,t,l,e,s);break e}}throw t=We(l)||l,Error(r(306,t,""))}}return t;case 0:return ku(e,t,t.type,t.pendingProps,s);case 1:return l=t.type,u=Ra(l,t.pendingProps),Qm(e,t,l,u,s);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var h=t.memoizedState;u=h.element,pu(e,t),Si(t,l,null,s);var x=t.memoizedState;if(l=x.cache,Pn(t,nt,l),l!==h.cache&&uu(t,[nt],s,!0),bi(),l=x.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=$m(e,t,l,s);break e}else if(l!==u){u=Pt(Error(r(424)),t),hi(u),t=$m(e,t,l,s);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Xe=an(e.firstChild),St=t,Ee=!0,ja=null,on=!0,s=Om(t,null,l,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(di(),l===u){t=Cn(e,t,s);break e}ut(e,t,l,s)}t=t.child}return t;case 26:return cr(e,t),e===null?(s=sp(t.type,null,t.pendingProps,null))?t.memoizedState=s:Ee||(s=t.type,e=t.pendingProps,l=Tr(ue.current).createElement(s),l[ht]=t,l[jt]=e,ft(l,s,e),st(l),t.stateNode=l):t.memoizedState=sp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ya(t),e===null&&Ee&&(l=t.stateNode=tp(t.type,t.pendingProps,ue.current),St=t,on=!0,u=Xe,aa(t.type)?(Ec=u,Xe=an(l.firstChild)):Xe=u),ut(e,t,t.pendingProps.children,s),cr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((u=l=Xe)&&(l=Tb(l,t.type,t.pendingProps,on),l!==null?(t.stateNode=l,St=t,Xe=an(l.firstChild),on=!1,u=!0):u=!1),u||Na(t)),Ya(t),u=t.type,h=t.pendingProps,x=e!==null?e.memoizedProps:null,l=h.children,wc(u,h)?l=null:x!==null&&wc(u,x)&&(t.flags|=32),t.memoizedState!==null&&(u=Su(e,t,Yv,null,null,s),Yi._currentValue=u),cr(e,t),ut(e,t,l,s),t.child;case 6:return e===null&&Ee&&((e=s=Xe)&&(s=Eb(s,t.pendingProps,on),s!==null?(t.stateNode=s,St=t,Xe=null,e=!0):e=!1),e||Na(t)),null;case 13:return Jm(e,t,s);case 4:return ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=xs(t,null,l,s):ut(e,t,l,s),t.child;case 11:return Ym(e,t,t.type,t.pendingProps,s);case 7:return ut(e,t,t.pendingProps,s),t.child;case 8:return ut(e,t,t.pendingProps.children,s),t.child;case 12:return ut(e,t,t.pendingProps.children,s),t.child;case 10:return l=t.pendingProps,Pn(t,t.type,l.value),ut(e,t,l.children,s),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Ea(t),u=mt(u),l=l(u),t.flags|=1,ut(e,t,l,s),t.child;case 14:return Gm(e,t,t.type,t.pendingProps,s);case 15:return Xm(e,t,t.type,t.pendingProps,s);case 19:return Im(e,t,s);case 31:return l=t.pendingProps,s=t.mode,l={mode:l.mode,children:l.children},e===null?(s=fr(l,s),s.ref=t.ref,t.child=s,s.return=t,t=s):(s=Sn(e.child,l),s.ref=t.ref,t.child=s,s.return=t,t=s),t;case 22:return Km(e,t,s);case 24:return Ea(t),l=mt(nt),e===null?(u=du(),u===null&&(u=Ue,h=cu(),u.pooledCache=h,h.refCount++,h!==null&&(u.pooledCacheLanes|=s),u=h),t.memoizedState={parent:l,cache:u},mu(t),Pn(t,nt,u)):((e.lanes&s)!==0&&(pu(e,t),Si(t,null,null,s),bi()),u=e.memoizedState,h=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Pn(t,nt,l)):(l=h.cache,Pn(t,nt,l),l!==u.cache&&uu(t,[nt],s,!0))),ut(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Rn(e){e.flags|=4}function t0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!up(t)){if(t=Kt.current,t!==null&&((je&4194048)===je?un!==null:(je&62914560)!==je&&(je&536870912)===0||t!==un))throw xi=hu,_h;e.flags|=8192}}function dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ld():536870912,e.lanes|=t,ws|=t)}function Ci(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(t)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=s,t}function Wv(e,t,s){var l=t.pendingProps;switch(iu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return s=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Tn(nt),It(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(fi(t)?Rn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Lh())),qe(t),null;case 26:return s=t.memoizedState,e===null?(Rn(t),s!==null?(qe(t),t0(t,s)):(qe(t),t.flags&=-16777217)):s?s!==e.memoizedState?(Rn(t),qe(t),t0(t,s)):(qe(t),t.flags&=-16777217):(e.memoizedProps!==l&&Rn(t),qe(t),t.flags&=-16777217),null;case 27:Ga(t),s=ue.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Rn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=ne.current,fi(t)?Mh(t):(e=tp(u,l,s),t.stateNode=e,Rn(t))}return qe(t),null;case 5:if(Ga(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Rn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(e=ne.current,fi(t))Mh(t);else{switch(u=Tr(ue.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?u.createElement(s,{is:l.is}):u.createElement(s)}}e[ht]=t,e[jt]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(ft(e,s,l),s){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Rn(t)}}return qe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Rn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,fi(t)){if(e=t.stateNode,s=t.memoizedProps,l=null,u=St,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[ht]=t,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Z0(e.nodeValue,s)),e||Na(t)}else e=Tr(e).createTextNode(l),e[ht]=t,t.stateNode=e}return qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=fi(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ht]=t}else di(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),u=!1}else u=Lh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(An(t),t):(An(t),null)}if(An(t),(t.flags&128)!==0)return t.lanes=s,t;if(s=l!==null,e=e!==null&&e.memoizedState!==null,s){l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var h=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==u&&(l.flags|=2048)}return s!==e&&s&&(t.child.flags|=8192),dr(t,t.updateQueue),qe(t),null;case 4:return It(),e===null&&yc(t.stateNode.containerInfo),qe(t),null;case 10:return Tn(t.type),qe(t),null;case 19:if(W(at),u=t.memoizedState,u===null)return qe(t),null;if(l=(t.flags&128)!==0,h=u.rendering,h===null)if(l)Ci(u,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=rr(e),h!==null){for(t.flags|=128,Ci(u,!1),e=h.updateQueue,t.updateQueue=e,dr(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Rh(s,e),s=s.sibling;return $(at,at.current&1|2),t.child}e=e.sibling}u.tail!==null&&kt()>pr&&(t.flags|=128,l=!0,Ci(u,!1),t.lanes=4194304)}else{if(!l)if(e=rr(h),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,dr(t,e),Ci(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Ee)return qe(t),null}else 2*kt()-u.renderingStartTime>pr&&s!==536870912&&(t.flags|=128,l=!0,Ci(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(e=u.last,e!==null?e.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=kt(),t.sibling=null,e=at.current,$(at,l?e&1|2:e&1),t):(qe(t),null);case 22:case 23:return An(t),vu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(s&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),s=t.updateQueue,s!==null&&dr(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==s&&(t.flags|=2048),e!==null&&W(Aa),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Tn(nt),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Iv(e,t){switch(iu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(nt),It(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ga(t),null;case 13:if(An(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));di()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(at),null;case 4:return It(),null;case 10:return Tn(t.type),null;case 22:case 23:return An(t),vu(),e!==null&&W(Aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(nt),null;case 25:return null;default:return null}}function n0(e,t){switch(iu(t),t.tag){case 3:Tn(nt),It();break;case 26:case 27:case 5:Ga(t);break;case 4:It();break;case 13:An(t);break;case 19:W(at);break;case 10:Tn(t.type);break;case 22:case 23:An(t),vu(),e!==null&&W(Aa);break;case 24:Tn(nt)}}function Ri(e,t){try{var s=t.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var u=l.next;s=u;do{if((s.tag&e)===e){l=void 0;var h=s.create,x=s.inst;l=h(),x.destroy=l}s=s.next}while(s!==u)}}catch(S){Be(t,t.return,S)}}function Qn(e,t,s){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var h=u.next;l=h;do{if((l.tag&e)===e){var x=l.inst,S=x.destroy;if(S!==void 0){x.destroy=void 0,u=t;var T=s,B=S;try{B()}catch(q){Be(u,T,q)}}}l=l.next}while(l!==h)}}catch(q){Be(t,t.return,q)}}function a0(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{Gh(t,s)}catch(l){Be(e,e.return,l)}}}function s0(e,t,s){s.props=Ra(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){Be(e,t,l)}}function Di(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof s=="function"?e.refCleanup=s(l):s.current=l}}catch(u){Be(e,t,u)}}function cn(e,t){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(u){Be(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){Be(e,t,u)}else s.current=null}function i0(e){var t=e.type,s=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(u){Be(e,e.return,u)}}function Fu(e,t,s){try{var l=e.stateNode;bb(l,e.type,s,t),l[jt]=t}catch(u){Be(e,e.return,u)}}function l0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function Zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||l0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&aa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qu(e,t,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=Nr));else if(l!==4&&(l===27&&aa(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(Qu(e,t,s),e=e.sibling;e!==null;)Qu(e,t,s),e=e.sibling}function hr(e,t,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(l!==4&&(l===27&&aa(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(hr(e,t,s),e=e.sibling;e!==null;)hr(e,t,s),e=e.sibling}function r0(e){var t=e.stateNode,s=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ft(t,l,s),t[ht]=e,t[jt]=s}catch(h){Be(e,e.return,h)}}var Dn=!1,Qe=!1,$u=!1,o0=typeof WeakSet=="function"?WeakSet:Set,lt=null;function eb(e,t){if(e=e.containerInfo,bc=Mr,e=vh(e),Zo(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var u=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch(se){s=null;break e}var x=0,S=-1,T=-1,B=0,q=0,G=e,V=null;t:for(;;){for(var _;G!==s||u!==0&&G.nodeType!==3||(S=x+u),G!==h||l!==0&&G.nodeType!==3||(T=x+l),G.nodeType===3&&(x+=G.nodeValue.length),(_=G.firstChild)!==null;)V=G,G=_;for(;;){if(G===e)break t;if(V===s&&++B===u&&(S=x),V===h&&++q===l&&(T=x),(_=G.nextSibling)!==null)break;G=V,V=G.parentNode}G=_}s=S===-1||T===-1?null:{start:S,end:T}}else s=null}s=s||{start:0,end:0}}else s=null;for(Sc={focusedElem:e,selectionRange:s},Mr=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,h=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,s=t,u=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var re=Ra(s.type,u,s.elementType===s.type);e=l.getSnapshotBeforeUpdate(re,h),l.__reactInternalSnapshotBeforeUpdate=e}catch(se){Be(s,s.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)Nc(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function u0(e,t,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:$n(e,s),l&4&&Ri(5,s);break;case 1:if($n(e,s),l&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(x){Be(s,s.return,x)}else{var u=Ra(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Be(s,s.return,x)}}l&64&&a0(s),l&512&&Di(s,s.return);break;case 3:if($n(e,s),l&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{Gh(e,t)}catch(x){Be(s,s.return,x)}}break;case 27:t===null&&l&4&&r0(s);case 26:case 5:$n(e,s),t===null&&l&4&&i0(s),l&512&&Di(s,s.return);break;case 12:$n(e,s);break;case 13:$n(e,s),l&4&&d0(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=ub.bind(null,s),Ab(e,s))));break;case 22:if(l=s.memoizedState!==null||Dn,!l){t=t!==null&&t.memoizedState!==null||Qe,u=Dn;var h=Qe;Dn=l,(Qe=t)&&!h?Jn(e,s,(s.subtreeFlags&8772)!==0):$n(e,s),Dn=u,Qe=h}break;case 30:break;default:$n(e,s)}}function c0(e){var t=e.alternate;t!==null&&(e.alternate=null,c0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ro(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,Et=!1;function Mn(e,t,s){for(s=s.child;s!==null;)f0(e,t,s),s=s.sibling}function f0(e,t,s){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(vt,s)}catch(h){}switch(s.tag){case 26:Qe||cn(s,t),Mn(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Qe||cn(s,t);var l=Ve,u=Et;aa(s.type)&&(Ve=s.stateNode,Et=!1),Mn(e,t,s),ki(s.stateNode),Ve=l,Et=u;break;case 5:Qe||cn(s,t);case 6:if(l=Ve,u=Et,Ve=null,Mn(e,t,s),Ve=l,Et=u,Ve!==null)if(Et)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(s.stateNode)}catch(h){Be(s,t,h)}else try{Ve.removeChild(s.stateNode)}catch(h){Be(s,t,h)}break;case 18:Ve!==null&&(Et?(e=Ve,I0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),Fi(e)):I0(Ve,s.stateNode));break;case 4:l=Ve,u=Et,Ve=s.stateNode.containerInfo,Et=!0,Mn(e,t,s),Ve=l,Et=u;break;case 0:case 11:case 14:case 15:Qe||Qn(2,s,t),Qe||Qn(4,s,t),Mn(e,t,s);break;case 1:Qe||(cn(s,t),l=s.stateNode,typeof l.componentWillUnmount=="function"&&s0(s,t,l)),Mn(e,t,s);break;case 21:Mn(e,t,s);break;case 22:Qe=(l=Qe)||s.memoizedState!==null,Mn(e,t,s),Qe=l;break;default:Mn(e,t,s)}}function d0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fi(e)}catch(s){Be(t,t.return,s)}}function tb(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new o0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new o0),t;default:throw Error(r(435,e.tag))}}function Ju(e,t){var s=tb(e);t.forEach(function(l){var u=cb.bind(null,e,l);s.has(l)||(s.add(l),l.then(u,u))})}function zt(e,t){var s=t.deletions;if(s!==null)for(var l=0;l<s.length;l++){var u=s[l],h=e,x=t,S=x;e:for(;S!==null;){switch(S.tag){case 27:if(aa(S.type)){Ve=S.stateNode,Et=!1;break e}break;case 5:Ve=S.stateNode,Et=!1;break e;case 3:case 4:Ve=S.stateNode.containerInfo,Et=!0;break e}S=S.return}if(Ve===null)throw Error(r(160));f0(h,x,u),Ve=null,Et=!1,h=u.alternate,h!==null&&(h.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)h0(t,e),t=t.sibling}var nn=null;function h0(e,t){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),Bt(e),l&4&&(Qn(3,e,e.return),Ri(3,e),Qn(5,e,e.return));break;case 1:zt(t,e),Bt(e),l&512&&(Qe||s===null||cn(s,s.return)),l&64&&Dn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var u=nn;if(zt(t,e),Bt(e),l&512&&(Qe||s===null||cn(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=e.memoizedState,s===null)if(l===null)if(e.stateNode===null){e:{l=e.type,s=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":h=u.getElementsByTagName("title")[0],(!h||h[ei]||h[ht]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=u.createElement(l),u.head.insertBefore(h,u.querySelector("head > title"))),ft(h,l,s),h[ht]=e,st(h),l=h;break e;case"link":var x=rp("link","href",u).get(l+(s.href||""));if(x){for(var S=0;S<x.length;S++)if(h=x[S],h.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&h.getAttribute("rel")===(s.rel==null?null:s.rel)&&h.getAttribute("title")===(s.title==null?null:s.title)&&h.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(S,1);break t}}h=u.createElement(l),ft(h,l,s),u.head.appendChild(h);break;case"meta":if(x=rp("meta","content",u).get(l+(s.content||""))){for(S=0;S<x.length;S++)if(h=x[S],h.getAttribute("content")===(s.content==null?null:""+s.content)&&h.getAttribute("name")===(s.name==null?null:s.name)&&h.getAttribute("property")===(s.property==null?null:s.property)&&h.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&h.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(S,1);break t}}h=u.createElement(l),ft(h,l,s),u.head.appendChild(h);break;default:throw Error(r(468,l))}h[ht]=e,st(h),l=h}e.stateNode=l}else op(u,e.type,e.stateNode);else e.stateNode=lp(u,l,e.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?op(u,e.type,e.stateNode):lp(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Fu(e,e.memoizedProps,s.memoizedProps)}break;case 27:zt(t,e),Bt(e),l&512&&(Qe||s===null||cn(s,s.return)),s!==null&&l&4&&Fu(e,e.memoizedProps,s.memoizedProps);break;case 5:if(zt(t,e),Bt(e),l&512&&(Qe||s===null||cn(s,s.return)),e.flags&32){u=e.stateNode;try{es(u,"")}catch(_){Be(e,e.return,_)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Fu(e,u,s!==null?s.memoizedProps:u)),l&1024&&($u=!0);break;case 6:if(zt(t,e),Bt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(_){Be(e,e.return,_)}}break;case 3:if(Cr=null,u=nn,nn=Er(t.containerInfo),zt(t,e),nn=u,Bt(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Fi(t.containerInfo)}catch(_){Be(e,e.return,_)}$u&&($u=!1,m0(e));break;case 4:l=nn,nn=Er(e.stateNode.containerInfo),zt(t,e),Bt(e),nn=l;break;case 12:zt(t,e),Bt(e);break;case 13:zt(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(ac=kt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ju(e,l)));break;case 22:u=e.memoizedState!==null;var T=s!==null&&s.memoizedState!==null,B=Dn,q=Qe;if(Dn=B||u,Qe=q||T,zt(t,e),Qe=q,Dn=B,Bt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(s===null||T||Dn||Qe||Da(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){T=s=t;try{if(h=T.stateNode,u)x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{S=T.stateNode;var G=T.memoizedProps.style,V=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(_){Be(T,T.return,_)}}}else if(t.tag===6){if(s===null){T=t;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(_){Be(T,T.return,_)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Ju(e,s))));break;case 19:zt(t,e),Bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ju(e,l)));break;case 30:break;case 21:break;default:zt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var s,l=e.return;l!==null;){if(l0(l)){s=l;break}l=l.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var u=s.stateNode,h=Zu(e);hr(e,h,u);break;case 5:var x=s.stateNode;s.flags&32&&(es(x,""),s.flags&=-33);var S=Zu(e);hr(e,S,x);break;case 3:case 4:var T=s.stateNode.containerInfo,B=Zu(e);Qu(e,B,T);break;default:throw Error(r(161))}}catch(q){Be(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function m0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;m0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)u0(e,t.alternate,t),t=t.sibling}function Da(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qn(4,t,t.return),Da(t);break;case 1:cn(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&s0(t,t.return,s),Da(t);break;case 27:ki(t.stateNode);case 26:case 5:cn(t,t.return),Da(t);break;case 22:t.memoizedState===null&&Da(t);break;case 30:Da(t);break;default:Da(t)}e=e.sibling}}function Jn(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,h=t,x=h.flags;switch(h.tag){case 0:case 11:case 15:Jn(u,h,s),Ri(4,h);break;case 1:if(Jn(u,h,s),l=h,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(B){Be(l,l.return,B)}if(l=h,u=l.updateQueue,u!==null){var S=l.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)Yh(T[u],S)}catch(B){Be(l,l.return,B)}}s&&x&64&&a0(h),Di(h,h.return);break;case 27:r0(h);case 26:case 5:Jn(u,h,s),s&&l===null&&x&4&&i0(h),Di(h,h.return);break;case 12:Jn(u,h,s);break;case 13:Jn(u,h,s),s&&x&4&&d0(u,h);break;case 22:h.memoizedState===null&&Jn(u,h,s),Di(h,h.return);break;case 30:break;default:Jn(u,h,s)}t=t.sibling}}function Wu(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&pi(s))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pi(e))}function fn(e,t,s,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)p0(e,t,s,l),t=t.sibling}function p0(e,t,s,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:fn(e,t,s,l),u&2048&&Ri(9,t);break;case 1:fn(e,t,s,l);break;case 3:fn(e,t,s,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pi(e)));break;case 12:if(u&2048){fn(e,t,s,l),e=t.stateNode;try{var h=t.memoizedProps,x=h.id,S=h.onPostCommit;typeof S=="function"&&S(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Be(t,t.return,T)}}else fn(e,t,s,l);break;case 13:fn(e,t,s,l);break;case 23:break;case 22:h=t.stateNode,x=t.alternate,t.memoizedState!==null?h._visibility&2?fn(e,t,s,l):Mi(e,t):h._visibility&2?fn(e,t,s,l):(h._visibility|=2,vs(e,t,s,l,(t.subtreeFlags&10256)!==0)),u&2048&&Wu(x,t);break;case 24:fn(e,t,s,l),u&2048&&Iu(t.alternate,t);break;default:fn(e,t,s,l)}}function vs(e,t,s,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var h=e,x=t,S=s,T=l,B=x.flags;switch(x.tag){case 0:case 11:case 15:vs(h,x,S,T,u),Ri(8,x);break;case 23:break;case 22:var q=x.stateNode;x.memoizedState!==null?q._visibility&2?vs(h,x,S,T,u):Mi(h,x):(q._visibility|=2,vs(h,x,S,T,u)),u&&B&2048&&Wu(x.alternate,x);break;case 24:vs(h,x,S,T,u),u&&B&2048&&Iu(x.alternate,x);break;default:vs(h,x,S,T,u)}t=t.sibling}}function Mi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,l=t,u=l.flags;switch(l.tag){case 22:Mi(s,l),u&2048&&Wu(l.alternate,l);break;case 24:Mi(s,l),u&2048&&Iu(l.alternate,l);break;default:Mi(s,l)}t=t.sibling}}var Oi=8192;function bs(e){if(e.subtreeFlags&Oi)for(e=e.child;e!==null;)g0(e),e=e.sibling}function g0(e){switch(e.tag){case 26:bs(e),e.flags&Oi&&e.memoizedState!==null&&Hb(nn,e.memoizedState,e.memoizedProps);break;case 5:bs(e);break;case 3:case 4:var t=nn;nn=Er(e.stateNode.containerInfo),bs(e),nn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Oi,Oi=16777216,bs(e),Oi=t):bs(e));break;default:bs(e)}}function y0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Li(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var l=t[s];lt=l,v0(l,e)}y0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)x0(e),e=e.sibling}function x0(e){switch(e.tag){case 0:case 11:case 15:Li(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:Li(e);break;case 12:Li(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,mr(e)):Li(e);break;default:Li(e)}}function mr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var l=t[s];lt=l,v0(l,e)}y0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),mr(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,mr(t));break;default:mr(t)}e=e.sibling}}function v0(e,t){for(;lt!==null;){var s=lt;switch(s.tag){case 0:case 11:case 15:Qn(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:pi(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,lt=l;else e:for(s=e;lt!==null;){l=lt;var u=l.sibling,h=l.return;if(c0(l),l===s){lt=null;break e}if(u!==null){u.return=h,lt=u;break e}lt=h}}}var nb={getCacheForType:function(e){var t=mt(nt),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s}},ab=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Ue=null,ve=null,je=0,Re=0,Ut=null,Wn=!1,Ss=!1,ec=!1,On=0,Ke=0,In=0,Ma=0,tc=0,Ft=0,ws=0,zi=null,At=null,nc=!1,ac=0,pr=1/0,gr=null,ea=null,ct=0,ta=null,js=null,Ns=0,sc=0,ic=null,b0=null,Bi=0,lc=null;function Vt(){if((Ce&2)!==0&&je!==0)return je&-je;if(H.T!==null){var e=fs;return e!==0?e:hc()}return Ud()}function S0(){Ft===0&&(Ft=(je&536870912)===0||Ee?Od():536870912);var e=Kt.current;return e!==null&&(e.flags|=32),Ft}function _t(e,t,s){(e===Ue&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(Ts(e,0),na(e,je,Ft,!1)),Is(e,s),((Ce&2)===0||e!==Ue)&&(e===Ue&&((Ce&2)===0&&(Ma|=s),Ke===4&&na(e,je,Ft,!1)),dn(e))}function w0(e,t,s){if((Ce&6)!==0)throw Error(r(327));var l=!s&&(t&124)===0&&(t&e.expiredLanes)===0||Ws(e,t),u=l?lb(e,t):uc(e,t,!0),h=l;do{if(u===0){Ss&&!l&&na(e,t,0,!1);break}else{if(s=e.current.alternate,h&&!sb(s)){u=uc(e,t,!1),h=!1;continue}if(u===2){if(h=t,e.errorRecoveryDisabledLanes&h)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var S=e;u=zi;var T=S.current.memoizedState.isDehydrated;if(T&&(Ts(S,x).flags|=256),x=uc(S,x,!1),x!==2){if(ec&&!T){S.errorRecoveryDisabledLanes|=h,Ma|=h,u=4;break e}h=At,At=u,h!==null&&(At===null?At=h:At.push.apply(At,h))}u=x}if(h=!1,u!==2)continue}}if(u===1){Ts(e,0),na(e,t,0,!0);break}e:{switch(l=e,h=u,h){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:na(l,t,Ft,!Wn);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=ac+300-kt(),10<u)){if(na(l,t,Ft,!Wn),Al(l,0,!0)!==0)break e;l.timeoutHandle=J0(j0.bind(null,l,s,At,gr,nc,t,Ft,Ma,ws,Wn,h,2,-0,0),u);break e}j0(l,s,At,gr,nc,t,Ft,Ma,ws,Wn,h,0,-0,0)}}break}while(!0);dn(e)}function j0(e,t,s,l,u,h,x,S,T,B,q,G,V,_){if(e.timeoutHandle=-1,G=t.subtreeFlags,(G&8192||(G&16785408)===16785408)&&(Pi={stylesheets:null,count:0,unsuspend:kb},g0(t),G=qb(),G!==null)){e.cancelPendingCommit=G(D0.bind(null,e,t,h,s,l,u,x,S,T,q,1,V,_)),na(e,h,x,!B);return}D0(e,t,h,s,l,u,x,S,T)}function sb(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var u=s[l],h=u.getSnapshot;u=u.value;try{if(!Ot(h(),u))return!1}catch(x){return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;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 na(e,t,s,l){t&=~tc,t&=~Ma,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var h=31-Mt(u),x=1<<h;l[h]=-1,u&=~x}s!==0&&zd(e,s,t)}function yr(){return(Ce&6)===0?(Ui(0),!1):!0}function rc(){if(ve!==null){if(Re===0)var e=ve.return;else e=ve,Nn=Ta=null,Nu(e),ys=null,Ei=0,e=ve;for(;e!==null;)n0(e.alternate,e),e=e.return;ve=null}}function Ts(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,wb(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),rc(),Ue=e,ve=s=Sn(e.current,null),je=t,Re=0,Ut=null,Wn=!1,Ss=Ws(e,t),ec=!1,ws=Ft=tc=Ma=In=Ke=0,At=zi=null,nc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-Mt(l),h=1<<u;t|=e[u],l&=~h}return On=t,kl(),s}function N0(e,t){pe=null,H.H=sr,t===yi||t===Zl?(t=qh(),Re=3):t===_h?(t=qh(),Re=4):Re=t===Pm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ut=t,ve===null&&(Ke=1,ur(e,Pt(t,e.current)))}function T0(){var e=H.H;return H.H=sr,e===null?sr:e}function E0(){var e=H.A;return H.A=nb,e}function oc(){Ke=4,Wn||(je&4194048)!==je&&Kt.current!==null||(Ss=!0),(In&134217727)===0&&(Ma&134217727)===0||Ue===null||na(Ue,je,Ft,!1)}function uc(e,t,s){var l=Ce;Ce|=2;var u=T0(),h=E0();(Ue!==e||je!==t)&&(gr=null,Ts(e,t)),t=!1;var x=Ke;e:do try{if(Re!==0&&ve!==null){var S=ve,T=Ut;switch(Re){case 8:rc(),x=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var B=Re;if(Re=0,Ut=null,Es(e,S,T,B),s&&Ss){x=0;break e}break;default:B=Re,Re=0,Ut=null,Es(e,S,T,B)}}ib(),x=Ke;break}catch(q){N0(e,q)}while(!0);return t&&e.shellSuspendCounter++,Nn=Ta=null,Ce=l,H.H=u,H.A=h,ve===null&&(Ue=null,je=0,kl()),x}function ib(){for(;ve!==null;)A0(ve)}function lb(e,t){var s=Ce;Ce|=2;var l=T0(),u=E0();Ue!==e||je!==t?(gr=null,pr=kt()+500,Ts(e,t)):Ss=Ws(e,t);e:do try{if(Re!==0&&ve!==null){t=ve;var h=Ut;t:switch(Re){case 1:Re=0,Ut=null,Es(e,t,h,1);break;case 2:case 9:if(kh(h)){Re=0,Ut=null,C0(t);break}t=function(){Re!==2&&Re!==9||Ue!==e||(Re=7),dn(e)},h.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:kh(h)?(Re=0,Ut=null,C0(t)):(Re=0,Ut=null,Es(e,t,h,7));break;case 5:var x=null;switch(ve.tag){case 26:x=ve.memoizedState;case 5:case 27:var S=ve;if(!x||up(x)){Re=0,Ut=null;var T=S.sibling;if(T!==null)ve=T;else{var B=S.return;B!==null?(ve=B,xr(B)):ve=null}break t}}Re=0,Ut=null,Es(e,t,h,5);break;case 6:Re=0,Ut=null,Es(e,t,h,6);break;case 8:rc(),Ke=6;break e;default:throw Error(r(462))}}rb();break}catch(q){N0(e,q)}while(!0);return Nn=Ta=null,H.H=l,H.A=u,Ce=s,ve!==null?0:(Ue=null,je=0,kl(),Ke)}function rb(){for(;ve!==null&&!wo();)A0(ve)}function A0(e){var t=e0(e.alternate,e,On);e.memoizedProps=e.pendingProps,t===null?xr(e):ve=t}function C0(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=Zm(s,t,t.pendingProps,t.type,void 0,je);break;case 11:t=Zm(s,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:Nu(t);default:n0(s,t),t=ve=Rh(t,On),t=e0(s,t,On)}e.memoizedProps=e.pendingProps,t===null?xr(e):ve=t}function Es(e,t,s,l){Nn=Ta=null,Nu(t),ys=null,Ei=0;var u=t.return;try{if($v(e,u,t,s,je)){Ke=1,ur(e,Pt(s,e.current)),ve=null;return}}catch(h){if(u!==null)throw ve=u,h;Ke=1,ur(e,Pt(s,e.current)),ve=null;return}t.flags&32768?(Ee||l===1?e=!0:Ss||(je&536870912)!==0?e=!1:(Wn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Kt.current,l!==null&&l.tag===13&&(l.flags|=16384))),R0(t,e)):xr(t)}function xr(e){var t=e;do{if((t.flags&32768)!==0){R0(t,Wn);return}e=t.return;var s=Wv(t.alternate,t,On);if(s!==null){ve=s;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Ke===0&&(Ke=5)}function R0(e,t){do{var s=Iv(e.alternate,e);if(s!==null){s.flags&=32767,ve=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=s}while(e!==null);Ke=6,ve=null}function D0(e,t,s,l,u,h,x,S,T){e.cancelPendingCommit=null;do vr();while(ct!==0);if((Ce&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(h=t.lanes|t.childLanes,h|=Io,k1(e,s,h,x,S,T),e===Ue&&(ve=Ue=null,je=0),js=t,ta=e,Ns=s,sc=h,ic=u,b0=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fb(Ka,function(){return B0(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,u=F.p,F.p=2,x=Ce,Ce|=4;try{eb(e,t,s)}finally{Ce=x,F.p=u,H.T=l}}ct=1,M0(),O0(),L0()}}function M0(){if(ct===1){ct=0;var e=ta,t=js,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=H.T,H.T=null;var l=F.p;F.p=2;var u=Ce;Ce|=4;try{h0(t,e);var h=Sc,x=vh(e.containerInfo),S=h.focusedElem,T=h.selectionRange;if(x!==S&&S&&S.ownerDocument&&xh(S.ownerDocument.documentElement,S)){if(T!==null&&Zo(S)){var B=T.start,q=T.end;if(q===void 0&&(q=B),"selectionStart"in S)S.selectionStart=B,S.selectionEnd=Math.min(q,S.value.length);else{var G=S.ownerDocument||document,V=G&&G.defaultView||window;if(V.getSelection){var _=V.getSelection(),re=S.textContent.length,se=Math.min(T.start,re),Oe=T.end===void 0?se:Math.min(T.end,re);!_.extend&&se>Oe&&(x=Oe,Oe=se,se=x);var D=yh(S,se),R=yh(S,Oe);if(D&&R&&(_.rangeCount!==1||_.anchorNode!==D.node||_.anchorOffset!==D.offset||_.focusNode!==R.node||_.focusOffset!==R.offset)){var z=G.createRange();z.setStart(D.node,D.offset),_.removeAllRanges(),se>Oe?(_.addRange(z),_.extend(R.node,R.offset)):(z.setEnd(R.node,R.offset),_.addRange(z))}}}}for(G=[],_=S;_=_.parentNode;)_.nodeType===1&&G.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<G.length;S++){var P=G[S];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Mr=!!bc,Sc=bc=null}finally{Ce=u,F.p=l,H.T=s}}e.current=t,ct=2}}function O0(){if(ct===2){ct=0;var e=ta,t=js,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=H.T,H.T=null;var l=F.p;F.p=2;var u=Ce;Ce|=4;try{u0(e,t.alternate,t)}finally{Ce=u,F.p=l,H.T=s}}ct=3}}function L0(){if(ct===4||ct===3){ct=0,jo();var e=ta,t=js,s=Ns,l=b0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,js=ta=null,z0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ea=null),Ao(s),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(vt,t,void 0,(t.current.flags&128)===128)}catch(T){}if(l!==null){t=H.T,u=F.p,F.p=2,H.T=null;try{for(var h=e.onRecoverableError,x=0;x<l.length;x++){var S=l[x];h(S.value,{componentStack:S.stack})}}finally{H.T=t,F.p=u}}(Ns&3)!==0&&vr(),dn(e),u=e.pendingLanes,(s&4194090)!==0&&(u&42)!==0?e===lc?Bi++:(Bi=0,lc=e):Bi=0,Ui(0)}}function z0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pi(t)))}function vr(e){return M0(),O0(),L0(),B0()}function B0(){if(ct!==5)return!1;var e=ta,t=sc;sc=0;var s=Ao(Ns),l=H.T,u=F.p;try{F.p=32>s?32:s,H.T=null,s=ic,ic=null;var h=ta,x=Ns;if(ct=0,js=ta=null,Ns=0,(Ce&6)!==0)throw Error(r(331));var S=Ce;if(Ce|=4,x0(h.current),p0(h,h.current,x,s),Ce=S,Ui(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(vt,h)}catch(T){}return!0}finally{F.p=u,H.T=l,z0(e,t)}}function U0(e,t,s){t=Pt(s,t),t=_u(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(Is(e,2),dn(e))}function Be(e,t,s){if(e.tag===3)U0(e,e,s);else for(;t!==null;){if(t.tag===3){U0(t,e,s);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ea===null||!ea.has(l))){e=Pt(s,e),s=Hm(2),l=Xn(t,s,2),l!==null&&(qm(s,l,t,e),Is(l,2),dn(l));break}}t=t.return}}function cc(e,t,s){var l=e.pingCache;if(l===null){l=e.pingCache=new ab;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(s)||(ec=!0,u.add(s),e=ob.bind(null,e,t,s),t.then(e,e))}function ob(e,t,s){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Ue===e&&(je&s)===s&&(Ke===4||Ke===3&&(je&62914560)===je&&300>kt()-ac?(Ce&2)===0&&Ts(e,0):tc|=s,ws===je&&(ws=0)),dn(e)}function V0(e,t){t===0&&(t=Ld()),e=rs(e,t),e!==null&&(Is(e,t),dn(e))}function ub(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),V0(e,s)}function cb(e,t){var s=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(s=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),V0(e,s)}function fb(e,t){return Qs(e,t)}var br=null,As=null,fc=!1,Sr=!1,dc=!1,Oa=0;function dn(e){e!==As&&e.next===null&&(As===null?br=As=e:As=As.next=e),Sr=!0,fc||(fc=!0,hb())}function Ui(e,t){if(!dc&&Sr){dc=!0;do for(var s=!1,l=br;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var h=0;else{var x=l.suspendedLanes,S=l.pingedLanes;h=(1<<31-Mt(42|e)+1)-1,h&=u&~(x&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(s=!0,q0(l,h))}else h=je,h=Al(l,l===Ue?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||Ws(l,h)||(s=!0,q0(l,h));l=l.next}while(s);dc=!1}}function db(){_0()}function _0(){Sr=fc=!1;var e=0;Oa!==0&&(Sb()&&(e=Oa),Oa=0);for(var t=kt(),s=null,l=br;l!==null;){var u=l.next,h=k0(l,t);h===0?(l.next=null,s===null?br=u:s.next=u,u===null&&(As=s)):(s=l,(e!==0||(h&3)!==0)&&(Sr=!0)),l=u}Ui(e)}function k0(e,t){for(var s=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var x=31-Mt(h),S=1<<x,T=u[x];T===-1?((S&s)===0||(S&l)!==0)&&(u[x]=_1(S,t)):T<=t&&(e.expiredLanes|=S),h&=~S}if(t=Ue,s=je,s=Al(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Xa(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||Ws(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(l!==null&&Xa(l),Ao(s)){case 2:case 8:s=Js;break;case 32:s=Ka;break;case 268435456:s=Ne;break;default:s=Ka}return l=H0.bind(null,e),s=Qs(s,l),e.callbackPriority=t,e.callbackNode=s,t}return l!==null&&l!==null&&Xa(l),e.callbackPriority=2,e.callbackNode=null,2}function H0(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(vr()&&e.callbackNode!==s)return null;var l=je;return l=Al(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(w0(e,l,t),k0(e,kt()),e.callbackNode!=null&&e.callbackNode===s?H0.bind(null,e):null)}function q0(e,t){if(vr())return null;w0(e,t,!0)}function hb(){jb(function(){(Ce&6)!==0?Qs($s,db):_0()})}function hc(){return Oa===0&&(Oa=Od()),Oa}function P0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ol(""+e)}function Y0(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function mb(e,t,s,l,u){if(t==="submit"&&s&&s.stateNode===u){var h=P0((u[jt]||null).action),x=l.submitter;x&&(t=(t=x[jt]||null)?P0(t.formAction):x.getAttribute("formAction"),t!==null&&(h=t,x=null));var S=new Ul("action","action",null,l,u);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Oa!==0){var T=x?Y0(u,x):new FormData(u);Lu(s,{pending:!0,data:T,method:u.method,action:h},null,T)}}else typeof h=="function"&&(S.preventDefault(),T=x?Y0(u,x):new FormData(u),Lu(s,{pending:!0,data:T,method:u.method,action:h},h,T))},currentTarget:u}]})}}for(var mc=0;mc<Wo.length;mc++){var pc=Wo[mc],pb=pc.toLowerCase(),gb=pc[0].toUpperCase()+pc.slice(1);tn(pb,"on"+gb)}tn(wh,"onAnimationEnd"),tn(jh,"onAnimationIteration"),tn(Nh,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(Lv,"onTransitionRun"),tn(zv,"onTransitionStart"),tn(Bv,"onTransitionCancel"),tn(Th,"onTransitionEnd"),Ja("onMouseEnter",["mouseout","mouseover"]),Ja("onMouseLeave",["mouseout","mouseover"]),Ja("onPointerEnter",["pointerout","pointerover"]),Ja("onPointerLeave",["pointerout","pointerover"]),ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ga("onBeforeInput",["compositionend","keypress","textInput","paste"]),ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vi="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(" "),yb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vi));function G0(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],u=l.event;l=l.listeners;e:{var h=void 0;if(t)for(var x=l.length-1;0<=x;x--){var S=l[x],T=S.instance,B=S.currentTarget;if(S=S.listener,T!==h&&u.isPropagationStopped())break e;h=S,u.currentTarget=B;try{h(u)}catch(q){or(q)}u.currentTarget=null,h=T}else for(x=0;x<l.length;x++){if(S=l[x],T=S.instance,B=S.currentTarget,S=S.listener,T!==h&&u.isPropagationStopped())break e;h=S,u.currentTarget=B;try{h(u)}catch(q){or(q)}u.currentTarget=null,h=T}}}}function be(e,t){var s=t[Co];s===void 0&&(s=t[Co]=new Set);var l=e+"__bubble";s.has(l)||(X0(t,e,2,!1),s.add(l))}function gc(e,t,s){var l=0;t&&(l|=4),X0(s,e,l,t)}var wr="_reactListening"+Math.random().toString(36).slice(2);function yc(e){if(!e[wr]){e[wr]=!0,_d.forEach(function(s){s!=="selectionchange"&&(yb.has(s)||gc(s,!1,e),gc(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wr]||(t[wr]=!0,gc("selectionchange",!1,t))}}function X0(e,t,s,l){switch(pp(t)){case 2:var u=Gb;break;case 8:u=Xb;break;default:u=Mc}s=u.bind(null,t,s,e),u=void 0,!ko||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,s,{capture:!0,passive:u}):e.addEventListener(t,s,!0):u!==void 0?e.addEventListener(t,s,{passive:u}):e.addEventListener(t,s,!1)}function xc(e,t,s,l,u){var h=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var S=l.stateNode.containerInfo;if(S===u)break;if(x===4)for(x=l.return;x!==null;){var T=x.tag;if((T===3||T===4)&&x.stateNode.containerInfo===u)return;x=x.return}for(;S!==null;){if(x=Za(S),x===null)return;if(T=x.tag,T===5||T===6||T===26||T===27){l=h=x;continue e}S=S.parentNode}}l=l.return}Wd(function(){var B=h,q=Vo(s),G=[];e:{var V=Eh.get(e);if(V!==void 0){var _=Ul,re=e;switch(e){case"keypress":if(zl(s)===0)break e;case"keydown":case"keyup":_=fv;break;case"focusin":re="focus",_=Yo;break;case"focusout":re="blur",_=Yo;break;case"beforeblur":case"afterblur":_=Yo;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=th;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=I1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=mv;break;case wh:case jh:case Nh:_=nv;break;case Th:_=gv;break;case"scroll":case"scrollend":_=J1;break;case"wheel":_=xv;break;case"copy":case"cut":case"paste":_=sv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=ah;break;case"toggle":case"beforetoggle":_=bv}var se=(t&4)!==0,Oe=!se&&(e==="scroll"||e==="scrollend"),D=se?V!==null?V+"Capture":null:V;se=[];for(var R=B,z;R!==null;){var P=R;if(z=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||z===null||D===null||(P=ni(R,D),P!=null&&se.push(_i(R,P,z))),Oe)break;R=R.return}0<se.length&&(V=new _(V,re,null,s,q),G.push({event:V,listeners:se}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",V&&s!==Uo&&(re=s.relatedTarget||s.fromElement)&&(Za(re)||re[Fa]))break e;if((_||V)&&(V=q.window===q?q:(V=q.ownerDocument)?V.defaultView||V.parentWindow:window,_?(re=s.relatedTarget||s.toElement,_=B,re=re?Za(re):null,re!==null&&(Oe=c(re),se=re.tag,re!==Oe||se!==5&&se!==27&&se!==6)&&(re=null)):(_=null,re=B),_!==re)){if(se=th,P="onMouseLeave",D="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(se=ah,P="onPointerLeave",D="onPointerEnter",R="pointer"),Oe=_==null?V:ti(_),z=re==null?V:ti(re),V=new se(P,R+"leave",_,s,q),V.target=Oe,V.relatedTarget=z,P=null,Za(q)===B&&(se=new se(D,R+"enter",re,s,q),se.target=z,se.relatedTarget=Oe,P=se),Oe=P,_&&re)t:{for(se=_,D=re,R=0,z=se;z;z=Cs(z))R++;for(z=0,P=D;P;P=Cs(P))z++;for(;0<R-z;)se=Cs(se),R--;for(;0<z-R;)D=Cs(D),z--;for(;R--;){if(se===D||D!==null&&se===D.alternate)break t;se=Cs(se),D=Cs(D)}se=null}else se=null;_!==null&&K0(G,V,_,se,!1),re!==null&&Oe!==null&&K0(G,Oe,re,se,!0)}}e:{if(V=B?ti(B):window,_=V.nodeName&&V.nodeName.toLowerCase(),_==="select"||_==="input"&&V.type==="file")var te=fh;else if(uh(V))if(dh)te=Dv;else{te=Cv;var ye=Av}else _=V.nodeName,!_||_.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?B&&Bo(B.elementType)&&(te=fh):te=Rv;if(te&&(te=te(e,B))){ch(G,te,s,q);break e}ye&&ye(e,V,B),e==="focusout"&&B&&V.type==="number"&&B.memoizedProps.value!=null&&zo(V,"number",V.value)}switch(ye=B?ti(B):window,e){case"focusin":(uh(ye)||ye.contentEditable==="true")&&(ss=ye,Qo=B,ci=null);break;case"focusout":ci=Qo=ss=null;break;case"mousedown":$o=!0;break;case"contextmenu":case"mouseup":case"dragend":$o=!1,bh(G,s,q);break;case"selectionchange":if(Ov)break;case"keydown":case"keyup":bh(G,s,q)}var ae;if(Xo)e:{switch(e){case"compositionstart":var ie="onCompositionStart";break e;case"compositionend":ie="onCompositionEnd";break e;case"compositionupdate":ie="onCompositionUpdate";break e}ie=void 0}else as?rh(e,s)&&(ie="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(ie="onCompositionStart");ie&&(sh&&s.locale!=="ko"&&(as||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&as&&(ae=Id()):(qn=q,Ho="value"in qn?qn.value:qn.textContent,as=!0)),ye=jr(B,ie),0<ye.length&&(ie=new nh(ie,e,null,s,q),G.push({event:ie,listeners:ye}),ae?ie.data=ae:(ae=oh(s),ae!==null&&(ie.data=ae)))),(ae=wv?jv(e,s):Nv(e,s))&&(ie=jr(B,"onBeforeInput"),0<ie.length&&(ye=new nh("onBeforeInput","beforeinput",null,s,q),G.push({event:ye,listeners:ie}),ye.data=ae)),mb(G,e,B,s,q)}G0(G,t)})}function _i(e,t,s){return{instance:e,listener:t,currentTarget:s}}function jr(e,t){for(var s=t+"Capture",l=[];e!==null;){var u=e,h=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||h===null||(u=ni(e,s),u!=null&&l.unshift(_i(e,u,h)),u=ni(e,t),u!=null&&l.push(_i(e,u,h))),e.tag===3)return l;e=e.return}return[]}function Cs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function K0(e,t,s,l,u){for(var h=t._reactName,x=[];s!==null&&s!==l;){var S=s,T=S.alternate,B=S.stateNode;if(S=S.tag,T!==null&&T===l)break;S!==5&&S!==26&&S!==27||B===null||(T=B,u?(B=ni(s,h),B!=null&&x.unshift(_i(s,B,T))):u||(B=ni(s,h),B!=null&&x.push(_i(s,B,T)))),s=s.return}x.length!==0&&e.push({event:t,listeners:x})}var xb=/\r\n?/g,vb=/\u0000|\uFFFD/g;function F0(e){return(typeof e=="string"?e:""+e).replace(xb,`
49
- `).replace(vb,"")}function Z0(e,t){return t=F0(t),F0(e)===t}function Nr(){}function Me(e,t,s,l,u,h){switch(s){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||es(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&es(e,""+l);break;case"className":Rl(e,"class",l);break;case"tabIndex":Rl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Rl(e,s,l);break;case"style":$d(e,l,h);break;case"data":if(t!=="object"){Rl(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=Ol(""+l),e.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(s==="formAction"?(t!=="input"&&Me(e,t,"name",u.name,u,null),Me(e,t,"formEncType",u.formEncType,u,null),Me(e,t,"formMethod",u.formMethod,u,null),Me(e,t,"formTarget",u.formTarget,u,null)):(Me(e,t,"encType",u.encType,u,null),Me(e,t,"method",u.method,u,null),Me(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=Ol(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=Nr);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}s=Ol(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""+l):e.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":l===!0?e.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,l):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(s,l):e.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(s):e.setAttribute(s,l);break;case"popover":be("beforetoggle",e),be("toggle",e),Cl(e,"popover",l);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Cl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=Q1.get(s)||s,Cl(e,s,l))}}function vc(e,t,s,l,u,h){switch(s){case"style":$d(e,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"children":typeof l=="string"?es(e,l):(typeof l=="number"||typeof l=="bigint")&&es(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Nr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kd.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),t=s.slice(2,u?s.length-7:void 0),h=e[jt]||null,h=h!=null?h[s]:null,typeof h=="function"&&e.removeEventListener(t,h,u),typeof l=="function")){typeof h!="function"&&h!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,l,u);break e}s in e?e[s]=l:l===!0?e.setAttribute(s,""):Cl(e,s,l)}}}function ft(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,u=!1,h;for(h in s)if(s.hasOwnProperty(h)){var x=s[h];if(x!=null)switch(h){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Me(e,t,h,x,s,null)}}u&&Me(e,t,"srcSet",s.srcSet,s,null),l&&Me(e,t,"src",s.src,s,null);return;case"input":be("invalid",e);var S=h=x=u=null,T=null,B=null;for(l in s)if(s.hasOwnProperty(l)){var q=s[l];if(q!=null)switch(l){case"name":u=q;break;case"type":x=q;break;case"checked":T=q;break;case"defaultChecked":B=q;break;case"value":h=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:Me(e,t,l,q,s,null)}}Kd(e,h,S,T,B,x,u,!1),Dl(e);return;case"select":be("invalid",e),l=x=h=null;for(u in s)if(s.hasOwnProperty(u)&&(S=s[u],S!=null))switch(u){case"value":h=S;break;case"defaultValue":x=S;break;case"multiple":l=S;default:Me(e,t,u,S,s,null)}t=h,s=x,e.multiple=!!l,t!=null?Ia(e,!!l,t,!1):s!=null&&Ia(e,!!l,s,!0);return;case"textarea":be("invalid",e),h=u=l=null;for(x in s)if(s.hasOwnProperty(x)&&(S=s[x],S!=null))switch(x){case"value":l=S;break;case"defaultValue":u=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Me(e,t,x,S,s,null)}Zd(e,l,u,h),Dl(e);return;case"option":for(T in s)if(s.hasOwnProperty(T)&&(l=s[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Me(e,t,T,l,s,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<Vi.length;l++)be(Vi[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in s)if(s.hasOwnProperty(B)&&(l=s[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Me(e,t,B,l,s,null)}return;default:if(Bo(t)){for(q in s)s.hasOwnProperty(q)&&(l=s[q],l!==void 0&&vc(e,t,q,l,s,void 0));return}}for(S in s)s.hasOwnProperty(S)&&(l=s[S],l!=null&&Me(e,t,S,l,s,null))}function bb(e,t,s,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,h=null,x=null,S=null,T=null,B=null,q=null;for(_ in s){var G=s[_];if(s.hasOwnProperty(_)&&G!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":T=G;default:l.hasOwnProperty(_)||Me(e,t,_,null,l,G)}}for(var V in l){var _=l[V];if(G=s[V],l.hasOwnProperty(V)&&(_!=null||G!=null))switch(V){case"type":h=_;break;case"name":u=_;break;case"checked":B=_;break;case"defaultChecked":q=_;break;case"value":x=_;break;case"defaultValue":S=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_!==G&&Me(e,t,V,_,l,G)}}Lo(e,x,S,T,B,q,h,u);return;case"select":_=x=S=V=null;for(h in s)if(T=s[h],s.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":_=T;default:l.hasOwnProperty(h)||Me(e,t,h,null,l,T)}for(u in l)if(h=l[u],T=s[u],l.hasOwnProperty(u)&&(h!=null||T!=null))switch(u){case"value":V=h;break;case"defaultValue":S=h;break;case"multiple":x=h;default:h!==T&&Me(e,t,u,h,l,T)}t=S,s=x,l=_,V!=null?Ia(e,!!s,V,!1):!!l!=!!s&&(t!=null?Ia(e,!!s,t,!0):Ia(e,!!s,s?[]:"",!1));return;case"textarea":_=V=null;for(S in s)if(u=s[S],s.hasOwnProperty(S)&&u!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Me(e,t,S,null,l,u)}for(x in l)if(u=l[x],h=s[x],l.hasOwnProperty(x)&&(u!=null||h!=null))switch(x){case"value":V=u;break;case"defaultValue":_=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==h&&Me(e,t,x,u,l,h)}Fd(e,V,_);return;case"option":for(var re in s)if(V=s[re],s.hasOwnProperty(re)&&V!=null&&!l.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Me(e,t,re,null,l,V)}for(T in l)if(V=l[T],_=s[T],l.hasOwnProperty(T)&&V!==_&&(V!=null||_!=null))switch(T){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Me(e,t,T,V,l,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var se in s)V=s[se],s.hasOwnProperty(se)&&V!=null&&!l.hasOwnProperty(se)&&Me(e,t,se,null,l,V);for(B in l)if(V=l[B],_=s[B],l.hasOwnProperty(B)&&V!==_&&(V!=null||_!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,t));break;default:Me(e,t,B,V,l,_)}return;default:if(Bo(t)){for(var Oe in s)V=s[Oe],s.hasOwnProperty(Oe)&&V!==void 0&&!l.hasOwnProperty(Oe)&&vc(e,t,Oe,void 0,l,V);for(q in l)V=l[q],_=s[q],!l.hasOwnProperty(q)||V===_||V===void 0&&_===void 0||vc(e,t,q,V,l,_);return}}for(var D in s)V=s[D],s.hasOwnProperty(D)&&V!=null&&!l.hasOwnProperty(D)&&Me(e,t,D,null,l,V);for(G in l)V=l[G],_=s[G],!l.hasOwnProperty(G)||V===_||V==null&&_==null||Me(e,t,G,V,l,_)}var bc=null,Sc=null;function Tr(e){return e.nodeType===9?e:e.ownerDocument}function Q0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var jc=null;function Sb(){var e=window.event;return e&&e.type==="popstate"?e===jc?!1:(jc=e,!0):(jc=null,!1)}var J0=typeof setTimeout=="function"?setTimeout:void 0,wb=typeof clearTimeout=="function"?clearTimeout:void 0,W0=typeof Promise=="function"?Promise:void 0,jb=typeof queueMicrotask=="function"?queueMicrotask:typeof W0!="undefined"?function(e){return W0.resolve(null).then(e).catch(Nb)}:J0;function Nb(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function I0(e,t){var s=t,l=0,u=0;do{var h=s.nextSibling;if(e.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(0<l&&8>l){s=l;var x=e.ownerDocument;if(s&1&&ki(x.documentElement),s&2&&ki(x.body),s&4)for(s=x.head,ki(s),x=s.firstChild;x;){var S=x.nextSibling,T=x.nodeName;x[ei]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&x.rel.toLowerCase()==="stylesheet"||s.removeChild(x),x=S}}if(u===0){e.removeChild(h),Fi(t);return}u--}else s==="$"||s==="$?"||s==="$!"?u++:l=s.charCodeAt(0)-48;else l=0;s=h}while(s);Fi(t)}function Nc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Nc(s),Ro(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function Tb(e,t,s,l){for(;e.nodeType===1;){var u=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ei])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function Eb(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=an(e.nextSibling),e===null))return null;return e}function Tc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Ab(e,t){var s=e.ownerDocument;if(e.data!=="$?"||s.readyState==="complete")t();else{var l=function(){t(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function an(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Ec=null;function ep(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(t===0)return e;t--}else s==="/$"&&t++}e=e.previousSibling}return null}function tp(e,t,s){switch(t=Tr(s),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ki(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ro(e)}var Zt=new Map,np=new Set;function Er(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ln=F.d;F.d={f:Cb,r:Rb,D:Db,C:Mb,L:Ob,m:Lb,X:Bb,S:zb,M:Ub};function Cb(){var e=Ln.f(),t=yr();return e||t}function Rb(e){var t=Qa(e);t!==null&&t.tag===5&&t.type==="form"?wm(t):Ln.r(e)}var Rs=typeof document=="undefined"?null:document;function ap(e,t,s){var l=Rs;if(l&&typeof t=="string"&&t){var u=qt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),np.has(u)||(np.add(u),e={rel:e,crossOrigin:s,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),ft(t,"link",e),st(t),l.head.appendChild(t)))}}function Db(e){Ln.D(e),ap("dns-prefetch",e,null)}function Mb(e,t){Ln.C(e,t),ap("preconnect",e,t)}function Ob(e,t,s){Ln.L(e,t,s);var l=Rs;if(l&&e&&t){var u='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+qt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+qt(s.imageSizes)+'"]')):u+='[href="'+qt(e)+'"]';var h=u;switch(t){case"style":h=Ds(e);break;case"script":h=Ms(e)}Zt.has(h)||(e=y({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),Zt.set(h,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Hi(h))||t==="script"&&l.querySelector(qi(h))||(t=l.createElement("link"),ft(t,"link",e),st(t),l.head.appendChild(t)))}}function Lb(e,t){Ln.m(e,t);var s=Rs;if(s&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+qt(l)+'"][href="'+qt(e)+'"]',h=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ms(e)}if(!Zt.has(h)&&(e=y({rel:"modulepreload",href:e},t),Zt.set(h,e),s.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(qi(h)))return}l=s.createElement("link"),ft(l,"link",e),st(l),s.head.appendChild(l)}}}function zb(e,t,s){Ln.S(e,t,s);var l=Rs;if(l&&e){var u=$a(l).hoistableStyles,h=Ds(e);t=t||"default";var x=u.get(h);if(!x){var S={loading:0,preload:null};if(x=l.querySelector(Hi(h)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},s),(s=Zt.get(h))&&Ac(e,s);var T=x=l.createElement("link");st(T),ft(T,"link",e),T._p=new Promise(function(B,q){T.onload=B,T.onerror=q}),T.addEventListener("load",function(){S.loading|=1}),T.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Ar(x,t,l)}x={type:"stylesheet",instance:x,count:1,state:S},u.set(h,x)}}}function Bb(e,t){Ln.X(e,t);var s=Rs;if(s&&e){var l=$a(s).hoistableScripts,u=Ms(e),h=l.get(u);h||(h=s.querySelector(qi(u)),h||(e=y({src:e,async:!0},t),(t=Zt.get(u))&&Cc(e,t),h=s.createElement("script"),st(h),ft(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(u,h))}}function Ub(e,t){Ln.M(e,t);var s=Rs;if(s&&e){var l=$a(s).hoistableScripts,u=Ms(e),h=l.get(u);h||(h=s.querySelector(qi(u)),h||(e=y({src:e,async:!0,type:"module"},t),(t=Zt.get(u))&&Cc(e,t),h=s.createElement("script"),st(h),ft(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(u,h))}}function sp(e,t,s,l){var u=(u=ue.current)?Er(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=Ds(s.href),s=$a(u).hoistableStyles,l=s.get(t),l||(l={type:"style",instance:null,count:0,state:null},s.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Ds(s.href);var h=$a(u).hoistableStyles,x=h.get(e);if(x||(u=u.ownerDocument||u,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,x),(h=u.querySelector(Hi(e)))&&!h._p&&(x.instance=h,x.state.loading=5),Zt.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Zt.set(e,s),h||Vb(u,e,s,x.state))),t&&l===null)throw Error(r(528,""));return x}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ms(s),s=$a(u).hoistableScripts,l=s.get(t),l||(l={type:"script",instance:null,count:0,state:null},s.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ds(e){return'href="'+qt(e)+'"'}function Hi(e){return'link[rel="stylesheet"]['+e+"]"}function ip(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Vb(e,t,s,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ft(t,"link",s),st(t),e.head.appendChild(t))}function Ms(e){return'[src="'+qt(e)+'"]'}function qi(e){return"script[async]"+e}function lp(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+qt(s.href)+'"]');if(l)return t.instance=l,st(l),l;var u=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),st(l),ft(l,"style",u),Ar(l,s.precedence,e),t.instance=l;case"stylesheet":u=Ds(s.href);var h=e.querySelector(Hi(u));if(h)return t.state.loading|=4,t.instance=h,st(h),h;l=ip(s),(u=Zt.get(u))&&Ac(l,u),h=(e.ownerDocument||e).createElement("link"),st(h);var x=h;return x._p=new Promise(function(S,T){x.onload=S,x.onerror=T}),ft(h,"link",l),t.state.loading|=4,Ar(h,s.precedence,e),t.instance=h;case"script":return h=Ms(s.src),(u=e.querySelector(qi(h)))?(t.instance=u,st(u),u):(l=s,(u=Zt.get(h))&&(l=y({},s),Cc(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),st(u),ft(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ar(l,s.precedence,e));return t.instance}function Ar(e,t,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,h=u,x=0;x<l.length;x++){var S=l[x];if(S.dataset.precedence===t)h=S;else if(h!==u)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function Ac(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cr=null;function rp(e,t,s){if(Cr===null){var l=new Map,u=Cr=new Map;u.set(s,l)}else u=Cr,l=u.get(s),l||(l=new Map,u.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),u=0;u<s.length;u++){var h=s[u];if(!(h[ei]||h[ht]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var x=h.getAttribute(t)||"";x=e+x;var S=l.get(x);S?S.push(h):l.set(x,[h])}}return l}function op(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function _b(e,t,s){if(s===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function up(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Pi=null;function kb(){}function Hb(e,t,s){if(Pi===null)throw Error(r(475));var l=Pi;if(t.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Ds(s.href),h=e.querySelector(Hi(u));if(h){e=h._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Rr.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=h,st(h);return}h=e.ownerDocument||e,s=ip(s),(u=Zt.get(u))&&Ac(s,u),h=h.createElement("link"),st(h);var x=h;x._p=new Promise(function(S,T){x.onload=S,x.onerror=T}),ft(h,"link",s),t.instance=h}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=Rr.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function qb(){if(Pi===null)throw Error(r(475));var e=Pi;return e.stylesheets&&e.count===0&&Rc(e,e.stylesheets),0<e.count?function(t){var s=setTimeout(function(){if(e.stylesheets&&Rc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(s)}}:null}function Rr(){if(this.count--,this.count===0){if(this.stylesheets)Rc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Dr=null;function Rc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Dr=new Map,t.forEach(Pb,e),Dr=null,Rr.call(e))}function Pb(e,t){if(!(t.state.loading&4)){var s=Dr.get(e);if(s)var l=s.get(null);else{s=new Map,Dr.set(e,s);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<u.length;h++){var x=u[h];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(s.set(x.dataset.precedence,x),l=x)}l&&s.set(null,l)}u=t.instance,x=u.getAttribute("data-precedence"),h=s.get(x)||l,h===l&&s.set(null,u),s.set(x,u),this.count++,l=Rr.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),h?h.parentNode.insertBefore(u,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Yi={$$typeof:M,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Yb(e,t,s,l,u,h,x,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=To(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=To(0),this.hiddenUpdates=To(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=h,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function cp(e,t,s,l,u,h,x,S,T,B,q,G){return e=new Yb(e,t,s,x,S,T,B,G),t=1,h===!0&&(t|=24),h=Lt(3,null,null,t),e.current=h,h.stateNode=e,t=cu(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:t},mu(h),e}function fp(e){return e?(e=os,e):os}function dp(e,t,s,l,u,h){u=fp(u),l.context===null?l.context=u:l.pendingContext=u,l=Gn(t),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=Xn(e,l,t),s!==null&&(_t(s,e,t),vi(s,e,t))}function hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function Dc(e,t){hp(e,t),(e=e.alternate)&&hp(e,t)}function mp(e){if(e.tag===13){var t=rs(e,67108864);t!==null&&_t(t,e,67108864),Dc(e,67108864)}}var Mr=!0;function Gb(e,t,s,l){var u=H.T;H.T=null;var h=F.p;try{F.p=2,Mc(e,t,s,l)}finally{F.p=h,H.T=u}}function Xb(e,t,s,l){var u=H.T;H.T=null;var h=F.p;try{F.p=8,Mc(e,t,s,l)}finally{F.p=h,H.T=u}}function Mc(e,t,s,l){if(Mr){var u=Oc(l);if(u===null)xc(e,t,l,Or,s),gp(e,l);else if(Fb(u,e,t,s,l))l.stopPropagation();else if(gp(e,l),t&4&&-1<Kb.indexOf(e)){for(;u!==null;){var h=Qa(u);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var x=pa(h.pendingLanes);if(x!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;x;){var T=1<<31-Mt(x);S.entanglements[1]|=T,x&=~T}dn(h),(Ce&6)===0&&(pr=kt()+500,Ui(0))}}break;case 13:S=rs(h,2),S!==null&&_t(S,h,2),yr(),Dc(h,2)}if(h=Oc(l),h===null&&xc(e,t,l,Or,s),h===u)break;u=h}u!==null&&l.stopPropagation()}else xc(e,t,l,null,s)}}function Oc(e){return e=Vo(e),Lc(e)}var Or=null;function Lc(e){if(Or=null,e=Za(e),e!==null){var t=c(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=d(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Or=e,null}function pp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(No()){case $s:return 2;case Js:return 8;case Ka:case I:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var zc=!1,sa=null,ia=null,la=null,Gi=new Map,Xi=new Map,ra=[],Kb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function gp(e,t){switch(e){case"focusin":case"focusout":sa=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xi.delete(t.pointerId)}}function Ki(e,t,s,l,u,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[u]},t!==null&&(t=Qa(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Fb(e,t,s,l,u){switch(t){case"focusin":return sa=Ki(sa,e,t,s,l,u),!0;case"dragenter":return ia=Ki(ia,e,t,s,l,u),!0;case"mouseover":return la=Ki(la,e,t,s,l,u),!0;case"pointerover":var h=u.pointerId;return Gi.set(h,Ki(Gi.get(h)||null,e,t,s,l,u)),!0;case"gotpointercapture":return h=u.pointerId,Xi.set(h,Ki(Xi.get(h)||null,e,t,s,l,u)),!0}return!1}function yp(e){var t=Za(e.target);if(t!==null){var s=c(t);if(s!==null){if(t=s.tag,t===13){if(t=d(s),t!==null){e.blockedOn=t,H1(e.priority,function(){if(s.tag===13){var l=Vt();l=Eo(l);var u=rs(s,l);u!==null&&_t(u,s,l),Dc(s,l)}});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=Oc(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Uo=l,s.target.dispatchEvent(l),Uo=null}else return t=Qa(s),t!==null&&mp(t),e.blockedOn=s,!1;t.shift()}return!0}function xp(e,t,s){Lr(e)&&s.delete(t)}function Zb(){zc=!1,sa!==null&&Lr(sa)&&(sa=null),ia!==null&&Lr(ia)&&(ia=null),la!==null&&Lr(la)&&(la=null),Gi.forEach(xp),Xi.forEach(xp)}function zr(e,t){e.blockedOn===t&&(e.blockedOn=null,zc||(zc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Zb)))}var Br=null;function vp(e){Br!==e&&(Br=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Br===e&&(Br=null);for(var t=0;t<e.length;t+=3){var s=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(Lc(l||s)===null)continue;break}var h=Qa(s);h!==null&&(e.splice(t,3),t-=3,Lu(h,{pending:!0,data:u,method:s.method,action:l},l,u))}}))}function Fi(e){function t(T){return zr(T,e)}sa!==null&&zr(sa,e),ia!==null&&zr(ia,e),la!==null&&zr(la,e),Gi.forEach(t),Xi.forEach(t);for(var s=0;s<ra.length;s++){var l=ra[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ra.length&&(s=ra[0],s.blockedOn===null);)yp(s),s.blockedOn===null&&ra.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var u=s[l],h=s[l+1],x=u[jt]||null;if(typeof h=="function")x||vp(s);else if(x){var S=null;if(h&&h.hasAttribute("formAction")){if(u=h,x=h[jt]||null)S=x.formAction;else if(Lc(u)!==null)continue}else S=x.action;typeof S=="function"?s[l+1]=S:(s.splice(l,3),l-=3),vp(s)}}}function Bc(e){this._internalRoot=e}Ur.prototype.render=Bc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var s=t.current,l=Vt();dp(s,l,e,t,null,null)},Ur.prototype.unmount=Bc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dp(e.current,2,null,e,null,null),yr(),t[Fa]=null}};function Ur(e){this._internalRoot=e}Ur.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ud();e={blockedOn:null,target:e,priority:t};for(var s=0;s<ra.length&&t!==0&&t<ra[s].priority;s++);ra.splice(s,0,e),s===0&&yp(e)}};var bp=a.version;if(bp!=="19.1.1")throw Error(r(527,bp,"19.1.1"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var Qb={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Vr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vr.isDisabled&&Vr.supportsFiber)try{vt=Vr.inject(Qb),bt=Vr}catch(e){}}return Qi.createRoot=function(e,t){if(!o(e))throw Error(r(299));var s=!1,l="",u=Um,h=Vm,x=_m,S=null;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(S=t.unstable_transitionCallbacks)),t=cp(e,1,!1,null,null,s,l,u,h,x,S,null),e[Fa]=t.current,yc(e),new Bc(t)},Qi.hydrateRoot=function(e,t,s){if(!o(e))throw Error(r(299));var l=!1,u="",h=Um,x=Vm,S=_m,T=null,B=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(T=s.unstable_transitionCallbacks),s.formState!==void 0&&(B=s.formState)),t=cp(e,1,!0,t,s!=null?s:null,l,u,h,x,S,T,B),t.context=fp(null),s=t.current,l=Vt(),l=Eo(l),u=Gn(l),u.callback=null,Xn(s,u,l),s=l,t.current.lanes=s,Is(t,s),dn(t),e[Fa]=t.current,yc(e),new Ur(t)},Qi.version="19.1.1",Qi}var zp;function f2(){if(zp)return qc.exports;zp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),qc.exports=c2(),qc.exports}var d2=f2();/**
48
+ `+s.stack}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function F1(e){var t=Pd(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof s!="undefined"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,h=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(x){l=""+x,h.call(this,x)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dl(e){e._valueTracker||(e._valueTracker=F1(e))}function Yd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),l="";return e&&(l=Pd(e)?e.checked?"true":"false":e.value),e=l,e!==s?(t.setValue(e),!0):!1}function Ml(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var Z1=/[\n"\\]/g;function qt(e){return e.replace(Z1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Oo(e,t,s,l,u,h,x,S){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Lo(e,x,Ht(t)):s!=null?Lo(e,x,Ht(s)):l!=null&&e.removeAttribute("value"),u==null&&h!=null&&(e.defaultChecked=!!h),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Ht(S):e.removeAttribute("name")}function Gd(e,t,s,l,u,h,x,S){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||t!=null))return;s=s!=null?""+Ht(s):"",t=t!=null?""+Ht(t):s,S||t===e.value||(e.value=t),e.defaultValue=t}l=l!=null?l:u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x)}function Lo(e,t,s){t==="number"&&Ml(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Ia(e,t,s,l){if(e=e.options,t){t={};for(var u=0;u<s.length;u++)t["$"+s[u]]=!0;for(s=0;s<e.length;s++)u=t.hasOwnProperty("$"+e[s].value),e[s].selected!==u&&(e[s].selected=u),u&&l&&(e[s].defaultSelected=!0)}else{for(s=""+Ht(s),t=null,u=0;u<e.length;u++){if(e[u].value===s){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Xd(e,t,s){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+Ht(s):""}function Kd(e,t,s,l){if(t==null){if(l!=null){if(s!=null)throw Error(r(92));if(ve(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),t=s}s=Ht(t),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l)}function es(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Q1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Fd(e,t,s){var l=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,s):typeof s!="number"||s===0||Q1.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function Zd(e,t,s){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&s[u]!==l&&Fd(e,u,l)}else for(var h in t)t.hasOwnProperty(h)&&Fd(e,h,t[h])}function zo(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var $1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),J1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ol(e){return J1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Bo=null;function Uo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ts=null,ns=null;function Qd(e){var t=Qa(e);if(t&&(e=t.stateNode)){var s=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Oo(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+qt(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var l=s[t];if(l!==e&&l.form===e.form){var u=l[jt]||null;if(!u)throw Error(r(90));Oo(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<s.length;t++)l=s[t],l.form===e.form&&Yd(l)}break e;case"textarea":Xd(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&Ia(e,!!s.multiple,t,!1)}}}var Vo=!1;function $d(e,t,s){if(Vo)return e(t,s);Vo=!0;try{var l=e(t);return l}finally{if(Vo=!1,(ts!==null||ns!==null)&&(yr(),ts&&(t=ts,e=ns,ns=ts=null,Qd(t),e)))for(t=0;t<e.length;t++)Qd(e[t])}}function ai(e,t){var s=e.stateNode;if(s===null)return null;var l=s[jt]||null;if(l===null)return null;s=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(r(231,t,typeof s));return s}var bn=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),_o=!1;if(bn)try{var si={};Object.defineProperty(si,"passive",{get:function(){_o=!0}}),window.addEventListener("test",si,si),window.removeEventListener("test",si,si)}catch(e){_o=!1}var qn=null,ko=null,Ll=null;function Jd(){if(Ll)return Ll;var e,t=ko,s=t.length,l,u="value"in qn?qn.value:qn.textContent,h=u.length;for(e=0;e<s&&t[e]===u[e];e++);var x=s-e;for(l=1;l<=x&&t[s-l]===u[h-l];l++);return Ll=u.slice(e,1<l?1-l:void 0)}function zl(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 Bl(){return!0}function Wd(){return!1}function Nt(e){function t(s,l,u,h,x){this._reactName=s,this._targetInst=u,this.type=l,this.nativeEvent=h,this.target=x,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(s=e[S],this[S]=s?s(h):h[S]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Bl:Wd,this.isPropagationStopped=Wd,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Bl)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),t}var ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ul=Nt(ya),ii=y({},ya,{view:0,detail:0}),W1=Nt(ii),Ho,qo,li,Vl=y({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yo,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!==li&&(li&&e.type==="mousemove"?(Ho=e.screenX-li.screenX,qo=e.screenY-li.screenY):qo=Ho=0,li=e),Ho)},movementY:function(e){return"movementY"in e?e.movementY:qo}}),Id=Nt(Vl),I1=y({},Vl,{dataTransfer:0}),ev=Nt(I1),tv=y({},ii,{relatedTarget:0}),Po=Nt(tv),nv=y({},ya,{animationName:0,elapsedTime:0,pseudoElement:0}),av=Nt(nv),sv=y({},ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iv=Nt(sv),lv=y({},ya,{data:0}),eh=Nt(lv),rv={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"},uv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uv[e])?!!t[e]:!1}function Yo(){return cv}var fv=y({},ii,{key:function(e){if(e.key){var t=rv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zl(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:Yo,charCode:function(e){return e.type==="keypress"?zl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dv=Nt(fv),hv=y({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),th=Nt(hv),mv=y({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yo}),pv=Nt(mv),gv=y({},ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),yv=Nt(gv),xv=y({},Vl,{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}),vv=Nt(xv),bv=y({},ya,{newState:0,oldState:0}),Sv=Nt(bv),wv=[9,13,27,32],Go=bn&&"CompositionEvent"in window,ri=null;bn&&"documentMode"in document&&(ri=document.documentMode);var jv=bn&&"TextEvent"in window&&!ri,nh=bn&&(!Go||ri&&8<ri&&11>=ri),ah=" ",sh=!1;function ih(e,t){switch(e){case"keyup":return wv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var as=!1;function Nv(e,t){switch(e){case"compositionend":return lh(t);case"keypress":return t.which!==32?null:(sh=!0,ah);case"textInput":return e=t.data,e===ah&&sh?null:e;default:return null}}function Tv(e,t){if(as)return e==="compositionend"||!Go&&ih(e,t)?(e=Jd(),Ll=ko=qn=null,as=!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 nh&&t.locale!=="ko"?null:t.data;default:return null}}var Ev={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 rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ev[e.type]:t==="textarea"}function oh(e,t,s,l){ts?ns?ns.push(l):ns=[l]:ts=l,t=jr(t,"onChange"),0<t.length&&(s=new Ul("onChange","change",null,s,l),e.push({event:s,listeners:t}))}var oi=null,ui=null;function Av(e){P0(e,0)}function _l(e){var t=ni(e);if(Yd(t))return e}function uh(e,t){if(e==="change")return t}var ch=!1;if(bn){var Xo;if(bn){var Ko="oninput"in document;if(!Ko){var fh=document.createElement("div");fh.setAttribute("oninput","return;"),Ko=typeof fh.oninput=="function"}Xo=Ko}else Xo=!1;ch=Xo&&(!document.documentMode||9<document.documentMode)}function dh(){oi&&(oi.detachEvent("onpropertychange",hh),ui=oi=null)}function hh(e){if(e.propertyName==="value"&&_l(ui)){var t=[];oh(t,ui,e,Uo(e)),$d(Av,t)}}function Cv(e,t,s){e==="focusin"?(dh(),oi=t,ui=s,oi.attachEvent("onpropertychange",hh)):e==="focusout"&&dh()}function Rv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _l(ui)}function Dv(e,t){if(e==="click")return _l(t)}function Mv(e,t){if(e==="input"||e==="change")return _l(t)}function Ov(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Ov;function ci(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),l=Object.keys(t);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var u=s[l];if(!Qs.call(t,u)||!Ot(e[u],t[u]))return!1}return!0}function mh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ph(e,t){var s=mh(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=t&&l>=t)return{node:s,offset:t-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=mh(s)}}function gh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ml(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch(l){s=!1}if(s)e=t.contentWindow;else break;t=Ml(e.document)}return t}function Fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Lv=bn&&"documentMode"in document&&11>=document.documentMode,ss=null,Zo=null,fi=null,Qo=!1;function xh(e,t,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Qo||ss==null||ss!==Ml(l)||(l=ss,"selectionStart"in l&&Fo(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),fi&&ci(fi,l)||(fi=l,l=jr(Zo,"onSelect"),0<l.length&&(t=new Ul("onSelect","select",null,t,s),e.push({event:t,listeners:l}),t.target=ss)))}function xa(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var is={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},$o={},vh={};bn&&(vh=document.createElement("div").style,"AnimationEvent"in window||(delete is.animationend.animation,delete is.animationiteration.animation,delete is.animationstart.animation),"TransitionEvent"in window||delete is.transitionend.transition);function va(e){if($o[e])return $o[e];if(!is[e])return e;var t=is[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in vh)return $o[e]=t[s];return e}var bh=va("animationend"),Sh=va("animationiteration"),wh=va("animationstart"),zv=va("transitionrun"),Bv=va("transitionstart"),Uv=va("transitioncancel"),jh=va("transitionend"),Nh=new Map,Jo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Jo.push("scrollEnd");function tn(e,t){Nh.set(e,t),ga(t,[e])}var Th=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var s=Th.get(e);return s!==void 0?s:(t={value:e,source:t,stack:qd(t)},Th.set(e,t),t)}return{value:e,source:t,stack:qd(t)}}var Yt=[],ls=0,Wo=0;function kl(){for(var e=ls,t=Wo=ls=0;t<e;){var s=Yt[t];Yt[t++]=null;var l=Yt[t];Yt[t++]=null;var u=Yt[t];Yt[t++]=null;var h=Yt[t];if(Yt[t++]=null,l!==null&&u!==null){var x=l.pending;x===null?u.next=u:(u.next=x.next,x.next=u),l.pending=u}h!==0&&Eh(s,u,h)}}function Hl(e,t,s,l){Yt[ls++]=e,Yt[ls++]=t,Yt[ls++]=s,Yt[ls++]=l,Wo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Io(e,t,s,l){return Hl(e,t,s,l),ql(e)}function rs(e,t){return Hl(e,null,null,t),ql(e)}function Eh(e,t,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var u=!1,h=e.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(u=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,u&&t!==null&&(u=31-Mt(s),e=h.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=s|536870912),h):null}function ql(e){if(50<Ui)throw Ui=0,ic=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var os={};function Vv(e,t,s,l){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,t,s,l){return new Vv(e,t,s,l)}function eu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sn(e,t){var s=e.alternate;return s===null?(s=Lt(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Ah(e,t){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Pl(e,t,s,l,u,h){var x=0;if(l=e,typeof e=="function")eu(e)&&(x=1);else if(typeof e=="string")x=kb(e,s,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Lt(31,s,t,u),e.elementType=fe,e.lanes=h,e;case N:return ba(s.children,u,h,t);case A:x=8,u|=24;break;case T:return e=Lt(12,s,t,u|2),e.elementType=T,e.lanes=h,e;case U:return e=Lt(13,s,t,u),e.elementType=U,e.lanes=h,e;case Z:return e=Lt(19,s,t,u),e.elementType=Z,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:case M:x=10;break e;case z:x=9;break e;case K:x=11;break e;case Q:x=14;break e;case W:x=16,l=null;break e}x=29,s=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Lt(x,s,t,u),t.elementType=e,t.type=l,t.lanes=h,t}function ba(e,t,s,l){return e=Lt(7,e,l,t),e.lanes=s,e}function tu(e,t,s){return e=Lt(6,e,null,t),e.lanes=s,e}function nu(e,t,s){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var us=[],cs=0,Yl=null,Gl=0,Gt=[],Xt=0,Sa=null,wn=1,jn="";function wa(e,t){us[cs++]=Gl,us[cs++]=Yl,Yl=e,Gl=t}function Ch(e,t,s){Gt[Xt++]=wn,Gt[Xt++]=jn,Gt[Xt++]=Sa,Sa=e;var l=wn;e=jn;var u=32-Mt(l)-1;l&=~(1<<u),s+=1;var h=32-Mt(t)+u;if(30<h){var x=u-u%5;h=(l&(1<<x)-1).toString(32),l>>=x,u-=x,wn=1<<32-Mt(t)+u|s<<u|l,jn=h+e}else wn=1<<h|s<<u|l,jn=e}function au(e){e.return!==null&&(wa(e,1),Ch(e,1,0))}function su(e){for(;e===Yl;)Yl=us[--cs],us[cs]=null,Gl=us[--cs],us[cs]=null;for(;e===Sa;)Sa=Gt[--Xt],Gt[Xt]=null,jn=Gt[--Xt],Gt[Xt]=null,wn=Gt[--Xt],Gt[Xt]=null}var St=null,Ke=null,Ce=!1,ja=null,on=!1,iu=Error(r(519));function Na(e){var t=Error(r(418,""));throw mi(Pt(t,e)),iu}function Rh(e){var t=e.stateNode,s=e.type,l=e.memoizedProps;switch(t[ht]=e,t[jt]=l,s){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(s=0;s<_i.length;s++)we(_i[s],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Gd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Dl(t);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Kd(t,l.value,l.defaultValue,l.children),Dl(t)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||l.suppressHydrationWarning===!0||K0(t.textContent,s)?(l.popover!=null&&(we("beforetoggle",t),we("toggle",t)),l.onScroll!=null&&we("scroll",t),l.onScrollEnd!=null&&we("scrollend",t),l.onClick!=null&&(t.onclick=Nr),t=!0):t=!1,t||Na(e)}function Dh(e){for(St=e.return;St;)switch(St.tag){case 5:case 13:on=!1;return;case 27:case 3:on=!0;return;default:St=St.return}}function di(e){if(e!==St)return!1;if(!Ce)return Dh(e),Ce=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||Sc(e.type,e.memoizedProps)),s=!s),s&&Ke&&Na(e),Dh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(s=e.data,s==="/$"){if(t===0){Ke=an(e.nextSibling);break e}t--}else s!=="$"&&s!=="$!"&&s!=="$?"||t++;e=e.nextSibling}Ke=null}}else t===27?(t=Ke,aa(e.type)?(e=Tc,Tc=null,Ke=e):Ke=t):Ke=St?an(e.stateNode.nextSibling):null;return!0}function hi(){Ke=St=null,Ce=!1}function Mh(){var e=ja;return e!==null&&(At===null?At=e:At.push.apply(At,e),ja=null),e}function mi(e){ja===null?ja=[e]:ja.push(e)}var lu=P(null),Ta=null,Nn=null;function Pn(e,t,s){$(lu,t._currentValue),t._currentValue=s}function Tn(e){e._currentValue=lu.current,J(lu)}function ru(e,t,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===s)break;e=e.return}}function ou(e,t,s,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var h=u.dependencies;if(h!==null){var x=u.child;h=h.firstContext;e:for(;h!==null;){var S=h;h=u;for(var E=0;E<t.length;E++)if(S.context===t[E]){h.lanes|=s,S=h.alternate,S!==null&&(S.lanes|=s),ru(h.return,s,e),l||(x=null);break e}h=S.next}}else if(u.tag===18){if(x=u.return,x===null)throw Error(r(341));x.lanes|=s,h=x.alternate,h!==null&&(h.lanes|=s),ru(x,s,e),x=null}else x=u.child;if(x!==null)x.return=u;else for(x=u;x!==null;){if(x===e){x=null;break}if(u=x.sibling,u!==null){u.return=x.return,x=u;break}x=x.return}u=x}}function pi(e,t,s,l){e=null;for(var u=t,h=!1;u!==null;){if(!h){if((u.flags&524288)!==0)h=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var x=u.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var S=u.type;Ot(u.pendingProps.value,x.value)||(e!==null?e.push(S):e=[S])}}else if(u===xt.current){if(x=u.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Gi):e=[Gi])}u=u.return}e!==null&&ou(t,e,s,l),t.flags|=262144}function Xl(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ea(e){Ta=e,Nn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Oh(Ta,e)}function Kl(e,t){return Ta===null&&Ea(e),Oh(e,t)}function Oh(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},Nn===null){if(e===null)throw Error(r(308));Nn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nn=Nn.next=t;return s}var _v=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},kv=n.unstable_scheduleCallback,Hv=n.unstable_NormalPriority,nt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uu(){return{controller:new _v,data:new Map,refCount:0}}function gi(e){e.refCount--,e.refCount===0&&kv(Hv,function(){e.controller.abort()})}var yi=null,cu=0,fs=0,ds=null;function qv(e,t){if(yi===null){var s=yi=[];cu=0,fs=dc(),ds={status:"pending",value:void 0,then:function(l){s.push(l)}}}return cu++,t.then(Lh,Lh),t}function Lh(){if(--cu===0&&yi!==null){ds!==null&&(ds.status="fulfilled");var e=yi;yi=null,fs=0,ds=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Pv(e,t){var s=[],l={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<s.length;u++)(0,s[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),l}var zh=H.S;H.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&qv(e,t),zh!==null&&zh(e,t)};var Aa=P(null);function fu(){var e=Aa.current;return e!==null?e:Ve.pooledCache}function Fl(e,t){t===null?$(Aa,Aa.current):$(Aa,t.pool)}function Bh(){var e=fu();return e===null?null:{parent:nt._currentValue,pool:e}}var xi=Error(r(460)),Uh=Error(r(474)),Zl=Error(r(542)),du={then:function(){}};function Vh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ql(){}function _h(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(Ql,Ql),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hh(e),e;default:if(typeof t.status=="string")t.then(Ql,Ql);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hh(e),e}throw vi=t,xi}}var vi=null;function kh(){if(vi===null)throw Error(r(459));var e=vi;return vi=null,e}function Hh(e){if(e===xi||e===Zl)throw Error(r(483))}var Yn=!1;function hu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(De&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=ql(e),Eh(e,null,s),t}return Hl(e,l,t,s),ql(e)}function bi(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,s|=l,t.lanes=s,Ld(e,s)}}function pu(e,t){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var u=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?u=h=x:h=h.next=x,s=s.next}while(s!==null);h===null?u=h=t:h=h.next=t}else u=h=t;s={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var gu=!1;function Si(){if(gu){var e=ds;if(e!==null)throw e}}function wi(e,t,s,l){gu=!1;var u=e.updateQueue;Yn=!1;var h=u.firstBaseUpdate,x=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var E=S,B=E.next;E.next=null,x===null?h=B:x.next=B,x=E;var q=e.alternate;q!==null&&(q=q.updateQueue,S=q.lastBaseUpdate,S!==x&&(S===null?q.firstBaseUpdate=B:S.next=B,q.lastBaseUpdate=E))}if(h!==null){var G=u.baseState;x=0,q=B=E=null,S=h;do{var V=S.lane&-536870913,_=V!==S.lane;if(_?(Ne&V)===V:(l&V)===V){V!==0&&V===fs&&(gu=!0),q!==null&&(q=q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var re=e,se=S;V=t;var ze=s;switch(se.tag){case 1:if(re=se.payload,typeof re=="function"){G=re.call(ze,G,V);break e}G=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=se.payload,V=typeof re=="function"?re.call(ze,G,V):re,V==null)break e;G=y({},G,V);break e;case 2:Yn=!0}}V=S.callback,V!==null&&(e.flags|=64,_&&(e.flags|=8192),_=u.callbacks,_===null?u.callbacks=[V]:_.push(V))}else _={lane:V,tag:S.tag,payload:S.payload,callback:S.callback,next:null},q===null?(B=q=_,E=G):q=q.next=_,x|=V;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;_=S,S=_.next,_.next=null,u.lastBaseUpdate=_,u.shared.pending=null}}while(!0);q===null&&(E=G),u.baseState=E,u.firstBaseUpdate=B,u.lastBaseUpdate=q,h===null&&(u.shared.lanes=0),In|=x,e.lanes=x,e.memoizedState=G}}function qh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ph(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)qh(s[e],t)}var hs=P(null),$l=P(0);function Yh(e,t){e=On,$($l,e),$(hs,t),On=e|t.baseLanes}function yu(){$($l,On),$(hs,hs.current)}function xu(){On=$l.current,J(hs),J($l)}var Kn=0,ye=null,Oe=null,Ie=null,Jl=!1,ms=!1,Ca=!1,Wl=0,ji=0,ps=null,Yv=0;function Qe(){throw Error(r(321))}function vu(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!Ot(e[s],t[s]))return!1;return!0}function bu(e,t,s,l,u,h){return Kn=h,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?Em:Am,Ca=!1,h=s(l,u),Ca=!1,ms&&(h=Xh(t,s,l,u)),Gh(e),h}function Gh(e){H.H=sr;var t=Oe!==null&&Oe.next!==null;if(Kn=0,Ie=Oe=ye=null,Jl=!1,ji=0,ps=null,t)throw Error(r(300));e===null||it||(e=e.dependencies,e!==null&&Xl(e)&&(it=!0))}function Xh(e,t,s,l){ye=e;var u=0;do{if(ms&&(ps=null),ji=0,ms=!1,25<=u)throw Error(r(301));if(u+=1,Ie=Oe=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}H.H=$v,h=t(s,l)}while(ms);return h}function Gv(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?Ni(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(ye.flags|=1024),t}function Su(){var e=Wl!==0;return Wl=0,e}function wu(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function ju(e){if(Jl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jl=!1}Kn=0,Ie=Oe=ye=null,ms=!1,ji=Wl=0,ps=null}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?ye.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function et(){if(Oe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Ie===null?ye.memoizedState:Ie.next;if(t!==null)Ie=t,Oe=e;else{if(e===null)throw ye.alternate===null?Error(r(467)):Error(r(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Ie===null?ye.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ni(e){var t=ji;return ji+=1,ps===null&&(ps=[]),e=_h(ps,e,t),t=ye,(Ie===null?t.memoizedState:Ie.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?Em:Am),e}function Il(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ni(e);if(e.$$typeof===M)return mt(e)}throw Error(r(438,String(e)))}function Tu(e){var t=null,s=ye.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var l=ye.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=Nu(),ye.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),l=0;l<e;l++)s[l]=xe;return t.index++,s}function En(e,t){return typeof t=="function"?t(e):t}function er(e){var t=et();return Eu(t,Oe,e)}function Eu(e,t,s){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var u=e.baseQueue,h=l.pending;if(h!==null){if(u!==null){var x=u.next;u.next=h.next,h.next=x}t.baseQueue=u=h,l.pending=null}if(h=e.baseState,u===null)e.memoizedState=h;else{t=u.next;var S=x=null,E=null,B=t,q=!1;do{var G=B.lane&-536870913;if(G!==B.lane?(Ne&G)===G:(Kn&G)===G){var V=B.revertLane;if(V===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),G===fs&&(q=!0);else if((Kn&V)===V){B=B.next,V===fs&&(q=!0);continue}else G={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},E===null?(S=E=G,x=h):E=E.next=G,ye.lanes|=V,In|=V;G=B.action,Ca&&s(h,G),h=B.hasEagerState?B.eagerState:s(h,G)}else V={lane:G,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},E===null?(S=E=V,x=h):E=E.next=V,ye.lanes|=G,In|=G;B=B.next}while(B!==null&&B!==t);if(E===null?x=h:E.next=S,!Ot(h,e.memoizedState)&&(it=!0,q&&(s=ds,s!==null)))throw s;e.memoizedState=h,e.baseState=x,e.baseQueue=E,l.lastRenderedState=h}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Au(e){var t=et(),s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var l=s.dispatch,u=s.pending,h=t.memoizedState;if(u!==null){s.pending=null;var x=u=u.next;do h=e(h,x.action),x=x.next;while(x!==u);Ot(h,t.memoizedState)||(it=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),s.lastRenderedState=h}return[h,l]}function Kh(e,t,s){var l=ye,u=et(),h=Ce;if(h){if(s===void 0)throw Error(r(407));s=s()}else s=t();var x=!Ot((Oe||u).memoizedState,s);x&&(u.memoizedState=s,it=!0),u=u.queue;var S=Qh.bind(null,l,u,e);if(Ti(2048,8,S,[e]),u.getSnapshot!==t||x||Ie!==null&&Ie.memoizedState.tag&1){if(l.flags|=2048,gs(9,tr(),Zh.bind(null,l,u,s,t),null),Ve===null)throw Error(r(349));h||(Kn&124)!==0||Fh(l,t,s)}return s}function Fh(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=ye.updateQueue,t===null?(t=Nu(),ye.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function Zh(e,t,s,l){t.value=s,t.getSnapshot=l,$h(t)&&Jh(e)}function Qh(e,t,s){return s(function(){$h(t)&&Jh(e)})}function $h(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!Ot(e,s)}catch(l){return!0}}function Jh(e){var t=rs(e,2);t!==null&&_t(t,e,2)}function Cu(e){var t=Tt();if(typeof e=="function"){var s=e;if(e=s(),Ca){kn(!0);try{s()}finally{kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:e},t}function Wh(e,t,s,l){return e.baseState=s,Eu(e,Oe,typeof l=="function"?l:En)}function Xv(e,t,s,l,u){if(ar(e))throw Error(r(485));if(e=t.action,e!==null){var h={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){h.listeners.push(x)}};H.T!==null?s(!0):h.isTransition=!1,l(h),s=t.pending,s===null?(h.next=t.pending=h,Ih(t,h)):(h.next=s.next,t.pending=s.next=h)}}function Ih(e,t){var s=t.action,l=t.payload,u=e.state;if(t.isTransition){var h=H.T,x={};H.T=x;try{var S=s(u,l),E=H.S;E!==null&&E(x,S),em(e,t,S)}catch(B){Ru(e,t,B)}finally{H.T=h}}else try{h=s(u,l),em(e,t,h)}catch(B){Ru(e,t,B)}}function em(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){tm(e,t,l)},function(l){return Ru(e,t,l)}):tm(e,t,s)}function tm(e,t,s){t.status="fulfilled",t.value=s,nm(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,Ih(e,s)))}function Ru(e,t,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=s,nm(t),t=t.next;while(t!==l)}e.action=null}function nm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function am(e,t){return t}function sm(e,t){if(Ce){var s=Ve.formState;if(s!==null){e:{var l=ye;if(Ce){if(Ke){t:{for(var u=Ke,h=on;u.nodeType!==8;){if(!h){u=null;break t}if(u=an(u.nextSibling),u===null){u=null;break t}}h=u.data,u=h==="F!"||h==="F"?u:null}if(u){Ke=an(u.nextSibling),l=u.data==="F!";break e}}Na(l)}l=!1}l&&(t=s[0])}}return s=Tt(),s.memoizedState=s.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:am,lastRenderedState:t},s.queue=l,s=jm.bind(null,ye,l),l.dispatch=s,l=Cu(!1),h=zu.bind(null,ye,!1,l.queue),l=Tt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,s=Xv.bind(null,ye,u,h,s),u.dispatch=s,l.memoizedState=e,[t,s,!1]}function im(e){var t=et();return lm(t,Oe,e)}function lm(e,t,s){if(t=Eu(e,t,am)[0],e=er(En)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Ni(t)}catch(x){throw x===xi?Zl:x}else l=t;t=et();var u=t.queue,h=u.dispatch;return s!==t.memoizedState&&(ye.flags|=2048,gs(9,tr(),Kv.bind(null,u,s),null)),[l,h,e]}function Kv(e,t){e.action=t}function rm(e){var t=et(),s=Oe;if(s!==null)return lm(t,s,e);et(),t=t.memoizedState,s=et();var l=s.queue.dispatch;return s.memoizedState=e,[t,l,!1]}function gs(e,t,s,l){return e={tag:e,create:s,deps:l,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Nu(),ye.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,t.lastEffect=e),e}function tr(){return{destroy:void 0,resource:void 0}}function om(){return et().memoizedState}function nr(e,t,s,l){var u=Tt();l=l===void 0?null:l,ye.flags|=e,u.memoizedState=gs(1|t,tr(),s,l)}function Ti(e,t,s,l){var u=et();l=l===void 0?null:l;var h=u.memoizedState.inst;Oe!==null&&l!==null&&vu(l,Oe.memoizedState.deps)?u.memoizedState=gs(t,h,s,l):(ye.flags|=e,u.memoizedState=gs(1|t,h,s,l))}function um(e,t){nr(8390656,8,e,t)}function cm(e,t){Ti(2048,8,e,t)}function fm(e,t){return Ti(4,2,e,t)}function dm(e,t){return Ti(4,4,e,t)}function hm(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function mm(e,t,s){s=s!=null?s.concat([e]):null,Ti(4,4,hm.bind(null,t,e),s)}function Du(){}function pm(e,t){var s=et();t=t===void 0?null:t;var l=s.memoizedState;return t!==null&&vu(t,l[1])?l[0]:(s.memoizedState=[e,t],e)}function gm(e,t){var s=et();t=t===void 0?null:t;var l=s.memoizedState;if(t!==null&&vu(t,l[1]))return l[0];if(l=e(),Ca){kn(!0);try{e()}finally{kn(!1)}}return s.memoizedState=[l,t],l}function Mu(e,t,s){return s===void 0||(Kn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=s,e=v0(),ye.lanes|=e,In|=e,s)}function ym(e,t,s,l){return Ot(s,t)?s:hs.current!==null?(e=Mu(e,s,l),Ot(e,t)||(it=!0),e):(Kn&42)===0?(it=!0,e.memoizedState=s):(e=v0(),ye.lanes|=e,In|=e,t)}function xm(e,t,s,l,u){var h=F.p;F.p=h!==0&&8>h?h:8;var x=H.T,S={};H.T=S,zu(e,!1,t,s);try{var E=u(),B=H.S;if(B!==null&&B(S,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var q=Pv(E,l);Ei(e,t,q,Vt(e))}else Ei(e,t,l,Vt(e))}catch(G){Ei(e,t,{then:function(){},status:"rejected",reason:G},Vt())}finally{F.p=h,H.T=x}}function Fv(){}function Ou(e,t,s,l){if(e.tag!==5)throw Error(r(476));var u=vm(e).queue;xm(e,u,t,ee,s===null?Fv:function(){return bm(e),s(l)})}function vm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:ee},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:En,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bm(e){var t=vm(e).next.queue;Ei(e,t,{},Vt())}function Lu(){return mt(Gi)}function Sm(){return et().memoizedState}function wm(){return et().memoizedState}function Zv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=Vt();e=Gn(s);var l=Xn(t,e,s);l!==null&&(_t(l,t,s),bi(l,t,s)),t={cache:uu()},e.payload=t;return}t=t.return}}function Qv(e,t,s){var l=Vt();s={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},ar(e)?Nm(t,s):(s=Io(e,t,s,l),s!==null&&(_t(s,e,l),Tm(s,t,l)))}function jm(e,t,s){var l=Vt();Ei(e,t,s,l)}function Ei(e,t,s,l){var u={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(ar(e))Nm(t,u);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var x=t.lastRenderedState,S=h(x,s);if(u.hasEagerState=!0,u.eagerState=S,Ot(S,x))return Hl(e,t,u,0),Ve===null&&kl(),!1}catch(E){}finally{}if(s=Io(e,t,u,l),s!==null)return _t(s,e,l),Tm(s,t,l),!0}return!1}function zu(e,t,s,l){if(l={lane:2,revertLane:dc(),action:l,hasEagerState:!1,eagerState:null,next:null},ar(e)){if(t)throw Error(r(479))}else t=Io(e,s,l,2),t!==null&&_t(t,e,2)}function ar(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Nm(e,t){ms=Jl=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Tm(e,t,s){if((s&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,s|=l,t.lanes=s,Ld(e,s)}}var sr={readContext:mt,use:Il,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe},Em={readContext:mt,use:Il,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:um,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,nr(4194308,4,hm.bind(null,t,e),s)},useLayoutEffect:function(e,t){return nr(4194308,4,e,t)},useInsertionEffect:function(e,t){nr(4,2,e,t)},useMemo:function(e,t){var s=Tt();t=t===void 0?null:t;var l=e();if(Ca){kn(!0);try{e()}finally{kn(!1)}}return s.memoizedState=[l,t],l},useReducer:function(e,t,s){var l=Tt();if(s!==void 0){var u=s(t);if(Ca){kn(!0);try{s(t)}finally{kn(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Qv.bind(null,ye,e),[l.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cu(e);var t=e.queue,s=jm.bind(null,ye,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:Du,useDeferredValue:function(e,t){var s=Tt();return Mu(s,e,t)},useTransition:function(){var e=Cu(!1);return e=xm.bind(null,ye,e.queue,!0,!1),Tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var l=ye,u=Tt();if(Ce){if(s===void 0)throw Error(r(407));s=s()}else{if(s=t(),Ve===null)throw Error(r(349));(Ne&124)!==0||Fh(l,t,s)}u.memoizedState=s;var h={value:s,getSnapshot:t};return u.queue=h,um(Qh.bind(null,l,h,e),[e]),l.flags|=2048,gs(9,tr(),Zh.bind(null,l,h,s,t),null),s},useId:function(){var e=Tt(),t=Ve.identifierPrefix;if(Ce){var s=jn,l=wn;s=(l&~(1<<32-Mt(l)-1)).toString(32)+s,t="«"+t+"R"+s,s=Wl++,0<s&&(t+="H"+s.toString(32)),t+="»"}else s=Yv++,t="«"+t+"r"+s.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Lu,useFormState:sm,useActionState:sm,useOptimistic:function(e){var t=Tt();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=zu.bind(null,ye,!0,s),s.dispatch=t,[e,t]},useMemoCache:Tu,useCacheRefresh:function(){return Tt().memoizedState=Zv.bind(null,ye)}},Am={readContext:mt,use:Il,useCallback:pm,useContext:mt,useEffect:cm,useImperativeHandle:mm,useInsertionEffect:fm,useLayoutEffect:dm,useMemo:gm,useReducer:er,useRef:om,useState:function(){return er(En)},useDebugValue:Du,useDeferredValue:function(e,t){var s=et();return ym(s,Oe.memoizedState,e,t)},useTransition:function(){var e=er(En)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:Kh,useId:Sm,useHostTransitionStatus:Lu,useFormState:im,useActionState:im,useOptimistic:function(e,t){var s=et();return Wh(s,Oe,e,t)},useMemoCache:Tu,useCacheRefresh:wm},$v={readContext:mt,use:Il,useCallback:pm,useContext:mt,useEffect:cm,useImperativeHandle:mm,useInsertionEffect:fm,useLayoutEffect:dm,useMemo:gm,useReducer:Au,useRef:om,useState:function(){return Au(En)},useDebugValue:Du,useDeferredValue:function(e,t){var s=et();return Oe===null?Mu(s,e,t):ym(s,Oe.memoizedState,e,t)},useTransition:function(){var e=Au(En)[0],t=et().memoizedState;return[typeof e=="boolean"?e:Ni(e),t]},useSyncExternalStore:Kh,useId:Sm,useHostTransitionStatus:Lu,useFormState:rm,useActionState:rm,useOptimistic:function(e,t){var s=et();return Oe!==null?Wh(s,Oe,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:Tu,useCacheRefresh:wm},ys=null,Ai=0;function ir(e){var t=Ai;return Ai+=1,ys===null&&(ys=[]),_h(ys,e,t)}function Ci(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lr(e,t){throw t.$$typeof===v?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Cm(e){var t=e._init;return t(e._payload)}function Rm(e){function t(D,R){if(e){var L=D.deletions;L===null?(D.deletions=[R],D.flags|=16):L.push(R)}}function s(D,R){if(!e)return null;for(;R!==null;)t(D,R),R=R.sibling;return null}function l(D){for(var R=new Map;D!==null;)D.key!==null?R.set(D.key,D):R.set(D.index,D),D=D.sibling;return R}function u(D,R){return D=Sn(D,R),D.index=0,D.sibling=null,D}function h(D,R,L){return D.index=L,e?(L=D.alternate,L!==null?(L=L.index,L<R?(D.flags|=67108866,R):L):(D.flags|=67108866,R)):(D.flags|=1048576,R)}function x(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,R,L,Y){return R===null||R.tag!==6?(R=tu(L,D.mode,Y),R.return=D,R):(R=u(R,L),R.return=D,R)}function E(D,R,L,Y){var te=L.type;return te===N?q(D,R,L.props.children,Y,L.key):R!==null&&(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===W&&Cm(te)===R.type)?(R=u(R,L.props),Ci(R,L),R.return=D,R):(R=Pl(L.type,L.key,L.props,null,D.mode,Y),Ci(R,L),R.return=D,R)}function B(D,R,L,Y){return R===null||R.tag!==4||R.stateNode.containerInfo!==L.containerInfo||R.stateNode.implementation!==L.implementation?(R=nu(L,D.mode,Y),R.return=D,R):(R=u(R,L.children||[]),R.return=D,R)}function q(D,R,L,Y,te){return R===null||R.tag!==7?(R=ba(L,D.mode,Y,te),R.return=D,R):(R=u(R,L),R.return=D,R)}function G(D,R,L){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return R=tu(""+R,D.mode,L),R.return=D,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case b:return L=Pl(R.type,R.key,R.props,null,D.mode,L),Ci(L,R),L.return=D,L;case j:return R=nu(R,D.mode,L),R.return=D,R;case W:var Y=R._init;return R=Y(R._payload),G(D,R,L)}if(ve(R)||ue(R))return R=ba(R,D.mode,L,null),R.return=D,R;if(typeof R.then=="function")return G(D,ir(R),L);if(R.$$typeof===M)return G(D,Kl(D,R),L);lr(D,R)}return null}function V(D,R,L,Y){var te=R!==null?R.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return te!==null?null:S(D,R,""+L,Y);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return L.key===te?E(D,R,L,Y):null;case j:return L.key===te?B(D,R,L,Y):null;case W:return te=L._init,L=te(L._payload),V(D,R,L,Y)}if(ve(L)||ue(L))return te!==null?null:q(D,R,L,Y,null);if(typeof L.then=="function")return V(D,R,ir(L),Y);if(L.$$typeof===M)return V(D,R,Kl(D,L),Y);lr(D,L)}return null}function _(D,R,L,Y,te){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return D=D.get(L)||null,S(R,D,""+Y,te);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case b:return D=D.get(Y.key===null?L:Y.key)||null,E(R,D,Y,te);case j:return D=D.get(Y.key===null?L:Y.key)||null,B(R,D,Y,te);case W:var be=Y._init;return Y=be(Y._payload),_(D,R,L,Y,te)}if(ve(Y)||ue(Y))return D=D.get(L)||null,q(R,D,Y,te,null);if(typeof Y.then=="function")return _(D,R,L,ir(Y),te);if(Y.$$typeof===M)return _(D,R,L,Kl(R,Y),te);lr(R,Y)}return null}function re(D,R,L,Y){for(var te=null,be=null,ae=R,ie=R=0,rt=null;ae!==null&&ie<L.length;ie++){ae.index>ie?(rt=ae,ae=null):rt=ae.sibling;var Ee=V(D,ae,L[ie],Y);if(Ee===null){ae===null&&(ae=rt);break}e&&ae&&Ee.alternate===null&&t(D,ae),R=h(Ee,R,ie),be===null?te=Ee:be.sibling=Ee,be=Ee,ae=rt}if(ie===L.length)return s(D,ae),Ce&&wa(D,ie),te;if(ae===null){for(;ie<L.length;ie++)ae=G(D,L[ie],Y),ae!==null&&(R=h(ae,R,ie),be===null?te=ae:be.sibling=ae,be=ae);return Ce&&wa(D,ie),te}for(ae=l(ae);ie<L.length;ie++)rt=_(ae,D,ie,L[ie],Y),rt!==null&&(e&&rt.alternate!==null&&ae.delete(rt.key===null?ie:rt.key),R=h(rt,R,ie),be===null?te=rt:be.sibling=rt,be=rt);return e&&ae.forEach(function(oa){return t(D,oa)}),Ce&&wa(D,ie),te}function se(D,R,L,Y){if(L==null)throw Error(r(151));for(var te=null,be=null,ae=R,ie=R=0,rt=null,Ee=L.next();ae!==null&&!Ee.done;ie++,Ee=L.next()){ae.index>ie?(rt=ae,ae=null):rt=ae.sibling;var oa=V(D,ae,Ee.value,Y);if(oa===null){ae===null&&(ae=rt);break}e&&ae&&oa.alternate===null&&t(D,ae),R=h(oa,R,ie),be===null?te=oa:be.sibling=oa,be=oa,ae=rt}if(Ee.done)return s(D,ae),Ce&&wa(D,ie),te;if(ae===null){for(;!Ee.done;ie++,Ee=L.next())Ee=G(D,Ee.value,Y),Ee!==null&&(R=h(Ee,R,ie),be===null?te=Ee:be.sibling=Ee,be=Ee);return Ce&&wa(D,ie),te}for(ae=l(ae);!Ee.done;ie++,Ee=L.next())Ee=_(ae,D,ie,Ee.value,Y),Ee!==null&&(e&&Ee.alternate!==null&&ae.delete(Ee.key===null?ie:Ee.key),R=h(Ee,R,ie),be===null?te=Ee:be.sibling=Ee,be=Ee);return e&&ae.forEach(function(Jb){return t(D,Jb)}),Ce&&wa(D,ie),te}function ze(D,R,L,Y){if(typeof L=="object"&&L!==null&&L.type===N&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case b:e:{for(var te=L.key;R!==null;){if(R.key===te){if(te=L.type,te===N){if(R.tag===7){s(D,R.sibling),Y=u(R,L.props.children),Y.return=D,D=Y;break e}}else if(R.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===W&&Cm(te)===R.type){s(D,R.sibling),Y=u(R,L.props),Ci(Y,L),Y.return=D,D=Y;break e}s(D,R);break}else t(D,R);R=R.sibling}L.type===N?(Y=ba(L.props.children,D.mode,Y,L.key),Y.return=D,D=Y):(Y=Pl(L.type,L.key,L.props,null,D.mode,Y),Ci(Y,L),Y.return=D,D=Y)}return x(D);case j:e:{for(te=L.key;R!==null;){if(R.key===te)if(R.tag===4&&R.stateNode.containerInfo===L.containerInfo&&R.stateNode.implementation===L.implementation){s(D,R.sibling),Y=u(R,L.children||[]),Y.return=D,D=Y;break e}else{s(D,R);break}else t(D,R);R=R.sibling}Y=nu(L,D.mode,Y),Y.return=D,D=Y}return x(D);case W:return te=L._init,L=te(L._payload),ze(D,R,L,Y)}if(ve(L))return re(D,R,L,Y);if(ue(L)){if(te=ue(L),typeof te!="function")throw Error(r(150));return L=te.call(L),se(D,R,L,Y)}if(typeof L.then=="function")return ze(D,R,ir(L),Y);if(L.$$typeof===M)return ze(D,R,Kl(D,L),Y);lr(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,R!==null&&R.tag===6?(s(D,R.sibling),Y=u(R,L),Y.return=D,D=Y):(s(D,R),Y=tu(L,D.mode,Y),Y.return=D,D=Y),x(D)):s(D,R)}return function(D,R,L,Y){try{Ai=0;var te=ze(D,R,L,Y);return ys=null,te}catch(ae){if(ae===xi||ae===Zl)throw ae;var be=Lt(29,ae,null,D.mode);return be.lanes=Y,be.return=D,be}finally{}}}var xs=Rm(!0),Dm=Rm(!1),Kt=P(null),un=null;function Fn(e){var t=e.alternate;$(at,at.current&1),$(Kt,e),un===null&&(t===null||hs.current!==null||t.memoizedState!==null)&&(un=e)}function Mm(e){if(e.tag===22){if($(at,at.current),$(Kt,e),un===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(un=e)}}else Zn()}function Zn(){$(at,at.current),$(Kt,Kt.current)}function An(e){J(Kt),un===e&&(un=null),J(at)}var at=P(0);function rr(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||Nc(s)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Bu(e,t,s,l){t=e.memoizedState,s=s(l,t),s=s==null?t:y({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var Uu={enqueueSetState:function(e,t,s){e=e._reactInternals;var l=Vt(),u=Gn(l);u.payload=t,s!=null&&(u.callback=s),t=Xn(e,u,l),t!==null&&(_t(t,e,l),bi(t,e,l))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var l=Vt(),u=Gn(l);u.tag=1,u.payload=t,s!=null&&(u.callback=s),t=Xn(e,u,l),t!==null&&(_t(t,e,l),bi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=Vt(),l=Gn(s);l.tag=2,t!=null&&(l.callback=t),t=Xn(e,l,s),t!==null&&(_t(t,e,s),bi(t,e,s))}};function Om(e,t,s,l,u,h,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,h,x):t.prototype&&t.prototype.isPureReactComponent?!ci(s,l)||!ci(u,h):!0}function Lm(e,t,s,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,l),t.state!==e&&Uu.enqueueReplaceState(t,t.state,null)}function Ra(e,t){var s=t;if("ref"in t){s={};for(var l in t)l!=="ref"&&(s[l]=t[l])}if(e=e.defaultProps){s===t&&(s=y({},s));for(var u in e)s[u]===void 0&&(s[u]=e[u])}return s}var or=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function zm(e){or(e)}function Bm(e){console.error(e)}function Um(e){or(e)}function ur(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Vm(e,t,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Vu(e,t,s){return s=Gn(s),s.tag=3,s.payload={element:null},s.callback=function(){ur(e,t)},s}function _m(e){return e=Gn(e),e.tag=3,e}function km(e,t,s,l){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var h=l.value;e.payload=function(){return u(h)},e.callback=function(){Vm(t,s,l)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Vm(t,s,l),typeof u!="function"&&(ea===null?ea=new Set([this]):ea.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function Jv(e,t,s,l,u){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=s.alternate,t!==null&&pi(t,s,u,!0),s=Kt.current,s!==null){switch(s.tag){case 13:return un===null?rc():s.alternate===null&&Fe===0&&(Fe=3),s.flags&=-257,s.flags|=65536,s.lanes=u,l===du?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([l]):t.add(l),uc(e,l,u)),!1;case 22:return s.flags|=65536,l===du?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([l]):s.add(l)),uc(e,l,u)),!1}throw Error(r(435,s.tag))}return uc(e,l,u),rc(),!1}if(Ce)return t=Kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==iu&&(e=Error(r(422),{cause:l}),mi(Pt(e,s)))):(l!==iu&&(t=Error(r(423),{cause:l}),mi(Pt(t,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Pt(l,s),u=Vu(e.stateNode,l,u),pu(e,u),Fe!==4&&(Fe=2)),!1;var h=Error(r(520),{cause:l});if(h=Pt(h,s),Bi===null?Bi=[h]:Bi.push(h),Fe!==4&&(Fe=2),t===null)return!0;l=Pt(l,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=Vu(s.stateNode,l,e),pu(s,e),!1;case 1:if(t=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(ea===null||!ea.has(h))))return s.flags|=65536,u&=-u,s.lanes|=u,u=_m(u),km(u,e,s,l),pu(s,u),!1}s=s.return}while(s!==null);return!1}var Hm=Error(r(461)),it=!1;function ut(e,t,s,l){t.child=e===null?Dm(t,null,s,l):xs(t,e.child,s,l)}function qm(e,t,s,l,u){s=s.render;var h=t.ref;if("ref"in l){var x={};for(var S in l)S!=="ref"&&(x[S]=l[S])}else x=l;return Ea(t),l=bu(e,t,s,x,h,u),S=Su(),e!==null&&!it?(wu(e,t,u),Cn(e,t,u)):(Ce&&S&&au(t),t.flags|=1,ut(e,t,l,u),t.child)}function Pm(e,t,s,l,u){if(e===null){var h=s.type;return typeof h=="function"&&!eu(h)&&h.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=h,Ym(e,t,h,l,u)):(e=Pl(s.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Xu(e,u)){var x=h.memoizedProps;if(s=s.compare,s=s!==null?s:ci,s(x,l)&&e.ref===t.ref)return Cn(e,t,u)}return t.flags|=1,e=Sn(h,l),e.ref=t.ref,e.return=t,t.child=e}function Ym(e,t,s,l,u){if(e!==null){var h=e.memoizedProps;if(ci(h,l)&&e.ref===t.ref)if(it=!1,t.pendingProps=l=h,Xu(e,u))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Cn(e,t,u)}return _u(e,t,s,l,u)}function Gm(e,t,s){var l=t.pendingProps,u=l.children,h=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=h!==null?h.baseLanes|s:s,e!==null){for(u=t.child=e.child,h=0;u!==null;)h=h|u.lanes|u.childLanes,u=u.sibling;t.childLanes=h&~l}else t.childLanes=0,t.child=null;return Xm(e,t,l,s)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fl(t,h!==null?h.cachePool:null),h!==null?Yh(t,h):yu(),Mm(t);else return t.lanes=t.childLanes=536870912,Xm(e,t,h!==null?h.baseLanes|s:s,s)}else h!==null?(Fl(t,h.cachePool),Yh(t,h),Zn(),t.memoizedState=null):(e!==null&&Fl(t,null),yu(),Zn());return ut(e,t,u,s),t.child}function Xm(e,t,s,l){var u=fu();return u=u===null?null:{parent:nt._currentValue,pool:u},t.memoizedState={baseLanes:s,cachePool:u},e!==null&&Fl(t,null),yu(),Mm(t),e!==null&&pi(e,t,l,!0),null}function cr(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function _u(e,t,s,l,u){return Ea(t),s=bu(e,t,s,l,void 0,u),l=Su(),e!==null&&!it?(wu(e,t,u),Cn(e,t,u)):(Ce&&l&&au(t),t.flags|=1,ut(e,t,s,u),t.child)}function Km(e,t,s,l,u,h){return Ea(t),t.updateQueue=null,s=Xh(t,l,s,u),Gh(e),l=Su(),e!==null&&!it?(wu(e,t,h),Cn(e,t,h)):(Ce&&l&&au(t),t.flags|=1,ut(e,t,s,h),t.child)}function Fm(e,t,s,l,u){if(Ea(t),t.stateNode===null){var h=os,x=s.contextType;typeof x=="object"&&x!==null&&(h=mt(x)),h=new s(l,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Uu,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=l,h.state=t.memoizedState,h.refs={},hu(t),x=s.contextType,h.context=typeof x=="object"&&x!==null?mt(x):os,h.state=t.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(Bu(t,s,x,l),h.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(x=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),x!==h.state&&Uu.enqueueReplaceState(h,h.state,null),wi(t,l,h,u),Si(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){h=t.stateNode;var S=t.memoizedProps,E=Ra(s,S);h.props=E;var B=h.context,q=s.contextType;x=os,typeof q=="object"&&q!==null&&(x=mt(q));var G=s.getDerivedStateFromProps;q=typeof G=="function"||typeof h.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,q||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S||B!==x)&&Lm(t,h,l,x),Yn=!1;var V=t.memoizedState;h.state=V,wi(t,l,h,u),Si(),B=t.memoizedState,S||V!==B||Yn?(typeof G=="function"&&(Bu(t,s,G,l),B=t.memoizedState),(E=Yn||Om(t,s,E,l,V,B,x))?(q||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),h.props=l,h.state=B,h.context=x,l=E):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{h=t.stateNode,mu(e,t),x=t.memoizedProps,q=Ra(s,x),h.props=q,G=t.pendingProps,V=h.context,B=s.contextType,E=os,typeof B=="object"&&B!==null&&(E=mt(B)),S=s.getDerivedStateFromProps,(B=typeof S=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x!==G||V!==E)&&Lm(t,h,l,E),Yn=!1,V=t.memoizedState,h.state=V,wi(t,l,h,u),Si();var _=t.memoizedState;x!==G||V!==_||Yn||e!==null&&e.dependencies!==null&&Xl(e.dependencies)?(typeof S=="function"&&(Bu(t,s,S,l),_=t.memoizedState),(q=Yn||Om(t,s,q,l,V,_,E)||e!==null&&e.dependencies!==null&&Xl(e.dependencies))?(B||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,_,E),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,_,E)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=_),h.props=l,h.state=_,h.context=E,l=q):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),l=!1)}return h=l,cr(e,t),l=(t.flags&128)!==0,h||l?(h=t.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&l?(t.child=xs(t,e.child,null,u),t.child=xs(t,null,s,u)):ut(e,t,s,u),t.memoizedState=h.state,e=t.child):e=Cn(e,t,u),e}function Zm(e,t,s,l){return hi(),t.flags|=256,ut(e,t,s,l),t.child}var ku={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hu(e){return{baseLanes:e,cachePool:Bh()}}function qu(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=Ft),e}function Qm(e,t,s){var l=t.pendingProps,u=!1,h=(t.flags&128)!==0,x;if((x=h)||(x=e!==null&&e.memoizedState===null?!1:(at.current&2)!==0),x&&(u=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(u?Fn(t):Zn(),Ce){var S=Ke,E;if(E=S){e:{for(E=S,S=on;E.nodeType!==8;){if(!S){S=null;break e}if(E=an(E.nextSibling),E===null){S=null;break e}}S=E}S!==null?(t.memoizedState={dehydrated:S,treeContext:Sa!==null?{id:wn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},E=Lt(18,null,null,0),E.stateNode=S,E.return=t,t.child=E,St=t,Ke=null,E=!0):E=!1}E||Na(t)}if(S=t.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return Nc(S)?t.lanes=32:t.lanes=536870912,null;An(t)}return S=l.children,l=l.fallback,u?(Zn(),u=t.mode,S=fr({mode:"hidden",children:S},u),l=ba(l,u,s,null),S.return=t,l.return=t,S.sibling=l,t.child=S,u=t.child,u.memoizedState=Hu(s),u.childLanes=qu(e,x,s),t.memoizedState=ku,l):(Fn(t),Pu(t,S))}if(E=e.memoizedState,E!==null&&(S=E.dehydrated,S!==null)){if(h)t.flags&256?(Fn(t),t.flags&=-257,t=Yu(e,t,s)):t.memoizedState!==null?(Zn(),t.child=e.child,t.flags|=128,t=null):(Zn(),u=l.fallback,S=t.mode,l=fr({mode:"visible",children:l.children},S),u=ba(u,S,s,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,xs(t,e.child,null,s),l=t.child,l.memoizedState=Hu(s),l.childLanes=qu(e,x,s),t.memoizedState=ku,t=u);else if(Fn(t),Nc(S)){if(x=S.nextSibling&&S.nextSibling.dataset,x)var B=x.dgst;x=B,l=Error(r(419)),l.stack="",l.digest=x,mi({value:l,source:null,stack:null}),t=Yu(e,t,s)}else if(it||pi(e,t,s,!1),x=(s&e.childLanes)!==0,it||x){if(x=Ve,x!==null&&(l=s&-s,l=(l&42)!==0?1:To(l),l=(l&(x.suspendedLanes|s))!==0?0:l,l!==0&&l!==E.retryLane))throw E.retryLane=l,rs(e,l),_t(x,e,l),Hm;S.data==="$?"||rc(),t=Yu(e,t,s)}else S.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Ke=an(S.nextSibling),St=t,Ce=!0,ja=null,on=!1,e!==null&&(Gt[Xt++]=wn,Gt[Xt++]=jn,Gt[Xt++]=Sa,wn=e.id,jn=e.overflow,Sa=t),t=Pu(t,l.children),t.flags|=4096);return t}return u?(Zn(),u=l.fallback,S=t.mode,E=e.child,B=E.sibling,l=Sn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,B!==null?u=Sn(B,u):(u=ba(u,S,s,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,S=e.child.memoizedState,S===null?S=Hu(s):(E=S.cachePool,E!==null?(B=nt._currentValue,E=E.parent!==B?{parent:B,pool:B}:E):E=Bh(),S={baseLanes:S.baseLanes|s,cachePool:E}),u.memoizedState=S,u.childLanes=qu(e,x,s),t.memoizedState=ku,l):(Fn(t),s=e.child,e=s.sibling,s=Sn(s,{mode:"visible",children:l.children}),s.return=t,s.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=s,t.memoizedState=null,s)}function Pu(e,t){return t=fr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function fr(e,t){return e=Lt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Yu(e,t,s){return xs(t,e.child,null,s),e=Pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $m(e,t,s){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ru(e.return,t,s)}function Gu(e,t,s,l,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=s,h.tailMode=u)}function Jm(e,t,s){var l=t.pendingProps,u=l.revealOrder,h=l.tail;if(ut(e,t,l.children,s),l=at.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$m(e,s,t);else if(e.tag===19)$m(e,s,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}l&=1}switch($(at,l),u){case"forwards":for(s=t.child,u=null;s!==null;)e=s.alternate,e!==null&&rr(e)===null&&(u=s),s=s.sibling;s=u,s===null?(u=t.child,t.child=null):(u=s.sibling,s.sibling=null),Gu(t,!1,u,s,h);break;case"backwards":for(s=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&rr(e)===null){t.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}Gu(t,!0,s,null,h);break;case"together":Gu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cn(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),In|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(pi(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,s=Sn(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=Sn(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function Xu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Xl(e)))}function Wv(e,t,s){switch(t.tag){case 3:Be(t,t.stateNode.containerInfo),Pn(t,nt,e.memoizedState.cache),hi();break;case 27:case 5:Ya(t);break;case 4:Be(t,t.stateNode.containerInfo);break;case 10:Pn(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Fn(t),t.flags|=128,null):(s&t.child.childLanes)!==0?Qm(e,t,s):(Fn(t),e=Cn(e,t,s),e!==null?e.sibling:null);Fn(t);break;case 19:var u=(e.flags&128)!==0;if(l=(s&t.childLanes)!==0,l||(pi(e,t,s,!1),l=(s&t.childLanes)!==0),u){if(l)return Jm(e,t,s);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),$(at,at.current),l)break;return null;case 22:case 23:return t.lanes=0,Gm(e,t,s);case 24:Pn(t,nt,e.memoizedState.cache)}return Cn(e,t,s)}function Wm(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!Xu(e,s)&&(t.flags&128)===0)return it=!1,Wv(e,t,s);it=(e.flags&131072)!==0}else it=!1,Ce&&(t.flags&1048576)!==0&&Ch(t,Gl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")eu(l)?(e=Ra(l,e),t.tag=1,t=Fm(null,t,l,e,s)):(t.tag=0,t=_u(null,t,l,e,s));else{if(l!=null){if(u=l.$$typeof,u===K){t.tag=11,t=qm(null,t,l,e,s);break e}else if(u===Q){t.tag=14,t=Pm(null,t,l,e,s);break e}}throw t=He(l)||l,Error(r(306,t,""))}}return t;case 0:return _u(e,t,t.type,t.pendingProps,s);case 1:return l=t.type,u=Ra(l,t.pendingProps),Fm(e,t,l,u,s);case 3:e:{if(Be(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var h=t.memoizedState;u=h.element,mu(e,t),wi(t,l,null,s);var x=t.memoizedState;if(l=x.cache,Pn(t,nt,l),l!==h.cache&&ou(t,[nt],s,!0),Si(),l=x.element,h.isDehydrated)if(h={element:l,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=Zm(e,t,l,s);break e}else if(l!==u){u=Pt(Error(r(424)),t),mi(u),t=Zm(e,t,l,s);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ke=an(e.firstChild),St=t,Ce=!0,ja=null,on=!0,s=Dm(t,null,l,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(hi(),l===u){t=Cn(e,t,s);break e}ut(e,t,l,s)}t=t.child}return t;case 26:return cr(e,t),e===null?(s=np(t.type,null,t.pendingProps,null))?t.memoizedState=s:Ce||(s=t.type,e=t.pendingProps,l=Tr(ce.current).createElement(s),l[ht]=t,l[jt]=e,ft(l,s,e),st(l),t.stateNode=l):t.memoizedState=np(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ya(t),e===null&&Ce&&(l=t.stateNode=I0(t.type,t.pendingProps,ce.current),St=t,on=!0,u=Ke,aa(t.type)?(Tc=u,Ke=an(l.firstChild)):Ke=u),ut(e,t,t.pendingProps.children,s),cr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((u=l=Ke)&&(l=Eb(l,t.type,t.pendingProps,on),l!==null?(t.stateNode=l,St=t,Ke=an(l.firstChild),on=!1,u=!0):u=!1),u||Na(t)),Ya(t),u=t.type,h=t.pendingProps,x=e!==null?e.memoizedProps:null,l=h.children,Sc(u,h)?l=null:x!==null&&Sc(u,x)&&(t.flags|=32),t.memoizedState!==null&&(u=bu(e,t,Gv,null,null,s),Gi._currentValue=u),cr(e,t),ut(e,t,l,s),t.child;case 6:return e===null&&Ce&&((e=s=Ke)&&(s=Ab(s,t.pendingProps,on),s!==null?(t.stateNode=s,St=t,Ke=null,e=!0):e=!1),e||Na(t)),null;case 13:return Qm(e,t,s);case 4:return Be(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=xs(t,null,l,s):ut(e,t,l,s),t.child;case 11:return qm(e,t,t.type,t.pendingProps,s);case 7:return ut(e,t,t.pendingProps,s),t.child;case 8:return ut(e,t,t.pendingProps.children,s),t.child;case 12:return ut(e,t,t.pendingProps.children,s),t.child;case 10:return l=t.pendingProps,Pn(t,t.type,l.value),ut(e,t,l.children,s),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Ea(t),u=mt(u),l=l(u),t.flags|=1,ut(e,t,l,s),t.child;case 14:return Pm(e,t,t.type,t.pendingProps,s);case 15:return Ym(e,t,t.type,t.pendingProps,s);case 19:return Jm(e,t,s);case 31:return l=t.pendingProps,s=t.mode,l={mode:l.mode,children:l.children},e===null?(s=fr(l,s),s.ref=t.ref,t.child=s,s.return=t,t=s):(s=Sn(e.child,l),s.ref=t.ref,t.child=s,s.return=t,t=s),t;case 22:return Gm(e,t,s);case 24:return Ea(t),l=mt(nt),e===null?(u=fu(),u===null&&(u=Ve,h=uu(),u.pooledCache=h,h.refCount++,h!==null&&(u.pooledCacheLanes|=s),u=h),t.memoizedState={parent:l,cache:u},hu(t),Pn(t,nt,u)):((e.lanes&s)!==0&&(mu(e,t),wi(t,null,null,s),Si()),u=e.memoizedState,h=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Pn(t,nt,l)):(l=h.cache,Pn(t,nt,l),l!==u.cache&&ou(t,[nt],s,!0))),ut(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Rn(e){e.flags|=4}function Im(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rp(t)){if(t=Kt.current,t!==null&&((Ne&4194048)===Ne?un!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||t!==un))throw vi=du,Uh;e.flags|=8192}}function dr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Md():536870912,e.lanes|=t,ws|=t)}function Ri(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(t)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=s,t}function Iv(e,t,s){var l=t.pendingProps;switch(su(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return s=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Tn(nt),It(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(di(t)?Rn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mh())),Pe(t),null;case 26:return s=t.memoizedState,e===null?(Rn(t),s!==null?(Pe(t),Im(t,s)):(Pe(t),t.flags&=-16777217)):s?s!==e.memoizedState?(Rn(t),Pe(t),Im(t,s)):(Pe(t),t.flags&=-16777217):(e.memoizedProps!==l&&Rn(t),Pe(t),t.flags&=-16777217),null;case 27:Ga(t),s=ce.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Rn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Pe(t),null}e=ne.current,di(t)?Rh(t):(e=I0(u,l,s),t.stateNode=e,Rn(t))}return Pe(t),null;case 5:if(Ga(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Rn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Pe(t),null}if(e=ne.current,di(t))Rh(t);else{switch(u=Tr(ce.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?u.createElement(s,{is:l.is}):u.createElement(s)}}e[ht]=t,e[jt]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(ft(e,s,l),s){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Rn(t)}}return Pe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Rn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ce.current,di(t)){if(e=t.stateNode,s=t.memoizedProps,l=null,u=St,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[ht]=t,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||K0(e.nodeValue,s)),e||Na(t)}else e=Tr(e).createTextNode(l),e[ht]=t,t.stateNode=e}return Pe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=di(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ht]=t}else hi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),u=!1}else u=Mh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(An(t),t):(An(t),null)}if(An(t),(t.flags&128)!==0)return t.lanes=s,t;if(s=l!==null,e=e!==null&&e.memoizedState!==null,s){l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var h=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==u&&(l.flags|=2048)}return s!==e&&s&&(t.child.flags|=8192),dr(t,t.updateQueue),Pe(t),null;case 4:return It(),e===null&&gc(t.stateNode.containerInfo),Pe(t),null;case 10:return Tn(t.type),Pe(t),null;case 19:if(J(at),u=t.memoizedState,u===null)return Pe(t),null;if(l=(t.flags&128)!==0,h=u.rendering,h===null)if(l)Ri(u,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=rr(e),h!==null){for(t.flags|=128,Ri(u,!1),e=h.updateQueue,t.updateQueue=e,dr(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Ah(s,e),s=s.sibling;return $(at,at.current&1|2),t.child}e=e.sibling}u.tail!==null&&kt()>pr&&(t.flags|=128,l=!0,Ri(u,!1),t.lanes=4194304)}else{if(!l)if(e=rr(h),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,dr(t,e),Ri(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Ce)return Pe(t),null}else 2*kt()-u.renderingStartTime>pr&&s!==536870912&&(t.flags|=128,l=!0,Ri(u,!1),t.lanes=4194304);u.isBackwards?(h.sibling=t.child,t.child=h):(e=u.last,e!==null?e.sibling=h:t.child=h,u.last=h)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=kt(),t.sibling=null,e=at.current,$(at,l?e&1|2:e&1),t):(Pe(t),null);case 22:case 23:return An(t),xu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(s&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),s=t.updateQueue,s!==null&&dr(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==s&&(t.flags|=2048),e!==null&&J(Aa),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Tn(nt),Pe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function eb(e,t){switch(su(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(nt),It(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ga(t),null;case 13:if(An(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(at),null;case 4:return It(),null;case 10:return Tn(t.type),null;case 22:case 23:return An(t),xu(),e!==null&&J(Aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(nt),null;case 25:return null;default:return null}}function e0(e,t){switch(su(t),t.tag){case 3:Tn(nt),It();break;case 26:case 27:case 5:Ga(t);break;case 4:It();break;case 13:An(t);break;case 19:J(at);break;case 10:Tn(t.type);break;case 22:case 23:An(t),xu(),e!==null&&J(Aa);break;case 24:Tn(nt)}}function Di(e,t){try{var s=t.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var u=l.next;s=u;do{if((s.tag&e)===e){l=void 0;var h=s.create,x=s.inst;l=h(),x.destroy=l}s=s.next}while(s!==u)}}catch(S){Ue(t,t.return,S)}}function Qn(e,t,s){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var h=u.next;l=h;do{if((l.tag&e)===e){var x=l.inst,S=x.destroy;if(S!==void 0){x.destroy=void 0,u=t;var E=s,B=S;try{B()}catch(q){Ue(u,E,q)}}}l=l.next}while(l!==h)}}catch(q){Ue(t,t.return,q)}}function t0(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{Ph(t,s)}catch(l){Ue(e,e.return,l)}}}function n0(e,t,s){s.props=Ra(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){Ue(e,t,l)}}function Mi(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof s=="function"?e.refCleanup=s(l):s.current=l}}catch(u){Ue(e,t,u)}}function cn(e,t){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(u){Ue(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){Ue(e,t,u)}else s.current=null}function a0(e){var t=e.type,s=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(u){Ue(e,e.return,u)}}function Ku(e,t,s){try{var l=e.stateNode;Sb(l,e.type,s,t),l[jt]=t}catch(u){Ue(e,e.return,u)}}function s0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function Fu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||s0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&aa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zu(e,t,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=Nr));else if(l!==4&&(l===27&&aa(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(Zu(e,t,s),e=e.sibling;e!==null;)Zu(e,t,s),e=e.sibling}function hr(e,t,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(l!==4&&(l===27&&aa(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(hr(e,t,s),e=e.sibling;e!==null;)hr(e,t,s),e=e.sibling}function i0(e){var t=e.stateNode,s=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ft(t,l,s),t[ht]=e,t[jt]=s}catch(h){Ue(e,e.return,h)}}var Dn=!1,$e=!1,Qu=!1,l0=typeof WeakSet=="function"?WeakSet:Set,lt=null;function tb(e,t){if(e=e.containerInfo,vc=Mr,e=yh(e),Fo(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var u=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch(se){s=null;break e}var x=0,S=-1,E=-1,B=0,q=0,G=e,V=null;t:for(;;){for(var _;G!==s||u!==0&&G.nodeType!==3||(S=x+u),G!==h||l!==0&&G.nodeType!==3||(E=x+l),G.nodeType===3&&(x+=G.nodeValue.length),(_=G.firstChild)!==null;)V=G,G=_;for(;;){if(G===e)break t;if(V===s&&++B===u&&(S=x),V===h&&++q===l&&(E=x),(_=G.nextSibling)!==null)break;G=V,V=G.parentNode}G=_}s=S===-1||E===-1?null:{start:S,end:E}}else s=null}s=s||{start:0,end:0}}else s=null;for(bc={focusedElem:e,selectionRange:s},Mr=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,h=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,s=t,u=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var re=Ra(s.type,u,s.elementType===s.type);e=l.getSnapshotBeforeUpdate(re,h),l.__reactInternalSnapshotBeforeUpdate=e}catch(se){Ue(s,s.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)jc(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":jc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function r0(e,t,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:$n(e,s),l&4&&Di(5,s);break;case 1:if($n(e,s),l&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(x){Ue(s,s.return,x)}else{var u=Ra(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ue(s,s.return,x)}}l&64&&t0(s),l&512&&Mi(s,s.return);break;case 3:if($n(e,s),l&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{Ph(e,t)}catch(x){Ue(s,s.return,x)}}break;case 27:t===null&&l&4&&i0(s);case 26:case 5:$n(e,s),t===null&&l&4&&a0(s),l&512&&Mi(s,s.return);break;case 12:$n(e,s);break;case 13:$n(e,s),l&4&&c0(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=cb.bind(null,s),Cb(e,s))));break;case 22:if(l=s.memoizedState!==null||Dn,!l){t=t!==null&&t.memoizedState!==null||$e,u=Dn;var h=$e;Dn=l,($e=t)&&!h?Jn(e,s,(s.subtreeFlags&8772)!==0):$n(e,s),Dn=u,$e=h}break;case 30:break;default:$n(e,s)}}function o0(e){var t=e.alternate;t!==null&&(e.alternate=null,o0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Co(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var _e=null,Et=!1;function Mn(e,t,s){for(s=s.child;s!==null;)u0(e,t,s),s=s.sibling}function u0(e,t,s){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(vt,s)}catch(h){}switch(s.tag){case 26:$e||cn(s,t),Mn(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:$e||cn(s,t);var l=_e,u=Et;aa(s.type)&&(_e=s.stateNode,Et=!1),Mn(e,t,s),Hi(s.stateNode),_e=l,Et=u;break;case 5:$e||cn(s,t);case 6:if(l=_e,u=Et,_e=null,Mn(e,t,s),_e=l,Et=u,_e!==null)if(Et)try{(_e.nodeType===9?_e.body:_e.nodeName==="HTML"?_e.ownerDocument.body:_e).removeChild(s.stateNode)}catch(h){Ue(s,t,h)}else try{_e.removeChild(s.stateNode)}catch(h){Ue(s,t,h)}break;case 18:_e!==null&&(Et?(e=_e,J0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),Zi(e)):J0(_e,s.stateNode));break;case 4:l=_e,u=Et,_e=s.stateNode.containerInfo,Et=!0,Mn(e,t,s),_e=l,Et=u;break;case 0:case 11:case 14:case 15:$e||Qn(2,s,t),$e||Qn(4,s,t),Mn(e,t,s);break;case 1:$e||(cn(s,t),l=s.stateNode,typeof l.componentWillUnmount=="function"&&n0(s,t,l)),Mn(e,t,s);break;case 21:Mn(e,t,s);break;case 22:$e=(l=$e)||s.memoizedState!==null,Mn(e,t,s),$e=l;break;default:Mn(e,t,s)}}function c0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Zi(e)}catch(s){Ue(t,t.return,s)}}function nb(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new l0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new l0),t;default:throw Error(r(435,e.tag))}}function $u(e,t){var s=nb(e);t.forEach(function(l){var u=fb.bind(null,e,l);s.has(l)||(s.add(l),l.then(u,u))})}function zt(e,t){var s=t.deletions;if(s!==null)for(var l=0;l<s.length;l++){var u=s[l],h=e,x=t,S=x;e:for(;S!==null;){switch(S.tag){case 27:if(aa(S.type)){_e=S.stateNode,Et=!1;break e}break;case 5:_e=S.stateNode,Et=!1;break e;case 3:case 4:_e=S.stateNode.containerInfo,Et=!0;break e}S=S.return}if(_e===null)throw Error(r(160));u0(h,x,u),_e=null,Et=!1,h=u.alternate,h!==null&&(h.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)f0(t,e),t=t.sibling}var nn=null;function f0(e,t){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),Bt(e),l&4&&(Qn(3,e,e.return),Di(3,e),Qn(5,e,e.return));break;case 1:zt(t,e),Bt(e),l&512&&($e||s===null||cn(s,s.return)),l&64&&Dn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var u=nn;if(zt(t,e),Bt(e),l&512&&($e||s===null||cn(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=e.memoizedState,s===null)if(l===null)if(e.stateNode===null){e:{l=e.type,s=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":h=u.getElementsByTagName("title")[0],(!h||h[ti]||h[ht]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=u.createElement(l),u.head.insertBefore(h,u.querySelector("head > title"))),ft(h,l,s),h[ht]=e,st(h),l=h;break e;case"link":var x=ip("link","href",u).get(l+(s.href||""));if(x){for(var S=0;S<x.length;S++)if(h=x[S],h.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&h.getAttribute("rel")===(s.rel==null?null:s.rel)&&h.getAttribute("title")===(s.title==null?null:s.title)&&h.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(S,1);break t}}h=u.createElement(l),ft(h,l,s),u.head.appendChild(h);break;case"meta":if(x=ip("meta","content",u).get(l+(s.content||""))){for(S=0;S<x.length;S++)if(h=x[S],h.getAttribute("content")===(s.content==null?null:""+s.content)&&h.getAttribute("name")===(s.name==null?null:s.name)&&h.getAttribute("property")===(s.property==null?null:s.property)&&h.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&h.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(S,1);break t}}h=u.createElement(l),ft(h,l,s),u.head.appendChild(h);break;default:throw Error(r(468,l))}h[ht]=e,st(h),l=h}e.stateNode=l}else lp(u,e.type,e.stateNode);else e.stateNode=sp(u,l,e.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?lp(u,e.type,e.stateNode):sp(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ku(e,e.memoizedProps,s.memoizedProps)}break;case 27:zt(t,e),Bt(e),l&512&&($e||s===null||cn(s,s.return)),s!==null&&l&4&&Ku(e,e.memoizedProps,s.memoizedProps);break;case 5:if(zt(t,e),Bt(e),l&512&&($e||s===null||cn(s,s.return)),e.flags&32){u=e.stateNode;try{es(u,"")}catch(_){Ue(e,e.return,_)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Ku(e,u,s!==null?s.memoizedProps:u)),l&1024&&(Qu=!0);break;case 6:if(zt(t,e),Bt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(_){Ue(e,e.return,_)}}break;case 3:if(Cr=null,u=nn,nn=Er(t.containerInfo),zt(t,e),nn=u,Bt(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{Zi(t.containerInfo)}catch(_){Ue(e,e.return,_)}Qu&&(Qu=!1,d0(e));break;case 4:l=nn,nn=Er(e.stateNode.containerInfo),zt(t,e),Bt(e),nn=l;break;case 12:zt(t,e),Bt(e);break;case 13:zt(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(nc=kt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$u(e,l)));break;case 22:u=e.memoizedState!==null;var E=s!==null&&s.memoizedState!==null,B=Dn,q=$e;if(Dn=B||u,$e=q||E,zt(t,e),$e=q,Dn=B,Bt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(s===null||E||Dn||$e||Da(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){E=s=t;try{if(h=E.stateNode,u)x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{S=E.stateNode;var G=E.memoizedProps.style,V=G!=null&&G.hasOwnProperty("display")?G.display:null;S.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(_){Ue(E,E.return,_)}}}else if(t.tag===6){if(s===null){E=t;try{E.stateNode.nodeValue=u?"":E.memoizedProps}catch(_){Ue(E,E.return,_)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,$u(e,s))));break;case 19:zt(t,e),Bt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,$u(e,l)));break;case 30:break;case 21:break;default:zt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var s,l=e.return;l!==null;){if(s0(l)){s=l;break}l=l.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var u=s.stateNode,h=Fu(e);hr(e,h,u);break;case 5:var x=s.stateNode;s.flags&32&&(es(x,""),s.flags&=-33);var S=Fu(e);hr(e,S,x);break;case 3:case 4:var E=s.stateNode.containerInfo,B=Fu(e);Zu(e,B,E);break;default:throw Error(r(161))}}catch(q){Ue(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function d0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;d0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)r0(e,t.alternate,t),t=t.sibling}function Da(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Qn(4,t,t.return),Da(t);break;case 1:cn(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&n0(t,t.return,s),Da(t);break;case 27:Hi(t.stateNode);case 26:case 5:cn(t,t.return),Da(t);break;case 22:t.memoizedState===null&&Da(t);break;case 30:Da(t);break;default:Da(t)}e=e.sibling}}function Jn(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,h=t,x=h.flags;switch(h.tag){case 0:case 11:case 15:Jn(u,h,s),Di(4,h);break;case 1:if(Jn(u,h,s),l=h,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(B){Ue(l,l.return,B)}if(l=h,u=l.updateQueue,u!==null){var S=l.stateNode;try{var E=u.shared.hiddenCallbacks;if(E!==null)for(u.shared.hiddenCallbacks=null,u=0;u<E.length;u++)qh(E[u],S)}catch(B){Ue(l,l.return,B)}}s&&x&64&&t0(h),Mi(h,h.return);break;case 27:i0(h);case 26:case 5:Jn(u,h,s),s&&l===null&&x&4&&a0(h),Mi(h,h.return);break;case 12:Jn(u,h,s);break;case 13:Jn(u,h,s),s&&x&4&&c0(u,h);break;case 22:h.memoizedState===null&&Jn(u,h,s),Mi(h,h.return);break;case 30:break;default:Jn(u,h,s)}t=t.sibling}}function Ju(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&gi(s))}function Wu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gi(e))}function fn(e,t,s,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)h0(e,t,s,l),t=t.sibling}function h0(e,t,s,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:fn(e,t,s,l),u&2048&&Di(9,t);break;case 1:fn(e,t,s,l);break;case 3:fn(e,t,s,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gi(e)));break;case 12:if(u&2048){fn(e,t,s,l),e=t.stateNode;try{var h=t.memoizedProps,x=h.id,S=h.onPostCommit;typeof S=="function"&&S(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Ue(t,t.return,E)}}else fn(e,t,s,l);break;case 13:fn(e,t,s,l);break;case 23:break;case 22:h=t.stateNode,x=t.alternate,t.memoizedState!==null?h._visibility&2?fn(e,t,s,l):Oi(e,t):h._visibility&2?fn(e,t,s,l):(h._visibility|=2,vs(e,t,s,l,(t.subtreeFlags&10256)!==0)),u&2048&&Ju(x,t);break;case 24:fn(e,t,s,l),u&2048&&Wu(t.alternate,t);break;default:fn(e,t,s,l)}}function vs(e,t,s,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var h=e,x=t,S=s,E=l,B=x.flags;switch(x.tag){case 0:case 11:case 15:vs(h,x,S,E,u),Di(8,x);break;case 23:break;case 22:var q=x.stateNode;x.memoizedState!==null?q._visibility&2?vs(h,x,S,E,u):Oi(h,x):(q._visibility|=2,vs(h,x,S,E,u)),u&&B&2048&&Ju(x.alternate,x);break;case 24:vs(h,x,S,E,u),u&&B&2048&&Wu(x.alternate,x);break;default:vs(h,x,S,E,u)}t=t.sibling}}function Oi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,l=t,u=l.flags;switch(l.tag){case 22:Oi(s,l),u&2048&&Ju(l.alternate,l);break;case 24:Oi(s,l),u&2048&&Wu(l.alternate,l);break;default:Oi(s,l)}t=t.sibling}}var Li=8192;function bs(e){if(e.subtreeFlags&Li)for(e=e.child;e!==null;)m0(e),e=e.sibling}function m0(e){switch(e.tag){case 26:bs(e),e.flags&Li&&e.memoizedState!==null&&qb(nn,e.memoizedState,e.memoizedProps);break;case 5:bs(e);break;case 3:case 4:var t=nn;nn=Er(e.stateNode.containerInfo),bs(e),nn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Li,Li=16777216,bs(e),Li=t):bs(e));break;default:bs(e)}}function p0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function zi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var l=t[s];lt=l,y0(l,e)}p0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)g0(e),e=e.sibling}function g0(e){switch(e.tag){case 0:case 11:case 15:zi(e),e.flags&2048&&Qn(9,e,e.return);break;case 3:zi(e);break;case 12:zi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,mr(e)):zi(e);break;default:zi(e)}}function mr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var l=t[s];lt=l,y0(l,e)}p0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Qn(8,t,t.return),mr(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,mr(t));break;default:mr(t)}e=e.sibling}}function y0(e,t){for(;lt!==null;){var s=lt;switch(s.tag){case 0:case 11:case 15:Qn(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:gi(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,lt=l;else e:for(s=e;lt!==null;){l=lt;var u=l.sibling,h=l.return;if(o0(l),l===s){lt=null;break e}if(u!==null){u.return=h,lt=u;break e}lt=h}}}var ab={getCacheForType:function(e){var t=mt(nt),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s}},sb=typeof WeakMap=="function"?WeakMap:Map,De=0,Ve=null,Se=null,Ne=0,Me=0,Ut=null,Wn=!1,Ss=!1,Iu=!1,On=0,Fe=0,In=0,Ma=0,ec=0,Ft=0,ws=0,Bi=null,At=null,tc=!1,nc=0,pr=1/0,gr=null,ea=null,ct=0,ta=null,js=null,Ns=0,ac=0,sc=null,x0=null,Ui=0,ic=null;function Vt(){if((De&2)!==0&&Ne!==0)return Ne&-Ne;if(H.T!==null){var e=fs;return e!==0?e:dc()}return zd()}function v0(){Ft===0&&(Ft=(Ne&536870912)===0||Ce?Dd():536870912);var e=Kt.current;return e!==null&&(e.flags|=32),Ft}function _t(e,t,s){(e===Ve&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Ts(e,0),na(e,Ne,Ft,!1)),ei(e,s),((De&2)===0||e!==Ve)&&(e===Ve&&((De&2)===0&&(Ma|=s),Fe===4&&na(e,Ne,Ft,!1)),dn(e))}function b0(e,t,s){if((De&6)!==0)throw Error(r(327));var l=!s&&(t&124)===0&&(t&e.expiredLanes)===0||Is(e,t),u=l?rb(e,t):oc(e,t,!0),h=l;do{if(u===0){Ss&&!l&&na(e,t,0,!1);break}else{if(s=e.current.alternate,h&&!ib(s)){u=oc(e,t,!1),h=!1;continue}if(u===2){if(h=t,e.errorRecoveryDisabledLanes&h)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var S=e;u=Bi;var E=S.current.memoizedState.isDehydrated;if(E&&(Ts(S,x).flags|=256),x=oc(S,x,!1),x!==2){if(Iu&&!E){S.errorRecoveryDisabledLanes|=h,Ma|=h,u=4;break e}h=At,At=u,h!==null&&(At===null?At=h:At.push.apply(At,h))}u=x}if(h=!1,u!==2)continue}}if(u===1){Ts(e,0),na(e,t,0,!0);break}e:{switch(l=e,h=u,h){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:na(l,t,Ft,!Wn);break e;case 2:At=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=nc+300-kt(),10<u)){if(na(l,t,Ft,!Wn),Al(l,0,!0)!==0)break e;l.timeoutHandle=Q0(S0.bind(null,l,s,At,gr,tc,t,Ft,Ma,ws,Wn,h,2,-0,0),u);break e}S0(l,s,At,gr,tc,t,Ft,Ma,ws,Wn,h,0,-0,0)}}break}while(!0);dn(e)}function S0(e,t,s,l,u,h,x,S,E,B,q,G,V,_){if(e.timeoutHandle=-1,G=t.subtreeFlags,(G&8192||(G&16785408)===16785408)&&(Yi={stylesheets:null,count:0,unsuspend:Hb},m0(t),G=Pb(),G!==null)){e.cancelPendingCommit=G(C0.bind(null,e,t,h,s,l,u,x,S,E,q,1,V,_)),na(e,h,x,!B);return}C0(e,t,h,s,l,u,x,S,E)}function ib(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var u=s[l],h=u.getSnapshot;u=u.value;try{if(!Ot(h(),u))return!1}catch(x){return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;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 na(e,t,s,l){t&=~ec,t&=~Ma,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var h=31-Mt(u),x=1<<h;l[h]=-1,u&=~x}s!==0&&Od(e,s,t)}function yr(){return(De&6)===0?(Vi(0),!1):!0}function lc(){if(Se!==null){if(Me===0)var e=Se.return;else e=Se,Nn=Ta=null,ju(e),ys=null,Ai=0,e=Se;for(;e!==null;)e0(e.alternate,e),e=e.return;Se=null}}function Ts(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,jb(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),lc(),Ve=e,Se=s=Sn(e.current,null),Ne=t,Me=0,Ut=null,Wn=!1,Ss=Is(e,t),Iu=!1,ws=Ft=ec=Ma=In=Fe=0,At=Bi=null,tc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-Mt(l),h=1<<u;t|=e[u],l&=~h}return On=t,kl(),s}function w0(e,t){ye=null,H.H=sr,t===xi||t===Zl?(t=kh(),Me=3):t===Uh?(t=kh(),Me=4):Me=t===Hm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ut=t,Se===null&&(Fe=1,ur(e,Pt(t,e.current)))}function j0(){var e=H.H;return H.H=sr,e===null?sr:e}function N0(){var e=H.A;return H.A=ab,e}function rc(){Fe=4,Wn||(Ne&4194048)!==Ne&&Kt.current!==null||(Ss=!0),(In&134217727)===0&&(Ma&134217727)===0||Ve===null||na(Ve,Ne,Ft,!1)}function oc(e,t,s){var l=De;De|=2;var u=j0(),h=N0();(Ve!==e||Ne!==t)&&(gr=null,Ts(e,t)),t=!1;var x=Fe;e:do try{if(Me!==0&&Se!==null){var S=Se,E=Ut;switch(Me){case 8:lc(),x=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(t=!0);var B=Me;if(Me=0,Ut=null,Es(e,S,E,B),s&&Ss){x=0;break e}break;default:B=Me,Me=0,Ut=null,Es(e,S,E,B)}}lb(),x=Fe;break}catch(q){w0(e,q)}while(!0);return t&&e.shellSuspendCounter++,Nn=Ta=null,De=l,H.H=u,H.A=h,Se===null&&(Ve=null,Ne=0,kl()),x}function lb(){for(;Se!==null;)T0(Se)}function rb(e,t){var s=De;De|=2;var l=j0(),u=N0();Ve!==e||Ne!==t?(gr=null,pr=kt()+500,Ts(e,t)):Ss=Is(e,t);e:do try{if(Me!==0&&Se!==null){t=Se;var h=Ut;t:switch(Me){case 1:Me=0,Ut=null,Es(e,t,h,1);break;case 2:case 9:if(Vh(h)){Me=0,Ut=null,E0(t);break}t=function(){Me!==2&&Me!==9||Ve!==e||(Me=7),dn(e)},h.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Vh(h)?(Me=0,Ut=null,E0(t)):(Me=0,Ut=null,Es(e,t,h,7));break;case 5:var x=null;switch(Se.tag){case 26:x=Se.memoizedState;case 5:case 27:var S=Se;if(!x||rp(x)){Me=0,Ut=null;var E=S.sibling;if(E!==null)Se=E;else{var B=S.return;B!==null?(Se=B,xr(B)):Se=null}break t}}Me=0,Ut=null,Es(e,t,h,5);break;case 6:Me=0,Ut=null,Es(e,t,h,6);break;case 8:lc(),Fe=6;break e;default:throw Error(r(462))}}ob();break}catch(q){w0(e,q)}while(!0);return Nn=Ta=null,H.H=l,H.A=u,De=s,Se!==null?0:(Ve=null,Ne=0,kl(),Fe)}function ob(){for(;Se!==null&&!So();)T0(Se)}function T0(e){var t=Wm(e.alternate,e,On);e.memoizedProps=e.pendingProps,t===null?xr(e):Se=t}function E0(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=Km(s,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Km(s,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:ju(t);default:e0(s,t),t=Se=Ah(t,On),t=Wm(s,t,On)}e.memoizedProps=e.pendingProps,t===null?xr(e):Se=t}function Es(e,t,s,l){Nn=Ta=null,ju(t),ys=null,Ai=0;var u=t.return;try{if(Jv(e,u,t,s,Ne)){Fe=1,ur(e,Pt(s,e.current)),Se=null;return}}catch(h){if(u!==null)throw Se=u,h;Fe=1,ur(e,Pt(s,e.current)),Se=null;return}t.flags&32768?(Ce||l===1?e=!0:Ss||(Ne&536870912)!==0?e=!1:(Wn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Kt.current,l!==null&&l.tag===13&&(l.flags|=16384))),A0(t,e)):xr(t)}function xr(e){var t=e;do{if((t.flags&32768)!==0){A0(t,Wn);return}e=t.return;var s=Iv(t.alternate,t,On);if(s!==null){Se=s;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Fe===0&&(Fe=5)}function A0(e,t){do{var s=eb(e.alternate,e);if(s!==null){s.flags&=32767,Se=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=s}while(e!==null);Fe=6,Se=null}function C0(e,t,s,l,u,h,x,S,E){e.cancelPendingCommit=null;do vr();while(ct!==0);if((De&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(h=t.lanes|t.childLanes,h|=Wo,H1(e,s,h,x,S,E),e===Ve&&(Se=Ve=null,Ne=0),js=t,ta=e,Ns=s,ac=h,sc=u,x0=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,db(Ka,function(){return L0(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=H.T,H.T=null,u=F.p,F.p=2,x=De,De|=4;try{tb(e,t,s)}finally{De=x,F.p=u,H.T=l}}ct=1,R0(),D0(),M0()}}function R0(){if(ct===1){ct=0;var e=ta,t=js,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=H.T,H.T=null;var l=F.p;F.p=2;var u=De;De|=4;try{f0(t,e);var h=bc,x=yh(e.containerInfo),S=h.focusedElem,E=h.selectionRange;if(x!==S&&S&&S.ownerDocument&&gh(S.ownerDocument.documentElement,S)){if(E!==null&&Fo(S)){var B=E.start,q=E.end;if(q===void 0&&(q=B),"selectionStart"in S)S.selectionStart=B,S.selectionEnd=Math.min(q,S.value.length);else{var G=S.ownerDocument||document,V=G&&G.defaultView||window;if(V.getSelection){var _=V.getSelection(),re=S.textContent.length,se=Math.min(E.start,re),ze=E.end===void 0?se:Math.min(E.end,re);!_.extend&&se>ze&&(x=ze,ze=se,se=x);var D=ph(S,se),R=ph(S,ze);if(D&&R&&(_.rangeCount!==1||_.anchorNode!==D.node||_.anchorOffset!==D.offset||_.focusNode!==R.node||_.focusOffset!==R.offset)){var L=G.createRange();L.setStart(D.node,D.offset),_.removeAllRanges(),se>ze?(_.addRange(L),_.extend(R.node,R.offset)):(L.setEnd(R.node,R.offset),_.addRange(L))}}}}for(G=[],_=S;_=_.parentNode;)_.nodeType===1&&G.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<G.length;S++){var Y=G[S];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}Mr=!!vc,bc=vc=null}finally{De=u,F.p=l,H.T=s}}e.current=t,ct=2}}function D0(){if(ct===2){ct=0;var e=ta,t=js,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=H.T,H.T=null;var l=F.p;F.p=2;var u=De;De|=4;try{r0(e,t.alternate,t)}finally{De=u,F.p=l,H.T=s}}ct=3}}function M0(){if(ct===4||ct===3){ct=0,wo();var e=ta,t=js,s=Ns,l=x0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,js=ta=null,O0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ea=null),Eo(s),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(vt,t,void 0,(t.current.flags&128)===128)}catch(E){}if(l!==null){t=H.T,u=F.p,F.p=2,H.T=null;try{for(var h=e.onRecoverableError,x=0;x<l.length;x++){var S=l[x];h(S.value,{componentStack:S.stack})}}finally{H.T=t,F.p=u}}(Ns&3)!==0&&vr(),dn(e),u=e.pendingLanes,(s&4194090)!==0&&(u&42)!==0?e===ic?Ui++:(Ui=0,ic=e):Ui=0,Vi(0)}}function O0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gi(t)))}function vr(e){return R0(),D0(),M0(),L0()}function L0(){if(ct!==5)return!1;var e=ta,t=ac;ac=0;var s=Eo(Ns),l=H.T,u=F.p;try{F.p=32>s?32:s,H.T=null,s=sc,sc=null;var h=ta,x=Ns;if(ct=0,js=ta=null,Ns=0,(De&6)!==0)throw Error(r(331));var S=De;if(De|=4,g0(h.current),h0(h,h.current,x,s),De=S,Vi(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(vt,h)}catch(E){}return!0}finally{F.p=u,H.T=l,O0(e,t)}}function z0(e,t,s){t=Pt(s,t),t=Vu(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(ei(e,2),dn(e))}function Ue(e,t,s){if(e.tag===3)z0(e,e,s);else for(;t!==null;){if(t.tag===3){z0(t,e,s);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ea===null||!ea.has(l))){e=Pt(s,e),s=_m(2),l=Xn(t,s,2),l!==null&&(km(s,l,t,e),ei(l,2),dn(l));break}}t=t.return}}function uc(e,t,s){var l=e.pingCache;if(l===null){l=e.pingCache=new sb;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(s)||(Iu=!0,u.add(s),e=ub.bind(null,e,t,s),t.then(e,e))}function ub(e,t,s){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,Ve===e&&(Ne&s)===s&&(Fe===4||Fe===3&&(Ne&62914560)===Ne&&300>kt()-nc?(De&2)===0&&Ts(e,0):ec|=s,ws===Ne&&(ws=0)),dn(e)}function B0(e,t){t===0&&(t=Md()),e=rs(e,t),e!==null&&(ei(e,t),dn(e))}function cb(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),B0(e,s)}function fb(e,t){var s=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(s=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),B0(e,s)}function db(e,t){return $s(e,t)}var br=null,As=null,cc=!1,Sr=!1,fc=!1,Oa=0;function dn(e){e!==As&&e.next===null&&(As===null?br=As=e:As=As.next=e),Sr=!0,cc||(cc=!0,mb())}function Vi(e,t){if(!fc&&Sr){fc=!0;do for(var s=!1,l=br;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var h=0;else{var x=l.suspendedLanes,S=l.pingedLanes;h=(1<<31-Mt(42|e)+1)-1,h&=u&~(x&~S),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(s=!0,k0(l,h))}else h=Ne,h=Al(l,l===Ve?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||Is(l,h)||(s=!0,k0(l,h));l=l.next}while(s);fc=!1}}function hb(){U0()}function U0(){Sr=cc=!1;var e=0;Oa!==0&&(wb()&&(e=Oa),Oa=0);for(var t=kt(),s=null,l=br;l!==null;){var u=l.next,h=V0(l,t);h===0?(l.next=null,s===null?br=u:s.next=u,u===null&&(As=s)):(s=l,(e!==0||(h&3)!==0)&&(Sr=!0)),l=u}Vi(e)}function V0(e,t){for(var s=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var x=31-Mt(h),S=1<<x,E=u[x];E===-1?((S&s)===0||(S&l)!==0)&&(u[x]=k1(S,t)):E<=t&&(e.expiredLanes|=S),h&=~S}if(t=Ve,s=Ne,s=Al(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Xa(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||Is(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(l!==null&&Xa(l),Eo(s)){case 2:case 8:s=Ws;break;case 32:s=Ka;break;case 268435456:s=Te;break;default:s=Ka}return l=_0.bind(null,e),s=$s(s,l),e.callbackPriority=t,e.callbackNode=s,t}return l!==null&&l!==null&&Xa(l),e.callbackPriority=2,e.callbackNode=null,2}function _0(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(vr()&&e.callbackNode!==s)return null;var l=Ne;return l=Al(e,e===Ve?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(b0(e,l,t),V0(e,kt()),e.callbackNode!=null&&e.callbackNode===s?_0.bind(null,e):null)}function k0(e,t){if(vr())return null;b0(e,t,!0)}function mb(){Nb(function(){(De&6)!==0?$s(Js,hb):U0()})}function dc(){return Oa===0&&(Oa=Dd()),Oa}function H0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ol(""+e)}function q0(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function pb(e,t,s,l,u){if(t==="submit"&&s&&s.stateNode===u){var h=H0((u[jt]||null).action),x=l.submitter;x&&(t=(t=x[jt]||null)?H0(t.formAction):x.getAttribute("formAction"),t!==null&&(h=t,x=null));var S=new Ul("action","action",null,l,u);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Oa!==0){var E=x?q0(u,x):new FormData(u);Ou(s,{pending:!0,data:E,method:u.method,action:h},null,E)}}else typeof h=="function"&&(S.preventDefault(),E=x?q0(u,x):new FormData(u),Ou(s,{pending:!0,data:E,method:u.method,action:h},h,E))},currentTarget:u}]})}}for(var hc=0;hc<Jo.length;hc++){var mc=Jo[hc],gb=mc.toLowerCase(),yb=mc[0].toUpperCase()+mc.slice(1);tn(gb,"on"+yb)}tn(bh,"onAnimationEnd"),tn(Sh,"onAnimationIteration"),tn(wh,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(zv,"onTransitionRun"),tn(Bv,"onTransitionStart"),tn(Uv,"onTransitionCancel"),tn(jh,"onTransitionEnd"),Ja("onMouseEnter",["mouseout","mouseover"]),Ja("onMouseLeave",["mouseout","mouseover"]),Ja("onPointerEnter",["pointerout","pointerover"]),Ja("onPointerLeave",["pointerout","pointerover"]),ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ga("onBeforeInput",["compositionend","keypress","textInput","paste"]),ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _i="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(" "),xb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_i));function P0(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],u=l.event;l=l.listeners;e:{var h=void 0;if(t)for(var x=l.length-1;0<=x;x--){var S=l[x],E=S.instance,B=S.currentTarget;if(S=S.listener,E!==h&&u.isPropagationStopped())break e;h=S,u.currentTarget=B;try{h(u)}catch(q){or(q)}u.currentTarget=null,h=E}else for(x=0;x<l.length;x++){if(S=l[x],E=S.instance,B=S.currentTarget,S=S.listener,E!==h&&u.isPropagationStopped())break e;h=S,u.currentTarget=B;try{h(u)}catch(q){or(q)}u.currentTarget=null,h=E}}}}function we(e,t){var s=t[Ao];s===void 0&&(s=t[Ao]=new Set);var l=e+"__bubble";s.has(l)||(Y0(t,e,2,!1),s.add(l))}function pc(e,t,s){var l=0;t&&(l|=4),Y0(s,e,l,t)}var wr="_reactListening"+Math.random().toString(36).slice(2);function gc(e){if(!e[wr]){e[wr]=!0,Ud.forEach(function(s){s!=="selectionchange"&&(xb.has(s)||pc(s,!1,e),pc(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wr]||(t[wr]=!0,pc("selectionchange",!1,t))}}function Y0(e,t,s,l){switch(hp(t)){case 2:var u=Xb;break;case 8:u=Kb;break;default:u=Dc}s=u.bind(null,t,s,e),u=void 0,!_o||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,s,{capture:!0,passive:u}):e.addEventListener(t,s,!0):u!==void 0?e.addEventListener(t,s,{passive:u}):e.addEventListener(t,s,!1)}function yc(e,t,s,l,u){var h=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var S=l.stateNode.containerInfo;if(S===u)break;if(x===4)for(x=l.return;x!==null;){var E=x.tag;if((E===3||E===4)&&x.stateNode.containerInfo===u)return;x=x.return}for(;S!==null;){if(x=Za(S),x===null)return;if(E=x.tag,E===5||E===6||E===26||E===27){l=h=x;continue e}S=S.parentNode}}l=l.return}$d(function(){var B=h,q=Uo(s),G=[];e:{var V=Nh.get(e);if(V!==void 0){var _=Ul,re=e;switch(e){case"keypress":if(zl(s)===0)break e;case"keydown":case"keyup":_=dv;break;case"focusin":re="focus",_=Po;break;case"focusout":re="blur",_=Po;break;case"beforeblur":case"afterblur":_=Po;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=pv;break;case bh:case Sh:case wh:_=av;break;case jh:_=yv;break;case"scroll":case"scrollend":_=W1;break;case"wheel":_=vv;break;case"copy":case"cut":case"paste":_=iv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=th;break;case"toggle":case"beforetoggle":_=Sv}var se=(t&4)!==0,ze=!se&&(e==="scroll"||e==="scrollend"),D=se?V!==null?V+"Capture":null:V;se=[];for(var R=B,L;R!==null;){var Y=R;if(L=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||L===null||D===null||(Y=ai(R,D),Y!=null&&se.push(ki(R,Y,L))),ze)break;R=R.return}0<se.length&&(V=new _(V,re,null,s,q),G.push({event:V,listeners:se}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",V&&s!==Bo&&(re=s.relatedTarget||s.fromElement)&&(Za(re)||re[Fa]))break e;if((_||V)&&(V=q.window===q?q:(V=q.ownerDocument)?V.defaultView||V.parentWindow:window,_?(re=s.relatedTarget||s.toElement,_=B,re=re?Za(re):null,re!==null&&(ze=c(re),se=re.tag,re!==ze||se!==5&&se!==27&&se!==6)&&(re=null)):(_=null,re=B),_!==re)){if(se=Id,Y="onMouseLeave",D="onMouseEnter",R="mouse",(e==="pointerout"||e==="pointerover")&&(se=th,Y="onPointerLeave",D="onPointerEnter",R="pointer"),ze=_==null?V:ni(_),L=re==null?V:ni(re),V=new se(Y,R+"leave",_,s,q),V.target=ze,V.relatedTarget=L,Y=null,Za(q)===B&&(se=new se(D,R+"enter",re,s,q),se.target=L,se.relatedTarget=ze,Y=se),ze=Y,_&&re)t:{for(se=_,D=re,R=0,L=se;L;L=Cs(L))R++;for(L=0,Y=D;Y;Y=Cs(Y))L++;for(;0<R-L;)se=Cs(se),R--;for(;0<L-R;)D=Cs(D),L--;for(;R--;){if(se===D||D!==null&&se===D.alternate)break t;se=Cs(se),D=Cs(D)}se=null}else se=null;_!==null&&G0(G,V,_,se,!1),re!==null&&ze!==null&&G0(G,ze,re,se,!0)}}e:{if(V=B?ni(B):window,_=V.nodeName&&V.nodeName.toLowerCase(),_==="select"||_==="input"&&V.type==="file")var te=uh;else if(rh(V))if(ch)te=Mv;else{te=Rv;var be=Cv}else _=V.nodeName,!_||_.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?B&&zo(B.elementType)&&(te=uh):te=Dv;if(te&&(te=te(e,B))){oh(G,te,s,q);break e}be&&be(e,V,B),e==="focusout"&&B&&V.type==="number"&&B.memoizedProps.value!=null&&Lo(V,"number",V.value)}switch(be=B?ni(B):window,e){case"focusin":(rh(be)||be.contentEditable==="true")&&(ss=be,Zo=B,fi=null);break;case"focusout":fi=Zo=ss=null;break;case"mousedown":Qo=!0;break;case"contextmenu":case"mouseup":case"dragend":Qo=!1,xh(G,s,q);break;case"selectionchange":if(Lv)break;case"keydown":case"keyup":xh(G,s,q)}var ae;if(Go)e:{switch(e){case"compositionstart":var ie="onCompositionStart";break e;case"compositionend":ie="onCompositionEnd";break e;case"compositionupdate":ie="onCompositionUpdate";break e}ie=void 0}else as?ih(e,s)&&(ie="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(ie="onCompositionStart");ie&&(nh&&s.locale!=="ko"&&(as||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&as&&(ae=Jd()):(qn=q,ko="value"in qn?qn.value:qn.textContent,as=!0)),be=jr(B,ie),0<be.length&&(ie=new eh(ie,e,null,s,q),G.push({event:ie,listeners:be}),ae?ie.data=ae:(ae=lh(s),ae!==null&&(ie.data=ae)))),(ae=jv?Nv(e,s):Tv(e,s))&&(ie=jr(B,"onBeforeInput"),0<ie.length&&(be=new eh("onBeforeInput","beforeinput",null,s,q),G.push({event:be,listeners:ie}),be.data=ae)),pb(G,e,B,s,q)}P0(G,t)})}function ki(e,t,s){return{instance:e,listener:t,currentTarget:s}}function jr(e,t){for(var s=t+"Capture",l=[];e!==null;){var u=e,h=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||h===null||(u=ai(e,s),u!=null&&l.unshift(ki(e,u,h)),u=ai(e,t),u!=null&&l.push(ki(e,u,h))),e.tag===3)return l;e=e.return}return[]}function Cs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function G0(e,t,s,l,u){for(var h=t._reactName,x=[];s!==null&&s!==l;){var S=s,E=S.alternate,B=S.stateNode;if(S=S.tag,E!==null&&E===l)break;S!==5&&S!==26&&S!==27||B===null||(E=B,u?(B=ai(s,h),B!=null&&x.unshift(ki(s,B,E))):u||(B=ai(s,h),B!=null&&x.push(ki(s,B,E)))),s=s.return}x.length!==0&&e.push({event:t,listeners:x})}var vb=/\r\n?/g,bb=/\u0000|\uFFFD/g;function X0(e){return(typeof e=="string"?e:""+e).replace(vb,`
49
+ `).replace(bb,"")}function K0(e,t){return t=X0(t),X0(e)===t}function Nr(){}function Le(e,t,s,l,u,h){switch(s){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||es(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&es(e,""+l);break;case"className":Rl(e,"class",l);break;case"tabIndex":Rl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Rl(e,s,l);break;case"style":Zd(e,l,h);break;case"data":if(t!=="object"){Rl(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=Ol(""+l),e.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(s==="formAction"?(t!=="input"&&Le(e,t,"name",u.name,u,null),Le(e,t,"formEncType",u.formEncType,u,null),Le(e,t,"formMethod",u.formMethod,u,null),Le(e,t,"formTarget",u.formTarget,u,null)):(Le(e,t,"encType",u.encType,u,null),Le(e,t,"method",u.method,u,null),Le(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=Ol(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=Nr);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}s=Ol(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""+l):e.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":l===!0?e.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,l):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(s,l):e.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(s):e.setAttribute(s,l);break;case"popover":we("beforetoggle",e),we("toggle",e),Cl(e,"popover",l);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Cl(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=$1.get(s)||s,Cl(e,s,l))}}function xc(e,t,s,l,u,h){switch(s){case"style":Zd(e,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=s}}break;case"children":typeof l=="string"?es(e,l):(typeof l=="number"||typeof l=="bigint")&&es(e,""+l);break;case"onScroll":l!=null&&we("scroll",e);break;case"onScrollEnd":l!=null&&we("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Nr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vd.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),t=s.slice(2,u?s.length-7:void 0),h=e[jt]||null,h=h!=null?h[s]:null,typeof h=="function"&&e.removeEventListener(t,h,u),typeof l=="function")){typeof h!="function"&&h!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,l,u);break e}s in e?e[s]=l:l===!0?e.setAttribute(s,""):Cl(e,s,l)}}}function ft(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var l=!1,u=!1,h;for(h in s)if(s.hasOwnProperty(h)){var x=s[h];if(x!=null)switch(h){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Le(e,t,h,x,s,null)}}u&&Le(e,t,"srcSet",s.srcSet,s,null),l&&Le(e,t,"src",s.src,s,null);return;case"input":we("invalid",e);var S=h=x=u=null,E=null,B=null;for(l in s)if(s.hasOwnProperty(l)){var q=s[l];if(q!=null)switch(l){case"name":u=q;break;case"type":x=q;break;case"checked":E=q;break;case"defaultChecked":B=q;break;case"value":h=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:Le(e,t,l,q,s,null)}}Gd(e,h,S,E,B,x,u,!1),Dl(e);return;case"select":we("invalid",e),l=x=h=null;for(u in s)if(s.hasOwnProperty(u)&&(S=s[u],S!=null))switch(u){case"value":h=S;break;case"defaultValue":x=S;break;case"multiple":l=S;default:Le(e,t,u,S,s,null)}t=h,s=x,e.multiple=!!l,t!=null?Ia(e,!!l,t,!1):s!=null&&Ia(e,!!l,s,!0);return;case"textarea":we("invalid",e),h=u=l=null;for(x in s)if(s.hasOwnProperty(x)&&(S=s[x],S!=null))switch(x){case"value":l=S;break;case"defaultValue":u=S;break;case"children":h=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Le(e,t,x,S,s,null)}Kd(e,l,u,h),Dl(e);return;case"option":for(E in s)if(s.hasOwnProperty(E)&&(l=s[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Le(e,t,E,l,s,null)}return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(l=0;l<_i.length;l++)we(_i[l],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in s)if(s.hasOwnProperty(B)&&(l=s[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Le(e,t,B,l,s,null)}return;default:if(zo(t)){for(q in s)s.hasOwnProperty(q)&&(l=s[q],l!==void 0&&xc(e,t,q,l,s,void 0));return}}for(S in s)s.hasOwnProperty(S)&&(l=s[S],l!=null&&Le(e,t,S,l,s,null))}function Sb(e,t,s,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,h=null,x=null,S=null,E=null,B=null,q=null;for(_ in s){var G=s[_];if(s.hasOwnProperty(_)&&G!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":E=G;default:l.hasOwnProperty(_)||Le(e,t,_,null,l,G)}}for(var V in l){var _=l[V];if(G=s[V],l.hasOwnProperty(V)&&(_!=null||G!=null))switch(V){case"type":h=_;break;case"name":u=_;break;case"checked":B=_;break;case"defaultChecked":q=_;break;case"value":x=_;break;case"defaultValue":S=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_!==G&&Le(e,t,V,_,l,G)}}Oo(e,x,S,E,B,q,h,u);return;case"select":_=x=S=V=null;for(h in s)if(E=s[h],s.hasOwnProperty(h)&&E!=null)switch(h){case"value":break;case"multiple":_=E;default:l.hasOwnProperty(h)||Le(e,t,h,null,l,E)}for(u in l)if(h=l[u],E=s[u],l.hasOwnProperty(u)&&(h!=null||E!=null))switch(u){case"value":V=h;break;case"defaultValue":S=h;break;case"multiple":x=h;default:h!==E&&Le(e,t,u,h,l,E)}t=S,s=x,l=_,V!=null?Ia(e,!!s,V,!1):!!l!=!!s&&(t!=null?Ia(e,!!s,t,!0):Ia(e,!!s,s?[]:"",!1));return;case"textarea":_=V=null;for(S in s)if(u=s[S],s.hasOwnProperty(S)&&u!=null&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Le(e,t,S,null,l,u)}for(x in l)if(u=l[x],h=s[x],l.hasOwnProperty(x)&&(u!=null||h!=null))switch(x){case"value":V=u;break;case"defaultValue":_=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==h&&Le(e,t,x,u,l,h)}Xd(e,V,_);return;case"option":for(var re in s)if(V=s[re],s.hasOwnProperty(re)&&V!=null&&!l.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Le(e,t,re,null,l,V)}for(E in l)if(V=l[E],_=s[E],l.hasOwnProperty(E)&&V!==_&&(V!=null||_!=null))switch(E){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Le(e,t,E,V,l,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var se in s)V=s[se],s.hasOwnProperty(se)&&V!=null&&!l.hasOwnProperty(se)&&Le(e,t,se,null,l,V);for(B in l)if(V=l[B],_=s[B],l.hasOwnProperty(B)&&V!==_&&(V!=null||_!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,t));break;default:Le(e,t,B,V,l,_)}return;default:if(zo(t)){for(var ze in s)V=s[ze],s.hasOwnProperty(ze)&&V!==void 0&&!l.hasOwnProperty(ze)&&xc(e,t,ze,void 0,l,V);for(q in l)V=l[q],_=s[q],!l.hasOwnProperty(q)||V===_||V===void 0&&_===void 0||xc(e,t,q,V,l,_);return}}for(var D in s)V=s[D],s.hasOwnProperty(D)&&V!=null&&!l.hasOwnProperty(D)&&Le(e,t,D,null,l,V);for(G in l)V=l[G],_=s[G],!l.hasOwnProperty(G)||V===_||V==null&&_==null||Le(e,t,G,V,l,_)}var vc=null,bc=null;function Tr(e){return e.nodeType===9?e:e.ownerDocument}function F0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Z0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Sc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wc=null;function wb(){var e=window.event;return e&&e.type==="popstate"?e===wc?!1:(wc=e,!0):(wc=null,!1)}var Q0=typeof setTimeout=="function"?setTimeout:void 0,jb=typeof clearTimeout=="function"?clearTimeout:void 0,$0=typeof Promise=="function"?Promise:void 0,Nb=typeof queueMicrotask=="function"?queueMicrotask:typeof $0!="undefined"?function(e){return $0.resolve(null).then(e).catch(Tb)}:Q0;function Tb(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function J0(e,t){var s=t,l=0,u=0;do{var h=s.nextSibling;if(e.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(0<l&&8>l){s=l;var x=e.ownerDocument;if(s&1&&Hi(x.documentElement),s&2&&Hi(x.body),s&4)for(s=x.head,Hi(s),x=s.firstChild;x;){var S=x.nextSibling,E=x.nodeName;x[ti]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&x.rel.toLowerCase()==="stylesheet"||s.removeChild(x),x=S}}if(u===0){e.removeChild(h),Zi(t);return}u--}else s==="$"||s==="$?"||s==="$!"?u++:l=s.charCodeAt(0)-48;else l=0;s=h}while(s);Zi(t)}function jc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":jc(s),Co(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function Eb(e,t,s,l){for(;e.nodeType===1;){var u=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ti])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function Ab(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=an(e.nextSibling),e===null))return null;return e}function Nc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Cb(e,t){var s=e.ownerDocument;if(e.data!=="$?"||s.readyState==="complete")t();else{var l=function(){t(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function an(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Tc=null;function W0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"){if(t===0)return e;t--}else s==="/$"&&t++}e=e.previousSibling}return null}function I0(e,t,s){switch(t=Tr(s),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Hi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Co(e)}var Zt=new Map,ep=new Set;function Er(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ln=F.d;F.d={f:Rb,r:Db,D:Mb,C:Ob,L:Lb,m:zb,X:Ub,S:Bb,M:Vb};function Rb(){var e=Ln.f(),t=yr();return e||t}function Db(e){var t=Qa(e);t!==null&&t.tag===5&&t.type==="form"?bm(t):Ln.r(e)}var Rs=typeof document=="undefined"?null:document;function tp(e,t,s){var l=Rs;if(l&&typeof t=="string"&&t){var u=qt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),ep.has(u)||(ep.add(u),e={rel:e,crossOrigin:s,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),ft(t,"link",e),st(t),l.head.appendChild(t)))}}function Mb(e){Ln.D(e),tp("dns-prefetch",e,null)}function Ob(e,t){Ln.C(e,t),tp("preconnect",e,t)}function Lb(e,t,s){Ln.L(e,t,s);var l=Rs;if(l&&e&&t){var u='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+qt(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+qt(s.imageSizes)+'"]')):u+='[href="'+qt(e)+'"]';var h=u;switch(t){case"style":h=Ds(e);break;case"script":h=Ms(e)}Zt.has(h)||(e=y({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),Zt.set(h,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(qi(h))||t==="script"&&l.querySelector(Pi(h))||(t=l.createElement("link"),ft(t,"link",e),st(t),l.head.appendChild(t)))}}function zb(e,t){Ln.m(e,t);var s=Rs;if(s&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+qt(l)+'"][href="'+qt(e)+'"]',h=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ms(e)}if(!Zt.has(h)&&(e=y({rel:"modulepreload",href:e},t),Zt.set(h,e),s.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Pi(h)))return}l=s.createElement("link"),ft(l,"link",e),st(l),s.head.appendChild(l)}}}function Bb(e,t,s){Ln.S(e,t,s);var l=Rs;if(l&&e){var u=$a(l).hoistableStyles,h=Ds(e);t=t||"default";var x=u.get(h);if(!x){var S={loading:0,preload:null};if(x=l.querySelector(qi(h)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},s),(s=Zt.get(h))&&Ec(e,s);var E=x=l.createElement("link");st(E),ft(E,"link",e),E._p=new Promise(function(B,q){E.onload=B,E.onerror=q}),E.addEventListener("load",function(){S.loading|=1}),E.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Ar(x,t,l)}x={type:"stylesheet",instance:x,count:1,state:S},u.set(h,x)}}}function Ub(e,t){Ln.X(e,t);var s=Rs;if(s&&e){var l=$a(s).hoistableScripts,u=Ms(e),h=l.get(u);h||(h=s.querySelector(Pi(u)),h||(e=y({src:e,async:!0},t),(t=Zt.get(u))&&Ac(e,t),h=s.createElement("script"),st(h),ft(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(u,h))}}function Vb(e,t){Ln.M(e,t);var s=Rs;if(s&&e){var l=$a(s).hoistableScripts,u=Ms(e),h=l.get(u);h||(h=s.querySelector(Pi(u)),h||(e=y({src:e,async:!0,type:"module"},t),(t=Zt.get(u))&&Ac(e,t),h=s.createElement("script"),st(h),ft(h,"link",e),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(u,h))}}function np(e,t,s,l){var u=(u=ce.current)?Er(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=Ds(s.href),s=$a(u).hoistableStyles,l=s.get(t),l||(l={type:"style",instance:null,count:0,state:null},s.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Ds(s.href);var h=$a(u).hoistableStyles,x=h.get(e);if(x||(u=u.ownerDocument||u,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,x),(h=u.querySelector(qi(e)))&&!h._p&&(x.instance=h,x.state.loading=5),Zt.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Zt.set(e,s),h||_b(u,e,s,x.state))),t&&l===null)throw Error(r(528,""));return x}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ms(s),s=$a(u).hoistableScripts,l=s.get(t),l||(l={type:"script",instance:null,count:0,state:null},s.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ds(e){return'href="'+qt(e)+'"'}function qi(e){return'link[rel="stylesheet"]['+e+"]"}function ap(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function _b(e,t,s,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ft(t,"link",s),st(t),e.head.appendChild(t))}function Ms(e){return'[src="'+qt(e)+'"]'}function Pi(e){return"script[async]"+e}function sp(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+qt(s.href)+'"]');if(l)return t.instance=l,st(l),l;var u=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),st(l),ft(l,"style",u),Ar(l,s.precedence,e),t.instance=l;case"stylesheet":u=Ds(s.href);var h=e.querySelector(qi(u));if(h)return t.state.loading|=4,t.instance=h,st(h),h;l=ap(s),(u=Zt.get(u))&&Ec(l,u),h=(e.ownerDocument||e).createElement("link"),st(h);var x=h;return x._p=new Promise(function(S,E){x.onload=S,x.onerror=E}),ft(h,"link",l),t.state.loading|=4,Ar(h,s.precedence,e),t.instance=h;case"script":return h=Ms(s.src),(u=e.querySelector(Pi(h)))?(t.instance=u,st(u),u):(l=s,(u=Zt.get(h))&&(l=y({},s),Ac(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),st(u),ft(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ar(l,s.precedence,e));return t.instance}function Ar(e,t,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,h=u,x=0;x<l.length;x++){var S=l[x];if(S.dataset.precedence===t)h=S;else if(h!==u)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function Ec(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ac(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cr=null;function ip(e,t,s){if(Cr===null){var l=new Map,u=Cr=new Map;u.set(s,l)}else u=Cr,l=u.get(s),l||(l=new Map,u.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),u=0;u<s.length;u++){var h=s[u];if(!(h[ti]||h[ht]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var x=h.getAttribute(t)||"";x=e+x;var S=l.get(x);S?S.push(h):l.set(x,[h])}}return l}function lp(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function kb(e,t,s){if(s===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function rp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Yi=null;function Hb(){}function qb(e,t,s){if(Yi===null)throw Error(r(475));var l=Yi;if(t.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Ds(s.href),h=e.querySelector(qi(u));if(h){e=h._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Rr.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=h,st(h);return}h=e.ownerDocument||e,s=ap(s),(u=Zt.get(u))&&Ec(s,u),h=h.createElement("link"),st(h);var x=h;x._p=new Promise(function(S,E){x.onload=S,x.onerror=E}),ft(h,"link",s),t.instance=h}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=Rr.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function Pb(){if(Yi===null)throw Error(r(475));var e=Yi;return e.stylesheets&&e.count===0&&Cc(e,e.stylesheets),0<e.count?function(t){var s=setTimeout(function(){if(e.stylesheets&&Cc(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(s)}}:null}function Rr(){if(this.count--,this.count===0){if(this.stylesheets)Cc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Dr=null;function Cc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Dr=new Map,t.forEach(Yb,e),Dr=null,Rr.call(e))}function Yb(e,t){if(!(t.state.loading&4)){var s=Dr.get(e);if(s)var l=s.get(null);else{s=new Map,Dr.set(e,s);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<u.length;h++){var x=u[h];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(s.set(x.dataset.precedence,x),l=x)}l&&s.set(null,l)}u=t.instance,x=u.getAttribute("data-precedence"),h=s.get(x)||l,h===l&&s.set(null,u),s.set(x,u),this.count++,l=Rr.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),h?h.parentNode.insertBefore(u,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Gi={$$typeof:M,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Gb(e,t,s,l,u,h,x,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=No(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=No(0),this.hiddenUpdates=No(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=h,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function op(e,t,s,l,u,h,x,S,E,B,q,G){return e=new Gb(e,t,s,x,S,E,B,G),t=1,h===!0&&(t|=24),h=Lt(3,null,null,t),e.current=h,h.stateNode=e,t=uu(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:t},hu(h),e}function up(e){return e?(e=os,e):os}function cp(e,t,s,l,u,h){u=up(u),l.context===null?l.context=u:l.pendingContext=u,l=Gn(t),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=Xn(e,l,t),s!==null&&(_t(s,e,t),bi(s,e,t))}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function Rc(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function dp(e){if(e.tag===13){var t=rs(e,67108864);t!==null&&_t(t,e,67108864),Rc(e,67108864)}}var Mr=!0;function Xb(e,t,s,l){var u=H.T;H.T=null;var h=F.p;try{F.p=2,Dc(e,t,s,l)}finally{F.p=h,H.T=u}}function Kb(e,t,s,l){var u=H.T;H.T=null;var h=F.p;try{F.p=8,Dc(e,t,s,l)}finally{F.p=h,H.T=u}}function Dc(e,t,s,l){if(Mr){var u=Mc(l);if(u===null)yc(e,t,l,Or,s),mp(e,l);else if(Zb(u,e,t,s,l))l.stopPropagation();else if(mp(e,l),t&4&&-1<Fb.indexOf(e)){for(;u!==null;){var h=Qa(u);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var x=pa(h.pendingLanes);if(x!==0){var S=h;for(S.pendingLanes|=2,S.entangledLanes|=2;x;){var E=1<<31-Mt(x);S.entanglements[1]|=E,x&=~E}dn(h),(De&6)===0&&(pr=kt()+500,Vi(0))}}break;case 13:S=rs(h,2),S!==null&&_t(S,h,2),yr(),Rc(h,2)}if(h=Mc(l),h===null&&yc(e,t,l,Or,s),h===u)break;u=h}u!==null&&l.stopPropagation()}else yc(e,t,l,null,s)}}function Mc(e){return e=Uo(e),Oc(e)}var Or=null;function Oc(e){if(Or=null,e=Za(e),e!==null){var t=c(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=d(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Or=e,null}function hp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(jo()){case Js:return 2;case Ws:return 8;case Ka:case I:return 32;case Te:return 268435456;default:return 32}default:return 32}}var Lc=!1,sa=null,ia=null,la=null,Xi=new Map,Ki=new Map,ra=[],Fb="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function mp(e,t){switch(e){case"focusin":case"focusout":sa=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Xi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ki.delete(t.pointerId)}}function Fi(e,t,s,l,u,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[u]},t!==null&&(t=Qa(t),t!==null&&dp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Zb(e,t,s,l,u){switch(t){case"focusin":return sa=Fi(sa,e,t,s,l,u),!0;case"dragenter":return ia=Fi(ia,e,t,s,l,u),!0;case"mouseover":return la=Fi(la,e,t,s,l,u),!0;case"pointerover":var h=u.pointerId;return Xi.set(h,Fi(Xi.get(h)||null,e,t,s,l,u)),!0;case"gotpointercapture":return h=u.pointerId,Ki.set(h,Fi(Ki.get(h)||null,e,t,s,l,u)),!0}return!1}function pp(e){var t=Za(e.target);if(t!==null){var s=c(t);if(s!==null){if(t=s.tag,t===13){if(t=d(s),t!==null){e.blockedOn=t,q1(e.priority,function(){if(s.tag===13){var l=Vt();l=To(l);var u=rs(s,l);u!==null&&_t(u,s,l),Rc(s,l)}});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=Mc(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Bo=l,s.target.dispatchEvent(l),Bo=null}else return t=Qa(s),t!==null&&dp(t),e.blockedOn=s,!1;t.shift()}return!0}function gp(e,t,s){Lr(e)&&s.delete(t)}function Qb(){Lc=!1,sa!==null&&Lr(sa)&&(sa=null),ia!==null&&Lr(ia)&&(ia=null),la!==null&&Lr(la)&&(la=null),Xi.forEach(gp),Ki.forEach(gp)}function zr(e,t){e.blockedOn===t&&(e.blockedOn=null,Lc||(Lc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Qb)))}var Br=null;function yp(e){Br!==e&&(Br=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Br===e&&(Br=null);for(var t=0;t<e.length;t+=3){var s=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(Oc(l||s)===null)continue;break}var h=Qa(s);h!==null&&(e.splice(t,3),t-=3,Ou(h,{pending:!0,data:u,method:s.method,action:l},l,u))}}))}function Zi(e){function t(E){return zr(E,e)}sa!==null&&zr(sa,e),ia!==null&&zr(ia,e),la!==null&&zr(la,e),Xi.forEach(t),Ki.forEach(t);for(var s=0;s<ra.length;s++){var l=ra[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ra.length&&(s=ra[0],s.blockedOn===null);)pp(s),s.blockedOn===null&&ra.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var u=s[l],h=s[l+1],x=u[jt]||null;if(typeof h=="function")x||yp(s);else if(x){var S=null;if(h&&h.hasAttribute("formAction")){if(u=h,x=h[jt]||null)S=x.formAction;else if(Oc(u)!==null)continue}else S=x.action;typeof S=="function"?s[l+1]=S:(s.splice(l,3),l-=3),yp(s)}}}function zc(e){this._internalRoot=e}Ur.prototype.render=zc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var s=t.current,l=Vt();cp(s,l,e,t,null,null)},Ur.prototype.unmount=zc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cp(e.current,2,null,e,null,null),yr(),t[Fa]=null}};function Ur(e){this._internalRoot=e}Ur.prototype.unstable_scheduleHydration=function(e){if(e){var t=zd();e={blockedOn:null,target:e,priority:t};for(var s=0;s<ra.length&&t!==0&&t<ra[s].priority;s++);ra.splice(s,0,e),s===0&&pp(e)}};var xp=a.version;if(xp!=="19.1.1")throw Error(r(527,xp,"19.1.1"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var $b={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Vr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vr.isDisabled&&Vr.supportsFiber)try{vt=Vr.inject($b),bt=Vr}catch(e){}}return $i.createRoot=function(e,t){if(!o(e))throw Error(r(299));var s=!1,l="",u=zm,h=Bm,x=Um,S=null;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(S=t.unstable_transitionCallbacks)),t=op(e,1,!1,null,null,s,l,u,h,x,S,null),e[Fa]=t.current,gc(e),new zc(t)},$i.hydrateRoot=function(e,t,s){if(!o(e))throw Error(r(299));var l=!1,u="",h=zm,x=Bm,S=Um,E=null,B=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(E=s.unstable_transitionCallbacks),s.formState!==void 0&&(B=s.formState)),t=op(e,1,!0,t,s!=null?s:null,l,u,h,x,S,E,B),t.context=up(null),s=t.current,l=Vt(),l=To(l),u=Gn(l),u.callback=null,Xn(s,u,l),s=l,t.current.lanes=s,ei(t,s),dn(t),e[Fa]=t.current,gc(e),new Ur(t)},$i.version="19.1.1",$i}var Op;function d2(){if(Op)return Hc.exports;Op=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Hc.exports=f2(),Hc.exports}var h2=d2();/**
50
50
  * react-router v7.8.0
51
51
  *
52
52
  * Copyright (c) Remix Software Inc.
@@ -55,16 +55,16 @@ Error generating stack: `+s.message+`
55
55
  * LICENSE.md file in the root directory of this source tree.
56
56
  *
57
57
  * @license MIT
58
- */var Bp="popstate";function h2(n={}){function a(r,o){let{pathname:c,search:d,hash:p}=r.location;return hf("",{pathname:c,search:d,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function i(r,o){return typeof o=="string"?o:il(o)}return p2(a,i,null,n)}function Ye(n,a){if(n===!1||n===null||typeof n=="undefined")throw new Error(a)}function ln(n,a){if(!n){typeof console!="undefined"&&console.warn(a);try{throw new Error(a)}catch(i){}}}function m2(){return Math.random().toString(36).substring(2,10)}function Up(n,a){return{usr:n.state,key:n.key,idx:a}}function hf(n,a,i=null,r){return le(X({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof a=="string"?qs(a):a),{state:i,key:a&&a.key||r||m2()})}function il({pathname:n="/",search:a="",hash:i=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function qs(n){let a={};if(n){let i=n.indexOf("#");i>=0&&(a.hash=n.substring(i),n=n.substring(0,i));let r=n.indexOf("?");r>=0&&(a.search=n.substring(r),n=n.substring(0,r)),n&&(a.pathname=n)}return a}function p2(n,a,i,r={}){let{window:o=document.defaultView,v5Compat:c=!1}=r,d=o.history,p="POP",g=null,m=y();m==null&&(m=0,d.replaceState(le(X({},d.state),{idx:m}),""));function y(){return(d.state||{idx:null}).idx}function v(){p="POP";let E=y(),O=E==null?null:E-m;m=E,g&&g({action:p,location:A.location,delta:O})}function b(E,O){p="PUSH";let L=hf(A.location,E,O);m=y()+1;let M=Up(L,m),K=A.createHref(L);try{d.pushState(M,"",K)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;o.location.assign(K)}c&&g&&g({action:p,location:A.location,delta:1})}function j(E,O){p="REPLACE";let L=hf(A.location,E,O);m=y();let M=Up(L,m),K=A.createHref(L);d.replaceState(M,"",K),c&&g&&g({action:p,location:A.location,delta:0})}function N(E){return g2(E)}let A={get action(){return p},get location(){return n(o,d)},listen(E){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(Bp,v),g=E,()=>{o.removeEventListener(Bp,v),g=null}},createHref(E){return a(o,E)},createURL:N,encodeLocation(E){let O=N(E);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:b,replace:j,go(E){return d.go(E)}};return A}function g2(n,a=!1){let i="http://localhost";typeof window!="undefined"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Ye(i,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:il(n);return r=r.replace(/ $/,"%20"),!a&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function my(n,a,i="/"){return y2(n,a,i,!1)}function y2(n,a,i,r){let o=typeof a=="string"?qs(a):a,c=Bn(o.pathname||"/",i);if(c==null)return null;let d=py(n);x2(d);let p=null;for(let g=0;p==null&&g<d.length;++g){let m=R2(c);p=A2(d[g],m,r)}return p}function py(n,a=[],i=[],r=""){let o=(c,d,p)=>{let g={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};g.relativePath.startsWith("/")&&(Ye(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length));let m=zn([r,g.relativePath]),y=i.concat(g);c.children&&c.children.length>0&&(Ye(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),py(c.children,a,y,m)),!(c.path==null&&!c.index)&&a.push({path:m,score:T2(m,c.index),routesMeta:y})};return n.forEach((c,d)=>{var p;if(c.path===""||!((p=c.path)!=null&&p.includes("?")))o(c,d);else for(let g of gy(c.path))o(c,d,g)}),a}function gy(n){let a=n.split("/");if(a.length===0)return[];let[i,...r]=a,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(r.length===0)return o?[c,""]:[c];let d=gy(r.join("/")),p=[];return p.push(...d.map(g=>g===""?c:[c,g].join("/"))),o&&p.push(...d),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function x2(n){n.sort((a,i)=>a.score!==i.score?i.score-a.score:E2(a.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var v2=/^:[\w-]+$/,b2=3,S2=2,w2=1,j2=10,N2=-2,Vp=n=>n==="*";function T2(n,a){let i=n.split("/"),r=i.length;return i.some(Vp)&&(r+=N2),a&&(r+=S2),i.filter(o=>!Vp(o)).reduce((o,c)=>o+(v2.test(c)?b2:c===""?w2:j2),r)}function E2(n,a){return n.length===a.length&&n.slice(0,-1).every((r,o)=>r===a[o])?n[n.length-1]-a[a.length-1]:0}function A2(n,a,i=!1){let{routesMeta:r}=n,o={},c="/",d=[];for(let p=0;p<r.length;++p){let g=r[p],m=p===r.length-1,y=c==="/"?a:a.slice(c.length)||"/",v=eo({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},y),b=g.route;if(!v&&m&&i&&!r[r.length-1].route.index&&(v=eo({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),d.push({params:o,pathname:zn([c,v.pathname]),pathnameBase:L2(zn([c,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(c=zn([c,v.pathnameBase]))}return d}function eo(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,r]=C2(n.path,n.caseSensitive,n.end),o=a.match(i);if(!o)return null;let c=o[0],d=c.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:r.reduce((m,{paramName:y,isOptional:v},b)=>{if(y==="*"){let N=p[b]||"";d=c.slice(0,c.length-N.length).replace(/(.)\/+$/,"$1")}const j=p[b];return v&&!j?m[y]=void 0:m[y]=(j||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:n}}function C2(n,a=!1,i=!0){ln(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,g)=>(r.push({paramName:p,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),r]}function R2(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return ln(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Bn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let i=a.endsWith("/")?a.length-1:a.length,r=n.charAt(i);return r&&r!=="/"?null:n.slice(i)||"/"}function D2(n,a="/"){let{pathname:i,search:r="",hash:o=""}=typeof n=="string"?qs(n):n;return{pathname:i?i.startsWith("/")?i:M2(i,a):a,search:z2(r),hash:B2(o)}}function M2(n,a){let i=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function Xc(n,a,i,r){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function O2(n){return n.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function yy(n){let a=O2(n);return a.map((i,r)=>r===a.length-1?i.pathname:i.pathnameBase)}function xy(n,a,i,r=!1){let o;typeof n=="string"?o=qs(n):(o=X({},n),Ye(!o.pathname||!o.pathname.includes("?"),Xc("?","pathname","search",o)),Ye(!o.pathname||!o.pathname.includes("#"),Xc("#","pathname","hash",o)),Ye(!o.search||!o.search.includes("#"),Xc("#","search","hash",o)));let c=n===""||o.pathname==="",d=c?"/":o.pathname,p;if(d==null)p=i;else{let v=a.length-1;if(!r&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),v-=1;o.pathname=b.join("/")}p=v>=0?a[v]:"/"}let g=D2(o,p),m=d&&d!=="/"&&d.endsWith("/"),y=(c||d===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(m||y)&&(g.pathname+="/"),g}var zn=n=>n.join("/").replace(/\/\/+/g,"/"),L2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),z2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,B2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function U2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var vy=["POST","PUT","PATCH","DELETE"];new Set(vy);var V2=["GET",...vy];new Set(V2);var Ps=w.createContext(null);Ps.displayName="DataRouter";var uo=w.createContext(null);uo.displayName="DataRouterState";w.createContext(!1);var by=w.createContext({isTransitioning:!1});by.displayName="ViewTransition";var _2=w.createContext(new Map);_2.displayName="Fetchers";var k2=w.createContext(null);k2.displayName="Await";var xn=w.createContext(null);xn.displayName="Navigation";var hl=w.createContext(null);hl.displayName="Location";var _n=w.createContext({outlet:null,matches:[],isDataRoute:!1});_n.displayName="Route";var Gf=w.createContext(null);Gf.displayName="RouteError";function H2(n,{relative:a}={}){Ye(ml(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=w.useContext(xn),{hash:o,pathname:c,search:d}=gl(n,{relative:a}),p=c;return i!=="/"&&(p=c==="/"?i:zn([i,c])),r.createHref({pathname:p,search:d,hash:o})}function ml(){return w.useContext(hl)!=null}function ha(){return Ye(ml(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(hl).location}var Sy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wy(n){w.useContext(xn).static||w.useLayoutEffect(n)}function pl(){let{isDataRoute:n}=w.useContext(_n);return n?I2():q2()}function q2(){Ye(ml(),"useNavigate() may be used only in the context of a <Router> component.");let n=w.useContext(Ps),{basename:a,navigator:i}=w.useContext(xn),{matches:r}=w.useContext(_n),{pathname:o}=ha(),c=JSON.stringify(yy(r)),d=w.useRef(!1);return wy(()=>{d.current=!0}),w.useCallback((g,m={})=>{if(ln(d.current,Sy),!d.current)return;if(typeof g=="number"){i.go(g);return}let y=xy(g,JSON.parse(c),o,m.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:zn([a,y.pathname])),(m.replace?i.replace:i.push)(y,m.state,m)},[a,i,c,o,n])}w.createContext(null);function gl(n,{relative:a}={}){let{matches:i}=w.useContext(_n),{pathname:r}=ha(),o=JSON.stringify(yy(i));return w.useMemo(()=>xy(n,JSON.parse(o),r,a==="path"),[n,o,r,a])}function P2(n,a){return jy(n,a)}function jy(n,a,i,r){var O;Ye(ml(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=w.useContext(xn),{matches:c}=w.useContext(_n),d=c[c.length-1],p=d?d.params:{},g=d?d.pathname:"/",m=d?d.pathnameBase:"/",y=d&&d.route;{let L=y&&y.path||"";Ny(g,!y||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
58
+ */var Lp="popstate";function m2(n={}){function a(r,o){let{pathname:c,search:d,hash:p}=r.location;return df("",{pathname:c,search:d,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function i(r,o){return typeof o=="string"?o:ll(o)}return g2(a,i,null,n)}function Xe(n,a){if(n===!1||n===null||typeof n=="undefined")throw new Error(a)}function ln(n,a){if(!n){typeof console!="undefined"&&console.warn(a);try{throw new Error(a)}catch(i){}}}function p2(){return Math.random().toString(36).substring(2,10)}function zp(n,a){return{usr:n.state,key:n.key,idx:a}}function df(n,a,i=null,r){return le(X({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof a=="string"?Ps(a):a),{state:i,key:a&&a.key||r||p2()})}function ll({pathname:n="/",search:a="",hash:i=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function Ps(n){let a={};if(n){let i=n.indexOf("#");i>=0&&(a.hash=n.substring(i),n=n.substring(0,i));let r=n.indexOf("?");r>=0&&(a.search=n.substring(r),n=n.substring(0,r)),n&&(a.pathname=n)}return a}function g2(n,a,i,r={}){let{window:o=document.defaultView,v5Compat:c=!1}=r,d=o.history,p="POP",g=null,m=y();m==null&&(m=0,d.replaceState(le(X({},d.state),{idx:m}),""));function y(){return(d.state||{idx:null}).idx}function v(){p="POP";let T=y(),O=T==null?null:T-m;m=T,g&&g({action:p,location:A.location,delta:O})}function b(T,O){p="PUSH";let z=df(A.location,T,O);m=y()+1;let M=zp(z,m),K=A.createHref(z);try{d.pushState(M,"",K)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;o.location.assign(K)}c&&g&&g({action:p,location:A.location,delta:1})}function j(T,O){p="REPLACE";let z=df(A.location,T,O);m=y();let M=zp(z,m),K=A.createHref(z);d.replaceState(M,"",K),c&&g&&g({action:p,location:A.location,delta:0})}function N(T){return y2(T)}let A={get action(){return p},get location(){return n(o,d)},listen(T){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(Lp,v),g=T,()=>{o.removeEventListener(Lp,v),g=null}},createHref(T){return a(o,T)},createURL:N,encodeLocation(T){let O=N(T);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:b,replace:j,go(T){return d.go(T)}};return A}function y2(n,a=!1){let i="http://localhost";typeof window!="undefined"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Xe(i,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:ll(n);return r=r.replace(/ $/,"%20"),!a&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function py(n,a,i="/"){return x2(n,a,i,!1)}function x2(n,a,i,r){let o=typeof a=="string"?Ps(a):a,c=Bn(o.pathname||"/",i);if(c==null)return null;let d=gy(n);v2(d);let p=null;for(let g=0;p==null&&g<d.length;++g){let m=D2(c);p=C2(d[g],m,r)}return p}function gy(n,a=[],i=[],r=""){let o=(c,d,p)=>{let g={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};g.relativePath.startsWith("/")&&(Xe(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length));let m=zn([r,g.relativePath]),y=i.concat(g);c.children&&c.children.length>0&&(Xe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),gy(c.children,a,y,m)),!(c.path==null&&!c.index)&&a.push({path:m,score:E2(m,c.index),routesMeta:y})};return n.forEach((c,d)=>{var p;if(c.path===""||!((p=c.path)!=null&&p.includes("?")))o(c,d);else for(let g of yy(c.path))o(c,d,g)}),a}function yy(n){let a=n.split("/");if(a.length===0)return[];let[i,...r]=a,o=i.endsWith("?"),c=i.replace(/\?$/,"");if(r.length===0)return o?[c,""]:[c];let d=yy(r.join("/")),p=[];return p.push(...d.map(g=>g===""?c:[c,g].join("/"))),o&&p.push(...d),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function v2(n){n.sort((a,i)=>a.score!==i.score?i.score-a.score:A2(a.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var b2=/^:[\w-]+$/,S2=3,w2=2,j2=1,N2=10,T2=-2,Bp=n=>n==="*";function E2(n,a){let i=n.split("/"),r=i.length;return i.some(Bp)&&(r+=T2),a&&(r+=w2),i.filter(o=>!Bp(o)).reduce((o,c)=>o+(b2.test(c)?S2:c===""?j2:N2),r)}function A2(n,a){return n.length===a.length&&n.slice(0,-1).every((r,o)=>r===a[o])?n[n.length-1]-a[a.length-1]:0}function C2(n,a,i=!1){let{routesMeta:r}=n,o={},c="/",d=[];for(let p=0;p<r.length;++p){let g=r[p],m=p===r.length-1,y=c==="/"?a:a.slice(c.length)||"/",v=to({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},y),b=g.route;if(!v&&m&&i&&!r[r.length-1].route.index&&(v=to({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),d.push({params:o,pathname:zn([c,v.pathname]),pathnameBase:z2(zn([c,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(c=zn([c,v.pathnameBase]))}return d}function to(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,r]=R2(n.path,n.caseSensitive,n.end),o=a.match(i);if(!o)return null;let c=o[0],d=c.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:r.reduce((m,{paramName:y,isOptional:v},b)=>{if(y==="*"){let N=p[b]||"";d=c.slice(0,c.length-N.length).replace(/(.)\/+$/,"$1")}const j=p[b];return v&&!j?m[y]=void 0:m[y]=(j||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:n}}function R2(n,a=!1,i=!0){ln(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,p,g)=>(r.push({paramName:p,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),r]}function D2(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return ln(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Bn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let i=a.endsWith("/")?a.length-1:a.length,r=n.charAt(i);return r&&r!=="/"?null:n.slice(i)||"/"}function M2(n,a="/"){let{pathname:i,search:r="",hash:o=""}=typeof n=="string"?Ps(n):n;return{pathname:i?i.startsWith("/")?i:O2(i,a):a,search:B2(r),hash:U2(o)}}function O2(n,a){let i=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function Gc(n,a,i,r){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function L2(n){return n.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function xy(n){let a=L2(n);return a.map((i,r)=>r===a.length-1?i.pathname:i.pathnameBase)}function vy(n,a,i,r=!1){let o;typeof n=="string"?o=Ps(n):(o=X({},n),Xe(!o.pathname||!o.pathname.includes("?"),Gc("?","pathname","search",o)),Xe(!o.pathname||!o.pathname.includes("#"),Gc("#","pathname","hash",o)),Xe(!o.search||!o.search.includes("#"),Gc("#","search","hash",o)));let c=n===""||o.pathname==="",d=c?"/":o.pathname,p;if(d==null)p=i;else{let v=a.length-1;if(!r&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),v-=1;o.pathname=b.join("/")}p=v>=0?a[v]:"/"}let g=M2(o,p),m=d&&d!=="/"&&d.endsWith("/"),y=(c||d===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(m||y)&&(g.pathname+="/"),g}var zn=n=>n.join("/").replace(/\/\/+/g,"/"),z2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),B2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,U2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function V2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var by=["POST","PUT","PATCH","DELETE"];new Set(by);var _2=["GET",...by];new Set(_2);var Ys=w.createContext(null);Ys.displayName="DataRouter";var uo=w.createContext(null);uo.displayName="DataRouterState";w.createContext(!1);var Sy=w.createContext({isTransitioning:!1});Sy.displayName="ViewTransition";var k2=w.createContext(new Map);k2.displayName="Fetchers";var H2=w.createContext(null);H2.displayName="Await";var xn=w.createContext(null);xn.displayName="Navigation";var hl=w.createContext(null);hl.displayName="Location";var _n=w.createContext({outlet:null,matches:[],isDataRoute:!1});_n.displayName="Route";var Pf=w.createContext(null);Pf.displayName="RouteError";function q2(n,{relative:a}={}){Xe(ml(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=w.useContext(xn),{hash:o,pathname:c,search:d}=gl(n,{relative:a}),p=c;return i!=="/"&&(p=c==="/"?i:zn([i,c])),r.createHref({pathname:p,search:d,hash:o})}function ml(){return w.useContext(hl)!=null}function ha(){return Xe(ml(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(hl).location}var wy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function jy(n){w.useContext(xn).static||w.useLayoutEffect(n)}function pl(){let{isDataRoute:n}=w.useContext(_n);return n?eS():P2()}function P2(){Xe(ml(),"useNavigate() may be used only in the context of a <Router> component.");let n=w.useContext(Ys),{basename:a,navigator:i}=w.useContext(xn),{matches:r}=w.useContext(_n),{pathname:o}=ha(),c=JSON.stringify(xy(r)),d=w.useRef(!1);return jy(()=>{d.current=!0}),w.useCallback((g,m={})=>{if(ln(d.current,wy),!d.current)return;if(typeof g=="number"){i.go(g);return}let y=vy(g,JSON.parse(c),o,m.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:zn([a,y.pathname])),(m.replace?i.replace:i.push)(y,m.state,m)},[a,i,c,o,n])}w.createContext(null);function gl(n,{relative:a}={}){let{matches:i}=w.useContext(_n),{pathname:r}=ha(),o=JSON.stringify(xy(i));return w.useMemo(()=>vy(n,JSON.parse(o),r,a==="path"),[n,o,r,a])}function Y2(n,a){return Ny(n,a)}function Ny(n,a,i,r){var O;Xe(ml(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=w.useContext(xn),{matches:c}=w.useContext(_n),d=c[c.length-1],p=d?d.params:{},g=d?d.pathname:"/",m=d?d.pathnameBase:"/",y=d&&d.route;{let z=y&&y.path||"";Ty(g,!y||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
59
 
60
- Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let v=ha(),b;if(a){let L=typeof a=="string"?qs(a):a;Ye(m==="/"||((O=L.pathname)==null?void 0:O.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${L.pathname}" was given in the \`location\` prop.`),b=L}else b=v;let j=b.pathname||"/",N=j;if(m!=="/"){let L=m.replace(/^\//,"").split("/");N="/"+j.replace(/^\//,"").split("/").slice(L.length).join("/")}let A=my(n,{pathname:N});ln(y||A!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),ln(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=F2(A&&A.map(L=>Object.assign({},L,{params:Object.assign({},p,L.params),pathname:zn([m,o.encodeLocation?o.encodeLocation(L.pathname).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?m:zn([m,o.encodeLocation?o.encodeLocation(L.pathnameBase).pathname:L.pathnameBase])})),c,i,r);return a&&E?w.createElement(hl.Provider,{value:{location:X({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:"POP"}},E):E}function Y2(){let n=W2(),a=U2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},c={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:c},"ErrorBoundary")," or"," ",w.createElement("code",{style:c},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},a),i?w.createElement("pre",{style:o},i):null,d)}var G2=w.createElement(Y2,null),X2=class extends w.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?w.createElement(_n.Provider,{value:this.props.routeContext},w.createElement(Gf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function K2({routeContext:n,match:a,children:i}){let r=w.useContext(Ps);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),w.createElement(_n.Provider,{value:n},i)}function F2(n,a=[],i=null,r=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(a.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let o=n,c=i==null?void 0:i.errors;if(c!=null){let g=o.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);Ye(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,g+1))}let d=!1,p=-1;if(i)for(let g=0;g<o.length;g++){let m=o[g];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(p=g),m.route.id){let{loaderData:y,errors:v}=i,b=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!v||v[m.route.id]===void 0);if(m.route.lazy||b){d=!0,p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}return o.reduceRight((g,m,y)=>{let v,b=!1,j=null,N=null;i&&(v=c&&m.route.id?c[m.route.id]:void 0,j=m.route.errorElement||G2,d&&(p<0&&y===0?(Ny("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,N=null):p===y&&(b=!0,N=m.route.hydrateFallbackElement||null)));let A=a.concat(o.slice(0,y+1)),E=()=>{let O;return v?O=j:b?O=N:m.route.Component?O=w.createElement(m.route.Component,null):m.route.element?O=m.route.element:O=g,w.createElement(K2,{match:m,routeContext:{outlet:g,matches:A,isDataRoute:i!=null},children:O})};return i&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?w.createElement(X2,{location:i.location,revalidation:i.revalidation,component:j,error:v,children:E(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):E()},null)}function Xf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Z2(n){let a=w.useContext(Ps);return Ye(a,Xf(n)),a}function Q2(n){let a=w.useContext(uo);return Ye(a,Xf(n)),a}function $2(n){let a=w.useContext(_n);return Ye(a,Xf(n)),a}function Kf(n){let a=$2(n),i=a.matches[a.matches.length-1];return Ye(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function J2(){return Kf("useRouteId")}function W2(){var r;let n=w.useContext(Gf),a=Q2("useRouteError"),i=Kf("useRouteError");return n!==void 0?n:(r=a.errors)==null?void 0:r[i]}function I2(){let{router:n}=Z2("useNavigate"),a=Kf("useNavigate"),i=w.useRef(!1);return wy(()=>{i.current=!0}),w.useCallback((d,...p)=>Ae(null,[d,...p],function*(o,c={}){ln(i.current,Sy),i.current&&(typeof o=="number"?n.navigate(o):yield n.navigate(o,X({fromRouteId:a},c)))}),[n,a])}var _p={};function Ny(n,a,i){!a&&!_p[n]&&(_p[n]=!0,ln(!1,i))}w.memo(eS);function eS({routes:n,future:a,state:i}){return jy(n,void 0,i,a)}function mn(n){Ye(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function tS({basename:n="/",children:a=null,location:i,navigationType:r="POP",navigator:o,static:c=!1}){Ye(!ml(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),p=w.useMemo(()=>({basename:d,navigator:o,static:c,future:{}}),[d,o,c]);typeof i=="string"&&(i=qs(i));let{pathname:g="/",search:m="",hash:y="",state:v=null,key:b="default"}=i,j=w.useMemo(()=>{let N=Bn(g,d);return N==null?null:{location:{pathname:N,search:m,hash:y,state:v,key:b},navigationType:r}},[d,g,m,y,v,b,r]);return ln(j!=null,`<Router basename="${d}"> is not able to match the URL "${g}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:w.createElement(xn.Provider,{value:p},w.createElement(hl.Provider,{children:a,value:j}))}function nS({children:n,location:a}){return P2(mf(n),a)}function mf(n,a=[]){let i=[];return w.Children.forEach(n,(r,o)=>{if(!w.isValidElement(r))return;let c=[...a,o];if(r.type===w.Fragment){i.push.apply(i,mf(r.props.children,c));return}Ye(r.type===mn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ye(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={id:r.props.id||c.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(d.children=mf(r.props.children,c)),i.push(d)}),i}var Xr="get",Kr="application/x-www-form-urlencoded";function co(n){return n!=null&&typeof n.tagName=="string"}function aS(n){return co(n)&&n.tagName.toLowerCase()==="button"}function sS(n){return co(n)&&n.tagName.toLowerCase()==="form"}function iS(n){return co(n)&&n.tagName.toLowerCase()==="input"}function lS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function rS(n,a){return n.button===0&&(!a||a==="_self")&&!lS(n)}function pf(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((a,i)=>{let r=n[i];return a.concat(Array.isArray(r)?r.map(o=>[i,o]):[[i,r]])},[]))}function oS(n,a){let i=pf(n);return a&&a.forEach((r,o)=>{i.has(o)||a.getAll(o).forEach(c=>{i.append(o,c)})}),i}var Hr=null;function uS(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch(n){Hr=!0}return Hr}var cS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Kc(n){return n!=null&&!cS.has(n)?(ln(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Kr}"`),null):n}function fS(n,a){let i,r,o,c,d;if(sS(n)){let p=n.getAttribute("action");r=p?Bn(p,a):null,i=n.getAttribute("method")||Xr,o=Kc(n.getAttribute("enctype"))||Kr,c=new FormData(n)}else if(aS(n)||iS(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||p.getAttribute("action");if(r=g?Bn(g,a):null,i=n.getAttribute("formmethod")||p.getAttribute("method")||Xr,o=Kc(n.getAttribute("formenctype"))||Kc(p.getAttribute("enctype"))||Kr,c=new FormData(p,n),!uS()){let{name:m,type:y,value:v}=n;if(y==="image"){let b=m?`${m}.`:"";c.append(`${b}x`,"0"),c.append(`${b}y`,"0")}else m&&c.append(m,v)}}else{if(co(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Xr,r=null,o=Kr,d=n}return c&&o==="text/plain"&&(d=c,c=void 0),{action:r,method:i.toLowerCase(),encType:o,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ff(n,a){if(n===!1||n===null||typeof n=="undefined")throw new Error(a)}function dS(n,a,i){let r=typeof n=="string"?new URL(n,typeof window=="undefined"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname=`_root.${i}`:a&&Bn(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.${i}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${i}`,r}function hS(n,a){return Ae(this,null,function*(){if(n.id in a)return a[n.id];try{let i=yield import(n.module);return a[n.id]=i,i}catch(i){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}})}function mS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}function pS(n,a,i){return Ae(this,null,function*(){let r=yield Promise.all(n.map(o=>Ae(null,null,function*(){let c=a.routes[o.route.id];if(c){let d=yield hS(c,i);return d.links?d.links():[]}return[]})));return vS(r.flat(1).filter(mS).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?le(X({},o),{rel:"prefetch",as:"style"}):le(X({},o),{rel:"prefetch"})))})}function kp(n,a,i,r,o,c){let d=(g,m)=>i[m]?g.route.id!==i[m].route.id:!0,p=(g,m)=>{var y;return i[m].pathname!==g.pathname||((y=i[m].route.path)==null?void 0:y.endsWith("*"))&&i[m].params["*"]!==g.params["*"]};return c==="assets"?a.filter((g,m)=>d(g,m)||p(g,m)):c==="data"?a.filter((g,m)=>{var v;let y=r.routes[g.route.id];if(!y||!y.hasLoader)return!1;if(d(g,m)||p(g,m))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=i[0])==null?void 0:v.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function gS(n,a,{includeHydrateFallback:i}={}){return yS(n.map(r=>{let o=a.routes[r.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function yS(n){return[...new Set(n)]}function xS(n){let a={},i=Object.keys(n).sort();for(let r of i)a[r]=n[r];return a}function vS(n,a){let i=new Set;return new Set(a),n.reduce((r,o)=>{let c=JSON.stringify(xS(o));return i.has(c)||(i.add(c),r.push({key:c,link:o})),r},[])}function Ty(){let n=w.useContext(Ps);return Ff(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function bS(){let n=w.useContext(uo);return Ff(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Zf=w.createContext(void 0);Zf.displayName="FrameworkContext";function Ey(){let n=w.useContext(Zf);return Ff(n,"You must render this element inside a <HydratedRouter> element"),n}function SS(n,a){let i=w.useContext(Zf),[r,o]=w.useState(!1),[c,d]=w.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:y,onTouchStart:v}=a,b=w.useRef(null);w.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let A=O=>{O.forEach(L=>{d(L.isIntersecting)})},E=new IntersectionObserver(A,{threshold:.5});return b.current&&E.observe(b.current),()=>{E.disconnect()}}},[n]),w.useEffect(()=>{if(r){let A=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(A)}}},[r]);let j=()=>{o(!0)},N=()=>{o(!1),d(!1)};return i?n!=="intent"?[c,b,{}]:[c,b,{onFocus:$i(p,j),onBlur:$i(g,N),onMouseEnter:$i(m,j),onMouseLeave:$i(y,N),onTouchStart:$i(v,j)}]:[!1,b,{}]}function $i(n,a){return i=>{n&&n(i),i.defaultPrevented||a(i)}}function wS(i){var r=i,{page:n}=r,a=ot(r,["page"]);let{router:o}=Ty(),c=w.useMemo(()=>my(o.routes,n,o.basename),[o.routes,n,o.basename]);return c?w.createElement(NS,X({page:n,matches:c},a)):null}function jS(n){let{manifest:a,routeModules:i}=Ey(),[r,o]=w.useState([]);return w.useEffect(()=>{let c=!1;return pS(n,a,i).then(d=>{c||o(d)}),()=>{c=!0}},[n,a,i]),r}function NS(r){var o=r,{page:n,matches:a}=o,i=ot(o,["page","matches"]);let c=ha(),{manifest:d,routeModules:p}=Ey(),{basename:g}=Ty(),{loaderData:m,matches:y}=bS(),v=w.useMemo(()=>kp(n,a,y,d,c,"data"),[n,a,y,d,c]),b=w.useMemo(()=>kp(n,a,y,d,c,"assets"),[n,a,y,d,c]),j=w.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let E=new Set,O=!1;if(a.forEach(M=>{var U;let K=d.routes[M.route.id];!K||!K.hasLoader||(!v.some(Z=>Z.route.id===M.route.id)&&M.route.id in m&&((U=p[M.route.id])!=null&&U.shouldRevalidate)||K.hasClientLoader?O=!0:E.add(M.route.id))}),E.size===0)return[];let L=dS(n,g,"data");return O&&E.size>0&&L.searchParams.set("_routes",a.filter(M=>E.has(M.route.id)).map(M=>M.route.id).join(",")),[L.pathname+L.search]},[g,m,c,d,v,a,n,p]),N=w.useMemo(()=>gS(b,d),[b,d]),A=jS(b);return w.createElement(w.Fragment,null,j.map(E=>w.createElement("link",X({key:E,rel:"prefetch",as:"fetch",href:E},i))),N.map(E=>w.createElement("link",X({key:E,rel:"modulepreload",href:E},i))),A.map(({key:E,link:O})=>w.createElement("link",X({key:E,nonce:i.nonce},O))))}function TS(...n){return a=>{n.forEach(i=>{typeof i=="function"?i(a):i!=null&&(i.current=a)})}}var Ay=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{Ay&&(window.__reactRouterVersion="7.8.0")}catch(n){}function ES({basename:n,children:a,window:i}){let r=w.useRef();r.current==null&&(r.current=h2({window:i,v5Compat:!0}));let o=r.current,[c,d]=w.useState({action:o.action,location:o.location}),p=w.useCallback(g=>{w.startTransition(()=>d(g))},[d]);return w.useLayoutEffect(()=>o.listen(p),[o,p]),w.createElement(tS,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:o})}var Cy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ca=w.forwardRef(function(N,j){var A=N,{onClick:a,discover:i="render",prefetch:r="none",relative:o,reloadDocument:c,replace:d,state:p,target:g,to:m,preventScrollReset:y,viewTransition:v}=A,b=ot(A,["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"]);let{basename:E}=w.useContext(xn),O=typeof m=="string"&&Cy.test(m),L,M=!1;if(typeof m=="string"&&O&&(L=m,Ay))try{let ge=new URL(window.location.href),he=m.startsWith("//")?new URL(ge.protocol+m):new URL(m),ke=Bn(he.pathname,E);he.origin===ge.origin&&ke!=null?m=ke+he.search+he.hash:M=!0}catch(ge){ln(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let K=H2(m,{relative:o}),[U,Z,Q]=SS(r,b),J=DS(m,{replace:d,state:p,target:g,preventScrollReset:y,relative:o,viewTransition:v});function ce(ge){a&&a(ge),ge.defaultPrevented||J(ge)}let Se=w.createElement("a",le(X(X({},b),Q),{href:L||K,onClick:M||c?a:ce,ref:TS(j,Z),target:g,"data-discover":!O&&i==="render"?"true":void 0}));return U&&!O?w.createElement(w.Fragment,null,Se,w.createElement(wS,{page:K})):Se});ca.displayName="Link";var AS=w.forwardRef(function(v,y){var b=v,{"aria-current":a="page",caseSensitive:i=!1,className:r="",end:o=!1,style:c,to:d,viewTransition:p,children:g}=b,m=ot(b,["aria-current","caseSensitive","className","end","style","to","viewTransition","children"]);let j=gl(d,{relative:m.relative}),N=ha(),A=w.useContext(uo),{navigator:E,basename:O}=w.useContext(xn),L=A!=null&&BS(j)&&p===!0,M=E.encodeLocation?E.encodeLocation(j).pathname:j.pathname,K=N.pathname,U=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;i||(K=K.toLowerCase(),U=U?U.toLowerCase():null,M=M.toLowerCase()),U&&O&&(U=Bn(U,O)||U);const Z=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let Q=K===M||!o&&K.startsWith(M)&&K.charAt(Z)==="/",J=U!=null&&(U===M||!o&&U.startsWith(M)&&U.charAt(M.length)==="/"),ce={isActive:Q,isPending:J,isTransitioning:L},Se=Q?a:void 0,ge;typeof r=="function"?ge=r(ce):ge=[r,Q?"active":null,J?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let he=typeof c=="function"?c(ce):c;return w.createElement(ca,le(X({},m),{"aria-current":Se,className:ge,ref:y,style:he,to:d,viewTransition:p}),typeof g=="function"?g(ce):g)});AS.displayName="NavLink";var CS=w.forwardRef((N,j)=>{var A=N,{discover:n="render",fetcherKey:a,navigate:i,reloadDocument:r,replace:o,state:c,method:d=Xr,action:p,onSubmit:g,relative:m,preventScrollReset:y,viewTransition:v}=A,b=ot(A,["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"]);let E=LS(),O=zS(p,{relative:m}),L=d.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&Cy.test(p),K=U=>{if(g&&g(U),U.defaultPrevented)return;U.preventDefault();let Z=U.nativeEvent.submitter,Q=(Z==null?void 0:Z.getAttribute("formmethod"))||d;E(Z||U.currentTarget,{fetcherKey:a,method:Q,navigate:i,replace:o,state:c,relative:m,preventScrollReset:y,viewTransition:v})};return w.createElement("form",le(X({ref:j,method:L,action:O,onSubmit:r?g:K},b),{"data-discover":!M&&n==="render"?"true":void 0}))});CS.displayName="Form";function RS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ry(n){let a=w.useContext(Ps);return Ye(a,RS(n)),a}function DS(n,{target:a,replace:i,state:r,preventScrollReset:o,relative:c,viewTransition:d}={}){let p=pl(),g=ha(),m=gl(n,{relative:c});return w.useCallback(y=>{if(rS(y,a)){y.preventDefault();let v=i!==void 0?i:il(g)===il(m);p(n,{replace:v,state:r,preventScrollReset:o,relative:c,viewTransition:d})}},[g,p,m,i,r,a,n,o,c,d])}function Dy(n){ln(typeof URLSearchParams!="undefined","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let a=w.useRef(pf(n)),i=w.useRef(!1),r=ha(),o=w.useMemo(()=>oS(r.search,i.current?null:a.current),[r.search]),c=pl(),d=w.useCallback((p,g)=>{const m=pf(typeof p=="function"?p(new URLSearchParams(o)):p);i.current=!0,c("?"+m,g)},[c,o]);return[o,d]}var MS=0,OS=()=>`__${String(++MS)}__`;function LS(){let{router:n}=Ry("useSubmit"),{basename:a}=w.useContext(xn),i=J2();return w.useCallback((c,...d)=>Ae(null,[c,...d],function*(r,o={}){let{action:p,method:g,encType:m,formData:y,body:v}=fS(r,a);if(o.navigate===!1){let b=o.fetcherKey||OS();yield n.fetch(b,i,o.action||p,{preventScrollReset:o.preventScrollReset,formData:y,body:v,formMethod:o.method||g,formEncType:o.encType||m,flushSync:o.flushSync})}else yield n.navigate(o.action||p,{preventScrollReset:o.preventScrollReset,formData:y,body:v,formMethod:o.method||g,formEncType:o.encType||m,replace:o.replace,state:o.state,fromRouteId:i,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[n,a,i])}function zS(n,{relative:a}={}){let{basename:i}=w.useContext(xn),r=w.useContext(_n);Ye(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),c=X({},gl(n||".",{relative:a})),d=ha();if(n==null){c.search=d.search;let p=new URLSearchParams(c.search),g=p.getAll("index");if(g.some(y=>y==="")){p.delete("index"),g.filter(v=>v).forEach(v=>p.append("index",v));let y=p.toString();c.search=y?`?${y}`:""}}return(!n||n===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:zn([i,c.pathname])),il(c)}function BS(n,{relative:a}={}){let i=w.useContext(by);Ye(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ry("useViewTransitionState"),o=gl(n,{relative:a});if(!i.isTransitioning)return!1;let c=Bn(i.currentLocation.pathname,r)||i.currentLocation.pathname,d=Bn(i.nextLocation.pathname,r)||i.nextLocation.pathname;return eo(o.pathname,d)!=null||eo(o.pathname,c)!=null}const US=()=>{const n=new Date().getFullYear();return f.jsx("footer",{className:"bg-gray-800 text-gray-300 py-6",children:f.jsx("div",{className:"container mx-auto px-4",children:f.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[f.jsxs("div",{className:"mb-4 md:mb-0",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-8 w-8 mr-2"}),f.jsx("span",{className:"font-bold text-white text-lg",children:"AxioDB"})]}),f.jsx("p",{className:"text-sm mt-2",children:"High-performance document database"})]}),f.jsxs("div",{className:"text-sm",children:[f.jsxs("div",{className:"flex space-x-6",children:[f.jsx("a",{href:"/support",className:"hover:text-white transition-colors",children:"Support"}),f.jsx("a",{href:"/api",className:"hover:text-white transition-colors",children:"API"}),f.jsx("a",{href:"/status",className:"hover:text-white transition-colors",children:"Status"})]}),f.jsxs("p",{className:"mt-4 text-xs text-center md:text-right",children:["© ",n," AxioDB, Inc. All rights reserved."]})]})]})})})},Hp=n=>{let a;const i=new Set,r=(m,y)=>{const v=typeof m=="function"?m(a):m;if(!Object.is(v,a)){const b=a;a=(y!=null?y:typeof v!="object"||v===null)?v:Object.assign({},a,v),i.forEach(j=>j(a,b))}},o=()=>a,p={setState:r,getState:o,getInitialState:()=>g,subscribe:m=>(i.add(m),()=>i.delete(m))},g=a=n(r,o,p);return p},VS=n=>n?Hp(n):Hp,_S=n=>n;function kS(n,a=_S){const i=kr.useSyncExternalStore(n.subscribe,kr.useCallback(()=>a(n.getState()),[n,a]),kr.useCallback(()=>a(n.getInitialState()),[n,a]));return kr.useDebugValue(i),i}const qp=n=>{const a=VS(n),i=r=>kS(a,r);return Object.assign(i,a),i},HS=n=>n?qp(n):qp,to=HS(n=>({Rootname:"",setRootname:a=>n({Rootname:a})}));function My(n,a){return function(){return n.apply(a,arguments)}}const{toString:qS}=Object.prototype,{getPrototypeOf:Qf}=Object,{iterator:fo,toStringTag:Oy}=Symbol,ho=(n=>a=>{const i=qS.call(a);return n[i]||(n[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),rn=n=>(n=n.toLowerCase(),a=>ho(a)===n),mo=n=>a=>typeof a===n,{isArray:Ys}=Array,ll=mo("undefined");function yl(n){return n!==null&&!ll(n)&&n.constructor!==null&&!ll(n.constructor)&&Rt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Ly=rn("ArrayBuffer");function PS(n){let a;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?a=ArrayBuffer.isView(n):a=n&&n.buffer&&Ly(n.buffer),a}const YS=mo("string"),Rt=mo("function"),zy=mo("number"),xl=n=>n!==null&&typeof n=="object",GS=n=>n===!0||n===!1,Fr=n=>{if(ho(n)!=="object")return!1;const a=Qf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Oy in n)&&!(fo in n)},XS=n=>{if(!xl(n)||yl(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch(a){return!1}},KS=rn("Date"),FS=rn("File"),ZS=rn("Blob"),QS=rn("FileList"),$S=n=>xl(n)&&Rt(n.pipe),JS=n=>{let a;return n&&(typeof FormData=="function"&&n instanceof FormData||Rt(n.append)&&((a=ho(n))==="formdata"||a==="object"&&Rt(n.toString)&&n.toString()==="[object FormData]"))},WS=rn("URLSearchParams"),[IS,ew,tw,nw]=["ReadableStream","Request","Response","Headers"].map(rn),aw=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vl(n,a,{allOwnKeys:i=!1}={}){if(n===null||typeof n=="undefined")return;let r,o;if(typeof n!="object"&&(n=[n]),Ys(n))for(r=0,o=n.length;r<o;r++)a.call(null,n[r],r,n);else{if(yl(n))return;const c=i?Object.getOwnPropertyNames(n):Object.keys(n),d=c.length;let p;for(r=0;r<d;r++)p=c[r],a.call(null,n[p],p,n)}}function By(n,a){if(yl(n))return null;a=a.toLowerCase();const i=Object.keys(n);let r=i.length,o;for(;r-- >0;)if(o=i[r],a===o.toLowerCase())return o;return null}const Ua=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Uy=n=>!ll(n)&&n!==Ua;function gf(){const{caseless:n}=Uy(this)&&this||{},a={},i=(r,o)=>{const c=n&&By(a,o)||o;Fr(a[c])&&Fr(r)?a[c]=gf(a[c],r):Fr(r)?a[c]=gf({},r):Ys(r)?a[c]=r.slice():a[c]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&vl(arguments[r],i);return a}const sw=(n,a,i,{allOwnKeys:r}={})=>(vl(a,(o,c)=>{i&&Rt(o)?n[c]=My(o,i):n[c]=o},{allOwnKeys:r}),n),iw=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),lw=(n,a,i,r)=>{n.prototype=Object.create(a.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:a.prototype}),i&&Object.assign(n.prototype,i)},rw=(n,a,i,r)=>{let o,c,d;const p={};if(a=a||{},n==null)return a;do{for(o=Object.getOwnPropertyNames(n),c=o.length;c-- >0;)d=o[c],(!r||r(d,n,a))&&!p[d]&&(a[d]=n[d],p[d]=!0);n=i!==!1&&Qf(n)}while(n&&(!i||i(n,a))&&n!==Object.prototype);return a},ow=(n,a,i)=>{n=String(n),(i===void 0||i>n.length)&&(i=n.length),i-=a.length;const r=n.indexOf(a,i);return r!==-1&&r===i},uw=n=>{if(!n)return null;if(Ys(n))return n;let a=n.length;if(!zy(a))return null;const i=new Array(a);for(;a-- >0;)i[a]=n[a];return i},cw=(n=>a=>n&&a instanceof n)(typeof Uint8Array!="undefined"&&Qf(Uint8Array)),fw=(n,a)=>{const r=(n&&n[fo]).call(n);let o;for(;(o=r.next())&&!o.done;){const c=o.value;a.call(n,c[0],c[1])}},dw=(n,a)=>{let i;const r=[];for(;(i=n.exec(a))!==null;)r.push(i);return r},hw=rn("HTMLFormElement"),mw=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,r,o){return r.toUpperCase()+o}),Pp=(({hasOwnProperty:n})=>(a,i)=>n.call(a,i))(Object.prototype),pw=rn("RegExp"),Vy=(n,a)=>{const i=Object.getOwnPropertyDescriptors(n),r={};vl(i,(o,c)=>{let d;(d=a(o,c,n))!==!1&&(r[c]=d||o)}),Object.defineProperties(n,r)},gw=n=>{Vy(n,(a,i)=>{if(Rt(n)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const r=n[i];if(Rt(r)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},yw=(n,a)=>{const i={},r=o=>{o.forEach(c=>{i[c]=!0})};return Ys(n)?r(n):r(String(n).split(a)),i},xw=()=>{},vw=(n,a)=>n!=null&&Number.isFinite(n=+n)?n:a;function bw(n){return!!(n&&Rt(n.append)&&n[Oy]==="FormData"&&n[fo])}const Sw=n=>{const a=new Array(10),i=(r,o)=>{if(xl(r)){if(a.indexOf(r)>=0)return;if(yl(r))return r;if(!("toJSON"in r)){a[o]=r;const c=Ys(r)?[]:{};return vl(r,(d,p)=>{const g=i(d,o+1);!ll(g)&&(c[p]=g)}),a[o]=void 0,c}}return r};return i(n,0)},ww=rn("AsyncFunction"),jw=n=>n&&(xl(n)||Rt(n))&&Rt(n.then)&&Rt(n.catch),_y=((n,a)=>n?setImmediate:a?((i,r)=>(Ua.addEventListener("message",({source:o,data:c})=>{o===Ua&&c===i&&r.length&&r.shift()()},!1),o=>{r.push(o),Ua.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Rt(Ua.postMessage)),Nw=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Ua):typeof process!="undefined"&&process.nextTick||_y,Tw=n=>n!=null&&Rt(n[fo]),k={isArray:Ys,isArrayBuffer:Ly,isBuffer:yl,isFormData:JS,isArrayBufferView:PS,isString:YS,isNumber:zy,isBoolean:GS,isObject:xl,isPlainObject:Fr,isEmptyObject:XS,isReadableStream:IS,isRequest:ew,isResponse:tw,isHeaders:nw,isUndefined:ll,isDate:KS,isFile:FS,isBlob:ZS,isRegExp:pw,isFunction:Rt,isStream:$S,isURLSearchParams:WS,isTypedArray:cw,isFileList:QS,forEach:vl,merge:gf,extend:sw,trim:aw,stripBOM:iw,inherits:lw,toFlatObject:rw,kindOf:ho,kindOfTest:rn,endsWith:ow,toArray:uw,forEachEntry:fw,matchAll:dw,isHTMLForm:hw,hasOwnProperty:Pp,hasOwnProp:Pp,reduceDescriptors:Vy,freezeMethods:gw,toObjectSet:yw,toCamelCase:mw,noop:xw,toFiniteNumber:vw,findKey:By,global:Ua,isContextDefined:Uy,isSpecCompliantForm:bw,toJSONObject:Sw,isAsyncFn:ww,isThenable:jw,setImmediate:_y,asap:Nw,isIterable:Tw};function fe(n,a,i,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",a&&(this.code=a),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}k.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.status}}});const ky=fe.prototype,Hy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{Hy[n]={value:n}});Object.defineProperties(fe,Hy);Object.defineProperty(ky,"isAxiosError",{value:!0});fe.from=(n,a,i,r,o,c)=>{const d=Object.create(ky);return k.toFlatObject(n,d,function(g){return g!==Error.prototype},p=>p!=="isAxiosError"),fe.call(d,n.message,a,i,r,o),d.cause=n,d.name=n.name,c&&Object.assign(d,c),d};const Ew=null;function yf(n){return k.isPlainObject(n)||k.isArray(n)}function qy(n){return k.endsWith(n,"[]")?n.slice(0,-2):n}function Yp(n,a,i){return n?n.concat(a).map(function(o,c){return o=qy(o),!i&&c?"["+o+"]":o}).join(i?".":""):a}function Aw(n){return k.isArray(n)&&!n.some(yf)}const Cw=k.toFlatObject(k,{},null,function(a){return/^is[A-Z]/.test(a)});function po(n,a,i){if(!k.isObject(n))throw new TypeError("target must be an object");a=a||new FormData,i=k.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,E){return!k.isUndefined(E[A])});const r=i.metaTokens,o=i.visitor||y,c=i.dots,d=i.indexes,g=(i.Blob||typeof Blob!="undefined"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(o))throw new TypeError("visitor must be a function");function m(N){if(N===null)return"";if(k.isDate(N))return N.toISOString();if(k.isBoolean(N))return N.toString();if(!g&&k.isBlob(N))throw new fe("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(N)||k.isTypedArray(N)?g&&typeof Blob=="function"?new Blob([N]):Buffer.from(N):N}function y(N,A,E){let O=N;if(N&&!E&&typeof N=="object"){if(k.endsWith(A,"{}"))A=r?A:A.slice(0,-2),N=JSON.stringify(N);else if(k.isArray(N)&&Aw(N)||(k.isFileList(N)||k.endsWith(A,"[]"))&&(O=k.toArray(N)))return A=qy(A),O.forEach(function(M,K){!(k.isUndefined(M)||M===null)&&a.append(d===!0?Yp([A],K,c):d===null?A:A+"[]",m(M))}),!1}return yf(N)?!0:(a.append(Yp(E,A,c),m(N)),!1)}const v=[],b=Object.assign(Cw,{defaultVisitor:y,convertValue:m,isVisitable:yf});function j(N,A){if(!k.isUndefined(N)){if(v.indexOf(N)!==-1)throw Error("Circular reference detected in "+A.join("."));v.push(N),k.forEach(N,function(O,L){(!(k.isUndefined(O)||O===null)&&o.call(a,O,k.isString(L)?L.trim():L,A,b))===!0&&j(O,A?A.concat(L):[L])}),v.pop()}}if(!k.isObject(n))throw new TypeError("data must be an object");return j(n),a}function Gp(n){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function $f(n,a){this._pairs=[],n&&po(n,this,a)}const Py=$f.prototype;Py.append=function(a,i){this._pairs.push([a,i])};Py.toString=function(a){const i=a?function(r){return a.call(this,r,Gp)}:Gp;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function Rw(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yy(n,a,i){if(!a)return n;const r=i&&i.encode||Rw;k.isFunction(i)&&(i={serialize:i});const o=i&&i.serialize;let c;if(o?c=o(a,i):c=k.isURLSearchParams(a)?a.toString():new $f(a,i).toString(r),c){const d=n.indexOf("#");d!==-1&&(n=n.slice(0,d)),n+=(n.indexOf("?")===-1?"?":"&")+c}return n}class Xp{constructor(){this.handlers=[]}use(a,i,r){return this.handlers.push({fulfilled:a,rejected:i,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(r){r!==null&&a(r)})}}const Gy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dw=typeof URLSearchParams!="undefined"?URLSearchParams:$f,Mw=typeof FormData!="undefined"?FormData:null,Ow=typeof Blob!="undefined"?Blob:null,Lw={isBrowser:!0,classes:{URLSearchParams:Dw,FormData:Mw,Blob:Ow},protocols:["http","https","file","blob","url","data"]},Jf=typeof window!="undefined"&&typeof document!="undefined",xf=typeof navigator=="object"&&navigator||void 0,zw=Jf&&(!xf||["ReactNative","NativeScript","NS"].indexOf(xf.product)<0),Bw=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Uw=Jf&&window.location.href||"http://localhost",Vw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jf,hasStandardBrowserEnv:zw,hasStandardBrowserWebWorkerEnv:Bw,navigator:xf,origin:Uw},Symbol.toStringTag,{value:"Module"})),gt=X(X({},Vw),Lw);function _w(n,a){return po(n,new gt.classes.URLSearchParams,X({visitor:function(i,r,o,c){return gt.isNode&&k.isBuffer(i)?(this.append(r,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},a))}function kw(n){return k.matchAll(/\w+|\[(\w*)]/g,n).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Hw(n){const a={},i=Object.keys(n);let r;const o=i.length;let c;for(r=0;r<o;r++)c=i[r],a[c]=n[c];return a}function Xy(n){function a(i,r,o,c){let d=i[c++];if(d==="__proto__")return!0;const p=Number.isFinite(+d),g=c>=i.length;return d=!d&&k.isArray(o)?o.length:d,g?(k.hasOwnProp(o,d)?o[d]=[o[d],r]:o[d]=r,!p):((!o[d]||!k.isObject(o[d]))&&(o[d]=[]),a(i,r,o[d],c)&&k.isArray(o[d])&&(o[d]=Hw(o[d])),!p)}if(k.isFormData(n)&&k.isFunction(n.entries)){const i={};return k.forEachEntry(n,(r,o)=>{a(kw(r),o,i,0)}),i}return null}function qw(n,a,i){if(k.isString(n))try{return(a||JSON.parse)(n),k.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(i||JSON.stringify)(n)}const bl={transitional:Gy,adapter:["xhr","http","fetch"],transformRequest:[function(a,i){const r=i.getContentType()||"",o=r.indexOf("application/json")>-1,c=k.isObject(a);if(c&&k.isHTMLForm(a)&&(a=new FormData(a)),k.isFormData(a))return o?JSON.stringify(Xy(a)):a;if(k.isArrayBuffer(a)||k.isBuffer(a)||k.isStream(a)||k.isFile(a)||k.isBlob(a)||k.isReadableStream(a))return a;if(k.isArrayBufferView(a))return a.buffer;if(k.isURLSearchParams(a))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let p;if(c){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _w(a,this.formSerializer).toString();if((p=k.isFileList(a))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return po(p?{"files[]":a}:a,g&&new g,this.formSerializer)}}return c||o?(i.setContentType("application/json",!1),qw(a)):a}],transformResponse:[function(a){const i=this.transitional||bl.transitional,r=i&&i.forcedJSONParsing,o=this.responseType==="json";if(k.isResponse(a)||k.isReadableStream(a))return a;if(a&&k.isString(a)&&(r&&!this.responseType||o)){const d=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(a)}catch(p){if(d)throw p.name==="SyntaxError"?fe.from(p,fe.ERR_BAD_RESPONSE,this,null,this.response):p}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],n=>{bl.headers[n]={}});const Pw=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yw=n=>{const a={};let i,r,o;return n&&n.split(`
61
- `).forEach(function(d){o=d.indexOf(":"),i=d.substring(0,o).trim().toLowerCase(),r=d.substring(o+1).trim(),!(!i||a[i]&&Pw[i])&&(i==="set-cookie"?a[i]?a[i].push(r):a[i]=[r]:a[i]=a[i]?a[i]+", "+r:r)}),a},Kp=Symbol("internals");function Ji(n){return n&&String(n).trim().toLowerCase()}function Zr(n){return n===!1||n==null?n:k.isArray(n)?n.map(Zr):String(n)}function Gw(n){const a=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=i.exec(n);)a[r[1]]=r[2];return a}const Xw=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Fc(n,a,i,r,o){if(k.isFunction(r))return r.call(this,a,i);if(o&&(a=i),!!k.isString(a)){if(k.isString(r))return a.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(a)}}function Kw(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,i,r)=>i.toUpperCase()+r)}function Fw(n,a){const i=k.toCamelCase(" "+a);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+i,{value:function(o,c,d){return this[r].call(this,a,o,c,d)},configurable:!0})})}let Dt=class{constructor(a){a&&this.set(a)}set(a,i,r){const o=this;function c(p,g,m){const y=Ji(g);if(!y)throw new Error("header name must be a non-empty string");const v=k.findKey(o,y);(!v||o[v]===void 0||m===!0||m===void 0&&o[v]!==!1)&&(o[v||g]=Zr(p))}const d=(p,g)=>k.forEach(p,(m,y)=>c(m,y,g));if(k.isPlainObject(a)||a instanceof this.constructor)d(a,i);else if(k.isString(a)&&(a=a.trim())&&!Xw(a))d(Yw(a),i);else if(k.isObject(a)&&k.isIterable(a)){let p={},g,m;for(const y of a){if(!k.isArray(y))throw TypeError("Object iterator must return a key-value pair");p[m=y[0]]=(g=p[m])?k.isArray(g)?[...g,y[1]]:[g,y[1]]:y[1]}d(p,i)}else a!=null&&c(i,a,r);return this}get(a,i){if(a=Ji(a),a){const r=k.findKey(this,a);if(r){const o=this[r];if(!i)return o;if(i===!0)return Gw(o);if(k.isFunction(i))return i.call(this,o,r);if(k.isRegExp(i))return i.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,i){if(a=Ji(a),a){const r=k.findKey(this,a);return!!(r&&this[r]!==void 0&&(!i||Fc(this,this[r],r,i)))}return!1}delete(a,i){const r=this;let o=!1;function c(d){if(d=Ji(d),d){const p=k.findKey(r,d);p&&(!i||Fc(r,r[p],p,i))&&(delete r[p],o=!0)}}return k.isArray(a)?a.forEach(c):c(a),o}clear(a){const i=Object.keys(this);let r=i.length,o=!1;for(;r--;){const c=i[r];(!a||Fc(this,this[c],c,a,!0))&&(delete this[c],o=!0)}return o}normalize(a){const i=this,r={};return k.forEach(this,(o,c)=>{const d=k.findKey(r,c);if(d){i[d]=Zr(o),delete i[c];return}const p=a?Kw(c):String(c).trim();p!==c&&delete i[c],i[p]=Zr(o),r[p]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const i=Object.create(null);return k.forEach(this,(r,o)=>{r!=null&&r!==!1&&(i[o]=a&&k.isArray(r)?r.join(", "):r)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,i])=>a+": "+i).join(`
62
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...i){const r=new this(a);return i.forEach(o=>r.set(o)),r}static accessor(a){const r=(this[Kp]=this[Kp]={accessors:{}}).accessors,o=this.prototype;function c(d){const p=Ji(d);r[p]||(Fw(o,d),r[p]=!0)}return k.isArray(a)?a.forEach(c):c(a),this}};Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(Dt.prototype,({value:n},a)=>{let i=a[0].toUpperCase()+a.slice(1);return{get:()=>n,set(r){this[i]=r}}});k.freezeMethods(Dt);function Zc(n,a){const i=this||bl,r=a||i,o=Dt.from(r.headers);let c=r.data;return k.forEach(n,function(p){c=p.call(i,c,o.normalize(),a?a.status:void 0)}),o.normalize(),c}function Ky(n){return!!(n&&n.__CANCEL__)}function Gs(n,a,i){fe.call(this,n==null?"canceled":n,fe.ERR_CANCELED,a,i),this.name="CanceledError"}k.inherits(Gs,fe,{__CANCEL__:!0});function Fy(n,a,i){const r=i.config.validateStatus;!i.status||!r||r(i.status)?n(i):a(new fe("Request failed with status code "+i.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Zw(n){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return a&&a[1]||""}function Qw(n,a){n=n||10;const i=new Array(n),r=new Array(n);let o=0,c=0,d;return a=a!==void 0?a:1e3,function(g){const m=Date.now(),y=r[c];d||(d=m),i[o]=g,r[o]=m;let v=c,b=0;for(;v!==o;)b+=i[v++],v=v%n;if(o=(o+1)%n,o===c&&(c=(c+1)%n),m-d<a)return;const j=y&&m-y;return j?Math.round(b*1e3/j):void 0}}function $w(n,a){let i=0,r=1e3/a,o,c;const d=(m,y=Date.now())=>{i=y,o=null,c&&(clearTimeout(c),c=null),n(...m)};return[(...m)=>{const y=Date.now(),v=y-i;v>=r?d(m,y):(o=m,c||(c=setTimeout(()=>{c=null,d(o)},r-v)))},()=>o&&d(o)]}const no=(n,a,i=3)=>{let r=0;const o=Qw(50,250);return $w(c=>{const d=c.loaded,p=c.lengthComputable?c.total:void 0,g=d-r,m=o(g),y=d<=p;r=d;const v={loaded:d,total:p,progress:p?d/p:void 0,bytes:g,rate:m||void 0,estimated:m&&p&&y?(p-d)/m:void 0,event:c,lengthComputable:p!=null,[a?"download":"upload"]:!0};n(v)},i)},Fp=(n,a)=>{const i=n!=null;return[r=>a[0]({lengthComputable:i,total:n,loaded:r}),a[1]]},Zp=n=>(...a)=>k.asap(()=>n(...a)),Jw=gt.hasStandardBrowserEnv?((n,a)=>i=>(i=new URL(i,gt.origin),n.protocol===i.protocol&&n.host===i.host&&(a||n.port===i.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,Ww=gt.hasStandardBrowserEnv?{write(n,a,i,r,o,c){const d=[n+"="+encodeURIComponent(a)];k.isNumber(i)&&d.push("expires="+new Date(i).toGMTString()),k.isString(r)&&d.push("path="+r),k.isString(o)&&d.push("domain="+o),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read(n){const a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Iw(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function ej(n,a){return a?n.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):n}function Zy(n,a,i){let r=!Iw(a);return n&&(r||i==!1)?ej(n,a):a}const Qp=n=>n instanceof Dt?X({},n):n;function Pa(n,a){a=a||{};const i={};function r(m,y,v,b){return k.isPlainObject(m)&&k.isPlainObject(y)?k.merge.call({caseless:b},m,y):k.isPlainObject(y)?k.merge({},y):k.isArray(y)?y.slice():y}function o(m,y,v,b){if(k.isUndefined(y)){if(!k.isUndefined(m))return r(void 0,m,v,b)}else return r(m,y,v,b)}function c(m,y){if(!k.isUndefined(y))return r(void 0,y)}function d(m,y){if(k.isUndefined(y)){if(!k.isUndefined(m))return r(void 0,m)}else return r(void 0,y)}function p(m,y,v){if(v in a)return r(m,y);if(v in n)return r(void 0,m)}const g={url:c,method:c,data:c,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:p,headers:(m,y,v)=>o(Qp(m),Qp(y),v,!0)};return k.forEach(Object.keys(X(X({},n),a)),function(y){const v=g[y]||o,b=v(n[y],a[y],y);k.isUndefined(b)&&v!==p||(i[y]=b)}),i}const Qy=n=>{const a=Pa({},n);let{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:c,headers:d,auth:p}=a;a.headers=d=Dt.from(d),a.url=Yy(Zy(a.baseURL,a.url,a.allowAbsoluteUrls),n.params,n.paramsSerializer),p&&d.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):"")));let g;if(k.isFormData(i)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((g=d.getContentType())!==!1){const[m,...y]=g?g.split(";").map(v=>v.trim()).filter(Boolean):[];d.setContentType([m||"multipart/form-data",...y].join("; "))}}if(gt.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(a)),r||r!==!1&&Jw(a.url))){const m=o&&c&&Ww.read(c);m&&d.set(o,m)}return a},tj=typeof XMLHttpRequest!="undefined",nj=tj&&function(n){return new Promise(function(i,r){const o=Qy(n);let c=o.data;const d=Dt.from(o.headers).normalize();let{responseType:p,onUploadProgress:g,onDownloadProgress:m}=o,y,v,b,j,N;function A(){j&&j(),N&&N(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function O(){if(!E)return;const M=Dt.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),U={data:!p||p==="text"||p==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:M,config:n,request:E};Fy(function(Q){i(Q),A()},function(Q){r(Q),A()},U),E=null}"onloadend"in E?E.onloadend=O:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(O)},E.onabort=function(){E&&(r(new fe("Request aborted",fe.ECONNABORTED,n,E)),E=null)},E.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,n,E)),E=null},E.ontimeout=function(){let K=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const U=o.transitional||Gy;o.timeoutErrorMessage&&(K=o.timeoutErrorMessage),r(new fe(K,U.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,n,E)),E=null},c===void 0&&d.setContentType(null),"setRequestHeader"in E&&k.forEach(d.toJSON(),function(K,U){E.setRequestHeader(U,K)}),k.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),p&&p!=="json"&&(E.responseType=o.responseType),m&&([b,N]=no(m,!0),E.addEventListener("progress",b)),g&&E.upload&&([v,j]=no(g),E.upload.addEventListener("progress",v),E.upload.addEventListener("loadend",j)),(o.cancelToken||o.signal)&&(y=M=>{E&&(r(!M||M.type?new Gs(null,n,E):M),E.abort(),E=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const L=Zw(o.url);if(L&&gt.protocols.indexOf(L)===-1){r(new fe("Unsupported protocol "+L+":",fe.ERR_BAD_REQUEST,n));return}E.send(c||null)})},aj=(n,a)=>{const{length:i}=n=n?n.filter(Boolean):[];if(a||i){let r=new AbortController,o;const c=function(m){if(!o){o=!0,p();const y=m instanceof Error?m:this.reason;r.abort(y instanceof fe?y:new Gs(y instanceof Error?y.message:y))}};let d=a&&setTimeout(()=>{d=null,c(new fe(`timeout ${a} of ms exceeded`,fe.ETIMEDOUT))},a);const p=()=>{n&&(d&&clearTimeout(d),d=null,n.forEach(m=>{m.unsubscribe?m.unsubscribe(c):m.removeEventListener("abort",c)}),n=null)};n.forEach(m=>m.addEventListener("abort",c));const{signal:g}=r;return g.unsubscribe=()=>k.asap(p),g}},sj=function*(n,a){let i=n.byteLength;if(i<a){yield n;return}let r=0,o;for(;r<i;)o=r+a,yield n.slice(r,o),r=o},ij=function(n,a){return Vc(this,null,function*(){try{for(var i=Np(lj(n)),r,o,c;r=!(o=yield new La(i.next())).done;r=!1){const d=o.value;yield*_c(sj(d,a))}}catch(o){c=[o]}finally{try{r&&(o=i.return)&&(yield new La(o.call(i)))}finally{if(c)throw c[0]}}})},lj=function(n){return Vc(this,null,function*(){if(n[Symbol.asyncIterator]){yield*_c(n);return}const a=n.getReader();try{for(;;){const{done:i,value:r}=yield new La(a.read());if(i)break;yield r}}finally{yield new La(a.cancel())}})},$p=(n,a,i,r)=>{const o=ij(n,a);let c=0,d,p=m=>{d||(d=!0,r&&r(m))};return new ReadableStream({pull(m){return Ae(this,null,function*(){try{const{done:y,value:v}=yield o.next();if(y){p(),m.close();return}let b=v.byteLength;if(i){let j=c+=b;i(j)}m.enqueue(new Uint8Array(v))}catch(y){throw p(y),y}})},cancel(m){return p(m),o.return()}},{highWaterMark:2})},go=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$y=go&&typeof ReadableStream=="function",rj=go&&(typeof TextEncoder=="function"?(n=>a=>n.encode(a))(new TextEncoder):n=>Ae(null,null,function*(){return new Uint8Array(yield new Response(n).arrayBuffer())})),Jy=(n,...a)=>{try{return!!n(...a)}catch(i){return!1}},oj=$y&&Jy(()=>{let n=!1;const a=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return n=!0,"half"}}).headers.has("Content-Type");return n&&!a}),Jp=64*1024,vf=$y&&Jy(()=>k.isReadableStream(new Response("").body)),ao={stream:vf&&(n=>n.body)};go&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!ao[a]&&(ao[a]=k.isFunction(n[a])?i=>i[a]():(i,r)=>{throw new fe(`Response type '${a}' is not supported`,fe.ERR_NOT_SUPPORT,r)})})})(new Response);const uj=n=>Ae(null,null,function*(){if(n==null)return 0;if(k.isBlob(n))return n.size;if(k.isSpecCompliantForm(n))return(yield new Request(gt.origin,{method:"POST",body:n}).arrayBuffer()).byteLength;if(k.isArrayBufferView(n)||k.isArrayBuffer(n))return n.byteLength;if(k.isURLSearchParams(n)&&(n=n+""),k.isString(n))return(yield rj(n)).byteLength}),cj=(n,a)=>Ae(null,null,function*(){const i=k.toFiniteNumber(n.getContentLength());return i==null?uj(a):i}),fj=go&&(n=>Ae(null,null,function*(){let{url:a,method:i,data:r,signal:o,cancelToken:c,timeout:d,onDownloadProgress:p,onUploadProgress:g,responseType:m,headers:y,withCredentials:v="same-origin",fetchOptions:b}=Qy(n);m=m?(m+"").toLowerCase():"text";let j=aj([o,c&&c.toAbortSignal()],d),N;const A=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let E;try{if(g&&oj&&i!=="get"&&i!=="head"&&(E=yield cj(y,r))!==0){let U=new Request(a,{method:"POST",body:r,duplex:"half"}),Z;if(k.isFormData(r)&&(Z=U.headers.get("content-type"))&&y.setContentType(Z),U.body){const[Q,J]=Fp(E,no(Zp(g)));r=$p(U.body,Jp,Q,J)}}k.isString(v)||(v=v?"include":"omit");const O="credentials"in Request.prototype;N=new Request(a,le(X({},b),{signal:j,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:r,duplex:"half",credentials:O?v:void 0}));let L=yield fetch(N,b);const M=vf&&(m==="stream"||m==="response");if(vf&&(p||M&&A)){const U={};["status","statusText","headers"].forEach(ce=>{U[ce]=L[ce]});const Z=k.toFiniteNumber(L.headers.get("content-length")),[Q,J]=p&&Fp(Z,no(Zp(p),!0))||[];L=new Response($p(L.body,Jp,Q,()=>{J&&J(),A&&A()}),U)}m=m||"text";let K=yield ao[k.findKey(ao,m)||"text"](L,n);return!M&&A&&A(),yield new Promise((U,Z)=>{Fy(U,Z,{data:K,headers:Dt.from(L.headers),status:L.status,statusText:L.statusText,config:n,request:N})})}catch(O){throw A&&A(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,n,N),{cause:O.cause||O}):fe.from(O,O&&O.code,n,N)}})),bf={http:Ew,xhr:nj,fetch:fj};k.forEach(bf,(n,a)=>{if(n){try{Object.defineProperty(n,"name",{value:a})}catch(i){}Object.defineProperty(n,"adapterName",{value:a})}});const Wp=n=>`- ${n}`,dj=n=>k.isFunction(n)||n===null||n===!1,Wy={getAdapter:n=>{n=k.isArray(n)?n:[n];const{length:a}=n;let i,r;const o={};for(let c=0;c<a;c++){i=n[c];let d;if(r=i,!dj(i)&&(r=bf[(d=String(i)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${d}'`);if(r)break;o[d||"#"+c]=r}if(!r){const c=Object.entries(o).map(([p,g])=>`adapter ${p} `+(g===!1?"is not supported by the environment":"is not available in the build"));let d=a?c.length>1?`since :
63
- `+c.map(Wp).join(`
64
- `):" "+Wp(c[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return r},adapters:bf};function Qc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Gs(null,n)}function Ip(n){return Qc(n),n.headers=Dt.from(n.headers),n.data=Zc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Wy.getAdapter(n.adapter||bl.adapter)(n).then(function(r){return Qc(n),r.data=Zc.call(n,n.transformResponse,r),r.headers=Dt.from(r.headers),r},function(r){return Ky(r)||(Qc(n),r&&r.response&&(r.response.data=Zc.call(n,n.transformResponse,r.response),r.response.headers=Dt.from(r.response.headers))),Promise.reject(r)})}const Iy="1.11.0",yo={};["object","boolean","number","function","string","symbol"].forEach((n,a)=>{yo[n]=function(r){return typeof r===n||"a"+(a<1?"n ":" ")+n}});const eg={};yo.transitional=function(a,i,r){function o(c,d){return"[Axios v"+Iy+"] Transitional option '"+c+"'"+d+(r?". "+r:"")}return(c,d,p)=>{if(a===!1)throw new fe(o(d," has been removed"+(i?" in "+i:"")),fe.ERR_DEPRECATED);return i&&!eg[d]&&(eg[d]=!0,console.warn(o(d," has been deprecated since v"+i+" and will be removed in the near future"))),a?a(c,d,p):!0}};yo.spelling=function(a){return(i,r)=>(console.warn(`${r} is likely a misspelling of ${a}`),!0)};function hj(n,a,i){if(typeof n!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let o=r.length;for(;o-- >0;){const c=r[o],d=a[c];if(d){const p=n[c],g=p===void 0||d(p,c,n);if(g!==!0)throw new fe("option "+c+" must be "+g,fe.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new fe("Unknown option "+c,fe.ERR_BAD_OPTION)}}const Qr={assertOptions:hj,validators:yo},hn=Qr.validators;let ka=class{constructor(a){this.defaults=a||{},this.interceptors={request:new Xp,response:new Xp}}request(a,i){return Ae(this,null,function*(){try{return yield this._request(a,i)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const c=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?c&&!String(r.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(r.stack+=`
65
- `+c):r.stack=c}catch(d){}}throw r}})}_request(a,i){typeof a=="string"?(i=i||{},i.url=a):i=a||{},i=Pa(this.defaults,i);const{transitional:r,paramsSerializer:o,headers:c}=i;r!==void 0&&Qr.assertOptions(r,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean)},!1),o!=null&&(k.isFunction(o)?i.paramsSerializer={serialize:o}:Qr.assertOptions(o,{encode:hn.function,serialize:hn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Qr.assertOptions(i,{baseUrl:hn.spelling("baseURL"),withXsrfToken:hn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let d=c&&k.merge(c.common,c[i.method]);c&&k.forEach(["delete","get","head","post","put","patch","common"],N=>{delete c[N]}),i.headers=Dt.concat(d,c);const p=[];let g=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(i)===!1||(g=g&&A.synchronous,p.unshift(A.fulfilled,A.rejected))});const m=[];this.interceptors.response.forEach(function(A){m.push(A.fulfilled,A.rejected)});let y,v=0,b;if(!g){const N=[Ip.bind(this),void 0];for(N.unshift(...p),N.push(...m),b=N.length,y=Promise.resolve(i);v<b;)y=y.then(N[v++],N[v++]);return y}b=p.length;let j=i;for(v=0;v<b;){const N=p[v++],A=p[v++];try{j=N(j)}catch(E){A.call(this,E);break}}try{y=Ip.call(this,j)}catch(N){return Promise.reject(N)}for(v=0,b=m.length;v<b;)y=y.then(m[v++],m[v++]);return y}getUri(a){a=Pa(this.defaults,a);const i=Zy(a.baseURL,a.url,a.allowAbsoluteUrls);return Yy(i,a.params,a.paramsSerializer)}};k.forEach(["delete","get","head","options"],function(a){ka.prototype[a]=function(i,r){return this.request(Pa(r||{},{method:a,url:i,data:(r||{}).data}))}});k.forEach(["post","put","patch"],function(a){function i(r){return function(c,d,p){return this.request(Pa(p||{},{method:a,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:d}))}}ka.prototype[a]=i(),ka.prototype[a+"Form"]=i(!0)});let mj=class ex{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(c){i=c});const r=this;this.promise.then(o=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](o);r._listeners=null}),this.promise.then=o=>{let c;const d=new Promise(p=>{r.subscribe(p),c=p}).then(o);return d.cancel=function(){r.unsubscribe(c)},d},a(function(c,d,p){r.reason||(r.reason=new Gs(c,d,p),i(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const i=this._listeners.indexOf(a);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const a=new AbortController,i=r=>{a.abort(r)};return this.subscribe(i),a.signal.unsubscribe=()=>this.unsubscribe(i),a.signal}static source(){let a;return{token:new ex(function(o){a=o}),cancel:a}}};function pj(n){return function(i){return n.apply(null,i)}}function gj(n){return k.isObject(n)&&n.isAxiosError===!0}const Sf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Sf).forEach(([n,a])=>{Sf[a]=n});function tx(n){const a=new ka(n),i=My(ka.prototype.request,a);return k.extend(i,ka.prototype,a,{allOwnKeys:!0}),k.extend(i,a,null,{allOwnKeys:!0}),i.create=function(o){return tx(Pa(n,o))},i}const me=tx(bl);me.Axios=ka;me.CanceledError=Gs;me.CancelToken=mj;me.isCancel=Ky;me.VERSION=Iy;me.toFormData=po;me.AxiosError=fe;me.Cancel=me.CanceledError;me.all=function(a){return Promise.all(a)};me.spread=pj;me.isAxiosError=gj;me.mergeConfig=Pa;me.AxiosHeaders=Dt;me.formToJSON=n=>Xy(k.isHTMLForm(n)?new FormData(n):n);me.getAdapter=Wy.getAdapter;me.HttpStatusCode=Sf;me.default=me;const{Axios:_3,AxiosError:k3,CanceledError:H3,isCancel:q3,CancelToken:P3,VERSION:Y3,all:G3,Cancel:X3,isAxiosError:K3,spread:F3,toFormData:Z3,AxiosHeaders:Q3,HttpStatusCode:$3,formToJSON:J3,getAdapter:W3,mergeConfig:I3}=me,Je=window.location.origin,yj=()=>{const[n,a]=w.useState(!1),{Rootname:i}=to(o=>o),{setRootname:r}=to(o=>o);return w.useEffect(()=>{me.get(`${Je}/api/db/databases`).then(o=>{var c;o.status===200&&r((c=o.data.data.RootName)!=null?c:"AxioDB")})},[]),f.jsx("header",{className:"bg-gradient-to-r from-blue-700 to-indigo-800 shadow-lg",children:f.jsx("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:f.jsx("div",{className:"flex items-center justify-between h-16",children:f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsxs(ca,{to:"/",className:"flex items-center",children:[f.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-9 w-9"}),f.jsxs("span",{className:"ml-2 text-white font-bold text-xl tracking-tight",children:[i," Admin Hub"]})]})}),f.jsx("div",{className:"hidden md:block ml-10",children:f.jsxs("div",{className:"flex space-x-4",children:[f.jsx(ca,{to:"/",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Dashboard"}),f.jsx(ca,{to:"/operations",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Operations"}),f.jsx(ca,{to:"/import",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Import DB"}),f.jsx(ca,{to:"/support",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Support"}),f.jsx(ca,{to:"/status",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Status"})]})})]})})})})};function xj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"}))}const vj=w.forwardRef(xj);function bj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"}))}const Sj=w.forwardRef(bj);function wj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"}))}const nx=w.forwardRef(wj);function jj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))}const Nj=w.forwardRef(jj);function Tj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"}))}const Ej=w.forwardRef(Tj);function Aj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))}const Cj=w.forwardRef(Aj);function Rj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const Dj=w.forwardRef(Rj);function Mj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const Oj=w.forwardRef(Mj),Lj=({treeDB:n})=>{const[a,i]=w.useState(!0),[r,o]=w.useState({}),[c,d]=w.useState([]),p=m=>{o(y=>le(X({},y),{[m]:!y[m]}))};w.useEffect(()=>{const m=()=>{if(!n||!Array.isArray(n)){d([]),i(!1);return}const y=n.map((v,b)=>{const j=`db${b+1}`;return{id:j,name:v.name,type:"database",children:Array.isArray(v.collections)?v.collections.map((N,A)=>({id:`${j}_col${A+1}`,name:N.name||N,type:"collection",documentCount:N.documentCount||0,size:"0 MB"})):[]}});y.length>0&&o({[y[0].id]:!0}),d(y),i(!1)};setTimeout(()=>{m()},500)},[n]);const g=m=>{const y=r[m.id];return f.jsxs("div",{children:[f.jsxs("div",{className:`flex items-center py-2 px-3 ${m.type==="database"?"bg-blue-50 hover:bg-blue-100 border-b border-blue-100":"hover:bg-gray-50 pl-10"} cursor-pointer transition-colors`,onClick:()=>m.children&&p(m.id),children:[m.children?f.jsx("div",{className:"mr-1",children:y?f.jsx(Dj,{className:"h-4 w-4 text-gray-500"}):f.jsx(Oj,{className:"h-4 w-4 text-gray-500"})}):f.jsx("div",{className:"w-4 mr-1"}),m.type==="database"?f.jsx(nx,{className:"h-5 w-5 text-blue-600 mr-2"}):f.jsx(Ej,{className:"h-5 w-5 text-yellow-600 mr-2"}),f.jsx("div",{className:"flex-grow",children:f.jsx("span",{className:"font-medium",children:m.name})}),m.type==="collection"&&f.jsx("div",{className:"text-xs text-gray-500",children:f.jsxs("span",{className:"mr-2",children:[m.documentCount," docs"]})})]}),m.children&&y&&f.jsx("div",{className:"border-l border-gray-200 ml-5",children:m.children.map(g)})]},m.id)};return f.jsxs("div",{className:"bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow",children:[f.jsxs("div",{className:"border-b border-gray-200 py-4 px-6",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Database Structure"}),f.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Overview of databases and collections"})]}),f.jsx("div",{className:"overflow-y-auto",style:{maxHeight:"400px"},children:a?f.jsx("div",{className:"p-6 space-y-3",children:[1,2,3].map(m=>f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-2"}),f.jsxs("div",{className:"pl-6 space-y-2",children:[f.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),f.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),f.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"})]})]},m))}):f.jsx("div",{children:c.map(g)})})]})},zj=({CacheStorageInfo:n})=>{const[a,i]=w.useState(!0);w.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},800)})()},[]);const r=n.Storage/n.Max*100;return f.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[f.jsxs("div",{className:"flex justify-between mb-3",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"In-Memory Cache"}),a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):f.jsxs("p",{className:"text-3xl font-bold text-orange-600 mt-2",children:[n.Storage," ",f.jsx("span",{className:"text-lg",children:n.Unit})]}),f.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n.Max," ",n.Unit," allocated"]})]}),f.jsx("div",{className:"p-3 bg-orange-100 rounded-full",children:f.jsx(vj,{className:"h-8 w-8 text-orange-600"})})]}),f.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:f.jsx("div",{className:"bg-orange-600 h-2.5 rounded-full",style:{width:`${a?0:r}%`}})})]})},Bj=({storageInfo:n})=>{const[a,i]=w.useState(!0);w.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},800)})()},[]);const r=(n==null?void 0:n.total)/(n==null?void 0:n.machine)*100;return f.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[f.jsxs("div",{className:"flex justify-between mb-3",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Storage Used"}),a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):f.jsxs("p",{className:"text-3xl font-bold text-green-600 mt-2",children:[n==null?void 0:n.total," ",f.jsx("span",{className:"text-lg",children:n==null?void 0:n.matrixUnit})]}),f.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n==null?void 0:n.machine," ",n==null?void 0:n.matrixUnit," available"]})]}),f.jsx("div",{className:"p-3 bg-green-100 rounded-full",children:f.jsx(Cj,{className:"h-8 w-8 text-green-600"})})]}),f.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:f.jsx("div",{className:"bg-green-600 h-2.5 rounded-full",style:{width:`${a?0:r}%`}})})]})},Uj=({totalCollections:n})=>{const[a,i]=w.useState(!0);return w.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},600)})()},[]),f.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:f.jsxs("div",{className:"flex justify-between",children:[f.jsx("div",{children:a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16"}):f.jsxs("p",{className:"text-2xl font-bold text-indigo-600 mt-2",children:[n," ",n<=1?"Collection":"Collections"]})}),f.jsx("div",{className:"p-3 bg-indigo-100 rounded-full",children:f.jsx(Sj,{className:"h-8 w-8 text-indigo-600"})})]})})},Vj=({totalDatabases:n})=>{const[a,i]=w.useState(!0);return w.useEffect(()=>{setTimeout(()=>{i(!1)},1e3)},[]),f.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:f.jsxs("div",{className:"flex justify-between",children:[f.jsx("div",{children:a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16 text-center"}):f.jsx("p",{className:"text-2xl font-bold text-blue-600 mt-2 text-center",children:n<=1?`${n} Database`:`${n} Databases`})}),f.jsx("div",{className:"p-3 bg-blue-100 rounded-full",children:f.jsx(nx,{className:"h-8 w-8 text-blue-600"})})]})})},_j=({totalDocuments:n})=>{const[a,i]=w.useState(!0);return w.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},700)})()},[]),f.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:f.jsxs("div",{className:"flex justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Total Documents"}),a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-20"}):f.jsx("p",{className:"text-3xl font-bold text-purple-600 mt-2",children:n}),f.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Across all collections"})]}),f.jsx("div",{className:"p-3 bg-purple-100 rounded-full",children:f.jsx(Nj,{className:"h-8 w-8 text-purple-600"})})]})})},kj=()=>{const[n,a]=w.useState(!0),[i,r]=w.useState(null);return w.useEffect(()=>{me.get(`${Je}/api/dashboard-stats`).then(o=>{o.status===200&&(r(o.data.data),a(!1))})},[]),f.jsxs("div",{className:"container mx-auto px-4 py-6",children:[f.jsx("div",{className:"mb-6",children:f.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Dashboard"})}),n?f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[1,2,3,4,5].map(o=>f.jsx("div",{className:"h-32 bg-gray-200 rounded-lg animate-pulse"},o))}):f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[f.jsx(Vj,{totalDatabases:(i==null?void 0:i.totalDatabases)||0}),f.jsx(Uj,{totalCollections:(i==null?void 0:i.totalCollections)||0}),f.jsx(_j,{totalDocuments:(i==null?void 0:i.totalDocuments)||0}),f.jsx(Bj,{storageInfo:(i==null?void 0:i.storageInfo)||{}}),f.jsx(zj,{CacheStorageInfo:(i==null?void 0:i.cacheStorage)||{}})]}),f.jsx("div",{className:"mb-8",children:f.jsx(Lj,{treeDB:(i==null?void 0:i.nodeTree)||[]})})]})},Hj=({isOpen:n,onClose:a,onDatabaseCreated:i})=>{const[r,o]=w.useState(""),[c,d]=w.useState(!1),[p,g]=w.useState(""),m=()=>{o(""),g(""),d(!1),a()},y=v=>Ae(null,null,function*(){var b,j;if(v.preventDefault(),!r.trim()){g("Database name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(r)){g("Database name can only contain letters, numbers, and underscores");return}d(!0),g("");try{const N=yield me.post(`${Je}/api/db/create-database`,{name:r});if(N.data.statusCode===200||N.data.statusCode===201)i(r),d(!1),m();else throw d(!1),new Error("Failed to create database")}catch(N){console.error("Error creating database:",N),g(((j=(b=N.response)==null?void 0:b.data)==null?void 0:j.message)||"Failed to create database. Please try again."),d(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:f.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[f.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Database"}),f.jsxs("form",{onSubmit:y,children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),f.jsx("input",{type:"text",id:"databaseName",value:r,onChange:v=>o(v.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter database name",disabled:c}),p&&f.jsx("p",{className:"mt-2 text-sm text-red-600",children:p})]}),f.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[f.jsx("button",{type:"button",onClick:m,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:c,children:"Cancel"}),f.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${c?"opacity-75 cursor-not-allowed":""}`,disabled:c,children:c?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create Database"})]})]})]})}):null},qj=({isOpen:n,dbName:a,onClose:i,onConfirmDelete:r})=>{const[o,c]=w.useState(!1);if(!n)return null;const d=()=>Ae(null,null,function*(){var p,g;c(!0);try{const m=yield me.delete(`${Je}/api/db/delete-database`,{params:{dbName:a}});if(m.status===200)console.log("Database deleted successfully:",m.data),r();else throw new Error("Failed to delete database")}catch(m){console.error("Error deleting database:",m),alert(((g=(p=m.response)==null?void 0:p.data)==null?void 0:g.message)||"Failed to delete database. Please try again.")}finally{c(!1)}});return f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:f.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6 animate-fadeIn",children:[f.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Confirm Deletion"}),f.jsxs("p",{className:"text-gray-700 mb-6",children:['Are you sure you want to delete the database "',a,'"? This action cannot be undone.']}),f.jsxs("div",{className:"flex justify-end space-x-4",children:[f.jsx("button",{onClick:i,disabled:o,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",children:"Cancel"}),f.jsx("button",{onClick:d,disabled:o,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${o?"opacity-75 cursor-not-allowed":""}`,children:o?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete"})]})]})})},Pj=({databases:n,onDeleteClick:a,loading:i})=>{const r=pl(),[o,c]=w.useState({}),d=m=>{c(y=>le(X({},y),{[m]:!1}))},p=m=>{r(`/collections?database=${encodeURIComponent(m)}`)},g=m=>Ae(null,null,function*(){var y,v;try{console.log("Starting export for database:",m),console.log("API URL:",`${Je}/api/db/export-database/?dbName=${encodeURIComponent(m)}`);const b=yield me.get(`${Je}/api/db/export-database/?dbName=${encodeURIComponent(m)}`,{responseType:"blob"});if(console.log("Response status:",b.status),console.log("Response headers:",b.headers),console.log("Response data type:",typeof b.data),console.log("Response data size:",(y=b.data)==null?void 0:y.size),b.data instanceof Blob&&b.data.type==="application/json"){const O=yield b.data.text();console.error("Received JSON error response:",O),alert(`Export failed: ${O}`);return}if(!b.data||b.data.size===0){console.error("Empty response received"),alert("Export failed: Empty file received");return}const j=window.URL.createObjectURL(b.data),N=document.createElement("a");N.href=j;const A=b.headers["content-disposition"];let E=`${m}.tar.gz`;if(A){const O=A.match(/filename="(.+)"/);O&&(E=O[1])}console.log("Downloading file as:",E),N.setAttribute("download",E),document.body.appendChild(N),N.click(),N.remove(),window.URL.revokeObjectURL(j),console.log("Download initiated successfully")}catch(b){if(console.error("Error exporting database:",b),b.response)if(console.error("Error response data:",b.response.data),console.error("Error response status:",b.response.status),console.error("Error response headers:",b.response.headers),b.response.data instanceof Blob)try{const j=yield b.response.data.text();console.error("Error response text:",j),alert(`Export failed: ${j}`)}catch(j){console.error("Could not read error response:",j),alert("Failed to export database. Please try again.")}else alert(`Export failed: ${((v=b.response.data)==null?void 0:v.message)||b.message}`);else alert("Failed to export database. Please try again.")}});return f.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[f.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Your Databases"}),f.jsxs("p",{className:"text-sm text-gray-500",children:["Total: ",i?"Loading...":n==null?void 0:n.TotalDatabases]})]}),i?f.jsx("div",{className:"p-6",children:[1,2,3].map(m=>f.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[f.jsxs("div",{children:[f.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),f.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),f.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},m))}):f.jsx("ul",{className:"divide-y divide-gray-200",children:n!=null&&n.ListOfDatabases&&(n==null?void 0:n.ListOfDatabases.length)>0?n.ListOfDatabases.map((m,y)=>f.jsxs("li",{className:`px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-all duration-300 ${o[m]?"animate-slideIn":"animate-fadeIn"}`,onAnimationEnd:()=>d(m),children:[f.jsxs("div",{children:[f.jsx("h4",{className:"text-lg font-medium text-gray-900",children:m}),f.jsxs("p",{className:"text-sm text-gray-500",children:["Path: ",n.AllDatabasesPaths[y]]})]}),f.jsxs("div",{className:"flex space-x-2",children:[f.jsx("button",{onClick:()=>p(m),className:"text-blue-600 hover:text-blue-800 px-3 py-1 rounded border border-blue-200 hover:border-blue-400 transition-colors",children:"View Collections"}),f.jsx("button",{onClick:()=>g(m),className:"text-green-600 hover:text-green-800 px-3 py-1 rounded border border-green-200 hover:border-green-400 transition-colors",children:"Export DB"}),f.jsx("button",{onClick:()=>a(m),className:"text-red-600 hover:text-red-800 px-3 py-1 rounded border border-red-200 hover:border-red-400 transition-colors",children:"Delete"})]})]},m)):f.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No databases found. Click "Create Database" to add one.'})})]})},Yj=()=>{const[n,a]=w.useState(!0),[i,r]=w.useState([]),[o,c]=w.useState(!1),[d,p]=w.useState(!1),[g,m]=w.useState(""),{Rootname:y}=to(N=>N);w.useEffect(()=>{Ae(null,null,function*(){try{const A=yield me.get(`${Je}/api/db/databases`);A.status===200&&(r(A.data.data),a(!1))}catch(A){console.error("Error fetching databases:",A),a(!1),r([])}})},[]);const v=N=>{m(N),c(!0)},b=()=>{r(N=>le(X({},N),{ListOfDatabases:N.ListOfDatabases.filter(A=>A!==g),TotalDatabases:`${N.ListOfDatabases.length-1} Databases`})),c(!1),m("")},j=N=>{r(A=>le(X({},A),{ListOfDatabases:[...A.ListOfDatabases,N],TotalDatabases:`${A.ListOfDatabases.length+1} Databases`,AllDatabasesPaths:[...A.AllDatabasesPaths,`${A.CurrentPath}/${N}`]}))};return f.jsxs("div",{className:"container mx-auto px-4 py-6",children:[f.jsxs("div",{className:"flex justify-between items-center mb-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Databases"}),f.jsxs("p",{className:"text-gray-600",children:["Manage your ",y," databases"]})]}),f.jsxs("button",{onClick:()=>p(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Create Database"]})]}),f.jsx(Pj,{databases:i,onDeleteClick:v,loading:n}),f.jsx(Hj,{isOpen:d,onClose:()=>p(!1),onDatabaseCreated:j}),f.jsx(qj,{isOpen:o,dbName:g,onClose:()=>c(!1),onConfirmDelete:b})]})},Gj=({isOpen:n,onClose:a,onCollectionCreated:i,databaseName:r})=>{const[o,c]=w.useState(""),[d,p]=w.useState(!1),[g,m]=w.useState(""),[y,v]=w.useState(!1),[b,j]=w.useState(""),N=()=>{c(""),p(!1),m(""),j(""),v(!1),a()},A=E=>Ae(null,null,function*(){var O,L;if(E.preventDefault(),!o.trim()){j("Collection name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(o)){j("Collection name can only contain letters, numbers, and underscores");return}if(d&&!g.trim()){j("Encryption key is required when encryption is enabled");return}v(!0),j("");try{const M=yield me.post(`${Je}/api/collection/create-collection`,{dbName:r,collectionName:o,crypto:d,key:d?g:""});if(M.data.statusCode===200||M.data.statusCode===201)i({name:o,documentCount:0,size:"N/A"}),N();else throw new Error("Failed to create collection")}catch(M){console.error("Error creating collection:",M),j(((L=(O=M.response)==null?void 0:O.data)==null?void 0:L.message)||"Failed to create collection. Please try again."),v(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:f.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[f.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Collection"}),f.jsxs("form",{onSubmit:A,children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),f.jsx("input",{type:"text",id:"databaseName",value:r,className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm bg-gray-100 cursor-not-allowed",disabled:!0})]}),f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{htmlFor:"collectionName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Collection Name"}),f.jsx("input",{type:"text",id:"collectionName",value:o,onChange:E=>c(E.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter collection name",disabled:y})]}),f.jsx("div",{className:"mb-4",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{htmlFor:"enableCrypto",className:"text-sm font-medium text-gray-700",children:"Enable Encryption"}),f.jsxs("div",{className:"relative inline-block w-10 mr-2 align-middle select-none",children:[f.jsx("input",{type:"checkbox",id:"enableCrypto",checked:d,onChange:()=>p(!d),className:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer",disabled:y}),f.jsx("label",{htmlFor:"enableCrypto",className:`toggle-label block overflow-hidden h-6 rounded-full cursor-pointer ${d?"bg-green-500":"bg-gray-300"}`})]})]})}),d&&f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{htmlFor:"cryptoKey",className:"block text-sm font-medium text-gray-700 mb-1",children:"Encryption Key"}),f.jsx("input",{type:"password",id:"cryptoKey",value:g,onChange:E=>m(E.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter encryption key",disabled:y})]}),b&&f.jsx("p",{className:"mt-2 text-sm text-red-600",children:b}),f.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[f.jsx("button",{type:"button",onClick:N,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:y,children:"Cancel"}),f.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${y?"opacity-75 cursor-not-allowed":""}`,disabled:y,children:y?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create Collection"})]})]})]})}):null},Xj=({isOpen:n,onClose:a,onCollectionDeleted:i,databaseName:r,collectionName:o})=>{const[c,d]=w.useState(!1),[p,g]=w.useState(""),m=()=>{g(""),d(!1),a()},y=()=>Ae(null,null,function*(){var v,b;d(!0),g("");try{if((yield me.delete(`${Je}/api/collection/delete-collection/?dbName=${r}&collectionName=${o}`)).data.statusCode===200)i(o),m();else throw new Error("Failed to delete collection")}catch(j){console.error("Error deleting collection:",j),g(((b=(v=j.response)==null?void 0:v.data)==null?void 0:b.message)||"Failed to delete collection. Please try again."),d(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:f.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[f.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Delete Collection"}),f.jsxs("p",{className:"mb-6 text-gray-600",children:["Are you sure you want to delete the collection"," ",f.jsx("span",{className:"font-semibold",children:o})," from database"," ",f.jsx("span",{className:"font-semibold",children:r}),"? This action cannot be undone."]}),p&&f.jsx("p",{className:"mb-4 text-sm text-red-600",children:p}),f.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[f.jsx("button",{type:"button",onClick:m,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:c,children:"Cancel"}),f.jsx("button",{type:"button",onClick:y,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${c?"opacity-75 cursor-not-allowed":""}`,disabled:c,children:c?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete Collection"})]})]})}):null},Kj=()=>{const[n]=Dy(),a=pl(),[i,r]=w.useState(!0),[o,c]=w.useState([]),[d,p]=w.useState([]),[g,m]=w.useState(!1),[y,v]=w.useState(!1),[b,j]=w.useState(""),N=n.get("database"),{Rootname:A}=to(U=>U),E=()=>Ae(null,null,function*(){try{const U=yield me.get(`${Je}/api/collection/all/?databaseName=${N}`);if(U.status===200){const Z=U.data.data||{};if(Z.ListOfCollections&&Array.isArray(Z.ListOfCollections)){const Q=Z.CollectionSizeMap||[],J=Z.collectionMetaStatus||[];p(J);const ce=Z.ListOfCollections.map(Se=>{const ge=Q.find(ke=>{const We=ke.folderPath.split("/");return We[We.length-1]===Se}),he=J.find(ke=>ke.name===Se);return{name:Se,documentCount:ge?ge.fileCount:0,isEncrypted:(he==null?void 0:he.isEncrypted)||!1,isSchemaNeeded:(he==null?void 0:he.isSchemaNeeded)||!1,schema:(he==null?void 0:he.schema)||{}}});c(ce)}else c([]);r(!1)}}catch(U){console.error("Error fetching collections:",U),r(!1),c([])}});w.useEffect(()=>{if(!N){a("/databases");return}E()},[N,a]);const O=()=>{a("/operations")},L=()=>{E()},M=U=>{j(U),v(!0)},K=()=>{E()};return f.jsxs("div",{className:"container mx-auto px-4 py-6",children:[f.jsxs("div",{className:"flex justify-between items-center mb-6",children:[f.jsxs("div",{children:[f.jsx("div",{className:"flex items-center mb-2",children:f.jsx("button",{onClick:O,className:"text-blue-600 hover:text-blue-800 mr-3",children:"← Back to Databases"})}),f.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Collections"}),f.jsxs("p",{className:"text-gray-600",children:["Collections in database:"," ",f.jsx("span",{className:"font-medium",children:N})]})]}),f.jsxs("button",{onClick:()=>m(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Create Collection"]})]}),f.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[f.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[f.jsxs("h3",{className:"text-lg font-medium text-gray-900",children:["Collections in ",N]}),f.jsxs("p",{className:"text-sm text-gray-500",children:["Total:"," ",i?"Loading...":o.length>0?`${o.length} Collections`:"0 Collections"]})]}),i?f.jsx("div",{className:"p-6",children:[1,2,3].map(U=>f.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[f.jsxs("div",{children:[f.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),f.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),f.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},U))}):f.jsx("ul",{className:"divide-y divide-gray-200",children:o.length>0?o.map(U=>f.jsxs("li",{className:"px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-colors",children:[f.jsxs("div",{children:[f.jsxs("h4",{className:"text-lg font-medium text-gray-900 flex items-center",children:[U.name,U.isEncrypted?f.jsx("span",{className:"ml-2 text-green-600",title:"Encrypted Collection",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}):f.jsx("span",{className:"ml-2 text-gray-400",title:"Unencrypted Collection",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{d:"M10 2a5 5 0 00-5 5v2a2 2 0 00-2 2v5a2 2 0 002 2h10a2 2 0 002-2v-5a2 2 0 00-2-2H7V7a3 3 0 015.905-.75 1 1 0 001.937-.5A5.002 5.002 0 0010 2z"})})})]}),f.jsxs("p",{className:"text-sm text-gray-500",children:[U.documentCount," documents"]})]}),f.jsxs("div",{className:"flex space-x-2",children:[f.jsx("button",{onClick:()=>a(`/collections/documents?database=${N}&collection=${U.name}`),className:"text-blue-600 hover:text-blue-800 px-3 py-1 rounded border border-blue-200 hover:border-blue-400 transition-colors",children:"View Documents"}),f.jsx("button",{onClick:()=>M(U.name),className:"text-red-600 hover:text-red-800 px-3 py-1 rounded border border-red-200 hover:border-red-400 transition-colors",children:"Delete"})]})]},U.name)):f.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No collections found in this database. Click "Create Collection" to add one.'})})]}),g&&f.jsx(Gj,{isOpen:g,onClose:()=>m(!1),onCollectionCreated:L,databaseName:N}),y&&f.jsx(Xj,{isOpen:y,onClose:()=>v(!1),onCollectionDeleted:K,databaseName:N,collectionName:b})]})},Fj=({isOpen:n,onClose:a,onDocumentInserted:i,databaseName:r,collectionName:o,onSuccess:c})=>{const[d,p]=w.useState(`{
60
+ Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let v=ha(),b;if(a){let z=typeof a=="string"?Ps(a):a;Xe(m==="/"||((O=z.pathname)==null?void 0:O.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${z.pathname}" was given in the \`location\` prop.`),b=z}else b=v;let j=b.pathname||"/",N=j;if(m!=="/"){let z=m.replace(/^\//,"").split("/");N="/"+j.replace(/^\//,"").split("/").slice(z.length).join("/")}let A=py(n,{pathname:N});ln(y||A!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),ln(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=Z2(A&&A.map(z=>Object.assign({},z,{params:Object.assign({},p,z.params),pathname:zn([m,o.encodeLocation?o.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?m:zn([m,o.encodeLocation?o.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),c,i,r);return a&&T?w.createElement(hl.Provider,{value:{location:X({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:"POP"}},T):T}function G2(){let n=I2(),a=V2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},c={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:c},"ErrorBoundary")," or"," ",w.createElement("code",{style:c},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},a),i?w.createElement("pre",{style:o},i):null,d)}var X2=w.createElement(G2,null),K2=class extends w.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?w.createElement(_n.Provider,{value:this.props.routeContext},w.createElement(Pf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function F2({routeContext:n,match:a,children:i}){let r=w.useContext(Ys);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),w.createElement(_n.Provider,{value:n},i)}function Z2(n,a=[],i=null,r=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(a.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let o=n,c=i==null?void 0:i.errors;if(c!=null){let g=o.findIndex(m=>m.route.id&&(c==null?void 0:c[m.route.id])!==void 0);Xe(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,g+1))}let d=!1,p=-1;if(i)for(let g=0;g<o.length;g++){let m=o[g];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(p=g),m.route.id){let{loaderData:y,errors:v}=i,b=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!v||v[m.route.id]===void 0);if(m.route.lazy||b){d=!0,p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}return o.reduceRight((g,m,y)=>{let v,b=!1,j=null,N=null;i&&(v=c&&m.route.id?c[m.route.id]:void 0,j=m.route.errorElement||X2,d&&(p<0&&y===0?(Ty("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,N=null):p===y&&(b=!0,N=m.route.hydrateFallbackElement||null)));let A=a.concat(o.slice(0,y+1)),T=()=>{let O;return v?O=j:b?O=N:m.route.Component?O=w.createElement(m.route.Component,null):m.route.element?O=m.route.element:O=g,w.createElement(F2,{match:m,routeContext:{outlet:g,matches:A,isDataRoute:i!=null},children:O})};return i&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?w.createElement(K2,{location:i.location,revalidation:i.revalidation,component:j,error:v,children:T(),routeContext:{outlet:null,matches:A,isDataRoute:!0}}):T()},null)}function Yf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Q2(n){let a=w.useContext(Ys);return Xe(a,Yf(n)),a}function $2(n){let a=w.useContext(uo);return Xe(a,Yf(n)),a}function J2(n){let a=w.useContext(_n);return Xe(a,Yf(n)),a}function Gf(n){let a=J2(n),i=a.matches[a.matches.length-1];return Xe(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function W2(){return Gf("useRouteId")}function I2(){var r;let n=w.useContext(Pf),a=$2("useRouteError"),i=Gf("useRouteError");return n!==void 0?n:(r=a.errors)==null?void 0:r[i]}function eS(){let{router:n}=Q2("useNavigate"),a=Gf("useNavigate"),i=w.useRef(!1);return jy(()=>{i.current=!0}),w.useCallback((d,...p)=>Re(null,[d,...p],function*(o,c={}){ln(i.current,wy),i.current&&(typeof o=="number"?n.navigate(o):yield n.navigate(o,X({fromRouteId:a},c)))}),[n,a])}var Up={};function Ty(n,a,i){!a&&!Up[n]&&(Up[n]=!0,ln(!1,i))}w.memo(tS);function tS({routes:n,future:a,state:i}){return Ny(n,void 0,i,a)}function mn(n){Xe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function nS({basename:n="/",children:a=null,location:i,navigationType:r="POP",navigator:o,static:c=!1}){Xe(!ml(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),p=w.useMemo(()=>({basename:d,navigator:o,static:c,future:{}}),[d,o,c]);typeof i=="string"&&(i=Ps(i));let{pathname:g="/",search:m="",hash:y="",state:v=null,key:b="default"}=i,j=w.useMemo(()=>{let N=Bn(g,d);return N==null?null:{location:{pathname:N,search:m,hash:y,state:v,key:b},navigationType:r}},[d,g,m,y,v,b,r]);return ln(j!=null,`<Router basename="${d}"> is not able to match the URL "${g}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:w.createElement(xn.Provider,{value:p},w.createElement(hl.Provider,{children:a,value:j}))}function aS({children:n,location:a}){return Y2(hf(n),a)}function hf(n,a=[]){let i=[];return w.Children.forEach(n,(r,o)=>{if(!w.isValidElement(r))return;let c=[...a,o];if(r.type===w.Fragment){i.push.apply(i,hf(r.props.children,c));return}Xe(r.type===mn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={id:r.props.id||c.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(d.children=hf(r.props.children,c)),i.push(d)}),i}var Kr="get",Fr="application/x-www-form-urlencoded";function co(n){return n!=null&&typeof n.tagName=="string"}function sS(n){return co(n)&&n.tagName.toLowerCase()==="button"}function iS(n){return co(n)&&n.tagName.toLowerCase()==="form"}function lS(n){return co(n)&&n.tagName.toLowerCase()==="input"}function rS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function oS(n,a){return n.button===0&&(!a||a==="_self")&&!rS(n)}function mf(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((a,i)=>{let r=n[i];return a.concat(Array.isArray(r)?r.map(o=>[i,o]):[[i,r]])},[]))}function uS(n,a){let i=mf(n);return a&&a.forEach((r,o)=>{i.has(o)||a.getAll(o).forEach(c=>{i.append(o,c)})}),i}var Hr=null;function cS(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch(n){Hr=!0}return Hr}var fS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xc(n){return n!=null&&!fS.has(n)?(ln(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fr}"`),null):n}function dS(n,a){let i,r,o,c,d;if(iS(n)){let p=n.getAttribute("action");r=p?Bn(p,a):null,i=n.getAttribute("method")||Kr,o=Xc(n.getAttribute("enctype"))||Fr,c=new FormData(n)}else if(sS(n)||lS(n)&&(n.type==="submit"||n.type==="image")){let p=n.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||p.getAttribute("action");if(r=g?Bn(g,a):null,i=n.getAttribute("formmethod")||p.getAttribute("method")||Kr,o=Xc(n.getAttribute("formenctype"))||Xc(p.getAttribute("enctype"))||Fr,c=new FormData(p,n),!cS()){let{name:m,type:y,value:v}=n;if(y==="image"){let b=m?`${m}.`:"";c.append(`${b}x`,"0"),c.append(`${b}y`,"0")}else m&&c.append(m,v)}}else{if(co(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Kr,r=null,o=Fr,d=n}return c&&o==="text/plain"&&(d=c,c=void 0),{action:r,method:i.toLowerCase(),encType:o,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Xf(n,a){if(n===!1||n===null||typeof n=="undefined")throw new Error(a)}function hS(n,a,i){let r=typeof n=="string"?new URL(n,typeof window=="undefined"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname=`_root.${i}`:a&&Bn(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.${i}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${i}`,r}function mS(n,a){return Re(this,null,function*(){if(n.id in a)return a[n.id];try{let i=yield import(n.module);return a[n.id]=i,i}catch(i){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}})}function pS(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}function gS(n,a,i){return Re(this,null,function*(){let r=yield Promise.all(n.map(o=>Re(null,null,function*(){let c=a.routes[o.route.id];if(c){let d=yield mS(c,i);return d.links?d.links():[]}return[]})));return bS(r.flat(1).filter(pS).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?le(X({},o),{rel:"prefetch",as:"style"}):le(X({},o),{rel:"prefetch"})))})}function Vp(n,a,i,r,o,c){let d=(g,m)=>i[m]?g.route.id!==i[m].route.id:!0,p=(g,m)=>{var y;return i[m].pathname!==g.pathname||((y=i[m].route.path)==null?void 0:y.endsWith("*"))&&i[m].params["*"]!==g.params["*"]};return c==="assets"?a.filter((g,m)=>d(g,m)||p(g,m)):c==="data"?a.filter((g,m)=>{var v;let y=r.routes[g.route.id];if(!y||!y.hasLoader)return!1;if(d(g,m)||p(g,m))return!0;if(g.route.shouldRevalidate){let b=g.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=i[0])==null?void 0:v.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function yS(n,a,{includeHydrateFallback:i}={}){return xS(n.map(r=>{let o=a.routes[r.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function xS(n){return[...new Set(n)]}function vS(n){let a={},i=Object.keys(n).sort();for(let r of i)a[r]=n[r];return a}function bS(n,a){let i=new Set;return new Set(a),n.reduce((r,o)=>{let c=JSON.stringify(vS(o));return i.has(c)||(i.add(c),r.push({key:c,link:o})),r},[])}function Ey(){let n=w.useContext(Ys);return Xf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function SS(){let n=w.useContext(uo);return Xf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Kf=w.createContext(void 0);Kf.displayName="FrameworkContext";function Ay(){let n=w.useContext(Kf);return Xf(n,"You must render this element inside a <HydratedRouter> element"),n}function wS(n,a){let i=w.useContext(Kf),[r,o]=w.useState(!1),[c,d]=w.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:y,onTouchStart:v}=a,b=w.useRef(null);w.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let A=O=>{O.forEach(z=>{d(z.isIntersecting)})},T=new IntersectionObserver(A,{threshold:.5});return b.current&&T.observe(b.current),()=>{T.disconnect()}}},[n]),w.useEffect(()=>{if(r){let A=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(A)}}},[r]);let j=()=>{o(!0)},N=()=>{o(!1),d(!1)};return i?n!=="intent"?[c,b,{}]:[c,b,{onFocus:Ji(p,j),onBlur:Ji(g,N),onMouseEnter:Ji(m,j),onMouseLeave:Ji(y,N),onTouchStart:Ji(v,j)}]:[!1,b,{}]}function Ji(n,a){return i=>{n&&n(i),i.defaultPrevented||a(i)}}function jS(i){var r=i,{page:n}=r,a=ot(r,["page"]);let{router:o}=Ey(),c=w.useMemo(()=>py(o.routes,n,o.basename),[o.routes,n,o.basename]);return c?w.createElement(TS,X({page:n,matches:c},a)):null}function NS(n){let{manifest:a,routeModules:i}=Ay(),[r,o]=w.useState([]);return w.useEffect(()=>{let c=!1;return gS(n,a,i).then(d=>{c||o(d)}),()=>{c=!0}},[n,a,i]),r}function TS(r){var o=r,{page:n,matches:a}=o,i=ot(o,["page","matches"]);let c=ha(),{manifest:d,routeModules:p}=Ay(),{basename:g}=Ey(),{loaderData:m,matches:y}=SS(),v=w.useMemo(()=>Vp(n,a,y,d,c,"data"),[n,a,y,d,c]),b=w.useMemo(()=>Vp(n,a,y,d,c,"assets"),[n,a,y,d,c]),j=w.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let T=new Set,O=!1;if(a.forEach(M=>{var U;let K=d.routes[M.route.id];!K||!K.hasLoader||(!v.some(Z=>Z.route.id===M.route.id)&&M.route.id in m&&((U=p[M.route.id])!=null&&U.shouldRevalidate)||K.hasClientLoader?O=!0:T.add(M.route.id))}),T.size===0)return[];let z=hS(n,g,"data");return O&&T.size>0&&z.searchParams.set("_routes",a.filter(M=>T.has(M.route.id)).map(M=>M.route.id).join(",")),[z.pathname+z.search]},[g,m,c,d,v,a,n,p]),N=w.useMemo(()=>yS(b,d),[b,d]),A=NS(b);return w.createElement(w.Fragment,null,j.map(T=>w.createElement("link",X({key:T,rel:"prefetch",as:"fetch",href:T},i))),N.map(T=>w.createElement("link",X({key:T,rel:"modulepreload",href:T},i))),A.map(({key:T,link:O})=>w.createElement("link",X({key:T,nonce:i.nonce},O))))}function ES(...n){return a=>{n.forEach(i=>{typeof i=="function"?i(a):i!=null&&(i.current=a)})}}var Cy=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{Cy&&(window.__reactRouterVersion="7.8.0")}catch(n){}function AS({basename:n,children:a,window:i}){let r=w.useRef();r.current==null&&(r.current=m2({window:i,v5Compat:!0}));let o=r.current,[c,d]=w.useState({action:o.action,location:o.location}),p=w.useCallback(g=>{w.startTransition(()=>d(g))},[d]);return w.useLayoutEffect(()=>o.listen(p),[o,p]),w.createElement(nS,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:o})}var Ry=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ca=w.forwardRef(function(N,j){var A=N,{onClick:a,discover:i="render",prefetch:r="none",relative:o,reloadDocument:c,replace:d,state:p,target:g,to:m,preventScrollReset:y,viewTransition:v}=A,b=ot(A,["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"]);let{basename:T}=w.useContext(xn),O=typeof m=="string"&&Ry.test(m),z,M=!1;if(typeof m=="string"&&O&&(z=m,Cy))try{let de=new URL(window.location.href),ue=m.startsWith("//")?new URL(de.protocol+m):new URL(m),Ae=Bn(ue.pathname,T);ue.origin===de.origin&&Ae!=null?m=Ae+ue.search+ue.hash:M=!0}catch(de){ln(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let K=q2(m,{relative:o}),[U,Z,Q]=wS(r,b),W=MS(m,{replace:d,state:p,target:g,preventScrollReset:y,relative:o,viewTransition:v});function fe(de){a&&a(de),de.defaultPrevented||W(de)}let xe=w.createElement("a",le(X(X({},b),Q),{href:z||K,onClick:M||c?a:fe,ref:ES(j,Z),target:g,"data-discover":!O&&i==="render"?"true":void 0}));return U&&!O?w.createElement(w.Fragment,null,xe,w.createElement(jS,{page:K})):xe});ca.displayName="Link";var CS=w.forwardRef(function(v,y){var b=v,{"aria-current":a="page",caseSensitive:i=!1,className:r="",end:o=!1,style:c,to:d,viewTransition:p,children:g}=b,m=ot(b,["aria-current","caseSensitive","className","end","style","to","viewTransition","children"]);let j=gl(d,{relative:m.relative}),N=ha(),A=w.useContext(uo),{navigator:T,basename:O}=w.useContext(xn),z=A!=null&&US(j)&&p===!0,M=T.encodeLocation?T.encodeLocation(j).pathname:j.pathname,K=N.pathname,U=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;i||(K=K.toLowerCase(),U=U?U.toLowerCase():null,M=M.toLowerCase()),U&&O&&(U=Bn(U,O)||U);const Z=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let Q=K===M||!o&&K.startsWith(M)&&K.charAt(Z)==="/",W=U!=null&&(U===M||!o&&U.startsWith(M)&&U.charAt(M.length)==="/"),fe={isActive:Q,isPending:W,isTransitioning:z},xe=Q?a:void 0,de;typeof r=="function"?de=r(fe):de=[r,Q?"active":null,W?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let ue=typeof c=="function"?c(fe):c;return w.createElement(ca,le(X({},m),{"aria-current":xe,className:de,ref:y,style:ue,to:d,viewTransition:p}),typeof g=="function"?g(fe):g)});CS.displayName="NavLink";var RS=w.forwardRef((N,j)=>{var A=N,{discover:n="render",fetcherKey:a,navigate:i,reloadDocument:r,replace:o,state:c,method:d=Kr,action:p,onSubmit:g,relative:m,preventScrollReset:y,viewTransition:v}=A,b=ot(A,["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"]);let T=zS(),O=BS(p,{relative:m}),z=d.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&Ry.test(p),K=U=>{if(g&&g(U),U.defaultPrevented)return;U.preventDefault();let Z=U.nativeEvent.submitter,Q=(Z==null?void 0:Z.getAttribute("formmethod"))||d;T(Z||U.currentTarget,{fetcherKey:a,method:Q,navigate:i,replace:o,state:c,relative:m,preventScrollReset:y,viewTransition:v})};return w.createElement("form",le(X({ref:j,method:z,action:O,onSubmit:r?g:K},b),{"data-discover":!M&&n==="render"?"true":void 0}))});RS.displayName="Form";function DS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dy(n){let a=w.useContext(Ys);return Xe(a,DS(n)),a}function MS(n,{target:a,replace:i,state:r,preventScrollReset:o,relative:c,viewTransition:d}={}){let p=pl(),g=ha(),m=gl(n,{relative:c});return w.useCallback(y=>{if(oS(y,a)){y.preventDefault();let v=i!==void 0?i:ll(g)===ll(m);p(n,{replace:v,state:r,preventScrollReset:o,relative:c,viewTransition:d})}},[g,p,m,i,r,a,n,o,c,d])}function My(n){ln(typeof URLSearchParams!="undefined","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let a=w.useRef(mf(n)),i=w.useRef(!1),r=ha(),o=w.useMemo(()=>uS(r.search,i.current?null:a.current),[r.search]),c=pl(),d=w.useCallback((p,g)=>{const m=mf(typeof p=="function"?p(new URLSearchParams(o)):p);i.current=!0,c("?"+m,g)},[c,o]);return[o,d]}var OS=0,LS=()=>`__${String(++OS)}__`;function zS(){let{router:n}=Dy("useSubmit"),{basename:a}=w.useContext(xn),i=W2();return w.useCallback((c,...d)=>Re(null,[c,...d],function*(r,o={}){let{action:p,method:g,encType:m,formData:y,body:v}=dS(r,a);if(o.navigate===!1){let b=o.fetcherKey||LS();yield n.fetch(b,i,o.action||p,{preventScrollReset:o.preventScrollReset,formData:y,body:v,formMethod:o.method||g,formEncType:o.encType||m,flushSync:o.flushSync})}else yield n.navigate(o.action||p,{preventScrollReset:o.preventScrollReset,formData:y,body:v,formMethod:o.method||g,formEncType:o.encType||m,replace:o.replace,state:o.state,fromRouteId:i,flushSync:o.flushSync,viewTransition:o.viewTransition})}),[n,a,i])}function BS(n,{relative:a}={}){let{basename:i}=w.useContext(xn),r=w.useContext(_n);Xe(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),c=X({},gl(n||".",{relative:a})),d=ha();if(n==null){c.search=d.search;let p=new URLSearchParams(c.search),g=p.getAll("index");if(g.some(y=>y==="")){p.delete("index"),g.filter(v=>v).forEach(v=>p.append("index",v));let y=p.toString();c.search=y?`?${y}`:""}}return(!n||n===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(c.pathname=c.pathname==="/"?i:zn([i,c.pathname])),ll(c)}function US(n,{relative:a}={}){let i=w.useContext(Sy);Xe(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Dy("useViewTransitionState"),o=gl(n,{relative:a});if(!i.isTransitioning)return!1;let c=Bn(i.currentLocation.pathname,r)||i.currentLocation.pathname,d=Bn(i.nextLocation.pathname,r)||i.nextLocation.pathname;return to(o.pathname,d)!=null||to(o.pathname,c)!=null}const VS=()=>{const n=new Date().getFullYear();return f.jsx("footer",{className:"bg-gray-800 text-gray-300 py-6",children:f.jsx("div",{className:"container mx-auto px-4",children:f.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[f.jsxs("div",{className:"mb-4 md:mb-0",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-8 w-8 mr-2"}),f.jsx("span",{className:"font-bold text-white text-lg",children:"AxioDB"})]}),f.jsx("p",{className:"text-sm mt-2",children:"High-performance document database"})]}),f.jsxs("div",{className:"text-sm",children:[f.jsxs("div",{className:"flex space-x-6",children:[f.jsx("a",{href:"/support",className:"hover:text-white transition-colors",children:"Support"}),f.jsx("a",{href:"/api",className:"hover:text-white transition-colors",children:"API"}),f.jsx("a",{href:"/status",className:"hover:text-white transition-colors",children:"Status"})]}),f.jsxs("p",{className:"mt-4 text-xs text-center md:text-right",children:["© ",n," AxioDB, Inc. All rights reserved."]})]})]})})})},_p=n=>{let a;const i=new Set,r=(m,y)=>{const v=typeof m=="function"?m(a):m;if(!Object.is(v,a)){const b=a;a=(y!=null?y:typeof v!="object"||v===null)?v:Object.assign({},a,v),i.forEach(j=>j(a,b))}},o=()=>a,p={setState:r,getState:o,getInitialState:()=>g,subscribe:m=>(i.add(m),()=>i.delete(m))},g=a=n(r,o,p);return p},_S=n=>n?_p(n):_p,kS=n=>n;function HS(n,a=kS){const i=kr.useSyncExternalStore(n.subscribe,kr.useCallback(()=>a(n.getState()),[n,a]),kr.useCallback(()=>a(n.getInitialState()),[n,a]));return kr.useDebugValue(i),i}const kp=n=>{const a=_S(n),i=r=>HS(a,r);return Object.assign(i,a),i},qS=n=>n?kp(n):kp,no=qS(n=>({Rootname:"",setRootname:a=>n({Rootname:a})}));function Oy(n,a){return function(){return n.apply(a,arguments)}}const{toString:PS}=Object.prototype,{getPrototypeOf:Ff}=Object,{iterator:fo,toStringTag:Ly}=Symbol,ho=(n=>a=>{const i=PS.call(a);return n[i]||(n[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),rn=n=>(n=n.toLowerCase(),a=>ho(a)===n),mo=n=>a=>typeof a===n,{isArray:Gs}=Array,ks=mo("undefined");function yl(n){return n!==null&&!ks(n)&&n.constructor!==null&&!ks(n.constructor)&&Rt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const zy=rn("ArrayBuffer");function YS(n){let a;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?a=ArrayBuffer.isView(n):a=n&&n.buffer&&zy(n.buffer),a}const GS=mo("string"),Rt=mo("function"),By=mo("number"),xl=n=>n!==null&&typeof n=="object",XS=n=>n===!0||n===!1,Zr=n=>{if(ho(n)!=="object")return!1;const a=Ff(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Ly in n)&&!(fo in n)},KS=n=>{if(!xl(n)||yl(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch(a){return!1}},FS=rn("Date"),ZS=rn("File"),QS=rn("Blob"),$S=rn("FileList"),JS=n=>xl(n)&&Rt(n.pipe),WS=n=>{let a;return n&&(typeof FormData=="function"&&n instanceof FormData||Rt(n.append)&&((a=ho(n))==="formdata"||a==="object"&&Rt(n.toString)&&n.toString()==="[object FormData]"))},IS=rn("URLSearchParams"),[ew,tw,nw,aw]=["ReadableStream","Request","Response","Headers"].map(rn),sw=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vl(n,a,{allOwnKeys:i=!1}={}){if(n===null||typeof n=="undefined")return;let r,o;if(typeof n!="object"&&(n=[n]),Gs(n))for(r=0,o=n.length;r<o;r++)a.call(null,n[r],r,n);else{if(yl(n))return;const c=i?Object.getOwnPropertyNames(n):Object.keys(n),d=c.length;let p;for(r=0;r<d;r++)p=c[r],a.call(null,n[p],p,n)}}function Uy(n,a){if(yl(n))return null;a=a.toLowerCase();const i=Object.keys(n);let r=i.length,o;for(;r-- >0;)if(o=i[r],a===o.toLowerCase())return o;return null}const Ua=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Vy=n=>!ks(n)&&n!==Ua;function pf(){const{caseless:n,skipUndefined:a}=Vy(this)&&this||{},i={},r=(o,c)=>{const d=n&&Uy(i,c)||c;Zr(i[d])&&Zr(o)?i[d]=pf(i[d],o):Zr(o)?i[d]=pf({},o):Gs(o)?i[d]=o.slice():(!a||!ks(o))&&(i[d]=o)};for(let o=0,c=arguments.length;o<c;o++)arguments[o]&&vl(arguments[o],r);return i}const iw=(n,a,i,{allOwnKeys:r}={})=>(vl(a,(o,c)=>{i&&Rt(o)?n[c]=Oy(o,i):n[c]=o},{allOwnKeys:r}),n),lw=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),rw=(n,a,i,r)=>{n.prototype=Object.create(a.prototype,r),n.prototype.constructor=n,Object.defineProperty(n,"super",{value:a.prototype}),i&&Object.assign(n.prototype,i)},ow=(n,a,i,r)=>{let o,c,d;const p={};if(a=a||{},n==null)return a;do{for(o=Object.getOwnPropertyNames(n),c=o.length;c-- >0;)d=o[c],(!r||r(d,n,a))&&!p[d]&&(a[d]=n[d],p[d]=!0);n=i!==!1&&Ff(n)}while(n&&(!i||i(n,a))&&n!==Object.prototype);return a},uw=(n,a,i)=>{n=String(n),(i===void 0||i>n.length)&&(i=n.length),i-=a.length;const r=n.indexOf(a,i);return r!==-1&&r===i},cw=n=>{if(!n)return null;if(Gs(n))return n;let a=n.length;if(!By(a))return null;const i=new Array(a);for(;a-- >0;)i[a]=n[a];return i},fw=(n=>a=>n&&a instanceof n)(typeof Uint8Array!="undefined"&&Ff(Uint8Array)),dw=(n,a)=>{const r=(n&&n[fo]).call(n);let o;for(;(o=r.next())&&!o.done;){const c=o.value;a.call(n,c[0],c[1])}},hw=(n,a)=>{let i;const r=[];for(;(i=n.exec(a))!==null;)r.push(i);return r},mw=rn("HTMLFormElement"),pw=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,r,o){return r.toUpperCase()+o}),Hp=(({hasOwnProperty:n})=>(a,i)=>n.call(a,i))(Object.prototype),gw=rn("RegExp"),_y=(n,a)=>{const i=Object.getOwnPropertyDescriptors(n),r={};vl(i,(o,c)=>{let d;(d=a(o,c,n))!==!1&&(r[c]=d||o)}),Object.defineProperties(n,r)},yw=n=>{_y(n,(a,i)=>{if(Rt(n)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const r=n[i];if(Rt(r)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},xw=(n,a)=>{const i={},r=o=>{o.forEach(c=>{i[c]=!0})};return Gs(n)?r(n):r(String(n).split(a)),i},vw=()=>{},bw=(n,a)=>n!=null&&Number.isFinite(n=+n)?n:a;function Sw(n){return!!(n&&Rt(n.append)&&n[Ly]==="FormData"&&n[fo])}const ww=n=>{const a=new Array(10),i=(r,o)=>{if(xl(r)){if(a.indexOf(r)>=0)return;if(yl(r))return r;if(!("toJSON"in r)){a[o]=r;const c=Gs(r)?[]:{};return vl(r,(d,p)=>{const g=i(d,o+1);!ks(g)&&(c[p]=g)}),a[o]=void 0,c}}return r};return i(n,0)},jw=rn("AsyncFunction"),Nw=n=>n&&(xl(n)||Rt(n))&&Rt(n.then)&&Rt(n.catch),ky=((n,a)=>n?setImmediate:a?((i,r)=>(Ua.addEventListener("message",({source:o,data:c})=>{o===Ua&&c===i&&r.length&&r.shift()()},!1),o=>{r.push(o),Ua.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Rt(Ua.postMessage)),Tw=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Ua):typeof process!="undefined"&&process.nextTick||ky,Ew=n=>n!=null&&Rt(n[fo]),k={isArray:Gs,isArrayBuffer:zy,isBuffer:yl,isFormData:WS,isArrayBufferView:YS,isString:GS,isNumber:By,isBoolean:XS,isObject:xl,isPlainObject:Zr,isEmptyObject:KS,isReadableStream:ew,isRequest:tw,isResponse:nw,isHeaders:aw,isUndefined:ks,isDate:FS,isFile:ZS,isBlob:QS,isRegExp:gw,isFunction:Rt,isStream:JS,isURLSearchParams:IS,isTypedArray:fw,isFileList:$S,forEach:vl,merge:pf,extend:iw,trim:sw,stripBOM:lw,inherits:rw,toFlatObject:ow,kindOf:ho,kindOfTest:rn,endsWith:uw,toArray:cw,forEachEntry:dw,matchAll:hw,isHTMLForm:mw,hasOwnProperty:Hp,hasOwnProp:Hp,reduceDescriptors:_y,freezeMethods:yw,toObjectSet:xw,toCamelCase:pw,noop:vw,toFiniteNumber:bw,findKey:Uy,global:Ua,isContextDefined:Vy,isSpecCompliantForm:Sw,toJSONObject:ww,isAsyncFn:jw,isThenable:Nw,setImmediate:ky,asap:Tw,isIterable:Ew};function he(n,a,i,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=n,this.name="AxiosError",a&&(this.code=a),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}k.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.status}}});const Hy=he.prototype,qy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(n=>{qy[n]={value:n}});Object.defineProperties(he,qy);Object.defineProperty(Hy,"isAxiosError",{value:!0});he.from=(n,a,i,r,o,c)=>{const d=Object.create(Hy);k.toFlatObject(n,d,function(y){return y!==Error.prototype},m=>m!=="isAxiosError");const p=n&&n.message?n.message:"Error",g=a==null&&n?n.code:a;return he.call(d,p,g,i,r,o),n&&d.cause==null&&Object.defineProperty(d,"cause",{value:n,configurable:!0}),d.name=n&&n.name||"Error",c&&Object.assign(d,c),d};const Aw=null;function gf(n){return k.isPlainObject(n)||k.isArray(n)}function Py(n){return k.endsWith(n,"[]")?n.slice(0,-2):n}function qp(n,a,i){return n?n.concat(a).map(function(o,c){return o=Py(o),!i&&c?"["+o+"]":o}).join(i?".":""):a}function Cw(n){return k.isArray(n)&&!n.some(gf)}const Rw=k.toFlatObject(k,{},null,function(a){return/^is[A-Z]/.test(a)});function po(n,a,i){if(!k.isObject(n))throw new TypeError("target must be an object");a=a||new FormData,i=k.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,T){return!k.isUndefined(T[A])});const r=i.metaTokens,o=i.visitor||y,c=i.dots,d=i.indexes,g=(i.Blob||typeof Blob!="undefined"&&Blob)&&k.isSpecCompliantForm(a);if(!k.isFunction(o))throw new TypeError("visitor must be a function");function m(N){if(N===null)return"";if(k.isDate(N))return N.toISOString();if(k.isBoolean(N))return N.toString();if(!g&&k.isBlob(N))throw new he("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(N)||k.isTypedArray(N)?g&&typeof Blob=="function"?new Blob([N]):Buffer.from(N):N}function y(N,A,T){let O=N;if(N&&!T&&typeof N=="object"){if(k.endsWith(A,"{}"))A=r?A:A.slice(0,-2),N=JSON.stringify(N);else if(k.isArray(N)&&Cw(N)||(k.isFileList(N)||k.endsWith(A,"[]"))&&(O=k.toArray(N)))return A=Py(A),O.forEach(function(M,K){!(k.isUndefined(M)||M===null)&&a.append(d===!0?qp([A],K,c):d===null?A:A+"[]",m(M))}),!1}return gf(N)?!0:(a.append(qp(T,A,c),m(N)),!1)}const v=[],b=Object.assign(Rw,{defaultVisitor:y,convertValue:m,isVisitable:gf});function j(N,A){if(!k.isUndefined(N)){if(v.indexOf(N)!==-1)throw Error("Circular reference detected in "+A.join("."));v.push(N),k.forEach(N,function(O,z){(!(k.isUndefined(O)||O===null)&&o.call(a,O,k.isString(z)?z.trim():z,A,b))===!0&&j(O,A?A.concat(z):[z])}),v.pop()}}if(!k.isObject(n))throw new TypeError("data must be an object");return j(n),a}function Pp(n){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function Zf(n,a){this._pairs=[],n&&po(n,this,a)}const Yy=Zf.prototype;Yy.append=function(a,i){this._pairs.push([a,i])};Yy.toString=function(a){const i=a?function(r){return a.call(this,r,Pp)}:Pp;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function Dw(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Gy(n,a,i){if(!a)return n;const r=i&&i.encode||Dw;k.isFunction(i)&&(i={serialize:i});const o=i&&i.serialize;let c;if(o?c=o(a,i):c=k.isURLSearchParams(a)?a.toString():new Zf(a,i).toString(r),c){const d=n.indexOf("#");d!==-1&&(n=n.slice(0,d)),n+=(n.indexOf("?")===-1?"?":"&")+c}return n}class Yp{constructor(){this.handlers=[]}use(a,i,r){return this.handlers.push({fulfilled:a,rejected:i,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){k.forEach(this.handlers,function(r){r!==null&&a(r)})}}const Xy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mw=typeof URLSearchParams!="undefined"?URLSearchParams:Zf,Ow=typeof FormData!="undefined"?FormData:null,Lw=typeof Blob!="undefined"?Blob:null,zw={isBrowser:!0,classes:{URLSearchParams:Mw,FormData:Ow,Blob:Lw},protocols:["http","https","file","blob","url","data"]},Qf=typeof window!="undefined"&&typeof document!="undefined",yf=typeof navigator=="object"&&navigator||void 0,Bw=Qf&&(!yf||["ReactNative","NativeScript","NS"].indexOf(yf.product)<0),Uw=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vw=Qf&&window.location.href||"http://localhost",_w=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Qf,hasStandardBrowserEnv:Bw,hasStandardBrowserWebWorkerEnv:Uw,navigator:yf,origin:Vw},Symbol.toStringTag,{value:"Module"})),gt=X(X({},_w),zw);function kw(n,a){return po(n,new gt.classes.URLSearchParams,X({visitor:function(i,r,o,c){return gt.isNode&&k.isBuffer(i)?(this.append(r,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},a))}function Hw(n){return k.matchAll(/\w+|\[(\w*)]/g,n).map(a=>a[0]==="[]"?"":a[1]||a[0])}function qw(n){const a={},i=Object.keys(n);let r;const o=i.length;let c;for(r=0;r<o;r++)c=i[r],a[c]=n[c];return a}function Ky(n){function a(i,r,o,c){let d=i[c++];if(d==="__proto__")return!0;const p=Number.isFinite(+d),g=c>=i.length;return d=!d&&k.isArray(o)?o.length:d,g?(k.hasOwnProp(o,d)?o[d]=[o[d],r]:o[d]=r,!p):((!o[d]||!k.isObject(o[d]))&&(o[d]=[]),a(i,r,o[d],c)&&k.isArray(o[d])&&(o[d]=qw(o[d])),!p)}if(k.isFormData(n)&&k.isFunction(n.entries)){const i={};return k.forEachEntry(n,(r,o)=>{a(Hw(r),o,i,0)}),i}return null}function Pw(n,a,i){if(k.isString(n))try{return(a||JSON.parse)(n),k.trim(n)}catch(r){if(r.name!=="SyntaxError")throw r}return(i||JSON.stringify)(n)}const bl={transitional:Xy,adapter:["xhr","http","fetch"],transformRequest:[function(a,i){const r=i.getContentType()||"",o=r.indexOf("application/json")>-1,c=k.isObject(a);if(c&&k.isHTMLForm(a)&&(a=new FormData(a)),k.isFormData(a))return o?JSON.stringify(Ky(a)):a;if(k.isArrayBuffer(a)||k.isBuffer(a)||k.isStream(a)||k.isFile(a)||k.isBlob(a)||k.isReadableStream(a))return a;if(k.isArrayBufferView(a))return a.buffer;if(k.isURLSearchParams(a))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let p;if(c){if(r.indexOf("application/x-www-form-urlencoded")>-1)return kw(a,this.formSerializer).toString();if((p=k.isFileList(a))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return po(p?{"files[]":a}:a,g&&new g,this.formSerializer)}}return c||o?(i.setContentType("application/json",!1),Pw(a)):a}],transformResponse:[function(a){const i=this.transitional||bl.transitional,r=i&&i.forcedJSONParsing,o=this.responseType==="json";if(k.isResponse(a)||k.isReadableStream(a))return a;if(a&&k.isString(a)&&(r&&!this.responseType||o)){const d=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(a,this.parseReviver)}catch(p){if(d)throw p.name==="SyntaxError"?he.from(p,he.ERR_BAD_RESPONSE,this,null,this.response):p}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],n=>{bl.headers[n]={}});const Yw=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gw=n=>{const a={};let i,r,o;return n&&n.split(`
61
+ `).forEach(function(d){o=d.indexOf(":"),i=d.substring(0,o).trim().toLowerCase(),r=d.substring(o+1).trim(),!(!i||a[i]&&Yw[i])&&(i==="set-cookie"?a[i]?a[i].push(r):a[i]=[r]:a[i]=a[i]?a[i]+", "+r:r)}),a},Gp=Symbol("internals");function Wi(n){return n&&String(n).trim().toLowerCase()}function Qr(n){return n===!1||n==null?n:k.isArray(n)?n.map(Qr):String(n)}function Xw(n){const a=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=i.exec(n);)a[r[1]]=r[2];return a}const Kw=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Kc(n,a,i,r,o){if(k.isFunction(r))return r.call(this,a,i);if(o&&(a=i),!!k.isString(a)){if(k.isString(r))return a.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(a)}}function Fw(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,i,r)=>i.toUpperCase()+r)}function Zw(n,a){const i=k.toCamelCase(" "+a);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+i,{value:function(o,c,d){return this[r].call(this,a,o,c,d)},configurable:!0})})}let Dt=class{constructor(a){a&&this.set(a)}set(a,i,r){const o=this;function c(p,g,m){const y=Wi(g);if(!y)throw new Error("header name must be a non-empty string");const v=k.findKey(o,y);(!v||o[v]===void 0||m===!0||m===void 0&&o[v]!==!1)&&(o[v||g]=Qr(p))}const d=(p,g)=>k.forEach(p,(m,y)=>c(m,y,g));if(k.isPlainObject(a)||a instanceof this.constructor)d(a,i);else if(k.isString(a)&&(a=a.trim())&&!Kw(a))d(Gw(a),i);else if(k.isObject(a)&&k.isIterable(a)){let p={},g,m;for(const y of a){if(!k.isArray(y))throw TypeError("Object iterator must return a key-value pair");p[m=y[0]]=(g=p[m])?k.isArray(g)?[...g,y[1]]:[g,y[1]]:y[1]}d(p,i)}else a!=null&&c(i,a,r);return this}get(a,i){if(a=Wi(a),a){const r=k.findKey(this,a);if(r){const o=this[r];if(!i)return o;if(i===!0)return Xw(o);if(k.isFunction(i))return i.call(this,o,r);if(k.isRegExp(i))return i.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,i){if(a=Wi(a),a){const r=k.findKey(this,a);return!!(r&&this[r]!==void 0&&(!i||Kc(this,this[r],r,i)))}return!1}delete(a,i){const r=this;let o=!1;function c(d){if(d=Wi(d),d){const p=k.findKey(r,d);p&&(!i||Kc(r,r[p],p,i))&&(delete r[p],o=!0)}}return k.isArray(a)?a.forEach(c):c(a),o}clear(a){const i=Object.keys(this);let r=i.length,o=!1;for(;r--;){const c=i[r];(!a||Kc(this,this[c],c,a,!0))&&(delete this[c],o=!0)}return o}normalize(a){const i=this,r={};return k.forEach(this,(o,c)=>{const d=k.findKey(r,c);if(d){i[d]=Qr(o),delete i[c];return}const p=a?Fw(c):String(c).trim();p!==c&&delete i[c],i[p]=Qr(o),r[p]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const i=Object.create(null);return k.forEach(this,(r,o)=>{r!=null&&r!==!1&&(i[o]=a&&k.isArray(r)?r.join(", "):r)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,i])=>a+": "+i).join(`
62
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...i){const r=new this(a);return i.forEach(o=>r.set(o)),r}static accessor(a){const r=(this[Gp]=this[Gp]={accessors:{}}).accessors,o=this.prototype;function c(d){const p=Wi(d);r[p]||(Zw(o,d),r[p]=!0)}return k.isArray(a)?a.forEach(c):c(a),this}};Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(Dt.prototype,({value:n},a)=>{let i=a[0].toUpperCase()+a.slice(1);return{get:()=>n,set(r){this[i]=r}}});k.freezeMethods(Dt);function Fc(n,a){const i=this||bl,r=a||i,o=Dt.from(r.headers);let c=r.data;return k.forEach(n,function(p){c=p.call(i,c,o.normalize(),a?a.status:void 0)}),o.normalize(),c}function Fy(n){return!!(n&&n.__CANCEL__)}function Xs(n,a,i){he.call(this,n==null?"canceled":n,he.ERR_CANCELED,a,i),this.name="CanceledError"}k.inherits(Xs,he,{__CANCEL__:!0});function Zy(n,a,i){const r=i.config.validateStatus;!i.status||!r||r(i.status)?n(i):a(new he("Request failed with status code "+i.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Qw(n){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return a&&a[1]||""}function $w(n,a){n=n||10;const i=new Array(n),r=new Array(n);let o=0,c=0,d;return a=a!==void 0?a:1e3,function(g){const m=Date.now(),y=r[c];d||(d=m),i[o]=g,r[o]=m;let v=c,b=0;for(;v!==o;)b+=i[v++],v=v%n;if(o=(o+1)%n,o===c&&(c=(c+1)%n),m-d<a)return;const j=y&&m-y;return j?Math.round(b*1e3/j):void 0}}function Jw(n,a){let i=0,r=1e3/a,o,c;const d=(m,y=Date.now())=>{i=y,o=null,c&&(clearTimeout(c),c=null),n(...m)};return[(...m)=>{const y=Date.now(),v=y-i;v>=r?d(m,y):(o=m,c||(c=setTimeout(()=>{c=null,d(o)},r-v)))},()=>o&&d(o)]}const ao=(n,a,i=3)=>{let r=0;const o=$w(50,250);return Jw(c=>{const d=c.loaded,p=c.lengthComputable?c.total:void 0,g=d-r,m=o(g),y=d<=p;r=d;const v={loaded:d,total:p,progress:p?d/p:void 0,bytes:g,rate:m||void 0,estimated:m&&p&&y?(p-d)/m:void 0,event:c,lengthComputable:p!=null,[a?"download":"upload"]:!0};n(v)},i)},Xp=(n,a)=>{const i=n!=null;return[r=>a[0]({lengthComputable:i,total:n,loaded:r}),a[1]]},Kp=n=>(...a)=>k.asap(()=>n(...a)),Ww=gt.hasStandardBrowserEnv?((n,a)=>i=>(i=new URL(i,gt.origin),n.protocol===i.protocol&&n.host===i.host&&(a||n.port===i.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,Iw=gt.hasStandardBrowserEnv?{write(n,a,i,r,o,c){const d=[n+"="+encodeURIComponent(a)];k.isNumber(i)&&d.push("expires="+new Date(i).toGMTString()),k.isString(r)&&d.push("path="+r),k.isString(o)&&d.push("domain="+o),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read(n){const a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(n){this.write(n,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ej(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function tj(n,a){return a?n.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):n}function Qy(n,a,i){let r=!ej(a);return n&&(r||i==!1)?tj(n,a):a}const Fp=n=>n instanceof Dt?X({},n):n;function Pa(n,a){a=a||{};const i={};function r(m,y,v,b){return k.isPlainObject(m)&&k.isPlainObject(y)?k.merge.call({caseless:b},m,y):k.isPlainObject(y)?k.merge({},y):k.isArray(y)?y.slice():y}function o(m,y,v,b){if(k.isUndefined(y)){if(!k.isUndefined(m))return r(void 0,m,v,b)}else return r(m,y,v,b)}function c(m,y){if(!k.isUndefined(y))return r(void 0,y)}function d(m,y){if(k.isUndefined(y)){if(!k.isUndefined(m))return r(void 0,m)}else return r(void 0,y)}function p(m,y,v){if(v in a)return r(m,y);if(v in n)return r(void 0,m)}const g={url:c,method:c,data:c,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:p,headers:(m,y,v)=>o(Fp(m),Fp(y),v,!0)};return k.forEach(Object.keys(X(X({},n),a)),function(y){const v=g[y]||o,b=v(n[y],a[y],y);k.isUndefined(b)&&v!==p||(i[y]=b)}),i}const $y=n=>{const a=Pa({},n);let{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:c,headers:d,auth:p}=a;if(a.headers=d=Dt.from(d),a.url=Gy(Qy(a.baseURL,a.url,a.allowAbsoluteUrls),n.params,n.paramsSerializer),p&&d.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):""))),k.isFormData(i)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(k.isFunction(i.getHeaders)){const g=i.getHeaders(),m=["content-type","content-length"];Object.entries(g).forEach(([y,v])=>{m.includes(y.toLowerCase())&&d.set(y,v)})}}if(gt.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(a)),r||r!==!1&&Ww(a.url))){const g=o&&c&&Iw.read(c);g&&d.set(o,g)}return a},nj=typeof XMLHttpRequest!="undefined",aj=nj&&function(n){return new Promise(function(i,r){const o=$y(n);let c=o.data;const d=Dt.from(o.headers).normalize();let{responseType:p,onUploadProgress:g,onDownloadProgress:m}=o,y,v,b,j,N;function A(){j&&j(),N&&N(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let T=new XMLHttpRequest;T.open(o.method.toUpperCase(),o.url,!0),T.timeout=o.timeout;function O(){if(!T)return;const M=Dt.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),U={data:!p||p==="text"||p==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:M,config:n,request:T};Zy(function(Q){i(Q),A()},function(Q){r(Q),A()},U),T=null}"onloadend"in T?T.onloadend=O:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(O)},T.onabort=function(){T&&(r(new he("Request aborted",he.ECONNABORTED,n,T)),T=null)},T.onerror=function(K){const U=K&&K.message?K.message:"Network Error",Z=new he(U,he.ERR_NETWORK,n,T);Z.event=K||null,r(Z),T=null},T.ontimeout=function(){let K=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const U=o.transitional||Xy;o.timeoutErrorMessage&&(K=o.timeoutErrorMessage),r(new he(K,U.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,n,T)),T=null},c===void 0&&d.setContentType(null),"setRequestHeader"in T&&k.forEach(d.toJSON(),function(K,U){T.setRequestHeader(U,K)}),k.isUndefined(o.withCredentials)||(T.withCredentials=!!o.withCredentials),p&&p!=="json"&&(T.responseType=o.responseType),m&&([b,N]=ao(m,!0),T.addEventListener("progress",b)),g&&T.upload&&([v,j]=ao(g),T.upload.addEventListener("progress",v),T.upload.addEventListener("loadend",j)),(o.cancelToken||o.signal)&&(y=M=>{T&&(r(!M||M.type?new Xs(null,n,T):M),T.abort(),T=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const z=Qw(o.url);if(z&&gt.protocols.indexOf(z)===-1){r(new he("Unsupported protocol "+z+":",he.ERR_BAD_REQUEST,n));return}T.send(c||null)})},sj=(n,a)=>{const{length:i}=n=n?n.filter(Boolean):[];if(a||i){let r=new AbortController,o;const c=function(m){if(!o){o=!0,p();const y=m instanceof Error?m:this.reason;r.abort(y instanceof he?y:new Xs(y instanceof Error?y.message:y))}};let d=a&&setTimeout(()=>{d=null,c(new he(`timeout ${a} of ms exceeded`,he.ETIMEDOUT))},a);const p=()=>{n&&(d&&clearTimeout(d),d=null,n.forEach(m=>{m.unsubscribe?m.unsubscribe(c):m.removeEventListener("abort",c)}),n=null)};n.forEach(m=>m.addEventListener("abort",c));const{signal:g}=r;return g.unsubscribe=()=>k.asap(p),g}},ij=function*(n,a){let i=n.byteLength;if(i<a){yield n;return}let r=0,o;for(;r<i;)o=r+a,yield n.slice(r,o),r=o},lj=function(n,a){return Uc(this,null,function*(){try{for(var i=wp(rj(n)),r,o,c;r=!(o=yield new La(i.next())).done;r=!1){const d=o.value;yield*Vc(ij(d,a))}}catch(o){c=[o]}finally{try{r&&(o=i.return)&&(yield new La(o.call(i)))}finally{if(c)throw c[0]}}})},rj=function(n){return Uc(this,null,function*(){if(n[Symbol.asyncIterator]){yield*Vc(n);return}const a=n.getReader();try{for(;;){const{done:i,value:r}=yield new La(a.read());if(i)break;yield r}}finally{yield new La(a.cancel())}})},Zp=(n,a,i,r)=>{const o=lj(n,a);let c=0,d,p=m=>{d||(d=!0,r&&r(m))};return new ReadableStream({pull(m){return Re(this,null,function*(){try{const{done:y,value:v}=yield o.next();if(y){p(),m.close();return}let b=v.byteLength;if(i){let j=c+=b;i(j)}m.enqueue(new Uint8Array(v))}catch(y){throw p(y),y}})},cancel(m){return p(m),o.return()}},{highWaterMark:2})},Qp=64*1024,{isFunction:qr}=k,Jy=(({fetch:n,Request:a,Response:i})=>({fetch:n,Request:a,Response:i}))(k.global),{ReadableStream:$p,TextEncoder:Jp}=k.global,Wp=(n,...a)=>{try{return!!n(...a)}catch(i){return!1}},oj=n=>{const{fetch:a,Request:i,Response:r}=Object.assign({},Jy,n),o=qr(a),c=qr(i),d=qr(r);if(!o)return!1;const p=o&&qr($p),g=o&&(typeof Jp=="function"?(N=>A=>N.encode(A))(new Jp):N=>Re(null,null,function*(){return new Uint8Array(yield new i(N).arrayBuffer())})),m=c&&p&&Wp(()=>{let N=!1;const A=new i(gt.origin,{body:new $p,method:"POST",get duplex(){return N=!0,"half"}}).headers.has("Content-Type");return N&&!A}),y=d&&p&&Wp(()=>k.isReadableStream(new r("").body)),v={stream:y&&(N=>N.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(N=>{!v[N]&&(v[N]=(A,T)=>{let O=A&&A[N];if(O)return O.call(A);throw new he(`Response type '${N}' is not supported`,he.ERR_NOT_SUPPORT,T)})});const b=N=>Re(null,null,function*(){if(N==null)return 0;if(k.isBlob(N))return N.size;if(k.isSpecCompliantForm(N))return(yield new i(gt.origin,{method:"POST",body:N}).arrayBuffer()).byteLength;if(k.isArrayBufferView(N)||k.isArrayBuffer(N))return N.byteLength;if(k.isURLSearchParams(N)&&(N=N+""),k.isString(N))return(yield g(N)).byteLength}),j=(N,A)=>Re(null,null,function*(){const T=k.toFiniteNumber(N.getContentLength());return T==null?b(A):T});return N=>Re(null,null,function*(){let{url:A,method:T,data:O,signal:z,cancelToken:M,timeout:K,onDownloadProgress:U,onUploadProgress:Z,responseType:Q,headers:W,withCredentials:fe="same-origin",fetchOptions:xe}=$y(N);Q=Q?(Q+"").toLowerCase():"text";let de=sj([z,M&&M.toAbortSignal()],K),ue=null;const Ae=de&&de.unsubscribe&&(()=>{de.unsubscribe()});let He;try{if(Z&&m&&T!=="get"&&T!=="head"&&(He=yield j(W,O))!==0){let C=new i(A,{method:"POST",body:O,duplex:"half"}),P;if(k.isFormData(O)&&(P=C.headers.get("content-type"))&&W.setContentType(P),C.body){const[J,$]=Xp(He,ao(Kp(Z)));O=Zp(C.body,Qp,J,$)}}k.isString(fe)||(fe=fe?"include":"omit");const ve=c&&"credentials"in i.prototype,H=le(X({},xe),{signal:de,method:T.toUpperCase(),headers:W.normalize().toJSON(),body:O,duplex:"half",credentials:ve?fe:void 0});ue=c&&new i(A,H);let F=yield c?a(ue,xe):a(A,H);const ee=y&&(Q==="stream"||Q==="response");if(y&&(U||ee&&Ae)){const C={};["status","statusText","headers"].forEach(ne=>{C[ne]=F[ne]});const P=k.toFiniteNumber(F.headers.get("content-length")),[J,$]=U&&Xp(P,ao(Kp(U),!0))||[];F=new r(Zp(F.body,Qp,J,()=>{$&&$(),Ae&&Ae()}),C)}Q=Q||"text";let ge=yield v[k.findKey(v,Q)||"text"](F,N);return!ee&&Ae&&Ae(),yield new Promise((C,P)=>{Zy(C,P,{data:ge,headers:Dt.from(F.headers),status:F.status,statusText:F.statusText,config:N,request:ue})})}catch(ve){throw Ae&&Ae(),ve&&ve.name==="TypeError"&&/Load failed|fetch/i.test(ve.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,N,ue),{cause:ve.cause||ve}):he.from(ve,ve&&ve.code,N,ue)}})},uj=new Map,Wy=n=>{let a=k.merge.call({skipUndefined:!0},Jy,n?n.env:null);const{fetch:i,Request:r,Response:o}=a,c=[r,o,i];let d=c.length,p=d,g,m,y=uj;for(;p--;)g=c[p],m=y.get(g),m===void 0&&y.set(g,m=p?new Map:oj(a)),y=m;return m};Wy();const xf={http:Aw,xhr:aj,fetch:{get:Wy}};k.forEach(xf,(n,a)=>{if(n){try{Object.defineProperty(n,"name",{value:a})}catch(i){}Object.defineProperty(n,"adapterName",{value:a})}});const Ip=n=>`- ${n}`,cj=n=>k.isFunction(n)||n===null||n===!1,Iy={getAdapter:(n,a)=>{n=k.isArray(n)?n:[n];const{length:i}=n;let r,o;const c={};for(let d=0;d<i;d++){r=n[d];let p;if(o=r,!cj(r)&&(o=xf[(p=String(r)).toLowerCase()],o===void 0))throw new he(`Unknown adapter '${p}'`);if(o&&(k.isFunction(o)||(o=o.get(a))))break;c[p||"#"+d]=o}if(!o){const d=Object.entries(c).map(([g,m])=>`adapter ${g} `+(m===!1?"is not supported by the environment":"is not available in the build"));let p=i?d.length>1?`since :
63
+ `+d.map(Ip).join(`
64
+ `):" "+Ip(d[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return o},adapters:xf};function Zc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Xs(null,n)}function eg(n){return Zc(n),n.headers=Dt.from(n.headers),n.data=Fc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Iy.getAdapter(n.adapter||bl.adapter,n)(n).then(function(r){return Zc(n),r.data=Fc.call(n,n.transformResponse,r),r.headers=Dt.from(r.headers),r},function(r){return Fy(r)||(Zc(n),r&&r.response&&(r.response.data=Fc.call(n,n.transformResponse,r.response),r.response.headers=Dt.from(r.response.headers))),Promise.reject(r)})}const ex="1.12.0",go={};["object","boolean","number","function","string","symbol"].forEach((n,a)=>{go[n]=function(r){return typeof r===n||"a"+(a<1?"n ":" ")+n}});const tg={};go.transitional=function(a,i,r){function o(c,d){return"[Axios v"+ex+"] Transitional option '"+c+"'"+d+(r?". "+r:"")}return(c,d,p)=>{if(a===!1)throw new he(o(d," has been removed"+(i?" in "+i:"")),he.ERR_DEPRECATED);return i&&!tg[d]&&(tg[d]=!0,console.warn(o(d," has been deprecated since v"+i+" and will be removed in the near future"))),a?a(c,d,p):!0}};go.spelling=function(a){return(i,r)=>(console.warn(`${r} is likely a misspelling of ${a}`),!0)};function fj(n,a,i){if(typeof n!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let o=r.length;for(;o-- >0;){const c=r[o],d=a[c];if(d){const p=n[c],g=p===void 0||d(p,c,n);if(g!==!0)throw new he("option "+c+" must be "+g,he.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new he("Unknown option "+c,he.ERR_BAD_OPTION)}}const $r={assertOptions:fj,validators:go},hn=$r.validators;let ka=class{constructor(a){this.defaults=a||{},this.interceptors={request:new Yp,response:new Yp}}request(a,i){return Re(this,null,function*(){try{return yield this._request(a,i)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const c=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?c&&!String(r.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(r.stack+=`
65
+ `+c):r.stack=c}catch(d){}}throw r}})}_request(a,i){typeof a=="string"?(i=i||{},i.url=a):i=a||{},i=Pa(this.defaults,i);const{transitional:r,paramsSerializer:o,headers:c}=i;r!==void 0&&$r.assertOptions(r,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean)},!1),o!=null&&(k.isFunction(o)?i.paramsSerializer={serialize:o}:$r.assertOptions(o,{encode:hn.function,serialize:hn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),$r.assertOptions(i,{baseUrl:hn.spelling("baseURL"),withXsrfToken:hn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let d=c&&k.merge(c.common,c[i.method]);c&&k.forEach(["delete","get","head","post","put","patch","common"],N=>{delete c[N]}),i.headers=Dt.concat(d,c);const p=[];let g=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(i)===!1||(g=g&&A.synchronous,p.unshift(A.fulfilled,A.rejected))});const m=[];this.interceptors.response.forEach(function(A){m.push(A.fulfilled,A.rejected)});let y,v=0,b;if(!g){const N=[eg.bind(this),void 0];for(N.unshift(...p),N.push(...m),b=N.length,y=Promise.resolve(i);v<b;)y=y.then(N[v++],N[v++]);return y}b=p.length;let j=i;for(v=0;v<b;){const N=p[v++],A=p[v++];try{j=N(j)}catch(T){A.call(this,T);break}}try{y=eg.call(this,j)}catch(N){return Promise.reject(N)}for(v=0,b=m.length;v<b;)y=y.then(m[v++],m[v++]);return y}getUri(a){a=Pa(this.defaults,a);const i=Qy(a.baseURL,a.url,a.allowAbsoluteUrls);return Gy(i,a.params,a.paramsSerializer)}};k.forEach(["delete","get","head","options"],function(a){ka.prototype[a]=function(i,r){return this.request(Pa(r||{},{method:a,url:i,data:(r||{}).data}))}});k.forEach(["post","put","patch"],function(a){function i(r){return function(c,d,p){return this.request(Pa(p||{},{method:a,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:d}))}}ka.prototype[a]=i(),ka.prototype[a+"Form"]=i(!0)});let dj=class tx{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(c){i=c});const r=this;this.promise.then(o=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](o);r._listeners=null}),this.promise.then=o=>{let c;const d=new Promise(p=>{r.subscribe(p),c=p}).then(o);return d.cancel=function(){r.unsubscribe(c)},d},a(function(c,d,p){r.reason||(r.reason=new Xs(c,d,p),i(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const i=this._listeners.indexOf(a);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const a=new AbortController,i=r=>{a.abort(r)};return this.subscribe(i),a.signal.unsubscribe=()=>this.unsubscribe(i),a.signal}static source(){let a;return{token:new tx(function(o){a=o}),cancel:a}}};function hj(n){return function(i){return n.apply(null,i)}}function mj(n){return k.isObject(n)&&n.isAxiosError===!0}const vf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vf).forEach(([n,a])=>{vf[a]=n});function nx(n){const a=new ka(n),i=Oy(ka.prototype.request,a);return k.extend(i,ka.prototype,a,{allOwnKeys:!0}),k.extend(i,a,null,{allOwnKeys:!0}),i.create=function(o){return nx(Pa(n,o))},i}const pe=nx(bl);pe.Axios=ka;pe.CanceledError=Xs;pe.CancelToken=dj;pe.isCancel=Fy;pe.VERSION=ex;pe.toFormData=po;pe.AxiosError=he;pe.Cancel=pe.CanceledError;pe.all=function(a){return Promise.all(a)};pe.spread=hj;pe.isAxiosError=mj;pe.mergeConfig=Pa;pe.AxiosHeaders=Dt;pe.formToJSON=n=>Ky(k.isHTMLForm(n)?new FormData(n):n);pe.getAdapter=Iy.getAdapter;pe.HttpStatusCode=vf;pe.default=pe;const{Axios:U3,AxiosError:V3,CanceledError:_3,isCancel:k3,CancelToken:H3,VERSION:q3,all:P3,Cancel:Y3,isAxiosError:G3,spread:X3,toFormData:K3,AxiosHeaders:F3,HttpStatusCode:Z3,formToJSON:Q3,getAdapter:$3,mergeConfig:J3}=pe,We=window.location.origin,pj=()=>{const[n,a]=w.useState(!1),{Rootname:i}=no(o=>o),{setRootname:r}=no(o=>o);return w.useEffect(()=>{pe.get(`${We}/api/db/databases`).then(o=>{var c;o.status===200&&r((c=o.data.data.RootName)!=null?c:"AxioDB")})},[]),f.jsx("header",{className:"bg-gradient-to-r from-blue-700 to-indigo-800 shadow-lg",children:f.jsx("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:f.jsx("div",{className:"flex items-center justify-between h-16",children:f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsxs(ca,{to:"/",className:"flex items-center",children:[f.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-9 w-9"}),f.jsxs("span",{className:"ml-2 text-white font-bold text-xl tracking-tight",children:[i," Admin Hub"]})]})}),f.jsx("div",{className:"hidden md:block ml-10",children:f.jsxs("div",{className:"flex space-x-4",children:[f.jsx(ca,{to:"/",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Dashboard"}),f.jsx(ca,{to:"/operations",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Operations"}),f.jsx(ca,{to:"/import",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Import DB"}),f.jsx(ca,{to:"/support",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Support"}),f.jsx(ca,{to:"/status",className:"text-blue-100 hover:bg-blue-600 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors",children:"Status"})]})})]})})})})};function gj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"}))}const yj=w.forwardRef(gj);function xj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"}))}const vj=w.forwardRef(xj);function bj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"}))}const ax=w.forwardRef(bj);function Sj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))}const wj=w.forwardRef(Sj);function jj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"}))}const Nj=w.forwardRef(jj);function Tj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01"}))}const Ej=w.forwardRef(Tj);function Aj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"}))}const Cj=w.forwardRef(Aj);function Rj(n,a){return w.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},n),w.createElement("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}const Dj=w.forwardRef(Rj),Mj=({treeDB:n})=>{const[a,i]=w.useState(!0),[r,o]=w.useState({}),[c,d]=w.useState([]),p=m=>{o(y=>le(X({},y),{[m]:!y[m]}))};w.useEffect(()=>{const m=()=>{if(!n||!Array.isArray(n)){d([]),i(!1);return}const y=n.map((v,b)=>{const j=`db${b+1}`;return{id:j,name:v.name,type:"database",children:Array.isArray(v.collections)?v.collections.map((N,A)=>({id:`${j}_col${A+1}`,name:N.name||N,type:"collection",documentCount:N.documentCount||0,size:"0 MB"})):[]}});y.length>0&&o({[y[0].id]:!0}),d(y),i(!1)};setTimeout(()=>{m()},500)},[n]);const g=m=>{const y=r[m.id];return f.jsxs("div",{children:[f.jsxs("div",{className:`flex items-center py-2 px-3 ${m.type==="database"?"bg-blue-50 hover:bg-blue-100 border-b border-blue-100":"hover:bg-gray-50 pl-10"} cursor-pointer transition-colors`,onClick:()=>m.children&&p(m.id),children:[m.children?f.jsx("div",{className:"mr-1",children:y?f.jsx(Cj,{className:"h-4 w-4 text-gray-500"}):f.jsx(Dj,{className:"h-4 w-4 text-gray-500"})}):f.jsx("div",{className:"w-4 mr-1"}),m.type==="database"?f.jsx(ax,{className:"h-5 w-5 text-blue-600 mr-2"}):f.jsx(Nj,{className:"h-5 w-5 text-yellow-600 mr-2"}),f.jsx("div",{className:"flex-grow",children:f.jsx("span",{className:"font-medium",children:m.name})}),m.type==="collection"&&f.jsx("div",{className:"text-xs text-gray-500",children:f.jsxs("span",{className:"mr-2",children:[m.documentCount," docs"]})})]}),m.children&&y&&f.jsx("div",{className:"border-l border-gray-200 ml-5",children:m.children.map(g)})]},m.id)};return f.jsxs("div",{className:"bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow",children:[f.jsxs("div",{className:"border-b border-gray-200 py-4 px-6",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Database Structure"}),f.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Overview of databases and collections"})]}),f.jsx("div",{className:"overflow-y-auto",style:{maxHeight:"400px"},children:a?f.jsx("div",{className:"p-6 space-y-3",children:[1,2,3].map(m=>f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-2"}),f.jsxs("div",{className:"pl-6 space-y-2",children:[f.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),f.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),f.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"})]})]},m))}):f.jsx("div",{children:c.map(g)})})]})},Oj=({CacheStorageInfo:n})=>{const[a,i]=w.useState(!0);w.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},800)})()},[]);const r=n.Storage/n.Max*100;return f.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[f.jsxs("div",{className:"flex justify-between mb-3",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"In-Memory Cache"}),a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):f.jsxs("p",{className:"text-3xl font-bold text-orange-600 mt-2",children:[n.Storage," ",f.jsx("span",{className:"text-lg",children:n.Unit})]}),f.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n.Max," ",n.Unit," allocated"]})]}),f.jsx("div",{className:"p-3 bg-orange-100 rounded-full",children:f.jsx(yj,{className:"h-8 w-8 text-orange-600"})})]}),f.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:f.jsx("div",{className:"bg-orange-600 h-2.5 rounded-full",style:{width:`${a?0:r}%`}})})]})},Lj=({storageInfo:n})=>{const[a,i]=w.useState(!0);w.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},800)})()},[]);const r=(n==null?void 0:n.total)/(n==null?void 0:n.machine)*100;return f.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[f.jsxs("div",{className:"flex justify-between mb-3",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Storage Used"}),a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):f.jsxs("p",{className:"text-3xl font-bold text-green-600 mt-2",children:[n==null?void 0:n.total," ",f.jsx("span",{className:"text-lg",children:n==null?void 0:n.matrixUnit})]}),f.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n==null?void 0:n.machine," ",n==null?void 0:n.matrixUnit," available"]})]}),f.jsx("div",{className:"p-3 bg-green-100 rounded-full",children:f.jsx(Ej,{className:"h-8 w-8 text-green-600"})})]}),f.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:f.jsx("div",{className:"bg-green-600 h-2.5 rounded-full",style:{width:`${a?0:r}%`}})})]})},zj=({totalCollections:n})=>{const[a,i]=w.useState(!0);return w.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},600)})()},[]),f.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:f.jsxs("div",{className:"flex justify-between",children:[f.jsx("div",{children:a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16"}):f.jsxs("p",{className:"text-2xl font-bold text-indigo-600 mt-2",children:[n," ",n<=1?"Collection":"Collections"]})}),f.jsx("div",{className:"p-3 bg-indigo-100 rounded-full",children:f.jsx(vj,{className:"h-8 w-8 text-indigo-600"})})]})})},Bj=({totalDatabases:n})=>{const[a,i]=w.useState(!0);return w.useEffect(()=>{setTimeout(()=>{i(!1)},1e3)},[]),f.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:f.jsxs("div",{className:"flex justify-between",children:[f.jsx("div",{children:a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16 text-center"}):f.jsx("p",{className:"text-2xl font-bold text-blue-600 mt-2 text-center",children:n<=1?`${n} Database`:`${n} Databases`})}),f.jsx("div",{className:"p-3 bg-blue-100 rounded-full",children:f.jsx(ax,{className:"h-8 w-8 text-blue-600"})})]})})},Uj=({totalDocuments:n})=>{const[a,i]=w.useState(!0);return w.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},700)})()},[]),f.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:f.jsxs("div",{className:"flex justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Total Documents"}),a?f.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-20"}):f.jsx("p",{className:"text-3xl font-bold text-purple-600 mt-2",children:n}),f.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Across all collections"})]}),f.jsx("div",{className:"p-3 bg-purple-100 rounded-full",children:f.jsx(wj,{className:"h-8 w-8 text-purple-600"})})]})})},Vj=()=>{const[n,a]=w.useState(!0),[i,r]=w.useState(null);return w.useEffect(()=>{pe.get(`${We}/api/dashboard-stats`).then(o=>{o.status===200&&(r(o.data.data),a(!1))})},[]),f.jsxs("div",{className:"container mx-auto px-4 py-6",children:[f.jsx("div",{className:"mb-6",children:f.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Dashboard"})}),n?f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[1,2,3,4,5].map(o=>f.jsx("div",{className:"h-32 bg-gray-200 rounded-lg animate-pulse"},o))}):f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[f.jsx(Bj,{totalDatabases:(i==null?void 0:i.totalDatabases)||0}),f.jsx(zj,{totalCollections:(i==null?void 0:i.totalCollections)||0}),f.jsx(Uj,{totalDocuments:(i==null?void 0:i.totalDocuments)||0}),f.jsx(Lj,{storageInfo:(i==null?void 0:i.storageInfo)||{}}),f.jsx(Oj,{CacheStorageInfo:(i==null?void 0:i.cacheStorage)||{}})]}),f.jsx("div",{className:"mb-8",children:f.jsx(Mj,{treeDB:(i==null?void 0:i.nodeTree)||[]})})]})},_j=({isOpen:n,onClose:a,onDatabaseCreated:i})=>{const[r,o]=w.useState(""),[c,d]=w.useState(!1),[p,g]=w.useState(""),m=()=>{o(""),g(""),d(!1),a()},y=v=>Re(null,null,function*(){var b,j;if(v.preventDefault(),!r.trim()){g("Database name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(r)){g("Database name can only contain letters, numbers, and underscores");return}d(!0),g("");try{const N=yield pe.post(`${We}/api/db/create-database`,{name:r});if(N.data.statusCode===200||N.data.statusCode===201)i(r),d(!1),m();else throw d(!1),new Error("Failed to create database")}catch(N){console.error("Error creating database:",N),g(((j=(b=N.response)==null?void 0:b.data)==null?void 0:j.message)||"Failed to create database. Please try again."),d(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:f.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[f.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Database"}),f.jsxs("form",{onSubmit:y,children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),f.jsx("input",{type:"text",id:"databaseName",value:r,onChange:v=>o(v.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter database name",disabled:c}),p&&f.jsx("p",{className:"mt-2 text-sm text-red-600",children:p})]}),f.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[f.jsx("button",{type:"button",onClick:m,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:c,children:"Cancel"}),f.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${c?"opacity-75 cursor-not-allowed":""}`,disabled:c,children:c?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create Database"})]})]})]})}):null},kj=({isOpen:n,dbName:a,onClose:i,onConfirmDelete:r})=>{const[o,c]=w.useState(!1);if(!n)return null;const d=()=>Re(null,null,function*(){var p,g;c(!0);try{const m=yield pe.delete(`${We}/api/db/delete-database`,{params:{dbName:a}});if(m.status===200)console.log("Database deleted successfully:",m.data),r();else throw new Error("Failed to delete database")}catch(m){console.error("Error deleting database:",m),alert(((g=(p=m.response)==null?void 0:p.data)==null?void 0:g.message)||"Failed to delete database. Please try again.")}finally{c(!1)}});return f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:f.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6 animate-fadeIn",children:[f.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Confirm Deletion"}),f.jsxs("p",{className:"text-gray-700 mb-6",children:['Are you sure you want to delete the database "',a,'"? This action cannot be undone.']}),f.jsxs("div",{className:"flex justify-end space-x-4",children:[f.jsx("button",{onClick:i,disabled:o,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",children:"Cancel"}),f.jsx("button",{onClick:d,disabled:o,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${o?"opacity-75 cursor-not-allowed":""}`,children:o?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete"})]})]})})},Hj=({databases:n,onDeleteClick:a,loading:i})=>{const r=pl(),[o,c]=w.useState({}),d=m=>{c(y=>le(X({},y),{[m]:!1}))},p=m=>{r(`/collections?database=${encodeURIComponent(m)}`)},g=m=>Re(null,null,function*(){var y,v;try{console.log("Starting export for database:",m),console.log("API URL:",`${We}/api/db/export-database/?dbName=${encodeURIComponent(m)}`);const b=yield pe.get(`${We}/api/db/export-database/?dbName=${encodeURIComponent(m)}`,{responseType:"blob"});if(console.log("Response status:",b.status),console.log("Response headers:",b.headers),console.log("Response data type:",typeof b.data),console.log("Response data size:",(y=b.data)==null?void 0:y.size),b.data instanceof Blob&&b.data.type==="application/json"){const O=yield b.data.text();console.error("Received JSON error response:",O),alert(`Export failed: ${O}`);return}if(!b.data||b.data.size===0){console.error("Empty response received"),alert("Export failed: Empty file received");return}const j=window.URL.createObjectURL(b.data),N=document.createElement("a");N.href=j;const A=b.headers["content-disposition"];let T=`${m}.tar.gz`;if(A){const O=A.match(/filename="(.+)"/);O&&(T=O[1])}console.log("Downloading file as:",T),N.setAttribute("download",T),document.body.appendChild(N),N.click(),N.remove(),window.URL.revokeObjectURL(j),console.log("Download initiated successfully")}catch(b){if(console.error("Error exporting database:",b),b.response)if(console.error("Error response data:",b.response.data),console.error("Error response status:",b.response.status),console.error("Error response headers:",b.response.headers),b.response.data instanceof Blob)try{const j=yield b.response.data.text();console.error("Error response text:",j),alert(`Export failed: ${j}`)}catch(j){console.error("Could not read error response:",j),alert("Failed to export database. Please try again.")}else alert(`Export failed: ${((v=b.response.data)==null?void 0:v.message)||b.message}`);else alert("Failed to export database. Please try again.")}});return f.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[f.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Your Databases"}),f.jsxs("p",{className:"text-sm text-gray-500",children:["Total: ",i?"Loading...":n==null?void 0:n.TotalDatabases]})]}),i?f.jsx("div",{className:"p-6",children:[1,2,3].map(m=>f.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[f.jsxs("div",{children:[f.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),f.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),f.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},m))}):f.jsx("ul",{className:"divide-y divide-gray-200",children:n!=null&&n.ListOfDatabases&&(n==null?void 0:n.ListOfDatabases.length)>0?n.ListOfDatabases.map((m,y)=>f.jsxs("li",{className:`px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-all duration-300 ${o[m]?"animate-slideIn":"animate-fadeIn"}`,onAnimationEnd:()=>d(m),children:[f.jsxs("div",{children:[f.jsx("h4",{className:"text-lg font-medium text-gray-900",children:m}),f.jsxs("p",{className:"text-sm text-gray-500",children:["Path: ",n.AllDatabasesPaths[y]]})]}),f.jsxs("div",{className:"flex space-x-2",children:[f.jsx("button",{onClick:()=>p(m),className:"text-blue-600 hover:text-blue-800 px-3 py-1 rounded border border-blue-200 hover:border-blue-400 transition-colors",children:"View Collections"}),f.jsx("button",{onClick:()=>g(m),className:"text-green-600 hover:text-green-800 px-3 py-1 rounded border border-green-200 hover:border-green-400 transition-colors",children:"Export DB"}),f.jsx("button",{onClick:()=>a(m),className:"text-red-600 hover:text-red-800 px-3 py-1 rounded border border-red-200 hover:border-red-400 transition-colors",children:"Delete"})]})]},m)):f.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No databases found. Click "Create Database" to add one.'})})]})},qj=()=>{const[n,a]=w.useState(!0),[i,r]=w.useState([]),[o,c]=w.useState(!1),[d,p]=w.useState(!1),[g,m]=w.useState(""),{Rootname:y}=no(N=>N);w.useEffect(()=>{Re(null,null,function*(){try{const A=yield pe.get(`${We}/api/db/databases`);A.status===200&&(r(A.data.data),a(!1))}catch(A){console.error("Error fetching databases:",A),a(!1),r([])}})},[]);const v=N=>{m(N),c(!0)},b=()=>{r(N=>le(X({},N),{ListOfDatabases:N.ListOfDatabases.filter(A=>A!==g),TotalDatabases:`${N.ListOfDatabases.length-1} Databases`})),c(!1),m("")},j=N=>{r(A=>le(X({},A),{ListOfDatabases:[...A.ListOfDatabases,N],TotalDatabases:`${A.ListOfDatabases.length+1} Databases`,AllDatabasesPaths:[...A.AllDatabasesPaths,`${A.CurrentPath}/${N}`]}))};return f.jsxs("div",{className:"container mx-auto px-4 py-6",children:[f.jsxs("div",{className:"flex justify-between items-center mb-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Databases"}),f.jsxs("p",{className:"text-gray-600",children:["Manage your ",y," databases"]})]}),f.jsxs("button",{onClick:()=>p(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Create Database"]})]}),f.jsx(Hj,{databases:i,onDeleteClick:v,loading:n}),f.jsx(_j,{isOpen:d,onClose:()=>p(!1),onDatabaseCreated:j}),f.jsx(kj,{isOpen:o,dbName:g,onClose:()=>c(!1),onConfirmDelete:b})]})},Pj=({isOpen:n,onClose:a,onCollectionCreated:i,databaseName:r})=>{const[o,c]=w.useState(""),[d,p]=w.useState(!1),[g,m]=w.useState(""),[y,v]=w.useState(!1),[b,j]=w.useState(""),N=()=>{c(""),p(!1),m(""),j(""),v(!1),a()},A=T=>Re(null,null,function*(){var O,z;if(T.preventDefault(),!o.trim()){j("Collection name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(o)){j("Collection name can only contain letters, numbers, and underscores");return}if(d&&!g.trim()){j("Encryption key is required when encryption is enabled");return}v(!0),j("");try{const M=yield pe.post(`${We}/api/collection/create-collection`,{dbName:r,collectionName:o,crypto:d,key:d?g:""});if(M.data.statusCode===200||M.data.statusCode===201)i({name:o,documentCount:0,size:"N/A"}),N();else throw new Error("Failed to create collection")}catch(M){console.error("Error creating collection:",M),j(((z=(O=M.response)==null?void 0:O.data)==null?void 0:z.message)||"Failed to create collection. Please try again."),v(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:f.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[f.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Collection"}),f.jsxs("form",{onSubmit:A,children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),f.jsx("input",{type:"text",id:"databaseName",value:r,className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm bg-gray-100 cursor-not-allowed",disabled:!0})]}),f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{htmlFor:"collectionName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Collection Name"}),f.jsx("input",{type:"text",id:"collectionName",value:o,onChange:T=>c(T.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter collection name",disabled:y})]}),f.jsx("div",{className:"mb-4",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("label",{htmlFor:"enableCrypto",className:"text-sm font-medium text-gray-700",children:"Enable Encryption"}),f.jsxs("div",{className:"relative inline-block w-10 mr-2 align-middle select-none",children:[f.jsx("input",{type:"checkbox",id:"enableCrypto",checked:d,onChange:()=>p(!d),className:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer",disabled:y}),f.jsx("label",{htmlFor:"enableCrypto",className:`toggle-label block overflow-hidden h-6 rounded-full cursor-pointer ${d?"bg-green-500":"bg-gray-300"}`})]})]})}),d&&f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{htmlFor:"cryptoKey",className:"block text-sm font-medium text-gray-700 mb-1",children:"Encryption Key"}),f.jsx("input",{type:"password",id:"cryptoKey",value:g,onChange:T=>m(T.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500",placeholder:"Enter encryption key",disabled:y})]}),b&&f.jsx("p",{className:"mt-2 text-sm text-red-600",children:b}),f.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[f.jsx("button",{type:"button",onClick:N,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:y,children:"Cancel"}),f.jsx("button",{type:"submit",className:`px-4 py-2 bg-green-600 text-white rounded hover:bg-green-700 transition-colors flex items-center ${y?"opacity-75 cursor-not-allowed":""}`,disabled:y,children:y?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating..."]}):"Create Collection"})]})]})]})}):null},Yj=({isOpen:n,onClose:a,onCollectionDeleted:i,databaseName:r,collectionName:o})=>{const[c,d]=w.useState(!1),[p,g]=w.useState(""),m=()=>{g(""),d(!1),a()},y=()=>Re(null,null,function*(){var v,b;d(!0),g("");try{if((yield pe.delete(`${We}/api/collection/delete-collection/?dbName=${r}&collectionName=${o}`)).data.statusCode===200)i(o),m();else throw new Error("Failed to delete collection")}catch(j){console.error("Error deleting collection:",j),g(((b=(v=j.response)==null?void 0:v.data)==null?void 0:b.message)||"Failed to delete collection. Please try again."),d(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:f.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[f.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Delete Collection"}),f.jsxs("p",{className:"mb-6 text-gray-600",children:["Are you sure you want to delete the collection"," ",f.jsx("span",{className:"font-semibold",children:o})," from database"," ",f.jsx("span",{className:"font-semibold",children:r}),"? This action cannot be undone."]}),p&&f.jsx("p",{className:"mb-4 text-sm text-red-600",children:p}),f.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[f.jsx("button",{type:"button",onClick:m,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:c,children:"Cancel"}),f.jsx("button",{type:"button",onClick:y,className:`px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 transition-colors flex items-center ${c?"opacity-75 cursor-not-allowed":""}`,disabled:c,children:c?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete Collection"})]})]})}):null},Gj=()=>{const[n]=My(),a=pl(),[i,r]=w.useState(!0),[o,c]=w.useState([]),[d,p]=w.useState([]),[g,m]=w.useState(!1),[y,v]=w.useState(!1),[b,j]=w.useState(""),N=n.get("database"),{Rootname:A}=no(U=>U),T=()=>Re(null,null,function*(){try{const U=yield pe.get(`${We}/api/collection/all/?databaseName=${N}`);if(U.status===200){const Z=U.data.data||{};if(Z.ListOfCollections&&Array.isArray(Z.ListOfCollections)){const Q=Z.CollectionSizeMap||[],W=Z.collectionMetaStatus||[];p(W);const fe=Z.ListOfCollections.map(xe=>{const de=Q.find(Ae=>{const He=Ae.folderPath.split("/");return He[He.length-1]===xe}),ue=W.find(Ae=>Ae.name===xe);return{name:xe,documentCount:de?de.fileCount:0,isEncrypted:(ue==null?void 0:ue.isEncrypted)||!1,isSchemaNeeded:(ue==null?void 0:ue.isSchemaNeeded)||!1,schema:(ue==null?void 0:ue.schema)||{}}});c(fe)}else c([]);r(!1)}}catch(U){console.error("Error fetching collections:",U),r(!1),c([])}});w.useEffect(()=>{if(!N){a("/databases");return}T()},[N,a]);const O=()=>{a("/operations")},z=()=>{T()},M=U=>{j(U),v(!0)},K=()=>{T()};return f.jsxs("div",{className:"container mx-auto px-4 py-6",children:[f.jsxs("div",{className:"flex justify-between items-center mb-6",children:[f.jsxs("div",{children:[f.jsx("div",{className:"flex items-center mb-2",children:f.jsx("button",{onClick:O,className:"text-blue-600 hover:text-blue-800 mr-3",children:"← Back to Databases"})}),f.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Collections"}),f.jsxs("p",{className:"text-gray-600",children:["Collections in database:"," ",f.jsx("span",{className:"font-medium",children:N})]})]}),f.jsxs("button",{onClick:()=>m(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-lg flex items-center transition-colors",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Create Collection"]})]}),f.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[f.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[f.jsxs("h3",{className:"text-lg font-medium text-gray-900",children:["Collections in ",N]}),f.jsxs("p",{className:"text-sm text-gray-500",children:["Total:"," ",i?"Loading...":o.length>0?`${o.length} Collections`:"0 Collections"]})]}),i?f.jsx("div",{className:"p-6",children:[1,2,3].map(U=>f.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[f.jsxs("div",{children:[f.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),f.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),f.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},U))}):f.jsx("ul",{className:"divide-y divide-gray-200",children:o.length>0?o.map(U=>f.jsxs("li",{className:"px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-colors",children:[f.jsxs("div",{children:[f.jsxs("h4",{className:"text-lg font-medium text-gray-900 flex items-center",children:[U.name,U.isEncrypted?f.jsx("span",{className:"ml-2 text-green-600",title:"Encrypted Collection",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}):f.jsx("span",{className:"ml-2 text-gray-400",title:"Unencrypted Collection",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{d:"M10 2a5 5 0 00-5 5v2a2 2 0 00-2 2v5a2 2 0 002 2h10a2 2 0 002-2v-5a2 2 0 00-2-2H7V7a3 3 0 015.905-.75 1 1 0 001.937-.5A5.002 5.002 0 0010 2z"})})})]}),f.jsxs("p",{className:"text-sm text-gray-500",children:[U.documentCount," documents"]})]}),f.jsxs("div",{className:"flex space-x-2",children:[f.jsx("button",{onClick:()=>a(`/collections/documents?database=${N}&collection=${U.name}`),className:"text-blue-600 hover:text-blue-800 px-3 py-1 rounded border border-blue-200 hover:border-blue-400 transition-colors",children:"View Documents"}),f.jsx("button",{onClick:()=>M(U.name),className:"text-red-600 hover:text-red-800 px-3 py-1 rounded border border-red-200 hover:border-red-400 transition-colors",children:"Delete"})]})]},U.name)):f.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No collections found in this database. Click "Create Collection" to add one.'})})]}),g&&f.jsx(Pj,{isOpen:g,onClose:()=>m(!1),onCollectionCreated:z,databaseName:N}),y&&f.jsx(Yj,{isOpen:y,onClose:()=>v(!1),onCollectionDeleted:K,databaseName:N,collectionName:b})]})},Xj=({isOpen:n,onClose:a,onDocumentInserted:i,databaseName:r,collectionName:o,onSuccess:c})=>{const[d,p]=w.useState(`{
66
66
 
67
- }`),[g,m]=w.useState(""),[y,v]=w.useState(!1),b=j=>Ae(null,null,function*(){var N;j.preventDefault(),m("");try{const A=JSON.parse(d);v(!0);const E=yield me.post(`${Je}/api/operation/create/?dbName=${r}&collectionName=${o}`,X({},A));if(E.status===200||E.status===201){const O=(N=E.data.data)==null?void 0:N.documentId,L=le(X({},A),{documentId:O||`doc_${Date.now()}`,updatedAt:new Date().toISOString()});i(L),a(),typeof c=="function"&&c()}else throw new Error("Failed to insert document")}catch(A){A instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error inserting document: ${A.message}`),v(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:f.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[f.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[f.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Insert New Document"]}),f.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:f.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),f.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[f.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-blue-50 p-3 rounded-md",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-blue-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),f.jsxs("p",{className:"text-sm text-blue-700",children:["Enter the document data in JSON format to insert into"," ",f.jsx("span",{className:"font-semibold",children:o})]})]}),g&&f.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:f.jsx("p",{children:g})}),f.jsxs("form",{onSubmit:b,children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Document Data (JSON)"}),f.jsx("textarea",{value:d,onChange:j=>p(j.target.value),className:"w-full h-64 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-blue-500 focus:border-blue-500 shadow-inner bg-gray-50",placeholder:"Enter JSON document data",required:!0}),f.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"The documentId and updatedAt fields will be automatically generated."})]}),f.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[f.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:y,className:`px-4 py-2 rounded-md text-white flex items-center ${y?"bg-green-500":"bg-green-600 hover:bg-green-700"} transition-colors shadow-md`,children:y?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Inserting..."]}):"Insert Document"})]})]})]})]})}):null},Zj=({isOpen:n,onClose:a,onDocumentUpdated:i,document:r,databaseName:o,collectionName:c})=>{const[d,p]=w.useState(""),[g,m]=w.useState(""),[y,v]=w.useState(!1);w.useEffect(()=>{if(r){const j=r,{documentId:N,updatedAt:A}=j,E=ot(j,["documentId","updatedAt"]);p(JSON.stringify(E,null,2))}},[r]);const b=j=>Ae(null,null,function*(){var N;j.preventDefault(),m("");try{const A=JSON.parse(d);v(!0);const E=yield me.put(`${Je}/api/operation/update/by-id/?dbName=${o}&collectionName=${c}&documentId=${r.documentId}`,X({},A));if(E.status===200){const O=((N=E.data.data)==null?void 0:N.document)||le(X({},A),{documentId:r.documentId,updatedAt:new Date().toISOString()});i(O),a()}else throw new Error("Failed to update document")}catch(A){A instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error updating document: ${A.message}`),v(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:f.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[f.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[f.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-indigo-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),"Update Document"]}),f.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:f.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),f.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[f.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-indigo-50 p-3 rounded-md",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),f.jsx("p",{className:"text-sm text-indigo-700",children:"Edit the document data in JSON format"})]}),g&&f.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:f.jsx("p",{children:g})}),f.jsxs("form",{onSubmit:b,children:[f.jsxs("div",{className:"mb-4",children:[f.jsxs("div",{className:"flex justify-between items-center mb-2",children:[f.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Document Data (JSON)"}),f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1 text-yellow-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})}),f.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["ID: ",r.documentId]})]})]}),f.jsx("textarea",{value:d,onChange:j=>p(j.target.value),className:"w-full h-64 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-indigo-500 focus:border-indigo-500 shadow-inner bg-gray-50",placeholder:"Enter JSON document data",required:!0}),f.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"You cannot change the document's ID. The updatedAt field will be automatically updated."})]}),f.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[f.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:y,className:`px-4 py-2 rounded-md text-white flex items-center ${y?"bg-indigo-500":"bg-indigo-600 hover:bg-indigo-700"} transition-colors shadow-md`,children:y?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Updating..."]}):"Update Document"})]})]})]})]})}):null},Qj=({isOpen:n,onClose:a,onDocumentDeleted:i,documentId:r,databaseName:o,collectionName:c})=>{const[d,p]=w.useState(!1),[g,m]=w.useState(""),y=()=>Ae(null,null,function*(){try{if(p(!0),(yield me.delete(`${Je}/api/operation/delete/by-id/?dbName=${o}&collectionName=${c}&documentId=${r}`)).status===200)i(r),a();else throw new Error("Failed to delete document")}catch(v){m(`Error deleting document: ${v.message}`),p(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:f.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-md w-full mx-4",children:[f.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[f.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),"Delete Document"]}),f.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:f.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),f.jsxs("div",{className:"p-6",children:[f.jsx("div",{className:"bg-red-50 p-4 rounded-md mb-5",children:f.jsxs("div",{className:"flex",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsx("svg",{className:"h-5 w-5 text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),f.jsxs("div",{className:"ml-3",children:[f.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Are you sure you want to delete this document?"}),f.jsx("div",{className:"mt-2 text-sm text-red-700",children:f.jsx("p",{children:"This action cannot be undone."})})]})]})}),f.jsxs("div",{className:"mb-5",children:[f.jsx("p",{className:"text-gray-700 mb-2",children:f.jsx("span",{className:"font-medium",children:"Document ID:"})}),f.jsx("div",{className:"bg-gray-50 p-2 rounded border border-gray-200 font-mono text-sm break-all",children:r})]}),f.jsxs("div",{className:"mb-5",children:[f.jsxs("p",{className:"text-gray-700 mb-1",children:[f.jsx("span",{className:"font-medium",children:"Collection:"})," ",c]}),f.jsxs("p",{className:"text-gray-700",children:[f.jsx("span",{className:"font-medium",children:"Database:"})," ",o]})]}),g&&f.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:f.jsx("p",{children:g})}),f.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[f.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),f.jsx("button",{onClick:y,disabled:d,className:`px-4 py-2 rounded-md text-white flex items-center ${d?"bg-red-500":"bg-red-600 hover:bg-red-700"} transition-colors shadow-md`,children:d?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete Document"})]})]})]})}):null},$j=({isOpen:n,onClose:a,databaseName:i,collectionName:r,onAggregationResults:o})=>{const[c,d]=w.useState('[{ "$match": {} }]'),[p,g]=w.useState(!1),[m,y]=w.useState(null),v=()=>Ae(null,null,function*(){var j,N;try{g(!0),y(null);const A=JSON.parse(c),E=yield me.post(`${Je}/api/operation/aggregate/?dbName=${i}&collectionName=${r}`,{aggregation:A},{headers:{"Content-Type":"application/json"}});if(E.data&&E.data.data){const O=E.data.data.documents||E.data.data;o(O,A),a()}}catch(A){console.error("Aggregation error:",A),y(((N=(j=A.response)==null?void 0:j.data)==null?void 0:N.message)||A.message||"Failed to run aggregation")}finally{g(!1)}}),b=()=>{y(null),a()};return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:f.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-3xl max-h-[90vh] flex flex-col",children:[f.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 flex justify-between items-center bg-gradient-to-r from-indigo-50 to-blue-50",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Run Aggregation Pipeline"}),f.jsx("button",{onClick:b,className:"text-gray-500 hover:text-gray-700 focus:outline-none",children:f.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),f.jsxs("div",{className:"flex-1 overflow-auto p-6",children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Enter your MongoDB aggregation pipeline as a JSON array. Example:"}),f.jsx("div",{className:"bg-gray-50 p-3 rounded-md text-xs font-mono mb-4 border border-gray-200",children:'[{ "$match": { "field": "value" } }, { "$sort": { "field": 1 } }]'}),f.jsxs("p",{className:"text-sm text-gray-600 mb-4",children:["Running on ",f.jsx("span",{className:"font-semibold",children:r})," ","in database ",f.jsx("span",{className:"font-semibold",children:i})]})]}),f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Aggregation Pipeline"}),f.jsx("textarea",{className:"w-full h-64 px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 font-mono text-sm",value:c,onChange:j=>d(j.target.value),placeholder:'[{ "$match": {} }]'})]}),m&&f.jsx("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 mb-4",children:f.jsxs("div",{className:"flex",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsx("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),f.jsx("div",{className:"ml-3",children:f.jsx("p",{className:"text-sm text-red-700",children:m})})]})})]}),f.jsxs("div",{className:"px-6 py-4 border-t border-gray-200 flex justify-end",children:[f.jsx("button",{onClick:b,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 rounded-md mr-3",children:"Cancel"}),f.jsx("button",{onClick:v,disabled:p,className:`px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 rounded-md flex items-center ${p?"opacity-70 cursor-not-allowed":""}`,children:p?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):f.jsxs(f.Fragment,{children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"Run Aggregation"]})})]})]})}):null},tg=()=>{const[n]=Dy(),a=pl(),[i,r]=w.useState(!0),[o,c]=w.useState([]),[d,p]=w.useState(!0),[g,m]=w.useState(1),y=w.useRef(),v=n.get("database"),b=n.get("collection"),[j,N]=w.useState(!1),[A,E]=w.useState(!1),[O,L]=w.useState(!1),[M,K]=w.useState(!1),[U,Z]=w.useState(null),[Q,J]=w.useState(!1),[ce,Se]=w.useState([]),[ge,he]=w.useState([]),[ke,We]=w.useState(""),[Le,H]=w.useState(!1),[F,ee]=w.useState(""),[xe,C]=w.useState(""),Y=w.useRef(null),W=w.useRef(null),$=w.useCallback((I=1,Ne=!1)=>Ae(null,null,function*(){try{r(!0);const He=yield me.get(`${Je}/api/operation/all/?dbName=${v}&collectionName=${b}&page=${I}`);if(He.status===200){const en=He.data.data.data.documents||[];c(Ne?en:vt=>[...vt,...en]),p(en.length===10)}r(!1)}catch(He){console.error("Error fetching documents:",He),r(!1)}}),[v,b]),ne=w.useCallback((I,Ne=1,He=!1)=>Ae(null,null,function*(){try{r(!0);const en=yield me.post(`${Je}/api/operation/all/by-query/?dbName=${v}&collectionName=${b}&page=${Ne}`,{query:I},{headers:{"Content-Type":"application/json"}});if(en.status===200){const vt=en.data.data.data.documents||[];c(He?vt:bt=>[...bt,...vt]),p(vt.length===10)}r(!1)}catch(en){console.error("Error fetching documents by query:",en),r(!1)}}),[v,b]);w.useEffect(()=>{if(!v||!b){a("/collections");return}J(!1),Se([]),H(!1),We(""),ee(""),C(""),Y.current&&clearTimeout(Y.current),W.current&&clearTimeout(W.current),m(1),c([]),$(1,!0)},[v,b,a,$]);const we=w.useCallback(I=>{i||Q||(y.current&&y.current.disconnect(),y.current=new IntersectionObserver(Ne=>{Ne[0].isIntersecting&&d&&(m(He=>He+1),Le&&ke?ne(ke,g+1):$(g+1))}),I&&y.current.observe(I))},[i,d,$,ne,g,Q,Le,ke]);w.useEffect(()=>()=>{Y.current&&clearTimeout(Y.current),W.current&&clearTimeout(W.current)},[]);const ue=()=>{a(`/collections?database=${v}`)},xt=I=>{c(Ne=>[I,...Ne])},ze=I=>{Z(I),E(!0)},It=I=>{Z(I),L(!0)},Ya=()=>Ae(null,null,function*(){try{r(!0);const I=yield me.post(`${Je}/api/operation/aggregate/?dbName=${v}&collectionName=${b}`,{aggregation:ce},{headers:{"Content-Type":"application/json"}});I.data&&I.data.data&&he(I.data.data.documents||I.data.data),r(!1)}catch(I){console.error("Error re-running aggregation:",I),r(!1)}}),Ga=I=>{c(Ne=>Ne.map(He=>He.documentId===I.documentId?I:He)),Q&&Ya()},Zs=I=>{c(Ne=>Ne.filter(He=>He.documentId!==I)),Q&&Ya()},Qs=(I,Ne)=>{he(I),Se(Ne),J(!0)},Xa=()=>{J(!1),Se([]),he([]),Le&&ke?ne(ke,1,!0):$(1,!0)},wo=I=>{ee(I),Y.current&&clearTimeout(Y.current),Y.current=setTimeout(()=>{kt(I)},500)},jo=I=>{C(I),W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{No(I)},300)},kt=I=>{try{if(!I.trim()){H(!1),We(""),J(!1),m(1),c([]),$(1,!0);return}const Ne=JSON.parse(I);We(Ne),H(!0),J(!1),m(1),c([]),ne(Ne,1,!0)}catch(Ne){console.warn("Invalid JSON query, treating as text search:",Ne)}},No=I=>{if(!I.trim()){F.trim()||(H(!1),We(""),J(!1),m(1),c([]),$(1,!0));return}const Ne={documentId:I.trim()};We(Ne),H(!0),J(!1),m(1),c([]),ne(Ne,1,!0)},$s=()=>{ee(""),C(""),We(""),H(!1),J(!1),m(1),c([]),$(1,!0)},Js=I=>new Date(I).toLocaleString(),Ka=I=>{try{return!Array.isArray(I)||I.length===0?"No conditions":I.map((He,en)=>{const vt=Object.keys(He)[0];return`${vt.replace("$","")}: ${JSON.stringify(He[vt]).substring(0,30)}${JSON.stringify(He[vt]).length>30?"...":""}`}).join(", ")}catch(Ne){return"Invalid pipeline"}};return f.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-7xl",children:[f.jsxs("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden mb-8",children:[f.jsxs("div",{className:"flex justify-between items-center p-6 bg-gradient-to-r from-blue-50 to-indigo-50 border-b border-gray-200",children:[f.jsxs("div",{children:[f.jsx("div",{className:"flex items-center mb-2",children:f.jsxs("button",{onClick:ue,className:"text-blue-600 hover:text-blue-800 flex items-center transition-colors font-medium",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})}),"Back to Collections"]})}),f.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Documents"}),f.jsxs("div",{className:"flex items-center mt-1 text-gray-600",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{d:"M7 3a1 1 0 000 2h6a1 1 0 100-2H7zM4 7a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1zM2 11a2 2 0 002-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z"})}),f.jsx("span",{className:"font-medium",children:b}),f.jsx("span",{className:"mx-2",children:"in"}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})}),f.jsx("span",{className:"font-medium",children:v})]})]}),f.jsxs("div",{className:"flex space-x-3",children:[f.jsxs("button",{onClick:()=>K(!0),className:"bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-5 rounded-lg flex items-center transition-colors shadow-md",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),"Run Aggregate"]}),f.jsxs("button",{onClick:()=>N(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-5 rounded-lg flex items-center transition-colors shadow-md",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Insert Document"]})]})]}),f.jsx("div",{className:"px-6 py-4 border-b border-gray-200 bg-gray-50",children:f.jsxs("div",{className:"max-w-6xl",children:[f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[f.jsxs("div",{className:"lg:col-span-2",children:[f.jsx("label",{htmlFor:"search-query",className:"block text-sm font-medium text-gray-700 mb-2",children:f.jsxs("span",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),"JSON Query Search"]})}),f.jsx("input",{type:"text",id:"search-query",value:F,onChange:I=>wo(I.target.value),placeholder:'e.g., {"name": "John"}, {"age": {"$gte": 18}}, or {} for all',className:"w-full px-3 py-2.5 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 text-sm font-mono transition-colors"}),f.jsx("div",{className:"mt-1 text-xs text-gray-500",children:"Auto-searches as you type • MongoDB-style syntax • Leave empty to show all"})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"document-id-search",className:"block text-sm font-medium text-gray-700 mb-2",children:f.jsxs("span",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})}),"Document ID"]})}),f.jsx("input",{type:"text",id:"document-id-search",value:xe,onChange:I=>jo(I.target.value),placeholder:"Enter document ID",className:"w-full px-3 py-2.5 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500 text-sm font-mono transition-colors"}),f.jsx("div",{className:"mt-1 text-xs text-gray-500",children:"Find by specific ID"})]})]}),Le&&f.jsx("div",{className:"mt-3 p-3 bg-blue-50 border border-blue-200 rounded-md",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"text-sm text-blue-800",children:[f.jsx("span",{className:"font-medium",children:"Active Search:"})," ",f.jsx("code",{className:"bg-blue-100 px-2 py-1 rounded text-xs ml-1",children:JSON.stringify(ke)})]}),f.jsxs("button",{onClick:$s,className:"text-blue-600 hover:text-blue-800 text-sm flex items-center transition-colors",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Clear All"]})]})})]})}),Q&&f.jsxs("div",{className:"bg-indigo-50 px-6 py-3 border-b border-indigo-100 flex justify-between items-center",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-600 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),f.jsxs("div",{children:[f.jsx("span",{className:"text-sm font-medium text-indigo-800",children:"Aggregation Results"}),f.jsxs("p",{className:"text-xs text-indigo-600 mt-0.5",children:["Pipeline: ",Ka(ce)]})]})]}),f.jsxs("button",{onClick:Xa,className:"text-indigo-700 hover:text-indigo-900 text-sm font-medium flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Clear Aggregation"]})]}),f.jsxs("div",{className:"p-6",children:[i&&o.length===0&&!Q?f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3,4,5,6].map(I=>f.jsxs("div",{className:"animate-pulse bg-white rounded-lg border border-gray-200 shadow-sm p-4",children:[f.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-3"}),f.jsx("div",{className:"h-3 bg-gray-100 rounded w-1/2 mb-2"}),f.jsx("div",{className:"h-20 bg-gray-100 rounded mb-3"}),f.jsxs("div",{className:"flex justify-end",children:[f.jsx("div",{className:"h-8 bg-gray-200 rounded w-16 mr-2"}),f.jsx("div",{className:"h-8 bg-gray-200 rounded w-16"})]})]},I))}):Q?ge.length>0?f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:ge.map((I,Ne)=>f.jsx("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:f.jsxs("div",{className:"p-4",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-500 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),f.jsx("div",{className:"font-mono text-indigo-700 font-semibold",children:f.jsx("span",{className:"text-sm",children:I.documentId?`ID: ${I.documentId}`:`Result #${Ne+1}`})})]}),I.updatedAt&&f.jsx("span",{className:"text-xs text-gray-500",title:I.updatedAt,children:Js(I.updatedAt)})]}),f.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:f.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(I).filter(([He])=>!["documentId","updatedAt"].includes(He))),null,2)})}),I.documentId&&f.jsxs("div",{className:"flex justify-end space-x-2",children:[f.jsx("button",{onClick:()=>ze(I),className:"text-indigo-600 hover:text-indigo-900 bg-indigo-50 hover:bg-indigo-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Update"}),f.jsx("button",{onClick:()=>It(I),className:"text-red-600 hover:text-red-900 bg-red-50 hover:bg-red-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Delete"})]})]})},Ne))}):f.jsxs("div",{className:"text-center py-12",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-gray-300 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),f.jsx("p",{className:"text-gray-500 mb-2",children:"No documents match your aggregation pipeline"}),f.jsx("button",{onClick:Xa,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Clear Aggregation"})]}):o.length>0?f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map((I,Ne)=>f.jsx("div",{ref:!Q&&Ne===o.length-1?we:null,className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:f.jsxs("div",{className:"p-4",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-yellow-500 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})}),f.jsx("div",{className:"font-mono text-indigo-700 font-semibold",title:I.documentId,children:f.jsxs("span",{className:"text-sm",children:["ID: ",I.documentId]})})]}),f.jsx("span",{className:"text-xs text-gray-500",title:I.updatedAt,children:Js(I.updatedAt)})]}),f.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:f.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(I).filter(([He])=>!["documentId","updatedAt"].includes(He))),null,2)})}),f.jsxs("div",{className:"flex justify-end space-x-2",children:[f.jsx("button",{onClick:()=>ze(I),className:"text-indigo-600 hover:text-indigo-900 bg-indigo-50 hover:bg-indigo-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Update"}),f.jsx("button",{onClick:()=>It(I),className:"text-red-600 hover:text-red-900 bg-red-50 hover:bg-red-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Delete"})]})]})},I.documentId))}):f.jsxs("div",{className:"text-center py-12",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-gray-300 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),f.jsx("p",{className:"text-gray-500 mb-4",children:Le?"No documents match your search query":"No documents found in this collection"}),Le?f.jsxs("div",{className:"space-y-2",children:[f.jsx("button",{onClick:$s,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:"Clear Search & Show All Documents"}),f.jsxs("p",{className:"text-xs text-gray-400",children:["Try adjusting your query or use "," to show all documents"]})]}):f.jsx("button",{onClick:()=>N(!0),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Insert Your First Document"})]}),i&&o.length>0&&!Q&&f.jsx("div",{className:"flex justify-center items-center py-4",children:f.jsxs("svg",{className:"animate-spin h-6 w-6 text-indigo-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),!i&&!d&&o.length>0&&!Q&&f.jsx("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:"You've reached the end of the results."}),Q&&ge.length>0&&f.jsxs("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:["Showing all ",ge.length," aggregation results."]})]})]}),j&&f.jsx(Fj,{isOpen:j,onClose:()=>N(!1),onDocumentInserted:xt,databaseName:v,collectionName:b,onSuccess:()=>$(1,!0)}),A&&U&&f.jsx(Zj,{isOpen:A,onClose:()=>E(!1),onDocumentUpdated:Ga,document:U,databaseName:v,collectionName:b}),O&&U&&f.jsx(Qj,{isOpen:O,onClose:()=>L(!1),onDocumentDeleted:Zs,documentId:U.documentId,databaseName:v,collectionName:b}),M&&f.jsx($j,{isOpen:M,onClose:()=>K(!1),databaseName:v,collectionName:b,onAggregationResults:Qs})]})},Jj=()=>{const[n,a]=w.useState([]),[i,r]=w.useState(!0),[o,c]=w.useState(null),[d,p]=w.useState({});w.useEffect(()=>{Ae(null,null,function*(){try{r(!0);const b=yield me.get(`${Je}/api/routes`);if(b.data&&b.data.data&&Array.isArray(b.data.data)){a(b.data.data);const j={};b.data.data.forEach(N=>{j[N.groupName]=!0}),p(j)}else throw new Error("Invalid API response format");r(!1)}catch(b){console.error("Error fetching API routes:",b),c("Failed to load API reference. Please try again later."),r(!1)}})},[]);const g=v=>{p(b=>le(X({},b),{[v]:!b[v]}))},m=v=>{switch(v){case"GET":return"bg-blue-600";case"POST":return"bg-green-600";case"PUT":return"bg-amber-600";case"DELETE":return"bg-red-600";default:return"bg-gray-600"}},y=v=>f.jsx("pre",{className:"mt-2 p-3 bg-gray-800 text-gray-200 rounded-md overflow-x-auto text-sm",children:JSON.stringify(v,null,2)});return i?f.jsxs("div",{className:"container mx-auto px-4 py-8",children:[f.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),f.jsx("div",{className:"flex justify-center items-center py-12",children:f.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-blue-500"})})]}):o?f.jsxs("div",{className:"container mx-auto px-4 py-8",children:[f.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),f.jsx("div",{className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded",children:f.jsx("p",{children:o})})]}):f.jsxs("div",{className:"container mx-auto px-4 py-8",children:[f.jsx("h1",{className:"text-2xl font-bold mb-2",children:"API Reference"}),f.jsx("p",{className:"text-gray-600 mb-6",children:"Complete documentation for the AxioDB REST API"}),n.length===0&&!i&&!o?f.jsx("div",{className:"bg-yellow-100 border border-yellow-400 text-yellow-700 px-4 py-3 rounded",children:f.jsx("p",{children:"No API routes found. The server might not have returned any routes."})}):f.jsx("div",{className:"space-y-6",children:n.map(v=>f.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[f.jsxs("div",{className:"bg-gray-50 px-4 py-3 flex justify-between items-center cursor-pointer",onClick:()=>g(v.groupName),children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-medium text-gray-900",children:v.groupName}),f.jsx("p",{className:"text-sm text-gray-500",children:v.description})]}),f.jsx("div",{className:"text-gray-500",children:d[v.groupName]?f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})}):f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})})})]}),d[v.groupName]&&f.jsx("div",{className:"divide-y divide-gray-200",children:v.Paths.map((b,j)=>f.jsx("div",{className:"p-4 hover:bg-gray-50",children:f.jsxs("div",{className:"flex items-start",children:[f.jsx("span",{className:`${m(b.method)} text-white text-xs font-bold px-2 py-1 rounded mr-3 min-w-16 text-center`,children:b.method}),f.jsxs("div",{className:"flex-1",children:[f.jsx("div",{className:"font-mono text-sm bg-gray-100 p-2 rounded mb-2 overflow-x-auto",children:b.path}),f.jsx("p",{className:"text-gray-700 mb-2",children:b.description}),b.payload&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-semibold text-gray-700 mt-2 mb-1",children:"Payload:"}),y(b.payload)]})]})]})},j))})]},v.groupName))})]})},Wj=()=>{var d,p,g,m,y,v,b,j,N,A;const[n,a]=w.useState(null),[i,r]=w.useState(!0),[o,c]=w.useState(null);return w.useEffect(()=>{Ae(null,null,function*(){try{const O=yield me.get(`${Je}/api/info`);O.status===200&&a(O.data.data)}catch(O){console.error("Error fetching author info:",O),c("Failed to load author information")}finally{r(!1)}})},[]),i?f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsx("div",{className:"max-w-4xl mx-auto",children:f.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8",children:f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"h-8 bg-gray-300 rounded w-1/3 mb-6"}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-4 bg-gray-300 rounded w-full"}),f.jsx("div",{className:"h-4 bg-gray-300 rounded w-2/3"}),f.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/2"})]})]})})})}):o?f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsx("div",{className:"max-w-4xl mx-auto",children:f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6",children:f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsx("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),f.jsxs("div",{className:"ml-3",children:[f.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Error"}),f.jsx("p",{className:"text-sm text-red-700 mt-1",children:o})]})]})})})}):f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Need Help with AxioDB?"}),f.jsx("p",{className:"text-xl text-gray-600",children:"Get in touch with the developer for support and assistance"})]}),f.jsxs("div",{className:"bg-white rounded-xl shadow-xl overflow-hidden",children:[f.jsx("div",{className:"bg-gradient-to-r from-blue-600 to-purple-600 px-8 py-12 text-white",children:f.jsxs("div",{className:"flex items-center space-x-6",children:[f.jsxs("div",{className:"w-20 h-20 rounded-full overflow-hidden border-4 border-white border-opacity-30",children:[f.jsx("img",{src:`https://github.com/${(p=(d=n==null?void 0:n.AuthorDetails)==null?void 0:d.github)==null?void 0:p.split("/").pop()}.png`,alt:`${(g=n==null?void 0:n.AuthorDetails)==null?void 0:g.name}'s GitHub Avatar`,className:"w-full h-full object-cover",onError:E=>{E.target.style.display="none",E.target.nextElementSibling.style.display="flex"}}),f.jsx("div",{className:"w-full h-full bg-white bg-opacity-20 rounded-full hidden items-center justify-center",children:f.jsx("svg",{className:"w-10 h-10 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})})]}),f.jsxs("div",{children:[f.jsx("h2",{className:"text-2xl font-bold",children:((m=n==null?void 0:n.AuthorDetails)==null?void 0:m.name)||"Loading..."}),f.jsx("p",{className:"text-blue-100 text-lg",children:((y=n==null?void 0:n.AuthorDetails)==null?void 0:y.Designation)||"Software Engineer"}),f.jsxs("p",{className:"text-blue-100",children:[((v=n==null?void 0:n.AuthorDetails)==null?void 0:v.Country)||"India"," • Solo Developer"]})]})]})}),f.jsx("div",{className:"px-8 py-8",children:f.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:"Contact Information"}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("a",{href:`mailto:${(b=n==null?void 0:n.AuthorDetails)==null?void 0:b.Email}`,className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[f.jsx("div",{className:"w-10 h-10 bg-red-100 rounded-full flex items-center justify-center mr-4",children:f.jsx("svg",{className:"w-5 h-5 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-gray-900",children:"Email"}),f.jsx("p",{className:"text-gray-600",children:(j=n==null?void 0:n.AuthorDetails)==null?void 0:j.Email})]})]}),f.jsxs("a",{href:(N=n==null?void 0:n.AuthorDetails)==null?void 0:N.LinkedIn,target:"_blank",rel:"noopener noreferrer",className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[f.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-4",children:f.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:f.jsx("path",{fillRule:"evenodd",d:"M16.338 16.338H13.67V12.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.601 1.086-1.601 2.207v4.248H8.014v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.778 3.203 4.092v4.711zM5.005 6.575a1.548 1.548 0 11-.003-3.096 1.548 1.548 0 01.003 3.096zm-1.337 9.763H6.34v-8.59H3.667v8.59zM17.668 1H2.328C1.595 1 1 1.581 1 2.298v15.403C1 18.418 1.595 19 2.328 19h15.34c.734 0 1.332-.582 1.332-1.299V2.298C19 1.581 18.402 1 17.668 1z",clipRule:"evenodd"})})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-gray-900",children:"LinkedIn"}),f.jsx("p",{className:"text-gray-600",children:"Connect on LinkedIn"})]})]}),f.jsxs("a",{href:(A=n==null?void 0:n.AuthorDetails)==null?void 0:A.github,target:"_blank",rel:"noopener noreferrer",className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[f.jsx("div",{className:"w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center mr-4",children:f.jsx("svg",{className:"w-5 h-5 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:f.jsx("path",{fillRule:"evenodd",d:"M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z",clipRule:"evenodd"})})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-gray-900",children:"GitHub"}),f.jsx("p",{className:"text-gray-600",children:"View source code"})]})]})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:"Project Details"}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"p-4 bg-blue-50 rounded-lg",children:[f.jsx("p",{className:"font-medium text-blue-900",children:"Package Name"}),f.jsx("p",{className:"text-blue-700",children:(n==null?void 0:n.Package_Name)||"axiodb"})]}),f.jsxs("div",{className:"p-4 bg-green-50 rounded-lg",children:[f.jsx("p",{className:"font-medium text-green-900",children:"Version"}),f.jsx("p",{className:"text-green-700",children:(n==null?void 0:n.AxioDB_Version)||"2.30.92"})]}),f.jsxs("div",{className:"p-4 bg-purple-50 rounded-lg",children:[f.jsx("p",{className:"font-medium text-purple-900",children:"License"}),f.jsx("p",{className:"text-purple-700",children:(n==null?void 0:n.License)||"MIT"})]})]})]})]})})]}),f.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-xl p-8 mt-8",children:f.jsxs("div",{className:"flex items-start",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsx("svg",{className:"h-8 w-8 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),f.jsxs("div",{className:"ml-4",children:[f.jsx("h3",{className:"text-xl font-semibold text-yellow-900 mb-4",children:"Reporting Issues"}),f.jsxs("div",{className:"prose text-yellow-800",children:[f.jsx("p",{className:"mb-4",children:"If you encounter any issues with AxioDB, please help me resolve them quickly by providing detailed information:"}),f.jsxs("ul",{className:"list-disc list-inside space-y-2 mb-4",children:[f.jsxs("li",{children:[f.jsx("strong",{children:"Detailed Description:"})," What exactly happened and what did you expect?"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Steps to Reproduce:"})," Please provide step-by-step instructions to reproduce the error"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Environment:"})," Operating system, Node.js version, AxioDB version"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Error Messages:"})," Copy the complete error message and stack trace"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Code Sample:"})," Minimal code that reproduces the issue"]})]}),f.jsxs("div",{className:"bg-yellow-100 rounded-lg p-4 mt-4",children:[f.jsx("p",{className:"font-medium text-yellow-900",children:"Note:"}),f.jsx("p",{className:"text-yellow-800 mt-1",children:"As a solo developer, I appreciate your patience. I'll respond to issues as soon as possible and work diligently to resolve them. Your detailed bug reports help me fix issues faster!"})]})]})]})]})}),f.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 mt-6",children:f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{className:"h-6 w-6 text-blue-600 mr-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-semibold text-blue-900",children:"Expected Response Time"}),f.jsx("p",{className:"text-blue-700 mt-1",children:"I typically respond within 24-48 hours. For critical issues, I'll prioritize and respond as soon as possible."})]})]})})]})})},Ij=()=>{var b,j,N,A,E,O,L;const[n,a]=w.useState(null),[i,r]=w.useState(!0),[o,c]=w.useState(null),[d,p]=w.useState(null),g=()=>Ae(null,null,function*(){try{c(null);const M=yield me.get(`${Je}/api/health`);M.status===200&&(a(M.data),p(new Date))}catch(M){console.error("Error fetching health status:",M),c("Failed to fetch server status")}finally{r(!1)}});w.useEffect(()=>{g();const M=setInterval(()=>{g()},3e4);return()=>clearInterval(M)},[]);const m=M=>new Date(M).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}),v=(M=>{switch(M==null?void 0:M.toLowerCase()){case"ok":return{bg:"bg-green-50",border:"border-green-200",text:"text-green-800",icon:"text-green-600",badge:"bg-green-100 text-green-800"};case"warning":return{bg:"bg-yellow-50",border:"border-yellow-200",text:"text-yellow-800",icon:"text-yellow-600",badge:"bg-yellow-100 text-yellow-800"};case"error":case"down":return{bg:"bg-red-50",border:"border-red-200",text:"text-red-800",icon:"text-red-600",badge:"bg-red-100 text-red-800"};default:return{bg:"bg-gray-50",border:"border-gray-200",text:"text-gray-800",icon:"text-gray-600",badge:"bg-gray-100 text-gray-800"}}})(((b=n==null?void 0:n.data)==null?void 0:b.status)||(o?"error":"unknown"));return i?f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"AxioDB Status"}),f.jsx("p",{className:"text-xl text-gray-600",children:"Checking server health..."})]}),f.jsx("div",{className:"bg-white rounded-xl shadow-lg p-8",children:f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"flex items-center justify-center mb-6",children:f.jsx("div",{className:"h-16 w-16 bg-gray-300 rounded-full"})}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-6 bg-gray-300 rounded w-1/3 mx-auto"}),f.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/2 mx-auto"}),f.jsx("div",{className:"h-4 bg-gray-300 rounded w-2/3 mx-auto"})]})]})})]})}):f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"AxioDB Status"}),f.jsx("p",{className:"text-xl text-gray-600",children:"Real-time server health monitoring"})]}),f.jsx("div",{className:`${v.bg} ${v.border} border rounded-xl shadow-lg overflow-hidden mb-8`,children:f.jsxs("div",{className:"p-8",children:[f.jsx("div",{className:"flex items-center justify-center mb-6",children:o?f.jsx("div",{className:`w-16 h-16 ${v.icon} flex items-center justify-center`,children:f.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}):((j=n==null?void 0:n.data)==null?void 0:j.status)==="ok"?f.jsx("div",{className:`w-16 h-16 ${v.icon} flex items-center justify-center`,children:f.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}):f.jsx("div",{className:`w-16 h-16 ${v.icon} flex items-center justify-center`,children:f.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"flex items-center justify-center mb-4",children:f.jsxs("span",{className:`inline-flex items-center px-4 py-2 rounded-full text-sm font-medium ${v.badge}`,children:[f.jsx("span",{className:`w-2 h-2 ${((N=n==null?void 0:n.data)==null?void 0:N.status)==="ok"?"bg-green-400":"bg-red-400"} rounded-full mr-2 ${((A=n==null?void 0:n.data)==null?void 0:A.status)==="ok"?"animate-pulse":""}`}),o?"Server Unreachable":((O=(E=n==null?void 0:n.data)==null?void 0:E.status)==null?void 0:O.toUpperCase())||"UNKNOWN"]})}),f.jsx("h2",{className:`text-2xl font-bold ${v.text} mb-2`,children:o?"Connection Failed":(n==null?void 0:n.message)||"Status Unknown"}),((L=n==null?void 0:n.data)==null?void 0:L.timestamp)&&f.jsxs("p",{className:`${v.text} text-lg`,children:["Server Time: ",m(n.data.timestamp)]})]})]})}),f.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[f.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[f.jsxs("div",{className:"flex items-center mb-4",children:[f.jsx("div",{className:"w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-3",children:f.jsx("svg",{className:"w-4 h-4 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),f.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Response Time"})]}),f.jsx("p",{className:"text-2xl font-bold text-blue-600",children:o?"N/A":"< 100ms"}),f.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"API response latency"})]}),f.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[f.jsxs("div",{className:"flex items-center mb-4",children:[f.jsx("div",{className:"w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-3",children:f.jsx("svg",{className:"w-4 h-4 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),f.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Status Code"})]}),f.jsx("p",{className:"text-2xl font-bold text-green-600",children:(n==null?void 0:n.statusCode)||(o?"Error":"N/A")}),f.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"HTTP response status"})]})]}),f.jsx("div",{className:"bg-white rounded-lg shadow-md p-6",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Auto-Refresh"}),f.jsxs("p",{className:"text-sm text-gray-600",children:["Status updates automatically every 30 seconds",d&&f.jsxs(f.Fragment,{children:[f.jsx("br",{}),"Last updated: ",d.toLocaleTimeString()]})]})]}),f.jsxs("button",{onClick:()=>{r(!0),g()},disabled:i,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:[f.jsx("svg",{className:`w-4 h-4 mr-2 ${i?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),i?"Refreshing...":"Refresh Now"]})]})}),f.jsx("div",{className:"bg-gray-50 rounded-lg p-6 mt-8",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h4",{className:"text-sm font-semibold text-gray-900 mb-2",children:"Service Information"}),f.jsxs("p",{className:"text-xs text-gray-600",children:["This page monitors the health and availability of the AxioDB server. If you notice any issues, please visit the"," ",f.jsx("a",{href:"/support",className:"text-blue-600 hover:text-blue-800",children:"support page"})," ","for assistance."]})]})})]})})},Wf=w.createContext({});function If(n){const a=w.useRef(null);return a.current===null&&(a.current=n()),a.current}const ed=typeof window!="undefined",ax=ed?w.useLayoutEffect:w.useEffect,xo=w.createContext(null);function td(n,a){n.indexOf(a)===-1&&n.push(a)}function nd(n,a){const i=n.indexOf(a);i>-1&&n.splice(i,1)}const Un=(n,a,i)=>i>a?a:i<n?n:i;let ad=()=>{};const Vn={},sx=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function ix(n){return typeof n=="object"&&n!==null}const lx=n=>/^0[^.\s]+$/u.test(n);function sd(n){let a;return()=>(a===void 0&&(a=n()),a)}const Wt=n=>n,e4=(n,a)=>i=>a(n(i)),Sl=(...n)=>n.reduce(e4),rl=(n,a,i)=>{const r=a-n;return r===0?1:(i-n)/r};class id{constructor(){this.subscriptions=[]}add(a){return td(this.subscriptions,a),()=>nd(this.subscriptions,a)}notify(a,i,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](a,i,r);else for(let c=0;c<o;c++){const d=this.subscriptions[c];d&&d(a,i,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pn=n=>n*1e3,gn=n=>n/1e3;function rx(n,a){return a?n*(1e3/a):0}const ox=(n,a,i)=>(((1-3*i+3*a)*n+(3*i-6*a))*n+3*a)*n,t4=1e-7,n4=12;function a4(n,a,i,r,o){let c,d,p=0;do d=a+(i-a)/2,c=ox(d,r,o)-n,c>0?i=d:a=d;while(Math.abs(c)>t4&&++p<n4);return d}function wl(n,a,i,r){if(n===a&&i===r)return Wt;const o=c=>a4(c,0,1,n,i);return c=>c===0||c===1?c:ox(o(c),a,r)}const ux=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,cx=n=>a=>1-n(1-a),fx=wl(.33,1.53,.69,.99),ld=cx(fx),dx=ux(ld),hx=n=>(n*=2)<1?.5*ld(n):.5*(2-Math.pow(2,-10*(n-1))),rd=n=>1-Math.sin(Math.acos(n)),mx=cx(rd),px=ux(rd),s4=wl(.42,0,1,1),i4=wl(0,0,.58,1),gx=wl(.42,0,.58,1),l4=n=>Array.isArray(n)&&typeof n[0]!="number",yx=n=>Array.isArray(n)&&typeof n[0]=="number",r4={linear:Wt,easeIn:s4,easeInOut:gx,easeOut:i4,circIn:rd,circInOut:px,circOut:mx,backIn:ld,backInOut:dx,backOut:fx,anticipate:hx},o4=n=>typeof n=="string",ng=n=>{if(yx(n)){ad(n.length===4);const[a,i,r,o]=n;return wl(a,i,r,o)}else if(o4(n))return r4[n];return n},qr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function u4(n,a){let i=new Set,r=new Set,o=!1,c=!1;const d=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(y){d.has(y)&&(m.schedule(y),n()),y(p)}const m={schedule:(y,v=!1,b=!1)=>{const N=b&&o?i:r;return v&&d.add(y),N.has(y)||N.add(y),y},cancel:y=>{r.delete(y),d.delete(y)},process:y=>{if(p=y,o){c=!0;return}o=!0,[i,r]=[r,i],i.forEach(g),i.clear(),o=!1,c&&(c=!1,m.process(y))}};return m}const c4=40;function xx(n,a){let i=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>i=!0,d=qr.reduce((M,K)=>(M[K]=u4(c),M),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:y,update:v,preRender:b,render:j,postRender:N}=d,A=()=>{const M=Vn.useManualTiming?o.timestamp:performance.now();i=!1,Vn.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(M-o.timestamp,c4),1)),o.timestamp=M,o.isProcessing=!0,p.process(o),g.process(o),m.process(o),y.process(o),v.process(o),b.process(o),j.process(o),N.process(o),o.isProcessing=!1,i&&a&&(r=!1,n(A))},E=()=>{i=!0,r=!0,o.isProcessing||n(A)};return{schedule:qr.reduce((M,K)=>{const U=d[K];return M[K]=(Z,Q=!1,J=!1)=>(i||E(),U.schedule(Z,Q,J)),M},{}),cancel:M=>{for(let K=0;K<qr.length;K++)d[qr[K]].cancel(M)},state:o,steps:d}}const{schedule:_e,cancel:fa,state:dt,steps:$c}=xx(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Wt,!0);let $r;function f4(){$r=void 0}const Ct={now:()=>($r===void 0&&Ct.set(dt.isProcessing||Vn.useManualTiming?dt.timestamp:performance.now()),$r),set:n=>{$r=n,queueMicrotask(f4)}},vx=n=>a=>typeof a=="string"&&a.startsWith(n),od=vx("--"),d4=vx("var(--"),ud=n=>d4(n)?h4.test(n.split("/*")[0].trim()):!1,h4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Xs={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},ol=le(X({},Xs),{transform:n=>Un(0,1,n)}),Pr=le(X({},Xs),{default:1}),el=n=>Math.round(n*1e5)/1e5,cd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function m4(n){return n==null}const p4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fd=(n,a)=>i=>!!(typeof i=="string"&&p4.test(i)&&i.startsWith(n)||a&&!m4(i)&&Object.prototype.hasOwnProperty.call(i,a)),bx=(n,a,i)=>r=>{if(typeof r!="string")return r;const[o,c,d,p]=r.match(cd);return{[n]:parseFloat(o),[a]:parseFloat(c),[i]:parseFloat(d),alpha:p!==void 0?parseFloat(p):1}},g4=n=>Un(0,255,n),Jc=le(X({},Xs),{transform:n=>Math.round(g4(n))}),Va={test:fd("rgb","red"),parse:bx("red","green","blue"),transform:({red:n,green:a,blue:i,alpha:r=1})=>"rgba("+Jc.transform(n)+", "+Jc.transform(a)+", "+Jc.transform(i)+", "+el(ol.transform(r))+")"};function y4(n){let a="",i="",r="",o="";return n.length>5?(a=n.substring(1,3),i=n.substring(3,5),r=n.substring(5,7),o=n.substring(7,9)):(a=n.substring(1,2),i=n.substring(2,3),r=n.substring(3,4),o=n.substring(4,5),a+=a,i+=i,r+=r,o+=o),{red:parseInt(a,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const wf={test:fd("#"),parse:y4,transform:Va.transform},jl=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),ua=jl("deg"),yn=jl("%"),oe=jl("px"),x4=jl("vh"),v4=jl("vw"),ag=le(X({},yn),{parse:n=>yn.parse(n)/100,transform:n=>yn.transform(n*100)}),Ls={test:fd("hsl","hue"),parse:bx("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:i,alpha:r=1})=>"hsla("+Math.round(n)+", "+yn.transform(el(a))+", "+yn.transform(el(i))+", "+el(ol.transform(r))+")"},tt={test:n=>Va.test(n)||wf.test(n)||Ls.test(n),parse:n=>Va.test(n)?Va.parse(n):Ls.test(n)?Ls.parse(n):wf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Va.transform(n):Ls.transform(n),getAnimatableNone:n=>{const a=tt.parse(n);return a.alpha=0,tt.transform(a)}},b4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function S4(n){var a,i;return isNaN(n)&&typeof n=="string"&&(((a=n.match(cd))==null?void 0:a.length)||0)+(((i=n.match(b4))==null?void 0:i.length)||0)>0}const Sx="number",wx="color",w4="var",j4="var(",sg="${}",N4=/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 ul(n){const a=n.toString(),i=[],r={color:[],number:[],var:[]},o=[];let c=0;const p=a.replace(N4,g=>(tt.test(g)?(r.color.push(c),o.push(wx),i.push(tt.parse(g))):g.startsWith(j4)?(r.var.push(c),o.push(w4),i.push(g)):(r.number.push(c),o.push(Sx),i.push(parseFloat(g))),++c,sg)).split(sg);return{values:i,split:p,indexes:r,types:o}}function jx(n){return ul(n).values}function Nx(n){const{split:a,types:i}=ul(n),r=a.length;return o=>{let c="";for(let d=0;d<r;d++)if(c+=a[d],o[d]!==void 0){const p=i[d];p===Sx?c+=el(o[d]):p===wx?c+=tt.transform(o[d]):c+=o[d]}return c}}const T4=n=>typeof n=="number"?0:tt.test(n)?tt.getAnimatableNone(n):n;function E4(n){const a=jx(n);return Nx(n)(a.map(T4))}const da={test:S4,parse:jx,createTransformer:Nx,getAnimatableNone:E4};function Wc(n,a,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?n+(a-n)*6*i:i<1/2?a:i<2/3?n+(a-n)*(2/3-i)*6:n}function A4({hue:n,saturation:a,lightness:i,alpha:r}){n/=360,a/=100,i/=100;let o=0,c=0,d=0;if(!a)o=c=d=i;else{const p=i<.5?i*(1+a):i+a-i*a,g=2*i-p;o=Wc(g,p,n+1/3),c=Wc(g,p,n),d=Wc(g,p,n-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(d*255),alpha:r}}function so(n,a){return i=>i>0?a:n}const Pe=(n,a,i)=>n+(a-n)*i,Ic=(n,a,i)=>{const r=n*n,o=i*(a*a-r)+r;return o<0?0:Math.sqrt(o)},C4=[wf,Va,Ls],R4=n=>C4.find(a=>a.test(n));function ig(n){const a=R4(n);if(!a)return!1;let i=a.parse(n);return a===Ls&&(i=A4(i)),i}const lg=(n,a)=>{const i=ig(n),r=ig(a);if(!i||!r)return so(n,a);const o=X({},i);return c=>(o.red=Ic(i.red,r.red,c),o.green=Ic(i.green,r.green,c),o.blue=Ic(i.blue,r.blue,c),o.alpha=Pe(i.alpha,r.alpha,c),Va.transform(o))},jf=new Set(["none","hidden"]);function D4(n,a){return jf.has(n)?i=>i<=0?n:a:i=>i>=1?a:n}function M4(n,a){return i=>Pe(n,a,i)}function dd(n){return typeof n=="number"?M4:typeof n=="string"?ud(n)?so:tt.test(n)?lg:z4:Array.isArray(n)?Tx:typeof n=="object"?tt.test(n)?lg:O4:so}function Tx(n,a){const i=[...n],r=i.length,o=n.map((c,d)=>dd(c)(c,a[d]));return c=>{for(let d=0;d<r;d++)i[d]=o[d](c);return i}}function O4(n,a){const i=X(X({},n),a),r={};for(const o in i)n[o]!==void 0&&a[o]!==void 0&&(r[o]=dd(n[o])(n[o],a[o]));return o=>{for(const c in r)i[c]=r[c](o);return i}}function L4(n,a){var o;const i=[],r={color:0,var:0,number:0};for(let c=0;c<a.values.length;c++){const d=a.types[c],p=n.indexes[d][r[d]],g=(o=n.values[p])!=null?o:0;i[c]=g,r[d]++}return i}const z4=(n,a)=>{const i=da.createTransformer(a),r=ul(n),o=ul(a);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?jf.has(n)&&!o.values.length||jf.has(a)&&!r.values.length?D4(n,a):Sl(Tx(L4(r,o),o.values),i):so(n,a)};function Ex(n,a,i){return typeof n=="number"&&typeof a=="number"&&typeof i=="number"?Pe(n,a,i):dd(n)(n,a)}const B4=n=>{const a=({timestamp:i})=>n(i);return{start:(i=!0)=>_e.update(a,i),stop:()=>fa(a),now:()=>dt.isProcessing?dt.timestamp:Ct.now()}},Ax=(n,a,i=10)=>{let r="";const o=Math.max(Math.round(a/i),2);for(let c=0;c<o;c++)r+=Math.round(n(c/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},io=2e4;function hd(n){let a=0;const i=50;let r=n.next(a);for(;!r.done&&a<io;)a+=i,r=n.next(a);return a>=io?1/0:a}function U4(n,a=100,i){const r=i(le(X({},n),{keyframes:[0,a]})),o=Math.min(hd(r),io);return{type:"keyframes",ease:c=>r.next(o*c).value/a,duration:gn(o)}}const V4=5;function Cx(n,a,i){const r=Math.max(a-V4,0);return rx(i-n(r),a-r)}const Fe={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},ef=.001;function _4({duration:n=Fe.duration,bounce:a=Fe.bounce,velocity:i=Fe.velocity,mass:r=Fe.mass}){let o,c,d=1-a;d=Un(Fe.minDamping,Fe.maxDamping,d),n=Un(Fe.minDuration,Fe.maxDuration,gn(n)),d<1?(o=m=>{const y=m*d,v=y*n,b=y-i,j=Nf(m,d),N=Math.exp(-v);return ef-b/j*N},c=m=>{const v=m*d*n,b=v*i+i,j=Math.pow(d,2)*Math.pow(m,2)*n,N=Math.exp(-v),A=Nf(Math.pow(m,2),d);return(-o(m)+ef>0?-1:1)*((b-j)*N)/A}):(o=m=>{const y=Math.exp(-m*n),v=(m-i)*n+1;return-ef+y*v},c=m=>{const y=Math.exp(-m*n),v=(i-m)*(n*n);return y*v});const p=5/n,g=H4(o,c,p);if(n=pn(n),isNaN(g))return{stiffness:Fe.stiffness,damping:Fe.damping,duration:n};{const m=Math.pow(g,2)*r;return{stiffness:m,damping:d*2*Math.sqrt(r*m),duration:n}}}const k4=12;function H4(n,a,i){let r=i;for(let o=1;o<k4;o++)r=r-n(r)/a(r);return r}function Nf(n,a){return n*Math.sqrt(1-a*a)}const q4=["duration","bounce"],P4=["stiffness","damping","mass"];function rg(n,a){return a.some(i=>n[i]!==void 0)}function Y4(n){let a=X({velocity:Fe.velocity,stiffness:Fe.stiffness,damping:Fe.damping,mass:Fe.mass,isResolvedFromDuration:!1},n);if(!rg(n,P4)&&rg(n,q4))if(n.visualDuration){const i=n.visualDuration,r=2*Math.PI/(i*1.2),o=r*r,c=2*Un(.05,1,1-(n.bounce||0))*Math.sqrt(o);a=le(X({},a),{mass:Fe.mass,stiffness:o,damping:c})}else{const i=_4(n);a=le(X(X({},a),i),{mass:Fe.mass}),a.isResolvedFromDuration=!0}return a}function lo(n=Fe.visualDuration,a=Fe.bounce){const i=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:r,restDelta:o}=i;const c=i.keyframes[0],d=i.keyframes[i.keyframes.length-1],p={done:!1,value:c},{stiffness:g,damping:m,mass:y,duration:v,velocity:b,isResolvedFromDuration:j}=Y4(le(X({},i),{velocity:-gn(i.velocity||0)})),N=b||0,A=m/(2*Math.sqrt(g*y)),E=d-c,O=gn(Math.sqrt(g/y)),L=Math.abs(E)<5;r||(r=L?Fe.restSpeed.granular:Fe.restSpeed.default),o||(o=L?Fe.restDelta.granular:Fe.restDelta.default);let M;if(A<1){const U=Nf(O,A);M=Z=>{const Q=Math.exp(-A*O*Z);return d-Q*((N+A*O*E)/U*Math.sin(U*Z)+E*Math.cos(U*Z))}}else if(A===1)M=U=>d-Math.exp(-O*U)*(E+(N+O*E)*U);else{const U=O*Math.sqrt(A*A-1);M=Z=>{const Q=Math.exp(-A*O*Z),J=Math.min(U*Z,300);return d-Q*((N+A*O*E)*Math.sinh(J)+U*E*Math.cosh(J))/U}}const K={calculatedDuration:j&&v||null,next:U=>{const Z=M(U);if(j)p.done=U>=v;else{let Q=U===0?N:0;A<1&&(Q=U===0?pn(N):Cx(M,U,Z));const J=Math.abs(Q)<=r,ce=Math.abs(d-Z)<=o;p.done=J&&ce}return p.value=p.done?d:Z,p},toString:()=>{const U=Math.min(hd(K),io),Z=Ax(Q=>K.next(U*Q).value,U,30);return U+"ms "+Z},toTransition:()=>{}};return K}lo.applyToOptions=n=>{const a=U4(n,100,lo);return n.ease=a.ease,n.duration=pn(a.duration),n.type="keyframes",n};function Tf({keyframes:n,velocity:a=0,power:i=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:d,min:p,max:g,restDelta:m=.5,restSpeed:y}){const v=n[0],b={done:!1,value:v},j=J=>p!==void 0&&J<p||g!==void 0&&J>g,N=J=>p===void 0?g:g===void 0||Math.abs(p-J)<Math.abs(g-J)?p:g;let A=i*a;const E=v+A,O=d===void 0?E:d(E);O!==E&&(A=O-v);const L=J=>-A*Math.exp(-J/r),M=J=>O+L(J),K=J=>{const ce=L(J),Se=M(J);b.done=Math.abs(ce)<=m,b.value=b.done?O:Se};let U,Z;const Q=J=>{j(b.value)&&(U=J,Z=lo({keyframes:[b.value,N(b.value)],velocity:Cx(M,J,b.value),damping:o,stiffness:c,restDelta:m,restSpeed:y}))};return Q(0),{calculatedDuration:null,next:J=>{let ce=!1;return!Z&&U===void 0&&(ce=!0,K(J),Q(J)),U!==void 0&&J>=U?Z.next(J-U):(!ce&&K(J),b)}}}function G4(n,a,i){const r=[],o=i||Vn.mix||Ex,c=n.length-1;for(let d=0;d<c;d++){let p=o(n[d],n[d+1]);if(a){const g=Array.isArray(a)?a[d]||Wt:a;p=Sl(g,p)}r.push(p)}return r}function X4(n,a,{clamp:i=!0,ease:r,mixer:o}={}){const c=n.length;if(ad(c===a.length),c===1)return()=>a[0];if(c===2&&a[0]===a[1])return()=>a[1];const d=n[0]===n[1];n[0]>n[c-1]&&(n=[...n].reverse(),a=[...a].reverse());const p=G4(a,r,o),g=p.length,m=y=>{if(d&&y<n[0])return a[0];let v=0;if(g>1)for(;v<n.length-2&&!(y<n[v+1]);v++);const b=rl(n[v],n[v+1],y);return p[v](b)};return i?y=>m(Un(n[0],n[c-1],y)):m}function K4(n,a){const i=n[n.length-1];for(let r=1;r<=a;r++){const o=rl(0,a,r);n.push(Pe(i,1,o))}}function F4(n){const a=[0];return K4(a,n.length-1),a}function Z4(n,a){return n.map(i=>i*a)}function Q4(n,a){return n.map(()=>a||gx).splice(0,n.length-1)}function tl({duration:n=300,keyframes:a,times:i,ease:r="easeInOut"}){const o=l4(r)?r.map(ng):ng(r),c={done:!1,value:a[0]},d=Z4(i&&i.length===a.length?i:F4(a),n),p=X4(d,a,{ease:Array.isArray(o)?o:Q4(a,o)});return{calculatedDuration:n,next:g=>(c.value=p(g),c.done=g>=n,c)}}const $4=n=>n!==null;function md(n,{repeat:a,repeatType:i="loop"},r,o=1){const c=n.filter($4),p=o<0||a&&i!=="loop"&&a%2===1?0:c.length-1;return!p||r===void 0?c[p]:r}const J4={decay:Tf,inertia:Tf,tween:tl,keyframes:tl,spring:lo};function Rx(n){typeof n.type=="string"&&(n.type=J4[n.type])}class pd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,i){return this.finished.then(a,i)}}const W4=n=>n/100;class gd extends pd{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:i}=this.options;i&&i.updatedAt!==Ct.now()&&this.tick(Ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;Rx(a);const{type:i=tl,repeat:r=0,repeatDelay:o=0,repeatType:c,velocity:d=0}=a;let{keyframes:p}=a;const g=i||tl;g!==tl&&typeof p[0]!="number"&&(this.mixKeyframes=Sl(W4,Ex(p[0],p[1])),p=[0,100]);const m=g(le(X({},a),{keyframes:p}));c==="mirror"&&(this.mirroredGenerator=g(le(X({},a),{keyframes:[...p].reverse(),velocity:-d}))),m.calculatedDuration===null&&(m.calculatedDuration=hd(m));const{calculatedDuration:y}=m;this.calculatedDuration=y,this.resolvedDuration=y+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=m}updateTime(a){const i=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(a,i=!1){const{generator:r,totalDuration:o,mixKeyframes:c,mirroredGenerator:d,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return r.next(0);const{delay:m=0,keyframes:y,repeat:v,repeatType:b,repeatDelay:j,type:N,onUpdate:A,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-o/this.speed,this.startTime)),i?this.currentTime=a:this.updateTime(a);const O=this.currentTime-m*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?O<0:O>o;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let M=this.currentTime,K=r;if(v){const J=Math.min(this.currentTime,o)/p;let ce=Math.floor(J),Se=J%1;!Se&&J>=1&&(Se=1),Se===1&&ce--,ce=Math.min(ce,v+1),!!(ce%2)&&(b==="reverse"?(Se=1-Se,j&&(Se-=j/p)):b==="mirror"&&(K=d)),M=Un(0,1,Se)*p}const U=L?{done:!1,value:y[0]}:K.next(M);c&&(U.value=c(U.value));let{done:Z}=U;!L&&g!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return Q&&N!==Tf&&(U.value=md(y,this.options,E,this.speed)),A&&A(U.value),Q&&this.finish(),U}then(a,i){return this.finished.then(a,i)}get duration(){return gn(this.calculatedDuration)}get time(){return gn(this.currentTime)}set time(a){var i;a=pn(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),(i=this.driver)==null||i.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(Ct.now());const i=this.playbackSpeed!==a;this.playbackSpeed=a,i&&(this.time=gn(this.currentTime))}play(){var o,c;if(this.isStopped)return;const{driver:a=B4,startTime:i}=this.options;this.driver||(this.driver=a(d=>this.tick(d))),(c=(o=this.options).onPlay)==null||c.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=i!=null?i:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ct.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(a=this.options).onComplete)==null||i.call(a)}cancel(){var a,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(a=this.options).onCancel)==null||i.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),a.observe(this)}}function I4(n){var a;for(let i=1;i<n.length;i++)(a=n[i])!=null||(n[i]=n[i-1])}const _a=n=>n*180/Math.PI,Ef=n=>{const a=_a(Math.atan2(n[1],n[0]));return Af(a)},eN={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Ef,rotateZ:Ef,skewX:n=>_a(Math.atan(n[1])),skewY:n=>_a(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Af=n=>(n=n%360,n<0&&(n+=360),n),og=Ef,ug=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),cg=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),tN={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ug,scaleY:cg,scale:n=>(ug(n)+cg(n))/2,rotateX:n=>Af(_a(Math.atan2(n[6],n[5]))),rotateY:n=>Af(_a(Math.atan2(-n[2],n[0]))),rotateZ:og,rotate:og,skewX:n=>_a(Math.atan(n[4])),skewY:n=>_a(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Cf(n){return n.includes("scale")?1:0}function Rf(n,a){if(!n||n==="none")return Cf(a);const i=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(i)r=tN,o=i;else{const p=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=eN,o=p}if(!o)return Cf(a);const c=r[a],d=o[1].split(",").map(aN);return typeof c=="function"?c(d):d[c]}const nN=(n,a)=>{const{transform:i="none"}=getComputedStyle(n);return Rf(i,a)};function aN(n){return parseFloat(n.trim())}const Ks=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fs=new Set(Ks),fg=n=>n===Xs||n===oe,sN=new Set(["x","y","z"]),iN=Ks.filter(n=>!sN.has(n));function lN(n){const a=[];return iN.forEach(i=>{const r=n.getValue(i);r!==void 0&&(a.push([i,r.get()]),r.set(i.startsWith("scale")?1:0))}),a}const Ha={width:({x:n},{paddingLeft:a="0",paddingRight:i="0"})=>n.max-n.min-parseFloat(a)-parseFloat(i),height:({y:n},{paddingTop:a="0",paddingBottom:i="0"})=>n.max-n.min-parseFloat(a)-parseFloat(i),top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>Rf(a,"x"),y:(n,{transform:a})=>Rf(a,"y")};Ha.translateX=Ha.x;Ha.translateY=Ha.y;const qa=new Set;let Df=!1,Mf=!1,Of=!1;function Dx(){if(Mf){const n=Array.from(qa).filter(r=>r.needsMeasurement),a=new Set(n.map(r=>r.element)),i=new Map;a.forEach(r=>{const o=lN(r);o.length&&(i.set(r,o),r.render())}),n.forEach(r=>r.measureInitialState()),a.forEach(r=>{r.render();const o=i.get(r);o&&o.forEach(([c,d])=>{var p;(p=r.getValue(c))==null||p.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Mf=!1,Df=!1,qa.forEach(n=>n.complete(Of)),qa.clear()}function Mx(){qa.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Mf=!0)})}function rN(){Of=!0,Mx(),Dx(),Of=!1}class yd{constructor(a,i,r,o,c,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=i,this.name=r,this.motionValue=o,this.element=c,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(qa.add(this),Df||(Df=!0,_e.read(Mx),_e.resolveKeyframes(Dx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:i,element:r,motionValue:o}=this;if(a[0]===null){const c=o==null?void 0:o.get(),d=a[a.length-1];if(c!==void 0)a[0]=c;else if(r&&i){const p=r.readValue(i,d);p!=null&&(a[0]=p)}a[0]===void 0&&(a[0]=d),o&&c===void 0&&o.set(a[0])}I4(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),qa.delete(this)}cancel(){this.state==="scheduled"&&(qa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const oN=n=>n.startsWith("--");function uN(n,a,i){oN(a)?n.style.setProperty(a,i):n.style[a]=i}const cN=sd(()=>window.ScrollTimeline!==void 0),fN={};function dN(n,a){const i=sd(n);return()=>{var r;return(r=fN[a])!=null?r:i()}}const Ox=dN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(n){return!1}return!0},"linearEasing"),Ii=([n,a,i,r])=>`cubic-bezier(${n}, ${a}, ${i}, ${r})`,dg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ii([0,.65,.55,1]),circOut:Ii([.55,0,1,.45]),backIn:Ii([.31,.01,.66,-.59]),backOut:Ii([.33,1.53,.69,.99])};function Lx(n,a){if(n)return typeof n=="function"?Ox()?Ax(n,a):"ease-out":yx(n)?Ii(n):Array.isArray(n)?n.map(i=>Lx(i,a)||dg.easeOut):dg[n]}function hN(n,a,i,{delay:r=0,duration:o=300,repeat:c=0,repeatType:d="loop",ease:p="easeOut",times:g}={},m=void 0){const y={[a]:i};g&&(y.offset=g);const v=Lx(p,o);Array.isArray(v)&&(y.easing=v);const b={delay:r,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:c+1,direction:d==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),n.animate(y,b)}function zx(n){return typeof n=="function"&&"applyToOptions"in n}function mN(i){var r=i,{type:n}=r,a=ot(r,["type"]);var o,c;return zx(n)&&Ox()?n.applyToOptions(a):((o=a.duration)!=null||(a.duration=300),(c=a.ease)!=null||(a.ease="easeOut"),a)}class pN extends pd{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:i,name:r,keyframes:o,pseudoElement:c,allowFlatten:d=!1,finalKeyframe:p,onComplete:g}=a;this.isPseudoElement=!!c,this.allowFlatten=d,this.options=a,ad(typeof a.type!="string");const m=mN(a);this.animation=hN(i,r,o,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const y=md(o,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(y):uN(i,r,y),this.animation.cancel()}g==null||g(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,i;(i=(a=this.animation).finish)==null||i.call(a)}cancel(){try{this.animation.cancel()}catch(a){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var a,i;this.isPseudoElement||(i=(a=this.animation).commitStyles)==null||i.call(a)}get duration(){var i,r;const a=((r=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:r.call(i).duration)||0;return gn(Number(a))}get time(){return gn(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=pn(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(a){this.animation.startTime=a}attachTimeline({timeline:a,observe:i}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&cN()?(this.animation.timeline=a,Wt):i(this)}}const Bx={anticipate:hx,backInOut:dx,circInOut:px};function gN(n){return n in Bx}function yN(n){typeof n.ease=="string"&&gN(n.ease)&&(n.ease=Bx[n.ease])}const hg=10;class xN extends pN{constructor(a){yN(a),Rx(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){var y;const m=this.options,{motionValue:i,onUpdate:r,onComplete:o,element:c}=m,d=ot(m,["motionValue","onUpdate","onComplete","element"]);if(!i)return;if(a!==void 0){i.set(a);return}const p=new gd(le(X({},d),{autoplay:!1})),g=pn((y=this.finishedTime)!=null?y:this.time);i.setWithVelocity(p.sample(g-hg).value,p.sample(g).value,hg),p.stop()}}const mg=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(da.test(n)||n==="0")&&!n.startsWith("url("));function vN(n){const a=n[0];if(n.length===1)return!0;for(let i=0;i<n.length;i++)if(n[i]!==a)return!0}function bN(n,a,i,r){const o=n[0];if(o===null)return!1;if(a==="display"||a==="visibility")return!0;const c=n[n.length-1],d=mg(o,a),p=mg(c,a);return!d||!p?!1:vN(n)||(i==="spring"||zx(i))&&r}function Lf(n){n.duration=0,n.type}const SN=new Set(["opacity","clipPath","filter","transform"]),wN=sd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function jN(n){var y;const{motionValue:a,name:i,repeatDelay:r,repeatType:o,damping:c,type:d}=n;if(!(((y=a==null?void 0:a.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=a.owner.getProps();return wN()&&i&&SN.has(i)&&(i!=="transform"||!m)&&!g&&!r&&o!=="mirror"&&c!==0&&d!=="inertia"}const NN=40;class TN extends pd{constructor(b){var j=b,{autoplay:a=!0,delay:i=0,type:r="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:d="loop",keyframes:p,name:g,motionValue:m,element:y}=j,v=ot(j,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var E;super(),this.stop=()=>{var O,L;this._animation&&(this._animation.stop(),(O=this.stopTimeline)==null||O.call(this)),(L=this.keyframeResolver)==null||L.cancel()},this.createdAt=Ct.now();const N=X({autoplay:a,delay:i,type:r,repeat:o,repeatDelay:c,repeatType:d,name:g,motionValue:m,element:y},v),A=(y==null?void 0:y.KeyframeResolver)||yd;this.keyframeResolver=new A(p,(O,L,M)=>this.onKeyframesResolved(O,L,N,!M),g,m,y),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(a,i,r,o){this.keyframeResolver=void 0;const{name:c,type:d,velocity:p,delay:g,isHandoff:m,onUpdate:y}=r;this.resolvedAt=Ct.now(),bN(a,c,d,p)||((Vn.instantAnimations||!g)&&(y==null||y(md(a,r,i))),a[0]=a[a.length-1],Lf(r),r.repeat=0);const v=o?this.resolvedAt?this.resolvedAt-this.createdAt>NN?this.resolvedAt:this.createdAt:this.createdAt:void 0,b=le(X({startTime:v,finalKeyframe:i},r),{keyframes:a}),j=!m&&jN(b)?new xN(le(X({},b),{element:b.motionValue.owner.current})):new gd(b);j.finished.then(()=>this.notifyFinished()).catch(Wt),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}get finished(){return this._animation?this.animation.finished:this._finished}then(a,i){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),rN()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}const EN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function AN(n){const a=EN.exec(n);if(!a)return[,];const[,i,r,o]=a;return[`--${i!=null?i:r}`,o]}function Ux(n,a,i=1){const[r,o]=AN(n);if(!r)return;const c=window.getComputedStyle(a).getPropertyValue(r);if(c){const d=c.trim();return sx(d)?parseFloat(d):d}return ud(o)?Ux(o,a,i+1):o}function xd(n,a){var i,r;return(r=(i=n==null?void 0:n[a])!=null?i:n==null?void 0:n.default)!=null?r:n}const Vx=new Set(["width","height","top","left","right","bottom",...Ks]),CN={test:n=>n==="auto",parse:n=>n},_x=n=>a=>a.test(n),kx=[Xs,oe,yn,ua,v4,x4,CN],pg=n=>kx.find(_x(n));function RN(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||lx(n):!0}const DN=new Set(["brightness","contrast","saturate","opacity"]);function MN(n){const[a,i]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[r]=i.match(cd)||[];if(!r)return n;const o=i.replace(r,"");let c=DN.has(a)?1:0;return r!==i&&(c*=100),a+"("+c+o+")"}const ON=/\b([a-z-]*)\(.*?\)/gu,zf=le(X({},da),{getAnimatableNone:n=>{const a=n.match(ON);return a?a.map(MN).join(" "):n}}),gg=le(X({},Xs),{transform:Math.round}),LN={rotate:ua,rotateX:ua,rotateY:ua,rotateZ:ua,scale:Pr,scaleX:Pr,scaleY:Pr,scaleZ:Pr,skew:ua,skewX:ua,skewY:ua,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:ol,originX:ag,originY:ag,originZ:oe},vd=le(X({borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,backgroundPositionX:oe,backgroundPositionY:oe},LN),{zIndex:gg,fillOpacity:ol,strokeOpacity:ol,numOctaves:gg}),zN=le(X({},vd),{color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,filter:zf,WebkitFilter:zf}),Hx=n=>zN[n];function qx(n,a){let i=Hx(n);return i!==zf&&(i=da),i.getAnimatableNone?i.getAnimatableNone(a):void 0}const BN=new Set(["auto","none","0"]);function UN(n,a,i){let r=0,o;for(;r<n.length&&!o;){const c=n[r];typeof c=="string"&&!BN.has(c)&&ul(c).values.length&&(o=n[r]),r++}if(o&&i)for(const c of a)n[c]=qx(i,o)}class VN extends yd{constructor(a,i,r,o,c){super(a,i,r,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:i,name:r}=this;if(!i||!i.current)return;super.readKeyframes();for(let g=0;g<a.length;g++){let m=a[g];if(typeof m=="string"&&(m=m.trim(),ud(m))){const y=Ux(m,i.current);y!==void 0&&(a[g]=y),g===a.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Vx.has(r)||a.length!==2)return;const[o,c]=a,d=pg(o),p=pg(c);if(d!==p)if(fg(d)&&fg(p))for(let g=0;g<a.length;g++){const m=a[g];typeof m=="string"&&(a[g]=parseFloat(m))}else Ha[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:i}=this,r=[];for(let o=0;o<a.length;o++)(a[o]===null||RN(a[o]))&&r.push(o);r.length&&UN(a,r,i)}measureInitialState(){const{element:a,unresolvedKeyframes:i,name:r}=this;if(!a||!a.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ha[r](a.measureViewportBox(),window.getComputedStyle(a.current)),i[0]=this.measuredOrigin;const o=i[i.length-1];o!==void 0&&a.getValue(r,o).jump(o,!1)}measureEndState(){var p;const{element:a,name:i,unresolvedKeyframes:r}=this;if(!a||!a.current)return;const o=a.getValue(i);o&&o.jump(this.measuredOrigin,!1);const c=r.length-1,d=r[c];r[c]=Ha[i](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(p=this.removedTransforms)!=null&&p.length&&this.removedTransforms.forEach(([g,m])=>{a.getValue(g).set(m)}),this.resolveNoneKeyframes()}}function _N(n,a,i){var r;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let o=document;const c=(r=i==null?void 0:i[n])!=null?r:o.querySelectorAll(n);return c?Array.from(c):[]}return Array.from(n)}const Px=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function Yx(n){return ix(n)&&"offsetHeight"in n}const yg=30,kN=n=>!isNaN(parseFloat(n));class HN{constructor(a,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var c;const o=Ct.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=i.owner}setCurrent(a){this.current=a,this.updatedAt=Ct.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=kN(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,i){this.events[a]||(this.events[a]=new id);const r=this.events[a].add(i);return a==="change"?()=>{r(),_e.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,i){this.passiveEffect=a,this.stopPassiveEffect=i}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,i,r){this.set(i),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-r}jump(a,i=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=Ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>yg)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,yg);return rx(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(a){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=a(i),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(){var a,i;(a=this.dependents)==null||a.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ks(n,a){return new HN(n,a)}const{schedule:bd}=xx(queueMicrotask,!1),sn={x:!1,y:!1};function Gx(){return sn.x||sn.y}function qN(n){return n==="x"||n==="y"?sn[n]?null:(sn[n]=!0,()=>{sn[n]=!1}):sn.x||sn.y?null:(sn.x=sn.y=!0,()=>{sn.x=sn.y=!1})}function Xx(n,a){const i=_N(n),r=new AbortController,o=le(X({passive:!0},a),{signal:r.signal});return[i,o,()=>r.abort()]}function xg(n){return!(n.pointerType==="touch"||Gx())}function PN(n,a,i={}){const[r,o,c]=Xx(n,i),d=p=>{if(!xg(p))return;const{target:g}=p,m=a(g,p);if(typeof m!="function"||!g)return;const y=v=>{xg(v)&&(m(v),g.removeEventListener("pointerleave",y))};g.addEventListener("pointerleave",y,o)};return r.forEach(p=>{p.addEventListener("pointerenter",d,o)}),c}const Kx=(n,a)=>a?n===a?!0:Kx(n,a.parentElement):!1,Sd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,YN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function GN(n){return YN.has(n.tagName)||n.tabIndex!==-1}const Jr=new WeakSet;function vg(n){return a=>{a.key==="Enter"&&n(a)}}function tf(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const XN=(n,a)=>{const i=n.currentTarget;if(!i)return;const r=vg(()=>{if(Jr.has(i))return;tf(i,"down");const o=vg(()=>{tf(i,"up")}),c=()=>tf(i,"cancel");i.addEventListener("keyup",o,a),i.addEventListener("blur",c,a)});i.addEventListener("keydown",r,a),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),a)};function bg(n){return Sd(n)&&!Gx()}function KN(n,a,i={}){const[r,o,c]=Xx(n,i),d=p=>{const g=p.currentTarget;if(!bg(p))return;Jr.add(g);const m=a(g,p),y=(j,N)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),Jr.has(g)&&Jr.delete(g),bg(j)&&typeof m=="function"&&m(j,{success:N})},v=j=>{y(j,g===window||g===document||i.useGlobalTarget||Kx(g,j.target))},b=j=>{y(j,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",b,o)};return r.forEach(p=>{(i.useGlobalTarget?window:p).addEventListener("pointerdown",d,o),Yx(p)&&(p.addEventListener("focus",m=>XN(m,o)),!GN(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),c}function Fx(n){return ix(n)&&"ownerSVGElement"in n}function FN(n){return Fx(n)&&n.tagName==="svg"}const yt=n=>!!(n&&n.getVelocity),ZN=[...kx,tt,da],QN=n=>ZN.find(_x(n)),wd=w.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class $N extends w.Component{getSnapshotBeforeUpdate(a){const i=this.props.childRef.current;if(i&&a.isPresent&&!this.props.isPresent){const r=i.offsetParent,o=Yx(r)&&r.offsetWidth||0,c=this.props.sizeRef.current;c.height=i.offsetHeight||0,c.width=i.offsetWidth||0,c.top=i.offsetTop,c.left=i.offsetLeft,c.right=o-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function JN({children:n,isPresent:a,anchorX:i,root:r}){const o=w.useId(),c=w.useRef(null),d=w.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=w.useContext(wd);return w.useInsertionEffect(()=>{const{width:g,height:m,top:y,left:v,right:b}=d.current;if(a||!c.current||!g||!m)return;const j=i==="left"?`left: ${v}`:`right: ${b}`;c.current.dataset.motionPopId=o;const N=document.createElement("style");p&&(N.nonce=p);const A=r!=null?r:document.head;return A.appendChild(N),N.sheet&&N.sheet.insertRule(`
67
+ }`),[g,m]=w.useState(""),[y,v]=w.useState(!1),b=j=>Re(null,null,function*(){var N;j.preventDefault(),m("");try{const A=JSON.parse(d);v(!0);const T=yield pe.post(`${We}/api/operation/create/?dbName=${r}&collectionName=${o}`,X({},A));if(T.status===200||T.status===201){const O=(N=T.data.data)==null?void 0:N.documentId,z=le(X({},A),{documentId:O||`doc_${Date.now()}`,updatedAt:new Date().toISOString()});i(z),a(),typeof c=="function"&&c()}else throw new Error("Failed to insert document")}catch(A){A instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error inserting document: ${A.message}`),v(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:f.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[f.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[f.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Insert New Document"]}),f.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:f.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),f.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[f.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-blue-50 p-3 rounded-md",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-blue-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),f.jsxs("p",{className:"text-sm text-blue-700",children:["Enter the document data in JSON format to insert into"," ",f.jsx("span",{className:"font-semibold",children:o})]})]}),g&&f.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:f.jsx("p",{children:g})}),f.jsxs("form",{onSubmit:b,children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Document Data (JSON)"}),f.jsx("textarea",{value:d,onChange:j=>p(j.target.value),className:"w-full h-64 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-blue-500 focus:border-blue-500 shadow-inner bg-gray-50",placeholder:"Enter JSON document data",required:!0}),f.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"The documentId and updatedAt fields will be automatically generated."})]}),f.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[f.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:y,className:`px-4 py-2 rounded-md text-white flex items-center ${y?"bg-green-500":"bg-green-600 hover:bg-green-700"} transition-colors shadow-md`,children:y?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Inserting..."]}):"Insert Document"})]})]})]})]})}):null},Kj=({isOpen:n,onClose:a,onDocumentUpdated:i,document:r,databaseName:o,collectionName:c})=>{const[d,p]=w.useState(""),[g,m]=w.useState(""),[y,v]=w.useState(!1);w.useEffect(()=>{if(r){const j=r,{documentId:N,updatedAt:A}=j,T=ot(j,["documentId","updatedAt"]);p(JSON.stringify(T,null,2))}},[r]);const b=j=>Re(null,null,function*(){var N;j.preventDefault(),m("");try{const A=JSON.parse(d);v(!0);const T=yield pe.put(`${We}/api/operation/update/by-id/?dbName=${o}&collectionName=${c}&documentId=${r.documentId}`,X({},A));if(T.status===200){const O=((N=T.data.data)==null?void 0:N.document)||le(X({},A),{documentId:r.documentId,updatedAt:new Date().toISOString()});i(O),a()}else throw new Error("Failed to update document")}catch(A){A instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error updating document: ${A.message}`),v(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:f.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[f.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[f.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-indigo-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),"Update Document"]}),f.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:f.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),f.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[f.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-indigo-50 p-3 rounded-md",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),f.jsx("p",{className:"text-sm text-indigo-700",children:"Edit the document data in JSON format"})]}),g&&f.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:f.jsx("p",{children:g})}),f.jsxs("form",{onSubmit:b,children:[f.jsxs("div",{className:"mb-4",children:[f.jsxs("div",{className:"flex justify-between items-center mb-2",children:[f.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Document Data (JSON)"}),f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1 text-yellow-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})}),f.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["ID: ",r.documentId]})]})]}),f.jsx("textarea",{value:d,onChange:j=>p(j.target.value),className:"w-full h-64 p-3 border border-gray-300 rounded-md font-mono text-sm focus:ring-indigo-500 focus:border-indigo-500 shadow-inner bg-gray-50",placeholder:"Enter JSON document data",required:!0}),f.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"You cannot change the document's ID. The updatedAt field will be automatically updated."})]}),f.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[f.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:y,className:`px-4 py-2 rounded-md text-white flex items-center ${y?"bg-indigo-500":"bg-indigo-600 hover:bg-indigo-700"} transition-colors shadow-md`,children:y?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Updating..."]}):"Update Document"})]})]})]})]})}):null},Fj=({isOpen:n,onClose:a,onDocumentDeleted:i,documentId:r,databaseName:o,collectionName:c})=>{const[d,p]=w.useState(!1),[g,m]=w.useState(""),y=()=>Re(null,null,function*(){try{if(p(!0),(yield pe.delete(`${We}/api/operation/delete/by-id/?dbName=${o}&collectionName=${c}&documentId=${r}`)).status===200)i(r),a();else throw new Error("Failed to delete document")}catch(v){m(`Error deleting document: ${v.message}`),p(!1)}});return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50 flex justify-center items-center backdrop-blur-sm",children:f.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-md w-full mx-4",children:[f.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[f.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 mr-2 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),"Delete Document"]}),f.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:f.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),f.jsxs("div",{className:"p-6",children:[f.jsx("div",{className:"bg-red-50 p-4 rounded-md mb-5",children:f.jsxs("div",{className:"flex",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsx("svg",{className:"h-5 w-5 text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),f.jsxs("div",{className:"ml-3",children:[f.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Are you sure you want to delete this document?"}),f.jsx("div",{className:"mt-2 text-sm text-red-700",children:f.jsx("p",{children:"This action cannot be undone."})})]})]})}),f.jsxs("div",{className:"mb-5",children:[f.jsx("p",{className:"text-gray-700 mb-2",children:f.jsx("span",{className:"font-medium",children:"Document ID:"})}),f.jsx("div",{className:"bg-gray-50 p-2 rounded border border-gray-200 font-mono text-sm break-all",children:r})]}),f.jsxs("div",{className:"mb-5",children:[f.jsxs("p",{className:"text-gray-700 mb-1",children:[f.jsx("span",{className:"font-medium",children:"Collection:"})," ",c]}),f.jsxs("p",{className:"text-gray-700",children:[f.jsx("span",{className:"font-medium",children:"Database:"})," ",o]})]}),g&&f.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:f.jsx("p",{children:g})}),f.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[f.jsx("button",{type:"button",onClick:a,className:"px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors",children:"Cancel"}),f.jsx("button",{onClick:y,disabled:d,className:`px-4 py-2 rounded-md text-white flex items-center ${d?"bg-red-500":"bg-red-600 hover:bg-red-700"} transition-colors shadow-md`,children:d?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin h-5 w-5 mr-2",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Deleting..."]}):"Delete Document"})]})]})]})}):null},Zj=({isOpen:n,onClose:a,databaseName:i,collectionName:r,onAggregationResults:o})=>{const[c,d]=w.useState('[{ "$match": {} }]'),[p,g]=w.useState(!1),[m,y]=w.useState(null),v=()=>Re(null,null,function*(){var j,N;try{g(!0),y(null);const A=JSON.parse(c),T=yield pe.post(`${We}/api/operation/aggregate/?dbName=${i}&collectionName=${r}`,{aggregation:A},{headers:{"Content-Type":"application/json"}});if(T.data&&T.data.data){const O=T.data.data.documents||T.data.data;o(O,A),a()}}catch(A){console.error("Aggregation error:",A),y(((N=(j=A.response)==null?void 0:j.data)==null?void 0:N.message)||A.message||"Failed to run aggregation")}finally{g(!1)}}),b=()=>{y(null),a()};return n?f.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:f.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-3xl max-h-[90vh] flex flex-col",children:[f.jsxs("div",{className:"px-6 py-4 border-b border-gray-200 flex justify-between items-center bg-gradient-to-r from-indigo-50 to-blue-50",children:[f.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Run Aggregation Pipeline"}),f.jsx("button",{onClick:b,className:"text-gray-500 hover:text-gray-700 focus:outline-none",children:f.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),f.jsxs("div",{className:"flex-1 overflow-auto p-6",children:[f.jsxs("div",{className:"mb-4",children:[f.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Enter your MongoDB aggregation pipeline as a JSON array. Example:"}),f.jsx("div",{className:"bg-gray-50 p-3 rounded-md text-xs font-mono mb-4 border border-gray-200",children:'[{ "$match": { "field": "value" } }, { "$sort": { "field": 1 } }]'}),f.jsxs("p",{className:"text-sm text-gray-600 mb-4",children:["Running on ",f.jsx("span",{className:"font-semibold",children:r})," ","in database ",f.jsx("span",{className:"font-semibold",children:i})]})]}),f.jsxs("div",{className:"mb-4",children:[f.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Aggregation Pipeline"}),f.jsx("textarea",{className:"w-full h-64 px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 font-mono text-sm",value:c,onChange:j=>d(j.target.value),placeholder:'[{ "$match": {} }]'})]}),m&&f.jsx("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 mb-4",children:f.jsxs("div",{className:"flex",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsx("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),f.jsx("div",{className:"ml-3",children:f.jsx("p",{className:"text-sm text-red-700",children:m})})]})})]}),f.jsxs("div",{className:"px-6 py-4 border-t border-gray-200 flex justify-end",children:[f.jsx("button",{onClick:b,className:"px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 hover:bg-gray-200 rounded-md mr-3",children:"Cancel"}),f.jsx("button",{onClick:v,disabled:p,className:`px-4 py-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 rounded-md flex items-center ${p?"opacity-70 cursor-not-allowed":""}`,children:p?f.jsxs(f.Fragment,{children:[f.jsxs("svg",{className:"animate-spin -ml-1 mr-2 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Processing..."]}):f.jsxs(f.Fragment,{children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"Run Aggregation"]})})]})]})}):null},ng=()=>{const[n]=My(),a=pl(),[i,r]=w.useState(!0),[o,c]=w.useState([]),[d,p]=w.useState(!0),[g,m]=w.useState(1),y=w.useRef(),v=n.get("database"),b=n.get("collection"),[j,N]=w.useState(!1),[A,T]=w.useState(!1),[O,z]=w.useState(!1),[M,K]=w.useState(!1),[U,Z]=w.useState(null),[Q,W]=w.useState(!1),[fe,xe]=w.useState([]),[de,ue]=w.useState([]),[Ae,He]=w.useState(""),[ve,H]=w.useState(!1),[F,ee]=w.useState(""),[ge,C]=w.useState(""),P=w.useRef(null),J=w.useRef(null),$=w.useCallback((I=1,Te=!1)=>Re(null,null,function*(){try{r(!0);const qe=yield pe.get(`${We}/api/operation/all/?dbName=${v}&collectionName=${b}&page=${I}`);if(qe.status===200){const en=qe.data.data.data.documents||[];c(Te?en:vt=>[...vt,...en]),p(en.length===10)}r(!1)}catch(qe){console.error("Error fetching documents:",qe),r(!1)}}),[v,b]),ne=w.useCallback((I,Te=1,qe=!1)=>Re(null,null,function*(){try{r(!0);const en=yield pe.post(`${We}/api/operation/all/by-query/?dbName=${v}&collectionName=${b}&page=${Te}`,{query:I},{headers:{"Content-Type":"application/json"}});if(en.status===200){const vt=en.data.data.data.documents||[];c(qe?vt:bt=>[...bt,...vt]),p(vt.length===10)}r(!1)}catch(en){console.error("Error fetching documents by query:",en),r(!1)}}),[v,b]);w.useEffect(()=>{if(!v||!b){a("/collections");return}W(!1),xe([]),H(!1),He(""),ee(""),C(""),P.current&&clearTimeout(P.current),J.current&&clearTimeout(J.current),m(1),c([]),$(1,!0)},[v,b,a,$]);const je=w.useCallback(I=>{i||Q||(y.current&&y.current.disconnect(),y.current=new IntersectionObserver(Te=>{Te[0].isIntersecting&&d&&(m(qe=>qe+1),ve&&Ae?ne(Ae,g+1):$(g+1))}),I&&y.current.observe(I))},[i,d,$,ne,g,Q,ve,Ae]);w.useEffect(()=>()=>{P.current&&clearTimeout(P.current),J.current&&clearTimeout(J.current)},[]);const ce=()=>{a(`/collections?database=${v}`)},xt=I=>{c(Te=>[I,...Te])},Be=I=>{Z(I),T(!0)},It=I=>{Z(I),z(!0)},Ya=()=>Re(null,null,function*(){try{r(!0);const I=yield pe.post(`${We}/api/operation/aggregate/?dbName=${v}&collectionName=${b}`,{aggregation:fe},{headers:{"Content-Type":"application/json"}});I.data&&I.data.data&&ue(I.data.data.documents||I.data.data),r(!1)}catch(I){console.error("Error re-running aggregation:",I),r(!1)}}),Ga=I=>{c(Te=>Te.map(qe=>qe.documentId===I.documentId?I:qe)),Q&&Ya()},Qs=I=>{c(Te=>Te.filter(qe=>qe.documentId!==I)),Q&&Ya()},$s=(I,Te)=>{ue(I),xe(Te),W(!0)},Xa=()=>{W(!1),xe([]),ue([]),ve&&Ae?ne(Ae,1,!0):$(1,!0)},So=I=>{ee(I),P.current&&clearTimeout(P.current),P.current=setTimeout(()=>{kt(I)},500)},wo=I=>{C(I),J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{jo(I)},300)},kt=I=>{try{if(!I.trim()){H(!1),He(""),W(!1),m(1),c([]),$(1,!0);return}const Te=JSON.parse(I);He(Te),H(!0),W(!1),m(1),c([]),ne(Te,1,!0)}catch(Te){console.warn("Invalid JSON query, treating as text search:",Te)}},jo=I=>{if(!I.trim()){F.trim()||(H(!1),He(""),W(!1),m(1),c([]),$(1,!0));return}const Te={documentId:I.trim()};He(Te),H(!0),W(!1),m(1),c([]),ne(Te,1,!0)},Js=()=>{ee(""),C(""),He(""),H(!1),W(!1),m(1),c([]),$(1,!0)},Ws=I=>new Date(I).toLocaleString(),Ka=I=>{try{return!Array.isArray(I)||I.length===0?"No conditions":I.map((qe,en)=>{const vt=Object.keys(qe)[0];return`${vt.replace("$","")}: ${JSON.stringify(qe[vt]).substring(0,30)}${JSON.stringify(qe[vt]).length>30?"...":""}`}).join(", ")}catch(Te){return"Invalid pipeline"}};return f.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-7xl",children:[f.jsxs("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden mb-8",children:[f.jsxs("div",{className:"flex justify-between items-center p-6 bg-gradient-to-r from-blue-50 to-indigo-50 border-b border-gray-200",children:[f.jsxs("div",{children:[f.jsx("div",{className:"flex items-center mb-2",children:f.jsxs("button",{onClick:ce,className:"text-blue-600 hover:text-blue-800 flex items-center transition-colors font-medium",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})}),"Back to Collections"]})}),f.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Documents"}),f.jsxs("div",{className:"flex items-center mt-1 text-gray-600",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{d:"M7 3a1 1 0 000 2h6a1 1 0 100-2H7zM4 7a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1zM2 11a2 2 0 002-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z"})}),f.jsx("span",{className:"font-medium",children:b}),f.jsx("span",{className:"mx-2",children:"in"}),f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2 text-indigo-500",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"})}),f.jsx("span",{className:"font-medium",children:v})]})]}),f.jsxs("div",{className:"flex space-x-3",children:[f.jsxs("button",{onClick:()=>K(!0),className:"bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-5 rounded-lg flex items-center transition-colors shadow-md",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),"Run Aggregate"]}),f.jsxs("button",{onClick:()=>N(!0),className:"bg-green-600 hover:bg-green-700 text-white py-2 px-5 rounded-lg flex items-center transition-colors shadow-md",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"})}),"Insert Document"]})]})]}),f.jsx("div",{className:"px-6 py-4 border-b border-gray-200 bg-gray-50",children:f.jsxs("div",{className:"max-w-6xl",children:[f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[f.jsxs("div",{className:"lg:col-span-2",children:[f.jsx("label",{htmlFor:"search-query",className:"block text-sm font-medium text-gray-700 mb-2",children:f.jsxs("span",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),"JSON Query Search"]})}),f.jsx("input",{type:"text",id:"search-query",value:F,onChange:I=>So(I.target.value),placeholder:'e.g., {"name": "John"}, {"age": {"$gte": 18}}, or {} for all',className:"w-full px-3 py-2.5 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 text-sm font-mono transition-colors"}),f.jsx("div",{className:"mt-1 text-xs text-gray-500",children:"Auto-searches as you type • MongoDB-style syntax • Leave empty to show all"})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"document-id-search",className:"block text-sm font-medium text-gray-700 mb-2",children:f.jsxs("span",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 20l4-16m2 16l4-16M6 9h14M4 15h14"})}),"Document ID"]})}),f.jsx("input",{type:"text",id:"document-id-search",value:ge,onChange:I=>wo(I.target.value),placeholder:"Enter document ID",className:"w-full px-3 py-2.5 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-green-500 focus:border-green-500 text-sm font-mono transition-colors"}),f.jsx("div",{className:"mt-1 text-xs text-gray-500",children:"Find by specific ID"})]})]}),ve&&f.jsx("div",{className:"mt-3 p-3 bg-blue-50 border border-blue-200 rounded-md",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:"text-sm text-blue-800",children:[f.jsx("span",{className:"font-medium",children:"Active Search:"})," ",f.jsx("code",{className:"bg-blue-100 px-2 py-1 rounded text-xs ml-1",children:JSON.stringify(Ae)})]}),f.jsxs("button",{onClick:Js,className:"text-blue-600 hover:text-blue-800 text-sm flex items-center transition-colors",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Clear All"]})]})})]})}),Q&&f.jsxs("div",{className:"bg-indigo-50 px-6 py-3 border-b border-indigo-100 flex justify-between items-center",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-600 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),f.jsxs("div",{children:[f.jsx("span",{className:"text-sm font-medium text-indigo-800",children:"Aggregation Results"}),f.jsxs("p",{className:"text-xs text-indigo-600 mt-0.5",children:["Pipeline: ",Ka(fe)]})]})]}),f.jsxs("button",{onClick:Xa,className:"text-indigo-700 hover:text-indigo-900 text-sm font-medium flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Clear Aggregation"]})]}),f.jsxs("div",{className:"p-6",children:[i&&o.length===0&&!Q?f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3,4,5,6].map(I=>f.jsxs("div",{className:"animate-pulse bg-white rounded-lg border border-gray-200 shadow-sm p-4",children:[f.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-3"}),f.jsx("div",{className:"h-3 bg-gray-100 rounded w-1/2 mb-2"}),f.jsx("div",{className:"h-20 bg-gray-100 rounded mb-3"}),f.jsxs("div",{className:"flex justify-end",children:[f.jsx("div",{className:"h-8 bg-gray-200 rounded w-16 mr-2"}),f.jsx("div",{className:"h-8 bg-gray-200 rounded w-16"})]})]},I))}):Q?de.length>0?f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:de.map((I,Te)=>f.jsx("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:f.jsxs("div",{className:"p-4",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-indigo-500 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M3 3a1 1 0 000 2v8a2 2 0 002 2h2.586l-1.293 1.293a1 1 0 101.414 1.414L10 15.414l2.293 2.293a1 1 0 001.414-1.414L12.414 15H15a2 2 0 002-2V5a1 1 0 100-2H3zm11.707 4.707a1 1 0 00-1.414-1.414L10 9.586 8.707 8.293a1 1 0 00-1.414 0l-2 2a1 1 0 101.414 1.414L8 10.414l1.293 1.293a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),f.jsx("div",{className:"font-mono text-indigo-700 font-semibold",children:f.jsx("span",{className:"text-sm",children:I.documentId?`ID: ${I.documentId}`:`Result #${Te+1}`})})]}),I.updatedAt&&f.jsx("span",{className:"text-xs text-gray-500",title:I.updatedAt,children:Ws(I.updatedAt)})]}),f.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:f.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(I).filter(([qe])=>!["documentId","updatedAt"].includes(qe))),null,2)})}),I.documentId&&f.jsxs("div",{className:"flex justify-end space-x-2",children:[f.jsx("button",{onClick:()=>Be(I),className:"text-indigo-600 hover:text-indigo-900 bg-indigo-50 hover:bg-indigo-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Update"}),f.jsx("button",{onClick:()=>It(I),className:"text-red-600 hover:text-red-900 bg-red-50 hover:bg-red-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Delete"})]})]})},Te))}):f.jsxs("div",{className:"text-center py-12",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-gray-300 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),f.jsx("p",{className:"text-gray-500 mb-2",children:"No documents match your aggregation pipeline"}),f.jsx("button",{onClick:Xa,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Clear Aggregation"})]}):o.length>0?f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map((I,Te)=>f.jsx("div",{ref:!Q&&Te===o.length-1?je:null,className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:f.jsxs("div",{className:"p-4",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 text-yellow-500 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})}),f.jsx("div",{className:"font-mono text-indigo-700 font-semibold",title:I.documentId,children:f.jsxs("span",{className:"text-sm",children:["ID: ",I.documentId]})})]}),f.jsx("span",{className:"text-xs text-gray-500",title:I.updatedAt,children:Ws(I.updatedAt)})]}),f.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:f.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(I).filter(([qe])=>!["documentId","updatedAt"].includes(qe))),null,2)})}),f.jsxs("div",{className:"flex justify-end space-x-2",children:[f.jsx("button",{onClick:()=>Be(I),className:"text-indigo-600 hover:text-indigo-900 bg-indigo-50 hover:bg-indigo-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Update"}),f.jsx("button",{onClick:()=>It(I),className:"text-red-600 hover:text-red-900 bg-red-50 hover:bg-red-100 px-3 py-1 rounded-md text-sm transition-colors",children:"Delete"})]})]})},I.documentId))}):f.jsxs("div",{className:"text-center py-12",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16 text-gray-300 mx-auto mb-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),f.jsx("p",{className:"text-gray-500 mb-4",children:ve?"No documents match your search query":"No documents found in this collection"}),ve?f.jsxs("div",{className:"space-y-2",children:[f.jsx("button",{onClick:Js,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",children:"Clear Search & Show All Documents"}),f.jsxs("p",{className:"text-xs text-gray-400",children:["Try adjusting your query or use "," to show all documents"]})]}):f.jsx("button",{onClick:()=>N(!0),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Insert Your First Document"})]}),i&&o.length>0&&!Q&&f.jsx("div",{className:"flex justify-center items-center py-4",children:f.jsxs("svg",{className:"animate-spin h-6 w-6 text-indigo-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[f.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),f.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),!i&&!d&&o.length>0&&!Q&&f.jsx("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:"You've reached the end of the results."}),Q&&de.length>0&&f.jsxs("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:["Showing all ",de.length," aggregation results."]})]})]}),j&&f.jsx(Xj,{isOpen:j,onClose:()=>N(!1),onDocumentInserted:xt,databaseName:v,collectionName:b,onSuccess:()=>$(1,!0)}),A&&U&&f.jsx(Kj,{isOpen:A,onClose:()=>T(!1),onDocumentUpdated:Ga,document:U,databaseName:v,collectionName:b}),O&&U&&f.jsx(Fj,{isOpen:O,onClose:()=>z(!1),onDocumentDeleted:Qs,documentId:U.documentId,databaseName:v,collectionName:b}),M&&f.jsx(Zj,{isOpen:M,onClose:()=>K(!1),databaseName:v,collectionName:b,onAggregationResults:$s})]})},Qj=()=>{const[n,a]=w.useState([]),[i,r]=w.useState(!0),[o,c]=w.useState(null),[d,p]=w.useState({});w.useEffect(()=>{Re(null,null,function*(){try{r(!0);const b=yield pe.get(`${We}/api/routes`);if(b.data&&b.data.data&&Array.isArray(b.data.data)){a(b.data.data);const j={};b.data.data.forEach(N=>{j[N.groupName]=!0}),p(j)}else throw new Error("Invalid API response format");r(!1)}catch(b){console.error("Error fetching API routes:",b),c("Failed to load API reference. Please try again later."),r(!1)}})},[]);const g=v=>{p(b=>le(X({},b),{[v]:!b[v]}))},m=v=>{switch(v){case"GET":return"bg-blue-600";case"POST":return"bg-green-600";case"PUT":return"bg-amber-600";case"DELETE":return"bg-red-600";default:return"bg-gray-600"}},y=v=>f.jsx("pre",{className:"mt-2 p-3 bg-gray-800 text-gray-200 rounded-md overflow-x-auto text-sm",children:JSON.stringify(v,null,2)});return i?f.jsxs("div",{className:"container mx-auto px-4 py-8",children:[f.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),f.jsx("div",{className:"flex justify-center items-center py-12",children:f.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-blue-500"})})]}):o?f.jsxs("div",{className:"container mx-auto px-4 py-8",children:[f.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),f.jsx("div",{className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded",children:f.jsx("p",{children:o})})]}):f.jsxs("div",{className:"container mx-auto px-4 py-8",children:[f.jsx("h1",{className:"text-2xl font-bold mb-2",children:"API Reference"}),f.jsx("p",{className:"text-gray-600 mb-6",children:"Complete documentation for the AxioDB REST API"}),n.length===0&&!i&&!o?f.jsx("div",{className:"bg-yellow-100 border border-yellow-400 text-yellow-700 px-4 py-3 rounded",children:f.jsx("p",{children:"No API routes found. The server might not have returned any routes."})}):f.jsx("div",{className:"space-y-6",children:n.map(v=>f.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[f.jsxs("div",{className:"bg-gray-50 px-4 py-3 flex justify-between items-center cursor-pointer",onClick:()=>g(v.groupName),children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-medium text-gray-900",children:v.groupName}),f.jsx("p",{className:"text-sm text-gray-500",children:v.description})]}),f.jsx("div",{className:"text-gray-500",children:d[v.groupName]?f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})}):f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})})})]}),d[v.groupName]&&f.jsx("div",{className:"divide-y divide-gray-200",children:v.Paths.map((b,j)=>f.jsx("div",{className:"p-4 hover:bg-gray-50",children:f.jsxs("div",{className:"flex items-start",children:[f.jsx("span",{className:`${m(b.method)} text-white text-xs font-bold px-2 py-1 rounded mr-3 min-w-16 text-center`,children:b.method}),f.jsxs("div",{className:"flex-1",children:[f.jsx("div",{className:"font-mono text-sm bg-gray-100 p-2 rounded mb-2 overflow-x-auto",children:b.path}),f.jsx("p",{className:"text-gray-700 mb-2",children:b.description}),b.payload&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-semibold text-gray-700 mt-2 mb-1",children:"Payload:"}),y(b.payload)]})]})]})},j))})]},v.groupName))})]})},$j=()=>{var d,p,g,m,y,v,b,j,N,A;const[n,a]=w.useState(null),[i,r]=w.useState(!0),[o,c]=w.useState(null);return w.useEffect(()=>{Re(null,null,function*(){try{const O=yield pe.get(`${We}/api/info`);O.status===200&&a(O.data.data)}catch(O){console.error("Error fetching author info:",O),c("Failed to load author information")}finally{r(!1)}})},[]),i?f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsx("div",{className:"max-w-4xl mx-auto",children:f.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8",children:f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"h-8 bg-gray-300 rounded w-1/3 mb-6"}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-4 bg-gray-300 rounded w-full"}),f.jsx("div",{className:"h-4 bg-gray-300 rounded w-2/3"}),f.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/2"})]})]})})})}):o?f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsx("div",{className:"max-w-4xl mx-auto",children:f.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6",children:f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsx("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:f.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),f.jsxs("div",{className:"ml-3",children:[f.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Error"}),f.jsx("p",{className:"text-sm text-red-700 mt-1",children:o})]})]})})})}):f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Need Help with AxioDB?"}),f.jsx("p",{className:"text-xl text-gray-600",children:"Get in touch with the developer for support and assistance"})]}),f.jsxs("div",{className:"bg-white rounded-xl shadow-xl overflow-hidden",children:[f.jsx("div",{className:"bg-gradient-to-r from-blue-600 to-purple-600 px-8 py-12 text-white",children:f.jsxs("div",{className:"flex items-center space-x-6",children:[f.jsxs("div",{className:"w-20 h-20 rounded-full overflow-hidden border-4 border-white border-opacity-30",children:[f.jsx("img",{src:`https://github.com/${(p=(d=n==null?void 0:n.AuthorDetails)==null?void 0:d.github)==null?void 0:p.split("/").pop()}.png`,alt:`${(g=n==null?void 0:n.AuthorDetails)==null?void 0:g.name}'s GitHub Avatar`,className:"w-full h-full object-cover",onError:T=>{T.target.style.display="none",T.target.nextElementSibling.style.display="flex"}}),f.jsx("div",{className:"w-full h-full bg-white bg-opacity-20 rounded-full hidden items-center justify-center",children:f.jsx("svg",{className:"w-10 h-10 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})})]}),f.jsxs("div",{children:[f.jsx("h2",{className:"text-2xl font-bold",children:((m=n==null?void 0:n.AuthorDetails)==null?void 0:m.name)||"Loading..."}),f.jsx("p",{className:"text-blue-100 text-lg",children:((y=n==null?void 0:n.AuthorDetails)==null?void 0:y.Designation)||"Software Engineer"}),f.jsxs("p",{className:"text-blue-100",children:[((v=n==null?void 0:n.AuthorDetails)==null?void 0:v.Country)||"India"," • Solo Developer"]})]})]})}),f.jsx("div",{className:"px-8 py-8",children:f.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:"Contact Information"}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("a",{href:`mailto:${(b=n==null?void 0:n.AuthorDetails)==null?void 0:b.Email}`,className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[f.jsx("div",{className:"w-10 h-10 bg-red-100 rounded-full flex items-center justify-center mr-4",children:f.jsx("svg",{className:"w-5 h-5 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-gray-900",children:"Email"}),f.jsx("p",{className:"text-gray-600",children:(j=n==null?void 0:n.AuthorDetails)==null?void 0:j.Email})]})]}),f.jsxs("a",{href:(N=n==null?void 0:n.AuthorDetails)==null?void 0:N.LinkedIn,target:"_blank",rel:"noopener noreferrer",className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[f.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-4",children:f.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:f.jsx("path",{fillRule:"evenodd",d:"M16.338 16.338H13.67V12.16c0-.995-.017-2.277-1.387-2.277-1.39 0-1.601 1.086-1.601 2.207v4.248H8.014v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.778 3.203 4.092v4.711zM5.005 6.575a1.548 1.548 0 11-.003-3.096 1.548 1.548 0 01.003 3.096zm-1.337 9.763H6.34v-8.59H3.667v8.59zM17.668 1H2.328C1.595 1 1 1.581 1 2.298v15.403C1 18.418 1.595 19 2.328 19h15.34c.734 0 1.332-.582 1.332-1.299V2.298C19 1.581 18.402 1 17.668 1z",clipRule:"evenodd"})})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-gray-900",children:"LinkedIn"}),f.jsx("p",{className:"text-gray-600",children:"Connect on LinkedIn"})]})]}),f.jsxs("a",{href:(A=n==null?void 0:n.AuthorDetails)==null?void 0:A.github,target:"_blank",rel:"noopener noreferrer",className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[f.jsx("div",{className:"w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center mr-4",children:f.jsx("svg",{className:"w-5 h-5 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:f.jsx("path",{fillRule:"evenodd",d:"M10 0C4.477 0 0 4.484 0 10.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0110 4.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.203 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.942.359.31.678.921.678 1.856 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0020 10.017C20 4.484 15.522 0 10 0z",clipRule:"evenodd"})})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-gray-900",children:"GitHub"}),f.jsx("p",{className:"text-gray-600",children:"View source code"})]})]})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:"Project Details"}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"p-4 bg-blue-50 rounded-lg",children:[f.jsx("p",{className:"font-medium text-blue-900",children:"Package Name"}),f.jsx("p",{className:"text-blue-700",children:(n==null?void 0:n.Package_Name)||"axiodb"})]}),f.jsxs("div",{className:"p-4 bg-green-50 rounded-lg",children:[f.jsx("p",{className:"font-medium text-green-900",children:"Version"}),f.jsx("p",{className:"text-green-700",children:(n==null?void 0:n.AxioDB_Version)||"2.30.92"})]}),f.jsxs("div",{className:"p-4 bg-purple-50 rounded-lg",children:[f.jsx("p",{className:"font-medium text-purple-900",children:"License"}),f.jsx("p",{className:"text-purple-700",children:(n==null?void 0:n.License)||"MIT"})]})]})]})]})})]}),f.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-xl p-8 mt-8",children:f.jsxs("div",{className:"flex items-start",children:[f.jsx("div",{className:"flex-shrink-0",children:f.jsx("svg",{className:"h-8 w-8 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),f.jsxs("div",{className:"ml-4",children:[f.jsx("h3",{className:"text-xl font-semibold text-yellow-900 mb-4",children:"Reporting Issues"}),f.jsxs("div",{className:"prose text-yellow-800",children:[f.jsx("p",{className:"mb-4",children:"If you encounter any issues with AxioDB, please help me resolve them quickly by providing detailed information:"}),f.jsxs("ul",{className:"list-disc list-inside space-y-2 mb-4",children:[f.jsxs("li",{children:[f.jsx("strong",{children:"Detailed Description:"})," What exactly happened and what did you expect?"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Steps to Reproduce:"})," Please provide step-by-step instructions to reproduce the error"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Environment:"})," Operating system, Node.js version, AxioDB version"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Error Messages:"})," Copy the complete error message and stack trace"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Code Sample:"})," Minimal code that reproduces the issue"]})]}),f.jsxs("div",{className:"bg-yellow-100 rounded-lg p-4 mt-4",children:[f.jsx("p",{className:"font-medium text-yellow-900",children:"Note:"}),f.jsx("p",{className:"text-yellow-800 mt-1",children:"As a solo developer, I appreciate your patience. I'll respond to issues as soon as possible and work diligently to resolve them. Your detailed bug reports help me fix issues faster!"})]})]})]})]})}),f.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 mt-6",children:f.jsxs("div",{className:"flex items-center",children:[f.jsx("svg",{className:"h-6 w-6 text-blue-600 mr-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),f.jsxs("div",{children:[f.jsx("h4",{className:"font-semibold text-blue-900",children:"Expected Response Time"}),f.jsx("p",{className:"text-blue-700 mt-1",children:"I typically respond within 24-48 hours. For critical issues, I'll prioritize and respond as soon as possible."})]})]})})]})})},Jj=()=>{var b,j,N,A,T,O,z;const[n,a]=w.useState(null),[i,r]=w.useState(!0),[o,c]=w.useState(null),[d,p]=w.useState(null),g=()=>Re(null,null,function*(){try{c(null);const M=yield pe.get(`${We}/api/health`);M.status===200&&(a(M.data),p(new Date))}catch(M){console.error("Error fetching health status:",M),c("Failed to fetch server status")}finally{r(!1)}});w.useEffect(()=>{g();const M=setInterval(()=>{g()},3e4);return()=>clearInterval(M)},[]);const m=M=>new Date(M).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}),v=(M=>{switch(M==null?void 0:M.toLowerCase()){case"ok":return{bg:"bg-green-50",border:"border-green-200",text:"text-green-800",icon:"text-green-600",badge:"bg-green-100 text-green-800"};case"warning":return{bg:"bg-yellow-50",border:"border-yellow-200",text:"text-yellow-800",icon:"text-yellow-600",badge:"bg-yellow-100 text-yellow-800"};case"error":case"down":return{bg:"bg-red-50",border:"border-red-200",text:"text-red-800",icon:"text-red-600",badge:"bg-red-100 text-red-800"};default:return{bg:"bg-gray-50",border:"border-gray-200",text:"text-gray-800",icon:"text-gray-600",badge:"bg-gray-100 text-gray-800"}}})(((b=n==null?void 0:n.data)==null?void 0:b.status)||(o?"error":"unknown"));return i?f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"AxioDB Status"}),f.jsx("p",{className:"text-xl text-gray-600",children:"Checking server health..."})]}),f.jsx("div",{className:"bg-white rounded-xl shadow-lg p-8",children:f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"flex items-center justify-center mb-6",children:f.jsx("div",{className:"h-16 w-16 bg-gray-300 rounded-full"})}),f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-6 bg-gray-300 rounded w-1/3 mx-auto"}),f.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/2 mx-auto"}),f.jsx("div",{className:"h-4 bg-gray-300 rounded w-2/3 mx-auto"})]})]})})]})}):f.jsx("div",{className:"container mx-auto px-4 py-6",children:f.jsxs("div",{className:"max-w-4xl mx-auto",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"AxioDB Status"}),f.jsx("p",{className:"text-xl text-gray-600",children:"Real-time server health monitoring"})]}),f.jsx("div",{className:`${v.bg} ${v.border} border rounded-xl shadow-lg overflow-hidden mb-8`,children:f.jsxs("div",{className:"p-8",children:[f.jsx("div",{className:"flex items-center justify-center mb-6",children:o?f.jsx("div",{className:`w-16 h-16 ${v.icon} flex items-center justify-center`,children:f.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}):((j=n==null?void 0:n.data)==null?void 0:j.status)==="ok"?f.jsx("div",{className:`w-16 h-16 ${v.icon} flex items-center justify-center`,children:f.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})}):f.jsx("div",{className:`w-16 h-16 ${v.icon} flex items-center justify-center`,children:f.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),f.jsxs("div",{className:"text-center",children:[f.jsx("div",{className:"flex items-center justify-center mb-4",children:f.jsxs("span",{className:`inline-flex items-center px-4 py-2 rounded-full text-sm font-medium ${v.badge}`,children:[f.jsx("span",{className:`w-2 h-2 ${((N=n==null?void 0:n.data)==null?void 0:N.status)==="ok"?"bg-green-400":"bg-red-400"} rounded-full mr-2 ${((A=n==null?void 0:n.data)==null?void 0:A.status)==="ok"?"animate-pulse":""}`}),o?"Server Unreachable":((O=(T=n==null?void 0:n.data)==null?void 0:T.status)==null?void 0:O.toUpperCase())||"UNKNOWN"]})}),f.jsx("h2",{className:`text-2xl font-bold ${v.text} mb-2`,children:o?"Connection Failed":(n==null?void 0:n.message)||"Status Unknown"}),((z=n==null?void 0:n.data)==null?void 0:z.timestamp)&&f.jsxs("p",{className:`${v.text} text-lg`,children:["Server Time: ",m(n.data.timestamp)]})]})]})}),f.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[f.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[f.jsxs("div",{className:"flex items-center mb-4",children:[f.jsx("div",{className:"w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-3",children:f.jsx("svg",{className:"w-4 h-4 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),f.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Response Time"})]}),f.jsx("p",{className:"text-2xl font-bold text-blue-600",children:o?"N/A":"< 100ms"}),f.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"API response latency"})]}),f.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[f.jsxs("div",{className:"flex items-center mb-4",children:[f.jsx("div",{className:"w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-3",children:f.jsx("svg",{className:"w-4 h-4 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),f.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Status Code"})]}),f.jsx("p",{className:"text-2xl font-bold text-green-600",children:(n==null?void 0:n.statusCode)||(o?"Error":"N/A")}),f.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"HTTP response status"})]})]}),f.jsx("div",{className:"bg-white rounded-lg shadow-md p-6",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Auto-Refresh"}),f.jsxs("p",{className:"text-sm text-gray-600",children:["Status updates automatically every 30 seconds",d&&f.jsxs(f.Fragment,{children:[f.jsx("br",{}),"Last updated: ",d.toLocaleTimeString()]})]})]}),f.jsxs("button",{onClick:()=>{r(!0),g()},disabled:i,className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:[f.jsx("svg",{className:`w-4 h-4 mr-2 ${i?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),i?"Refreshing...":"Refresh Now"]})]})}),f.jsx("div",{className:"bg-gray-50 rounded-lg p-6 mt-8",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h4",{className:"text-sm font-semibold text-gray-900 mb-2",children:"Service Information"}),f.jsxs("p",{className:"text-xs text-gray-600",children:["This page monitors the health and availability of the AxioDB server. If you notice any issues, please visit the"," ",f.jsx("a",{href:"/support",className:"text-blue-600 hover:text-blue-800",children:"support page"})," ","for assistance."]})]})})]})})},$f=w.createContext({});function Jf(n){const a=w.useRef(null);return a.current===null&&(a.current=n()),a.current}const Wf=typeof window!="undefined",sx=Wf?w.useLayoutEffect:w.useEffect,yo=w.createContext(null);function If(n,a){n.indexOf(a)===-1&&n.push(a)}function ed(n,a){const i=n.indexOf(a);i>-1&&n.splice(i,1)}const Un=(n,a,i)=>i>a?a:i<n?n:i;let td=()=>{};const Vn={},ix=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function lx(n){return typeof n=="object"&&n!==null}const rx=n=>/^0[^.\s]+$/u.test(n);function nd(n){let a;return()=>(a===void 0&&(a=n()),a)}const Wt=n=>n,Wj=(n,a)=>i=>a(n(i)),Sl=(...n)=>n.reduce(Wj),rl=(n,a,i)=>{const r=a-n;return r===0?1:(i-n)/r};class ad{constructor(){this.subscriptions=[]}add(a){return If(this.subscriptions,a),()=>ed(this.subscriptions,a)}notify(a,i,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](a,i,r);else for(let c=0;c<o;c++){const d=this.subscriptions[c];d&&d(a,i,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pn=n=>n*1e3,gn=n=>n/1e3;function ox(n,a){return a?n*(1e3/a):0}const ux=(n,a,i)=>(((1-3*i+3*a)*n+(3*i-6*a))*n+3*a)*n,Ij=1e-7,e4=12;function t4(n,a,i,r,o){let c,d,p=0;do d=a+(i-a)/2,c=ux(d,r,o)-n,c>0?i=d:a=d;while(Math.abs(c)>Ij&&++p<e4);return d}function wl(n,a,i,r){if(n===a&&i===r)return Wt;const o=c=>t4(c,0,1,n,i);return c=>c===0||c===1?c:ux(o(c),a,r)}const cx=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,fx=n=>a=>1-n(1-a),dx=wl(.33,1.53,.69,.99),sd=fx(dx),hx=cx(sd),mx=n=>(n*=2)<1?.5*sd(n):.5*(2-Math.pow(2,-10*(n-1))),id=n=>1-Math.sin(Math.acos(n)),px=fx(id),gx=cx(id),n4=wl(.42,0,1,1),a4=wl(0,0,.58,1),yx=wl(.42,0,.58,1),s4=n=>Array.isArray(n)&&typeof n[0]!="number",xx=n=>Array.isArray(n)&&typeof n[0]=="number",i4={linear:Wt,easeIn:n4,easeInOut:yx,easeOut:a4,circIn:id,circInOut:gx,circOut:px,backIn:sd,backInOut:hx,backOut:dx,anticipate:mx},l4=n=>typeof n=="string",ag=n=>{if(xx(n)){td(n.length===4);const[a,i,r,o]=n;return wl(a,i,r,o)}else if(l4(n))return i4[n];return n},Pr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function r4(n,a){let i=new Set,r=new Set,o=!1,c=!1;const d=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(y){d.has(y)&&(m.schedule(y),n()),y(p)}const m={schedule:(y,v=!1,b=!1)=>{const N=b&&o?i:r;return v&&d.add(y),N.has(y)||N.add(y),y},cancel:y=>{r.delete(y),d.delete(y)},process:y=>{if(p=y,o){c=!0;return}o=!0,[i,r]=[r,i],i.forEach(g),i.clear(),o=!1,c&&(c=!1,m.process(y))}};return m}const o4=40;function vx(n,a){let i=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>i=!0,d=Pr.reduce((M,K)=>(M[K]=r4(c),M),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:y,update:v,preRender:b,render:j,postRender:N}=d,A=()=>{const M=Vn.useManualTiming?o.timestamp:performance.now();i=!1,Vn.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(M-o.timestamp,o4),1)),o.timestamp=M,o.isProcessing=!0,p.process(o),g.process(o),m.process(o),y.process(o),v.process(o),b.process(o),j.process(o),N.process(o),o.isProcessing=!1,i&&a&&(r=!1,n(A))},T=()=>{i=!0,r=!0,o.isProcessing||n(A)};return{schedule:Pr.reduce((M,K)=>{const U=d[K];return M[K]=(Z,Q=!1,W=!1)=>(i||T(),U.schedule(Z,Q,W)),M},{}),cancel:M=>{for(let K=0;K<Pr.length;K++)d[Pr[K]].cancel(M)},state:o,steps:d}}const{schedule:ke,cancel:fa,state:dt,steps:Qc}=vx(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Wt,!0);let Jr;function u4(){Jr=void 0}const Ct={now:()=>(Jr===void 0&&Ct.set(dt.isProcessing||Vn.useManualTiming?dt.timestamp:performance.now()),Jr),set:n=>{Jr=n,queueMicrotask(u4)}},bx=n=>a=>typeof a=="string"&&a.startsWith(n),ld=bx("--"),c4=bx("var(--"),rd=n=>c4(n)?f4.test(n.split("/*")[0].trim()):!1,f4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ks={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},ol=le(X({},Ks),{transform:n=>Un(0,1,n)}),Yr=le(X({},Ks),{default:1}),tl=n=>Math.round(n*1e5)/1e5,od=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function d4(n){return n==null}const h4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ud=(n,a)=>i=>!!(typeof i=="string"&&h4.test(i)&&i.startsWith(n)||a&&!d4(i)&&Object.prototype.hasOwnProperty.call(i,a)),Sx=(n,a,i)=>r=>{if(typeof r!="string")return r;const[o,c,d,p]=r.match(od);return{[n]:parseFloat(o),[a]:parseFloat(c),[i]:parseFloat(d),alpha:p!==void 0?parseFloat(p):1}},m4=n=>Un(0,255,n),$c=le(X({},Ks),{transform:n=>Math.round(m4(n))}),Va={test:ud("rgb","red"),parse:Sx("red","green","blue"),transform:({red:n,green:a,blue:i,alpha:r=1})=>"rgba("+$c.transform(n)+", "+$c.transform(a)+", "+$c.transform(i)+", "+tl(ol.transform(r))+")"};function p4(n){let a="",i="",r="",o="";return n.length>5?(a=n.substring(1,3),i=n.substring(3,5),r=n.substring(5,7),o=n.substring(7,9)):(a=n.substring(1,2),i=n.substring(2,3),r=n.substring(3,4),o=n.substring(4,5),a+=a,i+=i,r+=r,o+=o),{red:parseInt(a,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const bf={test:ud("#"),parse:p4,transform:Va.transform},jl=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),ua=jl("deg"),yn=jl("%"),oe=jl("px"),g4=jl("vh"),y4=jl("vw"),sg=le(X({},yn),{parse:n=>yn.parse(n)/100,transform:n=>yn.transform(n*100)}),Ls={test:ud("hsl","hue"),parse:Sx("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:i,alpha:r=1})=>"hsla("+Math.round(n)+", "+yn.transform(tl(a))+", "+yn.transform(tl(i))+", "+tl(ol.transform(r))+")"},tt={test:n=>Va.test(n)||bf.test(n)||Ls.test(n),parse:n=>Va.test(n)?Va.parse(n):Ls.test(n)?Ls.parse(n):bf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Va.transform(n):Ls.transform(n),getAnimatableNone:n=>{const a=tt.parse(n);return a.alpha=0,tt.transform(a)}},x4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function v4(n){var a,i;return isNaN(n)&&typeof n=="string"&&(((a=n.match(od))==null?void 0:a.length)||0)+(((i=n.match(x4))==null?void 0:i.length)||0)>0}const wx="number",jx="color",b4="var",S4="var(",ig="${}",w4=/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 ul(n){const a=n.toString(),i=[],r={color:[],number:[],var:[]},o=[];let c=0;const p=a.replace(w4,g=>(tt.test(g)?(r.color.push(c),o.push(jx),i.push(tt.parse(g))):g.startsWith(S4)?(r.var.push(c),o.push(b4),i.push(g)):(r.number.push(c),o.push(wx),i.push(parseFloat(g))),++c,ig)).split(ig);return{values:i,split:p,indexes:r,types:o}}function Nx(n){return ul(n).values}function Tx(n){const{split:a,types:i}=ul(n),r=a.length;return o=>{let c="";for(let d=0;d<r;d++)if(c+=a[d],o[d]!==void 0){const p=i[d];p===wx?c+=tl(o[d]):p===jx?c+=tt.transform(o[d]):c+=o[d]}return c}}const j4=n=>typeof n=="number"?0:tt.test(n)?tt.getAnimatableNone(n):n;function N4(n){const a=Nx(n);return Tx(n)(a.map(j4))}const da={test:v4,parse:Nx,createTransformer:Tx,getAnimatableNone:N4};function Jc(n,a,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?n+(a-n)*6*i:i<1/2?a:i<2/3?n+(a-n)*(2/3-i)*6:n}function T4({hue:n,saturation:a,lightness:i,alpha:r}){n/=360,a/=100,i/=100;let o=0,c=0,d=0;if(!a)o=c=d=i;else{const p=i<.5?i*(1+a):i+a-i*a,g=2*i-p;o=Jc(g,p,n+1/3),c=Jc(g,p,n),d=Jc(g,p,n-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(d*255),alpha:r}}function so(n,a){return i=>i>0?a:n}const Ye=(n,a,i)=>n+(a-n)*i,Wc=(n,a,i)=>{const r=n*n,o=i*(a*a-r)+r;return o<0?0:Math.sqrt(o)},E4=[bf,Va,Ls],A4=n=>E4.find(a=>a.test(n));function lg(n){const a=A4(n);if(!a)return!1;let i=a.parse(n);return a===Ls&&(i=T4(i)),i}const rg=(n,a)=>{const i=lg(n),r=lg(a);if(!i||!r)return so(n,a);const o=X({},i);return c=>(o.red=Wc(i.red,r.red,c),o.green=Wc(i.green,r.green,c),o.blue=Wc(i.blue,r.blue,c),o.alpha=Ye(i.alpha,r.alpha,c),Va.transform(o))},Sf=new Set(["none","hidden"]);function C4(n,a){return Sf.has(n)?i=>i<=0?n:a:i=>i>=1?a:n}function R4(n,a){return i=>Ye(n,a,i)}function cd(n){return typeof n=="number"?R4:typeof n=="string"?rd(n)?so:tt.test(n)?rg:O4:Array.isArray(n)?Ex:typeof n=="object"?tt.test(n)?rg:D4:so}function Ex(n,a){const i=[...n],r=i.length,o=n.map((c,d)=>cd(c)(c,a[d]));return c=>{for(let d=0;d<r;d++)i[d]=o[d](c);return i}}function D4(n,a){const i=X(X({},n),a),r={};for(const o in i)n[o]!==void 0&&a[o]!==void 0&&(r[o]=cd(n[o])(n[o],a[o]));return o=>{for(const c in r)i[c]=r[c](o);return i}}function M4(n,a){var o;const i=[],r={color:0,var:0,number:0};for(let c=0;c<a.values.length;c++){const d=a.types[c],p=n.indexes[d][r[d]],g=(o=n.values[p])!=null?o:0;i[c]=g,r[d]++}return i}const O4=(n,a)=>{const i=da.createTransformer(a),r=ul(n),o=ul(a);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Sf.has(n)&&!o.values.length||Sf.has(a)&&!r.values.length?C4(n,a):Sl(Ex(M4(r,o),o.values),i):so(n,a)};function Ax(n,a,i){return typeof n=="number"&&typeof a=="number"&&typeof i=="number"?Ye(n,a,i):cd(n)(n,a)}const L4=n=>{const a=({timestamp:i})=>n(i);return{start:(i=!0)=>ke.update(a,i),stop:()=>fa(a),now:()=>dt.isProcessing?dt.timestamp:Ct.now()}},Cx=(n,a,i=10)=>{let r="";const o=Math.max(Math.round(a/i),2);for(let c=0;c<o;c++)r+=Math.round(n(c/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},io=2e4;function fd(n){let a=0;const i=50;let r=n.next(a);for(;!r.done&&a<io;)a+=i,r=n.next(a);return a>=io?1/0:a}function z4(n,a=100,i){const r=i(le(X({},n),{keyframes:[0,a]})),o=Math.min(fd(r),io);return{type:"keyframes",ease:c=>r.next(o*c).value/a,duration:gn(o)}}const B4=5;function Rx(n,a,i){const r=Math.max(a-B4,0);return ox(i-n(r),a-r)}const Ze={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},Ic=.001;function U4({duration:n=Ze.duration,bounce:a=Ze.bounce,velocity:i=Ze.velocity,mass:r=Ze.mass}){let o,c,d=1-a;d=Un(Ze.minDamping,Ze.maxDamping,d),n=Un(Ze.minDuration,Ze.maxDuration,gn(n)),d<1?(o=m=>{const y=m*d,v=y*n,b=y-i,j=wf(m,d),N=Math.exp(-v);return Ic-b/j*N},c=m=>{const v=m*d*n,b=v*i+i,j=Math.pow(d,2)*Math.pow(m,2)*n,N=Math.exp(-v),A=wf(Math.pow(m,2),d);return(-o(m)+Ic>0?-1:1)*((b-j)*N)/A}):(o=m=>{const y=Math.exp(-m*n),v=(m-i)*n+1;return-Ic+y*v},c=m=>{const y=Math.exp(-m*n),v=(i-m)*(n*n);return y*v});const p=5/n,g=_4(o,c,p);if(n=pn(n),isNaN(g))return{stiffness:Ze.stiffness,damping:Ze.damping,duration:n};{const m=Math.pow(g,2)*r;return{stiffness:m,damping:d*2*Math.sqrt(r*m),duration:n}}}const V4=12;function _4(n,a,i){let r=i;for(let o=1;o<V4;o++)r=r-n(r)/a(r);return r}function wf(n,a){return n*Math.sqrt(1-a*a)}const k4=["duration","bounce"],H4=["stiffness","damping","mass"];function og(n,a){return a.some(i=>n[i]!==void 0)}function q4(n){let a=X({velocity:Ze.velocity,stiffness:Ze.stiffness,damping:Ze.damping,mass:Ze.mass,isResolvedFromDuration:!1},n);if(!og(n,H4)&&og(n,k4))if(n.visualDuration){const i=n.visualDuration,r=2*Math.PI/(i*1.2),o=r*r,c=2*Un(.05,1,1-(n.bounce||0))*Math.sqrt(o);a=le(X({},a),{mass:Ze.mass,stiffness:o,damping:c})}else{const i=U4(n);a=le(X(X({},a),i),{mass:Ze.mass}),a.isResolvedFromDuration=!0}return a}function lo(n=Ze.visualDuration,a=Ze.bounce){const i=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:a}:n;let{restSpeed:r,restDelta:o}=i;const c=i.keyframes[0],d=i.keyframes[i.keyframes.length-1],p={done:!1,value:c},{stiffness:g,damping:m,mass:y,duration:v,velocity:b,isResolvedFromDuration:j}=q4(le(X({},i),{velocity:-gn(i.velocity||0)})),N=b||0,A=m/(2*Math.sqrt(g*y)),T=d-c,O=gn(Math.sqrt(g/y)),z=Math.abs(T)<5;r||(r=z?Ze.restSpeed.granular:Ze.restSpeed.default),o||(o=z?Ze.restDelta.granular:Ze.restDelta.default);let M;if(A<1){const U=wf(O,A);M=Z=>{const Q=Math.exp(-A*O*Z);return d-Q*((N+A*O*T)/U*Math.sin(U*Z)+T*Math.cos(U*Z))}}else if(A===1)M=U=>d-Math.exp(-O*U)*(T+(N+O*T)*U);else{const U=O*Math.sqrt(A*A-1);M=Z=>{const Q=Math.exp(-A*O*Z),W=Math.min(U*Z,300);return d-Q*((N+A*O*T)*Math.sinh(W)+U*T*Math.cosh(W))/U}}const K={calculatedDuration:j&&v||null,next:U=>{const Z=M(U);if(j)p.done=U>=v;else{let Q=U===0?N:0;A<1&&(Q=U===0?pn(N):Rx(M,U,Z));const W=Math.abs(Q)<=r,fe=Math.abs(d-Z)<=o;p.done=W&&fe}return p.value=p.done?d:Z,p},toString:()=>{const U=Math.min(fd(K),io),Z=Cx(Q=>K.next(U*Q).value,U,30);return U+"ms "+Z},toTransition:()=>{}};return K}lo.applyToOptions=n=>{const a=z4(n,100,lo);return n.ease=a.ease,n.duration=pn(a.duration),n.type="keyframes",n};function jf({keyframes:n,velocity:a=0,power:i=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:d,min:p,max:g,restDelta:m=.5,restSpeed:y}){const v=n[0],b={done:!1,value:v},j=W=>p!==void 0&&W<p||g!==void 0&&W>g,N=W=>p===void 0?g:g===void 0||Math.abs(p-W)<Math.abs(g-W)?p:g;let A=i*a;const T=v+A,O=d===void 0?T:d(T);O!==T&&(A=O-v);const z=W=>-A*Math.exp(-W/r),M=W=>O+z(W),K=W=>{const fe=z(W),xe=M(W);b.done=Math.abs(fe)<=m,b.value=b.done?O:xe};let U,Z;const Q=W=>{j(b.value)&&(U=W,Z=lo({keyframes:[b.value,N(b.value)],velocity:Rx(M,W,b.value),damping:o,stiffness:c,restDelta:m,restSpeed:y}))};return Q(0),{calculatedDuration:null,next:W=>{let fe=!1;return!Z&&U===void 0&&(fe=!0,K(W),Q(W)),U!==void 0&&W>=U?Z.next(W-U):(!fe&&K(W),b)}}}function P4(n,a,i){const r=[],o=i||Vn.mix||Ax,c=n.length-1;for(let d=0;d<c;d++){let p=o(n[d],n[d+1]);if(a){const g=Array.isArray(a)?a[d]||Wt:a;p=Sl(g,p)}r.push(p)}return r}function Y4(n,a,{clamp:i=!0,ease:r,mixer:o}={}){const c=n.length;if(td(c===a.length),c===1)return()=>a[0];if(c===2&&a[0]===a[1])return()=>a[1];const d=n[0]===n[1];n[0]>n[c-1]&&(n=[...n].reverse(),a=[...a].reverse());const p=P4(a,r,o),g=p.length,m=y=>{if(d&&y<n[0])return a[0];let v=0;if(g>1)for(;v<n.length-2&&!(y<n[v+1]);v++);const b=rl(n[v],n[v+1],y);return p[v](b)};return i?y=>m(Un(n[0],n[c-1],y)):m}function G4(n,a){const i=n[n.length-1];for(let r=1;r<=a;r++){const o=rl(0,a,r);n.push(Ye(i,1,o))}}function X4(n){const a=[0];return G4(a,n.length-1),a}function K4(n,a){return n.map(i=>i*a)}function F4(n,a){return n.map(()=>a||yx).splice(0,n.length-1)}function nl({duration:n=300,keyframes:a,times:i,ease:r="easeInOut"}){const o=s4(r)?r.map(ag):ag(r),c={done:!1,value:a[0]},d=K4(i&&i.length===a.length?i:X4(a),n),p=Y4(d,a,{ease:Array.isArray(o)?o:F4(a,o)});return{calculatedDuration:n,next:g=>(c.value=p(g),c.done=g>=n,c)}}const Z4=n=>n!==null;function dd(n,{repeat:a,repeatType:i="loop"},r,o=1){const c=n.filter(Z4),p=o<0||a&&i!=="loop"&&a%2===1?0:c.length-1;return!p||r===void 0?c[p]:r}const Q4={decay:jf,inertia:jf,tween:nl,keyframes:nl,spring:lo};function Dx(n){typeof n.type=="string"&&(n.type=Q4[n.type])}class hd{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,i){return this.finished.then(a,i)}}const $4=n=>n/100;class md extends hd{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:i}=this.options;i&&i.updatedAt!==Ct.now()&&this.tick(Ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){const{options:a}=this;Dx(a);const{type:i=nl,repeat:r=0,repeatDelay:o=0,repeatType:c,velocity:d=0}=a;let{keyframes:p}=a;const g=i||nl;g!==nl&&typeof p[0]!="number"&&(this.mixKeyframes=Sl($4,Ax(p[0],p[1])),p=[0,100]);const m=g(le(X({},a),{keyframes:p}));c==="mirror"&&(this.mirroredGenerator=g(le(X({},a),{keyframes:[...p].reverse(),velocity:-d}))),m.calculatedDuration===null&&(m.calculatedDuration=fd(m));const{calculatedDuration:y}=m;this.calculatedDuration=y,this.resolvedDuration=y+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=m}updateTime(a){const i=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(a,i=!1){const{generator:r,totalDuration:o,mixKeyframes:c,mirroredGenerator:d,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return r.next(0);const{delay:m=0,keyframes:y,repeat:v,repeatType:b,repeatDelay:j,type:N,onUpdate:A,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-o/this.speed,this.startTime)),i?this.currentTime=a:this.updateTime(a);const O=this.currentTime-m*(this.playbackSpeed>=0?1:-1),z=this.playbackSpeed>=0?O<0:O>o;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let M=this.currentTime,K=r;if(v){const W=Math.min(this.currentTime,o)/p;let fe=Math.floor(W),xe=W%1;!xe&&W>=1&&(xe=1),xe===1&&fe--,fe=Math.min(fe,v+1),!!(fe%2)&&(b==="reverse"?(xe=1-xe,j&&(xe-=j/p)):b==="mirror"&&(K=d)),M=Un(0,1,xe)*p}const U=z?{done:!1,value:y[0]}:K.next(M);c&&(U.value=c(U.value));let{done:Z}=U;!z&&g!==null&&(Z=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const Q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Z);return Q&&N!==jf&&(U.value=dd(y,this.options,T,this.speed)),A&&A(U.value),Q&&this.finish(),U}then(a,i){return this.finished.then(a,i)}get duration(){return gn(this.calculatedDuration)}get time(){return gn(this.currentTime)}set time(a){var i;a=pn(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),(i=this.driver)==null||i.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(Ct.now());const i=this.playbackSpeed!==a;this.playbackSpeed=a,i&&(this.time=gn(this.currentTime))}play(){var o,c;if(this.isStopped)return;const{driver:a=L4,startTime:i}=this.options;this.driver||(this.driver=a(d=>this.tick(d))),(c=(o=this.options).onPlay)==null||c.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=i!=null?i:r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ct.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var a,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(a=this.options).onComplete)==null||i.call(a)}cancel(){var a,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(a=this.options).onCancel)==null||i.call(a)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),a.observe(this)}}function J4(n){var a;for(let i=1;i<n.length;i++)(a=n[i])!=null||(n[i]=n[i-1])}const _a=n=>n*180/Math.PI,Nf=n=>{const a=_a(Math.atan2(n[1],n[0]));return Tf(a)},W4={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:Nf,rotateZ:Nf,skewX:n=>_a(Math.atan(n[1])),skewY:n=>_a(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},Tf=n=>(n=n%360,n<0&&(n+=360),n),ug=Nf,cg=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),fg=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),I4={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cg,scaleY:fg,scale:n=>(cg(n)+fg(n))/2,rotateX:n=>Tf(_a(Math.atan2(n[6],n[5]))),rotateY:n=>Tf(_a(Math.atan2(-n[2],n[0]))),rotateZ:ug,rotate:ug,skewX:n=>_a(Math.atan(n[4])),skewY:n=>_a(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function Ef(n){return n.includes("scale")?1:0}function Af(n,a){if(!n||n==="none")return Ef(a);const i=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(i)r=I4,o=i;else{const p=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=W4,o=p}if(!o)return Ef(a);const c=r[a],d=o[1].split(",").map(tN);return typeof c=="function"?c(d):d[c]}const eN=(n,a)=>{const{transform:i="none"}=getComputedStyle(n);return Af(i,a)};function tN(n){return parseFloat(n.trim())}const Fs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zs=new Set(Fs),dg=n=>n===Ks||n===oe,nN=new Set(["x","y","z"]),aN=Fs.filter(n=>!nN.has(n));function sN(n){const a=[];return aN.forEach(i=>{const r=n.getValue(i);r!==void 0&&(a.push([i,r.get()]),r.set(i.startsWith("scale")?1:0))}),a}const Ha={width:({x:n},{paddingLeft:a="0",paddingRight:i="0"})=>n.max-n.min-parseFloat(a)-parseFloat(i),height:({y:n},{paddingTop:a="0",paddingBottom:i="0"})=>n.max-n.min-parseFloat(a)-parseFloat(i),top:(n,{top:a})=>parseFloat(a),left:(n,{left:a})=>parseFloat(a),bottom:({y:n},{top:a})=>parseFloat(a)+(n.max-n.min),right:({x:n},{left:a})=>parseFloat(a)+(n.max-n.min),x:(n,{transform:a})=>Af(a,"x"),y:(n,{transform:a})=>Af(a,"y")};Ha.translateX=Ha.x;Ha.translateY=Ha.y;const qa=new Set;let Cf=!1,Rf=!1,Df=!1;function Mx(){if(Rf){const n=Array.from(qa).filter(r=>r.needsMeasurement),a=new Set(n.map(r=>r.element)),i=new Map;a.forEach(r=>{const o=sN(r);o.length&&(i.set(r,o),r.render())}),n.forEach(r=>r.measureInitialState()),a.forEach(r=>{r.render();const o=i.get(r);o&&o.forEach(([c,d])=>{var p;(p=r.getValue(c))==null||p.set(d)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Rf=!1,Cf=!1,qa.forEach(n=>n.complete(Df)),qa.clear()}function Ox(){qa.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Rf=!0)})}function iN(){Df=!0,Ox(),Mx(),Df=!1}class pd{constructor(a,i,r,o,c,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=i,this.name=r,this.motionValue=o,this.element=c,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(qa.add(this),Cf||(Cf=!0,ke.read(Ox),ke.resolveKeyframes(Mx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:a,name:i,element:r,motionValue:o}=this;if(a[0]===null){const c=o==null?void 0:o.get(),d=a[a.length-1];if(c!==void 0)a[0]=c;else if(r&&i){const p=r.readValue(i,d);p!=null&&(a[0]=p)}a[0]===void 0&&(a[0]=d),o&&c===void 0&&o.set(a[0])}J4(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),qa.delete(this)}cancel(){this.state==="scheduled"&&(qa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const lN=n=>n.startsWith("--");function rN(n,a,i){lN(a)?n.style.setProperty(a,i):n.style[a]=i}const oN=nd(()=>window.ScrollTimeline!==void 0),uN={};function cN(n,a){const i=nd(n);return()=>{var r;return(r=uN[a])!=null?r:i()}}const Lx=cN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(n){return!1}return!0},"linearEasing"),el=([n,a,i,r])=>`cubic-bezier(${n}, ${a}, ${i}, ${r})`,hg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:el([0,.65,.55,1]),circOut:el([.55,0,1,.45]),backIn:el([.31,.01,.66,-.59]),backOut:el([.33,1.53,.69,.99])};function zx(n,a){if(n)return typeof n=="function"?Lx()?Cx(n,a):"ease-out":xx(n)?el(n):Array.isArray(n)?n.map(i=>zx(i,a)||hg.easeOut):hg[n]}function fN(n,a,i,{delay:r=0,duration:o=300,repeat:c=0,repeatType:d="loop",ease:p="easeOut",times:g}={},m=void 0){const y={[a]:i};g&&(y.offset=g);const v=zx(p,o);Array.isArray(v)&&(y.easing=v);const b={delay:r,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:c+1,direction:d==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),n.animate(y,b)}function Bx(n){return typeof n=="function"&&"applyToOptions"in n}function dN(i){var r=i,{type:n}=r,a=ot(r,["type"]);var o,c;return Bx(n)&&Lx()?n.applyToOptions(a):((o=a.duration)!=null||(a.duration=300),(c=a.ease)!=null||(a.ease="easeOut"),a)}class hN extends hd{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:i,name:r,keyframes:o,pseudoElement:c,allowFlatten:d=!1,finalKeyframe:p,onComplete:g}=a;this.isPseudoElement=!!c,this.allowFlatten=d,this.options=a,td(typeof a.type!="string");const m=dN(a);this.animation=fN(i,r,o,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const y=dd(o,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(y):rN(i,r,y),this.animation.cancel()}g==null||g(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var a,i;(i=(a=this.animation).finish)==null||i.call(a)}cancel(){try{this.animation.cancel()}catch(a){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var a,i;this.isPseudoElement||(i=(a=this.animation).commitStyles)==null||i.call(a)}get duration(){var i,r;const a=((r=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:r.call(i).duration)||0;return gn(Number(a))}get time(){return gn(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=pn(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(a){this.animation.startTime=a}attachTimeline({timeline:a,observe:i}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,a&&oN()?(this.animation.timeline=a,Wt):i(this)}}const Ux={anticipate:mx,backInOut:hx,circInOut:gx};function mN(n){return n in Ux}function pN(n){typeof n.ease=="string"&&mN(n.ease)&&(n.ease=Ux[n.ease])}const mg=10;class gN extends hN{constructor(a){pN(a),Dx(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){var y;const m=this.options,{motionValue:i,onUpdate:r,onComplete:o,element:c}=m,d=ot(m,["motionValue","onUpdate","onComplete","element"]);if(!i)return;if(a!==void 0){i.set(a);return}const p=new md(le(X({},d),{autoplay:!1})),g=pn((y=this.finishedTime)!=null?y:this.time);i.setWithVelocity(p.sample(g-mg).value,p.sample(g).value,mg),p.stop()}}const pg=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(da.test(n)||n==="0")&&!n.startsWith("url("));function yN(n){const a=n[0];if(n.length===1)return!0;for(let i=0;i<n.length;i++)if(n[i]!==a)return!0}function xN(n,a,i,r){const o=n[0];if(o===null)return!1;if(a==="display"||a==="visibility")return!0;const c=n[n.length-1],d=pg(o,a),p=pg(c,a);return!d||!p?!1:yN(n)||(i==="spring"||Bx(i))&&r}function Mf(n){n.duration=0,n.type}const vN=new Set(["opacity","clipPath","filter","transform"]),bN=nd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function SN(n){var y;const{motionValue:a,name:i,repeatDelay:r,repeatType:o,damping:c,type:d}=n;if(!(((y=a==null?void 0:a.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:m}=a.owner.getProps();return bN()&&i&&vN.has(i)&&(i!=="transform"||!m)&&!g&&!r&&o!=="mirror"&&c!==0&&d!=="inertia"}const wN=40;class jN extends hd{constructor(b){var j=b,{autoplay:a=!0,delay:i=0,type:r="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:d="loop",keyframes:p,name:g,motionValue:m,element:y}=j,v=ot(j,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var T;super(),this.stop=()=>{var O,z;this._animation&&(this._animation.stop(),(O=this.stopTimeline)==null||O.call(this)),(z=this.keyframeResolver)==null||z.cancel()},this.createdAt=Ct.now();const N=X({autoplay:a,delay:i,type:r,repeat:o,repeatDelay:c,repeatType:d,name:g,motionValue:m,element:y},v),A=(y==null?void 0:y.KeyframeResolver)||pd;this.keyframeResolver=new A(p,(O,z,M)=>this.onKeyframesResolved(O,z,N,!M),g,m,y),(T=this.keyframeResolver)==null||T.scheduleResolve()}onKeyframesResolved(a,i,r,o){this.keyframeResolver=void 0;const{name:c,type:d,velocity:p,delay:g,isHandoff:m,onUpdate:y}=r;this.resolvedAt=Ct.now(),xN(a,c,d,p)||((Vn.instantAnimations||!g)&&(y==null||y(dd(a,r,i))),a[0]=a[a.length-1],Mf(r),r.repeat=0);const v=o?this.resolvedAt?this.resolvedAt-this.createdAt>wN?this.resolvedAt:this.createdAt:this.createdAt:void 0,b=le(X({startTime:v,finalKeyframe:i},r),{keyframes:a}),j=!m&&SN(b)?new gN(le(X({},b),{element:b.motionValue.owner.current})):new md(b);j.finished.then(()=>this.notifyFinished()).catch(Wt),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}get finished(){return this._animation?this.animation.finished:this._finished}then(a,i){return this.finished.finally(a).then(()=>{})}get animation(){var a;return this._animation||((a=this.keyframeResolver)==null||a.resume(),iN()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var a;this._animation&&this.animation.cancel(),(a=this.keyframeResolver)==null||a.cancel()}}const NN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function TN(n){const a=NN.exec(n);if(!a)return[,];const[,i,r,o]=a;return[`--${i!=null?i:r}`,o]}function Vx(n,a,i=1){const[r,o]=TN(n);if(!r)return;const c=window.getComputedStyle(a).getPropertyValue(r);if(c){const d=c.trim();return ix(d)?parseFloat(d):d}return rd(o)?Vx(o,a,i+1):o}function gd(n,a){var i,r;return(r=(i=n==null?void 0:n[a])!=null?i:n==null?void 0:n.default)!=null?r:n}const _x=new Set(["width","height","top","left","right","bottom",...Fs]),EN={test:n=>n==="auto",parse:n=>n},kx=n=>a=>a.test(n),Hx=[Ks,oe,yn,ua,y4,g4,EN],gg=n=>Hx.find(kx(n));function AN(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||rx(n):!0}const CN=new Set(["brightness","contrast","saturate","opacity"]);function RN(n){const[a,i]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[r]=i.match(od)||[];if(!r)return n;const o=i.replace(r,"");let c=CN.has(a)?1:0;return r!==i&&(c*=100),a+"("+c+o+")"}const DN=/\b([a-z-]*)\(.*?\)/gu,Of=le(X({},da),{getAnimatableNone:n=>{const a=n.match(DN);return a?a.map(RN).join(" "):n}}),yg=le(X({},Ks),{transform:Math.round}),MN={rotate:ua,rotateX:ua,rotateY:ua,rotateZ:ua,scale:Yr,scaleX:Yr,scaleY:Yr,scaleZ:Yr,skew:ua,skewX:ua,skewY:ua,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:ol,originX:sg,originY:sg,originZ:oe},yd=le(X({borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,backgroundPositionX:oe,backgroundPositionY:oe},MN),{zIndex:yg,fillOpacity:ol,strokeOpacity:ol,numOctaves:yg}),ON=le(X({},yd),{color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,filter:Of,WebkitFilter:Of}),qx=n=>ON[n];function Px(n,a){let i=qx(n);return i!==Of&&(i=da),i.getAnimatableNone?i.getAnimatableNone(a):void 0}const LN=new Set(["auto","none","0"]);function zN(n,a,i){let r=0,o;for(;r<n.length&&!o;){const c=n[r];typeof c=="string"&&!LN.has(c)&&ul(c).values.length&&(o=n[r]),r++}if(o&&i)for(const c of a)n[c]=Px(i,o)}class BN extends pd{constructor(a,i,r,o,c){super(a,i,r,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:a,element:i,name:r}=this;if(!i||!i.current)return;super.readKeyframes();for(let g=0;g<a.length;g++){let m=a[g];if(typeof m=="string"&&(m=m.trim(),rd(m))){const y=Vx(m,i.current);y!==void 0&&(a[g]=y),g===a.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!_x.has(r)||a.length!==2)return;const[o,c]=a,d=gg(o),p=gg(c);if(d!==p)if(dg(d)&&dg(p))for(let g=0;g<a.length;g++){const m=a[g];typeof m=="string"&&(a[g]=parseFloat(m))}else Ha[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:i}=this,r=[];for(let o=0;o<a.length;o++)(a[o]===null||AN(a[o]))&&r.push(o);r.length&&zN(a,r,i)}measureInitialState(){const{element:a,unresolvedKeyframes:i,name:r}=this;if(!a||!a.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ha[r](a.measureViewportBox(),window.getComputedStyle(a.current)),i[0]=this.measuredOrigin;const o=i[i.length-1];o!==void 0&&a.getValue(r,o).jump(o,!1)}measureEndState(){var p;const{element:a,name:i,unresolvedKeyframes:r}=this;if(!a||!a.current)return;const o=a.getValue(i);o&&o.jump(this.measuredOrigin,!1);const c=r.length-1,d=r[c];r[c]=Ha[i](a.measureViewportBox(),window.getComputedStyle(a.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(p=this.removedTransforms)!=null&&p.length&&this.removedTransforms.forEach(([g,m])=>{a.getValue(g).set(m)}),this.resolveNoneKeyframes()}}function UN(n,a,i){var r;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let o=document;const c=(r=i==null?void 0:i[n])!=null?r:o.querySelectorAll(n);return c?Array.from(c):[]}return Array.from(n)}const Yx=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function Gx(n){return lx(n)&&"offsetHeight"in n}const xg=30,VN=n=>!isNaN(parseFloat(n));class _N{constructor(a,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var c;const o=Ct.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=i.owner}setCurrent(a){this.current=a,this.updatedAt=Ct.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=VN(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,i){this.events[a]||(this.events[a]=new ad);const r=this.events[a].add(i);return a==="change"?()=>{r(),ke.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const a in this.events)this.events[a].clear()}attach(a,i){this.passiveEffect=a,this.stopPassiveEffect=i}set(a){this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a)}setWithVelocity(a,i,r){this.set(i),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-r}jump(a,i=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var a;(a=this.events.change)==null||a.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const a=Ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>xg)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,xg);return ox(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(a){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=a(i),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(){var a,i;(a=this.dependents)==null||a.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Hs(n,a){return new _N(n,a)}const{schedule:xd}=vx(queueMicrotask,!1),sn={x:!1,y:!1};function Xx(){return sn.x||sn.y}function kN(n){return n==="x"||n==="y"?sn[n]?null:(sn[n]=!0,()=>{sn[n]=!1}):sn.x||sn.y?null:(sn.x=sn.y=!0,()=>{sn.x=sn.y=!1})}function Kx(n,a){const i=UN(n),r=new AbortController,o=le(X({passive:!0},a),{signal:r.signal});return[i,o,()=>r.abort()]}function vg(n){return!(n.pointerType==="touch"||Xx())}function HN(n,a,i={}){const[r,o,c]=Kx(n,i),d=p=>{if(!vg(p))return;const{target:g}=p,m=a(g,p);if(typeof m!="function"||!g)return;const y=v=>{vg(v)&&(m(v),g.removeEventListener("pointerleave",y))};g.addEventListener("pointerleave",y,o)};return r.forEach(p=>{p.addEventListener("pointerenter",d,o)}),c}const Fx=(n,a)=>a?n===a?!0:Fx(n,a.parentElement):!1,vd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,qN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function PN(n){return qN.has(n.tagName)||n.tabIndex!==-1}const Wr=new WeakSet;function bg(n){return a=>{a.key==="Enter"&&n(a)}}function ef(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const YN=(n,a)=>{const i=n.currentTarget;if(!i)return;const r=bg(()=>{if(Wr.has(i))return;ef(i,"down");const o=bg(()=>{ef(i,"up")}),c=()=>ef(i,"cancel");i.addEventListener("keyup",o,a),i.addEventListener("blur",c,a)});i.addEventListener("keydown",r,a),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),a)};function Sg(n){return vd(n)&&!Xx()}function GN(n,a,i={}){const[r,o,c]=Kx(n,i),d=p=>{const g=p.currentTarget;if(!Sg(p))return;Wr.add(g);const m=a(g,p),y=(j,N)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),Wr.has(g)&&Wr.delete(g),Sg(j)&&typeof m=="function"&&m(j,{success:N})},v=j=>{y(j,g===window||g===document||i.useGlobalTarget||Fx(g,j.target))},b=j=>{y(j,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",b,o)};return r.forEach(p=>{(i.useGlobalTarget?window:p).addEventListener("pointerdown",d,o),Gx(p)&&(p.addEventListener("focus",m=>YN(m,o)),!PN(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),c}function Zx(n){return lx(n)&&"ownerSVGElement"in n}function XN(n){return Zx(n)&&n.tagName==="svg"}const yt=n=>!!(n&&n.getVelocity),KN=[...Hx,tt,da],FN=n=>KN.find(kx(n)),bd=w.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class ZN extends w.Component{getSnapshotBeforeUpdate(a){const i=this.props.childRef.current;if(i&&a.isPresent&&!this.props.isPresent){const r=i.offsetParent,o=Gx(r)&&r.offsetWidth||0,c=this.props.sizeRef.current;c.height=i.offsetHeight||0,c.width=i.offsetWidth||0,c.top=i.offsetTop,c.left=i.offsetLeft,c.right=o-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function QN({children:n,isPresent:a,anchorX:i,root:r}){const o=w.useId(),c=w.useRef(null),d=w.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=w.useContext(bd);return w.useInsertionEffect(()=>{const{width:g,height:m,top:y,left:v,right:b}=d.current;if(a||!c.current||!g||!m)return;const j=i==="left"?`left: ${v}`:`right: ${b}`;c.current.dataset.motionPopId=o;const N=document.createElement("style");p&&(N.nonce=p);const A=r!=null?r:document.head;return A.appendChild(N),N.sheet&&N.sheet.insertRule(`
68
68
  [data-motion-pop-id="${o}"] {
69
69
  position: absolute !important;
70
70
  width: ${g}px !important;
@@ -72,4 +72,4 @@ Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}
72
72
  ${j}px !important;
73
73
  top: ${y}px !important;
74
74
  }
75
- `),()=>{A.contains(N)&&A.removeChild(N)}},[a]),f.jsx($N,{isPresent:a,childRef:c,sizeRef:d,children:w.cloneElement(n,{ref:c})})}const WN=({children:n,initial:a,isPresent:i,onExitComplete:r,custom:o,presenceAffectsLayout:c,mode:d,anchorX:p,root:g})=>{const m=If(IN),y=w.useId();let v=!0,b=w.useMemo(()=>(v=!1,{id:y,initial:a,isPresent:i,custom:o,onExitComplete:j=>{m.set(j,!0);for(const N of m.values())if(!N)return;r&&r()},register:j=>(m.set(j,!1),()=>m.delete(j))}),[i,m,r]);return c&&v&&(b=X({},b)),w.useMemo(()=>{m.forEach((j,N)=>m.set(N,!1))},[i]),w.useEffect(()=>{!i&&!m.size&&r&&r()},[i]),d==="popLayout"&&(n=f.jsx(JN,{isPresent:i,anchorX:p,root:g,children:n})),f.jsx(xo.Provider,{value:b,children:n})};function IN(){return new Map}function Zx(n=!0){const a=w.useContext(xo);if(a===null)return[!0,null];const{isPresent:i,onExitComplete:r,register:o}=a,c=w.useId();w.useEffect(()=>{if(n)return o(c)},[n]);const d=w.useCallback(()=>n&&r&&r(c),[c,r,n]);return!i&&r?[!1,d]:[!0]}const Yr=n=>n.key||"";function Sg(n){const a=[];return w.Children.forEach(n,i=>{w.isValidElement(i)&&a.push(i)}),a}const nf=({children:n,custom:a,initial:i=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:c="sync",propagate:d=!1,anchorX:p="left",root:g})=>{const[m,y]=Zx(d),v=w.useMemo(()=>Sg(n),[n]),b=d&&!m?[]:v.map(Yr),j=w.useRef(!0),N=w.useRef(v),A=If(()=>new Map),[E,O]=w.useState(v),[L,M]=w.useState(v);ax(()=>{j.current=!1,N.current=v;for(let Z=0;Z<L.length;Z++){const Q=Yr(L[Z]);b.includes(Q)?A.delete(Q):A.get(Q)!==!0&&A.set(Q,!1)}},[L,b.length,b.join("-")]);const K=[];if(v!==E){let Z=[...v];for(let Q=0;Q<L.length;Q++){const J=L[Q],ce=Yr(J);b.includes(ce)||(Z.splice(Q,0,J),K.push(J))}return c==="wait"&&K.length&&(Z=K),M(Sg(Z)),O(v),null}const{forceRender:U}=w.useContext(Wf);return f.jsx(f.Fragment,{children:L.map(Z=>{const Q=Yr(Z),J=d&&!m?!1:v===L||b.includes(Q),ce=()=>{if(A.has(Q))A.set(Q,!0);else return;let Se=!0;A.forEach(ge=>{ge||(Se=!1)}),Se&&(U==null||U(),M(N.current),d&&(y==null||y()),r&&r())};return f.jsx(WN,{isPresent:J,initial:!j.current||i?void 0:!1,custom:a,presenceAffectsLayout:o,mode:c,root:g,onExitComplete:J?void 0:ce,anchorX:p,children:Z},Q)})})},Qx=w.createContext({strict:!1}),wg={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"]},Hs={};for(const n in wg)Hs[n]={isEnabled:a=>wg[n].some(i=>!!a[i])};function eT(n){for(const a in n)Hs[a]=X(X({},Hs[a]),n[a])}const tT=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 ro(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||tT.has(n)}let $x=n=>!ro(n);function nT(n){typeof n=="function"&&($x=a=>a.startsWith("on")?!ro(a):n(a))}try{nT(require("@emotion/is-prop-valid").default)}catch(n){}function aT(n,a,i){const r={};for(const o in n)o==="values"&&typeof n.values=="object"||($x(o)||i===!0&&ro(o)||!a&&!ro(o)||n.draggable&&o.startsWith("onDrag"))&&(r[o]=n[o]);return r}const vo=w.createContext({});function bo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function cl(n){return typeof n=="string"||Array.isArray(n)}const jd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nd=["initial",...jd];function So(n){return bo(n.animate)||Nd.some(a=>cl(n[a]))}function Jx(n){return!!(So(n)||n.variants)}function sT(n,a){if(So(n)){const{initial:i,animate:r}=n;return{initial:i===!1||cl(i)?i:void 0,animate:cl(r)?r:void 0}}return n.inherit!==!1?a:{}}function iT(n){const{initial:a,animate:i}=sT(n,w.useContext(vo));return w.useMemo(()=>({initial:a,animate:i}),[jg(a),jg(i)])}function jg(n){return Array.isArray(n)?n.join(" "):n}const fl={};function lT(n){for(const a in n)fl[a]=n[a],od(a)&&(fl[a].isCSSVariable=!0)}function Wx(n,{layout:a,layoutId:i}){return Fs.has(n)||n.startsWith("origin")||(a||i!==void 0)&&(!!fl[n]||n==="opacity")}const rT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oT=Ks.length;function uT(n,a,i){let r="",o=!0;for(let c=0;c<oT;c++){const d=Ks[c],p=n[d];if(p===void 0)continue;let g=!0;if(typeof p=="number"?g=p===(d.startsWith("scale")?1:0):g=parseFloat(p)===0,!g||i){const m=Px(p,vd[d]);if(!g){o=!1;const y=rT[d]||d;r+=`${y}(${m}) `}i&&(a[d]=m)}}return r=r.trim(),i?r=i(a,o?"":r):o&&(r="none"),r}function Td(n,a,i){const{style:r,vars:o,transformOrigin:c}=n;let d=!1,p=!1;for(const g in a){const m=a[g];if(Fs.has(g)){d=!0;continue}else if(od(g)){o[g]=m;continue}else{const y=Px(m,vd[g]);g.startsWith("origin")?(p=!0,c[g]=y):r[g]=y}}if(a.transform||(d||i?r.transform=uT(a,n.transform,i):r.transform&&(r.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:y=0}=c;r.transformOrigin=`${g} ${m} ${y}`}}const Ed=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ix(n,a,i){for(const r in a)!yt(a[r])&&!Wx(r,i)&&(n[r]=a[r])}function cT({transformTemplate:n},a){return w.useMemo(()=>{const i=Ed();return Td(i,a,n),Object.assign({},i.vars,i.style)},[a])}function fT(n,a){const i=n.style||{},r={};return Ix(r,i,n),Object.assign(r,cT(n,a)),r}function dT(n,a){const i={},r=fT(n,a);return n.drag&&n.dragListener!==!1&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(i.tabIndex=0),i.style=r,i}const hT={offset:"stroke-dashoffset",array:"stroke-dasharray"},mT={offset:"strokeDashoffset",array:"strokeDasharray"};function pT(n,a,i=1,r=0,o=!0){n.pathLength=1;const c=o?hT:mT;n[c.offset]=oe.transform(-r);const d=oe.transform(a),p=oe.transform(i);n[c.array]=`${d} ${p}`}function e1(n,v,g,m,y){var b=v,{attrX:a,attrY:i,attrScale:r,pathLength:o,pathSpacing:c=1,pathOffset:d=0}=b,p=ot(b,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var A,E;if(Td(n,p,m),g){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:j,style:N}=n;j.transform&&(N.transform=j.transform,delete j.transform),(N.transform||j.transformOrigin)&&(N.transformOrigin=(A=j.transformOrigin)!=null?A:"50% 50%",delete j.transformOrigin),N.transform&&(N.transformBox=(E=y==null?void 0:y.transformBox)!=null?E:"fill-box",delete j.transformBox),a!==void 0&&(j.x=a),i!==void 0&&(j.y=i),r!==void 0&&(j.scale=r),o!==void 0&&pT(j,o,c,d,!1)}const t1=()=>le(X({},Ed()),{attrs:{}}),n1=n=>typeof n=="string"&&n.toLowerCase()==="svg";function gT(n,a,i,r){const o=w.useMemo(()=>{const c=t1();return e1(c,a,n1(r),n.transformTemplate,n.style),le(X({},c.attrs),{style:X({},c.style)})},[a]);if(n.style){const c={};Ix(c,n.style,n),o.style=X(X({},c),o.style)}return o}const yT=["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 Ad(n){return typeof n!="string"||n.includes("-")?!1:!!(yT.indexOf(n)>-1||/[A-Z]/u.test(n))}function xT(n,a,i,{latestValues:r},o,c=!1){const p=(Ad(n)?gT:dT)(a,r,o,n),g=aT(a,typeof n=="string",c),m=n!==w.Fragment?le(X(X({},g),p),{ref:i}):{},{children:y}=a,v=w.useMemo(()=>yt(y)?y.get():y,[y]);return w.createElement(n,le(X({},m),{children:v}))}function Ng(n){const a=[{},{}];return n==null||n.values.forEach((i,r)=>{a[0][r]=i.get(),a[1][r]=i.getVelocity()}),a}function Cd(n,a,i,r){if(typeof a=="function"){const[o,c]=Ng(r);a=a(i!==void 0?i:n.custom,o,c)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[o,c]=Ng(r);a=a(i!==void 0?i:n.custom,o,c)}return a}function Wr(n){return yt(n)?n.get():n}function vT({scrapeMotionValuesFromProps:n,createRenderState:a},i,r,o){return{latestValues:bT(i,r,o,n),renderState:a()}}function bT(n,a,i,r){const o={},c=r(n,{});for(const j in c)o[j]=Wr(c[j]);let{initial:d,animate:p}=n;const g=So(n),m=Jx(n);a&&m&&!g&&n.inherit!==!1&&(d===void 0&&(d=a.initial),p===void 0&&(p=a.animate));let y=i?i.initial===!1:!1;y=y||d===!1;const v=y?p:d;if(v&&typeof v!="boolean"&&!bo(v)){const j=Array.isArray(v)?v:[v];for(let N=0;N<j.length;N++){const A=Cd(n,j[N]);if(A){const b=A,{transitionEnd:E,transition:O}=b,L=ot(b,["transitionEnd","transition"]);for(const M in L){let K=L[M];if(Array.isArray(K)){const U=y?K.length-1:0;K=K[U]}K!==null&&(o[M]=K)}for(const M in E)o[M]=E[M]}}}return o}const a1=n=>(a,i)=>{const r=w.useContext(vo),o=w.useContext(xo),c=()=>vT(n,a,r,o);return i?c():If(c)};function Rd(n,a,i){var c;const{style:r}=n,o={};for(const d in r)(yt(r[d])||a.style&&yt(a.style[d])||Wx(d,n)||((c=i==null?void 0:i.getValue(d))==null?void 0:c.liveStyle)!==void 0)&&(o[d]=r[d]);return o}const ST=a1({scrapeMotionValuesFromProps:Rd,createRenderState:Ed});function s1(n,a,i){const r=Rd(n,a,i);for(const o in n)if(yt(n[o])||yt(a[o])){const c=Ks.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[c]=n[o]}return r}const wT=a1({scrapeMotionValuesFromProps:s1,createRenderState:t1}),jT=Symbol.for("motionComponentSymbol");function zs(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function NT(n,a,i){return w.useCallback(r=>{r&&n.onMount&&n.onMount(r),a&&(r?a.mount(r):a.unmount()),i&&(typeof i=="function"?i(r):zs(i)&&(i.current=r))},[a])}const Dd=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),TT="framerAppearId",i1="data-"+Dd(TT),l1=w.createContext({});function ET(n,a,i,r,o){var A,E;const{visualElement:c}=w.useContext(vo),d=w.useContext(Qx),p=w.useContext(xo),g=w.useContext(wd).reducedMotion,m=w.useRef(null);r=r||d.renderer,!m.current&&r&&(m.current=r(n,{visualState:a,parent:c,props:i,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g}));const y=m.current,v=w.useContext(l1);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&AT(m.current,i,o,v);const b=w.useRef(!1);w.useInsertionEffect(()=>{y&&b.current&&y.update(i,p)});const j=i[i1],N=w.useRef(!!j&&!((A=window.MotionHandoffIsComplete)!=null&&A.call(window,j))&&((E=window.MotionHasOptimisedAnimation)==null?void 0:E.call(window,j)));return ax(()=>{y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),N.current&&y.animationState&&y.animationState.animateChanges())}),w.useEffect(()=>{y&&(!N.current&&y.animationState&&y.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,j)}),N.current=!1),y.enteringChildren=void 0)}),y}function AT(n,a,i,r){const{layoutId:o,layout:c,drag:d,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:y}=a;n.projection=new i(n.latestValues,a["data-framer-portal-id"]?void 0:r1(n.parent)),n.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!d||p&&zs(p),visualElement:n,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:g,layoutRoot:m})}function r1(n){if(n)return n.options.allowProjection!==!1?n.projection:r1(n.parent)}function af(n,{forwardMotionProps:a=!1}={},i,r){var p,g;i&&eT(i);const o=Ad(n)?wT:ST;function c(m,y){let v;const b=le(X(X({},w.useContext(wd)),m),{layoutId:CT(m)}),{isStatic:j}=b,N=iT(m),A=o(m,j);if(!j&&ed){RT();const E=DT(b);v=E.MeasureLayout,N.visualElement=ET(n,A,b,r,E.ProjectionNode)}return f.jsxs(vo.Provider,{value:N,children:[v&&N.visualElement?f.jsx(v,X({visualElement:N.visualElement},b)):null,xT(n,m,NT(A,N.visualElement,y),A,j,a)]})}c.displayName=`motion.${typeof n=="string"?n:`create(${(g=(p=n.displayName)!=null?p:n.name)!=null?g:""})`}`;const d=w.forwardRef(c);return d[jT]=n,d}function CT({layoutId:n}){const a=w.useContext(Wf).id;return a&&n!==void 0?a+"-"+n:n}function RT(n,a){w.useContext(Qx).strict}function DT(n){const{drag:a,layout:i}=Hs;if(!a&&!i)return{};const r=X(X({},a),i);return{MeasureLayout:a!=null&&a.isEnabled(n)||i!=null&&i.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function MT(n,a){if(typeof Proxy=="undefined")return af;const i=new Map,r=(c,d)=>af(c,d,n,a),o=(c,d)=>r(c,d);return new Proxy(o,{get:(c,d)=>d==="create"?r:(i.has(d)||i.set(d,af(d,void 0,n,a)),i.get(d))})}function o1({top:n,left:a,right:i,bottom:r}){return{x:{min:a,max:i},y:{min:n,max:r}}}function OT({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function LT(n,a){if(!a)return n;const i=a({x:n.left,y:n.top}),r=a({x:n.right,y:n.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}function sf(n){return n===void 0||n===1}function Bf({scale:n,scaleX:a,scaleY:i}){return!sf(n)||!sf(a)||!sf(i)}function Ba(n){return Bf(n)||u1(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function u1(n){return Tg(n.x)||Tg(n.y)}function Tg(n){return n&&n!=="0%"}function oo(n,a,i){const r=n-i,o=a*r;return i+o}function Eg(n,a,i,r,o){return o!==void 0&&(n=oo(n,o,r)),oo(n,i,r)+a}function Uf(n,a=0,i=1,r,o){n.min=Eg(n.min,a,i,r,o),n.max=Eg(n.max,a,i,r,o)}function c1(n,{x:a,y:i}){Uf(n.x,a.translate,a.scale,a.originPoint),Uf(n.y,i.translate,i.scale,i.originPoint)}const Ag=.999999999999,Cg=1.0000000000001;function zT(n,a,i,r=!1){const o=i.length;if(!o)return;a.x=a.y=1;let c,d;for(let p=0;p<o;p++){c=i[p],d=c.projectionDelta;const{visualElement:g}=c.options;g&&g.props.style&&g.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Us(n,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,c1(n,d)),r&&Ba(c.latestValues)&&Us(n,c.latestValues))}a.x<Cg&&a.x>Ag&&(a.x=1),a.y<Cg&&a.y>Ag&&(a.y=1)}function Bs(n,a){n.min=n.min+a,n.max=n.max+a}function Rg(n,a,i,r,o=.5){const c=Pe(n.min,n.max,o);Uf(n,a,i,c,r)}function Us(n,a){Rg(n.x,a.x,a.scaleX,a.scale,a.originX),Rg(n.y,a.y,a.scaleY,a.scale,a.originY)}function f1(n,a){return o1(LT(n.getBoundingClientRect(),a))}function BT(n,a,i){const r=f1(n,i),{scroll:o}=a;return o&&(Bs(r.x,o.offset.x),Bs(r.y,o.offset.y)),r}const Dg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vs=()=>({x:Dg(),y:Dg()}),Mg=()=>({min:0,max:0}),$e=()=>({x:Mg(),y:Mg()}),Vf={current:null},d1={current:!1};function UT(){if(d1.current=!0,!!ed)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>Vf.current=n.matches;n.addEventListener("change",a),a()}else Vf.current=!1}const VT=new WeakMap;function _T(n,a,i){for(const r in a){const o=a[r],c=i[r];if(yt(o))n.addValue(r,o);else if(yt(c))n.addValue(r,ks(o,{owner:n}));else if(c!==o)if(n.hasValue(r)){const d=n.getValue(r);d.liveStyle===!0?d.jump(o):d.hasAnimated||d.set(o)}else{const d=n.getStaticValue(r);n.addValue(r,ks(d!==void 0?d:o,{owner:n}))}}for(const r in i)a[r]===void 0&&n.removeValue(r);return a}const Og=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class kT{scrapeMotionValuesFromProps(a,i,r){return{}}constructor({parent:a,props:i,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:c,visualState:d},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yd,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 j=Ct.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,_e.render(this.render,!1,!0))};const{latestValues:g,renderState:m}=d;this.latestValues=g,this.baseTarget=X({},g),this.initialValues=i.initial?X({},g):{},this.renderState=m,this.parent=a,this.props=i,this.presenceContext=r,this.depth=a?a.depth+1:0,this.reducedMotionConfig=o,this.options=p,this.blockInitialAnimation=!!c,this.isControllingVariants=So(i),this.isVariantNode=Jx(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const b=this.scrapeMotionValuesFromProps(i,{},this),{willChange:y}=b,v=ot(b,["willChange"]);for(const j in v){const N=v[j];g[j]!==void 0&&yt(N)&&N.set(g[j])}}mount(a){var i;this.current=a,VT.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),d1.current||UT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Vf.current,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var a;this.projection&&this.projection.unmount(),fa(this.notifyUpdate),fa(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const r=this.features[i];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(a){var i;this.children.add(a),(i=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,i){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const r=Fs.has(a);r&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&_e.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,a,i)),this.valueSubscriptions.set(a,()=>{o(),c&&c(),i.owner&&i.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in Hs){const i=Hs[a];if(!i)continue;const{isEnabled:r,Feature:o}=i;if(!this.features[a]&&o&&r(this.props)&&(this.features[a]=new o(this)),this.features[a]){const c=this.features[a];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$e()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,i){this.latestValues[a]=i}update(a,i){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let r=0;r<Og.length;r++){const o=Og[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,d=a[c];d&&(this.propEventSubscriptions[o]=this.on(o,d))}this.prevMotionValues=_T(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(a),()=>i.variantChildren.delete(a)}addValue(a,i){const r=this.values.get(a);i!==r&&(r&&this.removeValue(a),this.bindToMotionValue(a,i),this.values.set(a,i),this.latestValues[a]=i.get())}removeValue(a){this.values.delete(a);const i=this.valueSubscriptions.get(a);i&&(i(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,i){if(this.props.values&&this.props.values[a])return this.props.values[a];let r=this.values.get(a);return r===void 0&&i!==void 0&&(r=ks(i===null?void 0:i,{owner:this}),this.addValue(a,r)),r}readValue(a,i){var o;let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:(o=this.getBaseTargetFromProps(this.props,a))!=null?o:this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(sx(r)||lx(r))?r=parseFloat(r):!QN(r)&&da.test(i)&&(r=qx(a,i)),this.setBaseTarget(a,yt(r)?r.get():r)),yt(r)?r.get():r}setBaseTarget(a,i){this.baseTarget[a]=i}getBaseTarget(a){var c;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const d=Cd(this.props,i,(c=this.presenceContext)==null?void 0:c.custom);d&&(r=d[a])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,a);return o!==void 0&&!yt(o)?o:this.initialValues[a]!==void 0&&r===void 0?void 0:this.baseTarget[a]}on(a,i){return this.events[a]||(this.events[a]=new id),this.events[a].add(i)}notify(a,...i){this.events[a]&&this.events[a].notify(...i)}scheduleRenderMicrotask(){bd.render(this.render)}}class h1 extends kT{constructor(){super(...arguments),this.KeyframeResolver=VN}sortInstanceNodePosition(a,i){return a.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(a,i){return a.style?a.style[i]:void 0}removeValueFromRenderState(a,{vars:i,style:r}){delete i[a],delete r[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;yt(a)&&(this.childSubscription=a.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function m1(n,{style:a,vars:i},r,o){const c=n.style;let d;for(d in a)c[d]=a[d];o==null||o.applyProjectionStyles(c,r);for(d in i)c.setProperty(d,i[d])}function HT(n){return window.getComputedStyle(n)}class qT extends h1{constructor(){super(...arguments),this.type="html",this.renderInstance=m1}readValueFromInstance(a,i){var r;if(Fs.has(i))return(r=this.projection)!=null&&r.isProjecting?Cf(i):nN(a,i);{const o=HT(a),c=(od(i)?o.getPropertyValue(i):o[i])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(a,{transformPagePoint:i}){return f1(a,i)}build(a,i,r){Td(a,i,r.transformTemplate)}scrapeMotionValuesFromProps(a,i,r){return Rd(a,i,r)}}const p1=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 PT(n,a,i,r){m1(n,a,void 0,r);for(const o in a.attrs)n.setAttribute(p1.has(o)?o:Dd(o),a.attrs[o])}class YT extends h1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$e}getBaseTargetFromProps(a,i){return a[i]}readValueFromInstance(a,i){if(Fs.has(i)){const r=Hx(i);return r&&r.default||0}return i=p1.has(i)?i:Dd(i),a.getAttribute(i)}scrapeMotionValuesFromProps(a,i,r){return s1(a,i,r)}build(a,i,r){e1(a,i,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,i,r,o){PT(a,i,r,o)}mount(a){this.isSVGTag=n1(a.tagName),super.mount(a)}}const GT=(n,a)=>Ad(n)?new YT(a):new qT(a,{allowProjection:n!==w.Fragment});function _s(n,a,i){const r=n.getProps();return Cd(r,a,i!==void 0?i:r.custom,n)}const _f=n=>Array.isArray(n);function XT(n,a,i){n.hasValue(a)?n.getValue(a).set(i):n.addValue(a,ks(i))}function KT(n){return _f(n)?n[n.length-1]||0:n}function FT(n,a){let d=_s(n,a)||{},{transitionEnd:r={},transition:o={}}=d,c=ot(d,["transitionEnd","transition"]);c=X(X({},c),r);for(const p in c){const g=KT(c[p]);XT(n,p,g)}}function ZT(n){return!!(yt(n)&&n.add)}function kf(n,a){const i=n.getValue("willChange");if(ZT(i))return i.add(a);if(!i&&Vn.WillChange){const r=new Vn.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function g1(n){return n.props[i1]}const QT=n=>n!==null;function $T(n,{repeat:a,repeatType:i="loop"},r){const o=n.filter(QT),c=a&&i!=="loop"&&a%2===1?0:o.length-1;return o[c]}const JT={type:"spring",stiffness:500,damping:25,restSpeed:10},WT=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),IT={type:"keyframes",duration:.8},eE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tE=(n,{keyframes:a})=>a.length>2?IT:Fs.has(n)?n.startsWith("scale")?WT(a[1]):JT:eE;function nE(v){var b=v,{when:n,delay:a,delayChildren:i,staggerChildren:r,staggerDirection:o,repeat:c,repeatType:d,repeatDelay:p,from:g,elapsed:m}=b,y=ot(b,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(y).length}const Md=(n,a,i,r={},o,c)=>d=>{const p=xd(r,n)||{},g=p.delay||r.delay||0;let{elapsed:m=0}=r;m=m-pn(g);const y=le(X({keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:a.getVelocity()},p),{delay:-m,onUpdate:b=>{a.set(b),p.onUpdate&&p.onUpdate(b)},onComplete:()=>{d(),p.onComplete&&p.onComplete()},name:n,motionValue:a,element:c?void 0:o});nE(p)||Object.assign(y,tE(n,y)),y.duration&&(y.duration=pn(y.duration)),y.repeatDelay&&(y.repeatDelay=pn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Lf(y),y.delay===0&&(v=!0)),(Vn.instantAnimations||Vn.skipAnimations)&&(v=!0,Lf(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,v&&!c&&a.get()!==void 0){const b=$T(y.keyframes,p);if(b!==void 0){_e.update(()=>{y.onUpdate(b),y.onComplete()});return}}return p.isSync?new gd(y):new TN(y)};function aE({protectedKeys:n,needsAnimating:a},i){const r=n.hasOwnProperty(i)&&a[i]!==!0;return a[i]=!1,r}function y1(n,a,{delay:i=0,transitionOverride:r,type:o}={}){var v;let y=a,{transition:c=n.getDefaultTransition(),transitionEnd:d}=y,p=ot(y,["transition","transitionEnd"]);r&&(c=r);const g=[],m=o&&n.animationState&&n.animationState.getState()[o];for(const b in p){const j=n.getValue(b,(v=n.latestValues[b])!=null?v:null),N=p[b];if(N===void 0||m&&aE(m,b))continue;const A=X({delay:i},xd(c||{},b)),E=j.get();if(E!==void 0&&!j.isAnimating&&!Array.isArray(N)&&N===E&&!A.velocity)continue;let O=!1;if(window.MotionHandoffAnimation){const M=g1(n);if(M){const K=window.MotionHandoffAnimation(M,b,_e);K!==null&&(A.startTime=K,O=!0)}}kf(n,b),j.start(Md(b,j,N,n.shouldReduceMotion&&Vx.has(b)?{type:!1}:A,n,O));const L=j.animation;L&&g.push(L)}return d&&Promise.all(g).then(()=>{_e.update(()=>{d&&FT(n,d)})}),g}function x1(n,a,i,r=0,o=1){const c=Array.from(n).sort((m,y)=>m.sortNodePosition(y)).indexOf(a),d=n.size,p=(d-1)*r;return typeof i=="function"?i(c,d):o===1?c*r:p-c*r}function Hf(n,a,i={}){var g;const r=_s(n,a,i.type==="exit"?(g=n.presenceContext)==null?void 0:g.custom:void 0);let{transition:o=n.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(o=i.transitionOverride);const c=r?()=>Promise.all(y1(n,r,i)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:b}=o;return sE(n,a,m,y,v,b,i)}:()=>Promise.resolve(),{when:p}=o;if(p){const[m,y]=p==="beforeChildren"?[c,d]:[d,c];return m().then(()=>y())}else return Promise.all([c(),d(i.delay)])}function sE(n,a,i=0,r=0,o=0,c=1,d){const p=[];for(const g of n.variantChildren)g.notify("AnimationStart",a),p.push(Hf(g,a,le(X({},d),{delay:i+(typeof r=="function"?0:r)+x1(n.variantChildren,g,r,o,c)})).then(()=>g.notify("AnimationComplete",a)));return Promise.all(p)}function iE(n,a,i={}){n.notify("AnimationStart",a);let r;if(Array.isArray(a)){const o=a.map(c=>Hf(n,c,i));r=Promise.all(o)}else if(typeof a=="string")r=Hf(n,a,i);else{const o=typeof a=="function"?_s(n,a,i.custom):a;r=Promise.all(y1(n,o,i))}return r.then(()=>{n.notify("AnimationComplete",a)})}function v1(n,a){if(!Array.isArray(a))return!1;const i=a.length;if(i!==n.length)return!1;for(let r=0;r<i;r++)if(a[r]!==n[r])return!1;return!0}const lE=Nd.length;function b1(n){if(!n)return;if(!n.isControllingVariants){const i=n.parent?b1(n.parent)||{}:{};return n.props.initial!==void 0&&(i.initial=n.props.initial),i}const a={};for(let i=0;i<lE;i++){const r=Nd[i],o=n.props[r];(cl(o)||o===!1)&&(a[r]=o)}return a}const rE=[...jd].reverse(),oE=jd.length;function uE(n){return a=>Promise.all(a.map(({animation:i,options:r})=>iE(n,i,r)))}function cE(n){let a=uE(n),i=Lg(),r=!0;const o=g=>(m,y)=>{var b;const v=_s(n,y,g==="exit"?(b=n.presenceContext)==null?void 0:b.custom:void 0);if(v){const j=v,{transition:N,transitionEnd:A}=j,E=ot(j,["transition","transitionEnd"]);m=X(X(X({},m),E),A)}return m};function c(g){a=g(n)}function d(g){const{props:m}=n,y=b1(n.parent)||{},v=[],b=new Set;let j={},N=1/0;for(let E=0;E<oE;E++){const O=rE[E],L=i[O],M=m[O]!==void 0?m[O]:y[O],K=cl(M),U=O===g?L.isActive:null;U===!1&&(N=E);let Z=M===y[O]&&M!==m[O]&&K;if(Z&&r&&n.manuallyAnimateOnMount&&(Z=!1),L.protectedKeys=X({},j),!L.isActive&&U===null||!M&&!L.prevProp||bo(M)||typeof M=="boolean")continue;const Q=fE(L.prevProp,M);let J=Q||O===g&&L.isActive&&!Z&&K||E>N&&K,ce=!1;const Se=Array.isArray(M)?M:[M];let ge=Se.reduce(o(O),{});U===!1&&(ge={});const{prevResolvedValues:he={}}=L,ke=X(X({},he),ge),We=F=>{J=!0,b.has(F)&&(ce=!0,b.delete(F)),L.needsAnimating[F]=!0;const ee=n.getValue(F);ee&&(ee.liveStyle=!1)};for(const F in ke){const ee=ge[F],xe=he[F];if(j.hasOwnProperty(F))continue;let C=!1;_f(ee)&&_f(xe)?C=!v1(ee,xe):C=ee!==xe,C?ee!=null?We(F):b.add(F):ee!==void 0&&b.has(F)?We(F):L.protectedKeys[F]=!0}L.prevProp=M,L.prevResolvedValues=ge,L.isActive&&(j=X(X({},j),ge)),r&&n.blockInitialAnimation&&(J=!1);const Le=Z&&Q;J&&(!Le||ce)&&v.push(...Se.map(F=>{const ee={type:O};if(typeof F=="string"&&r&&!Le&&n.manuallyAnimateOnMount&&n.parent){const{parent:xe}=n,C=_s(xe,F);if(xe.enteringChildren&&C){const{delayChildren:Y}=C.transition||{};ee.delay=x1(xe.enteringChildren,n,Y)}}return{animation:F,options:ee}}))}if(b.size){const E={};if(typeof m.initial!="boolean"){const O=_s(n,Array.isArray(m.initial)?m.initial[0]:m.initial);O&&O.transition&&(E.transition=O.transition)}b.forEach(O=>{const L=n.getBaseTarget(O),M=n.getValue(O);M&&(M.liveStyle=!0),E[O]=L!=null?L:null}),v.push({animation:E})}let A=!!v.length;return r&&(m.initial===!1||m.initial===m.animate)&&!n.manuallyAnimateOnMount&&(A=!1),r=!1,A?a(v):Promise.resolve()}function p(g,m){var v;if(i[g].isActive===m)return Promise.resolve();(v=n.variantChildren)==null||v.forEach(b=>{var j;return(j=b.animationState)==null?void 0:j.setActive(g,m)}),i[g].isActive=m;const y=d(g);for(const b in i)i[b].protectedKeys={};return y}return{animateChanges:d,setActive:p,setAnimateFunction:c,getState:()=>i,reset:()=>{i=Lg(),r=!0}}}function fE(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!v1(a,n):!1}function za(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lg(){return{animate:za(!0),whileInView:za(),whileHover:za(),whileTap:za(),whileDrag:za(),whileFocus:za(),exit:za()}}class ma{constructor(a){this.isMounted=!1,this.node=a}update(){}}class dE extends ma{constructor(a){super(a),a.animationState||(a.animationState=cE(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();bo(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:i}=this.node.prevProps||{};a!==i&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let hE=0;class mE extends ma{constructor(){super(...arguments),this.id=hE++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:i}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===r)return;const o=this.node.animationState.setActive("exit",!a);i&&!a&&o.then(()=>{i(this.id)})}mount(){const{register:a,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const pE={animation:{Feature:dE},exit:{Feature:mE}};function dl(n,a,i,r={passive:!0}){return n.addEventListener(a,i,r),()=>n.removeEventListener(a,i)}function Nl(n){return{point:{x:n.pageX,y:n.pageY}}}const gE=n=>a=>Sd(a)&&n(a,Nl(a));function nl(n,a,i,r){return dl(n,a,gE(i),r)}const S1=1e-4,yE=1-S1,xE=1+S1,w1=.01,vE=0-w1,bE=0+w1;function wt(n){return n.max-n.min}function SE(n,a,i){return Math.abs(n-a)<=i}function zg(n,a,i,r=.5){n.origin=r,n.originPoint=Pe(a.min,a.max,n.origin),n.scale=wt(i)/wt(a),n.translate=Pe(i.min,i.max,n.origin)-n.originPoint,(n.scale>=yE&&n.scale<=xE||isNaN(n.scale))&&(n.scale=1),(n.translate>=vE&&n.translate<=bE||isNaN(n.translate))&&(n.translate=0)}function al(n,a,i,r){zg(n.x,a.x,i.x,r?r.originX:void 0),zg(n.y,a.y,i.y,r?r.originY:void 0)}function Bg(n,a,i){n.min=i.min+a.min,n.max=n.min+wt(a)}function wE(n,a,i){Bg(n.x,a.x,i.x),Bg(n.y,a.y,i.y)}function Ug(n,a,i){n.min=a.min-i.min,n.max=n.min+wt(a)}function sl(n,a,i){Ug(n.x,a.x,i.x),Ug(n.y,a.y,i.y)}function Jt(n){return[n("x"),n("y")]}const j1=({current:n})=>n?n.ownerDocument.defaultView:null,Vg=(n,a)=>Math.abs(n-a);function jE(n,a){const i=Vg(n.x,a.x),r=Vg(n.y,a.y);return Math.sqrt(Uc(i,2)+Uc(r,2))}class N1{constructor(a,i,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:d=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=rf(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,N=jE(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!N)return;const{point:A}=b,{timestamp:E}=dt;this.history.push(le(X({},A),{timestamp:E}));const{onStart:O,onMove:L}=this.handlers;j||(O&&O(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,b)},this.handlePointerMove=(b,j)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=lf(j,this.transformPagePoint),_e.update(this.updatePoint,!0)},this.handlePointerUp=(b,j)=>{this.end();const{onEnd:N,onSessionEnd:A,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=rf(b.type==="pointercancel"?this.lastMoveEventInfo:lf(j,this.transformPagePoint),this.history);this.startEvent&&N&&N(b,O),A&&A(b,O)},!Sd(a))return;this.dragSnapToOrigin=c,this.handlers=i,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=o||window;const p=Nl(a),g=lf(p,this.transformPagePoint),{point:m}=g,{timestamp:y}=dt;this.history=[le(X({},m),{timestamp:y})];const{onSessionStart:v}=i;v&&v(a,rf(g,this.history)),this.removeListeners=Sl(nl(this.contextWindow,"pointermove",this.handlePointerMove),nl(this.contextWindow,"pointerup",this.handlePointerUp),nl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),fa(this.updatePoint)}}function lf(n,a){return a?{point:a(n.point)}:n}function _g(n,a){return{x:n.x-a.x,y:n.y-a.y}}function rf({point:n},a){return{point:n,delta:_g(n,T1(a)),offset:_g(n,NE(a)),velocity:TE(a,.1)}}function NE(n){return n[0]}function T1(n){return n[n.length-1]}function TE(n,a){if(n.length<2)return{x:0,y:0};let i=n.length-1,r=null;const o=T1(n);for(;i>=0&&(r=n[i],!(o.timestamp-r.timestamp>pn(a)));)i--;if(!r)return{x:0,y:0};const c=gn(o.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const d={x:(o.x-r.x)/c,y:(o.y-r.y)/c};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function EE(n,{min:a,max:i},r){return a!==void 0&&n<a?n=r?Pe(a,n,r.min):Math.max(n,a):i!==void 0&&n>i&&(n=r?Pe(i,n,r.max):Math.min(n,i)),n}function kg(n,a,i){return{min:a!==void 0?n.min+a:void 0,max:i!==void 0?n.max+i-(n.max-n.min):void 0}}function AE(n,{top:a,left:i,bottom:r,right:o}){return{x:kg(n.x,i,o),y:kg(n.y,a,r)}}function Hg(n,a){let i=a.min-n.min,r=a.max-n.max;return a.max-a.min<n.max-n.min&&([i,r]=[r,i]),{min:i,max:r}}function CE(n,a){return{x:Hg(n.x,a.x),y:Hg(n.y,a.y)}}function RE(n,a){let i=.5;const r=wt(n),o=wt(a);return o>r?i=rl(a.min,a.max-r,n.min):r>o&&(i=rl(n.min,n.max-o,a.min)),Un(0,1,i)}function DE(n,a){const i={};return a.min!==void 0&&(i.min=a.min-n.min),a.max!==void 0&&(i.max=a.max-n.min),i}const qf=.35;function ME(n=qf){return n===!1?n=0:n===!0&&(n=qf),{x:qg(n,"left","right"),y:qg(n,"top","bottom")}}function qg(n,a,i){return{min:Pg(n,a),max:Pg(n,i)}}function Pg(n,a){return typeof n=="number"?n:n[a]||0}const OE=new WeakMap;class LE{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$e(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:i=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=v=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(Nl(v).point)},d=(v,b)=>{const{drag:j,dragPropagation:N,onDragStart:A}=this.getProps();if(j&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qN(j),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jt(O=>{let L=this.getAxisMotionValue(O).get()||0;if(yn.test(L)){const{projection:M}=this.visualElement;if(M&&M.layout){const K=M.layout.layoutBox[O];K&&(L=wt(K)*(parseFloat(L)/100))}}this.originPoint[O]=L}),A&&_e.postRender(()=>A(v,b)),kf(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},p=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:j,dragDirectionLock:N,onDirectionLock:A,onDrag:E}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:O}=b;if(N&&this.currentDirection===null){this.currentDirection=zE(O),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",b.point,O),this.updateAxis("y",b.point,O),this.visualElement.render(),E&&E(v,b)},g=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b,this.stop(v,b),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>Jt(v=>{var b;return this.getAnimationState(v)==="paused"&&((b=this.getAxisMotionValue(v).animation)==null?void 0:b.play())}),{dragSnapToOrigin:y}=this.getProps();this.panSession=new N1(a,{onSessionStart:c,onStart:d,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:j1(this.visualElement)})}stop(a,i){const r=a||this.latestPointerEvent,o=i||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!r)return;const{velocity:d}=o;this.startAnimation(d);const{onDragEnd:p}=this.getProps();p&&_e.postRender(()=>p(r,o))}cancel(){this.isDragging=!1;const{projection:a,animationState:i}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(a,i,r){const{drag:o}=this.getProps();if(!r||!Gr(a,o,this.currentDirection))return;const c=this.getAxisMotionValue(a);let d=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(d=EE(d,this.constraints[a],this.elastic[a])),c.set(d)}resolveConstraints(){var c;const{dragConstraints:a,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,o=this.constraints;a&&zs(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&r?this.constraints=AE(r.layoutBox,a):this.constraints=!1,this.elastic=ME(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Jt(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=DE(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:i}=this.getProps();if(!a||!zs(a))return!1;const r=a.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=BT(r,o.root,this.visualElement.getTransformPagePoint());let d=CE(o.layout.layoutBox,c);if(i){const p=i(OT(d));this.hasMutatedConstraints=!!p,p&&(d=o1(p))}return d}startAnimation(a){const{drag:i,dragMomentum:r,dragElastic:o,dragTransition:c,dragSnapToOrigin:d,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=Jt(y=>{if(!Gr(y,i,this.currentDirection))return;let v=g&&g[y]||{};d&&(v={min:0,max:0});const b=o?200:1e6,j=o?40:1e7,N=X(X({type:"inertia",velocity:r?a[y]:0,bounceStiffness:b,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10},c),v);return this.startAxisValueAnimation(y,N)});return Promise.all(m).then(p)}startAxisValueAnimation(a,i){const r=this.getAxisMotionValue(a);return kf(this.visualElement,a),r.start(Md(a,r,0,i,this.visualElement,!1))}stopAnimation(){Jt(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Jt(a=>{var i;return(i=this.getAxisMotionValue(a).animation)==null?void 0:i.pause()})}getAnimationState(a){var i;return(i=this.getAxisMotionValue(a).animation)==null?void 0:i.state}getAxisMotionValue(a){const i=`_drag${a.toUpperCase()}`,r=this.visualElement.getProps(),o=r[i];return o||this.visualElement.getValue(a,(r.initial?r.initial[a]:void 0)||0)}snapToCursor(a){Jt(i=>{const{drag:r}=this.getProps();if(!Gr(i,r,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(i);if(o&&o.layout){const{min:d,max:p}=o.layout.layoutBox[i];c.set(a[i]-Pe(d,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:i}=this.getProps(),{projection:r}=this.visualElement;if(!zs(i)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Jt(d=>{const p=this.getAxisMotionValue(d);if(p&&this.constraints!==!1){const g=p.get();o[d]=RE({min:g,max:g},this.constraints[d])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Jt(d=>{if(!Gr(d,a,null))return;const p=this.getAxisMotionValue(d),{min:g,max:m}=this.constraints[d];p.set(Pe(g,m,o[d]))})}addListeners(){if(!this.visualElement.current)return;OE.set(this.visualElement,this);const a=this.visualElement.current,i=nl(a,"pointerdown",g=>{const{drag:m,dragListener:y=!0}=this.getProps();m&&y&&this.start(g)}),r=()=>{const{dragConstraints:g}=this.getProps();zs(g)&&g.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),_e.read(r);const d=dl(window,"resize",()=>this.scalePositionWithinConstraints()),p=o.addEventListener("didUpdate",({delta:g,hasLayoutChanged:m})=>{this.isDragging&&m&&(Jt(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=g[y].translate,v.set(v.get()+g[y].translate))}),this.visualElement.render())});return()=>{d(),i(),c(),p&&p()}}getProps(){const a=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:d=qf,dragMomentum:p=!0}=a;return le(X({},a),{drag:i,dragDirectionLock:r,dragPropagation:o,dragConstraints:c,dragElastic:d,dragMomentum:p})}}function Gr(n,a,i){return(a===!0||a===n)&&(i===null||i===n)}function zE(n,a=10){let i=null;return Math.abs(n.y)>a?i="y":Math.abs(n.x)>a&&(i="x"),i}class BE extends ma{constructor(a){super(a),this.removeGroupControls=Wt,this.removeListeners=Wt,this.controls=new LE(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Yg=n=>(a,i)=>{n&&_e.postRender(()=>n(a,i))};class UE extends ma{constructor(){super(...arguments),this.removePointerDownListener=Wt}onPointerDown(a){this.session=new N1(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:j1(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:i,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Yg(a),onStart:Yg(i),onMove:r,onEnd:(c,d)=>{delete this.session,o&&_e.postRender(()=>o(c,d))}}}mount(){this.removePointerDownListener=nl(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ir={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gg(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Wi={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(oe.test(n))n=parseFloat(n);else return n;const i=Gg(n,a.target.x),r=Gg(n,a.target.y);return`${i}% ${r}%`}},VE={correct:(n,{treeScale:a,projectionDelta:i})=>{const r=n,o=da.parse(n);if(o.length>5)return r;const c=da.createTransformer(n),d=typeof o[0]!="number"?1:0,p=i.x.scale*a.x,g=i.y.scale*a.y;o[0+d]/=p,o[1+d]/=g;const m=Pe(p,g,.5);return typeof o[2+d]=="number"&&(o[2+d]/=m),typeof o[3+d]=="number"&&(o[3+d]/=m),c(o)}};let of=!1;class _E extends w.Component{componentDidMount(){const{visualElement:a,layoutGroup:i,switchLayoutGroup:r,layoutId:o}=this.props,{projection:c}=a;lT(kE),c&&(i.group&&i.group.add(c),r&&r.register&&o&&r.register(c),of&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions(le(X({},c.options),{onExitComplete:()=>this.safeToRemove()}))),Ir.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:i,visualElement:r,drag:o,isPresent:c}=this.props,{projection:d}=r;return d&&(d.isPresent=c,of=!0,o||a.layoutDependency!==i||i===void 0||a.isPresent!==c?d.willUpdate():this.safeToRemove(),a.isPresent!==c&&(c?d.promote():d.relegate()||_e.postRender(()=>{const p=d.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),bd.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:i,switchLayoutGroup:r}=this.props,{projection:o}=a;of=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function E1(n){const[a,i]=Zx(),r=w.useContext(Wf);return f.jsx(_E,le(X({},n),{layoutGroup:r,switchLayoutGroup:w.useContext(l1),isPresent:a,safeToRemove:i}))}const kE={borderRadius:le(X({},Wi),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Wi,borderTopRightRadius:Wi,borderBottomLeftRadius:Wi,borderBottomRightRadius:Wi,boxShadow:VE};function HE(n,a,i){const r=yt(n)?n:ks(n);return r.start(Md("",r,a,i)),r.animation}const qE=(n,a)=>n.depth-a.depth;class PE{constructor(){this.children=[],this.isDirty=!1}add(a){td(this.children,a),this.isDirty=!0}remove(a){nd(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(qE),this.isDirty=!1,this.children.forEach(a)}}function YE(n,a){const i=Ct.now(),r=({timestamp:o})=>{const c=o-i;c>=a&&(fa(r),n(c-a))};return _e.setup(r,!0),()=>fa(r)}const A1=["TopLeft","TopRight","BottomLeft","BottomRight"],GE=A1.length,Xg=n=>typeof n=="string"?parseFloat(n):n,Kg=n=>typeof n=="number"||oe.test(n);function XE(n,a,i,r,o,c){var d,p,g,m;o?(n.opacity=Pe(0,(d=i.opacity)!=null?d:1,KE(r)),n.opacityExit=Pe((p=a.opacity)!=null?p:1,0,FE(r))):c&&(n.opacity=Pe((g=a.opacity)!=null?g:1,(m=i.opacity)!=null?m:1,r));for(let y=0;y<GE;y++){const v=`border${A1[y]}Radius`;let b=Fg(a,v),j=Fg(i,v);if(b===void 0&&j===void 0)continue;b||(b=0),j||(j=0),b===0||j===0||Kg(b)===Kg(j)?(n[v]=Math.max(Pe(Xg(b),Xg(j),r),0),(yn.test(j)||yn.test(b))&&(n[v]+="%")):n[v]=j}(a.rotate||i.rotate)&&(n.rotate=Pe(a.rotate||0,i.rotate||0,r))}function Fg(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const KE=C1(0,.5,mx),FE=C1(.5,.95,Wt);function C1(n,a,i){return r=>r<n?0:r>a?1:i(rl(n,a,r))}function Zg(n,a){n.min=a.min,n.max=a.max}function Qt(n,a){Zg(n.x,a.x),Zg(n.y,a.y)}function Qg(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function $g(n,a,i,r,o){return n-=a,n=oo(n,1/i,r),o!==void 0&&(n=oo(n,1/o,r)),n}function ZE(n,a=0,i=1,r=.5,o,c=n,d=n){if(yn.test(a)&&(a=parseFloat(a),a=Pe(d.min,d.max,a/100)-d.min),typeof a!="number")return;let p=Pe(c.min,c.max,r);n===c&&(p-=a),n.min=$g(n.min,a,i,p,o),n.max=$g(n.max,a,i,p,o)}function Jg(n,a,[i,r,o],c,d){ZE(n,a[i],a[r],a[o],a.scale,c,d)}const QE=["x","scaleX","originX"],$E=["y","scaleY","originY"];function Wg(n,a,i,r){Jg(n.x,a,QE,i?i.x:void 0,r?r.x:void 0),Jg(n.y,a,$E,i?i.y:void 0,r?r.y:void 0)}function Ig(n){return n.translate===0&&n.scale===1}function R1(n){return Ig(n.x)&&Ig(n.y)}function ey(n,a){return n.min===a.min&&n.max===a.max}function JE(n,a){return ey(n.x,a.x)&&ey(n.y,a.y)}function ty(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function D1(n,a){return ty(n.x,a.x)&&ty(n.y,a.y)}function ny(n){return wt(n.x)/wt(n.y)}function ay(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}class WE{constructor(){this.members=[]}add(a){td(this.members,a),a.scheduleRender()}remove(a){if(nd(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(a){const i=this.members.findIndex(o=>a===o);if(i===0)return!1;let r;for(let o=i;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){r=c;break}}return r?(this.promote(r),!0):!1}promote(a,i){const r=this.lead;if(a!==r&&(this.prevLead=r,this.lead=a,a.show(),r)){r.instance&&r.scheduleRender(),a.scheduleRender(),a.resumeFrom=r,i&&(a.resumeFrom.preserveOpacity=!0),r.snapshot&&(a.snapshot=r.snapshot,a.snapshot.latestValues=r.animationValues||r.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:o}=a.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:i,resumingFrom:r}=a;i.onExitComplete&&i.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function IE(n,a,i){let r="";const o=n.x.translate/a.x,c=n.y.translate/a.y,d=(i==null?void 0:i.z)||0;if((o||c||d)&&(r=`translate3d(${o}px, ${c}px, ${d}px) `),(a.x!==1||a.y!==1)&&(r+=`scale(${1/a.x}, ${1/a.y}) `),i){const{transformPerspective:m,rotate:y,rotateX:v,rotateY:b,skewX:j,skewY:N}=i;m&&(r=`perspective(${m}px) ${r}`),y&&(r+=`rotate(${y}deg) `),v&&(r+=`rotateX(${v}deg) `),b&&(r+=`rotateY(${b}deg) `),j&&(r+=`skewX(${j}deg) `),N&&(r+=`skewY(${N}deg) `)}const p=n.x.scale*a.x,g=n.y.scale*a.y;return(p!==1||g!==1)&&(r+=`scale(${p}, ${g})`),r||"none"}const uf=["","X","Y","Z"],e3=1e3;let t3=0;function cf(n,a,i,r){const{latestValues:o}=a;o[n]&&(i[n]=o[n],a.setStaticValue(n,0),r&&(r[n]=0))}function M1(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const i=g1(a);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:c}=n.options;window.MotionCancelOptimisedAnimation(i,"transform",_e,!(o||c))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&M1(r)}function O1({attachResizeListener:n,defaultParent:a,measureScroll:i,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(d={},p=a==null?void 0:a()){this.id=t3++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(s3),this.nodes.forEach(o3),this.nodes.forEach(u3),this.nodes.forEach(i3)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new PE)}addEventListener(d,p){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new id),this.eventHandlers.get(d).add(p)}notifyListeners(d,...p){const g=this.eventHandlers.get(d);g&&g.notify(...p)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Fx(d)&&!FN(d),this.instance=d;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),n){let y,v=0;const b=()=>this.root.updateBlockedByResize=!1;_e.read(()=>{v=window.innerWidth}),n(d,()=>{const j=window.innerWidth;j!==v&&(v=j,this.root.updateBlockedByResize=!0,y&&y(),y=YE(b,250),Ir.hasAnimatedSinceResize&&(Ir.hasAnimatedSinceResize=!1,this.nodes.forEach(ly)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||m.getDefaultTransition()||m3,{onLayoutAnimationStart:A,onLayoutAnimationComplete:E}=m.getProps(),O=!this.targetLayout||!D1(this.targetLayout,j),L=!v&&b;if(this.options.layoutRoot||this.resumeFrom||L||v&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M=le(X({},xd(N,"layout")),{onPlay:A,onComplete:E});(m.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(y,L)}else v||ly(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),fa(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(c3),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&M1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:p,layout:g}=this.options;if(p===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(iy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r3),this.nodes.forEach(n3),this.nodes.forEach(a3)):this.nodes.forEach(iy),this.clearAllSnapshots();const p=Ct.now();dt.delta=Un(0,1e3/60,p-dt.timestamp),dt.timestamp=p,dt.isProcessing=!0,$c.update.process(dt),$c.preRender.process(dt),$c.render.process(dt),dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,bd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(l3),this.sharedNodes.forEach(f3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_e.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_e.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!wt(this.snapshot.measuredBox.x)&&!wt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$e(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(p=!1),p&&this.instance){const g=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!o)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!R1(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,y=m!==this.prevTransformTemplateValue;d&&this.instance&&(p||Ba(this.latestValues)||y)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return d&&(g=this.removeTransform(g)),p3(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:d}=this.options;if(!d)return $e();const p=d.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(g3))){const{scroll:y}=this.root;y&&(Bs(p.x,y.offset.x),Bs(p.y,y.offset.y))}return p}removeElementScroll(d){var g;const p=$e();if(Qt(p,d),(g=this.scroll)!=null&&g.wasRoot)return p;for(let m=0;m<this.path.length;m++){const y=this.path[m],{scroll:v,options:b}=y;y!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Qt(p,d),Bs(p.x,v.offset.x),Bs(p.y,v.offset.y))}return p}applyTransform(d,p=!1){const g=$e();Qt(g,d);for(let m=0;m<this.path.length;m++){const y=this.path[m];!p&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Us(g,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Ba(y.latestValues)&&Us(g,y.latestValues)}return Ba(this.latestValues)&&Us(g,this.latestValues),g}removeTransform(d){const p=$e();Qt(p,d);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!Ba(m.latestValues))continue;Bf(m.latestValues)&&m.updateSnapshot();const y=$e(),v=m.measurePageBox();Qt(y,v),Wg(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,y)}return Ba(this.latestValues)&&Wg(p,this.latestValues),p}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options=le(X(X({},this.options),d),{crossfade:d.crossfade!==void 0?d.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var b;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==p;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!(!this.layout||!(y||v))){if(this.resolvedRelativeTargetAt=dt.timestamp,!this.targetDelta&&!this.relativeTarget){const j=this.getClosestProjectingParent();j&&j.layout&&this.animationProgress!==1?(this.relativeParent=j,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),sl(this.relativeTargetOrigin,this.layout.layoutBox,j.layout.layoutBox),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$e(),this.targetWithTransforms=$e()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qt(this.target,this.layout.layoutBox),c1(this.target,this.targetDelta)):Qt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const j=this.getClosestProjectingParent();j&&!!j.resumingFrom==!!this.resumingFrom&&!j.options.layoutScroll&&j.target&&this.animationProgress!==1?(this.relativeParent=j,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),sl(this.relativeTargetOrigin,this.target,j.target),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Bf(this.parent.latestValues)||u1(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 N;const d=this.getLead(),p=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||(N=this.parent)!=null&&N.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===dt.timestamp&&(g=!1),g)return;const{layout:m,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||y))return;Qt(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;zT(this.layoutCorrected,this.treeScale,this.path,p),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=$e());const{target:j}=d;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qg(this.prevProjectionDelta.x,this.projectionDelta.x),Qg(this.prevProjectionDelta.y,this.projectionDelta.y)),al(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!ay(this.projectionDelta.x,this.prevProjectionDelta.x)||!ay(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var p;if((p=this.options.visualElement)==null||p.scheduleRender(),d){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vs(),this.projectionDelta=Vs(),this.projectionDeltaWithTransform=Vs()}setAnimationOrigin(d,p=!1){const g=this.snapshot,m=g?g.latestValues:{},y=X({},this.latestValues),v=Vs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const b=$e(),j=g?g.source:void 0,N=this.layout?this.layout.source:void 0,A=j!==N,E=this.getStack(),O=!E||E.members.length<=1,L=!!(A&&!O&&this.options.crossfade===!0&&!this.path.some(h3));this.animationProgress=0;let M;this.mixTargetDelta=K=>{const U=K/1e3;ry(v.x,d.x,U),ry(v.y,d.y,U),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sl(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d3(this.relativeTarget,this.relativeTargetOrigin,b,U),M&&JE(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=$e()),Qt(M,this.relativeTarget)),A&&(this.animationValues=y,XE(y,m,this.latestValues,U,L,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var p,g,m;this.notifyListeners("animationStart"),(p=this.currentAnimation)==null||p.stop(),(m=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||m.stop(),this.pendingAnimation&&(fa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_e.update(()=>{Ir.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ks(0)),this.currentAnimation=HE(this.motionValue,[0,1e3],le(X({},d),{velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),d.onUpdate&&d.onUpdate(y)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:y}=d;if(!(!p||!g||!m)){if(this!==d&&this.layout&&m&&L1(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||$e();const v=wt(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+v;const b=wt(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+b}Qt(p,g),Us(p,y),al(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(d,p){this.sharedNodes.has(d)||this.sharedNodes.set(d,new WE),this.sharedNodes.get(d).add(p);const m=p.options.initialPromotionConfig;p.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(p):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var p;const{layoutId:d}=this.options;return d?((p=this.getStack())==null?void 0:p.lead)||this:this}getPrevLead(){var p;const{layoutId:d}=this.options;return d?(p=this.getStack())==null?void 0:p.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:p,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let p=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const m={};g.z&&cf("z",d,m,this.animationValues);for(let y=0;y<uf.length;y++)cf(`rotate${uf[y]}`,d,m,this.animationValues),cf(`skew${uf[y]}`,d,m,this.animationValues);d.render();for(const y in m)d.setStaticValue(y,m[y]),this.animationValues&&(this.animationValues[y]=m[y]);d.scheduleRender()}applyProjectionStyles(d,p){var N,A;if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Wr(p==null?void 0:p.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Wr(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!Ba(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const y=m.animationValues||m.latestValues;this.applyTransformsToTarget();let v=IE(this.projectionDeltaWithTransform,this.treeScale,y);g&&(v=g(y,v)),d.transform=v;const{x:b,y:j}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${j.origin*100}% 0`,m.animationValues?d.opacity=m===this?(A=(N=y.opacity)!=null?N:this.latestValues.opacity)!=null?A:1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:d.opacity=m===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const E in fl){if(y[E]===void 0)continue;const{correct:O,applyTo:L,isCSSVariable:M}=fl[E],K=v==="none"?y[E]:O(y[E],m);if(L){const U=L.length;for(let Z=0;Z<U;Z++)d[L[Z]]=K}else M?this.options.visualElement.renderState.vars[E]=K:d[E]=K}this.options.layoutId&&(d.pointerEvents=m===this?Wr(p==null?void 0:p.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var p;return(p=d.currentAnimation)==null?void 0:p.stop()}),this.root.nodes.forEach(sy),this.root.sharedNodes.clear()}}}function n3(n){n.updateLayout()}function a3(n){var i;const a=((i=n.resumeFrom)==null?void 0:i.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=n.layout,{animationType:c}=n.options,d=a.source!==n.layout.source;c==="size"?Jt(v=>{const b=d?a.measuredBox[v]:a.layoutBox[v],j=wt(b);b.min=r[v].min,b.max=b.min+j}):L1(c,a.layoutBox,r)&&Jt(v=>{const b=d?a.measuredBox[v]:a.layoutBox[v],j=wt(r[v]);b.max=b.min+j,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+j)});const p=Vs();al(p,r,a.layoutBox);const g=Vs();d?al(g,n.applyTransform(o,!0),a.measuredBox):al(g,r,a.layoutBox);const m=!R1(p);let y=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:j}=v;if(b&&j){const N=$e();sl(N,a.layoutBox,b.layoutBox);const A=$e();sl(A,r,j.layoutBox),D1(N,A)||(y=!0),v.options.layoutRoot&&(n.relativeTarget=A,n.relativeTargetOrigin=N,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:g,layoutDelta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:r}=n.options;r&&r()}n.options.transition=void 0}function s3(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function i3(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function l3(n){n.clearSnapshot()}function sy(n){n.clearMeasurements()}function iy(n){n.isLayoutDirty=!1}function r3(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function ly(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function o3(n){n.resolveTargetDelta()}function u3(n){n.calcProjection()}function c3(n){n.resetSkewAndRotation()}function f3(n){n.removeLeadSnapshot()}function ry(n,a,i){n.translate=Pe(a.translate,0,i),n.scale=Pe(a.scale,1,i),n.origin=a.origin,n.originPoint=a.originPoint}function oy(n,a,i,r){n.min=Pe(a.min,i.min,r),n.max=Pe(a.max,i.max,r)}function d3(n,a,i,r){oy(n.x,a.x,i.x,r),oy(n.y,a.y,i.y,r)}function h3(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const m3={duration:.45,ease:[.4,0,.1,1]},uy=n=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),cy=uy("applewebkit/")&&!uy("chrome/")?Math.round:Wt;function fy(n){n.min=cy(n.min),n.max=cy(n.max)}function p3(n){fy(n.x),fy(n.y)}function L1(n,a,i){return n==="position"||n==="preserve-aspect"&&!SE(ny(a),ny(i),.2)}function g3(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const y3=O1({attachResizeListener:(n,a)=>dl(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ff={current:void 0},z1=O1({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!ff.current){const n=new y3({});n.mount(window),n.setOptions({layoutScroll:!0}),ff.current=n}return ff.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),x3={pan:{Feature:UE},drag:{Feature:BE,ProjectionNode:z1,MeasureLayout:E1}};function dy(n,a,i){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",i==="Start");const o="onHover"+i,c=r[o];c&&_e.postRender(()=>c(a,Nl(a)))}class v3 extends ma{mount(){const{current:a}=this.node;a&&(this.unmount=PN(a,(i,r)=>(dy(this.node,r,"Start"),o=>dy(this.node,o,"End"))))}unmount(){}}class b3 extends ma{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(i){a=!0}!a||!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=Sl(dl(this.node.current,"focus",()=>this.onFocus()),dl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function hy(n,a,i){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),c=r[o];c&&_e.postRender(()=>c(a,Nl(a)))}class S3 extends ma{mount(){const{current:a}=this.node;a&&(this.unmount=KN(a,(i,r)=>(hy(this.node,r,"Start"),(o,{success:c})=>hy(this.node,o,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Pf=new WeakMap,df=new WeakMap,w3=n=>{const a=Pf.get(n.target);a&&a(n)},j3=n=>{n.forEach(w3)};function N3(i){var r=i,{root:n}=r,a=ot(r,["root"]);const o=n||document;df.has(o)||df.set(o,{});const c=df.get(o),d=JSON.stringify(a);return c[d]||(c[d]=new IntersectionObserver(j3,X({root:n},a))),c[d]}function T3(n,a,i){const r=N3(a);return Pf.set(n,i),r.observe(n),()=>{Pf.delete(n),r.unobserve(n)}}const E3={some:0,all:1};class A3 extends ma{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:i,margin:r,amount:o="some",once:c}=a,d={root:i?i.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:E3[o]},p=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,c&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),b=m?y:v;b&&b(g)};return T3(this.node.current,d,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:a,prevProps:i}=this.node;["amount","margin","root"].some(C3(a,i))&&this.startObserver()}unmount(){}}function C3({viewport:n={}},{viewport:a={}}={}){return i=>n[i]!==a[i]}const R3={inView:{Feature:A3},tap:{Feature:S3},focus:{Feature:b3},hover:{Feature:v3}},D3={layout:{ProjectionNode:z1,MeasureLayout:E1}},M3=X(X(X(X({},pE),R3),x3),D3),$t=MT(M3,GT),O3=()=>{const[n,a]=w.useState(null),[i,r]=w.useState(!1),[o,c]=w.useState(!1),[d,p]=w.useState(0),[g,m]=w.useState(null),[y,v]=w.useState(""),b=w.useCallback(L=>{L.preventDefault(),L.stopPropagation(),L.type==="dragenter"||L.type==="dragover"?r(!0):L.type==="dragleave"&&r(!1)},[]),j=w.useCallback(L=>{if(L.preventDefault(),L.stopPropagation(),r(!1),L.dataTransfer.files&&L.dataTransfer.files[0]){const M=L.dataTransfer.files[0];N(M)&&(a(M),m(null),v(""))}},[]),N=L=>{const M=["application/zip","application/x-zip-compressed","application/x-tar","application/gzip","application/x-gzip"],K=[".zip",".tar",".tar.gz",".tgz"],U=L.name.toLowerCase();return M.includes(L.type)||K.some(Q=>U.endsWith(Q))?L.size>100*1024*1024?(v("File size must be less than 100MB"),m("error"),!1):!0:(v("Please select a valid ZIP or TAR file"),m("error"),!1)},A=L=>{const M=L.target.files[0];M&&N(M)&&(a(M),m(null),v(""))},E=()=>Ae(null,null,function*(){var M,K;if(!n){v("Please select a file"),m("error");return}c(!0),p(0),m(null),v("");const L=new FormData;L.append("file",n);try{(yield me.post(`${Je}/api/db/import-database/`,L,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:Z=>{const Q=Math.round(Z.loaded*100/Z.total);p(Q)}})).status===200&&(m("success"),a(null),p(100))}catch(U){console.error("Upload failed:",U),m("error"),v(((K=(M=U.response)==null?void 0:M.data)==null?void 0:K.message)||"Failed to import database. Please try again.")}finally{c(!1)}}),O=()=>{a(null),m(null),v(""),p(0)};return f.jsx("div",{className:"container mx-auto px-4 py-8",children:f.jsxs($t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-2xl mx-auto",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx($t.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},className:"w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4",children:f.jsx("svg",{className:"w-8 h-8 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10"})})}),f.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Import Database"}),f.jsx("p",{className:"text-gray-600",children:"Upload a ZIP or TAR file containing your exported database"})]}),f.jsx($t.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3,duration:.5},className:"mb-6",children:f.jsxs("div",{className:`relative border-2 border-dashed rounded-xl p-8 transition-all duration-300 ${i?"border-blue-500 bg-blue-50":n?"border-green-500 bg-green-50":"border-gray-300 hover:border-gray-400"}`,onDragEnter:b,onDragLeave:b,onDragOver:b,onDrop:j,children:[f.jsx("input",{type:"file",id:"file-upload",className:"sr-only",accept:".zip,.tar,.tar.gz,.tgz",onChange:A,disabled:o}),f.jsx(nf,{mode:"wait",children:n?f.jsxs($t.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"flex items-center justify-between bg-white rounded-lg p-4 shadow-sm",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center mr-3",children:f.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-gray-900",children:n.name}),f.jsxs("p",{className:"text-sm text-gray-500",children:[(n.size/1024/1024).toFixed(2)," MB"]})]})]}),!o&&f.jsx("button",{onClick:O,className:"text-red-500 hover:text-red-700 transition-colors",children:f.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]},"file-selected"):f.jsxs($t.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"text-center",children:[f.jsx($t.div,{animate:i?{scale:1.1}:{scale:1},transition:{type:"spring",stiffness:300},children:f.jsx("svg",{className:"w-12 h-12 text-gray-400 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})})}),f.jsx("p",{className:"text-lg font-medium text-gray-700 mb-2",children:i?"Drop your file here":"Drag and drop your file here"}),f.jsx("p",{className:"text-gray-500 mb-4",children:"or"}),f.jsxs("label",{htmlFor:"file-upload",className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg cursor-pointer transition-colors inline-flex items-center",children:[f.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})}),"Choose File"]}),f.jsx("p",{className:"text-sm text-gray-500 mt-4",children:"Supports ZIP and TAR files (max 100MB)"})]},"upload-prompt")})]})}),f.jsx(nf,{children:o&&f.jsx($t.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-6",children:f.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm border",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Uploading..."}),f.jsxs("span",{className:"text-sm text-gray-500",children:[d,"%"]})]}),f.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:f.jsx($t.div,{className:"bg-blue-600 h-2 rounded-full",initial:{width:0},animate:{width:`${d}%`},transition:{duration:.3}})})]})})}),f.jsx(nf,{children:g&&f.jsxs($t.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:`mb-6 p-4 rounded-lg ${g==="success"?"bg-green-50 border border-green-200":"bg-red-50 border border-red-200"}`,children:[f.jsxs("div",{className:"flex items-center",children:[g==="success"?f.jsx("svg",{className:"w-5 h-5 text-green-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}):f.jsx("svg",{className:"w-5 h-5 text-red-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),f.jsx("p",{className:`font-medium ${g==="success"?"text-green-800":"text-red-800"}`,children:g==="success"?"Database imported successfully!":"Import failed"})]}),y&&f.jsx("p",{className:"text-red-700 mt-1 text-sm",children:y})]})}),f.jsx($t.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4,duration:.5},className:"text-center",children:f.jsx("button",{onClick:E,disabled:!n||o,className:`w-full py-4 px-6 rounded-lg font-medium transition-all duration-300 ${!n||o?"bg-gray-300 text-gray-500 cursor-not-allowed":"bg-blue-600 hover:bg-blue-700 text-white hover:shadow-lg transform hover:scale-105"}`,children:o?f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx($t.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full mr-2"}),"Importing Database..."]}):f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10"})}),"Import Database"]})})}),f.jsxs($t.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.5,duration:.5},className:"mt-8 bg-gray-50 rounded-lg p-6",children:[f.jsx("h3",{className:"font-medium text-gray-900 mb-3",children:"Import Guidelines"}),f.jsxs("ul",{className:"space-y-2 text-sm text-gray-600",children:[f.jsxs("li",{className:"flex items-start",children:[f.jsx("svg",{className:"w-4 h-4 text-blue-500 mr-2 mt-0.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),"Only ZIP and TAR compressed files are supported"]}),f.jsxs("li",{className:"flex items-start",children:[f.jsx("svg",{className:"w-4 h-4 text-blue-500 mr-2 mt-0.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),"Only use files exported from AxioDB"]}),f.jsxs("li",{className:"flex items-start",children:[f.jsx("svg",{className:"w-4 h-4 text-blue-500 mr-2 mt-0.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),"Importing will create a new database in your system"]})]})]})]})})};function L3(){return f.jsx(ES,{children:f.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[f.jsx(yj,{}),f.jsx("main",{className:"flex-grow",children:f.jsxs(nS,{children:[f.jsx(mn,{path:"/",element:f.jsx(kj,{})}),f.jsx(mn,{path:"/operations",element:f.jsx(Yj,{})}),f.jsx(mn,{path:"/collections",element:f.jsx(Kj,{})}),f.jsx(mn,{path:"/documents",element:f.jsx(tg,{})}),f.jsx(mn,{path:"/api",element:f.jsx(Jj,{})}),f.jsx(mn,{path:"/support",element:f.jsx(Wj,{})}),f.jsx(mn,{path:"/status",element:f.jsx(Ij,{})}),f.jsx(mn,{path:"/import",element:f.jsx(O3,{})}),f.jsx(mn,{path:"/collections/documents",element:f.jsx(tg,{})})]})}),f.jsx(US,{})]})})}d2.createRoot(document.getElementById("root")).render(f.jsx(w.StrictMode,{children:f.jsx(L3,{})}))});export default z3();
75
+ `),()=>{A.contains(N)&&A.removeChild(N)}},[a]),f.jsx(ZN,{isPresent:a,childRef:c,sizeRef:d,children:w.cloneElement(n,{ref:c})})}const $N=({children:n,initial:a,isPresent:i,onExitComplete:r,custom:o,presenceAffectsLayout:c,mode:d,anchorX:p,root:g})=>{const m=Jf(JN),y=w.useId();let v=!0,b=w.useMemo(()=>(v=!1,{id:y,initial:a,isPresent:i,custom:o,onExitComplete:j=>{m.set(j,!0);for(const N of m.values())if(!N)return;r&&r()},register:j=>(m.set(j,!1),()=>m.delete(j))}),[i,m,r]);return c&&v&&(b=X({},b)),w.useMemo(()=>{m.forEach((j,N)=>m.set(N,!1))},[i]),w.useEffect(()=>{!i&&!m.size&&r&&r()},[i]),d==="popLayout"&&(n=f.jsx(QN,{isPresent:i,anchorX:p,root:g,children:n})),f.jsx(yo.Provider,{value:b,children:n})};function JN(){return new Map}function Qx(n=!0){const a=w.useContext(yo);if(a===null)return[!0,null];const{isPresent:i,onExitComplete:r,register:o}=a,c=w.useId();w.useEffect(()=>{if(n)return o(c)},[n]);const d=w.useCallback(()=>n&&r&&r(c),[c,r,n]);return!i&&r?[!1,d]:[!0]}const Gr=n=>n.key||"";function wg(n){const a=[];return w.Children.forEach(n,i=>{w.isValidElement(i)&&a.push(i)}),a}const tf=({children:n,custom:a,initial:i=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:c="sync",propagate:d=!1,anchorX:p="left",root:g})=>{const[m,y]=Qx(d),v=w.useMemo(()=>wg(n),[n]),b=d&&!m?[]:v.map(Gr),j=w.useRef(!0),N=w.useRef(v),A=Jf(()=>new Map),[T,O]=w.useState(v),[z,M]=w.useState(v);sx(()=>{j.current=!1,N.current=v;for(let Z=0;Z<z.length;Z++){const Q=Gr(z[Z]);b.includes(Q)?A.delete(Q):A.get(Q)!==!0&&A.set(Q,!1)}},[z,b.length,b.join("-")]);const K=[];if(v!==T){let Z=[...v];for(let Q=0;Q<z.length;Q++){const W=z[Q],fe=Gr(W);b.includes(fe)||(Z.splice(Q,0,W),K.push(W))}return c==="wait"&&K.length&&(Z=K),M(wg(Z)),O(v),null}const{forceRender:U}=w.useContext($f);return f.jsx(f.Fragment,{children:z.map(Z=>{const Q=Gr(Z),W=d&&!m?!1:v===z||b.includes(Q),fe=()=>{if(A.has(Q))A.set(Q,!0);else return;let xe=!0;A.forEach(de=>{de||(xe=!1)}),xe&&(U==null||U(),M(N.current),d&&(y==null||y()),r&&r())};return f.jsx($N,{isPresent:W,initial:!j.current||i?void 0:!1,custom:a,presenceAffectsLayout:o,mode:c,root:g,onExitComplete:W?void 0:fe,anchorX:p,children:Z},Q)})})},$x=w.createContext({strict:!1}),jg={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"]},qs={};for(const n in jg)qs[n]={isEnabled:a=>jg[n].some(i=>!!a[i])};function WN(n){for(const a in n)qs[a]=X(X({},qs[a]),n[a])}const IN=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 ro(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||IN.has(n)}let Jx=n=>!ro(n);function eT(n){typeof n=="function"&&(Jx=a=>a.startsWith("on")?!ro(a):n(a))}try{eT(require("@emotion/is-prop-valid").default)}catch(n){}function tT(n,a,i){const r={};for(const o in n)o==="values"&&typeof n.values=="object"||(Jx(o)||i===!0&&ro(o)||!a&&!ro(o)||n.draggable&&o.startsWith("onDrag"))&&(r[o]=n[o]);return r}const xo=w.createContext({});function vo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function cl(n){return typeof n=="string"||Array.isArray(n)}const Sd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wd=["initial",...Sd];function bo(n){return vo(n.animate)||wd.some(a=>cl(n[a]))}function Wx(n){return!!(bo(n)||n.variants)}function nT(n,a){if(bo(n)){const{initial:i,animate:r}=n;return{initial:i===!1||cl(i)?i:void 0,animate:cl(r)?r:void 0}}return n.inherit!==!1?a:{}}function aT(n){const{initial:a,animate:i}=nT(n,w.useContext(xo));return w.useMemo(()=>({initial:a,animate:i}),[Ng(a),Ng(i)])}function Ng(n){return Array.isArray(n)?n.join(" "):n}const fl={};function sT(n){for(const a in n)fl[a]=n[a],ld(a)&&(fl[a].isCSSVariable=!0)}function Ix(n,{layout:a,layoutId:i}){return Zs.has(n)||n.startsWith("origin")||(a||i!==void 0)&&(!!fl[n]||n==="opacity")}const iT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lT=Fs.length;function rT(n,a,i){let r="",o=!0;for(let c=0;c<lT;c++){const d=Fs[c],p=n[d];if(p===void 0)continue;let g=!0;if(typeof p=="number"?g=p===(d.startsWith("scale")?1:0):g=parseFloat(p)===0,!g||i){const m=Yx(p,yd[d]);if(!g){o=!1;const y=iT[d]||d;r+=`${y}(${m}) `}i&&(a[d]=m)}}return r=r.trim(),i?r=i(a,o?"":r):o&&(r="none"),r}function jd(n,a,i){const{style:r,vars:o,transformOrigin:c}=n;let d=!1,p=!1;for(const g in a){const m=a[g];if(Zs.has(g)){d=!0;continue}else if(ld(g)){o[g]=m;continue}else{const y=Yx(m,yd[g]);g.startsWith("origin")?(p=!0,c[g]=y):r[g]=y}}if(a.transform||(d||i?r.transform=rT(a,n.transform,i):r.transform&&(r.transform="none")),p){const{originX:g="50%",originY:m="50%",originZ:y=0}=c;r.transformOrigin=`${g} ${m} ${y}`}}const Nd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function e1(n,a,i){for(const r in a)!yt(a[r])&&!Ix(r,i)&&(n[r]=a[r])}function oT({transformTemplate:n},a){return w.useMemo(()=>{const i=Nd();return jd(i,a,n),Object.assign({},i.vars,i.style)},[a])}function uT(n,a){const i=n.style||{},r={};return e1(r,i,n),Object.assign(r,oT(n,a)),r}function cT(n,a){const i={},r=uT(n,a);return n.drag&&n.dragListener!==!1&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(i.tabIndex=0),i.style=r,i}const fT={offset:"stroke-dashoffset",array:"stroke-dasharray"},dT={offset:"strokeDashoffset",array:"strokeDasharray"};function hT(n,a,i=1,r=0,o=!0){n.pathLength=1;const c=o?fT:dT;n[c.offset]=oe.transform(-r);const d=oe.transform(a),p=oe.transform(i);n[c.array]=`${d} ${p}`}function t1(n,v,g,m,y){var b=v,{attrX:a,attrY:i,attrScale:r,pathLength:o,pathSpacing:c=1,pathOffset:d=0}=b,p=ot(b,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var A,T;if(jd(n,p,m),g){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:j,style:N}=n;j.transform&&(N.transform=j.transform,delete j.transform),(N.transform||j.transformOrigin)&&(N.transformOrigin=(A=j.transformOrigin)!=null?A:"50% 50%",delete j.transformOrigin),N.transform&&(N.transformBox=(T=y==null?void 0:y.transformBox)!=null?T:"fill-box",delete j.transformBox),a!==void 0&&(j.x=a),i!==void 0&&(j.y=i),r!==void 0&&(j.scale=r),o!==void 0&&hT(j,o,c,d,!1)}const n1=()=>le(X({},Nd()),{attrs:{}}),a1=n=>typeof n=="string"&&n.toLowerCase()==="svg";function mT(n,a,i,r){const o=w.useMemo(()=>{const c=n1();return t1(c,a,a1(r),n.transformTemplate,n.style),le(X({},c.attrs),{style:X({},c.style)})},[a]);if(n.style){const c={};e1(c,n.style,n),o.style=X(X({},c),o.style)}return o}const pT=["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 Td(n){return typeof n!="string"||n.includes("-")?!1:!!(pT.indexOf(n)>-1||/[A-Z]/u.test(n))}function gT(n,a,i,{latestValues:r},o,c=!1){const p=(Td(n)?mT:cT)(a,r,o,n),g=tT(a,typeof n=="string",c),m=n!==w.Fragment?le(X(X({},g),p),{ref:i}):{},{children:y}=a,v=w.useMemo(()=>yt(y)?y.get():y,[y]);return w.createElement(n,le(X({},m),{children:v}))}function Tg(n){const a=[{},{}];return n==null||n.values.forEach((i,r)=>{a[0][r]=i.get(),a[1][r]=i.getVelocity()}),a}function Ed(n,a,i,r){if(typeof a=="function"){const[o,c]=Tg(r);a=a(i!==void 0?i:n.custom,o,c)}if(typeof a=="string"&&(a=n.variants&&n.variants[a]),typeof a=="function"){const[o,c]=Tg(r);a=a(i!==void 0?i:n.custom,o,c)}return a}function Ir(n){return yt(n)?n.get():n}function yT({scrapeMotionValuesFromProps:n,createRenderState:a},i,r,o){return{latestValues:xT(i,r,o,n),renderState:a()}}function xT(n,a,i,r){const o={},c=r(n,{});for(const j in c)o[j]=Ir(c[j]);let{initial:d,animate:p}=n;const g=bo(n),m=Wx(n);a&&m&&!g&&n.inherit!==!1&&(d===void 0&&(d=a.initial),p===void 0&&(p=a.animate));let y=i?i.initial===!1:!1;y=y||d===!1;const v=y?p:d;if(v&&typeof v!="boolean"&&!vo(v)){const j=Array.isArray(v)?v:[v];for(let N=0;N<j.length;N++){const A=Ed(n,j[N]);if(A){const b=A,{transitionEnd:T,transition:O}=b,z=ot(b,["transitionEnd","transition"]);for(const M in z){let K=z[M];if(Array.isArray(K)){const U=y?K.length-1:0;K=K[U]}K!==null&&(o[M]=K)}for(const M in T)o[M]=T[M]}}}return o}const s1=n=>(a,i)=>{const r=w.useContext(xo),o=w.useContext(yo),c=()=>yT(n,a,r,o);return i?c():Jf(c)};function Ad(n,a,i){var c;const{style:r}=n,o={};for(const d in r)(yt(r[d])||a.style&&yt(a.style[d])||Ix(d,n)||((c=i==null?void 0:i.getValue(d))==null?void 0:c.liveStyle)!==void 0)&&(o[d]=r[d]);return o}const vT=s1({scrapeMotionValuesFromProps:Ad,createRenderState:Nd});function i1(n,a,i){const r=Ad(n,a,i);for(const o in n)if(yt(n[o])||yt(a[o])){const c=Fs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[c]=n[o]}return r}const bT=s1({scrapeMotionValuesFromProps:i1,createRenderState:n1}),ST=Symbol.for("motionComponentSymbol");function zs(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function wT(n,a,i){return w.useCallback(r=>{r&&n.onMount&&n.onMount(r),a&&(r?a.mount(r):a.unmount()),i&&(typeof i=="function"?i(r):zs(i)&&(i.current=r))},[a])}const Cd=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),jT="framerAppearId",l1="data-"+Cd(jT),r1=w.createContext({});function NT(n,a,i,r,o){var A,T;const{visualElement:c}=w.useContext(xo),d=w.useContext($x),p=w.useContext(yo),g=w.useContext(bd).reducedMotion,m=w.useRef(null);r=r||d.renderer,!m.current&&r&&(m.current=r(n,{visualState:a,parent:c,props:i,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g}));const y=m.current,v=w.useContext(r1);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&TT(m.current,i,o,v);const b=w.useRef(!1);w.useInsertionEffect(()=>{y&&b.current&&y.update(i,p)});const j=i[l1],N=w.useRef(!!j&&!((A=window.MotionHandoffIsComplete)!=null&&A.call(window,j))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,j)));return sx(()=>{y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),N.current&&y.animationState&&y.animationState.animateChanges())}),w.useEffect(()=>{y&&(!N.current&&y.animationState&&y.animationState.animateChanges(),N.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,j)}),N.current=!1),y.enteringChildren=void 0)}),y}function TT(n,a,i,r){const{layoutId:o,layout:c,drag:d,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:y}=a;n.projection=new i(n.latestValues,a["data-framer-portal-id"]?void 0:o1(n.parent)),n.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!d||p&&zs(p),visualElement:n,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:g,layoutRoot:m})}function o1(n){if(n)return n.options.allowProjection!==!1?n.projection:o1(n.parent)}function nf(n,{forwardMotionProps:a=!1}={},i,r){var p,g;i&&WN(i);const o=Td(n)?bT:vT;function c(m,y){let v;const b=le(X(X({},w.useContext(bd)),m),{layoutId:ET(m)}),{isStatic:j}=b,N=aT(m),A=o(m,j);if(!j&&Wf){AT();const T=CT(b);v=T.MeasureLayout,N.visualElement=NT(n,A,b,r,T.ProjectionNode)}return f.jsxs(xo.Provider,{value:N,children:[v&&N.visualElement?f.jsx(v,X({visualElement:N.visualElement},b)):null,gT(n,m,wT(A,N.visualElement,y),A,j,a)]})}c.displayName=`motion.${typeof n=="string"?n:`create(${(g=(p=n.displayName)!=null?p:n.name)!=null?g:""})`}`;const d=w.forwardRef(c);return d[ST]=n,d}function ET({layoutId:n}){const a=w.useContext($f).id;return a&&n!==void 0?a+"-"+n:n}function AT(n,a){w.useContext($x).strict}function CT(n){const{drag:a,layout:i}=qs;if(!a&&!i)return{};const r=X(X({},a),i);return{MeasureLayout:a!=null&&a.isEnabled(n)||i!=null&&i.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function RT(n,a){if(typeof Proxy=="undefined")return nf;const i=new Map,r=(c,d)=>nf(c,d,n,a),o=(c,d)=>r(c,d);return new Proxy(o,{get:(c,d)=>d==="create"?r:(i.has(d)||i.set(d,nf(d,void 0,n,a)),i.get(d))})}function u1({top:n,left:a,right:i,bottom:r}){return{x:{min:a,max:i},y:{min:n,max:r}}}function DT({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function MT(n,a){if(!a)return n;const i=a({x:n.left,y:n.top}),r=a({x:n.right,y:n.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}function af(n){return n===void 0||n===1}function Lf({scale:n,scaleX:a,scaleY:i}){return!af(n)||!af(a)||!af(i)}function Ba(n){return Lf(n)||c1(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function c1(n){return Eg(n.x)||Eg(n.y)}function Eg(n){return n&&n!=="0%"}function oo(n,a,i){const r=n-i,o=a*r;return i+o}function Ag(n,a,i,r,o){return o!==void 0&&(n=oo(n,o,r)),oo(n,i,r)+a}function zf(n,a=0,i=1,r,o){n.min=Ag(n.min,a,i,r,o),n.max=Ag(n.max,a,i,r,o)}function f1(n,{x:a,y:i}){zf(n.x,a.translate,a.scale,a.originPoint),zf(n.y,i.translate,i.scale,i.originPoint)}const Cg=.999999999999,Rg=1.0000000000001;function OT(n,a,i,r=!1){const o=i.length;if(!o)return;a.x=a.y=1;let c,d;for(let p=0;p<o;p++){c=i[p],d=c.projectionDelta;const{visualElement:g}=c.options;g&&g.props.style&&g.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Us(n,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),d&&(a.x*=d.x.scale,a.y*=d.y.scale,f1(n,d)),r&&Ba(c.latestValues)&&Us(n,c.latestValues))}a.x<Rg&&a.x>Cg&&(a.x=1),a.y<Rg&&a.y>Cg&&(a.y=1)}function Bs(n,a){n.min=n.min+a,n.max=n.max+a}function Dg(n,a,i,r,o=.5){const c=Ye(n.min,n.max,o);zf(n,a,i,c,r)}function Us(n,a){Dg(n.x,a.x,a.scaleX,a.scale,a.originX),Dg(n.y,a.y,a.scaleY,a.scale,a.originY)}function d1(n,a){return u1(MT(n.getBoundingClientRect(),a))}function LT(n,a,i){const r=d1(n,i),{scroll:o}=a;return o&&(Bs(r.x,o.offset.x),Bs(r.y,o.offset.y)),r}const Mg=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vs=()=>({x:Mg(),y:Mg()}),Og=()=>({min:0,max:0}),Je=()=>({x:Og(),y:Og()}),Bf={current:null},h1={current:!1};function zT(){if(h1.current=!0,!!Wf)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>Bf.current=n.matches;n.addEventListener("change",a),a()}else Bf.current=!1}const BT=new WeakMap;function UT(n,a,i){for(const r in a){const o=a[r],c=i[r];if(yt(o))n.addValue(r,o);else if(yt(c))n.addValue(r,Hs(o,{owner:n}));else if(c!==o)if(n.hasValue(r)){const d=n.getValue(r);d.liveStyle===!0?d.jump(o):d.hasAnimated||d.set(o)}else{const d=n.getStaticValue(r);n.addValue(r,Hs(d!==void 0?d:o,{owner:n}))}}for(const r in i)a[r]===void 0&&n.removeValue(r);return a}const Lg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class VT{scrapeMotionValuesFromProps(a,i,r){return{}}constructor({parent:a,props:i,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:c,visualState:d},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=pd,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 j=Ct.now();this.renderScheduledAt<j&&(this.renderScheduledAt=j,ke.render(this.render,!1,!0))};const{latestValues:g,renderState:m}=d;this.latestValues=g,this.baseTarget=X({},g),this.initialValues=i.initial?X({},g):{},this.renderState=m,this.parent=a,this.props=i,this.presenceContext=r,this.depth=a?a.depth+1:0,this.reducedMotionConfig=o,this.options=p,this.blockInitialAnimation=!!c,this.isControllingVariants=bo(i),this.isVariantNode=Wx(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const b=this.scrapeMotionValuesFromProps(i,{},this),{willChange:y}=b,v=ot(b,["willChange"]);for(const j in v){const N=v[j];g[j]!==void 0&&yt(N)&&N.set(g[j])}}mount(a){var i;this.current=a,BT.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),h1.current||zT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Bf.current,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var a;this.projection&&this.projection.unmount(),fa(this.notifyUpdate),fa(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(a=this.parent)==null||a.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const r=this.features[i];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(a){var i;this.children.add(a),(i=this.enteringChildren)!=null||(this.enteringChildren=new Set),this.enteringChildren.add(a)}removeChild(a){this.children.delete(a),this.enteringChildren&&this.enteringChildren.delete(a)}bindToMotionValue(a,i){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();const r=Zs.has(a);r&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",d=>{this.latestValues[a]=d,this.props.onUpdate&&ke.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,a,i)),this.valueSubscriptions.set(a,()=>{o(),c&&c(),i.owner&&i.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in qs){const i=qs[a];if(!i)continue;const{isEnabled:r,Feature:o}=i;if(!this.features[a]&&o&&r(this.props)&&(this.features[a]=new o(this)),this.features[a]){const c=this.features[a];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Je()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,i){this.latestValues[a]=i}update(a,i){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let r=0;r<Lg.length;r++){const o=Lg[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,d=a[c];d&&(this.propEventSubscriptions[o]=this.on(o,d))}this.prevMotionValues=UT(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]: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(a){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(a),()=>i.variantChildren.delete(a)}addValue(a,i){const r=this.values.get(a);i!==r&&(r&&this.removeValue(a),this.bindToMotionValue(a,i),this.values.set(a,i),this.latestValues[a]=i.get())}removeValue(a){this.values.delete(a);const i=this.valueSubscriptions.get(a);i&&(i(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,i){if(this.props.values&&this.props.values[a])return this.props.values[a];let r=this.values.get(a);return r===void 0&&i!==void 0&&(r=Hs(i===null?void 0:i,{owner:this}),this.addValue(a,r)),r}readValue(a,i){var o;let r=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:(o=this.getBaseTargetFromProps(this.props,a))!=null?o:this.readValueFromInstance(this.current,a,this.options);return r!=null&&(typeof r=="string"&&(ix(r)||rx(r))?r=parseFloat(r):!FN(r)&&da.test(i)&&(r=Px(a,i)),this.setBaseTarget(a,yt(r)?r.get():r)),yt(r)?r.get():r}setBaseTarget(a,i){this.baseTarget[a]=i}getBaseTarget(a){var c;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const d=Ed(this.props,i,(c=this.presenceContext)==null?void 0:c.custom);d&&(r=d[a])}if(i&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,a);return o!==void 0&&!yt(o)?o:this.initialValues[a]!==void 0&&r===void 0?void 0:this.baseTarget[a]}on(a,i){return this.events[a]||(this.events[a]=new ad),this.events[a].add(i)}notify(a,...i){this.events[a]&&this.events[a].notify(...i)}scheduleRenderMicrotask(){xd.render(this.render)}}class m1 extends VT{constructor(){super(...arguments),this.KeyframeResolver=BN}sortInstanceNodePosition(a,i){return a.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(a,i){return a.style?a.style[i]:void 0}removeValueFromRenderState(a,{vars:i,style:r}){delete i[a],delete r[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:a}=this.props;yt(a)&&(this.childSubscription=a.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function p1(n,{style:a,vars:i},r,o){const c=n.style;let d;for(d in a)c[d]=a[d];o==null||o.applyProjectionStyles(c,r);for(d in i)c.setProperty(d,i[d])}function _T(n){return window.getComputedStyle(n)}class kT extends m1{constructor(){super(...arguments),this.type="html",this.renderInstance=p1}readValueFromInstance(a,i){var r;if(Zs.has(i))return(r=this.projection)!=null&&r.isProjecting?Ef(i):eN(a,i);{const o=_T(a),c=(ld(i)?o.getPropertyValue(i):o[i])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(a,{transformPagePoint:i}){return d1(a,i)}build(a,i,r){jd(a,i,r.transformTemplate)}scrapeMotionValuesFromProps(a,i,r){return Ad(a,i,r)}}const g1=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 HT(n,a,i,r){p1(n,a,void 0,r);for(const o in a.attrs)n.setAttribute(g1.has(o)?o:Cd(o),a.attrs[o])}class qT extends m1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Je}getBaseTargetFromProps(a,i){return a[i]}readValueFromInstance(a,i){if(Zs.has(i)){const r=qx(i);return r&&r.default||0}return i=g1.has(i)?i:Cd(i),a.getAttribute(i)}scrapeMotionValuesFromProps(a,i,r){return i1(a,i,r)}build(a,i,r){t1(a,i,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,i,r,o){HT(a,i,r,o)}mount(a){this.isSVGTag=a1(a.tagName),super.mount(a)}}const PT=(n,a)=>Td(n)?new qT(a):new kT(a,{allowProjection:n!==w.Fragment});function _s(n,a,i){const r=n.getProps();return Ed(r,a,i!==void 0?i:r.custom,n)}const Uf=n=>Array.isArray(n);function YT(n,a,i){n.hasValue(a)?n.getValue(a).set(i):n.addValue(a,Hs(i))}function GT(n){return Uf(n)?n[n.length-1]||0:n}function XT(n,a){let d=_s(n,a)||{},{transitionEnd:r={},transition:o={}}=d,c=ot(d,["transitionEnd","transition"]);c=X(X({},c),r);for(const p in c){const g=GT(c[p]);YT(n,p,g)}}function KT(n){return!!(yt(n)&&n.add)}function Vf(n,a){const i=n.getValue("willChange");if(KT(i))return i.add(a);if(!i&&Vn.WillChange){const r=new Vn.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function y1(n){return n.props[l1]}const FT=n=>n!==null;function ZT(n,{repeat:a,repeatType:i="loop"},r){const o=n.filter(FT),c=a&&i!=="loop"&&a%2===1?0:o.length-1;return o[c]}const QT={type:"spring",stiffness:500,damping:25,restSpeed:10},$T=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),JT={type:"keyframes",duration:.8},WT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IT=(n,{keyframes:a})=>a.length>2?JT:Zs.has(n)?n.startsWith("scale")?$T(a[1]):QT:WT;function eE(v){var b=v,{when:n,delay:a,delayChildren:i,staggerChildren:r,staggerDirection:o,repeat:c,repeatType:d,repeatDelay:p,from:g,elapsed:m}=b,y=ot(b,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(y).length}const Rd=(n,a,i,r={},o,c)=>d=>{const p=gd(r,n)||{},g=p.delay||r.delay||0;let{elapsed:m=0}=r;m=m-pn(g);const y=le(X({keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:a.getVelocity()},p),{delay:-m,onUpdate:b=>{a.set(b),p.onUpdate&&p.onUpdate(b)},onComplete:()=>{d(),p.onComplete&&p.onComplete()},name:n,motionValue:a,element:c?void 0:o});eE(p)||Object.assign(y,IT(n,y)),y.duration&&(y.duration=pn(y.duration)),y.repeatDelay&&(y.repeatDelay=pn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Mf(y),y.delay===0&&(v=!0)),(Vn.instantAnimations||Vn.skipAnimations)&&(v=!0,Mf(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,v&&!c&&a.get()!==void 0){const b=ZT(y.keyframes,p);if(b!==void 0){ke.update(()=>{y.onUpdate(b),y.onComplete()});return}}return p.isSync?new md(y):new jN(y)};function tE({protectedKeys:n,needsAnimating:a},i){const r=n.hasOwnProperty(i)&&a[i]!==!0;return a[i]=!1,r}function x1(n,a,{delay:i=0,transitionOverride:r,type:o}={}){var v;let y=a,{transition:c=n.getDefaultTransition(),transitionEnd:d}=y,p=ot(y,["transition","transitionEnd"]);r&&(c=r);const g=[],m=o&&n.animationState&&n.animationState.getState()[o];for(const b in p){const j=n.getValue(b,(v=n.latestValues[b])!=null?v:null),N=p[b];if(N===void 0||m&&tE(m,b))continue;const A=X({delay:i},gd(c||{},b)),T=j.get();if(T!==void 0&&!j.isAnimating&&!Array.isArray(N)&&N===T&&!A.velocity)continue;let O=!1;if(window.MotionHandoffAnimation){const M=y1(n);if(M){const K=window.MotionHandoffAnimation(M,b,ke);K!==null&&(A.startTime=K,O=!0)}}Vf(n,b),j.start(Rd(b,j,N,n.shouldReduceMotion&&_x.has(b)?{type:!1}:A,n,O));const z=j.animation;z&&g.push(z)}return d&&Promise.all(g).then(()=>{ke.update(()=>{d&&XT(n,d)})}),g}function v1(n,a,i,r=0,o=1){const c=Array.from(n).sort((m,y)=>m.sortNodePosition(y)).indexOf(a),d=n.size,p=(d-1)*r;return typeof i=="function"?i(c,d):o===1?c*r:p-c*r}function _f(n,a,i={}){var g;const r=_s(n,a,i.type==="exit"?(g=n.presenceContext)==null?void 0:g.custom:void 0);let{transition:o=n.getDefaultTransition()||{}}=r||{};i.transitionOverride&&(o=i.transitionOverride);const c=r?()=>Promise.all(x1(n,r,i)):()=>Promise.resolve(),d=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:b}=o;return nE(n,a,m,y,v,b,i)}:()=>Promise.resolve(),{when:p}=o;if(p){const[m,y]=p==="beforeChildren"?[c,d]:[d,c];return m().then(()=>y())}else return Promise.all([c(),d(i.delay)])}function nE(n,a,i=0,r=0,o=0,c=1,d){const p=[];for(const g of n.variantChildren)g.notify("AnimationStart",a),p.push(_f(g,a,le(X({},d),{delay:i+(typeof r=="function"?0:r)+v1(n.variantChildren,g,r,o,c)})).then(()=>g.notify("AnimationComplete",a)));return Promise.all(p)}function aE(n,a,i={}){n.notify("AnimationStart",a);let r;if(Array.isArray(a)){const o=a.map(c=>_f(n,c,i));r=Promise.all(o)}else if(typeof a=="string")r=_f(n,a,i);else{const o=typeof a=="function"?_s(n,a,i.custom):a;r=Promise.all(x1(n,o,i))}return r.then(()=>{n.notify("AnimationComplete",a)})}function b1(n,a){if(!Array.isArray(a))return!1;const i=a.length;if(i!==n.length)return!1;for(let r=0;r<i;r++)if(a[r]!==n[r])return!1;return!0}const sE=wd.length;function S1(n){if(!n)return;if(!n.isControllingVariants){const i=n.parent?S1(n.parent)||{}:{};return n.props.initial!==void 0&&(i.initial=n.props.initial),i}const a={};for(let i=0;i<sE;i++){const r=wd[i],o=n.props[r];(cl(o)||o===!1)&&(a[r]=o)}return a}const iE=[...Sd].reverse(),lE=Sd.length;function rE(n){return a=>Promise.all(a.map(({animation:i,options:r})=>aE(n,i,r)))}function oE(n){let a=rE(n),i=zg(),r=!0;const o=g=>(m,y)=>{var b;const v=_s(n,y,g==="exit"?(b=n.presenceContext)==null?void 0:b.custom:void 0);if(v){const j=v,{transition:N,transitionEnd:A}=j,T=ot(j,["transition","transitionEnd"]);m=X(X(X({},m),T),A)}return m};function c(g){a=g(n)}function d(g){const{props:m}=n,y=S1(n.parent)||{},v=[],b=new Set;let j={},N=1/0;for(let T=0;T<lE;T++){const O=iE[T],z=i[O],M=m[O]!==void 0?m[O]:y[O],K=cl(M),U=O===g?z.isActive:null;U===!1&&(N=T);let Z=M===y[O]&&M!==m[O]&&K;if(Z&&r&&n.manuallyAnimateOnMount&&(Z=!1),z.protectedKeys=X({},j),!z.isActive&&U===null||!M&&!z.prevProp||vo(M)||typeof M=="boolean")continue;const Q=uE(z.prevProp,M);let W=Q||O===g&&z.isActive&&!Z&&K||T>N&&K,fe=!1;const xe=Array.isArray(M)?M:[M];let de=xe.reduce(o(O),{});U===!1&&(de={});const{prevResolvedValues:ue={}}=z,Ae=X(X({},ue),de),He=F=>{W=!0,b.has(F)&&(fe=!0,b.delete(F)),z.needsAnimating[F]=!0;const ee=n.getValue(F);ee&&(ee.liveStyle=!1)};for(const F in Ae){const ee=de[F],ge=ue[F];if(j.hasOwnProperty(F))continue;let C=!1;Uf(ee)&&Uf(ge)?C=!b1(ee,ge):C=ee!==ge,C?ee!=null?He(F):b.add(F):ee!==void 0&&b.has(F)?He(F):z.protectedKeys[F]=!0}z.prevProp=M,z.prevResolvedValues=de,z.isActive&&(j=X(X({},j),de)),r&&n.blockInitialAnimation&&(W=!1);const ve=Z&&Q;W&&(!ve||fe)&&v.push(...xe.map(F=>{const ee={type:O};if(typeof F=="string"&&r&&!ve&&n.manuallyAnimateOnMount&&n.parent){const{parent:ge}=n,C=_s(ge,F);if(ge.enteringChildren&&C){const{delayChildren:P}=C.transition||{};ee.delay=v1(ge.enteringChildren,n,P)}}return{animation:F,options:ee}}))}if(b.size){const T={};if(typeof m.initial!="boolean"){const O=_s(n,Array.isArray(m.initial)?m.initial[0]:m.initial);O&&O.transition&&(T.transition=O.transition)}b.forEach(O=>{const z=n.getBaseTarget(O),M=n.getValue(O);M&&(M.liveStyle=!0),T[O]=z!=null?z:null}),v.push({animation:T})}let A=!!v.length;return r&&(m.initial===!1||m.initial===m.animate)&&!n.manuallyAnimateOnMount&&(A=!1),r=!1,A?a(v):Promise.resolve()}function p(g,m){var v;if(i[g].isActive===m)return Promise.resolve();(v=n.variantChildren)==null||v.forEach(b=>{var j;return(j=b.animationState)==null?void 0:j.setActive(g,m)}),i[g].isActive=m;const y=d(g);for(const b in i)i[b].protectedKeys={};return y}return{animateChanges:d,setActive:p,setAnimateFunction:c,getState:()=>i,reset:()=>{i=zg(),r=!0}}}function uE(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!b1(a,n):!1}function za(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function zg(){return{animate:za(!0),whileInView:za(),whileHover:za(),whileTap:za(),whileDrag:za(),whileFocus:za(),exit:za()}}class ma{constructor(a){this.isMounted=!1,this.node=a}update(){}}class cE extends ma{constructor(a){super(a),a.animationState||(a.animationState=oE(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();vo(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:a}=this.node.getProps(),{animate:i}=this.node.prevProps||{};a!==i&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),(a=this.unmountControls)==null||a.call(this)}}let fE=0;class dE extends ma{constructor(){super(...arguments),this.id=fE++}update(){if(!this.node.presenceContext)return;const{isPresent:a,onExitComplete:i}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===r)return;const o=this.node.animationState.setActive("exit",!a);i&&!a&&o.then(()=>{i(this.id)})}mount(){const{register:a,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),a&&(this.unmount=a(this.id))}unmount(){}}const hE={animation:{Feature:cE},exit:{Feature:dE}};function dl(n,a,i,r={passive:!0}){return n.addEventListener(a,i,r),()=>n.removeEventListener(a,i)}function Nl(n){return{point:{x:n.pageX,y:n.pageY}}}const mE=n=>a=>vd(a)&&n(a,Nl(a));function al(n,a,i,r){return dl(n,a,mE(i),r)}const w1=1e-4,pE=1-w1,gE=1+w1,j1=.01,yE=0-j1,xE=0+j1;function wt(n){return n.max-n.min}function vE(n,a,i){return Math.abs(n-a)<=i}function Bg(n,a,i,r=.5){n.origin=r,n.originPoint=Ye(a.min,a.max,n.origin),n.scale=wt(i)/wt(a),n.translate=Ye(i.min,i.max,n.origin)-n.originPoint,(n.scale>=pE&&n.scale<=gE||isNaN(n.scale))&&(n.scale=1),(n.translate>=yE&&n.translate<=xE||isNaN(n.translate))&&(n.translate=0)}function sl(n,a,i,r){Bg(n.x,a.x,i.x,r?r.originX:void 0),Bg(n.y,a.y,i.y,r?r.originY:void 0)}function Ug(n,a,i){n.min=i.min+a.min,n.max=n.min+wt(a)}function bE(n,a,i){Ug(n.x,a.x,i.x),Ug(n.y,a.y,i.y)}function Vg(n,a,i){n.min=a.min-i.min,n.max=n.min+wt(a)}function il(n,a,i){Vg(n.x,a.x,i.x),Vg(n.y,a.y,i.y)}function Jt(n){return[n("x"),n("y")]}const N1=({current:n})=>n?n.ownerDocument.defaultView:null,_g=(n,a)=>Math.abs(n-a);function SE(n,a){const i=_g(n.x,a.x),r=_g(n.y,a.y);return Math.sqrt(Bc(i,2)+Bc(r,2))}class T1{constructor(a,i,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:d=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=lf(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,N=SE(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!N)return;const{point:A}=b,{timestamp:T}=dt;this.history.push(le(X({},A),{timestamp:T}));const{onStart:O,onMove:z}=this.handlers;j||(O&&O(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,b)},this.handlePointerMove=(b,j)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=sf(j,this.transformPagePoint),ke.update(this.updatePoint,!0)},this.handlePointerUp=(b,j)=>{this.end();const{onEnd:N,onSessionEnd:A,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const O=lf(b.type==="pointercancel"?this.lastMoveEventInfo:sf(j,this.transformPagePoint),this.history);this.startEvent&&N&&N(b,O),A&&A(b,O)},!vd(a))return;this.dragSnapToOrigin=c,this.handlers=i,this.transformPagePoint=r,this.distanceThreshold=d,this.contextWindow=o||window;const p=Nl(a),g=sf(p,this.transformPagePoint),{point:m}=g,{timestamp:y}=dt;this.history=[le(X({},m),{timestamp:y})];const{onSessionStart:v}=i;v&&v(a,lf(g,this.history)),this.removeListeners=Sl(al(this.contextWindow,"pointermove",this.handlePointerMove),al(this.contextWindow,"pointerup",this.handlePointerUp),al(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),fa(this.updatePoint)}}function sf(n,a){return a?{point:a(n.point)}:n}function kg(n,a){return{x:n.x-a.x,y:n.y-a.y}}function lf({point:n},a){return{point:n,delta:kg(n,E1(a)),offset:kg(n,wE(a)),velocity:jE(a,.1)}}function wE(n){return n[0]}function E1(n){return n[n.length-1]}function jE(n,a){if(n.length<2)return{x:0,y:0};let i=n.length-1,r=null;const o=E1(n);for(;i>=0&&(r=n[i],!(o.timestamp-r.timestamp>pn(a)));)i--;if(!r)return{x:0,y:0};const c=gn(o.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const d={x:(o.x-r.x)/c,y:(o.y-r.y)/c};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function NE(n,{min:a,max:i},r){return a!==void 0&&n<a?n=r?Ye(a,n,r.min):Math.max(n,a):i!==void 0&&n>i&&(n=r?Ye(i,n,r.max):Math.min(n,i)),n}function Hg(n,a,i){return{min:a!==void 0?n.min+a:void 0,max:i!==void 0?n.max+i-(n.max-n.min):void 0}}function TE(n,{top:a,left:i,bottom:r,right:o}){return{x:Hg(n.x,i,o),y:Hg(n.y,a,r)}}function qg(n,a){let i=a.min-n.min,r=a.max-n.max;return a.max-a.min<n.max-n.min&&([i,r]=[r,i]),{min:i,max:r}}function EE(n,a){return{x:qg(n.x,a.x),y:qg(n.y,a.y)}}function AE(n,a){let i=.5;const r=wt(n),o=wt(a);return o>r?i=rl(a.min,a.max-r,n.min):r>o&&(i=rl(n.min,n.max-o,a.min)),Un(0,1,i)}function CE(n,a){const i={};return a.min!==void 0&&(i.min=a.min-n.min),a.max!==void 0&&(i.max=a.max-n.min),i}const kf=.35;function RE(n=kf){return n===!1?n=0:n===!0&&(n=kf),{x:Pg(n,"left","right"),y:Pg(n,"top","bottom")}}function Pg(n,a,i){return{min:Yg(n,a),max:Yg(n,i)}}function Yg(n,a){return typeof n=="number"?n:n[a]||0}const DE=new WeakMap;class ME{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Je(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=a}start(a,{snapToCursor:i=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=v=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(Nl(v).point)},d=(v,b)=>{const{drag:j,dragPropagation:N,onDragStart:A}=this.getProps();if(j&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kN(j),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jt(O=>{let z=this.getAxisMotionValue(O).get()||0;if(yn.test(z)){const{projection:M}=this.visualElement;if(M&&M.layout){const K=M.layout.layoutBox[O];K&&(z=wt(K)*(parseFloat(z)/100))}}this.originPoint[O]=z}),A&&ke.postRender(()=>A(v,b)),Vf(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},p=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:j,dragDirectionLock:N,onDirectionLock:A,onDrag:T}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:O}=b;if(N&&this.currentDirection===null){this.currentDirection=OE(O),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",b.point,O),this.updateAxis("y",b.point,O),this.visualElement.render(),T&&T(v,b)},g=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b,this.stop(v,b),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>Jt(v=>{var b;return this.getAnimationState(v)==="paused"&&((b=this.getAxisMotionValue(v).animation)==null?void 0:b.play())}),{dragSnapToOrigin:y}=this.getProps();this.panSession=new T1(a,{onSessionStart:c,onStart:d,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:N1(this.visualElement)})}stop(a,i){const r=a||this.latestPointerEvent,o=i||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!r)return;const{velocity:d}=o;this.startAnimation(d);const{onDragEnd:p}=this.getProps();p&&ke.postRender(()=>p(r,o))}cancel(){this.isDragging=!1;const{projection:a,animationState:i}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(a,i,r){const{drag:o}=this.getProps();if(!r||!Xr(a,o,this.currentDirection))return;const c=this.getAxisMotionValue(a);let d=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(d=NE(d,this.constraints[a],this.elastic[a])),c.set(d)}resolveConstraints(){var c;const{dragConstraints:a,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,o=this.constraints;a&&zs(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&r?this.constraints=TE(r.layoutBox,a):this.constraints=!1,this.elastic=RE(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Jt(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=CE(r.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:i}=this.getProps();if(!a||!zs(a))return!1;const r=a.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=LT(r,o.root,this.visualElement.getTransformPagePoint());let d=EE(o.layout.layoutBox,c);if(i){const p=i(DT(d));this.hasMutatedConstraints=!!p,p&&(d=u1(p))}return d}startAnimation(a){const{drag:i,dragMomentum:r,dragElastic:o,dragTransition:c,dragSnapToOrigin:d,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=Jt(y=>{if(!Xr(y,i,this.currentDirection))return;let v=g&&g[y]||{};d&&(v={min:0,max:0});const b=o?200:1e6,j=o?40:1e7,N=X(X({type:"inertia",velocity:r?a[y]:0,bounceStiffness:b,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10},c),v);return this.startAxisValueAnimation(y,N)});return Promise.all(m).then(p)}startAxisValueAnimation(a,i){const r=this.getAxisMotionValue(a);return Vf(this.visualElement,a),r.start(Rd(a,r,0,i,this.visualElement,!1))}stopAnimation(){Jt(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Jt(a=>{var i;return(i=this.getAxisMotionValue(a).animation)==null?void 0:i.pause()})}getAnimationState(a){var i;return(i=this.getAxisMotionValue(a).animation)==null?void 0:i.state}getAxisMotionValue(a){const i=`_drag${a.toUpperCase()}`,r=this.visualElement.getProps(),o=r[i];return o||this.visualElement.getValue(a,(r.initial?r.initial[a]:void 0)||0)}snapToCursor(a){Jt(i=>{const{drag:r}=this.getProps();if(!Xr(i,r,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(i);if(o&&o.layout){const{min:d,max:p}=o.layout.layoutBox[i];c.set(a[i]-Ye(d,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:i}=this.getProps(),{projection:r}=this.visualElement;if(!zs(i)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Jt(d=>{const p=this.getAxisMotionValue(d);if(p&&this.constraints!==!1){const g=p.get();o[d]=AE({min:g,max:g},this.constraints[d])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Jt(d=>{if(!Xr(d,a,null))return;const p=this.getAxisMotionValue(d),{min:g,max:m}=this.constraints[d];p.set(Ye(g,m,o[d]))})}addListeners(){if(!this.visualElement.current)return;DE.set(this.visualElement,this);const a=this.visualElement.current,i=al(a,"pointerdown",g=>{const{drag:m,dragListener:y=!0}=this.getProps();m&&y&&this.start(g)}),r=()=>{const{dragConstraints:g}=this.getProps();zs(g)&&g.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ke.read(r);const d=dl(window,"resize",()=>this.scalePositionWithinConstraints()),p=o.addEventListener("didUpdate",({delta:g,hasLayoutChanged:m})=>{this.isDragging&&m&&(Jt(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=g[y].translate,v.set(v.get()+g[y].translate))}),this.visualElement.render())});return()=>{d(),i(),c(),p&&p()}}getProps(){const a=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:d=kf,dragMomentum:p=!0}=a;return le(X({},a),{drag:i,dragDirectionLock:r,dragPropagation:o,dragConstraints:c,dragElastic:d,dragMomentum:p})}}function Xr(n,a,i){return(a===!0||a===n)&&(i===null||i===n)}function OE(n,a=10){let i=null;return Math.abs(n.y)>a?i="y":Math.abs(n.x)>a&&(i="x"),i}class LE extends ma{constructor(a){super(a),this.removeGroupControls=Wt,this.removeListeners=Wt,this.controls=new ME(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gg=n=>(a,i)=>{n&&ke.postRender(()=>n(a,i))};class zE extends ma{constructor(){super(...arguments),this.removePointerDownListener=Wt}onPointerDown(a){this.session=new T1(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:N1(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:i,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Gg(a),onStart:Gg(i),onMove:r,onEnd:(c,d)=>{delete this.session,o&&ke.postRender(()=>o(c,d))}}}mount(){this.removePointerDownListener=al(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const eo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Xg(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Ii={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(oe.test(n))n=parseFloat(n);else return n;const i=Xg(n,a.target.x),r=Xg(n,a.target.y);return`${i}% ${r}%`}},BE={correct:(n,{treeScale:a,projectionDelta:i})=>{const r=n,o=da.parse(n);if(o.length>5)return r;const c=da.createTransformer(n),d=typeof o[0]!="number"?1:0,p=i.x.scale*a.x,g=i.y.scale*a.y;o[0+d]/=p,o[1+d]/=g;const m=Ye(p,g,.5);return typeof o[2+d]=="number"&&(o[2+d]/=m),typeof o[3+d]=="number"&&(o[3+d]/=m),c(o)}};let rf=!1;class UE extends w.Component{componentDidMount(){const{visualElement:a,layoutGroup:i,switchLayoutGroup:r,layoutId:o}=this.props,{projection:c}=a;sT(VE),c&&(i.group&&i.group.add(c),r&&r.register&&o&&r.register(c),rf&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions(le(X({},c.options),{onExitComplete:()=>this.safeToRemove()}))),eo.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:i,visualElement:r,drag:o,isPresent:c}=this.props,{projection:d}=r;return d&&(d.isPresent=c,rf=!0,o||a.layoutDependency!==i||i===void 0||a.isPresent!==c?d.willUpdate():this.safeToRemove(),a.isPresent!==c&&(c?d.promote():d.relegate()||ke.postRender(()=>{const p=d.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),xd.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:i,switchLayoutGroup:r}=this.props,{projection:o}=a;rf=!0,o&&(o.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:a}=this.props;a&&a()}render(){return null}}function A1(n){const[a,i]=Qx(),r=w.useContext($f);return f.jsx(UE,le(X({},n),{layoutGroup:r,switchLayoutGroup:w.useContext(r1),isPresent:a,safeToRemove:i}))}const VE={borderRadius:le(X({},Ii),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ii,borderTopRightRadius:Ii,borderBottomLeftRadius:Ii,borderBottomRightRadius:Ii,boxShadow:BE};function _E(n,a,i){const r=yt(n)?n:Hs(n);return r.start(Rd("",r,a,i)),r.animation}const kE=(n,a)=>n.depth-a.depth;class HE{constructor(){this.children=[],this.isDirty=!1}add(a){If(this.children,a),this.isDirty=!0}remove(a){ed(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(kE),this.isDirty=!1,this.children.forEach(a)}}function qE(n,a){const i=Ct.now(),r=({timestamp:o})=>{const c=o-i;c>=a&&(fa(r),n(c-a))};return ke.setup(r,!0),()=>fa(r)}const C1=["TopLeft","TopRight","BottomLeft","BottomRight"],PE=C1.length,Kg=n=>typeof n=="string"?parseFloat(n):n,Fg=n=>typeof n=="number"||oe.test(n);function YE(n,a,i,r,o,c){var d,p,g,m;o?(n.opacity=Ye(0,(d=i.opacity)!=null?d:1,GE(r)),n.opacityExit=Ye((p=a.opacity)!=null?p:1,0,XE(r))):c&&(n.opacity=Ye((g=a.opacity)!=null?g:1,(m=i.opacity)!=null?m:1,r));for(let y=0;y<PE;y++){const v=`border${C1[y]}Radius`;let b=Zg(a,v),j=Zg(i,v);if(b===void 0&&j===void 0)continue;b||(b=0),j||(j=0),b===0||j===0||Fg(b)===Fg(j)?(n[v]=Math.max(Ye(Kg(b),Kg(j),r),0),(yn.test(j)||yn.test(b))&&(n[v]+="%")):n[v]=j}(a.rotate||i.rotate)&&(n.rotate=Ye(a.rotate||0,i.rotate||0,r))}function Zg(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const GE=R1(0,.5,px),XE=R1(.5,.95,Wt);function R1(n,a,i){return r=>r<n?0:r>a?1:i(rl(n,a,r))}function Qg(n,a){n.min=a.min,n.max=a.max}function Qt(n,a){Qg(n.x,a.x),Qg(n.y,a.y)}function $g(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function Jg(n,a,i,r,o){return n-=a,n=oo(n,1/i,r),o!==void 0&&(n=oo(n,1/o,r)),n}function KE(n,a=0,i=1,r=.5,o,c=n,d=n){if(yn.test(a)&&(a=parseFloat(a),a=Ye(d.min,d.max,a/100)-d.min),typeof a!="number")return;let p=Ye(c.min,c.max,r);n===c&&(p-=a),n.min=Jg(n.min,a,i,p,o),n.max=Jg(n.max,a,i,p,o)}function Wg(n,a,[i,r,o],c,d){KE(n,a[i],a[r],a[o],a.scale,c,d)}const FE=["x","scaleX","originX"],ZE=["y","scaleY","originY"];function Ig(n,a,i,r){Wg(n.x,a,FE,i?i.x:void 0,r?r.x:void 0),Wg(n.y,a,ZE,i?i.y:void 0,r?r.y:void 0)}function ey(n){return n.translate===0&&n.scale===1}function D1(n){return ey(n.x)&&ey(n.y)}function ty(n,a){return n.min===a.min&&n.max===a.max}function QE(n,a){return ty(n.x,a.x)&&ty(n.y,a.y)}function ny(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function M1(n,a){return ny(n.x,a.x)&&ny(n.y,a.y)}function ay(n){return wt(n.x)/wt(n.y)}function sy(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}class $E{constructor(){this.members=[]}add(a){If(this.members,a),a.scheduleRender()}remove(a){if(ed(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(a){const i=this.members.findIndex(o=>a===o);if(i===0)return!1;let r;for(let o=i;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){r=c;break}}return r?(this.promote(r),!0):!1}promote(a,i){const r=this.lead;if(a!==r&&(this.prevLead=r,this.lead=a,a.show(),r)){r.instance&&r.scheduleRender(),a.scheduleRender(),a.resumeFrom=r,i&&(a.resumeFrom.preserveOpacity=!0),r.snapshot&&(a.snapshot=r.snapshot,a.snapshot.latestValues=r.animationValues||r.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);const{crossfade:o}=a.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(a=>{const{options:i,resumingFrom:r}=a;i.onExitComplete&&i.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function JE(n,a,i){let r="";const o=n.x.translate/a.x,c=n.y.translate/a.y,d=(i==null?void 0:i.z)||0;if((o||c||d)&&(r=`translate3d(${o}px, ${c}px, ${d}px) `),(a.x!==1||a.y!==1)&&(r+=`scale(${1/a.x}, ${1/a.y}) `),i){const{transformPerspective:m,rotate:y,rotateX:v,rotateY:b,skewX:j,skewY:N}=i;m&&(r=`perspective(${m}px) ${r}`),y&&(r+=`rotate(${y}deg) `),v&&(r+=`rotateX(${v}deg) `),b&&(r+=`rotateY(${b}deg) `),j&&(r+=`skewX(${j}deg) `),N&&(r+=`skewY(${N}deg) `)}const p=n.x.scale*a.x,g=n.y.scale*a.y;return(p!==1||g!==1)&&(r+=`scale(${p}, ${g})`),r||"none"}const of=["","X","Y","Z"],WE=1e3;let IE=0;function uf(n,a,i,r){const{latestValues:o}=a;o[n]&&(i[n]=o[n],a.setStaticValue(n,0),r&&(r[n]=0))}function O1(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const i=y1(a);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:o,layoutId:c}=n.options;window.MotionCancelOptimisedAnimation(i,"transform",ke,!(o||c))}const{parent:r}=n;r&&!r.hasCheckedOptimisedAppear&&O1(r)}function L1({attachResizeListener:n,defaultParent:a,measureScroll:i,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(d={},p=a==null?void 0:a()){this.id=IE++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(n3),this.nodes.forEach(l3),this.nodes.forEach(r3),this.nodes.forEach(a3)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new HE)}addEventListener(d,p){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new ad),this.eventHandlers.get(d).add(p)}notifyListeners(d,...p){const g=this.eventHandlers.get(d);g&&g.notify(...p)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=Zx(d)&&!XN(d),this.instance=d;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),n){let y,v=0;const b=()=>this.root.updateBlockedByResize=!1;ke.read(()=>{v=window.innerWidth}),n(d,()=>{const j=window.innerWidth;j!==v&&(v=j,this.root.updateBlockedByResize=!0,y&&y(),y=qE(b,250),eo.hasAnimatedSinceResize&&(eo.hasAnimatedSinceResize=!1,this.nodes.forEach(ry)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||m.getDefaultTransition()||d3,{onLayoutAnimationStart:A,onLayoutAnimationComplete:T}=m.getProps(),O=!this.targetLayout||!M1(this.targetLayout,j),z=!v&&b;if(this.options.layoutRoot||this.resumeFrom||z||v&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M=le(X({},gd(N,"layout")),{onPlay:A,onComplete:T});(m.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(y,z)}else v||ry(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),fa(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(o3),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&O1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:p,layout:g}=this.options;if(p===void 0&&!g)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ly);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i3),this.nodes.forEach(e3),this.nodes.forEach(t3)):this.nodes.forEach(ly),this.clearAllSnapshots();const p=Ct.now();dt.delta=Un(0,1e3/60,p-dt.timestamp),dt.timestamp=p,dt.isProcessing=!0,Qc.update.process(dt),Qc.preRender.process(dt),Qc.render.process(dt),dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s3),this.sharedNodes.forEach(u3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!wt(this.snapshot.measuredBox.x)&&!wt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Je(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(p=!1),p&&this.instance){const g=r(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!o)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!D1(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,y=m!==this.prevTransformTemplateValue;d&&this.instance&&(p||Ba(this.latestValues)||y)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return d&&(g=this.removeTransform(g)),h3(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:d}=this.options;if(!d)return Je();const p=d.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(m3))){const{scroll:y}=this.root;y&&(Bs(p.x,y.offset.x),Bs(p.y,y.offset.y))}return p}removeElementScroll(d){var g;const p=Je();if(Qt(p,d),(g=this.scroll)!=null&&g.wasRoot)return p;for(let m=0;m<this.path.length;m++){const y=this.path[m],{scroll:v,options:b}=y;y!==this.root&&v&&b.layoutScroll&&(v.wasRoot&&Qt(p,d),Bs(p.x,v.offset.x),Bs(p.y,v.offset.y))}return p}applyTransform(d,p=!1){const g=Je();Qt(g,d);for(let m=0;m<this.path.length;m++){const y=this.path[m];!p&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Us(g,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Ba(y.latestValues)&&Us(g,y.latestValues)}return Ba(this.latestValues)&&Us(g,this.latestValues),g}removeTransform(d){const p=Je();Qt(p,d);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!Ba(m.latestValues))continue;Lf(m.latestValues)&&m.updateSnapshot();const y=Je(),v=m.measurePageBox();Qt(y,v),Ig(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,y)}return Ba(this.latestValues)&&Ig(p,this.latestValues),p}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options=le(X(X({},this.options),d),{crossfade:d.crossfade!==void 0?d.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==dt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var b;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==p;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||(b=this.parent)!=null&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!(!this.layout||!(y||v))){if(this.resolvedRelativeTargetAt=dt.timestamp,!this.targetDelta&&!this.relativeTarget){const j=this.getClosestProjectingParent();j&&j.layout&&this.animationProgress!==1?(this.relativeParent=j,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Je(),this.relativeTargetOrigin=Je(),il(this.relativeTargetOrigin,this.layout.layoutBox,j.layout.layoutBox),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Je(),this.targetWithTransforms=Je()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Qt(this.target,this.layout.layoutBox),f1(this.target,this.targetDelta)):Qt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const j=this.getClosestProjectingParent();j&&!!j.resumingFrom==!!this.resumingFrom&&!j.options.layoutScroll&&j.target&&this.animationProgress!==1?(this.relativeParent=j,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Je(),this.relativeTargetOrigin=Je(),il(this.relativeTargetOrigin,this.target,j.target),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Lf(this.parent.latestValues)||c1(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 N;const d=this.getLead(),p=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||(N=this.parent)!=null&&N.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===dt.timestamp&&(g=!1),g)return;const{layout:m,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||y))return;Qt(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;OT(this.layoutCorrected,this.treeScale,this.path,p),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Je());const{target:j}=d;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($g(this.prevProjectionDelta.x,this.projectionDelta.x),$g(this.prevProjectionDelta.y,this.projectionDelta.y)),sl(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!sy(this.projectionDelta.x,this.prevProjectionDelta.x)||!sy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var p;if((p=this.options.visualElement)==null||p.scheduleRender(),d){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Vs(),this.projectionDelta=Vs(),this.projectionDeltaWithTransform=Vs()}setAnimationOrigin(d,p=!1){const g=this.snapshot,m=g?g.latestValues:{},y=X({},this.latestValues),v=Vs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const b=Je(),j=g?g.source:void 0,N=this.layout?this.layout.source:void 0,A=j!==N,T=this.getStack(),O=!T||T.members.length<=1,z=!!(A&&!O&&this.options.crossfade===!0&&!this.path.some(f3));this.animationProgress=0;let M;this.mixTargetDelta=K=>{const U=K/1e3;oy(v.x,d.x,U),oy(v.y,d.y,U),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(il(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),c3(this.relativeTarget,this.relativeTargetOrigin,b,U),M&&QE(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=Je()),Qt(M,this.relativeTarget)),A&&(this.animationValues=y,YE(y,m,this.latestValues,U,z,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=U},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var p,g,m;this.notifyListeners("animationStart"),(p=this.currentAnimation)==null||p.stop(),(m=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||m.stop(),this.pendingAnimation&&(fa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ke.update(()=>{eo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Hs(0)),this.currentAnimation=_E(this.motionValue,[0,1e3],le(X({},d),{velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),d.onUpdate&&d.onUpdate(y)},onStop:()=>{},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(WE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:y}=d;if(!(!p||!g||!m)){if(this!==d&&this.layout&&m&&z1(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||Je();const v=wt(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+v;const b=wt(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+b}Qt(p,g),Us(p,y),sl(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(d,p){this.sharedNodes.has(d)||this.sharedNodes.set(d,new $E),this.sharedNodes.get(d).add(p);const m=p.options.initialPromotionConfig;p.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(p):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var p;const{layoutId:d}=this.options;return d?((p=this.getStack())==null?void 0:p.lead)||this:this}getPrevLead(){var p;const{layoutId:d}=this.options;return d?(p=this.getStack())==null?void 0:p.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:p,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let p=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const m={};g.z&&uf("z",d,m,this.animationValues);for(let y=0;y<of.length;y++)uf(`rotate${of[y]}`,d,m,this.animationValues),uf(`skew${of[y]}`,d,m,this.animationValues);d.render();for(const y in m)d.setStaticValue(y,m[y]),this.animationValues&&(this.animationValues[y]=m[y]);d.scheduleRender()}applyProjectionStyles(d,p){var N,A;if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=Ir(p==null?void 0:p.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=Ir(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!Ba(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const y=m.animationValues||m.latestValues;this.applyTransformsToTarget();let v=JE(this.projectionDeltaWithTransform,this.treeScale,y);g&&(v=g(y,v)),d.transform=v;const{x:b,y:j}=this.projectionDelta;d.transformOrigin=`${b.origin*100}% ${j.origin*100}% 0`,m.animationValues?d.opacity=m===this?(A=(N=y.opacity)!=null?N:this.latestValues.opacity)!=null?A:1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:d.opacity=m===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const T in fl){if(y[T]===void 0)continue;const{correct:O,applyTo:z,isCSSVariable:M}=fl[T],K=v==="none"?y[T]:O(y[T],m);if(z){const U=z.length;for(let Z=0;Z<U;Z++)d[z[Z]]=K}else M?this.options.visualElement.renderState.vars[T]=K:d[T]=K}this.options.layoutId&&(d.pointerEvents=m===this?Ir(p==null?void 0:p.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var p;return(p=d.currentAnimation)==null?void 0:p.stop()}),this.root.nodes.forEach(iy),this.root.sharedNodes.clear()}}}function e3(n){n.updateLayout()}function t3(n){var i;const a=((i=n.resumeFrom)==null?void 0:i.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=n.layout,{animationType:c}=n.options,d=a.source!==n.layout.source;c==="size"?Jt(v=>{const b=d?a.measuredBox[v]:a.layoutBox[v],j=wt(b);b.min=r[v].min,b.max=b.min+j}):z1(c,a.layoutBox,r)&&Jt(v=>{const b=d?a.measuredBox[v]:a.layoutBox[v],j=wt(r[v]);b.max=b.min+j,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+j)});const p=Vs();sl(p,r,a.layoutBox);const g=Vs();d?sl(g,n.applyTransform(o,!0),a.measuredBox):sl(g,r,a.layoutBox);const m=!D1(p);let y=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:j}=v;if(b&&j){const N=Je();il(N,a.layoutBox,b.layoutBox);const A=Je();il(A,r,j.layoutBox),M1(N,A)||(y=!0),v.options.layoutRoot&&(n.relativeTarget=A,n.relativeTargetOrigin=N,n.relativeParent=v)}}}n.notifyListeners("didUpdate",{layout:r,snapshot:a,delta:g,layoutDelta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:r}=n.options;r&&r()}n.options.transition=void 0}function n3(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function a3(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function s3(n){n.clearSnapshot()}function iy(n){n.clearMeasurements()}function ly(n){n.isLayoutDirty=!1}function i3(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function ry(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function l3(n){n.resolveTargetDelta()}function r3(n){n.calcProjection()}function o3(n){n.resetSkewAndRotation()}function u3(n){n.removeLeadSnapshot()}function oy(n,a,i){n.translate=Ye(a.translate,0,i),n.scale=Ye(a.scale,1,i),n.origin=a.origin,n.originPoint=a.originPoint}function uy(n,a,i,r){n.min=Ye(a.min,i.min,r),n.max=Ye(a.max,i.max,r)}function c3(n,a,i,r){uy(n.x,a.x,i.x,r),uy(n.y,a.y,i.y,r)}function f3(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const d3={duration:.45,ease:[.4,0,.1,1]},cy=n=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),fy=cy("applewebkit/")&&!cy("chrome/")?Math.round:Wt;function dy(n){n.min=fy(n.min),n.max=fy(n.max)}function h3(n){dy(n.x),dy(n.y)}function z1(n,a,i){return n==="position"||n==="preserve-aspect"&&!vE(ay(a),ay(i),.2)}function m3(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const p3=L1({attachResizeListener:(n,a)=>dl(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cf={current:void 0},B1=L1({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!cf.current){const n=new p3({});n.mount(window),n.setOptions({layoutScroll:!0}),cf.current=n}return cf.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),g3={pan:{Feature:zE},drag:{Feature:LE,ProjectionNode:B1,MeasureLayout:A1}};function hy(n,a,i){const{props:r}=n;n.animationState&&r.whileHover&&n.animationState.setActive("whileHover",i==="Start");const o="onHover"+i,c=r[o];c&&ke.postRender(()=>c(a,Nl(a)))}class y3 extends ma{mount(){const{current:a}=this.node;a&&(this.unmount=HN(a,(i,r)=>(hy(this.node,r,"Start"),o=>hy(this.node,o,"End"))))}unmount(){}}class x3 extends ma{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(i){a=!0}!a||!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=Sl(dl(this.node.current,"focus",()=>this.onFocus()),dl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function my(n,a,i){const{props:r}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&r.whileTap&&n.animationState.setActive("whileTap",i==="Start");const o="onTap"+(i==="End"?"":i),c=r[o];c&&ke.postRender(()=>c(a,Nl(a)))}class v3 extends ma{mount(){const{current:a}=this.node;a&&(this.unmount=GN(a,(i,r)=>(my(this.node,r,"Start"),(o,{success:c})=>my(this.node,o,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Hf=new WeakMap,ff=new WeakMap,b3=n=>{const a=Hf.get(n.target);a&&a(n)},S3=n=>{n.forEach(b3)};function w3(i){var r=i,{root:n}=r,a=ot(r,["root"]);const o=n||document;ff.has(o)||ff.set(o,{});const c=ff.get(o),d=JSON.stringify(a);return c[d]||(c[d]=new IntersectionObserver(S3,X({root:n},a))),c[d]}function j3(n,a,i){const r=w3(a);return Hf.set(n,i),r.observe(n),()=>{Hf.delete(n),r.unobserve(n)}}const N3={some:0,all:1};class T3 extends ma{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:a={}}=this.node.getProps(),{root:i,margin:r,amount:o="some",once:c}=a,d={root:i?i.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:N3[o]},p=g=>{const{isIntersecting:m}=g;if(this.isInView===m||(this.isInView=m,c&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:v}=this.node.getProps(),b=m?y:v;b&&b(g)};return j3(this.node.current,d,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:a,prevProps:i}=this.node;["amount","margin","root"].some(E3(a,i))&&this.startObserver()}unmount(){}}function E3({viewport:n={}},{viewport:a={}}={}){return i=>n[i]!==a[i]}const A3={inView:{Feature:T3},tap:{Feature:v3},focus:{Feature:x3},hover:{Feature:y3}},C3={layout:{ProjectionNode:B1,MeasureLayout:A1}},R3=X(X(X(X({},hE),A3),g3),C3),$t=RT(R3,PT),D3=()=>{const[n,a]=w.useState(null),[i,r]=w.useState(!1),[o,c]=w.useState(!1),[d,p]=w.useState(0),[g,m]=w.useState(null),[y,v]=w.useState(""),b=w.useCallback(z=>{z.preventDefault(),z.stopPropagation(),z.type==="dragenter"||z.type==="dragover"?r(!0):z.type==="dragleave"&&r(!1)},[]),j=w.useCallback(z=>{if(z.preventDefault(),z.stopPropagation(),r(!1),z.dataTransfer.files&&z.dataTransfer.files[0]){const M=z.dataTransfer.files[0];N(M)&&(a(M),m(null),v(""))}},[]),N=z=>{const M=["application/zip","application/x-zip-compressed","application/x-tar","application/gzip","application/x-gzip"],K=[".zip",".tar",".tar.gz",".tgz"],U=z.name.toLowerCase();return M.includes(z.type)||K.some(Q=>U.endsWith(Q))?z.size>100*1024*1024?(v("File size must be less than 100MB"),m("error"),!1):!0:(v("Please select a valid ZIP or TAR file"),m("error"),!1)},A=z=>{const M=z.target.files[0];M&&N(M)&&(a(M),m(null),v(""))},T=()=>Re(null,null,function*(){var M,K;if(!n){v("Please select a file"),m("error");return}c(!0),p(0),m(null),v("");const z=new FormData;z.append("file",n);try{(yield pe.post(`${We}/api/db/import-database/`,z,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:Z=>{const Q=Math.round(Z.loaded*100/Z.total);p(Q)}})).status===200&&(m("success"),a(null),p(100))}catch(U){console.error("Upload failed:",U),m("error"),v(((K=(M=U.response)==null?void 0:M.data)==null?void 0:K.message)||"Failed to import database. Please try again.")}finally{c(!1)}}),O=()=>{a(null),m(null),v(""),p(0)};return f.jsx("div",{className:"container mx-auto px-4 py-8",children:f.jsxs($t.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-2xl mx-auto",children:[f.jsxs("div",{className:"text-center mb-8",children:[f.jsx($t.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},className:"w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4",children:f.jsx("svg",{className:"w-8 h-8 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10"})})}),f.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Import Database"}),f.jsx("p",{className:"text-gray-600",children:"Upload a ZIP or TAR file containing your exported database"})]}),f.jsx($t.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3,duration:.5},className:"mb-6",children:f.jsxs("div",{className:`relative border-2 border-dashed rounded-xl p-8 transition-all duration-300 ${i?"border-blue-500 bg-blue-50":n?"border-green-500 bg-green-50":"border-gray-300 hover:border-gray-400"}`,onDragEnter:b,onDragLeave:b,onDragOver:b,onDrop:j,children:[f.jsx("input",{type:"file",id:"file-upload",className:"sr-only",accept:".zip,.tar,.tar.gz,.tgz",onChange:A,disabled:o}),f.jsx(tf,{mode:"wait",children:n?f.jsxs($t.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"flex items-center justify-between bg-white rounded-lg p-4 shadow-sm",children:[f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center mr-3",children:f.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-gray-900",children:n.name}),f.jsxs("p",{className:"text-sm text-gray-500",children:[(n.size/1024/1024).toFixed(2)," MB"]})]})]}),!o&&f.jsx("button",{onClick:O,className:"text-red-500 hover:text-red-700 transition-colors",children:f.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]},"file-selected"):f.jsxs($t.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"text-center",children:[f.jsx($t.div,{animate:i?{scale:1.1}:{scale:1},transition:{type:"spring",stiffness:300},children:f.jsx("svg",{className:"w-12 h-12 text-gray-400 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})})}),f.jsx("p",{className:"text-lg font-medium text-gray-700 mb-2",children:i?"Drop your file here":"Drag and drop your file here"}),f.jsx("p",{className:"text-gray-500 mb-4",children:"or"}),f.jsxs("label",{htmlFor:"file-upload",className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg cursor-pointer transition-colors inline-flex items-center",children:[f.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})}),"Choose File"]}),f.jsx("p",{className:"text-sm text-gray-500 mt-4",children:"Supports ZIP and TAR files (max 100MB)"})]},"upload-prompt")})]})}),f.jsx(tf,{children:o&&f.jsx($t.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-6",children:f.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm border",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Uploading..."}),f.jsxs("span",{className:"text-sm text-gray-500",children:[d,"%"]})]}),f.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:f.jsx($t.div,{className:"bg-blue-600 h-2 rounded-full",initial:{width:0},animate:{width:`${d}%`},transition:{duration:.3}})})]})})}),f.jsx(tf,{children:g&&f.jsxs($t.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:`mb-6 p-4 rounded-lg ${g==="success"?"bg-green-50 border border-green-200":"bg-red-50 border border-red-200"}`,children:[f.jsxs("div",{className:"flex items-center",children:[g==="success"?f.jsx("svg",{className:"w-5 h-5 text-green-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}):f.jsx("svg",{className:"w-5 h-5 text-red-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),f.jsx("p",{className:`font-medium ${g==="success"?"text-green-800":"text-red-800"}`,children:g==="success"?"Database imported successfully!":"Import failed"})]}),y&&f.jsx("p",{className:"text-red-700 mt-1 text-sm",children:y})]})}),f.jsx($t.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4,duration:.5},className:"text-center",children:f.jsx("button",{onClick:T,disabled:!n||o,className:`w-full py-4 px-6 rounded-lg font-medium transition-all duration-300 ${!n||o?"bg-gray-300 text-gray-500 cursor-not-allowed":"bg-blue-600 hover:bg-blue-700 text-white hover:shadow-lg transform hover:scale-105"}`,children:o?f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx($t.div,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"},className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full mr-2"}),"Importing Database..."]}):f.jsxs("div",{className:"flex items-center justify-center",children:[f.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10"})}),"Import Database"]})})}),f.jsxs($t.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.5,duration:.5},className:"mt-8 bg-gray-50 rounded-lg p-6",children:[f.jsx("h3",{className:"font-medium text-gray-900 mb-3",children:"Import Guidelines"}),f.jsxs("ul",{className:"space-y-2 text-sm text-gray-600",children:[f.jsxs("li",{className:"flex items-start",children:[f.jsx("svg",{className:"w-4 h-4 text-blue-500 mr-2 mt-0.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),"Only ZIP and TAR compressed files are supported"]}),f.jsxs("li",{className:"flex items-start",children:[f.jsx("svg",{className:"w-4 h-4 text-blue-500 mr-2 mt-0.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),"Only use files exported from AxioDB"]}),f.jsxs("li",{className:"flex items-start",children:[f.jsx("svg",{className:"w-4 h-4 text-blue-500 mr-2 mt-0.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),"Importing will create a new database in your system"]})]})]})]})})};function M3(){return f.jsx(AS,{children:f.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[f.jsx(pj,{}),f.jsx("main",{className:"flex-grow",children:f.jsxs(aS,{children:[f.jsx(mn,{path:"/",element:f.jsx(Vj,{})}),f.jsx(mn,{path:"/operations",element:f.jsx(qj,{})}),f.jsx(mn,{path:"/collections",element:f.jsx(Gj,{})}),f.jsx(mn,{path:"/documents",element:f.jsx(ng,{})}),f.jsx(mn,{path:"/api",element:f.jsx(Qj,{})}),f.jsx(mn,{path:"/support",element:f.jsx($j,{})}),f.jsx(mn,{path:"/status",element:f.jsx(Jj,{})}),f.jsx(mn,{path:"/import",element:f.jsx(D3,{})}),f.jsx(mn,{path:"/collections/documents",element:f.jsx(ng,{})})]})}),f.jsx(VS,{})]})})}h2.createRoot(document.getElementById("root")).render(f.jsx(w.StrictMode,{children:f.jsx(M3,{})}))});export default O3();