axiodb 2.30.93 → 2.31.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Services/Aggregation/Aggregation.Operation.js +10 -47
- package/lib/Services/Aggregation/Aggregation.Operation.js.map +1 -1
- package/lib/Services/CRUD Operation/Create.operation.js +7 -53
- package/lib/Services/CRUD Operation/Create.operation.js.map +1 -1
- package/lib/Services/CRUD Operation/Delete.operation.js +12 -51
- package/lib/Services/CRUD Operation/Delete.operation.js.map +1 -1
- package/lib/Services/CRUD Operation/Reader.operation.js +12 -51
- package/lib/Services/CRUD Operation/Reader.operation.js.map +1 -1
- package/lib/Services/CRUD Operation/Update.operation.js +12 -51
- package/lib/Services/CRUD Operation/Update.operation.js.map +1 -1
- package/lib/Services/Indexation.operation.d.ts +5 -0
- package/lib/Services/Indexation.operation.js +7 -0
- package/lib/Services/Indexation.operation.js.map +1 -1
- package/lib/server/config/keys.js +14 -1
- package/lib/server/config/keys.js.map +1 -1
- package/lib/server/controller/Database/Databse.controller.d.ts +31 -1
- package/lib/server/controller/Database/Databse.controller.js +156 -0
- package/lib/server/controller/Database/Databse.controller.js.map +1 -1
- package/lib/server/public/AxioControl/.vite/manifest.json +2 -2
- package/lib/server/public/AxioControl/.vite/ssr-manifest.json +258 -0
- package/lib/server/public/AxioControl/assets/index-CdykjE_a.css +1 -0
- package/lib/server/public/AxioControl/assets/index-DImn3ep-.js +75 -0
- package/lib/server/public/AxioControl/index.html +2 -2
- package/lib/server/public/AxioControl/sw.js +1 -1
- package/lib/server/router/Router.js +14 -15
- package/lib/server/router/Router.js.map +1 -1
- package/lib/server/router/Routers/DB.routes.js +6 -0
- package/lib/server/router/Routers/DB.routes.js.map +1 -1
- package/lib/utility/ZipUnzip.utils.d.ts +31 -0
- package/lib/utility/ZipUnzip.utils.js +117 -0
- package/lib/utility/ZipUnzip.utils.js.map +1 -0
- package/package.json +6 -3
- package/lib/server/public/AxioControl/assets/index-CEUHQ44S.css +0 -1
- package/lib/server/public/AxioControl/assets/index-Cub2B5F8.js +0 -67
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var Ib=Object.defineProperty,e2=Object.defineProperties;var t2=Object.getOwnPropertyDescriptors;var Dr=Object.getOwnPropertySymbols;var yp=Object.prototype.hasOwnProperty,xp=Object.prototype.propertyIsEnumerable;var Es=(n,a)=>(a=Symbol[n])?a:Symbol.for("Symbol."+n),n2=n=>{throw TypeError(n)},Rc=Math.pow,gp=(n,a,i)=>a in n?Ib(n,a,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[a]=i,Z=(n,a)=>{for(var i in a||(a={}))yp.call(a,i)&&gp(n,i,a[i]);if(Dr)for(var i of Dr(a))xp.call(a,i)&&gp(n,i,a[i]);return n},le=(n,a)=>e2(n,t2(a));var rt=(n,a)=>{var i={};for(var r in n)yp.call(n,r)&&a.indexOf(r)<0&&(i[r]=n[r]);if(n!=null&&Dr)for(var r of Dr(n))a.indexOf(r)<0&&xp.call(n,r)&&(i[r]=n[r]);return i};var a2=(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)}},f=g=>{try{p(i.throw(g))}catch(m){o(m)}},p=g=>g.done?r(g.value):Promise.resolve(g.value).then(c,f);p((i=i.apply(n,a)).next())}),Ma=function(n,a){this[0]=n,this[1]=a},Cc=(n,a,i)=>{var r=(f,p,g,m)=>{try{var y=i[f](p),v=(p=y.value)instanceof Ma,b=y.done;Promise.resolve(v?p[0]:p).then(w=>v?r(f==="return"?f:"next",p[1]?{done:w.done,value:w.value}:w,g,m):g({value:w,done:b})).catch(w=>r("throw",w,g,m))}catch(w){m(w)}},o=f=>c[f]=p=>new Promise((g,m)=>r(f,p,g,m)),c={};return i=i.apply(n,a),c[Es("asyncIterator")]=()=>c,o("next"),o("throw"),o("return"),c},Dc=n=>{var a=n[Es("asyncIterator")],i=!1,r,o={};return a==null?(a=n[Es("iterator")](),r=c=>o[c]=f=>a[c](f)):(a=a.call(n),r=c=>o[c]=f=>{if(i){if(i=!1,c==="throw")throw f;return f}return i=!0,{done:!1,value:new Ma(new Promise(p=>{var g=a[c](f);g instanceof Object||n2("Object expected"),p(g)}),1)}}),o[Es("iterator")]=()=>o,r("next"),"throw"in a?r("throw"):o.throw=c=>{throw c},"return"in a&&r("return"),o},vp=(n,a,i)=>(a=n[Es("asyncIterator")])?a.call(n):(n=n[Es("iterator")](),a={},i=(r,o)=>(o=n[r])&&(a[r]=c=>new Promise((f,p,g)=>(c=o.call(n,c),g=c.done,Promise.resolve(c.value).then(m=>f({value:m,done:g}),p)))),i("next"),i("return"),a);var B3=a2(Ye=>{(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 f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).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 s2(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Mc={exports:{}},ki={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var bp;function i2(){if(bp)return ki;bp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(r,o,c){var f=null;if(c!==void 0&&(f=""+c),o.key!==void 0&&(f=""+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:f,ref:o!==void 0?o:null,props:c}}return ki.Fragment=a,ki.jsx=i,ki.jsxs=i,ki}var Sp;function l2(){return Sp||(Sp=1,Mc.exports=i2()),Mc.exports}var h=l2(),Oc={exports:{}},he={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var wp;function r2(){if(wp)return he;wp=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"),f=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(R){return R===null||typeof R!="object"?null:(R=v&&R[v]||R["@@iterator"],typeof R=="function"?R:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,E={};function N(R,K,W){this.props=R,this.context=K,this.refs=E,this.updater=W||w}N.prototype.isReactComponent={},N.prototype.setState=function(R,K){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,K,"setState")},N.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function D(){}D.prototype=N.prototype;function z(R,K,W){this.props=R,this.context=K,this.refs=E,this.updater=W||w}var M=z.prototype=new D;M.constructor=z,T(M,N.prototype),M.isPureReactComponent=!0;var G=Array.isArray,_={H:null,A:null,T:null,S:null,V:null},X=Object.prototype.hasOwnProperty;function $(R,K,W,J,ae,Se){return W=Se.ref,{$$typeof:n,type:R,key:K,ref:W!==void 0?W:null,props:Se}}function Q(R,K){return $(R.type,K,void 0,void 0,void 0,R.props)}function ce(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function Te(R){var K={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(W){return K[W]})}var ge=/\/+/g;function we(R,K){return typeof R=="object"&&R!==null&&R.key!=null?Te(""+R.key):K.toString(36)}function Be(){}function Ze(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Be,Be):(R.status="pending",R.then(function(K){R.status==="pending"&&(R.status="fulfilled",R.value=K)},function(K){R.status==="pending"&&(R.status="rejected",R.reason=K)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function Ve(R,K,W,J,ae){var Se=typeof R;(Se==="undefined"||Se==="boolean")&&(R=null);var ue=!1;if(R===null)ue=!0;else switch(Se){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(R.$$typeof){case n:case a:ue=!0;break;case y:return ue=R._init,Ve(ue(R._payload),K,W,J,ae)}}if(ue)return ae=ae(R),ue=J===""?"."+we(R,0):J,G(ae)?(W="",ue!=null&&(W=ue.replace(ge,"$&/")+"/"),Ve(ae,K,W,"",function(De){return De})):ae!=null&&(ce(ae)&&(ae=Q(ae,W+(ae.key==null||R&&R.key===ae.key?"":(""+ae.key).replace(ge,"$&/")+"/")+ue)),K.push(ae)),1;ue=0;var I=J===""?".":J+":";if(G(R))for(var fe=0;fe<R.length;fe++)J=R[fe],Se=I+we(J,fe),ue+=Ve(J,K,W,Se,ae);else if(fe=b(R),typeof fe=="function")for(R=fe.call(R),fe=0;!(J=R.next()).done;)J=J.value,Se=I+we(J,fe++),ue+=Ve(J,K,W,Se,ae);else if(Se==="object"){if(typeof R.then=="function")return Ve(Ze(R),K,W,J,ae);throw K=String(R),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return ue}function H(R,K,W){if(R==null)return R;var J=[],ae=0;return Ve(R,J,"","",function(Se){return K.call(W,Se,ae++)}),J}function F(R){if(R._status===-1){var K=R._result;K=K(),K.then(function(W){(R._status===0||R._status===-1)&&(R._status=1,R._result=W)},function(W){(R._status===0||R._status===-1)&&(R._status=2,R._result=W)}),R._status===-1&&(R._status=0,R._result=K)}if(R._status===1)return R._result.default;throw R._result}var ee=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function ye(){}return he.Children={map:H,forEach:function(R,K,W){H(R,function(){K.apply(this,arguments)},W)},count:function(R){var K=0;return H(R,function(){K++}),K},toArray:function(R){return H(R,function(K){return K})||[]},only:function(R){if(!ce(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},he.Component=N,he.Fragment=i,he.Profiler=o,he.PureComponent=z,he.StrictMode=r,he.Suspense=g,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,he.__COMPILER_RUNTIME={__proto__:null,c:function(R){return _.H.useMemoCache(R)}},he.cache=function(R){return function(){return R.apply(null,arguments)}},he.cloneElement=function(R,K,W){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var J=T({},R.props),ae=R.key,Se=void 0;if(K!=null)for(ue in K.ref!==void 0&&(Se=void 0),K.key!==void 0&&(ae=""+K.key),K)!X.call(K,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&K.ref===void 0||(J[ue]=K[ue]);var ue=arguments.length-2;if(ue===1)J.children=W;else if(1<ue){for(var I=Array(ue),fe=0;fe<ue;fe++)I[fe]=arguments[fe+2];J.children=I}return $(R.type,ae,void 0,void 0,Se,J)},he.createContext=function(R){return R={$$typeof:f,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:c,_context:R},R},he.createElement=function(R,K,W){var J,ae={},Se=null;if(K!=null)for(J in K.key!==void 0&&(Se=""+K.key),K)X.call(K,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ae[J]=K[J]);var ue=arguments.length-2;if(ue===1)ae.children=W;else if(1<ue){for(var I=Array(ue),fe=0;fe<ue;fe++)I[fe]=arguments[fe+2];ae.children=I}if(R&&R.defaultProps)for(J in ue=R.defaultProps,ue)ae[J]===void 0&&(ae[J]=ue[J]);return $(R,Se,void 0,void 0,null,ae)},he.createRef=function(){return{current:null}},he.forwardRef=function(R){return{$$typeof:p,render:R}},he.isValidElement=ce,he.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:F}},he.memo=function(R,K){return{$$typeof:m,type:R,compare:K===void 0?null:K}},he.startTransition=function(R){var K=_.T,W={};_.T=W;try{var J=R(),ae=_.S;ae!==null&&ae(W,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ye,ee)}catch(Se){ee(Se)}finally{_.T=K}},he.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},he.use=function(R){return _.H.use(R)},he.useActionState=function(R,K,W){return _.H.useActionState(R,K,W)},he.useCallback=function(R,K){return _.H.useCallback(R,K)},he.useContext=function(R){return _.H.useContext(R)},he.useDebugValue=function(){},he.useDeferredValue=function(R,K){return _.H.useDeferredValue(R,K)},he.useEffect=function(R,K,W){var J=_.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(R,K)},he.useId=function(){return _.H.useId()},he.useImperativeHandle=function(R,K,W){return _.H.useImperativeHandle(R,K,W)},he.useInsertionEffect=function(R,K){return _.H.useInsertionEffect(R,K)},he.useLayoutEffect=function(R,K){return _.H.useLayoutEffect(R,K)},he.useMemo=function(R,K){return _.H.useMemo(R,K)},he.useOptimistic=function(R,K){return _.H.useOptimistic(R,K)},he.useReducer=function(R,K,W){return _.H.useReducer(R,K,W)},he.useRef=function(R){return _.H.useRef(R)},he.useState=function(R){return _.H.useState(R)},he.useSyncExternalStore=function(R,K,W){return _.H.useSyncExternalStore(R,K,W)},he.useTransition=function(){return _.H.useTransition()},he.version="19.1.1",he}var jp;function Bf(){return jp||(jp=1,Oc.exports=r2()),Oc.exports}var j=Bf();const Mr=s2(j);var Lc={exports:{}},Hi={},zc={exports:{}},Bc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Tp;function o2(){return Tp||(Tp=1,function(n){function a(H,F){var ee=H.length;H.push(F);e:for(;0<ee;){var ye=ee-1>>>1,R=H[ye];if(0<o(R,F))H[ye]=F,H[ee]=R,ee=ye;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 ye=0,R=H.length,K=R>>>1;ye<K;){var W=2*(ye+1)-1,J=H[W],ae=W+1,Se=H[ae];if(0>o(J,ee))ae<R&&0>o(Se,J)?(H[ye]=Se,H[ae]=ee,ye=ae):(H[ye]=J,H[W]=ee,ye=W);else if(ae<R&&0>o(Se,ee))H[ye]=Se,H[ae]=ee,ye=ae;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 f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var g=[],m=[],y=1,v=null,b=3,w=!1,T=!1,E=!1,N=!1,D=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate!="undefined"?setImmediate:null;function G(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 _(H){if(E=!1,G(H),!T)if(i(g)!==null)T=!0,X||(X=!0,we());else{var F=i(m);F!==null&&Ve(_,F.startTime-H)}}var X=!1,$=-1,Q=5,ce=-1;function Te(){return N?!0:!(n.unstable_now()-ce<Q)}function ge(){if(N=!1,X){var H=n.unstable_now();ce=H;var F=!0;try{e:{T=!1,E&&(E=!1,z($),$=-1),w=!0;var ee=b;try{t:{for(G(H),v=i(g);v!==null&&!(v.expirationTime>H&&Te());){var ye=v.callback;if(typeof ye=="function"){v.callback=null,b=v.priorityLevel;var R=ye(v.expirationTime<=H);if(H=n.unstable_now(),typeof R=="function"){v.callback=R,G(H),F=!0;break t}v===i(g)&&r(g),G(H)}else r(g);v=i(g)}if(v!==null)F=!0;else{var K=i(m);K!==null&&Ve(_,K.startTime-H),F=!1}}break e}finally{v=null,b=ee,w=!1}F=void 0}}finally{F?we():X=!1}}}var we;if(typeof M=="function")we=function(){M(ge)};else if(typeof MessageChannel!="undefined"){var Be=new MessageChannel,Ze=Be.port2;Be.port1.onmessage=ge,we=function(){Ze.postMessage(null)}}else we=function(){D(ge,0)};function Ve(H,F){$=D(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"):Q=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(){N=!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 ye=n.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ye+ee:ye):ee=ye,H){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ee+R,H={id:y++,callback:F,priorityLevel:H,startTime:ee,expirationTime:R,sortIndex:-1},ee>ye?(H.sortIndex=ee,a(m,H),i(g)===null&&H===i(m)&&(E?(z($),$=-1):E=!0,Ve(_,ee-ye))):(H.sortIndex=R,a(g,H),T||w||(T=!0,X||(X=!0,we()))),H},n.unstable_shouldYield=Te,n.unstable_wrapCallback=function(H){var F=b;return function(){var ee=b;b=F;try{return H.apply(this,arguments)}finally{b=ee}}}}(Bc)),Bc}var Np;function u2(){return Np||(Np=1,zc.exports=o2()),zc.exports}var Uc={exports:{}},pt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Ep;function c2(){if(Ep)return pt;Ep=1;var n=Bf();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 f=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=f.T,y=r.p;try{if(f.T=null,r.p=2,g)return g()}finally{f.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,w=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:w}):y==="script"&&r.d.X(g,{crossOrigin:v,integrity:b,fetchPriority:w,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 f.H.useFormState(g,m,y)},pt.useFormStatus=function(){return f.H.useHostTransitionStatus()},pt.version="19.1.1",pt}var Ap;function f2(){if(Ap)return Uc.exports;Ap=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(),Uc.exports=c2(),Uc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Rp;function d2(){if(Rp)return Hi;Rp=1;var n=u2(),a=Bf(),i=f2();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 f(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 d=u.alternate;if(d===null){if(l=u.return,l!==null){s=l;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===s)return p(u),e;if(d===l)return p(u),t;d=d.sibling}throw Error(r(188))}if(s.return!==l.return)s=u,l=d;else{for(var x=!1,S=u.child;S;){if(S===s){x=!0,s=u,l=d;break}if(S===l){x=!0,l=u,s=d;break}S=S.sibling}if(!x){for(S=d.child;S;){if(S===s){x=!0,s=d,l=u;break}if(S===l){x=!0,l=d,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"),w=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),z=Symbol.for("react.consumer"),M=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),ge=Symbol.iterator;function we(e){return e===null||typeof e!="object"?null:(e=ge&&e[ge]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Symbol.for("react.client.reference");function Ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case N:return"Profiler";case E:return"StrictMode";case _:return"Suspense";case X:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case M:return(e.displayName||"Context")+".Provider";case z:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:Ze(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return Ze(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},ye=[],R=-1;function K(e){return{current:e}}function W(e){0>R||(e.current=ye[R],ye[R]=null,R--)}function J(e,t){R++,ye[R]=e.current,e.current=t}var ae=K(null),Se=K(null),ue=K(null),I=K(null);function fe(e,t){switch(J(ue,t),J(Se,e),J(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?G0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=G0(t),e=X0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}W(ae),J(ae,e)}function De(){W(ae),W(Se),W(ue)}function Un(e){e.memoizedState!==null&&J(I,e);var t=ae.current,s=X0(t,e.type);t!==s&&(J(Se,e),J(ae,s))}function nn(e){Se.current===e&&(W(ae),W(Se)),I.current===e&&(W(I),zi._currentValue=ee)}var mo=Object.prototype.hasOwnProperty,po=n.unstable_scheduleCallback,go=n.unstable_cancelCallback,M1=n.unstable_shouldYield,O1=n.unstable_requestPaint,an=n.unstable_now,L1=n.unstable_getCurrentPriorityLevel,Td=n.unstable_ImmediatePriority,Nd=n.unstable_UserBlockingPriority,gl=n.unstable_NormalPriority,z1=n.unstable_LowPriority,Ed=n.unstable_IdlePriority,B1=n.log,U1=n.unstable_setDisableYieldValue,Ps=null,Rt=null;function Vn(e){if(typeof B1=="function"&&U1(e),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Ps,e)}catch(t){}}var Ct=Math.clz32?Math.clz32:k1,V1=Math.log,_1=Math.LN2;function k1(e){return e>>>=0,e===0?32:31-(V1(e)/_1|0)|0}var yl=256,xl=4194304;function ha(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 vl(e,t,s){var l=e.pendingLanes;if(l===0)return 0;var u=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~d,l!==0?u=ha(l):(x&=S,x!==0?u=ha(x):s||(s=S&~e,s!==0&&(u=ha(s))))):(S=l&~d,S!==0?u=ha(S):x!==0?u=ha(x):s||(s=l&~e,s!==0&&(u=ha(s)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,s=t&-t,d>=s||d===32&&(s&4194048)!==0)?t:u}function Ys(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function H1(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 Ad(){var e=yl;return yl<<=1,(yl&4194048)===0&&(yl=256),e}function Rd(){var e=xl;return xl<<=1,(xl&62914560)===0&&(xl=4194304),e}function yo(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function Gs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function q1(e,t,s,l,u,d){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,A=e.expirationTimes,B=e.hiddenUpdates;for(s=x&~s;0<s;){var q=31-Ct(s),Y=1<<q;S[q]=0,A[q]=-1;var U=B[q];if(U!==null)for(B[q]=null,q=0;q<U.length;q++){var V=U[q];V!==null&&(V.lane&=-536870913)}s&=~Y}l!==0&&Cd(e,l,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~t))}function Cd(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|s&4194090}function Dd(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var l=31-Ct(s),u=1<<l;u&t|e[l]&t&&(e[l]|=t),s&=~u}}function xo(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 vo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Md(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:cp(e.type))}function P1(e,t){var s=F.p;try{return F.p=e,t()}finally{F.p=s}}var _n=Math.random().toString(36).slice(2),ht="__reactFiber$"+_n,bt="__reactProps$"+_n,qa="__reactContainer$"+_n,bo="__reactEvents$"+_n,Y1="__reactListeners$"+_n,G1="__reactHandles$"+_n,Od="__reactResources$"+_n,Xs="__reactMarker$"+_n;function So(e){delete e[ht],delete e[bt],delete e[bo],delete e[Y1],delete e[G1]}function Pa(e){var t=e[ht];if(t)return t;for(var s=e.parentNode;s;){if(t=s[qa]||s[ht]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=Q0(e);e!==null;){if(s=e[ht])return s;e=Q0(e)}return t}e=s,s=e.parentNode}return null}function Ya(e){if(e=e[ht]||e[qa]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ks(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ga(e){var t=e[Od];return t||(t=e[Od]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Xs]=!0}var Ld=new Set,zd={};function ma(e,t){Xa(e,t),Xa(e+"Capture",t)}function Xa(e,t){for(zd[e]=t,e=0;e<t.length;e++)Ld.add(t[e])}var X1=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]*$"),Bd={},Ud={};function K1(e){return mo.call(Ud,e)?!0:mo.call(Bd,e)?!1:X1.test(e)?Ud[e]=!0:(Bd[e]=!0,!1)}function bl(e,t,s){if(K1(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 Sl(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 gn(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 wo,Vd;function Ka(e){if(wo===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);wo=t&&t[1]||"",Vd=-1<s.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+wo+e+Vd}var jo=!1;function To(e,t){if(!e||jo)return"";jo=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(V){var U=V}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(V){U=V}e.call(Y.prototype)}}else{try{throw Error()}catch(V){U=V}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(V){if(V&&U&&typeof V.stack=="string")return[V.stack,U.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 d=l.DetermineComponentFrameRoot(),x=d[0],S=d[1];if(x&&S){var A=x.split(`
|
|
44
|
+
`),B=S.split(`
|
|
45
|
+
`);for(u=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;u<B.length&&!B[u].includes("DetermineComponentFrameRoot");)u++;if(l===A.length||u===B.length)for(l=A.length-1,u=B.length-1;1<=l&&0<=u&&A[l]!==B[u];)u--;for(;1<=l&&0<=u;l--,u--)if(A[l]!==B[u]){if(l!==1||u!==1)do if(l--,u--,0>u||A[l]!==B[u]){var q=`
|
|
46
|
+
`+A[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{jo=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?Ka(s):""}function Z1(e){switch(e.tag){case 26:case 27:case 5:return Ka(e.type);case 16:return Ka("Lazy");case 13:return Ka("Suspense");case 19:return Ka("SuspenseList");case 0:case 15:return To(e.type,!1);case 11:return To(e.type.render,!1);case 1:return To(e.type,!0);case 31:return Ka("Activity");default:return""}}function _d(e){try{var t="";do t+=Z1(e),e=e.return;while(e);return t}catch(s){return`
|
|
47
|
+
Error generating stack: `+s.message+`
|
|
48
|
+
`+s.stack}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function F1(e){var t=kd(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,d=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(x){l=""+x,d.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 wl(e){e._valueTracker||(e._valueTracker=F1(e))}function Hd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),l="";return e&&(l=kd(e)?e.checked?"true":"false":e.value),e=l,e!==s?(t.setValue(e),!0):!1}function jl(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 Q1=/[\n"\\]/g;function _t(e){return e.replace(Q1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function No(e,t,s,l,u,d,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=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Eo(e,x,Vt(t)):s!=null?Eo(e,x,Vt(s)):l!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Vt(S):e.removeAttribute("name")}function qd(e,t,s,l,u,d,x,S){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||s!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;s=s!=null?""+Vt(s):"",t=t!=null?""+Vt(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 Eo(e,t,s){t==="number"&&jl(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Za(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=""+Vt(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 Pd(e,t,s){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+Vt(s):""}function Yd(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=Vt(t),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l)}function Fa(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var $1=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 Gd(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||$1.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function Xd(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&&Gd(e,u,l)}else for(var d in t)t.hasOwnProperty(d)&&Gd(e,d,t[d])}function Ao(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 J1=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"]]),W1=/^[\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 Tl(e){return W1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ro=null;function Co(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,$a=null;function Kd(e){var t=Ya(e);if(t&&(e=t.stateNode)){var s=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(No(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="'+_t(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var l=s[t];if(l!==e&&l.form===e.form){var u=l[bt]||null;if(!u)throw Error(r(90));No(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&&Hd(l)}break e;case"textarea":Pd(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&Za(e,!!s.multiple,t,!1)}}}var Do=!1;function Zd(e,t,s){if(Do)return e(t,s);Do=!0;try{var l=e(t);return l}finally{if(Do=!1,(Qa!==null||$a!==null)&&(ur(),Qa&&(t=Qa,e=$a,$a=Qa=null,Kd(t),e)))for(t=0;t<e.length;t++)Kd(e[t])}}function Zs(e,t){var s=e.stateNode;if(s===null)return null;var l=s[bt]||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 yn=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Mo=!1;if(yn)try{var Fs={};Object.defineProperty(Fs,"passive",{get:function(){Mo=!0}}),window.addEventListener("test",Fs,Fs),window.removeEventListener("test",Fs,Fs)}catch(e){Mo=!1}var kn=null,Oo=null,Nl=null;function Fd(){if(Nl)return Nl;var e,t=Oo,s=t.length,l,u="value"in kn?kn.value:kn.textContent,d=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[d-l];l++);return Nl=u.slice(e,1<l?1-l:void 0)}function El(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 Al(){return!0}function Qd(){return!1}function St(e){function t(s,l,u,d,x){this._reactName=s,this._targetInst=u,this.type=l,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(s=e[S],this[S]=s?s(d):d[S]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Al:Qd,this.isPropagationStopped=Qd,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=Al)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Al)},persist:function(){},isPersistent:Al}),t}var pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rl=St(pa),Qs=y({},pa,{view:0,detail:0}),I1=St(Qs),Lo,zo,$s,Cl=y({},Qs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Uo,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!==$s&&($s&&e.type==="mousemove"?(Lo=e.screenX-$s.screenX,zo=e.screenY-$s.screenY):zo=Lo=0,$s=e),Lo)},movementY:function(e){return"movementY"in e?e.movementY:zo}}),$d=St(Cl),ev=y({},Cl,{dataTransfer:0}),tv=St(ev),nv=y({},Qs,{relatedTarget:0}),Bo=St(nv),av=y({},pa,{animationName:0,elapsedTime:0,pseudoElement:0}),sv=St(av),iv=y({},pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lv=St(iv),rv=y({},pa,{data:0}),Jd=St(rv),ov={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uv={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"},cv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cv[e])?!!t[e]:!1}function Uo(){return fv}var dv=y({},Qs,{key:function(e){if(e.key){var t=ov[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=El(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Uo,charCode:function(e){return e.type==="keypress"?El(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?El(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hv=St(dv),mv=y({},Cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wd=St(mv),pv=y({},Qs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Uo}),gv=St(pv),yv=y({},pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),xv=St(yv),vv=y({},Cl,{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}),bv=St(vv),Sv=y({},pa,{newState:0,oldState:0}),wv=St(Sv),jv=[9,13,27,32],Vo=yn&&"CompositionEvent"in window,Js=null;yn&&"documentMode"in document&&(Js=document.documentMode);var Tv=yn&&"TextEvent"in window&&!Js,Id=yn&&(!Vo||Js&&8<Js&&11>=Js),eh=" ",th=!1;function nh(e,t){switch(e){case"keyup":return jv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ah(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ja=!1;function Nv(e,t){switch(e){case"compositionend":return ah(t);case"keypress":return t.which!==32?null:(th=!0,eh);case"textInput":return e=t.data,e===eh&&th?null:e;default:return null}}function Ev(e,t){if(Ja)return e==="compositionend"||!Vo&&nh(e,t)?(e=Fd(),Nl=Oo=kn=null,Ja=!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 Id&&t.locale!=="ko"?null:t.data;default:return null}}var Av={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 sh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Av[e.type]:t==="textarea"}function ih(e,t,s,l){Qa?$a?$a.push(l):$a=[l]:Qa=l,t=pr(t,"onChange"),0<t.length&&(s=new Rl("onChange","change",null,s,l),e.push({event:s,listeners:t}))}var Ws=null,Is=null;function Rv(e){k0(e,0)}function Dl(e){var t=Ks(e);if(Hd(t))return e}function lh(e,t){if(e==="change")return t}var rh=!1;if(yn){var _o;if(yn){var ko="oninput"in document;if(!ko){var oh=document.createElement("div");oh.setAttribute("oninput","return;"),ko=typeof oh.oninput=="function"}_o=ko}else _o=!1;rh=_o&&(!document.documentMode||9<document.documentMode)}function uh(){Ws&&(Ws.detachEvent("onpropertychange",ch),Is=Ws=null)}function ch(e){if(e.propertyName==="value"&&Dl(Is)){var t=[];ih(t,Is,e,Co(e)),Zd(Rv,t)}}function Cv(e,t,s){e==="focusin"?(uh(),Ws=t,Is=s,Ws.attachEvent("onpropertychange",ch)):e==="focusout"&&uh()}function Dv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Dl(Is)}function Mv(e,t){if(e==="click")return Dl(t)}function Ov(e,t){if(e==="input"||e==="change")return Dl(t)}function Lv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dt=typeof Object.is=="function"?Object.is:Lv;function ei(e,t){if(Dt(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(!mo.call(t,u)||!Dt(e[u],t[u]))return!1}return!0}function fh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dh(e,t){var s=fh(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=fh(s)}}function hh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=jl(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=jl(e.document)}return t}function Ho(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 zv=yn&&"documentMode"in document&&11>=document.documentMode,Wa=null,qo=null,ti=null,Po=!1;function ph(e,t,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Po||Wa==null||Wa!==jl(l)||(l=Wa,"selectionStart"in l&&Ho(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}),ti&&ei(ti,l)||(ti=l,l=pr(qo,"onSelect"),0<l.length&&(t=new Rl("onSelect","select",null,t,s),e.push({event:t,listeners:l}),t.target=Wa)))}function ga(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var Ia={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionrun:ga("Transition","TransitionRun"),transitionstart:ga("Transition","TransitionStart"),transitioncancel:ga("Transition","TransitionCancel"),transitionend:ga("Transition","TransitionEnd")},Yo={},gh={};yn&&(gh=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function ya(e){if(Yo[e])return Yo[e];if(!Ia[e])return e;var t=Ia[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in gh)return Yo[e]=t[s];return e}var yh=ya("animationend"),xh=ya("animationiteration"),vh=ya("animationstart"),Bv=ya("transitionrun"),Uv=ya("transitionstart"),Vv=ya("transitioncancel"),bh=ya("transitionend"),Sh=new Map,Go="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(" ");Go.push("scrollEnd");function $t(e,t){Sh.set(e,t),ma(t,[e])}var wh=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var s=wh.get(e);return s!==void 0?s:(t={value:e,source:t,stack:_d(t)},wh.set(e,t),t)}return{value:e,source:t,stack:_d(t)}}var Ht=[],es=0,Xo=0;function Ml(){for(var e=es,t=Xo=es=0;t<e;){var s=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var u=Ht[t];Ht[t++]=null;var d=Ht[t];if(Ht[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}d!==0&&jh(s,u,d)}}function Ol(e,t,s,l){Ht[es++]=e,Ht[es++]=t,Ht[es++]=s,Ht[es++]=l,Xo|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ko(e,t,s,l){return Ol(e,t,s,l),Ll(e)}function ts(e,t){return Ol(e,null,null,t),Ll(e)}function jh(e,t,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var u=!1,d=e.return;d!==null;)d.childLanes|=s,l=d.alternate,l!==null&&(l.childLanes|=s),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-Ct(s),e=d.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=s|536870912),d):null}function Ll(e){if(50<Ei)throw Ei=0,Wu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ns={};function _v(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 Mt(e,t,s,l){return new _v(e,t,s,l)}function Zo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xn(e,t){var s=e.alternate;return s===null?(s=Mt(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 Th(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 zl(e,t,s,l,u,d){var x=0;if(l=e,typeof e=="function")Zo(e)&&(x=1);else if(typeof e=="string")x=Hb(e,s,ae.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Mt(31,s,t,u),e.elementType=ce,e.lanes=d,e;case T:return xa(s.children,u,d,t);case E:x=8,u|=24;break;case N:return e=Mt(12,s,t,u|2),e.elementType=N,e.lanes=d,e;case _:return e=Mt(13,s,t,u),e.elementType=_,e.lanes=d,e;case X:return e=Mt(19,s,t,u),e.elementType=X,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:case M:x=10;break e;case z:x=9;break e;case G:x=11;break e;case $:x=14;break e;case Q:x=16,l=null;break e}x=29,s=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Mt(x,s,t,u),t.elementType=e,t.type=l,t.lanes=d,t}function xa(e,t,s,l){return e=Mt(7,e,l,t),e.lanes=s,e}function Fo(e,t,s){return e=Mt(6,e,null,t),e.lanes=s,e}function Qo(e,t,s){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var as=[],ss=0,Bl=null,Ul=0,qt=[],Pt=0,va=null,vn=1,bn="";function ba(e,t){as[ss++]=Ul,as[ss++]=Bl,Bl=e,Ul=t}function Nh(e,t,s){qt[Pt++]=vn,qt[Pt++]=bn,qt[Pt++]=va,va=e;var l=vn;e=bn;var u=32-Ct(l)-1;l&=~(1<<u),s+=1;var d=32-Ct(t)+u;if(30<d){var x=u-u%5;d=(l&(1<<x)-1).toString(32),l>>=x,u-=x,vn=1<<32-Ct(t)+u|s<<u|l,bn=d+e}else vn=1<<d|s<<u|l,bn=e}function $o(e){e.return!==null&&(ba(e,1),Nh(e,1,0))}function Jo(e){for(;e===Bl;)Bl=as[--ss],as[ss]=null,Ul=as[--ss],as[ss]=null;for(;e===va;)va=qt[--Pt],qt[Pt]=null,bn=qt[--Pt],qt[Pt]=null,vn=qt[--Pt],qt[Pt]=null}var xt=null,Ge=null,Ee=!1,Sa=null,sn=!1,Wo=Error(r(519));function wa(e){var t=Error(r(418,""));throw si(kt(t,e)),Wo}function Eh(e){var t=e.stateNode,s=e.type,l=e.memoizedProps;switch(t[ht]=e,t[bt]=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<Ri.length;s++)be(Ri[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),qd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),wl(t);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Yd(t,l.value,l.defaultValue,l.children),wl(t)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||l.suppressHydrationWarning===!0||Y0(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=gr),t=!0):t=!1,t||wa(e)}function Ah(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:xt=xt.return}}function ni(e){if(e!==xt)return!1;if(!Ee)return Ah(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")||mc(e.type,e.memoizedProps)),s=!s),s&&Ge&&wa(e),Ah(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){Ge=Wt(e.nextSibling);break e}t--}else s!=="$"&&s!=="$!"&&s!=="$?"||t++;e=e.nextSibling}Ge=null}}else t===27?(t=Ge,ta(e.type)?(e=xc,xc=null,Ge=e):Ge=t):Ge=xt?Wt(e.stateNode.nextSibling):null;return!0}function ai(){Ge=xt=null,Ee=!1}function Rh(){var e=Sa;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Sa=null),e}function si(e){Sa===null?Sa=[e]:Sa.push(e)}var Io=K(null),ja=null,Sn=null;function Hn(e,t,s){J(Io,t._currentValue),t._currentValue=s}function wn(e){e._currentValue=Io.current,W(Io)}function eu(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 tu(e,t,s,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var x=u.child;d=d.firstContext;e:for(;d!==null;){var S=d;d=u;for(var A=0;A<t.length;A++)if(S.context===t[A]){d.lanes|=s,S=d.alternate,S!==null&&(S.lanes|=s),eu(d.return,s,e),l||(x=null);break e}d=S.next}}else if(u.tag===18){if(x=u.return,x===null)throw Error(r(341));x.lanes|=s,d=x.alternate,d!==null&&(d.lanes|=s),eu(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 ii(e,t,s,l){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!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;Dt(u.pendingProps.value,x.value)||(e!==null?e.push(S):e=[S])}}else if(u===I.current){if(x=u.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(zi):e=[zi])}u=u.return}e!==null&&tu(t,e,s,l),t.flags|=262144}function Vl(e){for(e=e.firstContext;e!==null;){if(!Dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){ja=e,Sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Ch(ja,e)}function _l(e,t){return ja===null&&Ta(e),Ch(e,t)}function Ch(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},Sn===null){if(e===null)throw Error(r(308));Sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sn=Sn.next=t;return s}var kv=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()})}},Hv=n.unstable_scheduleCallback,qv=n.unstable_NormalPriority,tt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nu(){return{controller:new kv,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&Hv(qv,function(){e.controller.abort()})}var ri=null,au=0,is=0,ls=null;function Pv(e,t){if(ri===null){var s=ri=[];au=0,is=ic(),ls={status:"pending",value:void 0,then:function(l){s.push(l)}}}return au++,t.then(Dh,Dh),t}function Dh(){if(--au===0&&ri!==null){ls!==null&&(ls.status="fulfilled");var e=ri;ri=null,is=0,ls=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Yv(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 Mh=H.S;H.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Pv(e,t),Mh!==null&&Mh(e,t)};var Na=K(null);function su(){var e=Na.current;return e!==null?e:Ue.pooledCache}function kl(e,t){t===null?J(Na,Na.current):J(Na,t.pool)}function Oh(){var e=su();return e===null?null:{parent:tt._currentValue,pool:e}}var oi=Error(r(460)),Lh=Error(r(474)),Hl=Error(r(542)),iu={then:function(){}};function zh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ql(){}function Bh(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,Vh(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,Vh(e),e}throw ui=t,oi}}var ui=null;function Uh(){if(ui===null)throw Error(r(459));var e=ui;return ui=null,e}function Vh(e){if(e===oi||e===Hl)throw Error(r(483))}var qn=!1;function lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ru(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 Pn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yn(e,t,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Re&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Ll(e),jh(e,null,s),t}return Ol(e,l,t,s),Ll(e)}function ci(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,Dd(e,s)}}function ou(e,t){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var u=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};d===null?u=d=x:d=d.next=x,s=s.next}while(s!==null);d===null?u=d=t:d=d.next=t}else u=d=t;s={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:d,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 uu=!1;function fi(){if(uu){var e=ls;if(e!==null)throw e}}function di(e,t,s,l){uu=!1;var u=e.updateQueue;qn=!1;var d=u.firstBaseUpdate,x=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var A=S,B=A.next;A.next=null,x===null?d=B:x.next=B,x=A;var q=e.alternate;q!==null&&(q=q.updateQueue,S=q.lastBaseUpdate,S!==x&&(S===null?q.firstBaseUpdate=B:S.next=B,q.lastBaseUpdate=A))}if(d!==null){var Y=u.baseState;x=0,q=B=A=null,S=d;do{var U=S.lane&-536870913,V=U!==S.lane;if(V?(je&U)===U:(l&U)===U){U!==0&&U===is&&(uu=!0),q!==null&&(q=q.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var re=e,se=S;U=t;var Le=s;switch(se.tag){case 1:if(re=se.payload,typeof re=="function"){Y=re.call(Le,Y,U);break e}Y=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=se.payload,U=typeof re=="function"?re.call(Le,Y,U):re,U==null)break e;Y=y({},Y,U);break e;case 2:qn=!0}}U=S.callback,U!==null&&(e.flags|=64,V&&(e.flags|=8192),V=u.callbacks,V===null?u.callbacks=[U]:V.push(U))}else V={lane:U,tag:S.tag,payload:S.payload,callback:S.callback,next:null},q===null?(B=q=V,A=Y):q=q.next=V,x|=U;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;V=S,S=V.next,V.next=null,u.lastBaseUpdate=V,u.shared.pending=null}}while(!0);q===null&&(A=Y),u.baseState=A,u.firstBaseUpdate=B,u.lastBaseUpdate=q,d===null&&(u.shared.lanes=0),Jn|=x,e.lanes=x,e.memoizedState=Y}}function _h(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function kh(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)_h(s[e],t)}var rs=K(null),Pl=K(0);function Hh(e,t){e=Cn,J(Pl,e),J(rs,t),Cn=e|t.baseLanes}function cu(){J(Pl,Cn),J(rs,rs.current)}function fu(){Cn=Pl.current,W(rs),W(Pl)}var Gn=0,pe=null,Me=null,We=null,Yl=!1,os=!1,Ea=!1,Gl=0,hi=0,us=null,Gv=0;function Fe(){throw Error(r(321))}function du(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!Dt(e[s],t[s]))return!1;return!0}function hu(e,t,s,l,u,d){return Gn=d,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?jm:Tm,Ea=!1,d=s(l,u),Ea=!1,os&&(d=Ph(t,s,l,u)),qh(e),d}function qh(e){H.H=$l;var t=Me!==null&&Me.next!==null;if(Gn=0,We=Me=pe=null,Yl=!1,hi=0,us=null,t)throw Error(r(300));e===null||st||(e=e.dependencies,e!==null&&Vl(e)&&(st=!0))}function Ph(e,t,s,l){pe=e;var u=0;do{if(os&&(us=null),hi=0,os=!1,25<=u)throw Error(r(301));if(u+=1,We=Me=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}H.H=Jv,d=t(s,l)}while(os);return d}function Xv(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?mi(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(pe.flags|=1024),t}function mu(){var e=Gl!==0;return Gl=0,e}function pu(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function gu(e){if(Yl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yl=!1}Gn=0,We=Me=pe=null,os=!1,hi=Gl=0,us=null}function wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?pe.memoizedState=We=e:We=We.next=e,We}function Ie(){if(Me===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=We===null?pe.memoizedState:We.next;if(t!==null)We=t,Me=e;else{if(e===null)throw pe.alternate===null?Error(r(467)):Error(r(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},We===null?pe.memoizedState=We=e:We=We.next=e}return We}function yu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mi(e){var t=hi;return hi+=1,us===null&&(us=[]),e=Bh(us,e,t),t=pe,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?jm:Tm),e}function Xl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mi(e);if(e.$$typeof===M)return mt(e)}throw Error(r(438,String(e)))}function xu(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=yu(),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]=Te;return t.index++,s}function jn(e,t){return typeof t=="function"?t(e):t}function Kl(e){var t=Ie();return vu(t,Me,e)}function vu(e,t,s){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var u=e.baseQueue,d=l.pending;if(d!==null){if(u!==null){var x=u.next;u.next=d.next,d.next=x}t.baseQueue=u=d,l.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var S=x=null,A=null,B=t,q=!1;do{var Y=B.lane&-536870913;if(Y!==B.lane?(je&Y)===Y:(Gn&Y)===Y){var U=B.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),Y===is&&(q=!0);else if((Gn&U)===U){B=B.next,U===is&&(q=!0);continue}else Y={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(S=A=Y,x=d):A=A.next=Y,pe.lanes|=U,Jn|=U;Y=B.action,Ea&&s(d,Y),d=B.hasEagerState?B.eagerState:s(d,Y)}else U={lane:Y,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(S=A=U,x=d):A=A.next=U,pe.lanes|=Y,Jn|=Y;B=B.next}while(B!==null&&B!==t);if(A===null?x=d:A.next=S,!Dt(d,e.memoizedState)&&(st=!0,q&&(s=ls,s!==null)))throw s;e.memoizedState=d,e.baseState=x,e.baseQueue=A,l.lastRenderedState=d}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function bu(e){var t=Ie(),s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=e;var l=s.dispatch,u=s.pending,d=t.memoizedState;if(u!==null){s.pending=null;var x=u=u.next;do d=e(d,x.action),x=x.next;while(x!==u);Dt(d,t.memoizedState)||(st=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),s.lastRenderedState=d}return[d,l]}function Yh(e,t,s){var l=pe,u=Ie(),d=Ee;if(d){if(s===void 0)throw Error(r(407));s=s()}else s=t();var x=!Dt((Me||u).memoizedState,s);x&&(u.memoizedState=s,st=!0),u=u.queue;var S=Kh.bind(null,l,u,e);if(pi(2048,8,S,[e]),u.getSnapshot!==t||x||We!==null&&We.memoizedState.tag&1){if(l.flags|=2048,cs(9,Zl(),Xh.bind(null,l,u,s,t),null),Ue===null)throw Error(r(349));d||(Gn&124)!==0||Gh(l,t,s)}return s}function Gh(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=pe.updateQueue,t===null?(t=yu(),pe.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function Xh(e,t,s,l){t.value=s,t.getSnapshot=l,Zh(t)&&Fh(e)}function Kh(e,t,s){return s(function(){Zh(t)&&Fh(e)})}function Zh(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!Dt(e,s)}catch(l){return!0}}function Fh(e){var t=ts(e,2);t!==null&&Ut(t,e,2)}function Su(e){var t=wt();if(typeof e=="function"){var s=e;if(e=s(),Ea){Vn(!0);try{s()}finally{Vn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:e},t}function Qh(e,t,s,l){return e.baseState=s,vu(e,Me,typeof l=="function"?l:jn)}function Kv(e,t,s,l,u){if(Ql(e))throw Error(r(485));if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};H.T!==null?s(!0):d.isTransition=!1,l(d),s=t.pending,s===null?(d.next=t.pending=d,$h(t,d)):(d.next=s.next,t.pending=s.next=d)}}function $h(e,t){var s=t.action,l=t.payload,u=e.state;if(t.isTransition){var d=H.T,x={};H.T=x;try{var S=s(u,l),A=H.S;A!==null&&A(x,S),Jh(e,t,S)}catch(B){wu(e,t,B)}finally{H.T=d}}else try{d=s(u,l),Jh(e,t,d)}catch(B){wu(e,t,B)}}function Jh(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){Wh(e,t,l)},function(l){return wu(e,t,l)}):Wh(e,t,s)}function Wh(e,t,s){t.status="fulfilled",t.value=s,Ih(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,$h(e,s)))}function wu(e,t,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=s,Ih(t),t=t.next;while(t!==l)}e.action=null}function Ih(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function em(e,t){return t}function tm(e,t){if(Ee){var s=Ue.formState;if(s!==null){e:{var l=pe;if(Ee){if(Ge){t:{for(var u=Ge,d=sn;u.nodeType!==8;){if(!d){u=null;break t}if(u=Wt(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){Ge=Wt(u.nextSibling),l=u.data==="F!";break e}}wa(l)}l=!1}l&&(t=s[0])}}return s=wt(),s.memoizedState=s.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:em,lastRenderedState:t},s.queue=l,s=bm.bind(null,pe,l),l.dispatch=s,l=Su(!1),d=Au.bind(null,pe,!1,l.queue),l=wt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,s=Kv.bind(null,pe,u,d,s),u.dispatch=s,l.memoizedState=e,[t,s,!1]}function nm(e){var t=Ie();return am(t,Me,e)}function am(e,t,s){if(t=vu(e,t,em)[0],e=Kl(jn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=mi(t)}catch(x){throw x===oi?Hl:x}else l=t;t=Ie();var u=t.queue,d=u.dispatch;return s!==t.memoizedState&&(pe.flags|=2048,cs(9,Zl(),Zv.bind(null,u,s),null)),[l,d,e]}function Zv(e,t){e.action=t}function sm(e){var t=Ie(),s=Me;if(s!==null)return am(t,s,e);Ie(),t=t.memoizedState,s=Ie();var l=s.queue.dispatch;return s.memoizedState=e,[t,l,!1]}function cs(e,t,s,l){return e={tag:e,create:s,deps:l,inst:t,next:null},t=pe.updateQueue,t===null&&(t=yu(),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 Zl(){return{destroy:void 0,resource:void 0}}function im(){return Ie().memoizedState}function Fl(e,t,s,l){var u=wt();l=l===void 0?null:l,pe.flags|=e,u.memoizedState=cs(1|t,Zl(),s,l)}function pi(e,t,s,l){var u=Ie();l=l===void 0?null:l;var d=u.memoizedState.inst;Me!==null&&l!==null&&du(l,Me.memoizedState.deps)?u.memoizedState=cs(t,d,s,l):(pe.flags|=e,u.memoizedState=cs(1|t,d,s,l))}function lm(e,t){Fl(8390656,8,e,t)}function rm(e,t){pi(2048,8,e,t)}function om(e,t){return pi(4,2,e,t)}function um(e,t){return pi(4,4,e,t)}function cm(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 fm(e,t,s){s=s!=null?s.concat([e]):null,pi(4,4,cm.bind(null,t,e),s)}function ju(){}function dm(e,t){var s=Ie();t=t===void 0?null:t;var l=s.memoizedState;return t!==null&&du(t,l[1])?l[0]:(s.memoizedState=[e,t],e)}function hm(e,t){var s=Ie();t=t===void 0?null:t;var l=s.memoizedState;if(t!==null&&du(t,l[1]))return l[0];if(l=e(),Ea){Vn(!0);try{e()}finally{Vn(!1)}}return s.memoizedState=[l,t],l}function Tu(e,t,s){return s===void 0||(Gn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=s,e=g0(),pe.lanes|=e,Jn|=e,s)}function mm(e,t,s,l){return Dt(s,t)?s:rs.current!==null?(e=Tu(e,s,l),Dt(e,t)||(st=!0),e):(Gn&42)===0?(st=!0,e.memoizedState=s):(e=g0(),pe.lanes|=e,Jn|=e,t)}function pm(e,t,s,l,u){var d=F.p;F.p=d!==0&&8>d?d:8;var x=H.T,S={};H.T=S,Au(e,!1,t,s);try{var A=u(),B=H.S;if(B!==null&&B(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var q=Yv(A,l);gi(e,t,q,Bt(e))}else gi(e,t,l,Bt(e))}catch(Y){gi(e,t,{then:function(){},status:"rejected",reason:Y},Bt())}finally{F.p=d,H.T=x}}function Fv(){}function Nu(e,t,s,l){if(e.tag!==5)throw Error(r(476));var u=gm(e).queue;pm(e,u,t,ee,s===null?Fv:function(){return ym(e),s(l)})}function gm(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:jn,lastRenderedState:ee},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ym(e){var t=gm(e).next.queue;gi(e,t,{},Bt())}function Eu(){return mt(zi)}function xm(){return Ie().memoizedState}function vm(){return Ie().memoizedState}function Qv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=Bt();e=Pn(s);var l=Yn(t,e,s);l!==null&&(Ut(l,t,s),ci(l,t,s)),t={cache:nu()},e.payload=t;return}t=t.return}}function $v(e,t,s){var l=Bt();s={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},Ql(e)?Sm(t,s):(s=Ko(e,t,s,l),s!==null&&(Ut(s,e,l),wm(s,t,l)))}function bm(e,t,s){var l=Bt();gi(e,t,s,l)}function gi(e,t,s,l){var u={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(Ql(e))Sm(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var x=t.lastRenderedState,S=d(x,s);if(u.hasEagerState=!0,u.eagerState=S,Dt(S,x))return Ol(e,t,u,0),Ue===null&&Ml(),!1}catch(A){}finally{}if(s=Ko(e,t,u,l),s!==null)return Ut(s,e,l),wm(s,t,l),!0}return!1}function Au(e,t,s,l){if(l={lane:2,revertLane:ic(),action:l,hasEagerState:!1,eagerState:null,next:null},Ql(e)){if(t)throw Error(r(479))}else t=Ko(e,s,l,2),t!==null&&Ut(t,e,2)}function Ql(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Sm(e,t){os=Yl=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function wm(e,t,s){if((s&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,s|=l,t.lanes=s,Dd(e,s)}}var $l={readContext:mt,use:Xl,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe},jm={readContext:mt,use:Xl,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:lm,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,Fl(4194308,4,cm.bind(null,t,e),s)},useLayoutEffect:function(e,t){return Fl(4194308,4,e,t)},useInsertionEffect:function(e,t){Fl(4,2,e,t)},useMemo:function(e,t){var s=wt();t=t===void 0?null:t;var l=e();if(Ea){Vn(!0);try{e()}finally{Vn(!1)}}return s.memoizedState=[l,t],l},useReducer:function(e,t,s){var l=wt();if(s!==void 0){var u=s(t);if(Ea){Vn(!0);try{s(t)}finally{Vn(!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=$v.bind(null,pe,e),[l.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:function(e){e=Su(e);var t=e.queue,s=bm.bind(null,pe,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:ju,useDeferredValue:function(e,t){var s=wt();return Tu(s,e,t)},useTransition:function(){var e=Su(!1);return e=pm.bind(null,pe,e.queue,!0,!1),wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var l=pe,u=wt();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||Gh(l,t,s)}u.memoizedState=s;var d={value:s,getSnapshot:t};return u.queue=d,lm(Kh.bind(null,l,d,e),[e]),l.flags|=2048,cs(9,Zl(),Xh.bind(null,l,d,s,t),null),s},useId:function(){var e=wt(),t=Ue.identifierPrefix;if(Ee){var s=bn,l=vn;s=(l&~(1<<32-Ct(l)-1)).toString(32)+s,t="«"+t+"R"+s,s=Gl++,0<s&&(t+="H"+s.toString(32)),t+="»"}else s=Gv++,t="«"+t+"r"+s.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Eu,useFormState:tm,useActionState:tm,useOptimistic:function(e){var t=wt();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=Au.bind(null,pe,!0,s),s.dispatch=t,[e,t]},useMemoCache:xu,useCacheRefresh:function(){return wt().memoizedState=Qv.bind(null,pe)}},Tm={readContext:mt,use:Xl,useCallback:dm,useContext:mt,useEffect:rm,useImperativeHandle:fm,useInsertionEffect:om,useLayoutEffect:um,useMemo:hm,useReducer:Kl,useRef:im,useState:function(){return Kl(jn)},useDebugValue:ju,useDeferredValue:function(e,t){var s=Ie();return mm(s,Me.memoizedState,e,t)},useTransition:function(){var e=Kl(jn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:mi(e),t]},useSyncExternalStore:Yh,useId:xm,useHostTransitionStatus:Eu,useFormState:nm,useActionState:nm,useOptimistic:function(e,t){var s=Ie();return Qh(s,Me,e,t)},useMemoCache:xu,useCacheRefresh:vm},Jv={readContext:mt,use:Xl,useCallback:dm,useContext:mt,useEffect:rm,useImperativeHandle:fm,useInsertionEffect:om,useLayoutEffect:um,useMemo:hm,useReducer:bu,useRef:im,useState:function(){return bu(jn)},useDebugValue:ju,useDeferredValue:function(e,t){var s=Ie();return Me===null?Tu(s,e,t):mm(s,Me.memoizedState,e,t)},useTransition:function(){var e=bu(jn)[0],t=Ie().memoizedState;return[typeof e=="boolean"?e:mi(e),t]},useSyncExternalStore:Yh,useId:xm,useHostTransitionStatus:Eu,useFormState:sm,useActionState:sm,useOptimistic:function(e,t){var s=Ie();return Me!==null?Qh(s,Me,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:xu,useCacheRefresh:vm},fs=null,yi=0;function Jl(e){var t=yi;return yi+=1,fs===null&&(fs=[]),Bh(fs,e,t)}function xi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wl(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 Nm(e){var t=e._init;return t(e._payload)}function Em(e){function t(O,C){if(e){var L=O.deletions;L===null?(O.deletions=[C],O.flags|=16):L.push(C)}}function s(O,C){if(!e)return null;for(;C!==null;)t(O,C),C=C.sibling;return null}function l(O){for(var C=new Map;O!==null;)O.key!==null?C.set(O.key,O):C.set(O.index,O),O=O.sibling;return C}function u(O,C){return O=xn(O,C),O.index=0,O.sibling=null,O}function d(O,C,L){return O.index=L,e?(L=O.alternate,L!==null?(L=L.index,L<C?(O.flags|=67108866,C):L):(O.flags|=67108866,C)):(O.flags|=1048576,C)}function x(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function S(O,C,L,P){return C===null||C.tag!==6?(C=Fo(L,O.mode,P),C.return=O,C):(C=u(C,L),C.return=O,C)}function A(O,C,L,P){var te=L.type;return te===T?q(O,C,L.props.children,P,L.key):C!==null&&(C.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===Q&&Nm(te)===C.type)?(C=u(C,L.props),xi(C,L),C.return=O,C):(C=zl(L.type,L.key,L.props,null,O.mode,P),xi(C,L),C.return=O,C)}function B(O,C,L,P){return C===null||C.tag!==4||C.stateNode.containerInfo!==L.containerInfo||C.stateNode.implementation!==L.implementation?(C=Qo(L,O.mode,P),C.return=O,C):(C=u(C,L.children||[]),C.return=O,C)}function q(O,C,L,P,te){return C===null||C.tag!==7?(C=xa(L,O.mode,P,te),C.return=O,C):(C=u(C,L),C.return=O,C)}function Y(O,C,L){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Fo(""+C,O.mode,L),C.return=O,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case b:return L=zl(C.type,C.key,C.props,null,O.mode,L),xi(L,C),L.return=O,L;case w:return C=Qo(C,O.mode,L),C.return=O,C;case Q:var P=C._init;return C=P(C._payload),Y(O,C,L)}if(Ve(C)||we(C))return C=xa(C,O.mode,L,null),C.return=O,C;if(typeof C.then=="function")return Y(O,Jl(C),L);if(C.$$typeof===M)return Y(O,_l(O,C),L);Wl(O,C)}return null}function U(O,C,L,P){var te=C!==null?C.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return te!==null?null:S(O,C,""+L,P);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case b:return L.key===te?A(O,C,L,P):null;case w:return L.key===te?B(O,C,L,P):null;case Q:return te=L._init,L=te(L._payload),U(O,C,L,P)}if(Ve(L)||we(L))return te!==null?null:q(O,C,L,P,null);if(typeof L.then=="function")return U(O,C,Jl(L),P);if(L.$$typeof===M)return U(O,C,_l(O,L),P);Wl(O,L)}return null}function V(O,C,L,P,te){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return O=O.get(L)||null,S(C,O,""+P,te);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case b:return O=O.get(P.key===null?L:P.key)||null,A(C,O,P,te);case w:return O=O.get(P.key===null?L:P.key)||null,B(C,O,P,te);case Q:var xe=P._init;return P=xe(P._payload),V(O,C,L,P,te)}if(Ve(P)||we(P))return O=O.get(L)||null,q(C,O,P,te,null);if(typeof P.then=="function")return V(O,C,L,Jl(P),te);if(P.$$typeof===M)return V(O,C,L,_l(C,P),te);Wl(C,P)}return null}function re(O,C,L,P){for(var te=null,xe=null,ne=C,ie=C=0,lt=null;ne!==null&&ie<L.length;ie++){ne.index>ie?(lt=ne,ne=null):lt=ne.sibling;var Ne=U(O,ne,L[ie],P);if(Ne===null){ne===null&&(ne=lt);break}e&&ne&&Ne.alternate===null&&t(O,ne),C=d(Ne,C,ie),xe===null?te=Ne:xe.sibling=Ne,xe=Ne,ne=lt}if(ie===L.length)return s(O,ne),Ee&&ba(O,ie),te;if(ne===null){for(;ie<L.length;ie++)ne=Y(O,L[ie],P),ne!==null&&(C=d(ne,C,ie),xe===null?te=ne:xe.sibling=ne,xe=ne);return Ee&&ba(O,ie),te}for(ne=l(ne);ie<L.length;ie++)lt=V(ne,O,ie,L[ie],P),lt!==null&&(e&<.alternate!==null&&ne.delete(lt.key===null?ie:lt.key),C=d(lt,C,ie),xe===null?te=lt:xe.sibling=lt,xe=lt);return e&&ne.forEach(function(la){return t(O,la)}),Ee&&ba(O,ie),te}function se(O,C,L,P){if(L==null)throw Error(r(151));for(var te=null,xe=null,ne=C,ie=C=0,lt=null,Ne=L.next();ne!==null&&!Ne.done;ie++,Ne=L.next()){ne.index>ie?(lt=ne,ne=null):lt=ne.sibling;var la=U(O,ne,Ne.value,P);if(la===null){ne===null&&(ne=lt);break}e&&ne&&la.alternate===null&&t(O,ne),C=d(la,C,ie),xe===null?te=la:xe.sibling=la,xe=la,ne=lt}if(Ne.done)return s(O,ne),Ee&&ba(O,ie),te;if(ne===null){for(;!Ne.done;ie++,Ne=L.next())Ne=Y(O,Ne.value,P),Ne!==null&&(C=d(Ne,C,ie),xe===null?te=Ne:xe.sibling=Ne,xe=Ne);return Ee&&ba(O,ie),te}for(ne=l(ne);!Ne.done;ie++,Ne=L.next())Ne=V(ne,O,ie,Ne.value,P),Ne!==null&&(e&&Ne.alternate!==null&&ne.delete(Ne.key===null?ie:Ne.key),C=d(Ne,C,ie),xe===null?te=Ne:xe.sibling=Ne,xe=Ne);return e&&ne.forEach(function(Wb){return t(O,Wb)}),Ee&&ba(O,ie),te}function Le(O,C,L,P){if(typeof L=="object"&&L!==null&&L.type===T&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case b:e:{for(var te=L.key;C!==null;){if(C.key===te){if(te=L.type,te===T){if(C.tag===7){s(O,C.sibling),P=u(C,L.props.children),P.return=O,O=P;break e}}else if(C.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===Q&&Nm(te)===C.type){s(O,C.sibling),P=u(C,L.props),xi(P,L),P.return=O,O=P;break e}s(O,C);break}else t(O,C);C=C.sibling}L.type===T?(P=xa(L.props.children,O.mode,P,L.key),P.return=O,O=P):(P=zl(L.type,L.key,L.props,null,O.mode,P),xi(P,L),P.return=O,O=P)}return x(O);case w:e:{for(te=L.key;C!==null;){if(C.key===te)if(C.tag===4&&C.stateNode.containerInfo===L.containerInfo&&C.stateNode.implementation===L.implementation){s(O,C.sibling),P=u(C,L.children||[]),P.return=O,O=P;break e}else{s(O,C);break}else t(O,C);C=C.sibling}P=Qo(L,O.mode,P),P.return=O,O=P}return x(O);case Q:return te=L._init,L=te(L._payload),Le(O,C,L,P)}if(Ve(L))return re(O,C,L,P);if(we(L)){if(te=we(L),typeof te!="function")throw Error(r(150));return L=te.call(L),se(O,C,L,P)}if(typeof L.then=="function")return Le(O,C,Jl(L),P);if(L.$$typeof===M)return Le(O,C,_l(O,L),P);Wl(O,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,C!==null&&C.tag===6?(s(O,C.sibling),P=u(C,L),P.return=O,O=P):(s(O,C),P=Fo(L,O.mode,P),P.return=O,O=P),x(O)):s(O,C)}return function(O,C,L,P){try{yi=0;var te=Le(O,C,L,P);return fs=null,te}catch(ne){if(ne===oi||ne===Hl)throw ne;var xe=Mt(29,ne,null,O.mode);return xe.lanes=P,xe.return=O,xe}finally{}}}var ds=Em(!0),Am=Em(!1),Yt=K(null),ln=null;function Xn(e){var t=e.alternate;J(nt,nt.current&1),J(Yt,e),ln===null&&(t===null||rs.current!==null||t.memoizedState!==null)&&(ln=e)}function Rm(e){if(e.tag===22){if(J(nt,nt.current),J(Yt,e),ln===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(ln=e)}}else Kn()}function Kn(){J(nt,nt.current),J(Yt,Yt.current)}function Tn(e){W(Yt),ln===e&&(ln=null),W(nt)}var nt=K(0);function Il(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==="$?"||yc(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 Ru(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 Cu={enqueueSetState:function(e,t,s){e=e._reactInternals;var l=Bt(),u=Pn(l);u.payload=t,s!=null&&(u.callback=s),t=Yn(e,u,l),t!==null&&(Ut(t,e,l),ci(t,e,l))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var l=Bt(),u=Pn(l);u.tag=1,u.payload=t,s!=null&&(u.callback=s),t=Yn(e,u,l),t!==null&&(Ut(t,e,l),ci(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=Bt(),l=Pn(s);l.tag=2,t!=null&&(l.callback=t),t=Yn(e,l,s),t!==null&&(Ut(t,e,s),ci(t,e,s))}};function Cm(e,t,s,l,u,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,x):t.prototype&&t.prototype.isPureReactComponent?!ei(s,l)||!ei(u,d):!0}function Dm(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&&Cu.enqueueReplaceState(t,t.state,null)}function Aa(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 er=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 Mm(e){er(e)}function Om(e){console.error(e)}function Lm(e){er(e)}function tr(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function zm(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 Du(e,t,s){return s=Pn(s),s.tag=3,s.payload={element:null},s.callback=function(){tr(e,t)},s}function Bm(e){return e=Pn(e),e.tag=3,e}function Um(e,t,s,l){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var d=l.value;e.payload=function(){return u(d)},e.callback=function(){zm(t,s,l)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){zm(t,s,l),typeof u!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function Wv(e,t,s,l,u){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=s.alternate,t!==null&&ii(t,s,u,!0),s=Yt.current,s!==null){switch(s.tag){case 13:return ln===null?ec():s.alternate===null&&Xe===0&&(Xe=3),s.flags&=-257,s.flags|=65536,s.lanes=u,l===iu?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([l]):t.add(l),nc(e,l,u)),!1;case 22:return s.flags|=65536,l===iu?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)),nc(e,l,u)),!1}throw Error(r(435,s.tag))}return nc(e,l,u),ec(),!1}if(Ee)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Wo&&(e=Error(r(422),{cause:l}),si(kt(e,s)))):(l!==Wo&&(t=Error(r(423),{cause:l}),si(kt(t,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=kt(l,s),u=Du(e.stateNode,l,u),ou(e,u),Xe!==4&&(Xe=2)),!1;var d=Error(r(520),{cause:l});if(d=kt(d,s),Ni===null?Ni=[d]:Ni.push(d),Xe!==4&&(Xe=2),t===null)return!0;l=kt(l,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=Du(s.stateNode,l,e),ou(s,e),!1;case 1:if(t=s.type,d=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Wn===null||!Wn.has(d))))return s.flags|=65536,u&=-u,s.lanes|=u,u=Bm(u),Um(u,e,s,l),ou(s,u),!1}s=s.return}while(s!==null);return!1}var Vm=Error(r(461)),st=!1;function ut(e,t,s,l){t.child=e===null?Am(t,null,s,l):ds(t,e.child,s,l)}function _m(e,t,s,l,u){s=s.render;var d=t.ref;if("ref"in l){var x={};for(var S in l)S!=="ref"&&(x[S]=l[S])}else x=l;return Ta(t),l=hu(e,t,s,x,d,u),S=mu(),e!==null&&!st?(pu(e,t,u),Nn(e,t,u)):(Ee&&S&&$o(t),t.flags|=1,ut(e,t,l,u),t.child)}function km(e,t,s,l,u){if(e===null){var d=s.type;return typeof d=="function"&&!Zo(d)&&d.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=d,Hm(e,t,d,l,u)):(e=zl(s.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!_u(e,u)){var x=d.memoizedProps;if(s=s.compare,s=s!==null?s:ei,s(x,l)&&e.ref===t.ref)return Nn(e,t,u)}return t.flags|=1,e=xn(d,l),e.ref=t.ref,e.return=t,t.child=e}function Hm(e,t,s,l,u){if(e!==null){var d=e.memoizedProps;if(ei(d,l)&&e.ref===t.ref)if(st=!1,t.pendingProps=l=d,_u(e,u))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Nn(e,t,u)}return Mu(e,t,s,l,u)}function qm(e,t,s){var l=t.pendingProps,u=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=d!==null?d.baseLanes|s:s,e!==null){for(u=t.child=e.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;t.childLanes=d&~l}else t.childLanes=0,t.child=null;return Pm(e,t,l,s)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&kl(t,d!==null?d.cachePool:null),d!==null?Hh(t,d):cu(),Rm(t);else return t.lanes=t.childLanes=536870912,Pm(e,t,d!==null?d.baseLanes|s:s,s)}else d!==null?(kl(t,d.cachePool),Hh(t,d),Kn(),t.memoizedState=null):(e!==null&&kl(t,null),cu(),Kn());return ut(e,t,u,s),t.child}function Pm(e,t,s,l){var u=su();return u=u===null?null:{parent:tt._currentValue,pool:u},t.memoizedState={baseLanes:s,cachePool:u},e!==null&&kl(t,null),cu(),Rm(t),e!==null&&ii(e,t,l,!0),null}function nr(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 Mu(e,t,s,l,u){return Ta(t),s=hu(e,t,s,l,void 0,u),l=mu(),e!==null&&!st?(pu(e,t,u),Nn(e,t,u)):(Ee&&l&&$o(t),t.flags|=1,ut(e,t,s,u),t.child)}function Ym(e,t,s,l,u,d){return Ta(t),t.updateQueue=null,s=Ph(t,l,s,u),qh(e),l=mu(),e!==null&&!st?(pu(e,t,d),Nn(e,t,d)):(Ee&&l&&$o(t),t.flags|=1,ut(e,t,s,d),t.child)}function Gm(e,t,s,l,u){if(Ta(t),t.stateNode===null){var d=ns,x=s.contextType;typeof x=="object"&&x!==null&&(d=mt(x)),d=new s(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Cu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},lu(t),x=s.contextType,d.context=typeof x=="object"&&x!==null?mt(x):ns,d.state=t.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(Ru(t,s,x,l),d.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Cu.enqueueReplaceState(d,d.state,null),di(t,l,d,u),fi(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var S=t.memoizedProps,A=Aa(s,S);d.props=A;var B=d.context,q=s.contextType;x=ns,typeof q=="object"&&q!==null&&(x=mt(q));var Y=s.getDerivedStateFromProps;q=typeof Y=="function"||typeof d.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,q||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(S||B!==x)&&Dm(t,d,l,x),qn=!1;var U=t.memoizedState;d.state=U,di(t,l,d,u),fi(),B=t.memoizedState,S||U!==B||qn?(typeof Y=="function"&&(Ru(t,s,Y,l),B=t.memoizedState),(A=qn||Cm(t,s,A,l,U,B,x))?(q||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=B),d.props=l,d.state=B,d.context=x,l=A):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,ru(e,t),x=t.memoizedProps,q=Aa(s,x),d.props=q,Y=t.pendingProps,U=d.context,B=s.contextType,A=ns,typeof B=="object"&&B!==null&&(A=mt(B)),S=s.getDerivedStateFromProps,(B=typeof S=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==Y||U!==A)&&Dm(t,d,l,A),qn=!1,U=t.memoizedState,d.state=U,di(t,l,d,u),fi();var V=t.memoizedState;x!==Y||U!==V||qn||e!==null&&e.dependencies!==null&&Vl(e.dependencies)?(typeof S=="function"&&(Ru(t,s,S,l),V=t.memoizedState),(q=qn||Cm(t,s,q,l,U,V,A)||e!==null&&e.dependencies!==null&&Vl(e.dependencies))?(B||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,V,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,V,A)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=V),d.props=l,d.state=V,d.context=A,l=q):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,nr(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=ds(t,e.child,null,u),t.child=ds(t,null,s,u)):ut(e,t,s,u),t.memoizedState=d.state,e=t.child):e=Nn(e,t,u),e}function Xm(e,t,s,l){return ai(),t.flags|=256,ut(e,t,s,l),t.child}var Ou={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lu(e){return{baseLanes:e,cachePool:Oh()}}function zu(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=Gt),e}function Km(e,t,s){var l=t.pendingProps,u=!1,d=(t.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),x&&(u=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(u?Xn(t):Kn(),Ee){var S=Ge,A;if(A=S){e:{for(A=S,S=sn;A.nodeType!==8;){if(!S){S=null;break e}if(A=Wt(A.nextSibling),A===null){S=null;break e}}S=A}S!==null?(t.memoizedState={dehydrated:S,treeContext:va!==null?{id:vn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},A=Mt(18,null,null,0),A.stateNode=S,A.return=t,t.child=A,xt=t,Ge=null,A=!0):A=!1}A||wa(t)}if(S=t.memoizedState,S!==null&&(S=S.dehydrated,S!==null))return yc(S)?t.lanes=32:t.lanes=536870912,null;Tn(t)}return S=l.children,l=l.fallback,u?(Kn(),u=t.mode,S=ar({mode:"hidden",children:S},u),l=xa(l,u,s,null),S.return=t,l.return=t,S.sibling=l,t.child=S,u=t.child,u.memoizedState=Lu(s),u.childLanes=zu(e,x,s),t.memoizedState=Ou,l):(Xn(t),Bu(t,S))}if(A=e.memoizedState,A!==null&&(S=A.dehydrated,S!==null)){if(d)t.flags&256?(Xn(t),t.flags&=-257,t=Uu(e,t,s)):t.memoizedState!==null?(Kn(),t.child=e.child,t.flags|=128,t=null):(Kn(),u=l.fallback,S=t.mode,l=ar({mode:"visible",children:l.children},S),u=xa(u,S,s,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,ds(t,e.child,null,s),l=t.child,l.memoizedState=Lu(s),l.childLanes=zu(e,x,s),t.memoizedState=Ou,t=u);else if(Xn(t),yc(S)){if(x=S.nextSibling&&S.nextSibling.dataset,x)var B=x.dgst;x=B,l=Error(r(419)),l.stack="",l.digest=x,si({value:l,source:null,stack:null}),t=Uu(e,t,s)}else if(st||ii(e,t,s,!1),x=(s&e.childLanes)!==0,st||x){if(x=Ue,x!==null&&(l=s&-s,l=(l&42)!==0?1:xo(l),l=(l&(x.suspendedLanes|s))!==0?0:l,l!==0&&l!==A.retryLane))throw A.retryLane=l,ts(e,l),Ut(x,e,l),Vm;S.data==="$?"||ec(),t=Uu(e,t,s)}else S.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,Ge=Wt(S.nextSibling),xt=t,Ee=!0,Sa=null,sn=!1,e!==null&&(qt[Pt++]=vn,qt[Pt++]=bn,qt[Pt++]=va,vn=e.id,bn=e.overflow,va=t),t=Bu(t,l.children),t.flags|=4096);return t}return u?(Kn(),u=l.fallback,S=t.mode,A=e.child,B=A.sibling,l=xn(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,B!==null?u=xn(B,u):(u=xa(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=Lu(s):(A=S.cachePool,A!==null?(B=tt._currentValue,A=A.parent!==B?{parent:B,pool:B}:A):A=Oh(),S={baseLanes:S.baseLanes|s,cachePool:A}),u.memoizedState=S,u.childLanes=zu(e,x,s),t.memoizedState=Ou,l):(Xn(t),s=e.child,e=s.sibling,s=xn(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 Bu(e,t){return t=ar({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ar(e,t){return e=Mt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Uu(e,t,s){return ds(t,e.child,null,s),e=Bu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zm(e,t,s){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),eu(e.return,t,s)}function Vu(e,t,s,l,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=s,d.tailMode=u)}function Fm(e,t,s){var l=t.pendingProps,u=l.revealOrder,d=l.tail;if(ut(e,t,l.children,s),l=nt.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&&Zm(e,s,t);else if(e.tag===19)Zm(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(J(nt,l),u){case"forwards":for(s=t.child,u=null;s!==null;)e=s.alternate,e!==null&&Il(e)===null&&(u=s),s=s.sibling;s=u,s===null?(u=t.child,t.child=null):(u=s.sibling,s.sibling=null),Vu(t,!1,u,s,d);break;case"backwards":for(s=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Il(e)===null){t.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}Vu(t,!0,s,null,d);break;case"together":Vu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nn(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),Jn|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(ii(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=xn(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=xn(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function _u(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Vl(e)))}function Iv(e,t,s){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),Hn(t,tt,e.memoizedState.cache),ai();break;case 27:case 5:Un(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:Hn(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Xn(t),t.flags|=128,null):(s&t.child.childLanes)!==0?Km(e,t,s):(Xn(t),e=Nn(e,t,s),e!==null?e.sibling:null);Xn(t);break;case 19:var u=(e.flags&128)!==0;if(l=(s&t.childLanes)!==0,l||(ii(e,t,s,!1),l=(s&t.childLanes)!==0),u){if(l)return Fm(e,t,s);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),J(nt,nt.current),l)break;return null;case 22:case 23:return t.lanes=0,qm(e,t,s);case 24:Hn(t,tt,e.memoizedState.cache)}return Nn(e,t,s)}function Qm(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!_u(e,s)&&(t.flags&128)===0)return st=!1,Iv(e,t,s);st=(e.flags&131072)!==0}else st=!1,Ee&&(t.flags&1048576)!==0&&Nh(t,Ul,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")Zo(l)?(e=Aa(l,e),t.tag=1,t=Gm(null,t,l,e,s)):(t.tag=0,t=Mu(null,t,l,e,s));else{if(l!=null){if(u=l.$$typeof,u===G){t.tag=11,t=_m(null,t,l,e,s);break e}else if(u===$){t.tag=14,t=km(null,t,l,e,s);break e}}throw t=Ze(l)||l,Error(r(306,t,""))}}return t;case 0:return Mu(e,t,t.type,t.pendingProps,s);case 1:return l=t.type,u=Aa(l,t.pendingProps),Gm(e,t,l,u,s);case 3:e:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var d=t.memoizedState;u=d.element,ru(e,t),di(t,l,null,s);var x=t.memoizedState;if(l=x.cache,Hn(t,tt,l),l!==d.cache&&tu(t,[tt],s,!0),fi(),l=x.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Xm(e,t,l,s);break e}else if(l!==u){u=kt(Error(r(424)),t),si(u),t=Xm(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(Ge=Wt(e.firstChild),xt=t,Ee=!0,Sa=null,sn=!0,s=Am(t,null,l,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(ai(),l===u){t=Nn(e,t,s);break e}ut(e,t,l,s)}t=t.child}return t;case 26:return nr(e,t),e===null?(s=I0(t.type,null,t.pendingProps,null))?t.memoizedState=s:Ee||(s=t.type,e=t.pendingProps,l=yr(ue.current).createElement(s),l[ht]=t,l[bt]=e,ft(l,s,e),at(l),t.stateNode=l):t.memoizedState=I0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Un(t),e===null&&Ee&&(l=t.stateNode=$0(t.type,t.pendingProps,ue.current),xt=t,sn=!0,u=Ge,ta(t.type)?(xc=u,Ge=Wt(l.firstChild)):Ge=u),ut(e,t,t.pendingProps.children,s),nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((u=l=Ge)&&(l=Ab(l,t.type,t.pendingProps,sn),l!==null?(t.stateNode=l,xt=t,Ge=Wt(l.firstChild),sn=!1,u=!0):u=!1),u||wa(t)),Un(t),u=t.type,d=t.pendingProps,x=e!==null?e.memoizedProps:null,l=d.children,mc(u,d)?l=null:x!==null&&mc(u,x)&&(t.flags|=32),t.memoizedState!==null&&(u=hu(e,t,Xv,null,null,s),zi._currentValue=u),nr(e,t),ut(e,t,l,s),t.child;case 6:return e===null&&Ee&&((e=s=Ge)&&(s=Rb(s,t.pendingProps,sn),s!==null?(t.stateNode=s,xt=t,Ge=null,e=!0):e=!1),e||wa(t)),null;case 13:return Km(e,t,s);case 4:return fe(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ds(t,null,l,s):ut(e,t,l,s),t.child;case 11:return _m(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,Hn(t,t.type,l.value),ut(e,t,l.children,s),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Ta(t),u=mt(u),l=l(u),t.flags|=1,ut(e,t,l,s),t.child;case 14:return km(e,t,t.type,t.pendingProps,s);case 15:return Hm(e,t,t.type,t.pendingProps,s);case 19:return Fm(e,t,s);case 31:return l=t.pendingProps,s=t.mode,l={mode:l.mode,children:l.children},e===null?(s=ar(l,s),s.ref=t.ref,t.child=s,s.return=t,t=s):(s=xn(e.child,l),s.ref=t.ref,t.child=s,s.return=t,t=s),t;case 22:return qm(e,t,s);case 24:return Ta(t),l=mt(tt),e===null?(u=su(),u===null&&(u=Ue,d=nu(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=s),u=d),t.memoizedState={parent:l,cache:u},lu(t),Hn(t,tt,u)):((e.lanes&s)!==0&&(ru(e,t),di(t,null,null,s),fi()),u=e.memoizedState,d=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Hn(t,tt,l)):(l=d.cache,Hn(t,tt,l),l!==u.cache&&tu(t,[tt],s,!0))),ut(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function En(e){e.flags|=4}function $m(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sp(t)){if(t=Yt.current,t!==null&&((je&4194048)===je?ln!==null:(je&62914560)!==je&&(je&536870912)===0||t!==ln))throw ui=iu,Lh;e.flags|=8192}}function sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Rd():536870912,e.lanes|=t,gs|=t)}function vi(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 He(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 eb(e,t,s){var l=t.pendingProps;switch(Jo(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return s=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),wn(tt),De(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(ni(t)?En(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rh())),He(t),null;case 26:return s=t.memoizedState,e===null?(En(t),s!==null?(He(t),$m(t,s)):(He(t),t.flags&=-16777217)):s?s!==e.memoizedState?(En(t),He(t),$m(t,s)):(He(t),t.flags&=-16777217):(e.memoizedProps!==l&&En(t),He(t),t.flags&=-16777217),null;case 27:nn(t),s=ue.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&En(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return He(t),null}e=ae.current,ni(t)?Eh(t):(e=$0(u,l,s),t.stateNode=e,En(t))}return He(t),null;case 5:if(nn(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&En(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return He(t),null}if(e=ae.current,ni(t))Eh(t);else{switch(u=yr(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[bt]=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&&En(t)}}return He(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&En(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,ni(t)){if(e=t.stateNode,s=t.memoizedProps,l=null,u=xt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[ht]=t,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||Y0(e.nodeValue,s)),e||wa(t)}else e=yr(e).createTextNode(l),e[ht]=t,t.stateNode=e}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ni(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 ai(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),u=!1}else u=Rh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Tn(t),t):(Tn(t),null)}if(Tn(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 d=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==u&&(l.flags|=2048)}return s!==e&&s&&(t.child.flags|=8192),sr(t,t.updateQueue),He(t),null;case 4:return De(),e===null&&uc(t.stateNode.containerInfo),He(t),null;case 10:return wn(t.type),He(t),null;case 19:if(W(nt),u=t.memoizedState,u===null)return He(t),null;if(l=(t.flags&128)!==0,d=u.rendering,d===null)if(l)vi(u,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Il(e),d!==null){for(t.flags|=128,vi(u,!1),e=d.updateQueue,t.updateQueue=e,sr(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Th(s,e),s=s.sibling;return J(nt,nt.current&1|2),t.child}e=e.sibling}u.tail!==null&&an()>rr&&(t.flags|=128,l=!0,vi(u,!1),t.lanes=4194304)}else{if(!l)if(e=Il(d),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,sr(t,e),vi(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Ee)return He(t),null}else 2*an()-u.renderingStartTime>rr&&s!==536870912&&(t.flags|=128,l=!0,vi(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(e=u.last,e!==null?e.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=an(),t.sibling=null,e=nt.current,J(nt,l?e&1|2:e&1),t):(He(t),null);case 22:case 23:return Tn(t),fu(),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&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),s=t.updateQueue,s!==null&&sr(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(Na),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),wn(tt),He(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function tb(e,t){switch(Jo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wn(tt),De(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nn(t),null;case 13:if(Tn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return W(nt),null;case 4:return De(),null;case 10:return wn(t.type),null;case 22:case 23:return Tn(t),fu(),e!==null&&W(Na),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wn(tt),null;case 25:return null;default:return null}}function Jm(e,t){switch(Jo(t),t.tag){case 3:wn(tt),De();break;case 26:case 27:case 5:nn(t);break;case 4:De();break;case 13:Tn(t);break;case 19:W(nt);break;case 10:wn(t.type);break;case 22:case 23:Tn(t),fu(),e!==null&&W(Na);break;case 24:wn(tt)}}function bi(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 d=s.create,x=s.inst;l=d(),x.destroy=l}s=s.next}while(s!==u)}}catch(S){ze(t,t.return,S)}}function Zn(e,t,s){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var d=u.next;l=d;do{if((l.tag&e)===e){var x=l.inst,S=x.destroy;if(S!==void 0){x.destroy=void 0,u=t;var A=s,B=S;try{B()}catch(q){ze(u,A,q)}}}l=l.next}while(l!==d)}}catch(q){ze(t,t.return,q)}}function Wm(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{kh(t,s)}catch(l){ze(e,e.return,l)}}}function Im(e,t,s){s.props=Aa(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){ze(e,t,l)}}function Si(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){ze(e,t,u)}}function rn(e,t){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(u){ze(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){ze(e,t,u)}else s.current=null}function e0(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){ze(e,e.return,u)}}function ku(e,t,s){try{var l=e.stateNode;wb(l,e.type,s,t),l[bt]=t}catch(u){ze(e,e.return,u)}}function t0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ta(e.type)||e.tag===4}function Hu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t0(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&&ta(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=gr));else if(l!==4&&(l===27&&ta(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 ir(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&&ta(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(ir(e,t,s),e=e.sibling;e!==null;)ir(e,t,s),e=e.sibling}function n0(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[bt]=s}catch(d){ze(e,e.return,d)}}var An=!1,Qe=!1,Pu=!1,a0=typeof WeakSet=="function"?WeakSet:Set,it=null;function nb(e,t){if(e=e.containerInfo,dc=jr,e=mh(e),Ho(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,d=l.focusNode;l=l.focusOffset;try{s.nodeType,d.nodeType}catch(se){s=null;break e}var x=0,S=-1,A=-1,B=0,q=0,Y=e,U=null;t:for(;;){for(var V;Y!==s||u!==0&&Y.nodeType!==3||(S=x+u),Y!==d||l!==0&&Y.nodeType!==3||(A=x+l),Y.nodeType===3&&(x+=Y.nodeValue.length),(V=Y.firstChild)!==null;)U=Y,Y=V;for(;;){if(Y===e)break t;if(U===s&&++B===u&&(S=x),U===d&&++q===l&&(A=x),(V=Y.nextSibling)!==null)break;Y=U,U=Y.parentNode}Y=V}s=S===-1||A===-1?null:{start:S,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(hc={focusedElem:e,selectionRange:s},jr=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,s=t,u=d.memoizedProps,d=d.memoizedState,l=s.stateNode;try{var re=Aa(s.type,u,s.elementType===s.type);e=l.getSnapshotBeforeUpdate(re,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(se){ze(s,s.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)gc(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gc(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,it=e;break}it=t.return}}function s0(e,t,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:Fn(e,s),l&4&&bi(5,s);break;case 1:if(Fn(e,s),l&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(x){ze(s,s.return,x)}else{var u=Aa(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){ze(s,s.return,x)}}l&64&&Wm(s),l&512&&Si(s,s.return);break;case 3:if(Fn(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{kh(e,t)}catch(x){ze(s,s.return,x)}}break;case 27:t===null&&l&4&&n0(s);case 26:case 5:Fn(e,s),t===null&&l&4&&e0(s),l&512&&Si(s,s.return);break;case 12:Fn(e,s);break;case 13:Fn(e,s),l&4&&r0(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=fb.bind(null,s),Cb(e,s))));break;case 22:if(l=s.memoizedState!==null||An,!l){t=t!==null&&t.memoizedState!==null||Qe,u=An;var d=Qe;An=l,(Qe=t)&&!d?Qn(e,s,(s.subtreeFlags&8772)!==0):Fn(e,s),An=u,Qe=d}break;case 30:break;default:Fn(e,s)}}function i0(e){var t=e.alternate;t!==null&&(e.alternate=null,i0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&So(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,jt=!1;function Rn(e,t,s){for(s=s.child;s!==null;)l0(e,t,s),s=s.sibling}function l0(e,t,s){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Ps,s)}catch(d){}switch(s.tag){case 26:Qe||rn(s,t),Rn(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Qe||rn(s,t);var l=_e,u=jt;ta(s.type)&&(_e=s.stateNode,jt=!1),Rn(e,t,s),Di(s.stateNode),_e=l,jt=u;break;case 5:Qe||rn(s,t);case 6:if(l=_e,u=jt,_e=null,Rn(e,t,s),_e=l,jt=u,_e!==null)if(jt)try{(_e.nodeType===9?_e.body:_e.nodeName==="HTML"?_e.ownerDocument.body:_e).removeChild(s.stateNode)}catch(d){ze(s,t,d)}else try{_e.removeChild(s.stateNode)}catch(d){ze(s,t,d)}break;case 18:_e!==null&&(jt?(e=_e,F0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),_i(e)):F0(_e,s.stateNode));break;case 4:l=_e,u=jt,_e=s.stateNode.containerInfo,jt=!0,Rn(e,t,s),_e=l,jt=u;break;case 0:case 11:case 14:case 15:Qe||Zn(2,s,t),Qe||Zn(4,s,t),Rn(e,t,s);break;case 1:Qe||(rn(s,t),l=s.stateNode,typeof l.componentWillUnmount=="function"&&Im(s,t,l)),Rn(e,t,s);break;case 21:Rn(e,t,s);break;case 22:Qe=(l=Qe)||s.memoizedState!==null,Rn(e,t,s),Qe=l;break;default:Rn(e,t,s)}}function r0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_i(e)}catch(s){ze(t,t.return,s)}}function ab(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new a0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new a0),t;default:throw Error(r(435,e.tag))}}function Yu(e,t){var s=ab(e);t.forEach(function(l){var u=db.bind(null,e,l);s.has(l)||(s.add(l),l.then(u,u))})}function Ot(e,t){var s=t.deletions;if(s!==null)for(var l=0;l<s.length;l++){var u=s[l],d=e,x=t,S=x;e:for(;S!==null;){switch(S.tag){case 27:if(ta(S.type)){_e=S.stateNode,jt=!1;break e}break;case 5:_e=S.stateNode,jt=!1;break e;case 3:case 4:_e=S.stateNode.containerInfo,jt=!0;break e}S=S.return}if(_e===null)throw Error(r(160));l0(d,x,u),_e=null,jt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)o0(t,e),t=t.sibling}var Jt=null;function o0(e,t){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ot(t,e),Lt(e),l&4&&(Zn(3,e,e.return),bi(3,e),Zn(5,e,e.return));break;case 1:Ot(t,e),Lt(e),l&512&&(Qe||s===null||rn(s,s.return)),l&64&&An&&(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=Jt;if(Ot(t,e),Lt(e),l&512&&(Qe||s===null||rn(s,s.return)),l&4){var d=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":d=u.getElementsByTagName("title")[0],(!d||d[Xs]||d[ht]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(l),u.head.insertBefore(d,u.querySelector("head > title"))),ft(d,l,s),d[ht]=e,at(d),l=d;break e;case"link":var x=np("link","href",u).get(l+(s.href||""));if(x){for(var S=0;S<x.length;S++)if(d=x[S],d.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&d.getAttribute("rel")===(s.rel==null?null:s.rel)&&d.getAttribute("title")===(s.title==null?null:s.title)&&d.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(S,1);break t}}d=u.createElement(l),ft(d,l,s),u.head.appendChild(d);break;case"meta":if(x=np("meta","content",u).get(l+(s.content||""))){for(S=0;S<x.length;S++)if(d=x[S],d.getAttribute("content")===(s.content==null?null:""+s.content)&&d.getAttribute("name")===(s.name==null?null:s.name)&&d.getAttribute("property")===(s.property==null?null:s.property)&&d.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&d.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(S,1);break t}}d=u.createElement(l),ft(d,l,s),u.head.appendChild(d);break;default:throw Error(r(468,l))}d[ht]=e,at(d),l=d}e.stateNode=l}else ap(u,e.type,e.stateNode);else e.stateNode=tp(u,l,e.memoizedProps);else d!==l?(d===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):d.count--,l===null?ap(u,e.type,e.stateNode):tp(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ku(e,e.memoizedProps,s.memoizedProps)}break;case 27:Ot(t,e),Lt(e),l&512&&(Qe||s===null||rn(s,s.return)),s!==null&&l&4&&ku(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Ot(t,e),Lt(e),l&512&&(Qe||s===null||rn(s,s.return)),e.flags&32){u=e.stateNode;try{Fa(u,"")}catch(V){ze(e,e.return,V)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,ku(e,u,s!==null?s.memoizedProps:u)),l&1024&&(Pu=!0);break;case 6:if(Ot(t,e),Lt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(V){ze(e,e.return,V)}}break;case 3:if(br=null,u=Jt,Jt=xr(t.containerInfo),Ot(t,e),Jt=u,Lt(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{_i(t.containerInfo)}catch(V){ze(e,e.return,V)}Pu&&(Pu=!1,u0(e));break;case 4:l=Jt,Jt=xr(e.stateNode.containerInfo),Ot(t,e),Lt(e),Jt=l;break;case 12:Ot(t,e),Lt(e);break;case 13:Ot(t,e),Lt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Qu=an()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yu(e,l)));break;case 22:u=e.memoizedState!==null;var A=s!==null&&s.memoizedState!==null,B=An,q=Qe;if(An=B||u,Qe=q||A,Ot(t,e),Qe=q,An=B,Lt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(s===null||A||An||Qe||Ra(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){A=s=t;try{if(d=A.stateNode,u)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{S=A.stateNode;var Y=A.memoizedProps.style,U=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;S.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(V){ze(A,A.return,V)}}}else if(t.tag===6){if(s===null){A=t;try{A.stateNode.nodeValue=u?"":A.memoizedProps}catch(V){ze(A,A.return,V)}}}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,Yu(e,s))));break;case 19:Ot(t,e),Lt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Yu(e,l)));break;case 30:break;case 21:break;default:Ot(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{for(var s,l=e.return;l!==null;){if(t0(l)){s=l;break}l=l.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var u=s.stateNode,d=Hu(e);ir(e,d,u);break;case 5:var x=s.stateNode;s.flags&32&&(Fa(x,""),s.flags&=-33);var S=Hu(e);ir(e,S,x);break;case 3:case 4:var A=s.stateNode.containerInfo,B=Hu(e);qu(e,B,A);break;default:throw Error(r(161))}}catch(q){ze(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function u0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;u0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Fn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)s0(e,t.alternate,t),t=t.sibling}function Ra(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Zn(4,t,t.return),Ra(t);break;case 1:rn(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&Im(t,t.return,s),Ra(t);break;case 27:Di(t.stateNode);case 26:case 5:rn(t,t.return),Ra(t);break;case 22:t.memoizedState===null&&Ra(t);break;case 30:Ra(t);break;default:Ra(t)}e=e.sibling}}function Qn(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,d=t,x=d.flags;switch(d.tag){case 0:case 11:case 15:Qn(u,d,s),bi(4,d);break;case 1:if(Qn(u,d,s),l=d,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(B){ze(l,l.return,B)}if(l=d,u=l.updateQueue,u!==null){var S=l.stateNode;try{var A=u.shared.hiddenCallbacks;if(A!==null)for(u.shared.hiddenCallbacks=null,u=0;u<A.length;u++)_h(A[u],S)}catch(B){ze(l,l.return,B)}}s&&x&64&&Wm(d),Si(d,d.return);break;case 27:n0(d);case 26:case 5:Qn(u,d,s),s&&l===null&&x&4&&e0(d),Si(d,d.return);break;case 12:Qn(u,d,s);break;case 13:Qn(u,d,s),s&&x&4&&r0(u,d);break;case 22:d.memoizedState===null&&Qn(u,d,s),Si(d,d.return);break;case 30:break;default:Qn(u,d,s)}t=t.sibling}}function Gu(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&&li(s))}function Xu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function on(e,t,s,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)c0(e,t,s,l),t=t.sibling}function c0(e,t,s,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,s,l),u&2048&&bi(9,t);break;case 1:on(e,t,s,l);break;case 3:on(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&&li(e)));break;case 12:if(u&2048){on(e,t,s,l),e=t.stateNode;try{var d=t.memoizedProps,x=d.id,S=d.onPostCommit;typeof S=="function"&&S(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){ze(t,t.return,A)}}else on(e,t,s,l);break;case 13:on(e,t,s,l);break;case 23:break;case 22:d=t.stateNode,x=t.alternate,t.memoizedState!==null?d._visibility&2?on(e,t,s,l):wi(e,t):d._visibility&2?on(e,t,s,l):(d._visibility|=2,hs(e,t,s,l,(t.subtreeFlags&10256)!==0)),u&2048&&Gu(x,t);break;case 24:on(e,t,s,l),u&2048&&Xu(t.alternate,t);break;default:on(e,t,s,l)}}function hs(e,t,s,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,x=t,S=s,A=l,B=x.flags;switch(x.tag){case 0:case 11:case 15:hs(d,x,S,A,u),bi(8,x);break;case 23:break;case 22:var q=x.stateNode;x.memoizedState!==null?q._visibility&2?hs(d,x,S,A,u):wi(d,x):(q._visibility|=2,hs(d,x,S,A,u)),u&&B&2048&&Gu(x.alternate,x);break;case 24:hs(d,x,S,A,u),u&&B&2048&&Xu(x.alternate,x);break;default:hs(d,x,S,A,u)}t=t.sibling}}function wi(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:wi(s,l),u&2048&&Gu(l.alternate,l);break;case 24:wi(s,l),u&2048&&Xu(l.alternate,l);break;default:wi(s,l)}t=t.sibling}}var ji=8192;function ms(e){if(e.subtreeFlags&ji)for(e=e.child;e!==null;)f0(e),e=e.sibling}function f0(e){switch(e.tag){case 26:ms(e),e.flags&ji&&e.memoizedState!==null&&Pb(Jt,e.memoizedState,e.memoizedProps);break;case 5:ms(e);break;case 3:case 4:var t=Jt;Jt=xr(e.stateNode.containerInfo),ms(e),Jt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=ji,ji=16777216,ms(e),ji=t):ms(e));break;default:ms(e)}}function d0(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 Ti(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];it=l,m0(l,e)}d0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)h0(e),e=e.sibling}function h0(e){switch(e.tag){case 0:case 11:case 15:Ti(e),e.flags&2048&&Zn(9,e,e.return);break;case 3:Ti(e);break;case 12:Ti(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lr(e)):Ti(e);break;default:Ti(e)}}function lr(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];it=l,m0(l,e)}d0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Zn(8,t,t.return),lr(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,lr(t));break;default:lr(t)}e=e.sibling}}function m0(e,t){for(;it!==null;){var s=it;switch(s.tag){case 0:case 11:case 15:Zn(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:li(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,it=l;else e:for(s=e;it!==null;){l=it;var u=l.sibling,d=l.return;if(i0(l),l===s){it=null;break e}if(u!==null){u.return=d,it=u;break e}it=d}}}var sb={getCacheForType:function(e){var t=mt(tt),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s}},ib=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ue=null,ve=null,je=0,Ce=0,zt=null,$n=!1,ps=!1,Ku=!1,Cn=0,Xe=0,Jn=0,Ca=0,Zu=0,Gt=0,gs=0,Ni=null,Tt=null,Fu=!1,Qu=0,rr=1/0,or=null,Wn=null,ct=0,In=null,ys=null,xs=0,$u=0,Ju=null,p0=null,Ei=0,Wu=null;function Bt(){if((Re&2)!==0&&je!==0)return je&-je;if(H.T!==null){var e=is;return e!==0?e:ic()}return Md()}function g0(){Gt===0&&(Gt=(je&536870912)===0||Ee?Ad():536870912);var e=Yt.current;return e!==null&&(e.flags|=32),Gt}function Ut(e,t,s){(e===Ue&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(vs(e,0),ea(e,je,Gt,!1)),Gs(e,s),((Re&2)===0||e!==Ue)&&(e===Ue&&((Re&2)===0&&(Ca|=s),Xe===4&&ea(e,je,Gt,!1)),un(e))}function y0(e,t,s){if((Re&6)!==0)throw Error(r(327));var l=!s&&(t&124)===0&&(t&e.expiredLanes)===0||Ys(e,t),u=l?ob(e,t):tc(e,t,!0),d=l;do{if(u===0){ps&&!l&&ea(e,t,0,!1);break}else{if(s=e.current.alternate,d&&!lb(s)){u=tc(e,t,!1),d=!1;continue}if(u===2){if(d=t,e.errorRecoveryDisabledLanes&d)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=Ni;var A=S.current.memoizedState.isDehydrated;if(A&&(vs(S,x).flags|=256),x=tc(S,x,!1),x!==2){if(Ku&&!A){S.errorRecoveryDisabledLanes|=d,Ca|=d,u=4;break e}d=Tt,Tt=u,d!==null&&(Tt===null?Tt=d:Tt.push.apply(Tt,d))}u=x}if(d=!1,u!==2)continue}}if(u===1){vs(e,0),ea(e,t,0,!0);break}e:{switch(l=e,d=u,d){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:ea(l,t,Gt,!$n);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=Qu+300-an(),10<u)){if(ea(l,t,Gt,!$n),vl(l,0,!0)!==0)break e;l.timeoutHandle=K0(x0.bind(null,l,s,Tt,or,Fu,t,Gt,Ca,gs,$n,d,2,-0,0),u);break e}x0(l,s,Tt,or,Fu,t,Gt,Ca,gs,$n,d,0,-0,0)}}break}while(!0);un(e)}function x0(e,t,s,l,u,d,x,S,A,B,q,Y,U,V){if(e.timeoutHandle=-1,Y=t.subtreeFlags,(Y&8192||(Y&16785408)===16785408)&&(Li={stylesheets:null,count:0,unsuspend:qb},f0(t),Y=Yb(),Y!==null)){e.cancelPendingCommit=Y(N0.bind(null,e,t,d,s,l,u,x,S,A,q,1,U,V)),ea(e,d,x,!B);return}N0(e,t,d,s,l,u,x,S,A)}function lb(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],d=u.getSnapshot;u=u.value;try{if(!Dt(d(),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 ea(e,t,s,l){t&=~Zu,t&=~Ca,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var d=31-Ct(u),x=1<<d;l[d]=-1,u&=~x}s!==0&&Cd(e,s,t)}function ur(){return(Re&6)===0?(Ai(0),!1):!0}function Iu(){if(ve!==null){if(Ce===0)var e=ve.return;else e=ve,Sn=ja=null,gu(e),fs=null,yi=0,e=ve;for(;e!==null;)Jm(e.alternate,e),e=e.return;ve=null}}function vs(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,Tb(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),Iu(),Ue=e,ve=s=xn(e.current,null),je=t,Ce=0,zt=null,$n=!1,ps=Ys(e,t),Ku=!1,gs=Gt=Zu=Ca=Jn=Xe=0,Tt=Ni=null,Fu=!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-Ct(l),d=1<<u;t|=e[u],l&=~d}return Cn=t,Ml(),s}function v0(e,t){pe=null,H.H=$l,t===oi||t===Hl?(t=Uh(),Ce=3):t===Lh?(t=Uh(),Ce=4):Ce=t===Vm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,ve===null&&(Xe=1,tr(e,kt(t,e.current)))}function b0(){var e=H.H;return H.H=$l,e===null?$l:e}function S0(){var e=H.A;return H.A=sb,e}function ec(){Xe=4,$n||(je&4194048)!==je&&Yt.current!==null||(ps=!0),(Jn&134217727)===0&&(Ca&134217727)===0||Ue===null||ea(Ue,je,Gt,!1)}function tc(e,t,s){var l=Re;Re|=2;var u=b0(),d=S0();(Ue!==e||je!==t)&&(or=null,vs(e,t)),t=!1;var x=Xe;e:do try{if(Ce!==0&&ve!==null){var S=ve,A=zt;switch(Ce){case 8:Iu(),x=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var B=Ce;if(Ce=0,zt=null,bs(e,S,A,B),s&&ps){x=0;break e}break;default:B=Ce,Ce=0,zt=null,bs(e,S,A,B)}}rb(),x=Xe;break}catch(q){v0(e,q)}while(!0);return t&&e.shellSuspendCounter++,Sn=ja=null,Re=l,H.H=u,H.A=d,ve===null&&(Ue=null,je=0,Ml()),x}function rb(){for(;ve!==null;)w0(ve)}function ob(e,t){var s=Re;Re|=2;var l=b0(),u=S0();Ue!==e||je!==t?(or=null,rr=an()+500,vs(e,t)):ps=Ys(e,t);e:do try{if(Ce!==0&&ve!==null){t=ve;var d=zt;t:switch(Ce){case 1:Ce=0,zt=null,bs(e,t,d,1);break;case 2:case 9:if(zh(d)){Ce=0,zt=null,j0(t);break}t=function(){Ce!==2&&Ce!==9||Ue!==e||(Ce=7),un(e)},d.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:zh(d)?(Ce=0,zt=null,j0(t)):(Ce=0,zt=null,bs(e,t,d,7));break;case 5:var x=null;switch(ve.tag){case 26:x=ve.memoizedState;case 5:case 27:var S=ve;if(!x||sp(x)){Ce=0,zt=null;var A=S.sibling;if(A!==null)ve=A;else{var B=S.return;B!==null?(ve=B,cr(B)):ve=null}break t}}Ce=0,zt=null,bs(e,t,d,5);break;case 6:Ce=0,zt=null,bs(e,t,d,6);break;case 8:Iu(),Xe=6;break e;default:throw Error(r(462))}}ub();break}catch(q){v0(e,q)}while(!0);return Sn=ja=null,H.H=l,H.A=u,Re=s,ve!==null?0:(Ue=null,je=0,Ml(),Xe)}function ub(){for(;ve!==null&&!M1();)w0(ve)}function w0(e){var t=Qm(e.alternate,e,Cn);e.memoizedProps=e.pendingProps,t===null?cr(e):ve=t}function j0(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=Ym(s,t,t.pendingProps,t.type,void 0,je);break;case 11:t=Ym(s,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:gu(t);default:Jm(s,t),t=ve=Th(t,Cn),t=Qm(s,t,Cn)}e.memoizedProps=e.pendingProps,t===null?cr(e):ve=t}function bs(e,t,s,l){Sn=ja=null,gu(t),fs=null,yi=0;var u=t.return;try{if(Wv(e,u,t,s,je)){Xe=1,tr(e,kt(s,e.current)),ve=null;return}}catch(d){if(u!==null)throw ve=u,d;Xe=1,tr(e,kt(s,e.current)),ve=null;return}t.flags&32768?(Ee||l===1?e=!0:ps||(je&536870912)!==0?e=!1:($n=e=!0,(l===2||l===9||l===3||l===6)&&(l=Yt.current,l!==null&&l.tag===13&&(l.flags|=16384))),T0(t,e)):cr(t)}function cr(e){var t=e;do{if((t.flags&32768)!==0){T0(t,$n);return}e=t.return;var s=eb(t.alternate,t,Cn);if(s!==null){ve=s;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Xe===0&&(Xe=5)}function T0(e,t){do{var s=tb(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);Xe=6,ve=null}function N0(e,t,s,l,u,d,x,S,A){e.cancelPendingCommit=null;do fr();while(ct!==0);if((Re&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(d=t.lanes|t.childLanes,d|=Xo,q1(e,s,d,x,S,A),e===Ue&&(ve=Ue=null,je=0),ys=t,In=e,xs=s,$u=d,Ju=u,p0=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,hb(gl,function(){return D0(),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=Re,Re|=4;try{nb(e,t,s)}finally{Re=x,F.p=u,H.T=l}}ct=1,E0(),A0(),R0()}}function E0(){if(ct===1){ct=0;var e=In,t=ys,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=Re;Re|=4;try{o0(t,e);var d=hc,x=mh(e.containerInfo),S=d.focusedElem,A=d.selectionRange;if(x!==S&&S&&S.ownerDocument&&hh(S.ownerDocument.documentElement,S)){if(A!==null&&Ho(S)){var B=A.start,q=A.end;if(q===void 0&&(q=B),"selectionStart"in S)S.selectionStart=B,S.selectionEnd=Math.min(q,S.value.length);else{var Y=S.ownerDocument||document,U=Y&&Y.defaultView||window;if(U.getSelection){var V=U.getSelection(),re=S.textContent.length,se=Math.min(A.start,re),Le=A.end===void 0?se:Math.min(A.end,re);!V.extend&&se>Le&&(x=Le,Le=se,se=x);var O=dh(S,se),C=dh(S,Le);if(O&&C&&(V.rangeCount!==1||V.anchorNode!==O.node||V.anchorOffset!==O.offset||V.focusNode!==C.node||V.focusOffset!==C.offset)){var L=Y.createRange();L.setStart(O.node,O.offset),V.removeAllRanges(),se>Le?(V.addRange(L),V.extend(C.node,C.offset)):(L.setEnd(C.node,C.offset),V.addRange(L))}}}}for(Y=[],V=S;V=V.parentNode;)V.nodeType===1&&Y.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Y.length;S++){var P=Y[S];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}jr=!!dc,hc=dc=null}finally{Re=u,F.p=l,H.T=s}}e.current=t,ct=2}}function A0(){if(ct===2){ct=0;var e=In,t=ys,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=Re;Re|=4;try{s0(e,t.alternate,t)}finally{Re=u,F.p=l,H.T=s}}ct=3}}function R0(){if(ct===4||ct===3){ct=0,O1();var e=In,t=ys,s=xs,l=p0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,ys=In=null,C0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Wn=null),vo(s),t=t.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Ps,t,void 0,(t.current.flags&128)===128)}catch(A){}if(l!==null){t=H.T,u=F.p,F.p=2,H.T=null;try{for(var d=e.onRecoverableError,x=0;x<l.length;x++){var S=l[x];d(S.value,{componentStack:S.stack})}}finally{H.T=t,F.p=u}}(xs&3)!==0&&fr(),un(e),u=e.pendingLanes,(s&4194090)!==0&&(u&42)!==0?e===Wu?Ei++:(Ei=0,Wu=e):Ei=0,Ai(0)}}function C0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function fr(e){return E0(),A0(),R0(),D0()}function D0(){if(ct!==5)return!1;var e=In,t=$u;$u=0;var s=vo(xs),l=H.T,u=F.p;try{F.p=32>s?32:s,H.T=null,s=Ju,Ju=null;var d=In,x=xs;if(ct=0,ys=In=null,xs=0,(Re&6)!==0)throw Error(r(331));var S=Re;if(Re|=4,h0(d.current),c0(d,d.current,x,s),Re=S,Ai(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Ps,d)}catch(A){}return!0}finally{F.p=u,H.T=l,C0(e,t)}}function M0(e,t,s){t=kt(s,t),t=Du(e.stateNode,t,2),e=Yn(e,t,2),e!==null&&(Gs(e,2),un(e))}function ze(e,t,s){if(e.tag===3)M0(e,e,s);else for(;t!==null;){if(t.tag===3){M0(t,e,s);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){e=kt(s,e),s=Bm(2),l=Yn(t,s,2),l!==null&&(Um(s,l,t,e),Gs(l,2),un(l));break}}t=t.return}}function nc(e,t,s){var l=e.pingCache;if(l===null){l=e.pingCache=new ib;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)||(Ku=!0,u.add(s),e=cb.bind(null,e,t,s),t.then(e,e))}function cb(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&&(Xe===4||Xe===3&&(je&62914560)===je&&300>an()-Qu?(Re&2)===0&&vs(e,0):Zu|=s,gs===je&&(gs=0)),un(e)}function O0(e,t){t===0&&(t=Rd()),e=ts(e,t),e!==null&&(Gs(e,t),un(e))}function fb(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),O0(e,s)}function db(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),O0(e,s)}function hb(e,t){return po(e,t)}var dr=null,Ss=null,ac=!1,hr=!1,sc=!1,Da=0;function un(e){e!==Ss&&e.next===null&&(Ss===null?dr=Ss=e:Ss=Ss.next=e),hr=!0,ac||(ac=!0,pb())}function Ai(e,t){if(!sc&&hr){sc=!0;do for(var s=!1,l=dr;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var d=0;else{var x=l.suspendedLanes,S=l.pingedLanes;d=(1<<31-Ct(42|e)+1)-1,d&=u&~(x&~S),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(s=!0,U0(l,d))}else d=je,d=vl(l,l===Ue?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Ys(l,d)||(s=!0,U0(l,d));l=l.next}while(s);sc=!1}}function mb(){L0()}function L0(){hr=ac=!1;var e=0;Da!==0&&(jb()&&(e=Da),Da=0);for(var t=an(),s=null,l=dr;l!==null;){var u=l.next,d=z0(l,t);d===0?(l.next=null,s===null?dr=u:s.next=u,u===null&&(Ss=s)):(s=l,(e!==0||(d&3)!==0)&&(hr=!0)),l=u}Ai(e)}function z0(e,t){for(var s=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-Ct(d),S=1<<x,A=u[x];A===-1?((S&s)===0||(S&l)!==0)&&(u[x]=H1(S,t)):A<=t&&(e.expiredLanes|=S),d&=~S}if(t=Ue,s=je,s=vl(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&go(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||Ys(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(l!==null&&go(l),vo(s)){case 2:case 8:s=Nd;break;case 32:s=gl;break;case 268435456:s=Ed;break;default:s=gl}return l=B0.bind(null,e),s=po(s,l),e.callbackPriority=t,e.callbackNode=s,t}return l!==null&&l!==null&&go(l),e.callbackPriority=2,e.callbackNode=null,2}function B0(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(fr()&&e.callbackNode!==s)return null;var l=je;return l=vl(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(y0(e,l,t),z0(e,an()),e.callbackNode!=null&&e.callbackNode===s?B0.bind(null,e):null)}function U0(e,t){if(fr())return null;y0(e,t,!0)}function pb(){Nb(function(){(Re&6)!==0?po(Td,mb):L0()})}function ic(){return Da===0&&(Da=Ad()),Da}function V0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tl(""+e)}function _0(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 gb(e,t,s,l,u){if(t==="submit"&&s&&s.stateNode===u){var d=V0((u[bt]||null).action),x=l.submitter;x&&(t=(t=x[bt]||null)?V0(t.formAction):x.getAttribute("formAction"),t!==null&&(d=t,x=null));var S=new Rl("action","action",null,l,u);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Da!==0){var A=x?_0(u,x):new FormData(u);Nu(s,{pending:!0,data:A,method:u.method,action:d},null,A)}}else typeof d=="function"&&(S.preventDefault(),A=x?_0(u,x):new FormData(u),Nu(s,{pending:!0,data:A,method:u.method,action:d},d,A))},currentTarget:u}]})}}for(var lc=0;lc<Go.length;lc++){var rc=Go[lc],yb=rc.toLowerCase(),xb=rc[0].toUpperCase()+rc.slice(1);$t(yb,"on"+xb)}$t(yh,"onAnimationEnd"),$t(xh,"onAnimationIteration"),$t(vh,"onAnimationStart"),$t("dblclick","onDoubleClick"),$t("focusin","onFocus"),$t("focusout","onBlur"),$t(Bv,"onTransitionRun"),$t(Uv,"onTransitionStart"),$t(Vv,"onTransitionCancel"),$t(bh,"onTransitionEnd"),Xa("onMouseEnter",["mouseout","mouseover"]),Xa("onMouseLeave",["mouseout","mouseover"]),Xa("onPointerEnter",["pointerout","pointerover"]),Xa("onPointerLeave",["pointerout","pointerover"]),ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="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(" "),vb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ri));function k0(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 d=void 0;if(t)for(var x=l.length-1;0<=x;x--){var S=l[x],A=S.instance,B=S.currentTarget;if(S=S.listener,A!==d&&u.isPropagationStopped())break e;d=S,u.currentTarget=B;try{d(u)}catch(q){er(q)}u.currentTarget=null,d=A}else for(x=0;x<l.length;x++){if(S=l[x],A=S.instance,B=S.currentTarget,S=S.listener,A!==d&&u.isPropagationStopped())break e;d=S,u.currentTarget=B;try{d(u)}catch(q){er(q)}u.currentTarget=null,d=A}}}}function be(e,t){var s=t[bo];s===void 0&&(s=t[bo]=new Set);var l=e+"__bubble";s.has(l)||(H0(t,e,2,!1),s.add(l))}function oc(e,t,s){var l=0;t&&(l|=4),H0(s,e,l,t)}var mr="_reactListening"+Math.random().toString(36).slice(2);function uc(e){if(!e[mr]){e[mr]=!0,Ld.forEach(function(s){s!=="selectionchange"&&(vb.has(s)||oc(s,!1,e),oc(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mr]||(t[mr]=!0,oc("selectionchange",!1,t))}}function H0(e,t,s,l){switch(cp(t)){case 2:var u=Kb;break;case 8:u=Zb;break;default:u=jc}s=u.bind(null,t,s,e),u=void 0,!Mo||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 cc(e,t,s,l,u){var d=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 A=x.tag;if((A===3||A===4)&&x.stateNode.containerInfo===u)return;x=x.return}for(;S!==null;){if(x=Pa(S),x===null)return;if(A=x.tag,A===5||A===6||A===26||A===27){l=d=x;continue e}S=S.parentNode}}l=l.return}Zd(function(){var B=d,q=Co(s),Y=[];e:{var U=Sh.get(e);if(U!==void 0){var V=Rl,re=e;switch(e){case"keypress":if(El(s)===0)break e;case"keydown":case"keyup":V=hv;break;case"focusin":re="focus",V=Bo;break;case"focusout":re="blur",V=Bo;break;case"beforeblur":case"afterblur":V=Bo;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":V=$d;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=tv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=gv;break;case yh:case xh:case vh:V=sv;break;case bh:V=xv;break;case"scroll":case"scrollend":V=I1;break;case"wheel":V=bv;break;case"copy":case"cut":case"paste":V=lv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Wd;break;case"toggle":case"beforetoggle":V=wv}var se=(t&4)!==0,Le=!se&&(e==="scroll"||e==="scrollend"),O=se?U!==null?U+"Capture":null:U;se=[];for(var C=B,L;C!==null;){var P=C;if(L=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||L===null||O===null||(P=Zs(C,O),P!=null&&se.push(Ci(C,P,L))),Le)break;C=C.return}0<se.length&&(U=new V(U,re,null,s,q),Y.push({event:U,listeners:se}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",U&&s!==Ro&&(re=s.relatedTarget||s.fromElement)&&(Pa(re)||re[qa]))break e;if((V||U)&&(U=q.window===q?q:(U=q.ownerDocument)?U.defaultView||U.parentWindow:window,V?(re=s.relatedTarget||s.toElement,V=B,re=re?Pa(re):null,re!==null&&(Le=c(re),se=re.tag,re!==Le||se!==5&&se!==27&&se!==6)&&(re=null)):(V=null,re=B),V!==re)){if(se=$d,P="onMouseLeave",O="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(se=Wd,P="onPointerLeave",O="onPointerEnter",C="pointer"),Le=V==null?U:Ks(V),L=re==null?U:Ks(re),U=new se(P,C+"leave",V,s,q),U.target=Le,U.relatedTarget=L,P=null,Pa(q)===B&&(se=new se(O,C+"enter",re,s,q),se.target=L,se.relatedTarget=Le,P=se),Le=P,V&&re)t:{for(se=V,O=re,C=0,L=se;L;L=ws(L))C++;for(L=0,P=O;P;P=ws(P))L++;for(;0<C-L;)se=ws(se),C--;for(;0<L-C;)O=ws(O),L--;for(;C--;){if(se===O||O!==null&&se===O.alternate)break t;se=ws(se),O=ws(O)}se=null}else se=null;V!==null&&q0(Y,U,V,se,!1),re!==null&&Le!==null&&q0(Y,Le,re,se,!0)}}e:{if(U=B?Ks(B):window,V=U.nodeName&&U.nodeName.toLowerCase(),V==="select"||V==="input"&&U.type==="file")var te=lh;else if(sh(U))if(rh)te=Ov;else{te=Dv;var xe=Cv}else V=U.nodeName,!V||V.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&Ao(B.elementType)&&(te=lh):te=Mv;if(te&&(te=te(e,B))){ih(Y,te,s,q);break e}xe&&xe(e,U,B),e==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&Eo(U,"number",U.value)}switch(xe=B?Ks(B):window,e){case"focusin":(sh(xe)||xe.contentEditable==="true")&&(Wa=xe,qo=B,ti=null);break;case"focusout":ti=qo=Wa=null;break;case"mousedown":Po=!0;break;case"contextmenu":case"mouseup":case"dragend":Po=!1,ph(Y,s,q);break;case"selectionchange":if(zv)break;case"keydown":case"keyup":ph(Y,s,q)}var ne;if(Vo)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 Ja?nh(e,s)&&(ie="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(ie="onCompositionStart");ie&&(Id&&s.locale!=="ko"&&(Ja||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&Ja&&(ne=Fd()):(kn=q,Oo="value"in kn?kn.value:kn.textContent,Ja=!0)),xe=pr(B,ie),0<xe.length&&(ie=new Jd(ie,e,null,s,q),Y.push({event:ie,listeners:xe}),ne?ie.data=ne:(ne=ah(s),ne!==null&&(ie.data=ne)))),(ne=Tv?Nv(e,s):Ev(e,s))&&(ie=pr(B,"onBeforeInput"),0<ie.length&&(xe=new Jd("onBeforeInput","beforeinput",null,s,q),Y.push({event:xe,listeners:ie}),xe.data=ne)),gb(Y,e,B,s,q)}k0(Y,t)})}function Ci(e,t,s){return{instance:e,listener:t,currentTarget:s}}function pr(e,t){for(var s=t+"Capture",l=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=Zs(e,s),u!=null&&l.unshift(Ci(e,u,d)),u=Zs(e,t),u!=null&&l.push(Ci(e,u,d))),e.tag===3)return l;e=e.return}return[]}function ws(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function q0(e,t,s,l,u){for(var d=t._reactName,x=[];s!==null&&s!==l;){var S=s,A=S.alternate,B=S.stateNode;if(S=S.tag,A!==null&&A===l)break;S!==5&&S!==26&&S!==27||B===null||(A=B,u?(B=Zs(s,d),B!=null&&x.unshift(Ci(s,B,A))):u||(B=Zs(s,d),B!=null&&x.push(Ci(s,B,A)))),s=s.return}x.length!==0&&e.push({event:t,listeners:x})}var bb=/\r\n?/g,Sb=/\u0000|\uFFFD/g;function P0(e){return(typeof e=="string"?e:""+e).replace(bb,`
|
|
49
|
+
`).replace(Sb,"")}function Y0(e,t){return t=P0(t),P0(e)===t}function gr(){}function Oe(e,t,s,l,u,d){switch(s){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Fa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Fa(e,""+l);break;case"className":Sl(e,"class",l);break;case"tabIndex":Sl(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Sl(e,s,l);break;case"style":Xd(e,l,d);break;case"data":if(t!=="object"){Sl(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=Tl(""+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 d=="function"&&(s==="formAction"?(t!=="input"&&Oe(e,t,"name",u.name,u,null),Oe(e,t,"formEncType",u.formEncType,u,null),Oe(e,t,"formMethod",u.formMethod,u,null),Oe(e,t,"formTarget",u.formTarget,u,null)):(Oe(e,t,"encType",u.encType,u,null),Oe(e,t,"method",u.method,u,null),Oe(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=Tl(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=gr);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=Tl(""+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),bl(e,"popover",l);break;case"xlinkActuate":gn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":gn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":gn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":gn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":gn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":gn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":gn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":gn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":gn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":bl(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=J1.get(s)||s,bl(e,s,l))}}function fc(e,t,s,l,u,d){switch(s){case"style":Xd(e,l,d);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"?Fa(e,l):(typeof l=="number"||typeof l=="bigint")&&Fa(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=gr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zd.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),t=s.slice(2,u?s.length-7:void 0),d=e[bt]||null,d=d!=null?d[s]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof l=="function")){typeof d!="function"&&d!==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,""):bl(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,d;for(d in s)if(s.hasOwnProperty(d)){var x=s[d];if(x!=null)switch(d){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Oe(e,t,d,x,s,null)}}u&&Oe(e,t,"srcSet",s.srcSet,s,null),l&&Oe(e,t,"src",s.src,s,null);return;case"input":be("invalid",e);var S=d=x=u=null,A=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":A=q;break;case"defaultChecked":B=q;break;case"value":d=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:Oe(e,t,l,q,s,null)}}qd(e,d,S,A,B,x,u,!1),wl(e);return;case"select":be("invalid",e),l=x=d=null;for(u in s)if(s.hasOwnProperty(u)&&(S=s[u],S!=null))switch(u){case"value":d=S;break;case"defaultValue":x=S;break;case"multiple":l=S;default:Oe(e,t,u,S,s,null)}t=d,s=x,e.multiple=!!l,t!=null?Za(e,!!l,t,!1):s!=null&&Za(e,!!l,s,!0);return;case"textarea":be("invalid",e),d=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":d=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(r(91));break;default:Oe(e,t,x,S,s,null)}Yd(e,l,u,d),wl(e);return;case"option":for(A in s)if(s.hasOwnProperty(A)&&(l=s[A],l!=null))switch(A){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Oe(e,t,A,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<Ri.length;l++)be(Ri[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:Oe(e,t,B,l,s,null)}return;default:if(Ao(t)){for(q in s)s.hasOwnProperty(q)&&(l=s[q],l!==void 0&&fc(e,t,q,l,s,void 0));return}}for(S in s)s.hasOwnProperty(S)&&(l=s[S],l!=null&&Oe(e,t,S,l,s,null))}function wb(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,d=null,x=null,S=null,A=null,B=null,q=null;for(V in s){var Y=s[V];if(s.hasOwnProperty(V)&&Y!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":A=Y;default:l.hasOwnProperty(V)||Oe(e,t,V,null,l,Y)}}for(var U in l){var V=l[U];if(Y=s[U],l.hasOwnProperty(U)&&(V!=null||Y!=null))switch(U){case"type":d=V;break;case"name":u=V;break;case"checked":B=V;break;case"defaultChecked":q=V;break;case"value":x=V;break;case"defaultValue":S=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,t));break;default:V!==Y&&Oe(e,t,U,V,l,Y)}}No(e,x,S,A,B,q,d,u);return;case"select":V=x=S=U=null;for(d in s)if(A=s[d],s.hasOwnProperty(d)&&A!=null)switch(d){case"value":break;case"multiple":V=A;default:l.hasOwnProperty(d)||Oe(e,t,d,null,l,A)}for(u in l)if(d=l[u],A=s[u],l.hasOwnProperty(u)&&(d!=null||A!=null))switch(u){case"value":U=d;break;case"defaultValue":S=d;break;case"multiple":x=d;default:d!==A&&Oe(e,t,u,d,l,A)}t=S,s=x,l=V,U!=null?Za(e,!!s,U,!1):!!l!=!!s&&(t!=null?Za(e,!!s,t,!0):Za(e,!!s,s?[]:"",!1));return;case"textarea":V=U=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:Oe(e,t,S,null,l,u)}for(x in l)if(u=l[x],d=s[x],l.hasOwnProperty(x)&&(u!=null||d!=null))switch(x){case"value":U=u;break;case"defaultValue":V=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==d&&Oe(e,t,x,u,l,d)}Pd(e,U,V);return;case"option":for(var re in s)if(U=s[re],s.hasOwnProperty(re)&&U!=null&&!l.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Oe(e,t,re,null,l,U)}for(A in l)if(U=l[A],V=s[A],l.hasOwnProperty(A)&&U!==V&&(U!=null||V!=null))switch(A){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Oe(e,t,A,U,l,V)}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)U=s[se],s.hasOwnProperty(se)&&U!=null&&!l.hasOwnProperty(se)&&Oe(e,t,se,null,l,U);for(B in l)if(U=l[B],V=s[B],l.hasOwnProperty(B)&&U!==V&&(U!=null||V!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:Oe(e,t,B,U,l,V)}return;default:if(Ao(t)){for(var Le in s)U=s[Le],s.hasOwnProperty(Le)&&U!==void 0&&!l.hasOwnProperty(Le)&&fc(e,t,Le,void 0,l,U);for(q in l)U=l[q],V=s[q],!l.hasOwnProperty(q)||U===V||U===void 0&&V===void 0||fc(e,t,q,U,l,V);return}}for(var O in s)U=s[O],s.hasOwnProperty(O)&&U!=null&&!l.hasOwnProperty(O)&&Oe(e,t,O,null,l,U);for(Y in l)U=l[Y],V=s[Y],!l.hasOwnProperty(Y)||U===V||U==null&&V==null||Oe(e,t,Y,U,l,V)}var dc=null,hc=null;function yr(e){return e.nodeType===9?e:e.ownerDocument}function G0(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 X0(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 mc(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 pc=null;function jb(){var e=window.event;return e&&e.type==="popstate"?e===pc?!1:(pc=e,!0):(pc=null,!1)}var K0=typeof setTimeout=="function"?setTimeout:void 0,Tb=typeof clearTimeout=="function"?clearTimeout:void 0,Z0=typeof Promise=="function"?Promise:void 0,Nb=typeof queueMicrotask=="function"?queueMicrotask:typeof Z0!="undefined"?function(e){return Z0.resolve(null).then(e).catch(Eb)}:K0;function Eb(e){setTimeout(function(){throw e})}function ta(e){return e==="head"}function F0(e,t){var s=t,l=0,u=0;do{var d=s.nextSibling;if(e.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(0<l&&8>l){s=l;var x=e.ownerDocument;if(s&1&&Di(x.documentElement),s&2&&Di(x.body),s&4)for(s=x.head,Di(s),x=s.firstChild;x;){var S=x.nextSibling,A=x.nodeName;x[Xs]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&x.rel.toLowerCase()==="stylesheet"||s.removeChild(x),x=S}}if(u===0){e.removeChild(d),_i(t);return}u--}else s==="$"||s==="$?"||s==="$!"?u++:l=s.charCodeAt(0)-48;else l=0;s=d}while(s);_i(t)}function gc(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":gc(s),So(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function Ab(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[Xs])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==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(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Wt(e.nextSibling),e===null)break}return null}function Rb(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=Wt(e.nextSibling),e===null))return null;return e}function yc(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 Wt(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 xc=null;function Q0(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 $0(e,t,s){switch(t=yr(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 Di(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);So(e)}var Xt=new Map,J0=new Set;function xr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dn=F.d;F.d={f:Db,r:Mb,D:Ob,C:Lb,L:zb,m:Bb,X:Vb,S:Ub,M:_b};function Db(){var e=Dn.f(),t=ur();return e||t}function Mb(e){var t=Ya(e);t!==null&&t.tag===5&&t.type==="form"?ym(t):Dn.r(e)}var js=typeof document=="undefined"?null:document;function W0(e,t,s){var l=js;if(l&&typeof t=="string"&&t){var u=_t(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),J0.has(u)||(J0.add(u),e={rel:e,crossOrigin:s,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),ft(t,"link",e),at(t),l.head.appendChild(t)))}}function Ob(e){Dn.D(e),W0("dns-prefetch",e,null)}function Lb(e,t){Dn.C(e,t),W0("preconnect",e,t)}function zb(e,t,s){Dn.L(e,t,s);var l=js;if(l&&e&&t){var u='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+_t(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+_t(s.imageSizes)+'"]')):u+='[href="'+_t(e)+'"]';var d=u;switch(t){case"style":d=Ts(e);break;case"script":d=Ns(e)}Xt.has(d)||(e=y({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),Xt.set(d,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Mi(d))||t==="script"&&l.querySelector(Oi(d))||(t=l.createElement("link"),ft(t,"link",e),at(t),l.head.appendChild(t)))}}function Bb(e,t){Dn.m(e,t);var s=js;if(s&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+_t(l)+'"][href="'+_t(e)+'"]',d=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Ns(e)}if(!Xt.has(d)&&(e=y({rel:"modulepreload",href:e},t),Xt.set(d,e),s.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Oi(d)))return}l=s.createElement("link"),ft(l,"link",e),at(l),s.head.appendChild(l)}}}function Ub(e,t,s){Dn.S(e,t,s);var l=js;if(l&&e){var u=Ga(l).hoistableStyles,d=Ts(e);t=t||"default";var x=u.get(d);if(!x){var S={loading:0,preload:null};if(x=l.querySelector(Mi(d)))S.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},s),(s=Xt.get(d))&&vc(e,s);var A=x=l.createElement("link");at(A),ft(A,"link",e),A._p=new Promise(function(B,q){A.onload=B,A.onerror=q}),A.addEventListener("load",function(){S.loading|=1}),A.addEventListener("error",function(){S.loading|=2}),S.loading|=4,vr(x,t,l)}x={type:"stylesheet",instance:x,count:1,state:S},u.set(d,x)}}}function Vb(e,t){Dn.X(e,t);var s=js;if(s&&e){var l=Ga(s).hoistableScripts,u=Ns(e),d=l.get(u);d||(d=s.querySelector(Oi(u)),d||(e=y({src:e,async:!0},t),(t=Xt.get(u))&&bc(e,t),d=s.createElement("script"),at(d),ft(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(u,d))}}function _b(e,t){Dn.M(e,t);var s=js;if(s&&e){var l=Ga(s).hoistableScripts,u=Ns(e),d=l.get(u);d||(d=s.querySelector(Oi(u)),d||(e=y({src:e,async:!0,type:"module"},t),(t=Xt.get(u))&&bc(e,t),d=s.createElement("script"),at(d),ft(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(u,d))}}function I0(e,t,s,l){var u=(u=ue.current)?xr(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=Ts(s.href),s=Ga(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=Ts(s.href);var d=Ga(u).hoistableStyles,x=d.get(e);if(x||(u=u.ownerDocument||u,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=u.querySelector(Mi(e)))&&!d._p&&(x.instance=d,x.state.loading=5),Xt.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},Xt.set(e,s),d||kb(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=Ns(s),s=Ga(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 Ts(e){return'href="'+_t(e)+'"'}function Mi(e){return'link[rel="stylesheet"]['+e+"]"}function ep(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function kb(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),at(t),e.head.appendChild(t))}function Ns(e){return'[src="'+_t(e)+'"]'}function Oi(e){return"script[async]"+e}function tp(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+_t(s.href)+'"]');if(l)return t.instance=l,at(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"),at(l),ft(l,"style",u),vr(l,s.precedence,e),t.instance=l;case"stylesheet":u=Ts(s.href);var d=e.querySelector(Mi(u));if(d)return t.state.loading|=4,t.instance=d,at(d),d;l=ep(s),(u=Xt.get(u))&&vc(l,u),d=(e.ownerDocument||e).createElement("link"),at(d);var x=d;return x._p=new Promise(function(S,A){x.onload=S,x.onerror=A}),ft(d,"link",l),t.state.loading|=4,vr(d,s.precedence,e),t.instance=d;case"script":return d=Ns(s.src),(u=e.querySelector(Oi(d)))?(t.instance=u,at(u),u):(l=s,(u=Xt.get(d))&&(l=y({},s),bc(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),at(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,vr(l,s.precedence,e));return t.instance}function vr(e,t,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,d=u,x=0;x<l.length;x++){var S=l[x];if(S.dataset.precedence===t)d=S;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var br=null;function np(e,t,s){if(br===null){var l=new Map,u=br=new Map;u.set(s,l)}else u=br,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 d=s[u];if(!(d[Xs]||d[ht]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(t)||"";x=e+x;var S=l.get(x);S?S.push(d):l.set(x,[d])}}return l}function ap(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function Hb(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 sp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Li=null;function qb(){}function Pb(e,t,s){if(Li===null)throw Error(r(475));var l=Li;if(t.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=Ts(s.href),d=e.querySelector(Mi(u));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Sr.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=d,at(d);return}d=e.ownerDocument||e,s=ep(s),(u=Xt.get(u))&&vc(s,u),d=d.createElement("link"),at(d);var x=d;x._p=new Promise(function(S,A){x.onload=S,x.onerror=A}),ft(d,"link",s),t.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=Sr.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function Yb(){if(Li===null)throw Error(r(475));var e=Li;return e.stylesheets&&e.count===0&&Sc(e,e.stylesheets),0<e.count?function(t){var s=setTimeout(function(){if(e.stylesheets&&Sc(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 Sr(){if(this.count--,this.count===0){if(this.stylesheets)Sc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var wr=null;function Sc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wr=new Map,t.forEach(Gb,e),wr=null,Sr.call(e))}function Gb(e,t){if(!(t.state.loading&4)){var s=wr.get(e);if(s)var l=s.get(null);else{s=new Map,wr.set(e,s);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var x=u[d];(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"),d=s.get(x)||l,d===l&&s.set(null,u),s.set(x,u),this.count++,l=Sr.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var zi={$$typeof:M,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Xb(e,t,s,l,u,d,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=yo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yo(0),this.hiddenUpdates=yo(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function ip(e,t,s,l,u,d,x,S,A,B,q,Y){return e=new Xb(e,t,s,x,S,A,B,Y),t=1,d===!0&&(t|=24),d=Mt(3,null,null,t),e.current=d,d.stateNode=e,t=nu(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:s,cache:t},lu(d),e}function lp(e){return e?(e=ns,e):ns}function rp(e,t,s,l,u,d){u=lp(u),l.context===null?l.context=u:l.pendingContext=u,l=Pn(t),l.payload={element:s},d=d===void 0?null:d,d!==null&&(l.callback=d),s=Yn(e,l,t),s!==null&&(Ut(s,e,t),ci(s,e,t))}function op(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function wc(e,t){op(e,t),(e=e.alternate)&&op(e,t)}function up(e){if(e.tag===13){var t=ts(e,67108864);t!==null&&Ut(t,e,67108864),wc(e,67108864)}}var jr=!0;function Kb(e,t,s,l){var u=H.T;H.T=null;var d=F.p;try{F.p=2,jc(e,t,s,l)}finally{F.p=d,H.T=u}}function Zb(e,t,s,l){var u=H.T;H.T=null;var d=F.p;try{F.p=8,jc(e,t,s,l)}finally{F.p=d,H.T=u}}function jc(e,t,s,l){if(jr){var u=Tc(l);if(u===null)cc(e,t,l,Tr,s),fp(e,l);else if(Qb(u,e,t,s,l))l.stopPropagation();else if(fp(e,l),t&4&&-1<Fb.indexOf(e)){for(;u!==null;){var d=Ya(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=ha(d.pendingLanes);if(x!==0){var S=d;for(S.pendingLanes|=2,S.entangledLanes|=2;x;){var A=1<<31-Ct(x);S.entanglements[1]|=A,x&=~A}un(d),(Re&6)===0&&(rr=an()+500,Ai(0))}}break;case 13:S=ts(d,2),S!==null&&Ut(S,d,2),ur(),wc(d,2)}if(d=Tc(l),d===null&&cc(e,t,l,Tr,s),d===u)break;u=d}u!==null&&l.stopPropagation()}else cc(e,t,l,null,s)}}function Tc(e){return e=Co(e),Nc(e)}var Tr=null;function Nc(e){if(Tr=null,e=Pa(e),e!==null){var t=c(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=f(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 Tr=e,null}function cp(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(L1()){case Td:return 2;case Nd:return 8;case gl:case z1:return 32;case Ed:return 268435456;default:return 32}default:return 32}}var Ec=!1,na=null,aa=null,sa=null,Bi=new Map,Ui=new Map,ia=[],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 fp(e,t){switch(e){case"focusin":case"focusout":na=null;break;case"dragenter":case"dragleave":aa=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":Bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ui.delete(t.pointerId)}}function Vi(e,t,s,l,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:s,eventSystemFlags:l,nativeEvent:d,targetContainers:[u]},t!==null&&(t=Ya(t),t!==null&&up(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Qb(e,t,s,l,u){switch(t){case"focusin":return na=Vi(na,e,t,s,l,u),!0;case"dragenter":return aa=Vi(aa,e,t,s,l,u),!0;case"mouseover":return sa=Vi(sa,e,t,s,l,u),!0;case"pointerover":var d=u.pointerId;return Bi.set(d,Vi(Bi.get(d)||null,e,t,s,l,u)),!0;case"gotpointercapture":return d=u.pointerId,Ui.set(d,Vi(Ui.get(d)||null,e,t,s,l,u)),!0}return!1}function dp(e){var t=Pa(e.target);if(t!==null){var s=c(t);if(s!==null){if(t=s.tag,t===13){if(t=f(s),t!==null){e.blockedOn=t,P1(e.priority,function(){if(s.tag===13){var l=Bt();l=xo(l);var u=ts(s,l);u!==null&&Ut(u,s,l),wc(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 Nr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=Tc(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);Ro=l,s.target.dispatchEvent(l),Ro=null}else return t=Ya(s),t!==null&&up(t),e.blockedOn=s,!1;t.shift()}return!0}function hp(e,t,s){Nr(e)&&s.delete(t)}function $b(){Ec=!1,na!==null&&Nr(na)&&(na=null),aa!==null&&Nr(aa)&&(aa=null),sa!==null&&Nr(sa)&&(sa=null),Bi.forEach(hp),Ui.forEach(hp)}function Er(e,t){e.blockedOn===t&&(e.blockedOn=null,Ec||(Ec=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$b)))}var Ar=null;function mp(e){Ar!==e&&(Ar=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ar===e&&(Ar=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(Nc(l||s)===null)continue;break}var d=Ya(s);d!==null&&(e.splice(t,3),t-=3,Nu(d,{pending:!0,data:u,method:s.method,action:l},l,u))}}))}function _i(e){function t(A){return Er(A,e)}na!==null&&Er(na,e),aa!==null&&Er(aa,e),sa!==null&&Er(sa,e),Bi.forEach(t),Ui.forEach(t);for(var s=0;s<ia.length;s++){var l=ia[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ia.length&&(s=ia[0],s.blockedOn===null);)dp(s),s.blockedOn===null&&ia.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var u=s[l],d=s[l+1],x=u[bt]||null;if(typeof d=="function")x||mp(s);else if(x){var S=null;if(d&&d.hasAttribute("formAction")){if(u=d,x=d[bt]||null)S=x.formAction;else if(Nc(u)!==null)continue}else S=x.action;typeof S=="function"?s[l+1]=S:(s.splice(l,3),l-=3),mp(s)}}}function Ac(e){this._internalRoot=e}Rr.prototype.render=Ac.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var s=t.current,l=Bt();rp(s,l,e,t,null,null)},Rr.prototype.unmount=Ac.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),ur(),t[qa]=null}};function Rr(e){this._internalRoot=e}Rr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Md();e={blockedOn:null,target:e,priority:t};for(var s=0;s<ia.length&&t!==0&&t<ia[s].priority;s++);ia.splice(s,0,e),s===0&&dp(e)}};var pp=a.version;if(pp!=="19.1.1")throw Error(r(527,pp,"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 Jb={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cr.isDisabled&&Cr.supportsFiber)try{Ps=Cr.inject(Jb),Rt=Cr}catch(e){}}return Hi.createRoot=function(e,t){if(!o(e))throw Error(r(299));var s=!1,l="",u=Mm,d=Om,x=Lm,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&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(S=t.unstable_transitionCallbacks)),t=ip(e,1,!1,null,null,s,l,u,d,x,S,null),e[qa]=t.current,uc(e),new Ac(t)},Hi.hydrateRoot=function(e,t,s){if(!o(e))throw Error(r(299));var l=!1,u="",d=Mm,x=Om,S=Lm,A=null,B=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(d=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(A=s.unstable_transitionCallbacks),s.formState!==void 0&&(B=s.formState)),t=ip(e,1,!0,t,s!=null?s:null,l,u,d,x,S,A,B),t.context=lp(null),s=t.current,l=Bt(),l=xo(l),u=Pn(l),u.callback=null,Yn(s,u,l),s=l,t.current.lanes=s,Gs(t,s),un(t),e[qa]=t.current,uc(e),new Rr(t)},Hi.version="19.1.1",Hi}var Cp;function h2(){if(Cp)return Lc.exports;Cp=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(),Lc.exports=d2(),Lc.exports}var m2=h2();/**
|
|
50
|
+
* react-router v7.8.0
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Dp="popstate";function p2(n={}){function a(r,o){let{pathname:c,search:f,hash:p}=r.location;return sf("",{pathname:c,search:f,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function i(r,o){return typeof o=="string"?o:$i(o)}return y2(a,i,null,n)}function Pe(n,a){if(n===!1||n===null||typeof n=="undefined")throw new Error(a)}function en(n,a){if(!n){typeof console!="undefined"&&console.warn(a);try{throw new Error(a)}catch(i){}}}function g2(){return Math.random().toString(36).substring(2,10)}function Mp(n,a){return{usr:n.state,key:n.key,idx:a}}function sf(n,a,i=null,r){return le(Z({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof a=="string"?Bs(a):a),{state:i,key:a&&a.key||r||g2()})}function $i({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 Bs(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 y2(n,a,i,r={}){let{window:o=document.defaultView,v5Compat:c=!1}=r,f=o.history,p="POP",g=null,m=y();m==null&&(m=0,f.replaceState(le(Z({},f.state),{idx:m}),""));function y(){return(f.state||{idx:null}).idx}function v(){p="POP";let N=y(),D=N==null?null:N-m;m=N,g&&g({action:p,location:E.location,delta:D})}function b(N,D){p="PUSH";let z=sf(E.location,N,D);m=y()+1;let M=Mp(z,m),G=E.createHref(z);try{f.pushState(M,"",G)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(G)}c&&g&&g({action:p,location:E.location,delta:1})}function w(N,D){p="REPLACE";let z=sf(E.location,N,D);m=y();let M=Mp(z,m),G=E.createHref(z);f.replaceState(M,"",G),c&&g&&g({action:p,location:E.location,delta:0})}function T(N){return x2(N)}let E={get action(){return p},get location(){return n(o,f)},listen(N){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(Dp,v),g=N,()=>{o.removeEventListener(Dp,v),g=null}},createHref(N){return a(o,N)},createURL:T,encodeLocation(N){let D=T(N);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:b,replace:w,go(N){return f.go(N)}};return E}function x2(n,a=!1){let i="http://localhost";typeof window!="undefined"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),Pe(i,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:$i(n);return r=r.replace(/ $/,"%20"),!a&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function uy(n,a,i="/"){return v2(n,a,i,!1)}function v2(n,a,i,r){let o=typeof a=="string"?Bs(a):a,c=On(o.pathname||"/",i);if(c==null)return null;let f=cy(n);b2(f);let p=null;for(let g=0;p==null&&g<f.length;++g){let m=M2(c);p=C2(f[g],m,r)}return p}function cy(n,a=[],i=[],r=""){let o=(c,f,p)=>{let g={relativePath:p===void 0?c.path||"":p,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};g.relativePath.startsWith("/")&&(Pe(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=Mn([r,g.relativePath]),y=i.concat(g);c.children&&c.children.length>0&&(Pe(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),cy(c.children,a,y,m)),!(c.path==null&&!c.index)&&a.push({path:m,score:A2(m,c.index),routesMeta:y})};return n.forEach((c,f)=>{var p;if(c.path===""||!((p=c.path)!=null&&p.includes("?")))o(c,f);else for(let g of fy(c.path))o(c,f,g)}),a}function fy(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 f=fy(r.join("/")),p=[];return p.push(...f.map(g=>g===""?c:[c,g].join("/"))),o&&p.push(...f),p.map(g=>n.startsWith("/")&&g===""?"/":g)}function b2(n){n.sort((a,i)=>a.score!==i.score?i.score-a.score:R2(a.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var S2=/^:[\w-]+$/,w2=3,j2=2,T2=1,N2=10,E2=-2,Op=n=>n==="*";function A2(n,a){let i=n.split("/"),r=i.length;return i.some(Op)&&(r+=E2),a&&(r+=j2),i.filter(o=>!Op(o)).reduce((o,c)=>o+(S2.test(c)?w2:c===""?T2:N2),r)}function R2(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="/",f=[];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=Kr({path:g.relativePath,caseSensitive:g.caseSensitive,end:m},y),b=g.route;if(!v&&m&&i&&!r[r.length-1].route.index&&(v=Kr({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),f.push({params:o,pathname:Mn([c,v.pathname]),pathnameBase:B2(Mn([c,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(c=Mn([c,v.pathnameBase]))}return f}function Kr(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,r]=D2(n.path,n.caseSensitive,n.end),o=a.match(i);if(!o)return null;let c=o[0],f=c.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:r.reduce((m,{paramName:y,isOptional:v},b)=>{if(y==="*"){let T=p[b]||"";f=c.slice(0,c.length-T.length).replace(/(.)\/+$/,"$1")}const w=p[b];return v&&!w?m[y]=void 0:m[y]=(w||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:f,pattern:n}}function D2(n,a=!1,i=!0){en(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,(f,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 M2(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return en(!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 On(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 O2(n,a="/"){let{pathname:i,search:r="",hash:o=""}=typeof n=="string"?Bs(n):n;return{pathname:i?i.startsWith("/")?i:L2(i,a):a,search:U2(r),hash:V2(o)}}function L2(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 Vc(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 z2(n){return n.filter((a,i)=>i===0||a.route.path&&a.route.path.length>0)}function dy(n){let a=z2(n);return a.map((i,r)=>r===a.length-1?i.pathname:i.pathnameBase)}function hy(n,a,i,r=!1){let o;typeof n=="string"?o=Bs(n):(o=Z({},n),Pe(!o.pathname||!o.pathname.includes("?"),Vc("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),Vc("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),Vc("#","search","hash",o)));let c=n===""||o.pathname==="",f=c?"/":o.pathname,p;if(f==null)p=i;else{let v=a.length-1;if(!r&&f.startsWith("..")){let b=f.split("/");for(;b[0]==="..";)b.shift(),v-=1;o.pathname=b.join("/")}p=v>=0?a[v]:"/"}let g=O2(o,p),m=f&&f!=="/"&&f.endsWith("/"),y=(c||f===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(m||y)&&(g.pathname+="/"),g}var Mn=n=>n.join("/").replace(/\/\/+/g,"/"),B2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),U2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,V2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function _2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var my=["POST","PUT","PATCH","DELETE"];new Set(my);var k2=["GET",...my];new Set(k2);var Us=j.createContext(null);Us.displayName="DataRouter";var to=j.createContext(null);to.displayName="DataRouterState";j.createContext(!1);var py=j.createContext({isTransitioning:!1});py.displayName="ViewTransition";var H2=j.createContext(new Map);H2.displayName="Fetchers";var q2=j.createContext(null);q2.displayName="Await";var pn=j.createContext(null);pn.displayName="Navigation";var sl=j.createContext(null);sl.displayName="Location";var Bn=j.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var Uf=j.createContext(null);Uf.displayName="RouteError";function P2(n,{relative:a}={}){Pe(il(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=j.useContext(pn),{hash:o,pathname:c,search:f}=rl(n,{relative:a}),p=c;return i!=="/"&&(p=c==="/"?i:Mn([i,c])),r.createHref({pathname:p,search:f,hash:o})}function il(){return j.useContext(sl)!=null}function fa(){return Pe(il(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(sl).location}var gy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yy(n){j.useContext(pn).static||j.useLayoutEffect(n)}function ll(){let{isDataRoute:n}=j.useContext(Bn);return n?tS():Y2()}function Y2(){Pe(il(),"useNavigate() may be used only in the context of a <Router> component.");let n=j.useContext(Us),{basename:a,navigator:i}=j.useContext(pn),{matches:r}=j.useContext(Bn),{pathname:o}=fa(),c=JSON.stringify(dy(r)),f=j.useRef(!1);return yy(()=>{f.current=!0}),j.useCallback((g,m={})=>{if(en(f.current,gy),!f.current)return;if(typeof g=="number"){i.go(g);return}let y=hy(g,JSON.parse(c),o,m.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:Mn([a,y.pathname])),(m.replace?i.replace:i.push)(y,m.state,m)},[a,i,c,o,n])}j.createContext(null);function rl(n,{relative:a}={}){let{matches:i}=j.useContext(Bn),{pathname:r}=fa(),o=JSON.stringify(dy(i));return j.useMemo(()=>hy(n,JSON.parse(o),r,a==="path"),[n,o,r,a])}function G2(n,a){return xy(n,a)}function xy(n,a,i,r){var D;Pe(il(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=j.useContext(pn),{matches:c}=j.useContext(Bn),f=c[c.length-1],p=f?f.params:{},g=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let z=y&&y.path||"";vy(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
|
+
|
|
60
|
+
Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let v=fa(),b;if(a){let z=typeof a=="string"?Bs(a):a;Pe(m==="/"||((D=z.pathname)==null?void 0:D.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 w=b.pathname||"/",T=w;if(m!=="/"){let z=m.replace(/^\//,"").split("/");T="/"+w.replace(/^\//,"").split("/").slice(z.length).join("/")}let E=uy(n,{pathname:T});en(y||E!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),en(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.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 N=Q2(E&&E.map(z=>Object.assign({},z,{params:Object.assign({},p,z.params),pathname:Mn([m,o.encodeLocation?o.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?m:Mn([m,o.encodeLocation?o.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),c,i,r);return a&&N?j.createElement(sl.Provider,{value:{location:Z({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:"POP"}},N):N}function X2(){let n=eS(),a=_2(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},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:c},"ErrorBoundary")," or"," ",j.createElement("code",{style:c},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},a),i?j.createElement("pre",{style:o},i):null,f)}var K2=j.createElement(X2,null),Z2=class extends j.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?j.createElement(Bn.Provider,{value:this.props.routeContext},j.createElement(Uf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function F2({routeContext:n,match:a,children:i}){let r=j.useContext(Us);return r&&r.static&&r.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=a.route.id),j.createElement(Bn.Provider,{value:n},i)}function Q2(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);Pe(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 f=!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){f=!0,p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}return o.reduceRight((g,m,y)=>{let v,b=!1,w=null,T=null;i&&(v=c&&m.route.id?c[m.route.id]:void 0,w=m.route.errorElement||K2,f&&(p<0&&y===0?(vy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,T=null):p===y&&(b=!0,T=m.route.hydrateFallbackElement||null)));let E=a.concat(o.slice(0,y+1)),N=()=>{let D;return v?D=w:b?D=T:m.route.Component?D=j.createElement(m.route.Component,null):m.route.element?D=m.route.element:D=g,j.createElement(F2,{match:m,routeContext:{outlet:g,matches:E,isDataRoute:i!=null},children:D})};return i&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?j.createElement(Z2,{location:i.location,revalidation:i.revalidation,component:w,error:v,children:N(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):N()},null)}function Vf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $2(n){let a=j.useContext(Us);return Pe(a,Vf(n)),a}function J2(n){let a=j.useContext(to);return Pe(a,Vf(n)),a}function W2(n){let a=j.useContext(Bn);return Pe(a,Vf(n)),a}function _f(n){let a=W2(n),i=a.matches[a.matches.length-1];return Pe(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function I2(){return _f("useRouteId")}function eS(){var r;let n=j.useContext(Uf),a=J2("useRouteError"),i=_f("useRouteError");return n!==void 0?n:(r=a.errors)==null?void 0:r[i]}function tS(){let{router:n}=$2("useNavigate"),a=_f("useNavigate"),i=j.useRef(!1);return yy(()=>{i.current=!0}),j.useCallback((f,...p)=>Ae(null,[f,...p],function*(o,c={}){en(i.current,gy),i.current&&(typeof o=="number"?n.navigate(o):yield n.navigate(o,Z({fromRouteId:a},c)))}),[n,a])}var Lp={};function vy(n,a,i){!a&&!Lp[n]&&(Lp[n]=!0,en(!1,i))}j.memo(nS);function nS({routes:n,future:a,state:i}){return xy(n,void 0,i,a)}function fn(n){Pe(!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 aS({basename:n="/",children:a=null,location:i,navigationType:r="POP",navigator:o,static:c=!1}){Pe(!il(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),p=j.useMemo(()=>({basename:f,navigator:o,static:c,future:{}}),[f,o,c]);typeof i=="string"&&(i=Bs(i));let{pathname:g="/",search:m="",hash:y="",state:v=null,key:b="default"}=i,w=j.useMemo(()=>{let T=On(g,f);return T==null?null:{location:{pathname:T,search:m,hash:y,state:v,key:b},navigationType:r}},[f,g,m,y,v,b,r]);return en(w!=null,`<Router basename="${f}"> 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.`),w==null?null:j.createElement(pn.Provider,{value:p},j.createElement(sl.Provider,{children:a,value:w}))}function sS({children:n,location:a}){return G2(lf(n),a)}function lf(n,a=[]){let i=[];return j.Children.forEach(n,(r,o)=>{if(!j.isValidElement(r))return;let c=[...a,o];if(r.type===j.Fragment){i.push.apply(i,lf(r.props.children,c));return}Pe(r.type===fn,`[${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>`),Pe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let f={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&&(f.children=lf(r.props.children,c)),i.push(f)}),i}var Vr="get",_r="application/x-www-form-urlencoded";function no(n){return n!=null&&typeof n.tagName=="string"}function iS(n){return no(n)&&n.tagName.toLowerCase()==="button"}function lS(n){return no(n)&&n.tagName.toLowerCase()==="form"}function rS(n){return no(n)&&n.tagName.toLowerCase()==="input"}function oS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function uS(n,a){return n.button===0&&(!a||a==="_self")&&!oS(n)}function rf(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 cS(n,a){let i=rf(n);return a&&a.forEach((r,o)=>{i.has(o)||a.getAll(o).forEach(c=>{i.append(o,c)})}),i}var Or=null;function fS(){if(Or===null)try{new FormData(document.createElement("form"),0),Or=!1}catch(n){Or=!0}return Or}var dS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _c(n){return n!=null&&!dS.has(n)?(en(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_r}"`),null):n}function hS(n,a){let i,r,o,c,f;if(lS(n)){let p=n.getAttribute("action");r=p?On(p,a):null,i=n.getAttribute("method")||Vr,o=_c(n.getAttribute("enctype"))||_r,c=new FormData(n)}else if(iS(n)||rS(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?On(g,a):null,i=n.getAttribute("formmethod")||p.getAttribute("method")||Vr,o=_c(n.getAttribute("formenctype"))||_c(p.getAttribute("enctype"))||_r,c=new FormData(p,n),!fS()){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(no(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Vr,r=null,o=_r,f=n}return c&&o==="text/plain"&&(f=c,c=void 0),{action:r,method:i.toLowerCase(),encType:o,formData:c,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function kf(n,a){if(n===!1||n===null||typeof n=="undefined")throw new Error(a)}function mS(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&&On(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.${i}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${i}`,r}function pS(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 gS(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 yS(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 f=yield pS(c,i);return f.links?f.links():[]}return[]})));return SS(r.flat(1).filter(gS).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?le(Z({},o),{rel:"prefetch",as:"style"}):le(Z({},o),{rel:"prefetch"})))})}function zp(n,a,i,r,o,c){let f=(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)=>f(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(f(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 xS(n,a,{includeHydrateFallback:i}={}){return vS(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 vS(n){return[...new Set(n)]}function bS(n){let a={},i=Object.keys(n).sort();for(let r of i)a[r]=n[r];return a}function SS(n,a){let i=new Set;return new Set(a),n.reduce((r,o)=>{let c=JSON.stringify(bS(o));return i.has(c)||(i.add(c),r.push({key:c,link:o})),r},[])}function by(){let n=j.useContext(Us);return kf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function wS(){let n=j.useContext(to);return kf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Hf=j.createContext(void 0);Hf.displayName="FrameworkContext";function Sy(){let n=j.useContext(Hf);return kf(n,"You must render this element inside a <HydratedRouter> element"),n}function jS(n,a){let i=j.useContext(Hf),[r,o]=j.useState(!1),[c,f]=j.useState(!1),{onFocus:p,onBlur:g,onMouseEnter:m,onMouseLeave:y,onTouchStart:v}=a,b=j.useRef(null);j.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let E=D=>{D.forEach(z=>{f(z.isIntersecting)})},N=new IntersectionObserver(E,{threshold:.5});return b.current&&N.observe(b.current),()=>{N.disconnect()}}},[n]),j.useEffect(()=>{if(r){let E=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(E)}}},[r]);let w=()=>{o(!0)},T=()=>{o(!1),f(!1)};return i?n!=="intent"?[c,b,{}]:[c,b,{onFocus:qi(p,w),onBlur:qi(g,T),onMouseEnter:qi(m,w),onMouseLeave:qi(y,T),onTouchStart:qi(v,w)}]:[!1,b,{}]}function qi(n,a){return i=>{n&&n(i),i.defaultPrevented||a(i)}}function TS(i){var r=i,{page:n}=r,a=rt(r,["page"]);let{router:o}=by(),c=j.useMemo(()=>uy(o.routes,n,o.basename),[o.routes,n,o.basename]);return c?j.createElement(ES,Z({page:n,matches:c},a)):null}function NS(n){let{manifest:a,routeModules:i}=Sy(),[r,o]=j.useState([]);return j.useEffect(()=>{let c=!1;return yS(n,a,i).then(f=>{c||o(f)}),()=>{c=!0}},[n,a,i]),r}function ES(r){var o=r,{page:n,matches:a}=o,i=rt(o,["page","matches"]);let c=fa(),{manifest:f,routeModules:p}=Sy(),{basename:g}=by(),{loaderData:m,matches:y}=wS(),v=j.useMemo(()=>zp(n,a,y,f,c,"data"),[n,a,y,f,c]),b=j.useMemo(()=>zp(n,a,y,f,c,"assets"),[n,a,y,f,c]),w=j.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let N=new Set,D=!1;if(a.forEach(M=>{var _;let G=f.routes[M.route.id];!G||!G.hasLoader||(!v.some(X=>X.route.id===M.route.id)&&M.route.id in m&&((_=p[M.route.id])!=null&&_.shouldRevalidate)||G.hasClientLoader?D=!0:N.add(M.route.id))}),N.size===0)return[];let z=mS(n,g,"data");return D&&N.size>0&&z.searchParams.set("_routes",a.filter(M=>N.has(M.route.id)).map(M=>M.route.id).join(",")),[z.pathname+z.search]},[g,m,c,f,v,a,n,p]),T=j.useMemo(()=>xS(b,f),[b,f]),E=NS(b);return j.createElement(j.Fragment,null,w.map(N=>j.createElement("link",Z({key:N,rel:"prefetch",as:"fetch",href:N},i))),T.map(N=>j.createElement("link",Z({key:N,rel:"modulepreload",href:N},i))),E.map(({key:N,link:D})=>j.createElement("link",Z({key:N,nonce:i.nonce},D))))}function AS(...n){return a=>{n.forEach(i=>{typeof i=="function"?i(a):i!=null&&(i.current=a)})}}var wy=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";try{wy&&(window.__reactRouterVersion="7.8.0")}catch(n){}function RS({basename:n,children:a,window:i}){let r=j.useRef();r.current==null&&(r.current=p2({window:i,v5Compat:!0}));let o=r.current,[c,f]=j.useState({action:o.action,location:o.location}),p=j.useCallback(g=>{j.startTransition(()=>f(g))},[f]);return j.useLayoutEffect(()=>o.listen(p),[o,p]),j.createElement(aS,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:o})}var jy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oa=j.forwardRef(function(T,w){var E=T,{onClick:a,discover:i="render",prefetch:r="none",relative:o,reloadDocument:c,replace:f,state:p,target:g,to:m,preventScrollReset:y,viewTransition:v}=E,b=rt(E,["onClick","discover","prefetch","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"]);let{basename:N}=j.useContext(pn),D=typeof m=="string"&&jy.test(m),z,M=!1;if(typeof m=="string"&&D&&(z=m,wy))try{let ge=new URL(window.location.href),we=m.startsWith("//")?new URL(ge.protocol+m):new URL(m),Be=On(we.pathname,N);we.origin===ge.origin&&Be!=null?m=Be+we.search+we.hash:M=!0}catch(ge){en(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let G=P2(m,{relative:o}),[_,X,$]=jS(r,b),Q=OS(m,{replace:f,state:p,target:g,preventScrollReset:y,relative:o,viewTransition:v});function ce(ge){a&&a(ge),ge.defaultPrevented||Q(ge)}let Te=j.createElement("a",le(Z(Z({},b),$),{href:z||G,onClick:M||c?a:ce,ref:AS(w,X),target:g,"data-discover":!D&&i==="render"?"true":void 0}));return _&&!D?j.createElement(j.Fragment,null,Te,j.createElement(TS,{page:G})):Te});oa.displayName="Link";var CS=j.forwardRef(function(v,y){var b=v,{"aria-current":a="page",caseSensitive:i=!1,className:r="",end:o=!1,style:c,to:f,viewTransition:p,children:g}=b,m=rt(b,["aria-current","caseSensitive","className","end","style","to","viewTransition","children"]);let w=rl(f,{relative:m.relative}),T=fa(),E=j.useContext(to),{navigator:N,basename:D}=j.useContext(pn),z=E!=null&&VS(w)&&p===!0,M=N.encodeLocation?N.encodeLocation(w).pathname:w.pathname,G=T.pathname,_=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;i||(G=G.toLowerCase(),_=_?_.toLowerCase():null,M=M.toLowerCase()),_&&D&&(_=On(_,D)||_);const X=M!=="/"&&M.endsWith("/")?M.length-1:M.length;let $=G===M||!o&&G.startsWith(M)&&G.charAt(X)==="/",Q=_!=null&&(_===M||!o&&_.startsWith(M)&&_.charAt(M.length)==="/"),ce={isActive:$,isPending:Q,isTransitioning:z},Te=$?a:void 0,ge;typeof r=="function"?ge=r(ce):ge=[r,$?"active":null,Q?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let we=typeof c=="function"?c(ce):c;return j.createElement(oa,le(Z({},m),{"aria-current":Te,className:ge,ref:y,style:we,to:f,viewTransition:p}),typeof g=="function"?g(ce):g)});CS.displayName="NavLink";var DS=j.forwardRef((T,w)=>{var E=T,{discover:n="render",fetcherKey:a,navigate:i,reloadDocument:r,replace:o,state:c,method:f=Vr,action:p,onSubmit:g,relative:m,preventScrollReset:y,viewTransition:v}=E,b=rt(E,["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"]);let N=BS(),D=US(p,{relative:m}),z=f.toLowerCase()==="get"?"get":"post",M=typeof p=="string"&&jy.test(p),G=_=>{if(g&&g(_),_.defaultPrevented)return;_.preventDefault();let X=_.nativeEvent.submitter,$=(X==null?void 0:X.getAttribute("formmethod"))||f;N(X||_.currentTarget,{fetcherKey:a,method:$,navigate:i,replace:o,state:c,relative:m,preventScrollReset:y,viewTransition:v})};return j.createElement("form",le(Z({ref:w,method:z,action:D,onSubmit:r?g:G},b),{"data-discover":!M&&n==="render"?"true":void 0}))});DS.displayName="Form";function MS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ty(n){let a=j.useContext(Us);return Pe(a,MS(n)),a}function OS(n,{target:a,replace:i,state:r,preventScrollReset:o,relative:c,viewTransition:f}={}){let p=ll(),g=fa(),m=rl(n,{relative:c});return j.useCallback(y=>{if(uS(y,a)){y.preventDefault();let v=i!==void 0?i:$i(g)===$i(m);p(n,{replace:v,state:r,preventScrollReset:o,relative:c,viewTransition:f})}},[g,p,m,i,r,a,n,o,c,f])}function Ny(n){en(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=j.useRef(rf(n)),i=j.useRef(!1),r=fa(),o=j.useMemo(()=>cS(r.search,i.current?null:a.current),[r.search]),c=ll(),f=j.useCallback((p,g)=>{const m=rf(typeof p=="function"?p(new URLSearchParams(o)):p);i.current=!0,c("?"+m,g)},[c,o]);return[o,f]}var LS=0,zS=()=>`__${String(++LS)}__`;function BS(){let{router:n}=Ty("useSubmit"),{basename:a}=j.useContext(pn),i=I2();return j.useCallback((c,...f)=>Ae(null,[c,...f],function*(r,o={}){let{action:p,method:g,encType:m,formData:y,body:v}=hS(r,a);if(o.navigate===!1){let b=o.fetcherKey||zS();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 US(n,{relative:a}={}){let{basename:i}=j.useContext(pn),r=j.useContext(Bn);Pe(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),c=Z({},rl(n||".",{relative:a})),f=fa();if(n==null){c.search=f.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:Mn([i,c.pathname])),$i(c)}function VS(n,{relative:a}={}){let i=j.useContext(py);Pe(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ty("useViewTransitionState"),o=rl(n,{relative:a});if(!i.isTransitioning)return!1;let c=On(i.currentLocation.pathname,r)||i.currentLocation.pathname,f=On(i.nextLocation.pathname,r)||i.nextLocation.pathname;return Kr(o.pathname,f)!=null||Kr(o.pathname,c)!=null}const _S=()=>{const n=new Date().getFullYear();return h.jsx("footer",{className:"bg-gray-800 text-gray-300 py-6",children:h.jsx("div",{className:"container mx-auto px-4",children:h.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[h.jsxs("div",{className:"mb-4 md:mb-0",children:[h.jsxs("div",{className:"flex items-center",children:[h.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-8 w-8 mr-2"}),h.jsx("span",{className:"font-bold text-white text-lg",children:"AxioDB"})]}),h.jsx("p",{className:"text-sm mt-2",children:"High-performance document database"})]}),h.jsxs("div",{className:"text-sm",children:[h.jsxs("div",{className:"flex space-x-6",children:[h.jsx("a",{href:"/support",className:"hover:text-white transition-colors",children:"Support"}),h.jsx("a",{href:"/api",className:"hover:text-white transition-colors",children:"API"}),h.jsx("a",{href:"/status",className:"hover:text-white transition-colors",children:"Status"})]}),h.jsxs("p",{className:"mt-4 text-xs text-center md:text-right",children:["© ",n," AxioDB, Inc. All rights reserved."]})]})]})})})};function Ey(n,a){return function(){return n.apply(a,arguments)}}const{toString:kS}=Object.prototype,{getPrototypeOf:qf}=Object,{iterator:ao,toStringTag:Ay}=Symbol,so=(n=>a=>{const i=kS.call(a);return n[i]||(n[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),tn=n=>(n=n.toLowerCase(),a=>so(a)===n),io=n=>a=>typeof a===n,{isArray:Vs}=Array,Ji=io("undefined");function ol(n){return n!==null&&!Ji(n)&&n.constructor!==null&&!Ji(n.constructor)&&Et(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Ry=tn("ArrayBuffer");function HS(n){let a;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?a=ArrayBuffer.isView(n):a=n&&n.buffer&&Ry(n.buffer),a}const qS=io("string"),Et=io("function"),Cy=io("number"),ul=n=>n!==null&&typeof n=="object",PS=n=>n===!0||n===!1,kr=n=>{if(so(n)!=="object")return!1;const a=qf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Ay in n)&&!(ao in n)},YS=n=>{if(!ul(n)||ol(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch(a){return!1}},GS=tn("Date"),XS=tn("File"),KS=tn("Blob"),ZS=tn("FileList"),FS=n=>ul(n)&&Et(n.pipe),QS=n=>{let a;return n&&(typeof FormData=="function"&&n instanceof FormData||Et(n.append)&&((a=so(n))==="formdata"||a==="object"&&Et(n.toString)&&n.toString()==="[object FormData]"))},$S=tn("URLSearchParams"),[JS,WS,IS,ew]=["ReadableStream","Request","Response","Headers"].map(tn),tw=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cl(n,a,{allOwnKeys:i=!1}={}){if(n===null||typeof n=="undefined")return;let r,o;if(typeof n!="object"&&(n=[n]),Vs(n))for(r=0,o=n.length;r<o;r++)a.call(null,n[r],r,n);else{if(ol(n))return;const c=i?Object.getOwnPropertyNames(n):Object.keys(n),f=c.length;let p;for(r=0;r<f;r++)p=c[r],a.call(null,n[p],p,n)}}function Dy(n,a){if(ol(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 za=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,My=n=>!Ji(n)&&n!==za;function of(){const{caseless:n}=My(this)&&this||{},a={},i=(r,o)=>{const c=n&&Dy(a,o)||o;kr(a[c])&&kr(r)?a[c]=of(a[c],r):kr(r)?a[c]=of({},r):Vs(r)?a[c]=r.slice():a[c]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&cl(arguments[r],i);return a}const nw=(n,a,i,{allOwnKeys:r}={})=>(cl(a,(o,c)=>{i&&Et(o)?n[c]=Ey(o,i):n[c]=o},{allOwnKeys:r}),n),aw=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),sw=(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)},iw=(n,a,i,r)=>{let o,c,f;const p={};if(a=a||{},n==null)return a;do{for(o=Object.getOwnPropertyNames(n),c=o.length;c-- >0;)f=o[c],(!r||r(f,n,a))&&!p[f]&&(a[f]=n[f],p[f]=!0);n=i!==!1&&qf(n)}while(n&&(!i||i(n,a))&&n!==Object.prototype);return a},lw=(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},rw=n=>{if(!n)return null;if(Vs(n))return n;let a=n.length;if(!Cy(a))return null;const i=new Array(a);for(;a-- >0;)i[a]=n[a];return i},ow=(n=>a=>n&&a instanceof n)(typeof Uint8Array!="undefined"&&qf(Uint8Array)),uw=(n,a)=>{const r=(n&&n[ao]).call(n);let o;for(;(o=r.next())&&!o.done;){const c=o.value;a.call(n,c[0],c[1])}},cw=(n,a)=>{let i;const r=[];for(;(i=n.exec(a))!==null;)r.push(i);return r},fw=tn("HTMLFormElement"),dw=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,r,o){return r.toUpperCase()+o}),Bp=(({hasOwnProperty:n})=>(a,i)=>n.call(a,i))(Object.prototype),hw=tn("RegExp"),Oy=(n,a)=>{const i=Object.getOwnPropertyDescriptors(n),r={};cl(i,(o,c)=>{let f;(f=a(o,c,n))!==!1&&(r[c]=f||o)}),Object.defineProperties(n,r)},mw=n=>{Oy(n,(a,i)=>{if(Et(n)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const r=n[i];if(Et(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+"'")})}})},pw=(n,a)=>{const i={},r=o=>{o.forEach(c=>{i[c]=!0})};return Vs(n)?r(n):r(String(n).split(a)),i},gw=()=>{},yw=(n,a)=>n!=null&&Number.isFinite(n=+n)?n:a;function xw(n){return!!(n&&Et(n.append)&&n[Ay]==="FormData"&&n[ao])}const vw=n=>{const a=new Array(10),i=(r,o)=>{if(ul(r)){if(a.indexOf(r)>=0)return;if(ol(r))return r;if(!("toJSON"in r)){a[o]=r;const c=Vs(r)?[]:{};return cl(r,(f,p)=>{const g=i(f,o+1);!Ji(g)&&(c[p]=g)}),a[o]=void 0,c}}return r};return i(n,0)},bw=tn("AsyncFunction"),Sw=n=>n&&(ul(n)||Et(n))&&Et(n.then)&&Et(n.catch),Ly=((n,a)=>n?setImmediate:a?((i,r)=>(za.addEventListener("message",({source:o,data:c})=>{o===za&&c===i&&r.length&&r.shift()()},!1),o=>{r.push(o),za.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Et(za.postMessage)),ww=typeof queueMicrotask!="undefined"?queueMicrotask.bind(za):typeof process!="undefined"&&process.nextTick||Ly,jw=n=>n!=null&&Et(n[ao]),k={isArray:Vs,isArrayBuffer:Ry,isBuffer:ol,isFormData:QS,isArrayBufferView:HS,isString:qS,isNumber:Cy,isBoolean:PS,isObject:ul,isPlainObject:kr,isEmptyObject:YS,isReadableStream:JS,isRequest:WS,isResponse:IS,isHeaders:ew,isUndefined:Ji,isDate:GS,isFile:XS,isBlob:KS,isRegExp:hw,isFunction:Et,isStream:FS,isURLSearchParams:$S,isTypedArray:ow,isFileList:ZS,forEach:cl,merge:of,extend:nw,trim:tw,stripBOM:aw,inherits:sw,toFlatObject:iw,kindOf:so,kindOfTest:tn,endsWith:lw,toArray:rw,forEachEntry:uw,matchAll:cw,isHTMLForm:fw,hasOwnProperty:Bp,hasOwnProp:Bp,reduceDescriptors:Oy,freezeMethods:mw,toObjectSet:pw,toCamelCase:dw,noop:gw,toFiniteNumber:yw,findKey:Dy,global:za,isContextDefined:My,isSpecCompliantForm:xw,toJSONObject:vw,isAsyncFn:bw,isThenable:Sw,setImmediate:Ly,asap:ww,isIterable:jw};function de(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(de,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 zy=de.prototype,By={};["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=>{By[n]={value:n}});Object.defineProperties(de,By);Object.defineProperty(zy,"isAxiosError",{value:!0});de.from=(n,a,i,r,o,c)=>{const f=Object.create(zy);return k.toFlatObject(n,f,function(g){return g!==Error.prototype},p=>p!=="isAxiosError"),de.call(f,n.message,a,i,r,o),f.cause=n,f.name=n.name,c&&Object.assign(f,c),f};const Tw=null;function uf(n){return k.isPlainObject(n)||k.isArray(n)}function Uy(n){return k.endsWith(n,"[]")?n.slice(0,-2):n}function Up(n,a,i){return n?n.concat(a).map(function(o,c){return o=Uy(o),!i&&c?"["+o+"]":o}).join(i?".":""):a}function Nw(n){return k.isArray(n)&&!n.some(uf)}const Ew=k.toFlatObject(k,{},null,function(a){return/^is[A-Z]/.test(a)});function lo(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(E,N){return!k.isUndefined(N[E])});const r=i.metaTokens,o=i.visitor||y,c=i.dots,f=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(T){if(T===null)return"";if(k.isDate(T))return T.toISOString();if(k.isBoolean(T))return T.toString();if(!g&&k.isBlob(T))throw new de("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(T)||k.isTypedArray(T)?g&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function y(T,E,N){let D=T;if(T&&!N&&typeof T=="object"){if(k.endsWith(E,"{}"))E=r?E:E.slice(0,-2),T=JSON.stringify(T);else if(k.isArray(T)&&Nw(T)||(k.isFileList(T)||k.endsWith(E,"[]"))&&(D=k.toArray(T)))return E=Uy(E),D.forEach(function(M,G){!(k.isUndefined(M)||M===null)&&a.append(f===!0?Up([E],G,c):f===null?E:E+"[]",m(M))}),!1}return uf(T)?!0:(a.append(Up(N,E,c),m(T)),!1)}const v=[],b=Object.assign(Ew,{defaultVisitor:y,convertValue:m,isVisitable:uf});function w(T,E){if(!k.isUndefined(T)){if(v.indexOf(T)!==-1)throw Error("Circular reference detected in "+E.join("."));v.push(T),k.forEach(T,function(D,z){(!(k.isUndefined(D)||D===null)&&o.call(a,D,k.isString(z)?z.trim():z,E,b))===!0&&w(D,E?E.concat(z):[z])}),v.pop()}}if(!k.isObject(n))throw new TypeError("data must be an object");return w(n),a}function Vp(n){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function Pf(n,a){this._pairs=[],n&&lo(n,this,a)}const Vy=Pf.prototype;Vy.append=function(a,i){this._pairs.push([a,i])};Vy.toString=function(a){const i=a?function(r){return a.call(this,r,Vp)}:Vp;return this._pairs.map(function(o){return i(o[0])+"="+i(o[1])},"").join("&")};function Aw(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _y(n,a,i){if(!a)return n;const r=i&&i.encode||Aw;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 Pf(a,i).toString(r),c){const f=n.indexOf("#");f!==-1&&(n=n.slice(0,f)),n+=(n.indexOf("?")===-1?"?":"&")+c}return n}class _p{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 ky={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Rw=typeof URLSearchParams!="undefined"?URLSearchParams:Pf,Cw=typeof FormData!="undefined"?FormData:null,Dw=typeof Blob!="undefined"?Blob:null,Mw={isBrowser:!0,classes:{URLSearchParams:Rw,FormData:Cw,Blob:Dw},protocols:["http","https","file","blob","url","data"]},Yf=typeof window!="undefined"&&typeof document!="undefined",cf=typeof navigator=="object"&&navigator||void 0,Ow=Yf&&(!cf||["ReactNative","NativeScript","NS"].indexOf(cf.product)<0),Lw=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zw=Yf&&window.location.href||"http://localhost",Bw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yf,hasStandardBrowserEnv:Ow,hasStandardBrowserWebWorkerEnv:Lw,navigator:cf,origin:zw},Symbol.toStringTag,{value:"Module"})),gt=Z(Z({},Bw),Mw);function Uw(n,a){return lo(n,new gt.classes.URLSearchParams,Z({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 Vw(n){return k.matchAll(/\w+|\[(\w*)]/g,n).map(a=>a[0]==="[]"?"":a[1]||a[0])}function _w(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 Hy(n){function a(i,r,o,c){let f=i[c++];if(f==="__proto__")return!0;const p=Number.isFinite(+f),g=c>=i.length;return f=!f&&k.isArray(o)?o.length:f,g?(k.hasOwnProp(o,f)?o[f]=[o[f],r]:o[f]=r,!p):((!o[f]||!k.isObject(o[f]))&&(o[f]=[]),a(i,r,o[f],c)&&k.isArray(o[f])&&(o[f]=_w(o[f])),!p)}if(k.isFormData(n)&&k.isFunction(n.entries)){const i={};return k.forEachEntry(n,(r,o)=>{a(Vw(r),o,i,0)}),i}return null}function kw(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 fl={transitional:ky,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(Hy(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 Uw(a,this.formSerializer).toString();if((p=k.isFileList(a))||r.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return lo(p?{"files[]":a}:a,g&&new g,this.formSerializer)}}return c||o?(i.setContentType("application/json",!1),kw(a)):a}],transformResponse:[function(a){const i=this.transitional||fl.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 f=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(a)}catch(p){if(f)throw p.name==="SyntaxError"?de.from(p,de.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=>{fl.headers[n]={}});const Hw=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"]),qw=n=>{const a={};let i,r,o;return n&&n.split(`
|
|
61
|
+
`).forEach(function(f){o=f.indexOf(":"),i=f.substring(0,o).trim().toLowerCase(),r=f.substring(o+1).trim(),!(!i||a[i]&&Hw[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 Pi(n){return n&&String(n).trim().toLowerCase()}function Hr(n){return n===!1||n==null?n:k.isArray(n)?n.map(Hr):String(n)}function Pw(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 Yw=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 Gw(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,i,r)=>i.toUpperCase()+r)}function Xw(n,a){const i=k.toCamelCase(" "+a);["get","set","has"].forEach(r=>{Object.defineProperty(n,r+i,{value:function(o,c,f){return this[r].call(this,a,o,c,f)},configurable:!0})})}let At=class{constructor(a){a&&this.set(a)}set(a,i,r){const o=this;function c(p,g,m){const y=Pi(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]=Hr(p))}const f=(p,g)=>k.forEach(p,(m,y)=>c(m,y,g));if(k.isPlainObject(a)||a instanceof this.constructor)f(a,i);else if(k.isString(a)&&(a=a.trim())&&!Yw(a))f(qw(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]}f(p,i)}else a!=null&&c(i,a,r);return this}get(a,i){if(a=Pi(a),a){const r=k.findKey(this,a);if(r){const o=this[r];if(!i)return o;if(i===!0)return Pw(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=Pi(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(f){if(f=Pi(f),f){const p=k.findKey(r,f);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 f=k.findKey(r,c);if(f){i[f]=Hr(o),delete i[c];return}const p=a?Gw(c):String(c).trim();p!==c&&delete i[c],i[p]=Hr(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(f){const p=Pi(f);r[p]||(Xw(o,f),r[p]=!0)}return k.isArray(a)?a.forEach(c):c(a),this}};At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(At.prototype,({value:n},a)=>{let i=a[0].toUpperCase()+a.slice(1);return{get:()=>n,set(r){this[i]=r}}});k.freezeMethods(At);function Hc(n,a){const i=this||fl,r=a||i,o=At.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 qy(n){return!!(n&&n.__CANCEL__)}function _s(n,a,i){de.call(this,n==null?"canceled":n,de.ERR_CANCELED,a,i),this.name="CanceledError"}k.inherits(_s,de,{__CANCEL__:!0});function Py(n,a,i){const r=i.config.validateStatus;!i.status||!r||r(i.status)?n(i):a(new de("Request failed with status code "+i.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function Kw(n){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return a&&a[1]||""}function Zw(n,a){n=n||10;const i=new Array(n),r=new Array(n);let o=0,c=0,f;return a=a!==void 0?a:1e3,function(g){const m=Date.now(),y=r[c];f||(f=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-f<a)return;const w=y&&m-y;return w?Math.round(b*1e3/w):void 0}}function Fw(n,a){let i=0,r=1e3/a,o,c;const f=(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?f(m,y):(o=m,c||(c=setTimeout(()=>{c=null,f(o)},r-v)))},()=>o&&f(o)]}const Zr=(n,a,i=3)=>{let r=0;const o=Zw(50,250);return Fw(c=>{const f=c.loaded,p=c.lengthComputable?c.total:void 0,g=f-r,m=o(g),y=f<=p;r=f;const v={loaded:f,total:p,progress:p?f/p:void 0,bytes:g,rate:m||void 0,estimated:m&&p&&y?(p-f)/m:void 0,event:c,lengthComputable:p!=null,[a?"download":"upload"]:!0};n(v)},i)},Hp=(n,a)=>{const i=n!=null;return[r=>a[0]({lengthComputable:i,total:n,loaded:r}),a[1]]},qp=n=>(...a)=>k.asap(()=>n(...a)),Qw=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,$w=gt.hasStandardBrowserEnv?{write(n,a,i,r,o,c){const f=[n+"="+encodeURIComponent(a)];k.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),k.isString(r)&&f.push("path="+r),k.isString(o)&&f.push("domain="+o),c===!0&&f.push("secure"),document.cookie=f.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 Jw(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Ww(n,a){return a?n.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):n}function Yy(n,a,i){let r=!Jw(a);return n&&(r||i==!1)?Ww(n,a):a}const Pp=n=>n instanceof At?Z({},n):n;function Ha(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 f(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:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:p,headers:(m,y,v)=>o(Pp(m),Pp(y),v,!0)};return k.forEach(Object.keys(Z(Z({},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 Gy=n=>{const a=Ha({},n);let{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:c,headers:f,auth:p}=a;a.headers=f=At.from(f),a.url=_y(Yy(a.baseURL,a.url,a.allowAbsoluteUrls),n.params,n.paramsSerializer),p&&f.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):"")));let g;if(k.isFormData(i)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((g=f.getContentType())!==!1){const[m,...y]=g?g.split(";").map(v=>v.trim()).filter(Boolean):[];f.setContentType([m||"multipart/form-data",...y].join("; "))}}if(gt.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(a)),r||r!==!1&&Qw(a.url))){const m=o&&c&&$w.read(c);m&&f.set(o,m)}return a},Iw=typeof XMLHttpRequest!="undefined",ej=Iw&&function(n){return new Promise(function(i,r){const o=Gy(n);let c=o.data;const f=At.from(o.headers).normalize();let{responseType:p,onUploadProgress:g,onDownloadProgress:m}=o,y,v,b,w,T;function E(){w&&w(),T&&T(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let N=new XMLHttpRequest;N.open(o.method.toUpperCase(),o.url,!0),N.timeout=o.timeout;function D(){if(!N)return;const M=At.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),_={data:!p||p==="text"||p==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:M,config:n,request:N};Py(function($){i($),E()},function($){r($),E()},_),N=null}"onloadend"in N?N.onloadend=D:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(D)},N.onabort=function(){N&&(r(new de("Request aborted",de.ECONNABORTED,n,N)),N=null)},N.onerror=function(){r(new de("Network Error",de.ERR_NETWORK,n,N)),N=null},N.ontimeout=function(){let G=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||ky;o.timeoutErrorMessage&&(G=o.timeoutErrorMessage),r(new de(G,_.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,n,N)),N=null},c===void 0&&f.setContentType(null),"setRequestHeader"in N&&k.forEach(f.toJSON(),function(G,_){N.setRequestHeader(_,G)}),k.isUndefined(o.withCredentials)||(N.withCredentials=!!o.withCredentials),p&&p!=="json"&&(N.responseType=o.responseType),m&&([b,T]=Zr(m,!0),N.addEventListener("progress",b)),g&&N.upload&&([v,w]=Zr(g),N.upload.addEventListener("progress",v),N.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(y=M=>{N&&(r(!M||M.type?new _s(null,n,N):M),N.abort(),N=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const z=Kw(o.url);if(z&>.protocols.indexOf(z)===-1){r(new de("Unsupported protocol "+z+":",de.ERR_BAD_REQUEST,n));return}N.send(c||null)})},tj=(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 de?y:new _s(y instanceof Error?y.message:y))}};let f=a&&setTimeout(()=>{f=null,c(new de(`timeout ${a} of ms exceeded`,de.ETIMEDOUT))},a);const p=()=>{n&&(f&&clearTimeout(f),f=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}},nj=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},aj=function(n,a){return Cc(this,null,function*(){try{for(var i=vp(sj(n)),r,o,c;r=!(o=yield new Ma(i.next())).done;r=!1){const f=o.value;yield*Dc(nj(f,a))}}catch(o){c=[o]}finally{try{r&&(o=i.return)&&(yield new Ma(o.call(i)))}finally{if(c)throw c[0]}}})},sj=function(n){return Cc(this,null,function*(){if(n[Symbol.asyncIterator]){yield*Dc(n);return}const a=n.getReader();try{for(;;){const{done:i,value:r}=yield new Ma(a.read());if(i)break;yield r}}finally{yield new Ma(a.cancel())}})},Yp=(n,a,i,r)=>{const o=aj(n,a);let c=0,f,p=m=>{f||(f=!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 w=c+=b;i(w)}m.enqueue(new Uint8Array(v))}catch(y){throw p(y),y}})},cancel(m){return p(m),o.return()}},{highWaterMark:2})},ro=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xy=ro&&typeof ReadableStream=="function",ij=ro&&(typeof TextEncoder=="function"?(n=>a=>n.encode(a))(new TextEncoder):n=>Ae(null,null,function*(){return new Uint8Array(yield new Response(n).arrayBuffer())})),Ky=(n,...a)=>{try{return!!n(...a)}catch(i){return!1}},lj=Xy&&Ky(()=>{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}),Gp=64*1024,ff=Xy&&Ky(()=>k.isReadableStream(new Response("").body)),Fr={stream:ff&&(n=>n.body)};ro&&(n=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Fr[a]&&(Fr[a]=k.isFunction(n[a])?i=>i[a]():(i,r)=>{throw new de(`Response type '${a}' is not supported`,de.ERR_NOT_SUPPORT,r)})})})(new Response);const rj=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 ij(n)).byteLength}),oj=(n,a)=>Ae(null,null,function*(){const i=k.toFiniteNumber(n.getContentLength());return i==null?rj(a):i}),uj=ro&&(n=>Ae(null,null,function*(){let{url:a,method:i,data:r,signal:o,cancelToken:c,timeout:f,onDownloadProgress:p,onUploadProgress:g,responseType:m,headers:y,withCredentials:v="same-origin",fetchOptions:b}=Gy(n);m=m?(m+"").toLowerCase():"text";let w=tj([o,c&&c.toAbortSignal()],f),T;const E=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let N;try{if(g&&lj&&i!=="get"&&i!=="head"&&(N=yield oj(y,r))!==0){let _=new Request(a,{method:"POST",body:r,duplex:"half"}),X;if(k.isFormData(r)&&(X=_.headers.get("content-type"))&&y.setContentType(X),_.body){const[$,Q]=Hp(N,Zr(qp(g)));r=Yp(_.body,Gp,$,Q)}}k.isString(v)||(v=v?"include":"omit");const D="credentials"in Request.prototype;T=new Request(a,le(Z({},b),{signal:w,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:r,duplex:"half",credentials:D?v:void 0}));let z=yield fetch(T,b);const M=ff&&(m==="stream"||m==="response");if(ff&&(p||M&&E)){const _={};["status","statusText","headers"].forEach(ce=>{_[ce]=z[ce]});const X=k.toFiniteNumber(z.headers.get("content-length")),[$,Q]=p&&Hp(X,Zr(qp(p),!0))||[];z=new Response(Yp(z.body,Gp,$,()=>{Q&&Q(),E&&E()}),_)}m=m||"text";let G=yield Fr[k.findKey(Fr,m)||"text"](z,n);return!M&&E&&E(),yield new Promise((_,X)=>{Py(_,X,{data:G,headers:At.from(z.headers),status:z.status,statusText:z.statusText,config:n,request:T})})}catch(D){throw E&&E(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new de("Network Error",de.ERR_NETWORK,n,T),{cause:D.cause||D}):de.from(D,D&&D.code,n,T)}})),df={http:Tw,xhr:ej,fetch:uj};k.forEach(df,(n,a)=>{if(n){try{Object.defineProperty(n,"name",{value:a})}catch(i){}Object.defineProperty(n,"adapterName",{value:a})}});const Xp=n=>`- ${n}`,cj=n=>k.isFunction(n)||n===null||n===!1,Zy={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 f;if(r=i,!cj(i)&&(r=df[(f=String(i)).toLowerCase()],r===void 0))throw new de(`Unknown adapter '${f}'`);if(r)break;o[f||"#"+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 f=a?c.length>1?`since :
|
|
63
|
+
`+c.map(Xp).join(`
|
|
64
|
+
`):" "+Xp(c[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:df};function qc(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new _s(null,n)}function Kp(n){return qc(n),n.headers=At.from(n.headers),n.data=Hc.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Zy.getAdapter(n.adapter||fl.adapter)(n).then(function(r){return qc(n),r.data=Hc.call(n,n.transformResponse,r),r.headers=At.from(r.headers),r},function(r){return qy(r)||(qc(n),r&&r.response&&(r.response.data=Hc.call(n,n.transformResponse,r.response),r.response.headers=At.from(r.response.headers))),Promise.reject(r)})}const Fy="1.11.0",oo={};["object","boolean","number","function","string","symbol"].forEach((n,a)=>{oo[n]=function(r){return typeof r===n||"a"+(a<1?"n ":" ")+n}});const Zp={};oo.transitional=function(a,i,r){function o(c,f){return"[Axios v"+Fy+"] Transitional option '"+c+"'"+f+(r?". "+r:"")}return(c,f,p)=>{if(a===!1)throw new de(o(f," has been removed"+(i?" in "+i:"")),de.ERR_DEPRECATED);return i&&!Zp[f]&&(Zp[f]=!0,console.warn(o(f," has been deprecated since v"+i+" and will be removed in the near future"))),a?a(c,f,p):!0}};oo.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 de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(n);let o=r.length;for(;o-- >0;){const c=r[o],f=a[c];if(f){const p=n[c],g=p===void 0||f(p,c,n);if(g!==!0)throw new de("option "+c+" must be "+g,de.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new de("Unknown option "+c,de.ERR_BAD_OPTION)}}const qr={assertOptions:fj,validators:oo},cn=qr.validators;let Va=class{constructor(a){this.defaults=a||{},this.interceptors={request:new _p,response:new _p}}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(f){}}throw r}})}_request(a,i){typeof a=="string"?(i=i||{},i.url=a):i=a||{},i=Ha(this.defaults,i);const{transitional:r,paramsSerializer:o,headers:c}=i;r!==void 0&&qr.assertOptions(r,{silentJSONParsing:cn.transitional(cn.boolean),forcedJSONParsing:cn.transitional(cn.boolean),clarifyTimeoutError:cn.transitional(cn.boolean)},!1),o!=null&&(k.isFunction(o)?i.paramsSerializer={serialize:o}:qr.assertOptions(o,{encode:cn.function,serialize:cn.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),qr.assertOptions(i,{baseUrl:cn.spelling("baseURL"),withXsrfToken:cn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let f=c&&k.merge(c.common,c[i.method]);c&&k.forEach(["delete","get","head","post","put","patch","common"],T=>{delete c[T]}),i.headers=At.concat(f,c);const p=[];let g=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(i)===!1||(g=g&&E.synchronous,p.unshift(E.fulfilled,E.rejected))});const m=[];this.interceptors.response.forEach(function(E){m.push(E.fulfilled,E.rejected)});let y,v=0,b;if(!g){const T=[Kp.bind(this),void 0];for(T.unshift(...p),T.push(...m),b=T.length,y=Promise.resolve(i);v<b;)y=y.then(T[v++],T[v++]);return y}b=p.length;let w=i;for(v=0;v<b;){const T=p[v++],E=p[v++];try{w=T(w)}catch(N){E.call(this,N);break}}try{y=Kp.call(this,w)}catch(T){return Promise.reject(T)}for(v=0,b=m.length;v<b;)y=y.then(m[v++],m[v++]);return y}getUri(a){a=Ha(this.defaults,a);const i=Yy(a.baseURL,a.url,a.allowAbsoluteUrls);return _y(i,a.params,a.paramsSerializer)}};k.forEach(["delete","get","head","options"],function(a){Va.prototype[a]=function(i,r){return this.request(Ha(r||{},{method:a,url:i,data:(r||{}).data}))}});k.forEach(["post","put","patch"],function(a){function i(r){return function(c,f,p){return this.request(Ha(p||{},{method:a,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:f}))}}Va.prototype[a]=i(),Va.prototype[a+"Form"]=i(!0)});let dj=class Qy{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 f=new Promise(p=>{r.subscribe(p),c=p}).then(o);return f.cancel=function(){r.unsubscribe(c)},f},a(function(c,f,p){r.reason||(r.reason=new _s(c,f,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 Qy(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 hf={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(hf).forEach(([n,a])=>{hf[a]=n});function $y(n){const a=new Va(n),i=Ey(Va.prototype.request,a);return k.extend(i,Va.prototype,a,{allOwnKeys:!0}),k.extend(i,a,null,{allOwnKeys:!0}),i.create=function(o){return $y(Ha(n,o))},i}const me=$y(fl);me.Axios=Va;me.CanceledError=_s;me.CancelToken=dj;me.isCancel=qy;me.VERSION=Fy;me.toFormData=lo;me.AxiosError=de;me.Cancel=me.CanceledError;me.all=function(a){return Promise.all(a)};me.spread=hj;me.isAxiosError=mj;me.mergeConfig=Ha;me.AxiosHeaders=At;me.formToJSON=n=>Hy(k.isHTMLForm(n)?new FormData(n):n);me.getAdapter=Zy.getAdapter;me.HttpStatusCode=hf;me.default=me;const{Axios:k3,AxiosError:H3,CanceledError:q3,isCancel:P3,CancelToken:Y3,VERSION:G3,all:X3,Cancel:K3,isAxiosError:Z3,spread:F3,toFormData:Q3,AxiosHeaders:$3,HttpStatusCode:J3,formToJSON:W3,getAdapter:I3,mergeConfig:eA}=me,Fp=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(w=>w(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},pj=n=>n?Fp(n):Fp,gj=n=>n;function yj(n,a=gj){const i=Mr.useSyncExternalStore(n.subscribe,Mr.useCallback(()=>a(n.getState()),[n,a]),Mr.useCallback(()=>a(n.getInitialState()),[n,a]));return Mr.useDebugValue(i),i}const Qp=n=>{const a=pj(n),i=r=>yj(a,r);return Object.assign(i,a),i},Jy=n=>n?Qp(n):Qp,Je=window.location.origin,Qr=Jy(n=>({Rootname:"",setRootname:a=>n({Rootname:a})})),ot=Jy(n=>({TransactionKey:"",setTransactionKey:a=>n({TransactionKey:a}),loadKey:()=>Ae(null,null,function*(){if(sessionStorage.getItem("transactionToken")){n({TransactionKey:sessionStorage.getItem("transactionToken")});return}yield me.get(`${Je}/api/get-token`).then(a=>{var i,r,o,c;a.status===200&&(sessionStorage.setItem("transactionToken",(r=(i=a.data)==null?void 0:i.data)==null?void 0:r.originSessionKey),n({TransactionKey:(c=(o=a.data)==null?void 0:o.data)==null?void 0:c.originSessionKey}))}).catch(a=>{console.error("Error fetching transaction key:",a)})})})),xj=()=>{const[n,a]=j.useState(!1),{Rootname:i}=Qr(c=>c),{setRootname:r}=Qr(c=>c),{TransactionKey:o}=ot(c=>c);return j.useEffect(()=>{me.get(`${Je}/api/db/databases?transactiontoken=${o}`).then(c=>{var f;c.status===200&&r((f=c.data.data.RootName)!=null?f:"AxioDB")})},[]),h.jsx("header",{className:"bg-gradient-to-r from-blue-700 to-indigo-800 shadow-lg",children:h.jsx("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:h.jsx("div",{className:"flex items-center justify-between h-16",children:h.jsxs("div",{className:"flex items-center",children:[h.jsx("div",{className:"flex-shrink-0",children:h.jsxs(oa,{to:"/",className:"flex items-center",children:[h.jsx("img",{src:"/AXioDB.png",alt:"AxioDB Logo",className:"h-9 w-9"}),h.jsxs("span",{className:"ml-2 text-white font-bold text-xl tracking-tight",children:[i," Admin Hub"]})]})}),h.jsx("div",{className:"hidden md:block ml-10",children:h.jsxs("div",{className:"flex space-x-4",children:[h.jsx(oa,{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"}),h.jsx(oa,{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"}),h.jsx(oa,{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"}),h.jsx(oa,{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"}),h.jsx(oa,{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 vj(n,a){return j.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),j.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 bj=j.forwardRef(vj);function Sj(n,a){return j.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),j.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 wj=j.forwardRef(Sj);function jj(n,a){return j.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),j.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 Wy=j.forwardRef(jj);function Tj(n,a){return j.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),j.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=j.forwardRef(Tj);function Ej(n,a){return j.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),j.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 Aj=j.forwardRef(Ej);function Rj(n,a){return j.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),j.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=j.forwardRef(Rj);function Dj(n,a){return j.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},n),j.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 Mj=j.forwardRef(Dj);function Oj(n,a){return j.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:a},n),j.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 Lj=j.forwardRef(Oj),zj=({treeDB:n})=>{const[a,i]=j.useState(!0),[r,o]=j.useState({}),[c,f]=j.useState([]),p=m=>{o(y=>le(Z({},y),{[m]:!y[m]}))};j.useEffect(()=>{const m=()=>{if(!n||!Array.isArray(n)){f([]),i(!1);return}const y=n.map((v,b)=>{const w=`db${b+1}`;return{id:w,name:v.name,type:"database",children:Array.isArray(v.collections)?v.collections.map((T,E)=>({id:`${w}_col${E+1}`,name:T.name||T,type:"collection",documentCount:T.documentCount||0,size:"0 MB"})):[]}});y.length>0&&o({[y[0].id]:!0}),f(y),i(!1)};setTimeout(()=>{m()},500)},[n]);const g=m=>{const y=r[m.id];return h.jsxs("div",{children:[h.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?h.jsx("div",{className:"mr-1",children:y?h.jsx(Mj,{className:"h-4 w-4 text-gray-500"}):h.jsx(Lj,{className:"h-4 w-4 text-gray-500"})}):h.jsx("div",{className:"w-4 mr-1"}),m.type==="database"?h.jsx(Wy,{className:"h-5 w-5 text-blue-600 mr-2"}):h.jsx(Aj,{className:"h-5 w-5 text-yellow-600 mr-2"}),h.jsx("div",{className:"flex-grow",children:h.jsx("span",{className:"font-medium",children:m.name})}),m.type==="collection"&&h.jsx("div",{className:"text-xs text-gray-500",children:h.jsxs("span",{className:"mr-2",children:[m.documentCount," docs"]})})]}),m.children&&y&&h.jsx("div",{className:"border-l border-gray-200 ml-5",children:m.children.map(g)})]},m.id)};return h.jsxs("div",{className:"bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow",children:[h.jsxs("div",{className:"border-b border-gray-200 py-4 px-6",children:[h.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Database Structure"}),h.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Overview of databases and collections"})]}),h.jsx("div",{className:"overflow-y-auto",style:{maxHeight:"400px"},children:a?h.jsx("div",{className:"p-6 space-y-3",children:[1,2,3].map(m=>h.jsxs("div",{className:"animate-pulse",children:[h.jsx("div",{className:"h-6 bg-gray-200 rounded w-3/4 mb-2"}),h.jsxs("div",{className:"pl-6 space-y-2",children:[h.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),h.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"}),h.jsx("div",{className:"h-5 bg-gray-100 rounded w-2/3"})]})]},m))}):h.jsx("div",{children:c.map(g)})})]})},Bj=({CacheStorageInfo:n})=>{const[a,i]=j.useState(!0);j.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},800)})()},[]);const r=n.Storage/n.Max*100;return h.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[h.jsxs("div",{className:"flex justify-between mb-3",children:[h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"In-Memory Cache"}),a?h.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):h.jsxs("p",{className:"text-3xl font-bold text-orange-600 mt-2",children:[n.Storage," ",h.jsx("span",{className:"text-lg",children:n.Unit})]}),h.jsxs("p",{className:"text-sm text-gray-500 mt-1",children:["of ",n.Max," ",n.Unit," allocated"]})]}),h.jsx("div",{className:"p-3 bg-orange-100 rounded-full",children:h.jsx(bj,{className:"h-8 w-8 text-orange-600"})})]}),h.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:h.jsx("div",{className:"bg-orange-600 h-2.5 rounded-full",style:{width:`${a?0:r}%`}})})]})},Uj=({storageInfo:n})=>{const[a,i]=j.useState(!0);j.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},800)})()},[]);const r=(n==null?void 0:n.total)/(n==null?void 0:n.machine)*100;return h.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:[h.jsxs("div",{className:"flex justify-between mb-3",children:[h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Storage Used"}),a?h.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-24"}):h.jsxs("p",{className:"text-3xl font-bold text-green-600 mt-2",children:[n==null?void 0:n.total," ",h.jsx("span",{className:"text-lg",children:n==null?void 0:n.matrixUnit})]}),h.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"]})]}),h.jsx("div",{className:"p-3 bg-green-100 rounded-full",children:h.jsx(Cj,{className:"h-8 w-8 text-green-600"})})]}),h.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2.5 mt-2",children:h.jsx("div",{className:"bg-green-600 h-2.5 rounded-full",style:{width:`${a?0:r}%`}})})]})},Vj=({totalCollections:n})=>{const[a,i]=j.useState(!0);return j.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},600)})()},[]),h.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:h.jsxs("div",{className:"flex justify-between",children:[h.jsx("div",{children:a?h.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16"}):h.jsxs("p",{className:"text-2xl font-bold text-indigo-600 mt-2",children:[n," ",n<=1?"Collection":"Collections"]})}),h.jsx("div",{className:"p-3 bg-indigo-100 rounded-full",children:h.jsx(wj,{className:"h-8 w-8 text-indigo-600"})})]})})},_j=({totalDatabases:n})=>{const[a,i]=j.useState(!0);return j.useEffect(()=>{setTimeout(()=>{i(!1)},1e3)},[]),h.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:h.jsxs("div",{className:"flex justify-between",children:[h.jsx("div",{children:a?h.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-16 text-center"}):h.jsx("p",{className:"text-2xl font-bold text-blue-600 mt-2 text-center",children:n<=1?`${n} Database`:`${n} Databases`})}),h.jsx("div",{className:"p-3 bg-blue-100 rounded-full",children:h.jsx(Wy,{className:"h-8 w-8 text-blue-600"})})]})})},kj=({totalDocuments:n})=>{const[a,i]=j.useState(!0);return j.useEffect(()=>{(()=>{setTimeout(()=>{i(!1)},700)})()},[]),h.jsx("div",{className:"bg-white rounded-lg shadow-md p-6 hover:shadow-lg transition-shadow",children:h.jsxs("div",{className:"flex justify-between",children:[h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Total Documents"}),a?h.jsx("div",{className:"h-8 mt-2 bg-gray-200 rounded animate-pulse w-20"}):h.jsx("p",{className:"text-3xl font-bold text-purple-600 mt-2",children:n}),h.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Across all collections"})]}),h.jsx("div",{className:"p-3 bg-purple-100 rounded-full",children:h.jsx(Nj,{className:"h-8 w-8 text-purple-600"})})]})})},Hj=()=>{const[n,a]=j.useState(!0),[i,r]=j.useState(null),{TransactionKey:o}=ot(c=>c);return j.useEffect(()=>{me.get(`${Je}/api/dashboard-stats?transactiontoken=${o}`).then(c=>{c.status===200&&(r(c.data.data),a(!1))})},[]),h.jsxs("div",{className:"container mx-auto px-4 py-6",children:[h.jsx("div",{className:"mb-6",children:h.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Dashboard"})}),n?h.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(c=>h.jsx("div",{className:"h-32 bg-gray-200 rounded-lg animate-pulse"},c))}):h.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 mb-8",children:[h.jsx(_j,{totalDatabases:(i==null?void 0:i.totalDatabases)||0}),h.jsx(Vj,{totalCollections:(i==null?void 0:i.totalCollections)||0}),h.jsx(kj,{totalDocuments:(i==null?void 0:i.totalDocuments)||0}),h.jsx(Uj,{storageInfo:(i==null?void 0:i.storageInfo)||{}}),h.jsx(Bj,{CacheStorageInfo:(i==null?void 0:i.cacheStorage)||{}})]}),h.jsx("div",{className:"mb-8",children:h.jsx(zj,{treeDB:(i==null?void 0:i.nodeTree)||[]})})]})},qj=({isOpen:n,onClose:a,onDatabaseCreated:i})=>{const[r,o]=j.useState(""),[c,f]=j.useState(!1),[p,g]=j.useState(""),{TransactionKey:m}=ot(b=>b),y=()=>{o(""),g(""),f(!1),a()},v=b=>Ae(null,null,function*(){var w,T;if(b.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}f(!0),g("");try{const E=yield me.post(`${Je}/api/db/create-database`,{name:r},{params:{transactiontoken:m}});if(E.data.statusCode===200||E.data.statusCode===201)i(r),f(!1),y();else throw f(!1),new Error("Failed to create database")}catch(E){console.error("Error creating database:",E),g(((T=(w=E.response)==null?void 0:w.data)==null?void 0:T.message)||"Failed to create database. Please try again."),f(!1)}});return n?h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:h.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[h.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Database"}),h.jsxs("form",{onSubmit:v,children:[h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),h.jsx("input",{type:"text",id:"databaseName",value:r,onChange:b=>o(b.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&&h.jsx("p",{className:"mt-2 text-sm text-red-600",children:p})]}),h.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[h.jsx("button",{type:"button",onClick:y,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:c,children:"Cancel"}),h.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?h.jsxs(h.Fragment,{children:[h.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:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.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},Pj=({isOpen:n,dbName:a,onClose:i,onConfirmDelete:r})=>{const{TransactionKey:o}=ot(g=>g),[c,f]=j.useState(!1);if(!n)return null;const p=()=>Ae(null,null,function*(){var g,m;f(!0);try{const y=yield me.delete(`${Je}/api/db/delete-database`,{params:{transactiontoken:o,dbName:a}});if(y.status===200)console.log("Database deleted successfully:",y.data),r();else throw new Error("Failed to delete database")}catch(y){console.error("Error deleting database:",y),alert(((m=(g=y.response)==null?void 0:g.data)==null?void 0:m.message)||"Failed to delete database. Please try again.")}finally{f(!1)}});return h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:h.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6 animate-fadeIn",children:[h.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Confirm Deletion"}),h.jsxs("p",{className:"text-gray-700 mb-6",children:['Are you sure you want to delete the database "',a,'"? This action cannot be undone.']}),h.jsxs("div",{className:"flex justify-end space-x-4",children:[h.jsx("button",{onClick:i,disabled:c,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",children:"Cancel"}),h.jsx("button",{onClick:p,disabled:c,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":""}`,children:c?h.jsxs(h.Fragment,{children:[h.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:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.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"})]})]})})},Yj=({databases:n,onDeleteClick:a,loading:i})=>{const r=ll(),{TransactionKey:o}=ot(y=>y),[c,f]=j.useState({}),p=y=>{f(v=>le(Z({},v),{[y]:!1}))},g=y=>{r(`/collections?database=${encodeURIComponent(y)}`)},m=y=>Ae(null,null,function*(){var v,b;try{console.log("Starting export for database:",y),console.log("Transaction Key:",o),console.log("API URL:",`${Je}/api/db/export-database/?transactiontoken=${o}&dbName=${encodeURIComponent(y)}`);const w=yield me.get(`${Je}/api/db/export-database/?transactiontoken=${o}&dbName=${encodeURIComponent(y)}`,{responseType:"blob"});if(console.log("Response status:",w.status),console.log("Response headers:",w.headers),console.log("Response data type:",typeof w.data),console.log("Response data size:",(v=w.data)==null?void 0:v.size),w.data instanceof Blob&&w.data.type==="application/json"){const z=yield w.data.text();console.error("Received JSON error response:",z),alert(`Export failed: ${z}`);return}if(!w.data||w.data.size===0){console.error("Empty response received"),alert("Export failed: Empty file received");return}const T=window.URL.createObjectURL(w.data),E=document.createElement("a");E.href=T;const N=w.headers["content-disposition"];let D=`${y}.tar.gz`;if(N){const z=N.match(/filename="(.+)"/);z&&(D=z[1])}console.log("Downloading file as:",D),E.setAttribute("download",D),document.body.appendChild(E),E.click(),E.remove(),window.URL.revokeObjectURL(T),console.log("Download initiated successfully")}catch(w){if(console.error("Error exporting database:",w),w.response)if(console.error("Error response data:",w.response.data),console.error("Error response status:",w.response.status),console.error("Error response headers:",w.response.headers),w.response.data instanceof Blob)try{const T=yield w.response.data.text();console.error("Error response text:",T),alert(`Export failed: ${T}`)}catch(T){console.error("Could not read error response:",T),alert("Failed to export database. Please try again.")}else alert(`Export failed: ${((b=w.response.data)==null?void 0:b.message)||w.message}`);else alert("Failed to export database. Please try again.")}});return h.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[h.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[h.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Your Databases"}),h.jsxs("p",{className:"text-sm text-gray-500",children:["Total: ",i?"Loading...":n==null?void 0:n.TotalDatabases]})]}),i?h.jsx("div",{className:"p-6",children:[1,2,3].map(y=>h.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[h.jsxs("div",{children:[h.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),h.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),h.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},y))}):h.jsx("ul",{className:"divide-y divide-gray-200",children:n!=null&&n.ListOfDatabases&&(n==null?void 0:n.ListOfDatabases.length)>0?n.ListOfDatabases.map((y,v)=>h.jsxs("li",{className:`px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-all duration-300 ${c[y]?"animate-slideIn":"animate-fadeIn"}`,onAnimationEnd:()=>p(y),children:[h.jsxs("div",{children:[h.jsx("h4",{className:"text-lg font-medium text-gray-900",children:y}),h.jsxs("p",{className:"text-sm text-gray-500",children:["Path: ",n.AllDatabasesPaths[v]]})]}),h.jsxs("div",{className:"flex space-x-2",children:[h.jsx("button",{onClick:()=>g(y),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"}),h.jsx("button",{onClick:()=>m(y),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"}),h.jsx("button",{onClick:()=>a(y),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"})]})]},y)):h.jsx("li",{className:"px-6 py-8 text-center text-gray-500",children:'No databases found. Click "Create Database" to add one.'})})]})},Gj=()=>{const[n,a]=j.useState(!0),[i,r]=j.useState([]),[o,c]=j.useState(!1),[f,p]=j.useState(!1),[g,m]=j.useState(""),{TransactionKey:y}=ot(E=>E),{Rootname:v}=Qr(E=>E);j.useEffect(()=>{y&&Ae(null,null,function*(){try{const N=yield me.get(`${Je}/api/db/databases?transactiontoken=${y}`);N.status===200&&(r(N.data.data),a(!1))}catch(N){console.error("Error fetching databases:",N),a(!1),r([])}})},[y]);const b=E=>{m(E),c(!0)},w=()=>{r(E=>le(Z({},E),{ListOfDatabases:E.ListOfDatabases.filter(N=>N!==g),TotalDatabases:`${E.ListOfDatabases.length-1} Databases`})),c(!1),m("")},T=E=>{r(N=>le(Z({},N),{ListOfDatabases:[...N.ListOfDatabases,E],TotalDatabases:`${N.ListOfDatabases.length+1} Databases`,AllDatabasesPaths:[...N.AllDatabasesPaths,`${N.CurrentPath}/${E}`]}))};return h.jsxs("div",{className:"container mx-auto px-4 py-6",children:[h.jsxs("div",{className:"flex justify-between items-center mb-6",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Databases"}),h.jsxs("p",{className:"text-gray-600",children:["Manage your ",v," databases"]})]}),h.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:[h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"]})]}),h.jsx(Yj,{databases:i,onDeleteClick:b,loading:n}),h.jsx(qj,{isOpen:f,onClose:()=>p(!1),onDatabaseCreated:T}),h.jsx(Pj,{isOpen:o,dbName:g,onClose:()=>c(!1),onConfirmDelete:w})]})},Xj=({isOpen:n,onClose:a,onCollectionCreated:i,databaseName:r})=>{const[o,c]=j.useState(""),[f,p]=j.useState(!1),[g,m]=j.useState(""),[y,v]=j.useState(!1),[b,w]=j.useState(""),{TransactionKey:T}=ot(D=>D),E=()=>{c(""),p(!1),m(""),w(""),v(!1),a()},N=D=>Ae(null,null,function*(){var z,M;if(D.preventDefault(),!o.trim()){w("Collection name is required");return}if(!/^[a-zA-Z0-9_]+$/.test(o)){w("Collection name can only contain letters, numbers, and underscores");return}if(f&&!g.trim()){w("Encryption key is required when encryption is enabled");return}v(!0),w("");try{const G=yield me.post(`${Je}/api/collection/create-collection`,{dbName:r,collectionName:o,crypto:f,key:f?g:""},{params:{transactiontoken:T}});if(G.data.statusCode===200||G.data.statusCode===201)i({name:o,documentCount:0,size:"N/A"}),E();else throw new Error("Failed to create collection")}catch(G){console.error("Error creating collection:",G),w(((M=(z=G.response)==null?void 0:z.data)==null?void 0:M.message)||"Failed to create collection. Please try again."),v(!1)}});return n?h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:h.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[h.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Create New Collection"}),h.jsxs("form",{onSubmit:N,children:[h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{htmlFor:"databaseName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Database Name"}),h.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})]}),h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{htmlFor:"collectionName",className:"block text-sm font-medium text-gray-700 mb-1",children:"Collection Name"}),h.jsx("input",{type:"text",id:"collectionName",value:o,onChange:D=>c(D.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})]}),h.jsx("div",{className:"mb-4",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{htmlFor:"enableCrypto",className:"text-sm font-medium text-gray-700",children:"Enable Encryption"}),h.jsxs("div",{className:"relative inline-block w-10 mr-2 align-middle select-none",children:[h.jsx("input",{type:"checkbox",id:"enableCrypto",checked:f,onChange:()=>p(!f),className:"toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer",disabled:y}),h.jsx("label",{htmlFor:"enableCrypto",className:`toggle-label block overflow-hidden h-6 rounded-full cursor-pointer ${f?"bg-green-500":"bg-gray-300"}`})]})]})}),f&&h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{htmlFor:"cryptoKey",className:"block text-sm font-medium text-gray-700 mb-1",children:"Encryption Key"}),h.jsx("input",{type:"password",id:"cryptoKey",value:g,onChange:D=>m(D.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&&h.jsx("p",{className:"mt-2 text-sm text-red-600",children:b}),h.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[h.jsx("button",{type:"button",onClick:E,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:y,children:"Cancel"}),h.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?h.jsxs(h.Fragment,{children:[h.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:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.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},Kj=({isOpen:n,onClose:a,onCollectionDeleted:i,databaseName:r,collectionName:o})=>{const[c,f]=j.useState(!1),[p,g]=j.useState(""),{TransactionKey:m}=ot(b=>b),y=()=>{g(""),f(!1),a()},v=()=>Ae(null,null,function*(){var b,w;f(!0),g("");try{if((yield me.delete(`${Je}/api/collection/delete-collection/?dbName=${r}&collectionName=${o}&transactiontoken=${m}`)).data.statusCode===200)i(o),y();else throw new Error("Failed to delete collection")}catch(T){console.error("Error deleting collection:",T),g(((w=(b=T.response)==null?void 0:b.data)==null?void 0:w.message)||"Failed to delete collection. Please try again."),f(!1)}});return n?h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 animate-fadeIn",children:h.jsxs("div",{className:"bg-white rounded-lg max-w-md w-full p-6",children:[h.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-4",children:"Delete Collection"}),h.jsxs("p",{className:"mb-6 text-gray-600",children:["Are you sure you want to delete the collection"," ",h.jsx("span",{className:"font-semibold",children:o})," from database"," ",h.jsx("span",{className:"font-semibold",children:r}),"? This action cannot be undone."]}),p&&h.jsx("p",{className:"mb-4 text-sm text-red-600",children:p}),h.jsxs("div",{className:"flex justify-end space-x-4 mt-6",children:[h.jsx("button",{type:"button",onClick:y,className:"px-4 py-2 text-gray-700 hover:text-gray-900 transition-colors",disabled:c,children:"Cancel"}),h.jsx("button",{type:"button",onClick:v,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?h.jsxs(h.Fragment,{children:[h.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:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.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},Zj=()=>{const[n]=Ny(),a=ll(),[i,r]=j.useState(!0),[o,c]=j.useState([]),[f,p]=j.useState([]),[g,m]=j.useState(!1),[y,v]=j.useState(!1),[b,w]=j.useState(""),T=n.get("database"),{TransactionKey:E}=ot(X=>X),{Rootname:N}=Qr(X=>X),D=()=>Ae(null,null,function*(){try{const X=yield me.get(`${Je}/api/collection/all/?databaseName=${T}&transactiontoken=${E}`);if(X.status===200){const $=X.data.data||{};if($.ListOfCollections&&Array.isArray($.ListOfCollections)){const Q=$.CollectionSizeMap||[],ce=$.collectionMetaStatus||[];p(ce);const Te=$.ListOfCollections.map(ge=>{const we=Q.find(Ze=>{const Ve=Ze.folderPath.split("/");return Ve[Ve.length-1]===ge}),Be=ce.find(Ze=>Ze.name===ge);return{name:ge,documentCount:we?we.fileCount:0,isEncrypted:(Be==null?void 0:Be.isEncrypted)||!1,isSchemaNeeded:(Be==null?void 0:Be.isSchemaNeeded)||!1,schema:(Be==null?void 0:Be.schema)||{}}});c(Te)}else c([]);r(!1)}}catch(X){console.error("Error fetching collections:",X),r(!1),c([])}});j.useEffect(()=>{if(!T){a("/databases");return}E&&D()},[E,T,a]);const z=()=>{a("/operations")},M=()=>{D()},G=X=>{w(X),v(!0)},_=()=>{D()};return h.jsxs("div",{className:"container mx-auto px-4 py-6",children:[h.jsxs("div",{className:"flex justify-between items-center mb-6",children:[h.jsxs("div",{children:[h.jsx("div",{className:"flex items-center mb-2",children:h.jsx("button",{onClick:z,className:"text-blue-600 hover:text-blue-800 mr-3",children:"← Back to Databases"})}),h.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Collections"}),h.jsxs("p",{className:"text-gray-600",children:["Collections in database:"," ",h.jsx("span",{className:"font-medium",children:T})]})]}),h.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:[h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"]})]}),h.jsxs("div",{className:"bg-white rounded-lg shadow-md overflow-hidden",children:[h.jsxs("div",{className:"border-b border-gray-200 bg-gray-50 px-6 py-4",children:[h.jsxs("h3",{className:"text-lg font-medium text-gray-900",children:["Collections in ",T]}),h.jsxs("p",{className:"text-sm text-gray-500",children:["Total:"," ",i?"Loading...":o.length>0?`${o.length} Collections`:"0 Collections"]})]}),i?h.jsx("div",{className:"p-6",children:[1,2,3].map(X=>h.jsxs("div",{className:"animate-pulse flex items-center justify-between py-4 border-b border-gray-100",children:[h.jsxs("div",{children:[h.jsx("div",{className:"h-6 bg-gray-200 rounded w-48 mb-2"}),h.jsx("div",{className:"h-4 bg-gray-100 rounded w-32"})]}),h.jsx("div",{className:"h-8 bg-gray-200 rounded w-24"})]},X))}):h.jsx("ul",{className:"divide-y divide-gray-200",children:o.length>0?o.map(X=>h.jsxs("li",{className:"px-6 py-4 flex items-center justify-between hover:bg-gray-50 transition-colors",children:[h.jsxs("div",{children:[h.jsxs("h4",{className:"text-lg font-medium text-gray-900 flex items-center",children:[X.name,X.isEncrypted?h.jsx("span",{className:"ml-2 text-green-600",title:"Encrypted Collection",children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"})})}):h.jsx("span",{className:"ml-2 text-gray-400",title:"Unencrypted Collection",children:h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"})})})]}),h.jsxs("p",{className:"text-sm text-gray-500",children:[X.documentCount," documents"]})]}),h.jsxs("div",{className:"flex space-x-2",children:[h.jsx("button",{onClick:()=>a(`/collections/documents?database=${T}&collection=${X.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"}),h.jsx("button",{onClick:()=>G(X.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"})]})]},X.name)):h.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&&h.jsx(Xj,{isOpen:g,onClose:()=>m(!1),onCollectionCreated:M,databaseName:T}),y&&h.jsx(Kj,{isOpen:y,onClose:()=>v(!1),onCollectionDeleted:_,databaseName:T,collectionName:b})]})},Fj=({isOpen:n,onClose:a,onDocumentInserted:i,databaseName:r,collectionName:o,onSuccess:c})=>{const[f,p]=j.useState(`{
|
|
66
|
+
|
|
67
|
+
}`),[g,m]=j.useState(""),[y,v]=j.useState(!1),{TransactionKey:b}=ot(T=>T),w=T=>Ae(null,null,function*(){var E;T.preventDefault(),m("");try{const N=JSON.parse(f);v(!0);const D=yield me.post(`${Je}/api/operation/create/?dbName=${r}&collectionName=${o}&transactiontoken=${b}`,Z({},N));if(D.status===200||D.status===201){const z=(E=D.data.data)==null?void 0:E.documentId,M=le(Z({},N),{documentId:z||`doc_${Date.now()}`,updatedAt:new Date().toISOString()});i(M),a(),typeof c=="function"&&c()}else throw new Error("Failed to insert document")}catch(N){N instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error inserting document: ${N.message}`),v(!1)}});return n?h.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:h.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[h.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[h.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[h.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:h.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"]}),h.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:h.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),h.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[h.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-blue-50 p-3 rounded-md",children:[h.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:h.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"})}),h.jsxs("p",{className:"text-sm text-blue-700",children:["Enter the document data in JSON format to insert into"," ",h.jsx("span",{className:"font-semibold",children:o})]})]}),g&&h.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:h.jsx("p",{children:g})}),h.jsxs("form",{onSubmit:w,children:[h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Document Data (JSON)"}),h.jsx("textarea",{value:f,onChange:T=>p(T.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}),h.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"The documentId and updatedAt fields will be automatically generated."})]}),h.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[h.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"}),h.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?h.jsxs(h.Fragment,{children:[h.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:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.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},Qj=({isOpen:n,onClose:a,onDocumentUpdated:i,document:r,databaseName:o,collectionName:c})=>{const[f,p]=j.useState(""),[g,m]=j.useState(""),[y,v]=j.useState(!1),{TransactionKey:b}=ot(T=>T);j.useEffect(()=>{if(r){const T=r,{documentId:E,updatedAt:N}=T,D=rt(T,["documentId","updatedAt"]);p(JSON.stringify(D,null,2))}},[r]);const w=T=>Ae(null,null,function*(){var E;T.preventDefault(),m("");try{const N=JSON.parse(f);v(!0);const D=yield me.put(`${Je}/api/operation/update/?dbName=${o}&collectionName=${c}&documentId=${r.documentId}&transactiontoken=${b}`,Z({},N));if(D.status===200){const z=((E=D.data.data)==null?void 0:E.document)||le(Z({},N),{documentId:r.documentId,updatedAt:new Date().toISOString()});i(z),a()}else throw new Error("Failed to update document")}catch(N){N instanceof SyntaxError?m("Invalid JSON format. Please check your input."):m(`Error updating document: ${N.message}`),v(!1)}});return n?h.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:h.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-2xl w-full mx-4 max-h-[90vh] flex flex-col",children:[h.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[h.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[h.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:h.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"]}),h.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:h.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),h.jsxs("div",{className:"p-6 overflow-y-auto flex-grow",children:[h.jsxs("div",{className:"mb-4 flex items-center space-x-2 bg-indigo-50 p-3 rounded-md",children:[h.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:h.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"})}),h.jsx("p",{className:"text-sm text-indigo-700",children:"Edit the document data in JSON format"})]}),g&&h.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:h.jsx("p",{children:g})}),h.jsxs("form",{onSubmit:w,children:[h.jsxs("div",{className:"mb-4",children:[h.jsxs("div",{className:"flex justify-between items-center mb-2",children:[h.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Document Data (JSON)"}),h.jsxs("div",{className:"flex items-center",children:[h.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:h.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"})}),h.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["ID: ",r.documentId]})]})]}),h.jsx("textarea",{value:f,onChange:T=>p(T.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}),h.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."})]}),h.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[h.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"}),h.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?h.jsxs(h.Fragment,{children:[h.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:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.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},$j=({isOpen:n,onClose:a,onDocumentDeleted:i,documentId:r,databaseName:o,collectionName:c})=>{const[f,p]=j.useState(!1),[g,m]=j.useState(""),{TransactionKey:y}=ot(b=>b),v=()=>Ae(null,null,function*(){try{if(p(!0),(yield me.delete(`${Je}/api/operation/delete/by-id/?dbName=${o}&collectionName=${c}&documentId=${r}&transactiontoken=${y}`)).status===200)i(r),a();else throw new Error("Failed to delete document")}catch(b){m(`Error deleting document: ${b.message}`),p(!1)}});return n?h.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:h.jsxs("div",{className:"relative bg-white rounded-lg shadow-2xl max-w-md w-full mx-4",children:[h.jsxs("div",{className:"flex justify-between items-center p-5 border-b",children:[h.jsxs("h3",{className:"text-xl font-semibold text-gray-900 flex items-center",children:[h.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:h.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"]}),h.jsx("button",{onClick:a,className:"text-gray-400 hover:text-gray-500 transition-colors",children:h.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),h.jsxs("div",{className:"p-6",children:[h.jsx("div",{className:"bg-red-50 p-4 rounded-md mb-5",children:h.jsxs("div",{className:"flex",children:[h.jsx("div",{className:"flex-shrink-0",children:h.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:h.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"})})}),h.jsxs("div",{className:"ml-3",children:[h.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Are you sure you want to delete this document?"}),h.jsx("div",{className:"mt-2 text-sm text-red-700",children:h.jsx("p",{children:"This action cannot be undone."})})]})]})}),h.jsxs("div",{className:"mb-5",children:[h.jsx("p",{className:"text-gray-700 mb-2",children:h.jsx("span",{className:"font-medium",children:"Document ID:"})}),h.jsx("div",{className:"bg-gray-50 p-2 rounded border border-gray-200 font-mono text-sm break-all",children:r})]}),h.jsxs("div",{className:"mb-5",children:[h.jsxs("p",{className:"text-gray-700 mb-1",children:[h.jsx("span",{className:"font-medium",children:"Collection:"})," ",c]}),h.jsxs("p",{className:"text-gray-700",children:[h.jsx("span",{className:"font-medium",children:"Database:"})," ",o]})]}),g&&h.jsx("div",{className:"mb-4 bg-red-50 border-l-4 border-red-500 p-4 text-red-700",children:h.jsx("p",{children:g})}),h.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[h.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"}),h.jsx("button",{onClick:v,disabled:f,className:`px-4 py-2 rounded-md text-white flex items-center ${f?"bg-red-500":"bg-red-600 hover:bg-red-700"} transition-colors shadow-md`,children:f?h.jsxs(h.Fragment,{children:[h.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:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.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},Jj=({isOpen:n,onClose:a,databaseName:i,collectionName:r,onAggregationResults:o})=>{const[c,f]=j.useState('[{ "$match": {} }]'),[p,g]=j.useState(!1),[m,y]=j.useState(null),{TransactionKey:v}=ot(T=>T),b=()=>Ae(null,null,function*(){var T,E;try{g(!0),y(null);const N=JSON.parse(c),D=yield me.post(`${Je}/api/operation/aggregate/?dbName=${i}&collectionName=${r}`,{aggregation:N},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${v}`}});if(D.data&&D.data.data){const z=D.data.data.documents||D.data.data;o(z,N),a()}}catch(N){console.error("Aggregation error:",N),y(((E=(T=N.response)==null?void 0:T.data)==null?void 0:E.message)||N.message||"Failed to run aggregation")}finally{g(!1)}}),w=()=>{y(null),a()};return n?h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:h.jsxs("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-3xl max-h-[90vh] flex flex-col",children:[h.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:[h.jsx("h3",{className:"text-lg font-medium text-gray-900",children:"Run Aggregation Pipeline"}),h.jsx("button",{onClick:w,className:"text-gray-500 hover:text-gray-700 focus:outline-none",children:h.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),h.jsxs("div",{className:"flex-1 overflow-auto p-6",children:[h.jsxs("div",{className:"mb-4",children:[h.jsx("p",{className:"text-sm text-gray-600 mb-2",children:"Enter your MongoDB aggregation pipeline as a JSON array. Example:"}),h.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 } }]'}),h.jsxs("p",{className:"text-sm text-gray-600 mb-4",children:["Running on ",h.jsx("span",{className:"font-semibold",children:r})," ","in database ",h.jsx("span",{className:"font-semibold",children:i})]})]}),h.jsxs("div",{className:"mb-4",children:[h.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Aggregation Pipeline"}),h.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:T=>f(T.target.value),placeholder:'[{ "$match": {} }]'})]}),m&&h.jsx("div",{className:"bg-red-50 border-l-4 border-red-500 p-4 mb-4",children:h.jsxs("div",{className:"flex",children:[h.jsx("div",{className:"flex-shrink-0",children:h.jsx("svg",{className:"h-5 w-5 text-red-500",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"})})}),h.jsx("div",{className:"ml-3",children:h.jsx("p",{className:"text-sm text-red-700",children:m})})]})})]}),h.jsxs("div",{className:"px-6 py-4 border-t border-gray-200 flex justify-end",children:[h.jsx("button",{onClick:w,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"}),h.jsx("button",{onClick:b,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?h.jsxs(h.Fragment,{children:[h.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:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.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..."]}):h.jsxs(h.Fragment,{children:[h.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:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"Run Aggregation"]})})]})]})}):null},$p=()=>{const[n]=Ny(),a=ll(),[i,r]=j.useState(!0),[o,c]=j.useState([]),[f,p]=j.useState(!0),[g,m]=j.useState(1),y=j.useRef(),v=n.get("database"),b=n.get("collection"),{TransactionKey:w}=ot(I=>I),[T,E]=j.useState(!1),[N,D]=j.useState(!1),[z,M]=j.useState(!1),[G,_]=j.useState(!1),[X,$]=j.useState(null),[Q,ce]=j.useState(!1),[Te,ge]=j.useState([]),[we,Be]=j.useState([]),Ze=j.useCallback((I=1,fe=!1)=>Ae(null,null,function*(){try{r(!0);const De=yield me.get(`${Je}/api/operation/all/?dbName=${v}&collectionName=${b}&page=${I}&transactiontoken=${w}`);if(De.status===200){const Un=De.data.data.data.documents||[];c(fe?Un:nn=>[...nn,...Un]),p(Un.length===10)}r(!1)}catch(De){console.error("Error fetching documents:",De),r(!1)}}),[v,b,w]);j.useEffect(()=>{if(!v||!b){a("/collections");return}ce(!1),ge([]),m(1),c([]),Ze(1,!0)},[v,b,a,Ze]);const Ve=j.useCallback(I=>{i||Q||(y.current&&y.current.disconnect(),y.current=new IntersectionObserver(fe=>{fe[0].isIntersecting&&f&&(m(De=>De+1),Ze(g+1))}),I&&y.current.observe(I))},[i,f,Ze,g,Q]),H=()=>{a(`/collections?database=${v}`)},F=I=>{c(fe=>[I,...fe])},ee=I=>{$(I),D(!0)},ye=I=>{$(I),M(!0)},R=()=>Ae(null,null,function*(){try{r(!0);const I=yield me.post(`${Je}/api/operation/aggregate/?dbName=${v}&collectionName=${b}`,{aggregation:Te},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${w}`}});I.data&&I.data.data&&Be(I.data.data.documents||I.data.data),r(!1)}catch(I){console.error("Error re-running aggregation:",I),r(!1)}}),K=I=>{c(fe=>fe.map(De=>De.documentId===I.documentId?I:De)),Q&&R()},W=I=>{c(fe=>fe.filter(De=>De.documentId!==I)),Q&&R()},J=(I,fe)=>{Be(I),ge(fe),ce(!0)},ae=()=>{ce(!1),ge([]),Be([]),Ze(1,!0)},Se=I=>new Date(I).toLocaleString(),ue=I=>{try{return!Array.isArray(I)||I.length===0?"No conditions":I.map((De,Un)=>{const nn=Object.keys(De)[0];return`${nn.replace("$","")}: ${JSON.stringify(De[nn]).substring(0,30)}${JSON.stringify(De[nn]).length>30?"...":""}`}).join(", ")}catch(fe){return"Invalid pipeline"}};return h.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-7xl",children:[h.jsxs("div",{className:"bg-white rounded-lg shadow-lg overflow-hidden mb-8",children:[h.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:[h.jsxs("div",{children:[h.jsx("div",{className:"flex items-center mb-2",children:h.jsxs("button",{onClick:H,className:"text-blue-600 hover:text-blue-800 flex items-center transition-colors font-medium",children:[h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-1",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"]})}),h.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Documents"}),h.jsxs("div",{className:"flex items-center mt-1 text-gray-600",children:[h.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:h.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"})}),h.jsx("span",{className:"font-medium",children:b}),h.jsx("span",{className:"mx-2",children:"in"}),h.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:h.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"})}),h.jsx("span",{className:"font-medium",children:v})]})]}),h.jsxs("div",{className:"flex space-x-3",children:[h.jsxs("button",{onClick:()=>_(!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:[h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"]}),h.jsxs("button",{onClick:()=>E(!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:[h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"]})]})]}),Q&&h.jsxs("div",{className:"bg-indigo-50 px-6 py-3 border-b border-indigo-100 flex justify-between items-center",children:[h.jsxs("div",{className:"flex items-center",children:[h.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:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})}),h.jsxs("div",{children:[h.jsx("span",{className:"text-sm font-medium text-indigo-800",children:"Aggregation Results"}),h.jsxs("p",{className:"text-xs text-indigo-600 mt-0.5",children:["Pipeline: ",ue(Te)]})]})]}),h.jsxs("button",{onClick:ae,className:"text-indigo-700 hover:text-indigo-900 text-sm font-medium flex items-center",children:[h.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:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Clear Aggregation"]})]}),h.jsxs("div",{className:"p-6",children:[i&&(!Q&&o.length===0)?h.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=>h.jsxs("div",{className:"animate-pulse bg-white rounded-lg border border-gray-200 shadow-sm p-4",children:[h.jsx("div",{className:"h-4 bg-gray-200 rounded w-3/4 mb-3"}),h.jsx("div",{className:"h-3 bg-gray-100 rounded w-1/2 mb-2"}),h.jsx("div",{className:"h-20 bg-gray-100 rounded mb-3"}),h.jsxs("div",{className:"flex justify-end",children:[h.jsx("div",{className:"h-8 bg-gray-200 rounded w-16 mr-2"}),h.jsx("div",{className:"h-8 bg-gray-200 rounded w-16"})]})]},I))}):Q?we.length>0?h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:we.map((I,fe)=>h.jsx("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:h.jsxs("div",{className:"p-4",children:[h.jsxs("div",{className:"flex items-center justify-between mb-3",children:[h.jsxs("div",{className:"flex items-center",children:[h.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:h.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"})}),h.jsx("div",{className:"font-mono text-indigo-700 font-semibold",children:h.jsx("span",{className:"text-sm",children:I.documentId?`ID: ${I.documentId}`:`Result #${fe+1}`})})]}),I.updatedAt&&h.jsx("span",{className:"text-xs text-gray-500",title:I.updatedAt,children:Se(I.updatedAt)})]}),h.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:h.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(I).filter(([De])=>!["documentId","updatedAt"].includes(De))),null,2)})}),I.documentId&&h.jsxs("div",{className:"flex justify-end space-x-2",children:[h.jsx("button",{onClick:()=>ee(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"}),h.jsx("button",{onClick:()=>ye(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"})]})]})},fe))}):h.jsxs("div",{className:"text-center py-12",children:[h.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:h.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"})}),h.jsx("p",{className:"text-gray-500 mb-2",children:"No documents match your aggregation pipeline"}),h.jsx("button",{onClick:ae,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?h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:o.map((I,fe)=>h.jsx("div",{ref:!Q&&fe===o.length-1?Ve:null,className:"bg-white rounded-lg border border-gray-200 shadow-sm hover:shadow-md transition-shadow overflow-hidden",children:h.jsxs("div",{className:"p-4",children:[h.jsxs("div",{className:"flex items-center justify-between mb-3",children:[h.jsxs("div",{className:"flex items-center",children:[h.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:h.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"})}),h.jsx("div",{className:"font-mono text-indigo-700 font-semibold",title:I.documentId,children:h.jsxs("span",{className:"text-sm",children:["ID: ",I.documentId]})})]}),h.jsx("span",{className:"text-xs text-gray-500",title:I.updatedAt,children:Se(I.updatedAt)})]}),h.jsx("div",{className:"bg-gray-50 rounded p-3 mb-3 h-48 overflow-y-auto",children:h.jsx("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words text-gray-800",children:JSON.stringify(Object.fromEntries(Object.entries(I).filter(([De])=>!["documentId","updatedAt"].includes(De))),null,2)})}),h.jsxs("div",{className:"flex justify-end space-x-2",children:[h.jsx("button",{onClick:()=>ee(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"}),h.jsx("button",{onClick:()=>ye(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))}):h.jsxs("div",{className:"text-center py-12",children:[h.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:h.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"})}),h.jsx("p",{className:"text-gray-500 mb-2",children:"No documents found in this collection"}),h.jsx("button",{onClick:()=>E(!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&&h.jsx("div",{className:"flex justify-center items-center py-4",children:h.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:[h.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),h.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&&!f&&o.length>0&&!Q&&h.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&&we.length>0&&h.jsxs("div",{className:"text-center py-4 text-gray-500 text-sm border-t border-gray-100 mt-6",children:["Showing all ",we.length," aggregation results."]})]})]}),T&&h.jsx(Fj,{isOpen:T,onClose:()=>E(!1),onDocumentInserted:F,databaseName:v,collectionName:b,onSuccess:()=>Ze(1,!0)}),N&&X&&h.jsx(Qj,{isOpen:N,onClose:()=>D(!1),onDocumentUpdated:K,document:X,databaseName:v,collectionName:b}),z&&X&&h.jsx($j,{isOpen:z,onClose:()=>M(!1),onDocumentDeleted:W,documentId:X.documentId,databaseName:v,collectionName:b}),G&&h.jsx(Jj,{isOpen:G,onClose:()=>_(!1),databaseName:v,collectionName:b,onAggregationResults:J})]})},Wj=()=>{const[n,a]=j.useState([]),[i,r]=j.useState(!0),[o,c]=j.useState(null),[f,p]=j.useState({}),{TransactionKey:g}=ot(b=>b);j.useEffect(()=>{g&&Ae(null,null,function*(){try{r(!0);const w=yield me.get(`${Je}/api/routes?transactiontoken=${g}`);if(w.data&&w.data.data&&Array.isArray(w.data.data)){a(w.data.data);const T={};w.data.data.forEach(E=>{T[E.groupName]=!0}),p(T)}else throw new Error("Invalid API response format");r(!1)}catch(w){console.error("Error fetching API routes:",w),c("Failed to load API reference. Please try again later."),r(!1)}})},[g]);const m=b=>{p(w=>le(Z({},w),{[b]:!w[b]}))},y=b=>{switch(b){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"}},v=b=>h.jsx("pre",{className:"mt-2 p-3 bg-gray-800 text-gray-200 rounded-md overflow-x-auto text-sm",children:JSON.stringify(b,null,2)});return i?h.jsxs("div",{className:"container mx-auto px-4 py-8",children:[h.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),h.jsx("div",{className:"flex justify-center items-center py-12",children:h.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-blue-500"})})]}):o?h.jsxs("div",{className:"container mx-auto px-4 py-8",children:[h.jsx("h1",{className:"text-2xl font-bold mb-6",children:"API Reference"}),h.jsx("div",{className:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded",children:h.jsx("p",{children:o})})]}):h.jsxs("div",{className:"container mx-auto px-4 py-8",children:[h.jsx("h1",{className:"text-2xl font-bold mb-2",children:"API Reference"}),h.jsx("p",{className:"text-gray-600 mb-6",children:"Complete documentation for the AxioDB REST API"}),n.length===0&&!i&&!o?h.jsx("div",{className:"bg-yellow-100 border border-yellow-400 text-yellow-700 px-4 py-3 rounded",children:h.jsx("p",{children:"No API routes found. The server might not have returned any routes."})}):h.jsx("div",{className:"space-y-6",children:n.map(b=>h.jsxs("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[h.jsxs("div",{className:"bg-gray-50 px-4 py-3 flex justify-between items-center cursor-pointer",onClick:()=>m(b.groupName),children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-lg font-medium text-gray-900",children:b.groupName}),h.jsx("p",{className:"text-sm text-gray-500",children:b.description})]}),h.jsx("div",{className:"text-gray-500",children:f[b.groupName]?h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:h.jsx("path",{fillRule:"evenodd",d:"M5 10a1 1 0 011-1h8a1 1 0 110 2H6a1 1 0 01-1-1z",clipRule:"evenodd"})}):h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"})})})]}),f[b.groupName]&&h.jsx("div",{className:"divide-y divide-gray-200",children:b.Paths.map((w,T)=>h.jsx("div",{className:"p-4 hover:bg-gray-50",children:h.jsxs("div",{className:"flex items-start",children:[h.jsx("span",{className:`${y(w.method)} text-white text-xs font-bold px-2 py-1 rounded mr-3 min-w-16 text-center`,children:w.method}),h.jsxs("div",{className:"flex-1",children:[h.jsx("div",{className:"font-mono text-sm bg-gray-100 p-2 rounded mb-2 overflow-x-auto",children:w.path}),h.jsx("p",{className:"text-gray-700 mb-2",children:w.description}),w.payload&&h.jsxs("div",{children:[h.jsx("h4",{className:"text-sm font-semibold text-gray-700 mt-2 mb-1",children:"Payload:"}),v(w.payload)]})]})]})},T))})]},b.groupName))})]})},Ij=()=>{var p,g,m,y,v,b,w,T,E,N;const[n,a]=j.useState(null),[i,r]=j.useState(!0),[o,c]=j.useState(null),{TransactionKey:f}=ot(D=>D);return j.useEffect(()=>{Ae(null,null,function*(){try{const z=yield me.get(`${Je}/api/info`);z.status===200&&a(z.data.data)}catch(z){console.error("Error fetching author info:",z),c("Failed to load author information")}finally{r(!1)}})},[]),i?h.jsx("div",{className:"container mx-auto px-4 py-6",children:h.jsx("div",{className:"max-w-4xl mx-auto",children:h.jsx("div",{className:"bg-white rounded-lg shadow-lg p-8",children:h.jsxs("div",{className:"animate-pulse",children:[h.jsx("div",{className:"h-8 bg-gray-300 rounded w-1/3 mb-6"}),h.jsxs("div",{className:"space-y-4",children:[h.jsx("div",{className:"h-4 bg-gray-300 rounded w-full"}),h.jsx("div",{className:"h-4 bg-gray-300 rounded w-2/3"}),h.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/2"})]})]})})})}):o?h.jsx("div",{className:"container mx-auto px-4 py-6",children:h.jsx("div",{className:"max-w-4xl mx-auto",children:h.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6",children:h.jsxs("div",{className:"flex items-center",children:[h.jsx("div",{className:"flex-shrink-0",children:h.jsx("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:h.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"})})}),h.jsxs("div",{className:"ml-3",children:[h.jsx("h3",{className:"text-sm font-medium text-red-800",children:"Error"}),h.jsx("p",{className:"text-sm text-red-700 mt-1",children:o})]})]})})})}):h.jsx("div",{className:"container mx-auto px-4 py-6",children:h.jsxs("div",{className:"max-w-4xl mx-auto",children:[h.jsxs("div",{className:"text-center mb-8",children:[h.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Need Help with AxioDB?"}),h.jsx("p",{className:"text-xl text-gray-600",children:"Get in touch with the developer for support and assistance"})]}),h.jsxs("div",{className:"bg-white rounded-xl shadow-xl overflow-hidden",children:[h.jsx("div",{className:"bg-gradient-to-r from-blue-600 to-purple-600 px-8 py-12 text-white",children:h.jsxs("div",{className:"flex items-center space-x-6",children:[h.jsxs("div",{className:"w-20 h-20 rounded-full overflow-hidden border-4 border-white border-opacity-30",children:[h.jsx("img",{src:`https://github.com/${(g=(p=n==null?void 0:n.AuthorDetails)==null?void 0:p.github)==null?void 0:g.split("/").pop()}.png`,alt:`${(m=n==null?void 0:n.AuthorDetails)==null?void 0:m.name}'s GitHub Avatar`,className:"w-full h-full object-cover",onError:D=>{D.target.style.display="none",D.target.nextElementSibling.style.display="flex"}}),h.jsx("div",{className:"w-full h-full bg-white bg-opacity-20 rounded-full hidden items-center justify-center",children:h.jsx("svg",{className:"w-10 h-10 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"})})})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-2xl font-bold",children:((y=n==null?void 0:n.AuthorDetails)==null?void 0:y.name)||"Loading..."}),h.jsx("p",{className:"text-blue-100 text-lg",children:((v=n==null?void 0:n.AuthorDetails)==null?void 0:v.Designation)||"Software Engineer"}),h.jsxs("p",{className:"text-blue-100",children:[((b=n==null?void 0:n.AuthorDetails)==null?void 0:b.Country)||"India"," • Solo Developer"]})]})]})}),h.jsx("div",{className:"px-8 py-8",children:h.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[h.jsxs("div",{children:[h.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:"Contact Information"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("a",{href:`mailto:${(w=n==null?void 0:n.AuthorDetails)==null?void 0:w.Email}`,className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[h.jsx("div",{className:"w-10 h-10 bg-red-100 rounded-full flex items-center justify-center mr-4",children:h.jsx("svg",{className:"w-5 h-5 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"})})}),h.jsxs("div",{children:[h.jsx("p",{className:"font-medium text-gray-900",children:"Email"}),h.jsx("p",{className:"text-gray-600",children:(T=n==null?void 0:n.AuthorDetails)==null?void 0:T.Email})]})]}),h.jsxs("a",{href:(E=n==null?void 0:n.AuthorDetails)==null?void 0:E.LinkedIn,target:"_blank",rel:"noopener noreferrer",className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[h.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-4",children:h.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:h.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"})})}),h.jsxs("div",{children:[h.jsx("p",{className:"font-medium text-gray-900",children:"LinkedIn"}),h.jsx("p",{className:"text-gray-600",children:"Connect on LinkedIn"})]})]}),h.jsxs("a",{href:(N=n==null?void 0:n.AuthorDetails)==null?void 0:N.github,target:"_blank",rel:"noopener noreferrer",className:"flex items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors",children:[h.jsx("div",{className:"w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center mr-4",children:h.jsx("svg",{className:"w-5 h-5 text-white",fill:"currentColor",viewBox:"0 0 20 20",children:h.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"})})}),h.jsxs("div",{children:[h.jsx("p",{className:"font-medium text-gray-900",children:"GitHub"}),h.jsx("p",{className:"text-gray-600",children:"View source code"})]})]})]})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-6",children:"Project Details"}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"p-4 bg-blue-50 rounded-lg",children:[h.jsx("p",{className:"font-medium text-blue-900",children:"Package Name"}),h.jsx("p",{className:"text-blue-700",children:(n==null?void 0:n.Package_Name)||"axiodb"})]}),h.jsxs("div",{className:"p-4 bg-green-50 rounded-lg",children:[h.jsx("p",{className:"font-medium text-green-900",children:"Version"}),h.jsx("p",{className:"text-green-700",children:(n==null?void 0:n.AxioDB_Version)||"2.30.92"})]}),h.jsxs("div",{className:"p-4 bg-purple-50 rounded-lg",children:[h.jsx("p",{className:"font-medium text-purple-900",children:"License"}),h.jsx("p",{className:"text-purple-700",children:(n==null?void 0:n.License)||"MIT"})]})]})]})]})})]}),h.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-xl p-8 mt-8",children:h.jsxs("div",{className:"flex items-start",children:[h.jsx("div",{className:"flex-shrink-0",children:h.jsx("svg",{className:"h-8 w-8 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"})})}),h.jsxs("div",{className:"ml-4",children:[h.jsx("h3",{className:"text-xl font-semibold text-yellow-900 mb-4",children:"Reporting Issues"}),h.jsxs("div",{className:"prose text-yellow-800",children:[h.jsx("p",{className:"mb-4",children:"If you encounter any issues with AxioDB, please help me resolve them quickly by providing detailed information:"}),h.jsxs("ul",{className:"list-disc list-inside space-y-2 mb-4",children:[h.jsxs("li",{children:[h.jsx("strong",{children:"Detailed Description:"})," What exactly happened and what did you expect?"]}),h.jsxs("li",{children:[h.jsx("strong",{children:"Steps to Reproduce:"})," Please provide step-by-step instructions to reproduce the error"]}),h.jsxs("li",{children:[h.jsx("strong",{children:"Environment:"})," Operating system, Node.js version, AxioDB version"]}),h.jsxs("li",{children:[h.jsx("strong",{children:"Error Messages:"})," Copy the complete error message and stack trace"]}),h.jsxs("li",{children:[h.jsx("strong",{children:"Code Sample:"})," Minimal code that reproduces the issue"]})]}),h.jsxs("div",{className:"bg-yellow-100 rounded-lg p-4 mt-4",children:[h.jsx("p",{className:"font-medium text-yellow-900",children:"Note:"}),h.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!"})]})]})]})]})}),h.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 mt-6",children:h.jsxs("div",{className:"flex items-center",children:[h.jsx("svg",{className:"h-6 w-6 text-blue-600 mr-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-semibold text-blue-900",children:"Expected Response Time"}),h.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."})]})]})})]})})},e4=()=>{var b,w,T,E,N,D,z;const[n,a]=j.useState(null),[i,r]=j.useState(!0),[o,c]=j.useState(null),[f,p]=j.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)}});j.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?h.jsx("div",{className:"container mx-auto px-4 py-6",children:h.jsxs("div",{className:"max-w-4xl mx-auto",children:[h.jsxs("div",{className:"text-center mb-8",children:[h.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"AxioDB Status"}),h.jsx("p",{className:"text-xl text-gray-600",children:"Checking server health..."})]}),h.jsx("div",{className:"bg-white rounded-xl shadow-lg p-8",children:h.jsxs("div",{className:"animate-pulse",children:[h.jsx("div",{className:"flex items-center justify-center mb-6",children:h.jsx("div",{className:"h-16 w-16 bg-gray-300 rounded-full"})}),h.jsxs("div",{className:"space-y-4",children:[h.jsx("div",{className:"h-6 bg-gray-300 rounded w-1/3 mx-auto"}),h.jsx("div",{className:"h-4 bg-gray-300 rounded w-1/2 mx-auto"}),h.jsx("div",{className:"h-4 bg-gray-300 rounded w-2/3 mx-auto"})]})]})})]})}):h.jsx("div",{className:"container mx-auto px-4 py-6",children:h.jsxs("div",{className:"max-w-4xl mx-auto",children:[h.jsxs("div",{className:"text-center mb-8",children:[h.jsx("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"AxioDB Status"}),h.jsx("p",{className:"text-xl text-gray-600",children:"Real-time server health monitoring"})]}),h.jsx("div",{className:`${v.bg} ${v.border} border rounded-xl shadow-lg overflow-hidden mb-8`,children:h.jsxs("div",{className:"p-8",children:[h.jsx("div",{className:"flex items-center justify-center mb-6",children:o?h.jsx("div",{className:`w-16 h-16 ${v.icon} flex items-center justify-center`,children:h.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"})})}):((w=n==null?void 0:n.data)==null?void 0:w.status)==="ok"?h.jsx("div",{className:`w-16 h-16 ${v.icon} flex items-center justify-center`,children:h.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"})})}):h.jsx("div",{className:`w-16 h-16 ${v.icon} flex items-center justify-center`,children:h.jsx("svg",{className:"w-12 h-12",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}),h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"flex items-center justify-center mb-4",children:h.jsxs("span",{className:`inline-flex items-center px-4 py-2 rounded-full text-sm font-medium ${v.badge}`,children:[h.jsx("span",{className:`w-2 h-2 ${((T=n==null?void 0:n.data)==null?void 0:T.status)==="ok"?"bg-green-400":"bg-red-400"} rounded-full mr-2 ${((E=n==null?void 0:n.data)==null?void 0:E.status)==="ok"?"animate-pulse":""}`}),o?"Server Unreachable":((D=(N=n==null?void 0:n.data)==null?void 0:N.status)==null?void 0:D.toUpperCase())||"UNKNOWN"]})}),h.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)&&h.jsxs("p",{className:`${v.text} text-lg`,children:["Server Time: ",m(n.data.timestamp)]})]})]})}),h.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[h.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[h.jsxs("div",{className:"flex items-center mb-4",children:[h.jsx("div",{className:"w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-3",children:h.jsx("svg",{className:"w-4 h-4 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})}),h.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Response Time"})]}),h.jsx("p",{className:"text-2xl font-bold text-blue-600",children:o?"N/A":"< 100ms"}),h.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"API response latency"})]}),h.jsxs("div",{className:"bg-white rounded-lg shadow-md p-6",children:[h.jsxs("div",{className:"flex items-center mb-4",children:[h.jsx("div",{className:"w-8 h-8 bg-green-100 rounded-full flex items-center justify-center mr-3",children:h.jsx("svg",{className:"w-4 h-4 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),h.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"Status Code"})]}),h.jsx("p",{className:"text-2xl font-bold text-green-600",children:(n==null?void 0:n.statusCode)||(o?"Error":"N/A")}),h.jsx("p",{className:"text-sm text-gray-600 mt-1",children:"HTTP response status"})]})]}),h.jsx("div",{className:"bg-white rounded-lg shadow-md p-6",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Auto-Refresh"}),h.jsxs("p",{className:"text-sm text-gray-600",children:["Status updates automatically every 30 seconds",f&&h.jsxs(h.Fragment,{children:[h.jsx("br",{}),"Last updated: ",f.toLocaleTimeString()]})]})]}),h.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:[h.jsx("svg",{className:`w-4 h-4 mr-2 ${i?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"]})]})}),h.jsx("div",{className:"bg-gray-50 rounded-lg p-6 mt-8",children:h.jsxs("div",{className:"text-center",children:[h.jsx("h4",{className:"text-sm font-semibold text-gray-900 mb-2",children:"Service Information"}),h.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"," ",h.jsx("a",{href:"/support",className:"text-blue-600 hover:text-blue-800",children:"support page"})," ","for assistance."]})]})})]})})},Gf=j.createContext({});function Xf(n){const a=j.useRef(null);return a.current===null&&(a.current=n()),a.current}const Kf=typeof window!="undefined",Iy=Kf?j.useLayoutEffect:j.useEffect,uo=j.createContext(null);function Zf(n,a){n.indexOf(a)===-1&&n.push(a)}function Ff(n,a){const i=n.indexOf(a);i>-1&&n.splice(i,1)}const Ln=(n,a,i)=>i>a?a:i<n?n:i;let Qf=()=>{};const zn={},ex=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n);function tx(n){return typeof n=="object"&&n!==null}const nx=n=>/^0[^.\s]+$/u.test(n);function $f(n){let a;return()=>(a===void 0&&(a=n()),a)}const Qt=n=>n,t4=(n,a)=>i=>a(n(i)),dl=(...n)=>n.reduce(t4),Wi=(n,a,i)=>{const r=a-n;return r===0?1:(i-n)/r};class Jf{constructor(){this.subscriptions=[]}add(a){return Zf(this.subscriptions,a),()=>Ff(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 f=this.subscriptions[c];f&&f(a,i,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const dn=n=>n*1e3,hn=n=>n/1e3;function ax(n,a){return a?n*(1e3/a):0}const sx=(n,a,i)=>(((1-3*i+3*a)*n+(3*i-6*a))*n+3*a)*n,n4=1e-7,a4=12;function s4(n,a,i,r,o){let c,f,p=0;do f=a+(i-a)/2,c=sx(f,r,o)-n,c>0?i=f:a=f;while(Math.abs(c)>n4&&++p<a4);return f}function hl(n,a,i,r){if(n===a&&i===r)return Qt;const o=c=>s4(c,0,1,n,i);return c=>c===0||c===1?c:sx(o(c),a,r)}const ix=n=>a=>a<=.5?n(2*a)/2:(2-n(2*(1-a)))/2,lx=n=>a=>1-n(1-a),rx=hl(.33,1.53,.69,.99),Wf=lx(rx),ox=ix(Wf),ux=n=>(n*=2)<1?.5*Wf(n):.5*(2-Math.pow(2,-10*(n-1))),If=n=>1-Math.sin(Math.acos(n)),cx=lx(If),fx=ix(If),i4=hl(.42,0,1,1),l4=hl(0,0,.58,1),dx=hl(.42,0,.58,1),r4=n=>Array.isArray(n)&&typeof n[0]!="number",hx=n=>Array.isArray(n)&&typeof n[0]=="number",o4={linear:Qt,easeIn:i4,easeInOut:dx,easeOut:l4,circIn:If,circInOut:fx,circOut:cx,backIn:Wf,backInOut:ox,backOut:rx,anticipate:ux},u4=n=>typeof n=="string",Jp=n=>{if(hx(n)){Qf(n.length===4);const[a,i,r,o]=n;return hl(a,i,r,o)}else if(u4(n))return o4[n];return n},Lr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function c4(n,a){let i=new Set,r=new Set,o=!1,c=!1;const f=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function g(y){f.has(y)&&(m.schedule(y),n()),y(p)}const m={schedule:(y,v=!1,b=!1)=>{const T=b&&o?i:r;return v&&f.add(y),T.has(y)||T.add(y),y},cancel:y=>{r.delete(y),f.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 f4=40;function mx(n,a){let i=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>i=!0,f=Lr.reduce((M,G)=>(M[G]=c4(c),M),{}),{setup:p,read:g,resolveKeyframes:m,preUpdate:y,update:v,preRender:b,render:w,postRender:T}=f,E=()=>{const M=zn.useManualTiming?o.timestamp:performance.now();i=!1,zn.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(M-o.timestamp,f4),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),w.process(o),T.process(o),o.isProcessing=!1,i&&a&&(r=!1,n(E))},N=()=>{i=!0,r=!0,o.isProcessing||n(E)};return{schedule:Lr.reduce((M,G)=>{const _=f[G];return M[G]=(X,$=!1,Q=!1)=>(i||N(),_.schedule(X,$,Q)),M},{}),cancel:M=>{for(let G=0;G<Lr.length;G++)f[Lr[G]].cancel(M)},state:o,steps:f}}const{schedule:ke,cancel:ua,state:dt,steps:Pc}=mx(typeof requestAnimationFrame!="undefined"?requestAnimationFrame:Qt,!0);let Pr;function d4(){Pr=void 0}const Nt={now:()=>(Pr===void 0&&Nt.set(dt.isProcessing||zn.useManualTiming?dt.timestamp:performance.now()),Pr),set:n=>{Pr=n,queueMicrotask(d4)}},px=n=>a=>typeof a=="string"&&a.startsWith(n),ed=px("--"),h4=px("var(--"),td=n=>h4(n)?m4.test(n.split("/*")[0].trim()):!1,m4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ks={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},Ii=le(Z({},ks),{transform:n=>Ln(0,1,n)}),zr=le(Z({},ks),{default:1}),Xi=n=>Math.round(n*1e5)/1e5,nd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function p4(n){return n==null}const g4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ad=(n,a)=>i=>!!(typeof i=="string"&&g4.test(i)&&i.startsWith(n)||a&&!p4(i)&&Object.prototype.hasOwnProperty.call(i,a)),gx=(n,a,i)=>r=>{if(typeof r!="string")return r;const[o,c,f,p]=r.match(nd);return{[n]:parseFloat(o),[a]:parseFloat(c),[i]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},y4=n=>Ln(0,255,n),Yc=le(Z({},ks),{transform:n=>Math.round(y4(n))}),Ba={test:ad("rgb","red"),parse:gx("red","green","blue"),transform:({red:n,green:a,blue:i,alpha:r=1})=>"rgba("+Yc.transform(n)+", "+Yc.transform(a)+", "+Yc.transform(i)+", "+Xi(Ii.transform(r))+")"};function x4(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 mf={test:ad("#"),parse:x4,transform:Ba.transform},ml=n=>({test:a=>typeof a=="string"&&a.endsWith(n)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${n}`}),ra=ml("deg"),mn=ml("%"),oe=ml("px"),v4=ml("vh"),b4=ml("vw"),Wp=le(Z({},mn),{parse:n=>mn.parse(n)/100,transform:n=>mn.transform(n*100)}),As={test:ad("hsl","hue"),parse:gx("hue","saturation","lightness"),transform:({hue:n,saturation:a,lightness:i,alpha:r=1})=>"hsla("+Math.round(n)+", "+mn.transform(Xi(a))+", "+mn.transform(Xi(i))+", "+Xi(Ii.transform(r))+")"},et={test:n=>Ba.test(n)||mf.test(n)||As.test(n),parse:n=>Ba.test(n)?Ba.parse(n):As.test(n)?As.parse(n):mf.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Ba.transform(n):As.transform(n),getAnimatableNone:n=>{const a=et.parse(n);return a.alpha=0,et.transform(a)}},S4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function w4(n){var a,i;return isNaN(n)&&typeof n=="string"&&(((a=n.match(nd))==null?void 0:a.length)||0)+(((i=n.match(S4))==null?void 0:i.length)||0)>0}const yx="number",xx="color",j4="var",T4="var(",Ip="${}",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 el(n){const a=n.toString(),i=[],r={color:[],number:[],var:[]},o=[];let c=0;const p=a.replace(N4,g=>(et.test(g)?(r.color.push(c),o.push(xx),i.push(et.parse(g))):g.startsWith(T4)?(r.var.push(c),o.push(j4),i.push(g)):(r.number.push(c),o.push(yx),i.push(parseFloat(g))),++c,Ip)).split(Ip);return{values:i,split:p,indexes:r,types:o}}function vx(n){return el(n).values}function bx(n){const{split:a,types:i}=el(n),r=a.length;return o=>{let c="";for(let f=0;f<r;f++)if(c+=a[f],o[f]!==void 0){const p=i[f];p===yx?c+=Xi(o[f]):p===xx?c+=et.transform(o[f]):c+=o[f]}return c}}const E4=n=>typeof n=="number"?0:et.test(n)?et.getAnimatableNone(n):n;function A4(n){const a=vx(n);return bx(n)(a.map(E4))}const ca={test:w4,parse:vx,createTransformer:bx,getAnimatableNone:A4};function Gc(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 R4({hue:n,saturation:a,lightness:i,alpha:r}){n/=360,a/=100,i/=100;let o=0,c=0,f=0;if(!a)o=c=f=i;else{const p=i<.5?i*(1+a):i+a-i*a,g=2*i-p;o=Gc(g,p,n+1/3),c=Gc(g,p,n),f=Gc(g,p,n-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(f*255),alpha:r}}function $r(n,a){return i=>i>0?a:n}const qe=(n,a,i)=>n+(a-n)*i,Xc=(n,a,i)=>{const r=n*n,o=i*(a*a-r)+r;return o<0?0:Math.sqrt(o)},C4=[mf,Ba,As],D4=n=>C4.find(a=>a.test(n));function eg(n){const a=D4(n);if(!a)return!1;let i=a.parse(n);return a===As&&(i=R4(i)),i}const tg=(n,a)=>{const i=eg(n),r=eg(a);if(!i||!r)return $r(n,a);const o=Z({},i);return c=>(o.red=Xc(i.red,r.red,c),o.green=Xc(i.green,r.green,c),o.blue=Xc(i.blue,r.blue,c),o.alpha=qe(i.alpha,r.alpha,c),Ba.transform(o))},pf=new Set(["none","hidden"]);function M4(n,a){return pf.has(n)?i=>i<=0?n:a:i=>i>=1?a:n}function O4(n,a){return i=>qe(n,a,i)}function sd(n){return typeof n=="number"?O4:typeof n=="string"?td(n)?$r:et.test(n)?tg:B4:Array.isArray(n)?Sx:typeof n=="object"?et.test(n)?tg:L4:$r}function Sx(n,a){const i=[...n],r=i.length,o=n.map((c,f)=>sd(c)(c,a[f]));return c=>{for(let f=0;f<r;f++)i[f]=o[f](c);return i}}function L4(n,a){const i=Z(Z({},n),a),r={};for(const o in i)n[o]!==void 0&&a[o]!==void 0&&(r[o]=sd(n[o])(n[o],a[o]));return o=>{for(const c in r)i[c]=r[c](o);return i}}function z4(n,a){var o;const i=[],r={color:0,var:0,number:0};for(let c=0;c<a.values.length;c++){const f=a.types[c],p=n.indexes[f][r[f]],g=(o=n.values[p])!=null?o:0;i[c]=g,r[f]++}return i}const B4=(n,a)=>{const i=ca.createTransformer(a),r=el(n),o=el(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?pf.has(n)&&!o.values.length||pf.has(a)&&!r.values.length?M4(n,a):dl(Sx(z4(r,o),o.values),i):$r(n,a)};function wx(n,a,i){return typeof n=="number"&&typeof a=="number"&&typeof i=="number"?qe(n,a,i):sd(n)(n,a)}const U4=n=>{const a=({timestamp:i})=>n(i);return{start:(i=!0)=>ke.update(a,i),stop:()=>ua(a),now:()=>dt.isProcessing?dt.timestamp:Nt.now()}},jx=(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)})`},Jr=2e4;function id(n){let a=0;const i=50;let r=n.next(a);for(;!r.done&&a<Jr;)a+=i,r=n.next(a);return a>=Jr?1/0:a}function V4(n,a=100,i){const r=i(le(Z({},n),{keyframes:[0,a]})),o=Math.min(id(r),Jr);return{type:"keyframes",ease:c=>r.next(o*c).value/a,duration:hn(o)}}const _4=5;function Tx(n,a,i){const r=Math.max(a-_4,0);return ax(i-n(r),a-r)}const Ke={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},Kc=.001;function k4({duration:n=Ke.duration,bounce:a=Ke.bounce,velocity:i=Ke.velocity,mass:r=Ke.mass}){let o,c,f=1-a;f=Ln(Ke.minDamping,Ke.maxDamping,f),n=Ln(Ke.minDuration,Ke.maxDuration,hn(n)),f<1?(o=m=>{const y=m*f,v=y*n,b=y-i,w=gf(m,f),T=Math.exp(-v);return Kc-b/w*T},c=m=>{const v=m*f*n,b=v*i+i,w=Math.pow(f,2)*Math.pow(m,2)*n,T=Math.exp(-v),E=gf(Math.pow(m,2),f);return(-o(m)+Kc>0?-1:1)*((b-w)*T)/E}):(o=m=>{const y=Math.exp(-m*n),v=(m-i)*n+1;return-Kc+y*v},c=m=>{const y=Math.exp(-m*n),v=(i-m)*(n*n);return y*v});const p=5/n,g=q4(o,c,p);if(n=dn(n),isNaN(g))return{stiffness:Ke.stiffness,damping:Ke.damping,duration:n};{const m=Math.pow(g,2)*r;return{stiffness:m,damping:f*2*Math.sqrt(r*m),duration:n}}}const H4=12;function q4(n,a,i){let r=i;for(let o=1;o<H4;o++)r=r-n(r)/a(r);return r}function gf(n,a){return n*Math.sqrt(1-a*a)}const P4=["duration","bounce"],Y4=["stiffness","damping","mass"];function ng(n,a){return a.some(i=>n[i]!==void 0)}function G4(n){let a=Z({velocity:Ke.velocity,stiffness:Ke.stiffness,damping:Ke.damping,mass:Ke.mass,isResolvedFromDuration:!1},n);if(!ng(n,Y4)&&ng(n,P4))if(n.visualDuration){const i=n.visualDuration,r=2*Math.PI/(i*1.2),o=r*r,c=2*Ln(.05,1,1-(n.bounce||0))*Math.sqrt(o);a=le(Z({},a),{mass:Ke.mass,stiffness:o,damping:c})}else{const i=k4(n);a=le(Z(Z({},a),i),{mass:Ke.mass}),a.isResolvedFromDuration=!0}return a}function Wr(n=Ke.visualDuration,a=Ke.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],f=i.keyframes[i.keyframes.length-1],p={done:!1,value:c},{stiffness:g,damping:m,mass:y,duration:v,velocity:b,isResolvedFromDuration:w}=G4(le(Z({},i),{velocity:-hn(i.velocity||0)})),T=b||0,E=m/(2*Math.sqrt(g*y)),N=f-c,D=hn(Math.sqrt(g/y)),z=Math.abs(N)<5;r||(r=z?Ke.restSpeed.granular:Ke.restSpeed.default),o||(o=z?Ke.restDelta.granular:Ke.restDelta.default);let M;if(E<1){const _=gf(D,E);M=X=>{const $=Math.exp(-E*D*X);return f-$*((T+E*D*N)/_*Math.sin(_*X)+N*Math.cos(_*X))}}else if(E===1)M=_=>f-Math.exp(-D*_)*(N+(T+D*N)*_);else{const _=D*Math.sqrt(E*E-1);M=X=>{const $=Math.exp(-E*D*X),Q=Math.min(_*X,300);return f-$*((T+E*D*N)*Math.sinh(Q)+_*N*Math.cosh(Q))/_}}const G={calculatedDuration:w&&v||null,next:_=>{const X=M(_);if(w)p.done=_>=v;else{let $=_===0?T:0;E<1&&($=_===0?dn(T):Tx(M,_,X));const Q=Math.abs($)<=r,ce=Math.abs(f-X)<=o;p.done=Q&&ce}return p.value=p.done?f:X,p},toString:()=>{const _=Math.min(id(G),Jr),X=jx($=>G.next(_*$).value,_,30);return _+"ms "+X},toTransition:()=>{}};return G}Wr.applyToOptions=n=>{const a=V4(n,100,Wr);return n.ease=a.ease,n.duration=dn(a.duration),n.type="keyframes",n};function yf({keyframes:n,velocity:a=0,power:i=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:f,min:p,max:g,restDelta:m=.5,restSpeed:y}){const v=n[0],b={done:!1,value:v},w=Q=>p!==void 0&&Q<p||g!==void 0&&Q>g,T=Q=>p===void 0?g:g===void 0||Math.abs(p-Q)<Math.abs(g-Q)?p:g;let E=i*a;const N=v+E,D=f===void 0?N:f(N);D!==N&&(E=D-v);const z=Q=>-E*Math.exp(-Q/r),M=Q=>D+z(Q),G=Q=>{const ce=z(Q),Te=M(Q);b.done=Math.abs(ce)<=m,b.value=b.done?D:Te};let _,X;const $=Q=>{w(b.value)&&(_=Q,X=Wr({keyframes:[b.value,T(b.value)],velocity:Tx(M,Q,b.value),damping:o,stiffness:c,restDelta:m,restSpeed:y}))};return $(0),{calculatedDuration:null,next:Q=>{let ce=!1;return!X&&_===void 0&&(ce=!0,G(Q),$(Q)),_!==void 0&&Q>=_?X.next(Q-_):(!ce&&G(Q),b)}}}function X4(n,a,i){const r=[],o=i||zn.mix||wx,c=n.length-1;for(let f=0;f<c;f++){let p=o(n[f],n[f+1]);if(a){const g=Array.isArray(a)?a[f]||Qt:a;p=dl(g,p)}r.push(p)}return r}function K4(n,a,{clamp:i=!0,ease:r,mixer:o}={}){const c=n.length;if(Qf(c===a.length),c===1)return()=>a[0];if(c===2&&a[0]===a[1])return()=>a[1];const f=n[0]===n[1];n[0]>n[c-1]&&(n=[...n].reverse(),a=[...a].reverse());const p=X4(a,r,o),g=p.length,m=y=>{if(f&&y<n[0])return a[0];let v=0;if(g>1)for(;v<n.length-2&&!(y<n[v+1]);v++);const b=Wi(n[v],n[v+1],y);return p[v](b)};return i?y=>m(Ln(n[0],n[c-1],y)):m}function Z4(n,a){const i=n[n.length-1];for(let r=1;r<=a;r++){const o=Wi(0,a,r);n.push(qe(i,1,o))}}function F4(n){const a=[0];return Z4(a,n.length-1),a}function Q4(n,a){return n.map(i=>i*a)}function $4(n,a){return n.map(()=>a||dx).splice(0,n.length-1)}function Ki({duration:n=300,keyframes:a,times:i,ease:r="easeInOut"}){const o=r4(r)?r.map(Jp):Jp(r),c={done:!1,value:a[0]},f=Q4(i&&i.length===a.length?i:F4(a),n),p=K4(f,a,{ease:Array.isArray(o)?o:$4(a,o)});return{calculatedDuration:n,next:g=>(c.value=p(g),c.done=g>=n,c)}}const J4=n=>n!==null;function ld(n,{repeat:a,repeatType:i="loop"},r,o=1){const c=n.filter(J4),p=o<0||a&&i!=="loop"&&a%2===1?0:c.length-1;return!p||r===void 0?c[p]:r}const W4={decay:yf,inertia:yf,tween:Ki,keyframes:Ki,spring:Wr};function Nx(n){typeof n.type=="string"&&(n.type=W4[n.type])}class rd{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 I4=n=>n/100;class od extends rd{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!==Nt.now()&&this.tick(Nt.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;Nx(a);const{type:i=Ki,repeat:r=0,repeatDelay:o=0,repeatType:c,velocity:f=0}=a;let{keyframes:p}=a;const g=i||Ki;g!==Ki&&typeof p[0]!="number"&&(this.mixKeyframes=dl(I4,wx(p[0],p[1])),p=[0,100]);const m=g(le(Z({},a),{keyframes:p}));c==="mirror"&&(this.mirroredGenerator=g(le(Z({},a),{keyframes:[...p].reverse(),velocity:-f}))),m.calculatedDuration===null&&(m.calculatedDuration=id(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:f,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return r.next(0);const{delay:m=0,keyframes:y,repeat:v,repeatType:b,repeatDelay:w,type:T,onUpdate:E,finalKeyframe:N}=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 D=this.currentTime-m*(this.playbackSpeed>=0?1:-1),z=this.playbackSpeed>=0?D<0:D>o;this.currentTime=Math.max(D,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let M=this.currentTime,G=r;if(v){const Q=Math.min(this.currentTime,o)/p;let ce=Math.floor(Q),Te=Q%1;!Te&&Q>=1&&(Te=1),Te===1&&ce--,ce=Math.min(ce,v+1),!!(ce%2)&&(b==="reverse"?(Te=1-Te,w&&(Te-=w/p)):b==="mirror"&&(G=f)),M=Ln(0,1,Te)*p}const _=z?{done:!1,value:y[0]}:G.next(M);c&&(_.value=c(_.value));let{done:X}=_;!z&&g!==null&&(X=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&X);return $&&T!==yf&&(_.value=ld(y,this.options,N,this.speed)),E&&E(_.value),$&&this.finish(),_}then(a,i){return this.finished.then(a,i)}get duration(){return hn(this.calculatedDuration)}get time(){return hn(this.currentTime)}set time(a){var i;a=dn(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(Nt.now());const i=this.playbackSpeed!==a;this.playbackSpeed=a,i&&(this.time=hn(this.currentTime))}play(){var o,c;if(this.isStopped)return;const{driver:a=U4,startTime:i}=this.options;this.driver||(this.driver=a(f=>this.tick(f))),(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(Nt.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 eT(n){var a;for(let i=1;i<n.length;i++)(a=n[i])!=null||(n[i]=n[i-1])}const Ua=n=>n*180/Math.PI,xf=n=>{const a=Ua(Math.atan2(n[1],n[0]));return vf(a)},tT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:xf,rotateZ:xf,skewX:n=>Ua(Math.atan(n[1])),skewY:n=>Ua(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},vf=n=>(n=n%360,n<0&&(n+=360),n),ag=xf,sg=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),ig=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),nT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sg,scaleY:ig,scale:n=>(sg(n)+ig(n))/2,rotateX:n=>vf(Ua(Math.atan2(n[6],n[5]))),rotateY:n=>vf(Ua(Math.atan2(-n[2],n[0]))),rotateZ:ag,rotate:ag,skewX:n=>Ua(Math.atan(n[4])),skewY:n=>Ua(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function bf(n){return n.includes("scale")?1:0}function Sf(n,a){if(!n||n==="none")return bf(a);const i=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(i)r=nT,o=i;else{const p=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=tT,o=p}if(!o)return bf(a);const c=r[a],f=o[1].split(",").map(sT);return typeof c=="function"?c(f):f[c]}const aT=(n,a)=>{const{transform:i="none"}=getComputedStyle(n);return Sf(i,a)};function sT(n){return parseFloat(n.trim())}const Hs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qs=new Set(Hs),lg=n=>n===ks||n===oe,iT=new Set(["x","y","z"]),lT=Hs.filter(n=>!iT.has(n));function rT(n){const a=[];return lT.forEach(i=>{const r=n.getValue(i);r!==void 0&&(a.push([i,r.get()]),r.set(i.startsWith("scale")?1:0))}),a}const _a={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})=>Sf(a,"x"),y:(n,{transform:a})=>Sf(a,"y")};_a.translateX=_a.x;_a.translateY=_a.y;const ka=new Set;let wf=!1,jf=!1,Tf=!1;function Ex(){if(jf){const n=Array.from(ka).filter(r=>r.needsMeasurement),a=new Set(n.map(r=>r.element)),i=new Map;a.forEach(r=>{const o=rT(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,f])=>{var p;(p=r.getValue(c))==null||p.set(f)})}),n.forEach(r=>r.measureEndState()),n.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}jf=!1,wf=!1,ka.forEach(n=>n.complete(Tf)),ka.clear()}function Ax(){ka.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(jf=!0)})}function oT(){Tf=!0,Ax(),Ex(),Tf=!1}class ud{constructor(a,i,r,o,c,f=!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=f}scheduleResolve(){this.state="scheduled",this.isAsync?(ka.add(this),wf||(wf=!0,ke.read(Ax),ke.resolveKeyframes(Ex))):(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(),f=a[a.length-1];if(c!==void 0)a[0]=c;else if(r&&i){const p=r.readValue(i,f);p!=null&&(a[0]=p)}a[0]===void 0&&(a[0]=f),o&&c===void 0&&o.set(a[0])}eT(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),ka.delete(this)}cancel(){this.state==="scheduled"&&(ka.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const uT=n=>n.startsWith("--");function cT(n,a,i){uT(a)?n.style.setProperty(a,i):n.style[a]=i}const fT=$f(()=>window.ScrollTimeline!==void 0),dT={};function hT(n,a){const i=$f(n);return()=>{var r;return(r=dT[a])!=null?r:i()}}const Rx=hT(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(n){return!1}return!0},"linearEasing"),Gi=([n,a,i,r])=>`cubic-bezier(${n}, ${a}, ${i}, ${r})`,rg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gi([0,.65,.55,1]),circOut:Gi([.55,0,1,.45]),backIn:Gi([.31,.01,.66,-.59]),backOut:Gi([.33,1.53,.69,.99])};function Cx(n,a){if(n)return typeof n=="function"?Rx()?jx(n,a):"ease-out":hx(n)?Gi(n):Array.isArray(n)?n.map(i=>Cx(i,a)||rg.easeOut):rg[n]}function mT(n,a,i,{delay:r=0,duration:o=300,repeat:c=0,repeatType:f="loop",ease:p="easeOut",times:g}={},m=void 0){const y={[a]:i};g&&(y.offset=g);const v=Cx(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:f==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),n.animate(y,b)}function Dx(n){return typeof n=="function"&&"applyToOptions"in n}function pT(i){var r=i,{type:n}=r,a=rt(r,["type"]);var o,c;return Dx(n)&&Rx()?n.applyToOptions(a):((o=a.duration)!=null||(a.duration=300),(c=a.ease)!=null||(a.ease="easeOut"),a)}class gT extends rd{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;const{element:i,name:r,keyframes:o,pseudoElement:c,allowFlatten:f=!1,finalKeyframe:p,onComplete:g}=a;this.isPseudoElement=!!c,this.allowFlatten=f,this.options=a,Qf(typeof a.type!="string");const m=pT(a);this.animation=mT(i,r,o,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const y=ld(o,this.options,p,this.speed);this.updateMotionValue?this.updateMotionValue(y):cT(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 hn(Number(a))}get time(){return hn(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=dn(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&&fT()?(this.animation.timeline=a,Qt):i(this)}}const Mx={anticipate:ux,backInOut:ox,circInOut:fx};function yT(n){return n in Mx}function xT(n){typeof n.ease=="string"&&yT(n.ease)&&(n.ease=Mx[n.ease])}const og=10;class vT extends gT{constructor(a){xT(a),Nx(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,f=rt(m,["motionValue","onUpdate","onComplete","element"]);if(!i)return;if(a!==void 0){i.set(a);return}const p=new od(le(Z({},f),{autoplay:!1})),g=dn((y=this.finishedTime)!=null?y:this.time);i.setWithVelocity(p.sample(g-og).value,p.sample(g).value,og),p.stop()}}const ug=(n,a)=>a==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(ca.test(n)||n==="0")&&!n.startsWith("url("));function bT(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 ST(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],f=ug(o,a),p=ug(c,a);return!f||!p?!1:bT(n)||(i==="spring"||Dx(i))&&r}function Nf(n){n.duration=0,n.type}const wT=new Set(["opacity","clipPath","filter","transform"]),jT=$f(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function TT(n){var y;const{motionValue:a,name:i,repeatDelay:r,repeatType:o,damping:c,type:f}=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 jT()&&i&&wT.has(i)&&(i!=="transform"||!m)&&!g&&!r&&o!=="mirror"&&c!==0&&f!=="inertia"}const NT=40;class ET extends rd{constructor(b){var w=b,{autoplay:a=!0,delay:i=0,type:r="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:f="loop",keyframes:p,name:g,motionValue:m,element:y}=w,v=rt(w,["autoplay","delay","type","repeat","repeatDelay","repeatType","keyframes","name","motionValue","element"]);var N;super(),this.stop=()=>{var D,z;this._animation&&(this._animation.stop(),(D=this.stopTimeline)==null||D.call(this)),(z=this.keyframeResolver)==null||z.cancel()},this.createdAt=Nt.now();const T=Z({autoplay:a,delay:i,type:r,repeat:o,repeatDelay:c,repeatType:f,name:g,motionValue:m,element:y},v),E=(y==null?void 0:y.KeyframeResolver)||ud;this.keyframeResolver=new E(p,(D,z,M)=>this.onKeyframesResolved(D,z,T,!M),g,m,y),(N=this.keyframeResolver)==null||N.scheduleResolve()}onKeyframesResolved(a,i,r,o){this.keyframeResolver=void 0;const{name:c,type:f,velocity:p,delay:g,isHandoff:m,onUpdate:y}=r;this.resolvedAt=Nt.now(),ST(a,c,f,p)||((zn.instantAnimations||!g)&&(y==null||y(ld(a,r,i))),a[0]=a[a.length-1],Nf(r),r.repeat=0);const v=o?this.resolvedAt?this.resolvedAt-this.createdAt>NT?this.resolvedAt:this.createdAt:this.createdAt:void 0,b=le(Z({startTime:v,finalKeyframe:i},r),{keyframes:a}),w=!m&&TT(b)?new vT(le(Z({},b),{element:b.motionValue.owner.current})):new od(b);w.finished.then(()=>this.notifyFinished()).catch(Qt),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}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(),oT()),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 AT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RT(n){const a=AT.exec(n);if(!a)return[,];const[,i,r,o]=a;return[`--${i!=null?i:r}`,o]}function Ox(n,a,i=1){const[r,o]=RT(n);if(!r)return;const c=window.getComputedStyle(a).getPropertyValue(r);if(c){const f=c.trim();return ex(f)?parseFloat(f):f}return td(o)?Ox(o,a,i+1):o}function cd(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 Lx=new Set(["width","height","top","left","right","bottom",...Hs]),CT={test:n=>n==="auto",parse:n=>n},zx=n=>a=>a.test(n),Bx=[ks,oe,mn,ra,b4,v4,CT],cg=n=>Bx.find(zx(n));function DT(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||nx(n):!0}const MT=new Set(["brightness","contrast","saturate","opacity"]);function OT(n){const[a,i]=n.slice(0,-1).split("(");if(a==="drop-shadow")return n;const[r]=i.match(nd)||[];if(!r)return n;const o=i.replace(r,"");let c=MT.has(a)?1:0;return r!==i&&(c*=100),a+"("+c+o+")"}const LT=/\b([a-z-]*)\(.*?\)/gu,Ef=le(Z({},ca),{getAnimatableNone:n=>{const a=n.match(LT);return a?a.map(OT).join(" "):n}}),fg=le(Z({},ks),{transform:Math.round}),zT={rotate:ra,rotateX:ra,rotateY:ra,rotateZ:ra,scale:zr,scaleX:zr,scaleY:zr,scaleZ:zr,skew:ra,skewX:ra,skewY:ra,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:Ii,originX:Wp,originY:Wp,originZ:oe},fd=le(Z({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},zT),{zIndex:fg,fillOpacity:Ii,strokeOpacity:Ii,numOctaves:fg}),BT=le(Z({},fd),{color:et,backgroundColor:et,outlineColor:et,fill:et,stroke:et,borderColor:et,borderTopColor:et,borderRightColor:et,borderBottomColor:et,borderLeftColor:et,filter:Ef,WebkitFilter:Ef}),Ux=n=>BT[n];function Vx(n,a){let i=Ux(n);return i!==Ef&&(i=ca),i.getAnimatableNone?i.getAnimatableNone(a):void 0}const UT=new Set(["auto","none","0"]);function VT(n,a,i){let r=0,o;for(;r<n.length&&!o;){const c=n[r];typeof c=="string"&&!UT.has(c)&&el(c).values.length&&(o=n[r]),r++}if(o&&i)for(const c of a)n[c]=Vx(i,o)}class _T extends ud{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(),td(m))){const y=Ox(m,i.current);y!==void 0&&(a[g]=y),g===a.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!Lx.has(r)||a.length!==2)return;const[o,c]=a,f=cg(o),p=cg(c);if(f!==p)if(lg(f)&&lg(p))for(let g=0;g<a.length;g++){const m=a[g];typeof m=="string"&&(a[g]=parseFloat(m))}else _a[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:a,name:i}=this,r=[];for(let o=0;o<a.length;o++)(a[o]===null||DT(a[o]))&&r.push(o);r.length&&VT(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=_a[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,f=r[c];r[c]=_a[i](a.measureViewportBox(),window.getComputedStyle(a.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(p=this.removedTransforms)!=null&&p.length&&this.removedTransforms.forEach(([g,m])=>{a.getValue(g).set(m)}),this.resolveNoneKeyframes()}}function kT(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 _x=(n,a)=>a&&typeof n=="number"?a.transform(n):n;function kx(n){return tx(n)&&"offsetHeight"in n}const dg=30,HT=n=>!isNaN(parseFloat(n));class qT{constructor(a,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var c;const o=Nt.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 f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(a),this.owner=i.owner}setCurrent(a){this.current=a,this.updatedAt=Nt.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=HT(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 Jf);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=Nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>dg)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,dg);return ax(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 Ls(n,a){return new qT(n,a)}const{schedule:dd}=mx(queueMicrotask,!1),It={x:!1,y:!1};function Hx(){return It.x||It.y}function PT(n){return n==="x"||n==="y"?It[n]?null:(It[n]=!0,()=>{It[n]=!1}):It.x||It.y?null:(It.x=It.y=!0,()=>{It.x=It.y=!1})}function qx(n,a){const i=kT(n),r=new AbortController,o=le(Z({passive:!0},a),{signal:r.signal});return[i,o,()=>r.abort()]}function hg(n){return!(n.pointerType==="touch"||Hx())}function YT(n,a,i={}){const[r,o,c]=qx(n,i),f=p=>{if(!hg(p))return;const{target:g}=p,m=a(g,p);if(typeof m!="function"||!g)return;const y=v=>{hg(v)&&(m(v),g.removeEventListener("pointerleave",y))};g.addEventListener("pointerleave",y,o)};return r.forEach(p=>{p.addEventListener("pointerenter",f,o)}),c}const Px=(n,a)=>a?n===a?!0:Px(n,a.parentElement):!1,hd=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,GT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XT(n){return GT.has(n.tagName)||n.tabIndex!==-1}const Yr=new WeakSet;function mg(n){return a=>{a.key==="Enter"&&n(a)}}function Zc(n,a){n.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}const KT=(n,a)=>{const i=n.currentTarget;if(!i)return;const r=mg(()=>{if(Yr.has(i))return;Zc(i,"down");const o=mg(()=>{Zc(i,"up")}),c=()=>Zc(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 pg(n){return hd(n)&&!Hx()}function ZT(n,a,i={}){const[r,o,c]=qx(n,i),f=p=>{const g=p.currentTarget;if(!pg(p))return;Yr.add(g);const m=a(g,p),y=(w,T)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),Yr.has(g)&&Yr.delete(g),pg(w)&&typeof m=="function"&&m(w,{success:T})},v=w=>{y(w,g===window||g===document||i.useGlobalTarget||Px(g,w.target))},b=w=>{y(w,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",b,o)};return r.forEach(p=>{(i.useGlobalTarget?window:p).addEventListener("pointerdown",f,o),kx(p)&&(p.addEventListener("focus",m=>KT(m,o)),!XT(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),c}function Yx(n){return tx(n)&&"ownerSVGElement"in n}function FT(n){return Yx(n)&&n.tagName==="svg"}const yt=n=>!!(n&&n.getVelocity),QT=[...Bx,et,ca],$T=n=>QT.find(zx(n)),md=j.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});class JT extends j.Component{getSnapshotBeforeUpdate(a){const i=this.props.childRef.current;if(i&&a.isPresent&&!this.props.isPresent){const r=i.offsetParent,o=kx(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 WT({children:n,isPresent:a,anchorX:i,root:r}){const o=j.useId(),c=j.useRef(null),f=j.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:p}=j.useContext(md);return j.useInsertionEffect(()=>{const{width:g,height:m,top:y,left:v,right:b}=f.current;if(a||!c.current||!g||!m)return;const w=i==="left"?`left: ${v}`:`right: ${b}`;c.current.dataset.motionPopId=o;const T=document.createElement("style");p&&(T.nonce=p);const E=r!=null?r:document.head;return E.appendChild(T),T.sheet&&T.sheet.insertRule(`
|
|
68
|
+
[data-motion-pop-id="${o}"] {
|
|
69
|
+
position: absolute !important;
|
|
70
|
+
width: ${g}px !important;
|
|
71
|
+
height: ${m}px !important;
|
|
72
|
+
${w}px !important;
|
|
73
|
+
top: ${y}px !important;
|
|
74
|
+
}
|
|
75
|
+
`),()=>{E.contains(T)&&E.removeChild(T)}},[a]),h.jsx(JT,{isPresent:a,childRef:c,sizeRef:f,children:j.cloneElement(n,{ref:c})})}const IT=({children:n,initial:a,isPresent:i,onExitComplete:r,custom:o,presenceAffectsLayout:c,mode:f,anchorX:p,root:g})=>{const m=Xf(eN),y=j.useId();let v=!0,b=j.useMemo(()=>(v=!1,{id:y,initial:a,isPresent:i,custom:o,onExitComplete:w=>{m.set(w,!0);for(const T of m.values())if(!T)return;r&&r()},register:w=>(m.set(w,!1),()=>m.delete(w))}),[i,m,r]);return c&&v&&(b=Z({},b)),j.useMemo(()=>{m.forEach((w,T)=>m.set(T,!1))},[i]),j.useEffect(()=>{!i&&!m.size&&r&&r()},[i]),f==="popLayout"&&(n=h.jsx(WT,{isPresent:i,anchorX:p,root:g,children:n})),h.jsx(uo.Provider,{value:b,children:n})};function eN(){return new Map}function Gx(n=!0){const a=j.useContext(uo);if(a===null)return[!0,null];const{isPresent:i,onExitComplete:r,register:o}=a,c=j.useId();j.useEffect(()=>{if(n)return o(c)},[n]);const f=j.useCallback(()=>n&&r&&r(c),[c,r,n]);return!i&&r?[!1,f]:[!0]}const Br=n=>n.key||"";function gg(n){const a=[];return j.Children.forEach(n,i=>{j.isValidElement(i)&&a.push(i)}),a}const Fc=({children:n,custom:a,initial:i=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:c="sync",propagate:f=!1,anchorX:p="left",root:g})=>{const[m,y]=Gx(f),v=j.useMemo(()=>gg(n),[n]),b=f&&!m?[]:v.map(Br),w=j.useRef(!0),T=j.useRef(v),E=Xf(()=>new Map),[N,D]=j.useState(v),[z,M]=j.useState(v);Iy(()=>{w.current=!1,T.current=v;for(let X=0;X<z.length;X++){const $=Br(z[X]);b.includes($)?E.delete($):E.get($)!==!0&&E.set($,!1)}},[z,b.length,b.join("-")]);const G=[];if(v!==N){let X=[...v];for(let $=0;$<z.length;$++){const Q=z[$],ce=Br(Q);b.includes(ce)||(X.splice($,0,Q),G.push(Q))}return c==="wait"&&G.length&&(X=G),M(gg(X)),D(v),null}const{forceRender:_}=j.useContext(Gf);return h.jsx(h.Fragment,{children:z.map(X=>{const $=Br(X),Q=f&&!m?!1:v===z||b.includes($),ce=()=>{if(E.has($))E.set($,!0);else return;let Te=!0;E.forEach(ge=>{ge||(Te=!1)}),Te&&(_==null||_(),M(T.current),f&&(y==null||y()),r&&r())};return h.jsx(IT,{isPresent:Q,initial:!w.current||i?void 0:!1,custom:a,presenceAffectsLayout:o,mode:c,root:g,onExitComplete:Q?void 0:ce,anchorX:p,children:X},$)})})},Xx=j.createContext({strict:!1}),yg={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"]},zs={};for(const n in yg)zs[n]={isEnabled:a=>yg[n].some(i=>!!a[i])};function tN(n){for(const a in n)zs[a]=Z(Z({},zs[a]),n[a])}const nN=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 Ir(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||nN.has(n)}let Kx=n=>!Ir(n);function aN(n){typeof n=="function"&&(Kx=a=>a.startsWith("on")?!Ir(a):n(a))}try{aN(require("@emotion/is-prop-valid").default)}catch(n){}function sN(n,a,i){const r={};for(const o in n)o==="values"&&typeof n.values=="object"||(Kx(o)||i===!0&&Ir(o)||!a&&!Ir(o)||n.draggable&&o.startsWith("onDrag"))&&(r[o]=n[o]);return r}const co=j.createContext({});function fo(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function tl(n){return typeof n=="string"||Array.isArray(n)}const pd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gd=["initial",...pd];function ho(n){return fo(n.animate)||gd.some(a=>tl(n[a]))}function Zx(n){return!!(ho(n)||n.variants)}function iN(n,a){if(ho(n)){const{initial:i,animate:r}=n;return{initial:i===!1||tl(i)?i:void 0,animate:tl(r)?r:void 0}}return n.inherit!==!1?a:{}}function lN(n){const{initial:a,animate:i}=iN(n,j.useContext(co));return j.useMemo(()=>({initial:a,animate:i}),[xg(a),xg(i)])}function xg(n){return Array.isArray(n)?n.join(" "):n}const nl={};function rN(n){for(const a in n)nl[a]=n[a],ed(a)&&(nl[a].isCSSVariable=!0)}function Fx(n,{layout:a,layoutId:i}){return qs.has(n)||n.startsWith("origin")||(a||i!==void 0)&&(!!nl[n]||n==="opacity")}const oN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uN=Hs.length;function cN(n,a,i){let r="",o=!0;for(let c=0;c<uN;c++){const f=Hs[c],p=n[f];if(p===void 0)continue;let g=!0;if(typeof p=="number"?g=p===(f.startsWith("scale")?1:0):g=parseFloat(p)===0,!g||i){const m=_x(p,fd[f]);if(!g){o=!1;const y=oN[f]||f;r+=`${y}(${m}) `}i&&(a[f]=m)}}return r=r.trim(),i?r=i(a,o?"":r):o&&(r="none"),r}function yd(n,a,i){const{style:r,vars:o,transformOrigin:c}=n;let f=!1,p=!1;for(const g in a){const m=a[g];if(qs.has(g)){f=!0;continue}else if(ed(g)){o[g]=m;continue}else{const y=_x(m,fd[g]);g.startsWith("origin")?(p=!0,c[g]=y):r[g]=y}}if(a.transform||(f||i?r.transform=cN(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 xd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qx(n,a,i){for(const r in a)!yt(a[r])&&!Fx(r,i)&&(n[r]=a[r])}function fN({transformTemplate:n},a){return j.useMemo(()=>{const i=xd();return yd(i,a,n),Object.assign({},i.vars,i.style)},[a])}function dN(n,a){const i=n.style||{},r={};return Qx(r,i,n),Object.assign(r,fN(n,a)),r}function hN(n,a){const i={},r=dN(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 mN={offset:"stroke-dashoffset",array:"stroke-dasharray"},pN={offset:"strokeDashoffset",array:"strokeDasharray"};function gN(n,a,i=1,r=0,o=!0){n.pathLength=1;const c=o?mN:pN;n[c.offset]=oe.transform(-r);const f=oe.transform(a),p=oe.transform(i);n[c.array]=`${f} ${p}`}function $x(n,v,g,m,y){var b=v,{attrX:a,attrY:i,attrScale:r,pathLength:o,pathSpacing:c=1,pathOffset:f=0}=b,p=rt(b,["attrX","attrY","attrScale","pathLength","pathSpacing","pathOffset"]);var E,N;if(yd(n,p,m),g){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:w,style:T}=n;w.transform&&(T.transform=w.transform,delete w.transform),(T.transform||w.transformOrigin)&&(T.transformOrigin=(E=w.transformOrigin)!=null?E:"50% 50%",delete w.transformOrigin),T.transform&&(T.transformBox=(N=y==null?void 0:y.transformBox)!=null?N:"fill-box",delete w.transformBox),a!==void 0&&(w.x=a),i!==void 0&&(w.y=i),r!==void 0&&(w.scale=r),o!==void 0&&gN(w,o,c,f,!1)}const Jx=()=>le(Z({},xd()),{attrs:{}}),Wx=n=>typeof n=="string"&&n.toLowerCase()==="svg";function yN(n,a,i,r){const o=j.useMemo(()=>{const c=Jx();return $x(c,a,Wx(r),n.transformTemplate,n.style),le(Z({},c.attrs),{style:Z({},c.style)})},[a]);if(n.style){const c={};Qx(c,n.style,n),o.style=Z(Z({},c),o.style)}return o}const xN=["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 vd(n){return typeof n!="string"||n.includes("-")?!1:!!(xN.indexOf(n)>-1||/[A-Z]/u.test(n))}function vN(n,a,i,{latestValues:r},o,c=!1){const p=(vd(n)?yN:hN)(a,r,o,n),g=sN(a,typeof n=="string",c),m=n!==j.Fragment?le(Z(Z({},g),p),{ref:i}):{},{children:y}=a,v=j.useMemo(()=>yt(y)?y.get():y,[y]);return j.createElement(n,le(Z({},m),{children:v}))}function vg(n){const a=[{},{}];return n==null||n.values.forEach((i,r)=>{a[0][r]=i.get(),a[1][r]=i.getVelocity()}),a}function bd(n,a,i,r){if(typeof a=="function"){const[o,c]=vg(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]=vg(r);a=a(i!==void 0?i:n.custom,o,c)}return a}function Gr(n){return yt(n)?n.get():n}function bN({scrapeMotionValuesFromProps:n,createRenderState:a},i,r,o){return{latestValues:SN(i,r,o,n),renderState:a()}}function SN(n,a,i,r){const o={},c=r(n,{});for(const w in c)o[w]=Gr(c[w]);let{initial:f,animate:p}=n;const g=ho(n),m=Zx(n);a&&m&&!g&&n.inherit!==!1&&(f===void 0&&(f=a.initial),p===void 0&&(p=a.animate));let y=i?i.initial===!1:!1;y=y||f===!1;const v=y?p:f;if(v&&typeof v!="boolean"&&!fo(v)){const w=Array.isArray(v)?v:[v];for(let T=0;T<w.length;T++){const E=bd(n,w[T]);if(E){const b=E,{transitionEnd:N,transition:D}=b,z=rt(b,["transitionEnd","transition"]);for(const M in z){let G=z[M];if(Array.isArray(G)){const _=y?G.length-1:0;G=G[_]}G!==null&&(o[M]=G)}for(const M in N)o[M]=N[M]}}}return o}const Ix=n=>(a,i)=>{const r=j.useContext(co),o=j.useContext(uo),c=()=>bN(n,a,r,o);return i?c():Xf(c)};function Sd(n,a,i){var c;const{style:r}=n,o={};for(const f in r)(yt(r[f])||a.style&&yt(a.style[f])||Fx(f,n)||((c=i==null?void 0:i.getValue(f))==null?void 0:c.liveStyle)!==void 0)&&(o[f]=r[f]);return o}const wN=Ix({scrapeMotionValuesFromProps:Sd,createRenderState:xd});function e1(n,a,i){const r=Sd(n,a,i);for(const o in n)if(yt(n[o])||yt(a[o])){const c=Hs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[c]=n[o]}return r}const jN=Ix({scrapeMotionValuesFromProps:e1,createRenderState:Jx}),TN=Symbol.for("motionComponentSymbol");function Rs(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function NN(n,a,i){return j.useCallback(r=>{r&&n.onMount&&n.onMount(r),a&&(r?a.mount(r):a.unmount()),i&&(typeof i=="function"?i(r):Rs(i)&&(i.current=r))},[a])}const wd=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),EN="framerAppearId",t1="data-"+wd(EN),n1=j.createContext({});function AN(n,a,i,r,o){var E,N;const{visualElement:c}=j.useContext(co),f=j.useContext(Xx),p=j.useContext(uo),g=j.useContext(md).reducedMotion,m=j.useRef(null);r=r||f.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=j.useContext(n1);y&&!y.projection&&o&&(y.type==="html"||y.type==="svg")&&RN(m.current,i,o,v);const b=j.useRef(!1);j.useInsertionEffect(()=>{y&&b.current&&y.update(i,p)});const w=i[t1],T=j.useRef(!!w&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,w))&&((N=window.MotionHasOptimisedAnimation)==null?void 0:N.call(window,w)));return Iy(()=>{y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),T.current&&y.animationState&&y.animationState.animateChanges())}),j.useEffect(()=>{y&&(!T.current&&y.animationState&&y.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var D;(D=window.MotionHandoffMarkAsComplete)==null||D.call(window,w)}),T.current=!1),y.enteringChildren=void 0)}),y}function RN(n,a,i,r){const{layoutId:o,layout:c,drag:f,dragConstraints:p,layoutScroll:g,layoutRoot:m,layoutCrossfade:y}=a;n.projection=new i(n.latestValues,a["data-framer-portal-id"]?void 0:a1(n.parent)),n.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!f||p&&Rs(p),visualElement:n,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:g,layoutRoot:m})}function a1(n){if(n)return n.options.allowProjection!==!1?n.projection:a1(n.parent)}function Qc(n,{forwardMotionProps:a=!1}={},i,r){var p,g;i&&tN(i);const o=vd(n)?jN:wN;function c(m,y){let v;const b=le(Z(Z({},j.useContext(md)),m),{layoutId:CN(m)}),{isStatic:w}=b,T=lN(m),E=o(m,w);if(!w&&Kf){DN();const N=MN(b);v=N.MeasureLayout,T.visualElement=AN(n,E,b,r,N.ProjectionNode)}return h.jsxs(co.Provider,{value:T,children:[v&&T.visualElement?h.jsx(v,Z({visualElement:T.visualElement},b)):null,vN(n,m,NN(E,T.visualElement,y),E,w,a)]})}c.displayName=`motion.${typeof n=="string"?n:`create(${(g=(p=n.displayName)!=null?p:n.name)!=null?g:""})`}`;const f=j.forwardRef(c);return f[TN]=n,f}function CN({layoutId:n}){const a=j.useContext(Gf).id;return a&&n!==void 0?a+"-"+n:n}function DN(n,a){j.useContext(Xx).strict}function MN(n){const{drag:a,layout:i}=zs;if(!a&&!i)return{};const r=Z(Z({},a),i);return{MeasureLayout:a!=null&&a.isEnabled(n)||i!=null&&i.isEnabled(n)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function ON(n,a){if(typeof Proxy=="undefined")return Qc;const i=new Map,r=(c,f)=>Qc(c,f,n,a),o=(c,f)=>r(c,f);return new Proxy(o,{get:(c,f)=>f==="create"?r:(i.has(f)||i.set(f,Qc(f,void 0,n,a)),i.get(f))})}function s1({top:n,left:a,right:i,bottom:r}){return{x:{min:a,max:i},y:{min:n,max:r}}}function LN({x:n,y:a}){return{top:a.min,right:n.max,bottom:a.max,left:n.min}}function zN(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 $c(n){return n===void 0||n===1}function Af({scale:n,scaleX:a,scaleY:i}){return!$c(n)||!$c(a)||!$c(i)}function La(n){return Af(n)||i1(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function i1(n){return bg(n.x)||bg(n.y)}function bg(n){return n&&n!=="0%"}function eo(n,a,i){const r=n-i,o=a*r;return i+o}function Sg(n,a,i,r,o){return o!==void 0&&(n=eo(n,o,r)),eo(n,i,r)+a}function Rf(n,a=0,i=1,r,o){n.min=Sg(n.min,a,i,r,o),n.max=Sg(n.max,a,i,r,o)}function l1(n,{x:a,y:i}){Rf(n.x,a.translate,a.scale,a.originPoint),Rf(n.y,i.translate,i.scale,i.originPoint)}const wg=.999999999999,jg=1.0000000000001;function BN(n,a,i,r=!1){const o=i.length;if(!o)return;a.x=a.y=1;let c,f;for(let p=0;p<o;p++){c=i[p],f=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&&Ds(n,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),f&&(a.x*=f.x.scale,a.y*=f.y.scale,l1(n,f)),r&&La(c.latestValues)&&Ds(n,c.latestValues))}a.x<jg&&a.x>wg&&(a.x=1),a.y<jg&&a.y>wg&&(a.y=1)}function Cs(n,a){n.min=n.min+a,n.max=n.max+a}function Tg(n,a,i,r,o=.5){const c=qe(n.min,n.max,o);Rf(n,a,i,c,r)}function Ds(n,a){Tg(n.x,a.x,a.scaleX,a.scale,a.originX),Tg(n.y,a.y,a.scaleY,a.scale,a.originY)}function r1(n,a){return s1(zN(n.getBoundingClientRect(),a))}function UN(n,a,i){const r=r1(n,i),{scroll:o}=a;return o&&(Cs(r.x,o.offset.x),Cs(r.y,o.offset.y)),r}const Ng=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ms=()=>({x:Ng(),y:Ng()}),Eg=()=>({min:0,max:0}),$e=()=>({x:Eg(),y:Eg()}),Cf={current:null},o1={current:!1};function VN(){if(o1.current=!0,!!Kf)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),a=()=>Cf.current=n.matches;n.addEventListener("change",a),a()}else Cf.current=!1}const _N=new WeakMap;function kN(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,Ls(o,{owner:n}));else if(c!==o)if(n.hasValue(r)){const f=n.getValue(r);f.liveStyle===!0?f.jump(o):f.hasAnimated||f.set(o)}else{const f=n.getStaticValue(r);n.addValue(r,Ls(f!==void 0?f:o,{owner:n}))}}for(const r in i)a[r]===void 0&&n.removeValue(r);return a}const Ag=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class HN{scrapeMotionValuesFromProps(a,i,r){return{}}constructor({parent:a,props:i,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:c,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ud,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 w=Nt.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,ke.render(this.render,!1,!0))};const{latestValues:g,renderState:m}=f;this.latestValues=g,this.baseTarget=Z({},g),this.initialValues=i.initial?Z({},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=ho(i),this.isVariantNode=Zx(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);const b=this.scrapeMotionValuesFromProps(i,{},this),{willChange:y}=b,v=rt(b,["willChange"]);for(const w in v){const T=v[w];g[w]!==void 0&&yt(T)&&T.set(g[w])}}mount(a){var i;this.current=a,_N.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)),o1.current||VN(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cf.current,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var a;this.projection&&this.projection.unmount(),ua(this.notifyUpdate),ua(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=qs.has(a);r&&this.onBindTransform&&this.onBindTransform();const o=i.on("change",f=>{this.latestValues[a]=f,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 zs){const i=zs[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<Ag.length;r++){const o=Ag[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,f=a[c];f&&(this.propEventSubscriptions[o]=this.on(o,f))}this.prevMotionValues=kN(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=Ls(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"&&(ex(r)||nx(r))?r=parseFloat(r):!$T(r)&&ca.test(i)&&(r=Vx(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 f=bd(this.props,i,(c=this.presenceContext)==null?void 0:c.custom);f&&(r=f[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 Jf),this.events[a].add(i)}notify(a,...i){this.events[a]&&this.events[a].notify(...i)}scheduleRenderMicrotask(){dd.render(this.render)}}class u1 extends HN{constructor(){super(...arguments),this.KeyframeResolver=_T}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 c1(n,{style:a,vars:i},r,o){const c=n.style;let f;for(f in a)c[f]=a[f];o==null||o.applyProjectionStyles(c,r);for(f in i)c.setProperty(f,i[f])}function qN(n){return window.getComputedStyle(n)}class PN extends u1{constructor(){super(...arguments),this.type="html",this.renderInstance=c1}readValueFromInstance(a,i){var r;if(qs.has(i))return(r=this.projection)!=null&&r.isProjecting?bf(i):aT(a,i);{const o=qN(a),c=(ed(i)?o.getPropertyValue(i):o[i])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(a,{transformPagePoint:i}){return r1(a,i)}build(a,i,r){yd(a,i,r.transformTemplate)}scrapeMotionValuesFromProps(a,i,r){return Sd(a,i,r)}}const f1=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 YN(n,a,i,r){c1(n,a,void 0,r);for(const o in a.attrs)n.setAttribute(f1.has(o)?o:wd(o),a.attrs[o])}class GN extends u1{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$e}getBaseTargetFromProps(a,i){return a[i]}readValueFromInstance(a,i){if(qs.has(i)){const r=Ux(i);return r&&r.default||0}return i=f1.has(i)?i:wd(i),a.getAttribute(i)}scrapeMotionValuesFromProps(a,i,r){return e1(a,i,r)}build(a,i,r){$x(a,i,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(a,i,r,o){YN(a,i,r,o)}mount(a){this.isSVGTag=Wx(a.tagName),super.mount(a)}}const XN=(n,a)=>vd(n)?new GN(a):new PN(a,{allowProjection:n!==j.Fragment});function Os(n,a,i){const r=n.getProps();return bd(r,a,i!==void 0?i:r.custom,n)}const Df=n=>Array.isArray(n);function KN(n,a,i){n.hasValue(a)?n.getValue(a).set(i):n.addValue(a,Ls(i))}function ZN(n){return Df(n)?n[n.length-1]||0:n}function FN(n,a){let f=Os(n,a)||{},{transitionEnd:r={},transition:o={}}=f,c=rt(f,["transitionEnd","transition"]);c=Z(Z({},c),r);for(const p in c){const g=ZN(c[p]);KN(n,p,g)}}function QN(n){return!!(yt(n)&&n.add)}function Mf(n,a){const i=n.getValue("willChange");if(QN(i))return i.add(a);if(!i&&zn.WillChange){const r=new zn.WillChange("auto");n.addValue("willChange",r),r.add(a)}}function d1(n){return n.props[t1]}const $N=n=>n!==null;function JN(n,{repeat:a,repeatType:i="loop"},r){const o=n.filter($N),c=a&&i!=="loop"&&a%2===1?0:o.length-1;return o[c]}const WN={type:"spring",stiffness:500,damping:25,restSpeed:10},IN=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),eE={type:"keyframes",duration:.8},tE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nE=(n,{keyframes:a})=>a.length>2?eE:qs.has(n)?n.startsWith("scale")?IN(a[1]):WN:tE;function aE(v){var b=v,{when:n,delay:a,delayChildren:i,staggerChildren:r,staggerDirection:o,repeat:c,repeatType:f,repeatDelay:p,from:g,elapsed:m}=b,y=rt(b,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(y).length}const jd=(n,a,i,r={},o,c)=>f=>{const p=cd(r,n)||{},g=p.delay||r.delay||0;let{elapsed:m=0}=r;m=m-dn(g);const y=le(Z({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:()=>{f(),p.onComplete&&p.onComplete()},name:n,motionValue:a,element:c?void 0:o});aE(p)||Object.assign(y,nE(n,y)),y.duration&&(y.duration=dn(y.duration)),y.repeatDelay&&(y.repeatDelay=dn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(Nf(y),y.delay===0&&(v=!0)),(zn.instantAnimations||zn.skipAnimations)&&(v=!0,Nf(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,v&&!c&&a.get()!==void 0){const b=JN(y.keyframes,p);if(b!==void 0){ke.update(()=>{y.onUpdate(b),y.onComplete()});return}}return p.isSync?new od(y):new ET(y)};function sE({protectedKeys:n,needsAnimating:a},i){const r=n.hasOwnProperty(i)&&a[i]!==!0;return a[i]=!1,r}function h1(n,a,{delay:i=0,transitionOverride:r,type:o}={}){var v;let y=a,{transition:c=n.getDefaultTransition(),transitionEnd:f}=y,p=rt(y,["transition","transitionEnd"]);r&&(c=r);const g=[],m=o&&n.animationState&&n.animationState.getState()[o];for(const b in p){const w=n.getValue(b,(v=n.latestValues[b])!=null?v:null),T=p[b];if(T===void 0||m&&sE(m,b))continue;const E=Z({delay:i},cd(c||{},b)),N=w.get();if(N!==void 0&&!w.isAnimating&&!Array.isArray(T)&&T===N&&!E.velocity)continue;let D=!1;if(window.MotionHandoffAnimation){const M=d1(n);if(M){const G=window.MotionHandoffAnimation(M,b,ke);G!==null&&(E.startTime=G,D=!0)}}Mf(n,b),w.start(jd(b,w,T,n.shouldReduceMotion&&Lx.has(b)?{type:!1}:E,n,D));const z=w.animation;z&&g.push(z)}return f&&Promise.all(g).then(()=>{ke.update(()=>{f&&FN(n,f)})}),g}function m1(n,a,i,r=0,o=1){const c=Array.from(n).sort((m,y)=>m.sortNodePosition(y)).indexOf(a),f=n.size,p=(f-1)*r;return typeof i=="function"?i(c,f):o===1?c*r:p-c*r}function Of(n,a,i={}){var g;const r=Os(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(h1(n,r,i)):()=>Promise.resolve(),f=n.variantChildren&&n.variantChildren.size?(m=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:b}=o;return iE(n,a,m,y,v,b,i)}:()=>Promise.resolve(),{when:p}=o;if(p){const[m,y]=p==="beforeChildren"?[c,f]:[f,c];return m().then(()=>y())}else return Promise.all([c(),f(i.delay)])}function iE(n,a,i=0,r=0,o=0,c=1,f){const p=[];for(const g of n.variantChildren)g.notify("AnimationStart",a),p.push(Of(g,a,le(Z({},f),{delay:i+(typeof r=="function"?0:r)+m1(n.variantChildren,g,r,o,c)})).then(()=>g.notify("AnimationComplete",a)));return Promise.all(p)}function lE(n,a,i={}){n.notify("AnimationStart",a);let r;if(Array.isArray(a)){const o=a.map(c=>Of(n,c,i));r=Promise.all(o)}else if(typeof a=="string")r=Of(n,a,i);else{const o=typeof a=="function"?Os(n,a,i.custom):a;r=Promise.all(h1(n,o,i))}return r.then(()=>{n.notify("AnimationComplete",a)})}function p1(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 rE=gd.length;function g1(n){if(!n)return;if(!n.isControllingVariants){const i=n.parent?g1(n.parent)||{}:{};return n.props.initial!==void 0&&(i.initial=n.props.initial),i}const a={};for(let i=0;i<rE;i++){const r=gd[i],o=n.props[r];(tl(o)||o===!1)&&(a[r]=o)}return a}const oE=[...pd].reverse(),uE=pd.length;function cE(n){return a=>Promise.all(a.map(({animation:i,options:r})=>lE(n,i,r)))}function fE(n){let a=cE(n),i=Rg(),r=!0;const o=g=>(m,y)=>{var b;const v=Os(n,y,g==="exit"?(b=n.presenceContext)==null?void 0:b.custom:void 0);if(v){const w=v,{transition:T,transitionEnd:E}=w,N=rt(w,["transition","transitionEnd"]);m=Z(Z(Z({},m),N),E)}return m};function c(g){a=g(n)}function f(g){const{props:m}=n,y=g1(n.parent)||{},v=[],b=new Set;let w={},T=1/0;for(let N=0;N<uE;N++){const D=oE[N],z=i[D],M=m[D]!==void 0?m[D]:y[D],G=tl(M),_=D===g?z.isActive:null;_===!1&&(T=N);let X=M===y[D]&&M!==m[D]&&G;if(X&&r&&n.manuallyAnimateOnMount&&(X=!1),z.protectedKeys=Z({},w),!z.isActive&&_===null||!M&&!z.prevProp||fo(M)||typeof M=="boolean")continue;const $=dE(z.prevProp,M);let Q=$||D===g&&z.isActive&&!X&&G||N>T&&G,ce=!1;const Te=Array.isArray(M)?M:[M];let ge=Te.reduce(o(D),{});_===!1&&(ge={});const{prevResolvedValues:we={}}=z,Be=Z(Z({},we),ge),Ze=F=>{Q=!0,b.has(F)&&(ce=!0,b.delete(F)),z.needsAnimating[F]=!0;const ee=n.getValue(F);ee&&(ee.liveStyle=!1)};for(const F in Be){const ee=ge[F],ye=we[F];if(w.hasOwnProperty(F))continue;let R=!1;Df(ee)&&Df(ye)?R=!p1(ee,ye):R=ee!==ye,R?ee!=null?Ze(F):b.add(F):ee!==void 0&&b.has(F)?Ze(F):z.protectedKeys[F]=!0}z.prevProp=M,z.prevResolvedValues=ge,z.isActive&&(w=Z(Z({},w),ge)),r&&n.blockInitialAnimation&&(Q=!1);const Ve=X&&$;Q&&(!Ve||ce)&&v.push(...Te.map(F=>{const ee={type:D};if(typeof F=="string"&&r&&!Ve&&n.manuallyAnimateOnMount&&n.parent){const{parent:ye}=n,R=Os(ye,F);if(ye.enteringChildren&&R){const{delayChildren:K}=R.transition||{};ee.delay=m1(ye.enteringChildren,n,K)}}return{animation:F,options:ee}}))}if(b.size){const N={};if(typeof m.initial!="boolean"){const D=Os(n,Array.isArray(m.initial)?m.initial[0]:m.initial);D&&D.transition&&(N.transition=D.transition)}b.forEach(D=>{const z=n.getBaseTarget(D),M=n.getValue(D);M&&(M.liveStyle=!0),N[D]=z!=null?z:null}),v.push({animation:N})}let E=!!v.length;return r&&(m.initial===!1||m.initial===m.animate)&&!n.manuallyAnimateOnMount&&(E=!1),r=!1,E?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 w;return(w=b.animationState)==null?void 0:w.setActive(g,m)}),i[g].isActive=m;const y=f(g);for(const b in i)i[b].protectedKeys={};return y}return{animateChanges:f,setActive:p,setAnimateFunction:c,getState:()=>i,reset:()=>{i=Rg(),r=!0}}}function dE(n,a){return typeof a=="string"?a!==n:Array.isArray(a)?!p1(a,n):!1}function Oa(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rg(){return{animate:Oa(!0),whileInView:Oa(),whileHover:Oa(),whileTap:Oa(),whileDrag:Oa(),whileFocus:Oa(),exit:Oa()}}class da{constructor(a){this.isMounted=!1,this.node=a}update(){}}class hE extends da{constructor(a){super(a),a.animationState||(a.animationState=fE(a))}updateAnimationControlsSubscription(){const{animate:a}=this.node.getProps();fo(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 mE=0;class pE extends da{constructor(){super(...arguments),this.id=mE++}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 gE={animation:{Feature:hE},exit:{Feature:pE}};function al(n,a,i,r={passive:!0}){return n.addEventListener(a,i,r),()=>n.removeEventListener(a,i)}function pl(n){return{point:{x:n.pageX,y:n.pageY}}}const yE=n=>a=>hd(a)&&n(a,pl(a));function Zi(n,a,i,r){return al(n,a,yE(i),r)}const y1=1e-4,xE=1-y1,vE=1+y1,x1=.01,bE=0-x1,SE=0+x1;function vt(n){return n.max-n.min}function wE(n,a,i){return Math.abs(n-a)<=i}function Cg(n,a,i,r=.5){n.origin=r,n.originPoint=qe(a.min,a.max,n.origin),n.scale=vt(i)/vt(a),n.translate=qe(i.min,i.max,n.origin)-n.originPoint,(n.scale>=xE&&n.scale<=vE||isNaN(n.scale))&&(n.scale=1),(n.translate>=bE&&n.translate<=SE||isNaN(n.translate))&&(n.translate=0)}function Fi(n,a,i,r){Cg(n.x,a.x,i.x,r?r.originX:void 0),Cg(n.y,a.y,i.y,r?r.originY:void 0)}function Dg(n,a,i){n.min=i.min+a.min,n.max=n.min+vt(a)}function jE(n,a,i){Dg(n.x,a.x,i.x),Dg(n.y,a.y,i.y)}function Mg(n,a,i){n.min=a.min-i.min,n.max=n.min+vt(a)}function Qi(n,a,i){Mg(n.x,a.x,i.x),Mg(n.y,a.y,i.y)}function Ft(n){return[n("x"),n("y")]}const v1=({current:n})=>n?n.ownerDocument.defaultView:null,Og=(n,a)=>Math.abs(n-a);function TE(n,a){const i=Og(n.x,a.x),r=Og(n.y,a.y);return Math.sqrt(Rc(i,2)+Rc(r,2))}class b1{constructor(a,i,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:f=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=Wc(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,T=TE(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!T)return;const{point:E}=b,{timestamp:N}=dt;this.history.push(le(Z({},E),{timestamp:N}));const{onStart:D,onMove:z}=this.handlers;w||(D&&D(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,b)},this.handlePointerMove=(b,w)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=Jc(w,this.transformPagePoint),ke.update(this.updatePoint,!0)},this.handlePointerUp=(b,w)=>{this.end();const{onEnd:T,onSessionEnd:E,resumeAnimation:N}=this.handlers;if(this.dragSnapToOrigin&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Wc(b.type==="pointercancel"?this.lastMoveEventInfo:Jc(w,this.transformPagePoint),this.history);this.startEvent&&T&&T(b,D),E&&E(b,D)},!hd(a))return;this.dragSnapToOrigin=c,this.handlers=i,this.transformPagePoint=r,this.distanceThreshold=f,this.contextWindow=o||window;const p=pl(a),g=Jc(p,this.transformPagePoint),{point:m}=g,{timestamp:y}=dt;this.history=[le(Z({},m),{timestamp:y})];const{onSessionStart:v}=i;v&&v(a,Wc(g,this.history)),this.removeListeners=dl(Zi(this.contextWindow,"pointermove",this.handlePointerMove),Zi(this.contextWindow,"pointerup",this.handlePointerUp),Zi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),ua(this.updatePoint)}}function Jc(n,a){return a?{point:a(n.point)}:n}function Lg(n,a){return{x:n.x-a.x,y:n.y-a.y}}function Wc({point:n},a){return{point:n,delta:Lg(n,S1(a)),offset:Lg(n,NE(a)),velocity:EE(a,.1)}}function NE(n){return n[0]}function S1(n){return n[n.length-1]}function EE(n,a){if(n.length<2)return{x:0,y:0};let i=n.length-1,r=null;const o=S1(n);for(;i>=0&&(r=n[i],!(o.timestamp-r.timestamp>dn(a)));)i--;if(!r)return{x:0,y:0};const c=hn(o.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const f={x:(o.x-r.x)/c,y:(o.y-r.y)/c};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function AE(n,{min:a,max:i},r){return a!==void 0&&n<a?n=r?qe(a,n,r.min):Math.max(n,a):i!==void 0&&n>i&&(n=r?qe(i,n,r.max):Math.min(n,i)),n}function zg(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 RE(n,{top:a,left:i,bottom:r,right:o}){return{x:zg(n.x,i,o),y:zg(n.y,a,r)}}function Bg(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:Bg(n.x,a.x),y:Bg(n.y,a.y)}}function DE(n,a){let i=.5;const r=vt(n),o=vt(a);return o>r?i=Wi(a.min,a.max-r,n.min):r>o&&(i=Wi(n.min,n.max-o,a.min)),Ln(0,1,i)}function ME(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 Lf=.35;function OE(n=Lf){return n===!1?n=0:n===!0&&(n=Lf),{x:Ug(n,"left","right"),y:Ug(n,"top","bottom")}}function Ug(n,a,i){return{min:Vg(n,a),max:Vg(n,i)}}function Vg(n,a){return typeof n=="number"?n:n[a]||0}const LE=new WeakMap;class zE{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(pl(v).point)},f=(v,b)=>{const{drag:w,dragPropagation:T,onDragStart:E}=this.getProps();if(w&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=PT(w),!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),Ft(D=>{let z=this.getAxisMotionValue(D).get()||0;if(mn.test(z)){const{projection:M}=this.visualElement;if(M&&M.layout){const G=M.layout.layoutBox[D];G&&(z=vt(G)*(parseFloat(z)/100))}}this.originPoint[D]=z}),E&&ke.postRender(()=>E(v,b)),Mf(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},p=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:T,onDirectionLock:E,onDrag:N}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:D}=b;if(T&&this.currentDirection===null){this.currentDirection=BE(D),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",b.point,D),this.updateAxis("y",b.point,D),this.visualElement.render(),N&&N(v,b)},g=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b,this.stop(v,b),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>Ft(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 b1(a,{onSessionStart:c,onStart:f,onMove:p,onSessionEnd:g,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:v1(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:f}=o;this.startAnimation(f);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||!Ur(a,o,this.currentDirection))return;const c=this.getAxisMotionValue(a);let f=this.originPoint[a]+r[a];this.constraints&&this.constraints[a]&&(f=AE(f,this.constraints[a],this.elastic[a])),c.set(f)}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&&Rs(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&r?this.constraints=RE(r.layoutBox,a):this.constraints=!1,this.elastic=OE(i),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ft(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=ME(r.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:a,onMeasureDragConstraints:i}=this.getProps();if(!a||!Rs(a))return!1;const r=a.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=UN(r,o.root,this.visualElement.getTransformPagePoint());let f=CE(o.layout.layoutBox,c);if(i){const p=i(LN(f));this.hasMutatedConstraints=!!p,p&&(f=s1(p))}return f}startAnimation(a){const{drag:i,dragMomentum:r,dragElastic:o,dragTransition:c,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},m=Ft(y=>{if(!Ur(y,i,this.currentDirection))return;let v=g&&g[y]||{};f&&(v={min:0,max:0});const b=o?200:1e6,w=o?40:1e7,T=Z(Z({type:"inertia",velocity:r?a[y]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10},c),v);return this.startAxisValueAnimation(y,T)});return Promise.all(m).then(p)}startAxisValueAnimation(a,i){const r=this.getAxisMotionValue(a);return Mf(this.visualElement,a),r.start(jd(a,r,0,i,this.visualElement,!1))}stopAnimation(){Ft(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){Ft(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){Ft(i=>{const{drag:r}=this.getProps();if(!Ur(i,r,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(i);if(o&&o.layout){const{min:f,max:p}=o.layout.layoutBox[i];c.set(a[i]-qe(f,p,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:a,dragConstraints:i}=this.getProps(),{projection:r}=this.visualElement;if(!Rs(i)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ft(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const g=p.get();o[f]=DE({min:g,max:g},this.constraints[f])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ft(f=>{if(!Ur(f,a,null))return;const p=this.getAxisMotionValue(f),{min:g,max:m}=this.constraints[f];p.set(qe(g,m,o[f]))})}addListeners(){if(!this.visualElement.current)return;LE.set(this.visualElement,this);const a=this.visualElement.current,i=Zi(a,"pointerdown",g=>{const{drag:m,dragListener:y=!0}=this.getProps();m&&y&&this.start(g)}),r=()=>{const{dragConstraints:g}=this.getProps();Rs(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 f=al(window,"resize",()=>this.scalePositionWithinConstraints()),p=o.addEventListener("didUpdate",({delta:g,hasLayoutChanged:m})=>{this.isDragging&&m&&(Ft(y=>{const v=this.getAxisMotionValue(y);v&&(this.originPoint[y]+=g[y].translate,v.set(v.get()+g[y].translate))}),this.visualElement.render())});return()=>{f(),i(),c(),p&&p()}}getProps(){const a=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:f=Lf,dragMomentum:p=!0}=a;return le(Z({},a),{drag:i,dragDirectionLock:r,dragPropagation:o,dragConstraints:c,dragElastic:f,dragMomentum:p})}}function Ur(n,a,i){return(a===!0||a===n)&&(i===null||i===n)}function BE(n,a=10){let i=null;return Math.abs(n.y)>a?i="y":Math.abs(n.x)>a&&(i="x"),i}class UE extends da{constructor(a){super(a),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new zE(a)}mount(){const{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const _g=n=>(a,i)=>{n&&ke.postRender(()=>n(a,i))};class VE extends da{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(a){this.session=new b1(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:v1(this.node)})}createPanHandlers(){const{onPanSessionStart:a,onPanStart:i,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:_g(a),onStart:_g(i),onMove:r,onEnd:(c,f)=>{delete this.session,o&&ke.postRender(()=>o(c,f))}}}mount(){this.removePointerDownListener=Zi(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 Xr={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kg(n,a){return a.max===a.min?0:n/(a.max-a.min)*100}const Yi={correct:(n,a)=>{if(!a.target)return n;if(typeof n=="string")if(oe.test(n))n=parseFloat(n);else return n;const i=kg(n,a.target.x),r=kg(n,a.target.y);return`${i}% ${r}%`}},_E={correct:(n,{treeScale:a,projectionDelta:i})=>{const r=n,o=ca.parse(n);if(o.length>5)return r;const c=ca.createTransformer(n),f=typeof o[0]!="number"?1:0,p=i.x.scale*a.x,g=i.y.scale*a.y;o[0+f]/=p,o[1+f]/=g;const m=qe(p,g,.5);return typeof o[2+f]=="number"&&(o[2+f]/=m),typeof o[3+f]=="number"&&(o[3+f]/=m),c(o)}};let Ic=!1;class kE extends j.Component{componentDidMount(){const{visualElement:a,layoutGroup:i,switchLayoutGroup:r,layoutId:o}=this.props,{projection:c}=a;rN(HE),c&&(i.group&&i.group.add(c),r&&r.register&&o&&r.register(c),Ic&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions(le(Z({},c.options),{onExitComplete:()=>this.safeToRemove()}))),Xr.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){const{layoutDependency:i,visualElement:r,drag:o,isPresent:c}=this.props,{projection:f}=r;return f&&(f.isPresent=c,Ic=!0,o||a.layoutDependency!==i||i===void 0||a.isPresent!==c?f.willUpdate():this.safeToRemove(),a.isPresent!==c&&(c?f.promote():f.relegate()||ke.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),dd.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:a,layoutGroup:i,switchLayoutGroup:r}=this.props,{projection:o}=a;Ic=!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 w1(n){const[a,i]=Gx(),r=j.useContext(Gf);return h.jsx(kE,le(Z({},n),{layoutGroup:r,switchLayoutGroup:j.useContext(n1),isPresent:a,safeToRemove:i}))}const HE={borderRadius:le(Z({},Yi),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Yi,borderTopRightRadius:Yi,borderBottomLeftRadius:Yi,borderBottomRightRadius:Yi,boxShadow:_E};function qE(n,a,i){const r=yt(n)?n:Ls(n);return r.start(jd("",r,a,i)),r.animation}const PE=(n,a)=>n.depth-a.depth;class YE{constructor(){this.children=[],this.isDirty=!1}add(a){Zf(this.children,a),this.isDirty=!0}remove(a){Ff(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(PE),this.isDirty=!1,this.children.forEach(a)}}function GE(n,a){const i=Nt.now(),r=({timestamp:o})=>{const c=o-i;c>=a&&(ua(r),n(c-a))};return ke.setup(r,!0),()=>ua(r)}const j1=["TopLeft","TopRight","BottomLeft","BottomRight"],XE=j1.length,Hg=n=>typeof n=="string"?parseFloat(n):n,qg=n=>typeof n=="number"||oe.test(n);function KE(n,a,i,r,o,c){var f,p,g,m;o?(n.opacity=qe(0,(f=i.opacity)!=null?f:1,ZE(r)),n.opacityExit=qe((p=a.opacity)!=null?p:1,0,FE(r))):c&&(n.opacity=qe((g=a.opacity)!=null?g:1,(m=i.opacity)!=null?m:1,r));for(let y=0;y<XE;y++){const v=`border${j1[y]}Radius`;let b=Pg(a,v),w=Pg(i,v);if(b===void 0&&w===void 0)continue;b||(b=0),w||(w=0),b===0||w===0||qg(b)===qg(w)?(n[v]=Math.max(qe(Hg(b),Hg(w),r),0),(mn.test(w)||mn.test(b))&&(n[v]+="%")):n[v]=w}(a.rotate||i.rotate)&&(n.rotate=qe(a.rotate||0,i.rotate||0,r))}function Pg(n,a){return n[a]!==void 0?n[a]:n.borderRadius}const ZE=T1(0,.5,cx),FE=T1(.5,.95,Qt);function T1(n,a,i){return r=>r<n?0:r>a?1:i(Wi(n,a,r))}function Yg(n,a){n.min=a.min,n.max=a.max}function Kt(n,a){Yg(n.x,a.x),Yg(n.y,a.y)}function Gg(n,a){n.translate=a.translate,n.scale=a.scale,n.originPoint=a.originPoint,n.origin=a.origin}function Xg(n,a,i,r,o){return n-=a,n=eo(n,1/i,r),o!==void 0&&(n=eo(n,1/o,r)),n}function QE(n,a=0,i=1,r=.5,o,c=n,f=n){if(mn.test(a)&&(a=parseFloat(a),a=qe(f.min,f.max,a/100)-f.min),typeof a!="number")return;let p=qe(c.min,c.max,r);n===c&&(p-=a),n.min=Xg(n.min,a,i,p,o),n.max=Xg(n.max,a,i,p,o)}function Kg(n,a,[i,r,o],c,f){QE(n,a[i],a[r],a[o],a.scale,c,f)}const $E=["x","scaleX","originX"],JE=["y","scaleY","originY"];function Zg(n,a,i,r){Kg(n.x,a,$E,i?i.x:void 0,r?r.x:void 0),Kg(n.y,a,JE,i?i.y:void 0,r?r.y:void 0)}function Fg(n){return n.translate===0&&n.scale===1}function N1(n){return Fg(n.x)&&Fg(n.y)}function Qg(n,a){return n.min===a.min&&n.max===a.max}function WE(n,a){return Qg(n.x,a.x)&&Qg(n.y,a.y)}function $g(n,a){return Math.round(n.min)===Math.round(a.min)&&Math.round(n.max)===Math.round(a.max)}function E1(n,a){return $g(n.x,a.x)&&$g(n.y,a.y)}function Jg(n){return vt(n.x)/vt(n.y)}function Wg(n,a){return n.translate===a.translate&&n.scale===a.scale&&n.originPoint===a.originPoint}class IE{constructor(){this.members=[]}add(a){Zf(this.members,a),a.scheduleRender()}remove(a){if(Ff(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 e3(n,a,i){let r="";const o=n.x.translate/a.x,c=n.y.translate/a.y,f=(i==null?void 0:i.z)||0;if((o||c||f)&&(r=`translate3d(${o}px, ${c}px, ${f}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:w,skewY:T}=i;m&&(r=`perspective(${m}px) ${r}`),y&&(r+=`rotate(${y}deg) `),v&&(r+=`rotateX(${v}deg) `),b&&(r+=`rotateY(${b}deg) `),w&&(r+=`skewX(${w}deg) `),T&&(r+=`skewY(${T}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 ef=["","X","Y","Z"],t3=1e3;let n3=0;function tf(n,a,i,r){const{latestValues:o}=a;o[n]&&(i[n]=o[n],a.setStaticValue(n,0),r&&(r[n]=0))}function A1(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:a}=n.options;if(!a)return;const i=d1(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&&A1(r)}function R1({attachResizeListener:n,defaultParent:a,measureScroll:i,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(f={},p=a==null?void 0:a()){this.id=n3++,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(i3),this.nodes.forEach(u3),this.nodes.forEach(c3),this.nodes.forEach(l3)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,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 YE)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Jf),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const g=this.eventHandlers.get(f);g&&g.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Yx(f)&&!FT(f),this.instance=f;const{layoutId:p,layout:g,visualElement:m}=this.options;if(m&&!m.current&&m.mount(f),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(f,()=>{const w=window.innerWidth;w!==v&&(v=w,this.root.updateBlockedByResize=!0,y&&y(),y=GE(b,250),Xr.hasAnimatedSinceResize&&(Xr.hasAnimatedSinceResize=!1,this.nodes.forEach(ty)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&m&&(p||g)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const T=this.options.transition||m.getDefaultTransition()||p3,{onLayoutAnimationStart:E,onLayoutAnimationComplete:N}=m.getProps(),D=!this.targetLayout||!E1(this.targetLayout,w),z=!v&&b;if(this.options.layoutRoot||this.resumeFrom||z||v&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M=le(Z({},cd(T,"layout")),{onPlay:E,onComplete:N});(m.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(y,z)}else v||ty(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ua(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(f3),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&A1(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(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ig);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ey);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(o3),this.nodes.forEach(a3),this.nodes.forEach(s3)):this.nodes.forEach(ey),this.clearAllSnapshots();const p=Nt.now();dt.delta=Ln(0,1e3/60,p-dt.timestamp),dt.timestamp=p,dt.isProcessing=!0,Pc.update.process(dt),Pc.preRender.process(dt),Pc.render.process(dt),dt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,dd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(r3),this.sharedNodes.forEach(d3)}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&&!vt(this.snapshot.measuredBox.x)&&!vt(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 f=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,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p&&this.instance){const g=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:g,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!o)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!N1(this.projectionDelta),g=this.getTransformTemplate(),m=g?g(this.latestValues,""):void 0,y=m!==this.prevTransformTemplateValue;f&&this.instance&&(p||La(this.latestValues)||y)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return f&&(g=this.removeTransform(g)),g3(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var m;const{visualElement:f}=this.options;if(!f)return $e();const p=f.measureViewportBox();if(!(((m=this.scroll)==null?void 0:m.wasRoot)||this.path.some(y3))){const{scroll:y}=this.root;y&&(Cs(p.x,y.offset.x),Cs(p.y,y.offset.y))}return p}removeElementScroll(f){var g;const p=$e();if(Kt(p,f),(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&&Kt(p,f),Cs(p.x,v.offset.x),Cs(p.y,v.offset.y))}return p}applyTransform(f,p=!1){const g=$e();Kt(g,f);for(let m=0;m<this.path.length;m++){const y=this.path[m];!p&&y.options.layoutScroll&&y.scroll&&y!==y.root&&Ds(g,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),La(y.latestValues)&&Ds(g,y.latestValues)}return La(this.latestValues)&&Ds(g,this.latestValues),g}removeTransform(f){const p=$e();Kt(p,f);for(let g=0;g<this.path.length;g++){const m=this.path[g];if(!m.instance||!La(m.latestValues))continue;Af(m.latestValues)&&m.updateSnapshot();const y=$e(),v=m.measurePageBox();Kt(y,v),Zg(p,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,y)}return La(this.latestValues)&&Zg(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options=le(Z(Z({},this.options),f),{crossfade:f.crossfade!==void 0?f.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(f=!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(!(f||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 w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),Qi(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),Kt(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(),jE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Kt(this.target,this.layout.layoutBox),l1(this.target,this.targetDelta)):Kt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),Qi(this.relativeTargetOrigin,this.target,w.target),Kt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Af(this.parent.latestValues)||i1(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 T;const f=this.getLead(),p=!!this.resumingFrom||this!==f;let g=!0;if((this.isProjectionDirty||(T=this.parent)!=null&&T.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;Kt(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;BN(this.layoutCorrected,this.treeScale,this.path,p),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=$e());const{target:w}=f;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Gg(this.prevProjectionDelta.x,this.projectionDelta.x),Gg(this.prevProjectionDelta.y,this.projectionDelta.y)),Fi(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!Wg(this.projectionDelta.x,this.prevProjectionDelta.x)||!Wg(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var p;if((p=this.options.visualElement)==null||p.scheduleRender(),f){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ms(),this.projectionDelta=Ms(),this.projectionDeltaWithTransform=Ms()}setAnimationOrigin(f,p=!1){const g=this.snapshot,m=g?g.latestValues:{},y=Z({},this.latestValues),v=Ms();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const b=$e(),w=g?g.source:void 0,T=this.layout?this.layout.source:void 0,E=w!==T,N=this.getStack(),D=!N||N.members.length<=1,z=!!(E&&!D&&this.options.crossfade===!0&&!this.path.some(m3));this.animationProgress=0;let M;this.mixTargetDelta=G=>{const _=G/1e3;ny(v.x,f.x,_),ny(v.y,f.y,_),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qi(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h3(this.relativeTarget,this.relativeTargetOrigin,b,_),M&&WE(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=$e()),Kt(M,this.relativeTarget)),E&&(this.animationValues=y,KE(y,m,this.latestValues,_,z,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){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&&(ua(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ke.update(()=>{Xr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ls(0)),this.currentAnimation=qE(this.motionValue,[0,1e3],le(Z({},f),{velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),f.onUpdate&&f.onUpdate(y)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(t3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:g,layout:m,latestValues:y}=f;if(!(!p||!g||!m)){if(this!==f&&this.layout&&m&&C1(this.options.animationType,this.layout.layoutBox,m.layoutBox)){g=this.target||$e();const v=vt(this.layout.layoutBox.x);g.x.min=f.target.x.min,g.x.max=g.x.min+v;const b=vt(this.layout.layoutBox.y);g.y.min=f.target.y.min,g.y.max=g.y.min+b}Kt(p,g),Ds(p,y),Fi(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new IE),this.sharedNodes.get(f).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 f=this.getStack();return f?f.lead===this:!0}getLead(){var p;const{layoutId:f}=this.options;return f?((p=this.getStack())==null?void 0:p.lead)||this:this}getPrevLead(){var p;const{layoutId:f}=this.options;return f?(p=this.getStack())==null?void 0:p.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:g}={}){const m=this.getStack();m&&m.promote(this,g),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:g}=f;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const m={};g.z&&tf("z",f,m,this.animationValues);for(let y=0;y<ef.length;y++)tf(`rotate${ef[y]}`,f,m,this.animationValues),tf(`skew${ef[y]}`,f,m,this.animationValues);f.render();for(const y in m)f.setStaticValue(y,m[y]),this.animationValues&&(this.animationValues[y]=m[y]);f.scheduleRender()}applyProjectionStyles(f,p){var T,E;if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Gr(p==null?void 0:p.pointerEvents)||"",f.transform=g?g(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Gr(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!La(this.latestValues)&&(f.transform=g?g({},""):"none",this.hasProjected=!1);return}f.visibility="";const y=m.animationValues||m.latestValues;this.applyTransformsToTarget();let v=e3(this.projectionDeltaWithTransform,this.treeScale,y);g&&(v=g(y,v)),f.transform=v;const{x:b,y:w}=this.projectionDelta;f.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,m.animationValues?f.opacity=m===this?(E=(T=y.opacity)!=null?T:this.latestValues.opacity)!=null?E:1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:f.opacity=m===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const N in nl){if(y[N]===void 0)continue;const{correct:D,applyTo:z,isCSSVariable:M}=nl[N],G=v==="none"?y[N]:D(y[N],m);if(z){const _=z.length;for(let X=0;X<_;X++)f[z[X]]=G}else M?this.options.visualElement.renderState.vars[N]=G:f[N]=G}this.options.layoutId&&(f.pointerEvents=m===this?Gr(p==null?void 0:p.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var p;return(p=f.currentAnimation)==null?void 0:p.stop()}),this.root.nodes.forEach(Ig),this.root.sharedNodes.clear()}}}function a3(n){n.updateLayout()}function s3(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,f=a.source!==n.layout.source;c==="size"?Ft(v=>{const b=f?a.measuredBox[v]:a.layoutBox[v],w=vt(b);b.min=r[v].min,b.max=b.min+w}):C1(c,a.layoutBox,r)&&Ft(v=>{const b=f?a.measuredBox[v]:a.layoutBox[v],w=vt(r[v]);b.max=b.min+w,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[v].max=n.relativeTarget[v].min+w)});const p=Ms();Fi(p,r,a.layoutBox);const g=Ms();f?Fi(g,n.applyTransform(o,!0),a.measuredBox):Fi(g,r,a.layoutBox);const m=!N1(p);let y=!1;if(!n.resumeFrom){const v=n.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:b,layout:w}=v;if(b&&w){const T=$e();Qi(T,a.layoutBox,b.layoutBox);const E=$e();Qi(E,r,w.layoutBox),E1(T,E)||(y=!0),v.options.layoutRoot&&(n.relativeTarget=E,n.relativeTargetOrigin=T,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 i3(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 l3(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function r3(n){n.clearSnapshot()}function Ig(n){n.clearMeasurements()}function ey(n){n.isLayoutDirty=!1}function o3(n){const{visualElement:a}=n.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),n.resetTransform()}function ty(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function u3(n){n.resolveTargetDelta()}function c3(n){n.calcProjection()}function f3(n){n.resetSkewAndRotation()}function d3(n){n.removeLeadSnapshot()}function ny(n,a,i){n.translate=qe(a.translate,0,i),n.scale=qe(a.scale,1,i),n.origin=a.origin,n.originPoint=a.originPoint}function ay(n,a,i,r){n.min=qe(a.min,i.min,r),n.max=qe(a.max,i.max,r)}function h3(n,a,i,r){ay(n.x,a.x,i.x,r),ay(n.y,a.y,i.y,r)}function m3(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const p3={duration:.45,ease:[.4,0,.1,1]},sy=n=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),iy=sy("applewebkit/")&&!sy("chrome/")?Math.round:Qt;function ly(n){n.min=iy(n.min),n.max=iy(n.max)}function g3(n){ly(n.x),ly(n.y)}function C1(n,a,i){return n==="position"||n==="preserve-aspect"&&!wE(Jg(a),Jg(i),.2)}function y3(n){var a;return n!==n.root&&((a=n.scroll)==null?void 0:a.wasRoot)}const x3=R1({attachResizeListener:(n,a)=>al(n,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nf={current:void 0},D1=R1({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!nf.current){const n=new x3({});n.mount(window),n.setOptions({layoutScroll:!0}),nf.current=n}return nf.current},resetTransform:(n,a)=>{n.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),v3={pan:{Feature:VE},drag:{Feature:UE,ProjectionNode:D1,MeasureLayout:w1}};function ry(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,pl(a)))}class b3 extends da{mount(){const{current:a}=this.node;a&&(this.unmount=YT(a,(i,r)=>(ry(this.node,r,"Start"),o=>ry(this.node,o,"End"))))}unmount(){}}class S3 extends da{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=dl(al(this.node.current,"focus",()=>this.onFocus()),al(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function oy(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,pl(a)))}class w3 extends da{mount(){const{current:a}=this.node;a&&(this.unmount=ZT(a,(i,r)=>(oy(this.node,r,"Start"),(o,{success:c})=>oy(this.node,o,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const zf=new WeakMap,af=new WeakMap,j3=n=>{const a=zf.get(n.target);a&&a(n)},T3=n=>{n.forEach(j3)};function N3(i){var r=i,{root:n}=r,a=rt(r,["root"]);const o=n||document;af.has(o)||af.set(o,{});const c=af.get(o),f=JSON.stringify(a);return c[f]||(c[f]=new IntersectionObserver(T3,Z({root:n},a))),c[f]}function E3(n,a,i){const r=N3(a);return zf.set(n,i),r.observe(n),()=>{zf.delete(n),r.unobserve(n)}}const A3={some:0,all:1};class R3 extends da{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,f={root:i?i.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:A3[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 E3(this.node.current,f,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 D3={inView:{Feature:R3},tap:{Feature:w3},focus:{Feature:S3},hover:{Feature:b3}},M3={layout:{ProjectionNode:D1,MeasureLayout:w1}},O3=Z(Z(Z(Z({},gE),D3),v3),M3),Zt=ON(O3,XN),L3=()=>{const[n,a]=j.useState(null),[i,r]=j.useState(!1),[o,c]=j.useState(!1),[f,p]=j.useState(0),[g,m]=j.useState(null),[y,v]=j.useState(""),{TransactionKey:b}=ot(M=>M),w=j.useCallback(M=>{M.preventDefault(),M.stopPropagation(),M.type==="dragenter"||M.type==="dragover"?r(!0):M.type==="dragleave"&&r(!1)},[]),T=j.useCallback(M=>{if(M.preventDefault(),M.stopPropagation(),r(!1),M.dataTransfer.files&&M.dataTransfer.files[0]){const G=M.dataTransfer.files[0];E(G)&&(a(G),m(null),v(""))}},[]),E=M=>{const G=["application/zip","application/x-zip-compressed","application/x-tar","application/gzip","application/x-gzip"],_=[".zip",".tar",".tar.gz",".tgz"],X=M.name.toLowerCase();return G.includes(M.type)||_.some(Q=>X.endsWith(Q))?M.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)},N=M=>{const G=M.target.files[0];G&&E(G)&&(a(G),m(null),v(""))},D=()=>Ae(null,null,function*(){var G,_;if(!n||!b){v("Please select a file and ensure you're authenticated"),m("error");return}c(!0),p(0),m(null),v("");const M=new FormData;M.append("file",n);try{(yield me.post(`${Je}/api/db/import-database/?transactiontoken=${b}`,M,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:$=>{const Q=Math.round($.loaded*100/$.total);p(Q)}})).status===200&&(m("success"),a(null),p(100))}catch(X){console.error("Upload failed:",X),m("error"),v(((_=(G=X.response)==null?void 0:G.data)==null?void 0:_.message)||"Failed to import database. Please try again.")}finally{c(!1)}}),z=()=>{a(null),m(null),v(""),p(0)};return h.jsx("div",{className:"container mx-auto px-4 py-8",children:h.jsxs(Zt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"max-w-2xl mx-auto",children:[h.jsxs("div",{className:"text-center mb-8",children:[h.jsx(Zt.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:h.jsx("svg",{className:"w-8 h-8 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"})})}),h.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Import Database"}),h.jsx("p",{className:"text-gray-600",children:"Upload a ZIP or TAR file containing your exported database"})]}),h.jsx(Zt.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.3,duration:.5},className:"mb-6",children:h.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:w,onDragLeave:w,onDragOver:w,onDrop:T,children:[h.jsx("input",{type:"file",id:"file-upload",className:"sr-only",accept:".zip,.tar,.tar.gz,.tgz",onChange:N,disabled:o}),h.jsx(Fc,{mode:"wait",children:n?h.jsxs(Zt.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:[h.jsxs("div",{className:"flex items-center",children:[h.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-lg flex items-center justify-center mr-3",children:h.jsx("svg",{className:"w-5 h-5 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"})})}),h.jsxs("div",{children:[h.jsx("p",{className:"font-medium text-gray-900",children:n.name}),h.jsxs("p",{className:"text-sm text-gray-500",children:[(n.size/1024/1024).toFixed(2)," MB"]})]})]}),!o&&h.jsx("button",{onClick:z,className:"text-red-500 hover:text-red-700 transition-colors",children:h.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]},"file-selected"):h.jsxs(Zt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"text-center",children:[h.jsx(Zt.div,{animate:i?{scale:1.1}:{scale:1},transition:{type:"spring",stiffness:300},children:h.jsx("svg",{className:"w-12 h-12 text-gray-400 mx-auto mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"})})}),h.jsx("p",{className:"text-lg font-medium text-gray-700 mb-2",children:i?"Drop your file here":"Drag and drop your file here"}),h.jsx("p",{className:"text-gray-500 mb-4",children:"or"}),h.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:[h.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})}),"Choose File"]}),h.jsx("p",{className:"text-sm text-gray-500 mt-4",children:"Supports ZIP and TAR files (max 100MB)"})]},"upload-prompt")})]})}),h.jsx(Fc,{children:o&&h.jsx(Zt.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"mb-6",children:h.jsxs("div",{className:"bg-white rounded-lg p-4 shadow-sm border",children:[h.jsxs("div",{className:"flex items-center justify-between mb-2",children:[h.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Uploading..."}),h.jsxs("span",{className:"text-sm text-gray-500",children:[f,"%"]})]}),h.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:h.jsx(Zt.div,{className:"bg-blue-600 h-2 rounded-full",initial:{width:0},animate:{width:`${f}%`},transition:{duration:.3}})})]})})}),h.jsx(Fc,{children:g&&h.jsxs(Zt.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:[h.jsxs("div",{className:"flex items-center",children:[g==="success"?h.jsx("svg",{className:"w-5 h-5 text-green-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}):h.jsx("svg",{className:"w-5 h-5 text-red-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})}),h.jsx("p",{className:`font-medium ${g==="success"?"text-green-800":"text-red-800"}`,children:g==="success"?"Database imported successfully!":"Import failed"})]}),y&&h.jsx("p",{className:"text-red-700 mt-1 text-sm",children:y})]})}),h.jsx(Zt.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.4,duration:.5},className:"text-center",children:h.jsx("button",{onClick:D,disabled:!n||o||!b,className:`w-full py-4 px-6 rounded-lg font-medium transition-all duration-300 ${!n||o||!b?"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?h.jsxs("div",{className:"flex items-center justify-center",children:[h.jsx(Zt.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..."]}):h.jsxs("div",{className:"flex items-center justify-center",children:[h.jsx("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:h.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"]})})}),h.jsxs(Zt.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.5,duration:.5},className:"mt-8 bg-gray-50 rounded-lg p-6",children:[h.jsx("h3",{className:"font-medium text-gray-900 mb-3",children:"Import Guidelines"}),h.jsxs("ul",{className:"space-y-2 text-sm text-gray-600",children:[h.jsxs("li",{className:"flex items-start",children:[h.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:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),"Only ZIP and TAR compressed files are supported"]}),h.jsxs("li",{className:"flex items-start",children:[h.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:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),"Only use files exported from AxioDB"]}),h.jsxs("li",{className:"flex items-start",children:[h.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:h.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"})}),"Importing will create a new database in your system"]})]})]})]})})};function z3(){const{loadKey:n}=ot(r=>r),[a,i]=j.useState(!0);return j.useEffect(()=>{Ae(null,null,function*(){try{yield n()}finally{i(!1)}})},[n]),a?h.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"spinner-border text-primary mb-3",role:"status",children:h.jsx("span",{className:"sr-only",children:"Loading..."})}),h.jsx("p",{className:"text-gray-600",children:"Loading application..."})]})}):h.jsx(RS,{children:h.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[h.jsx(xj,{}),h.jsx("main",{className:"flex-grow",children:h.jsxs(sS,{children:[h.jsx(fn,{path:"/",element:h.jsx(Hj,{})}),h.jsx(fn,{path:"/operations",element:h.jsx(Gj,{})}),h.jsx(fn,{path:"/collections",element:h.jsx(Zj,{})}),h.jsx(fn,{path:"/documents",element:h.jsx($p,{})}),h.jsx(fn,{path:"/api",element:h.jsx(Wj,{})}),h.jsx(fn,{path:"/support",element:h.jsx(Ij,{})}),h.jsx(fn,{path:"/status",element:h.jsx(e4,{})}),h.jsx(fn,{path:"/import",element:h.jsx(L3,{})}),h.jsx(fn,{path:"/collections/documents",element:h.jsx($p,{})})]})}),h.jsx(_S,{})]})})}m2.createRoot(document.getElementById("root")).render(h.jsx(j.StrictMode,{children:h.jsx(z3,{})}))});export default B3();
|