estatesfunding/ef-ui/dist/assets/index-Ta_ndD8p.js

90 lines
566 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var $g=Object.defineProperty;var Wg=(e,t,n)=>t in e?$g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Nl=(e,t,n)=>Wg(e,typeof t!="symbol"?t+"":t,n);function Ug(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(s,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var qg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lp={exports:{}},ka={},Bp={exports:{}},ue={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var So=Symbol.for("react.element"),Vg=Symbol.for("react.portal"),Hg=Symbol.for("react.fragment"),Kg=Symbol.for("react.strict_mode"),Yg=Symbol.for("react.profiler"),Gg=Symbol.for("react.provider"),Qg=Symbol.for("react.context"),Xg=Symbol.for("react.forward_ref"),Jg=Symbol.for("react.suspense"),Zg=Symbol.for("react.memo"),ex=Symbol.for("react.lazy"),Lu=Symbol.iterator;function tx(e){return e===null||typeof e!="object"?null:(e=Lu&&e[Lu]||e["@@iterator"],typeof e=="function"?e:null)}var Mp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zp=Object.assign,$p={};function us(e,t,n){this.props=e,this.context=t,this.refs=$p,this.updater=n||Mp}us.prototype.isReactComponent={};us.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wp(){}Wp.prototype=us.prototype;function Sd(e,t,n){this.props=e,this.context=t,this.refs=$p,this.updater=n||Mp}var Ed=Sd.prototype=new Wp;Ed.constructor=Sd;zp(Ed,us.prototype);Ed.isPureReactComponent=!0;var Bu=Array.isArray,Up=Object.prototype.hasOwnProperty,Pd={current:null},qp={key:!0,ref:!0,__self:!0,__source:!0};function Vp(e,t,n){var s,o={},i=null,a=null;if(t!=null)for(s in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Up.call(t,s)&&!qp.hasOwnProperty(s)&&(o[s]=t[s]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var d=Array(l),c=0;c<l;c++)d[c]=arguments[c+2];o.children=d}if(e&&e.defaultProps)for(s in l=e.defaultProps,l)o[s]===void 0&&(o[s]=l[s]);return{$$typeof:So,type:e,key:i,ref:a,props:o,_owner:Pd.current}}function nx(e,t){return{$$typeof:So,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _d(e){return typeof e=="object"&&e!==null&&e.$$typeof===So}function rx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Mu=/\/+/g;function Cl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?rx(""+e.key):t.toString(36)}function fi(e,t,n,s,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case So:case Vg:a=!0}}if(a)return a=e,o=o(a),e=s===""?"."+Cl(a,0):s,Bu(o)?(n="",e!=null&&(n=e.replace(Mu,"$&/")+"/"),fi(o,t,n,"",function(c){return c})):o!=null&&(_d(o)&&(o=nx(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Mu,"$&/")+"/")+e)),t.push(o)),1;if(a=0,s=s===""?".":s+":",Bu(e))for(var l=0;l<e.length;l++){i=e[l];var d=s+Cl(i,l);a+=fi(i,t,n,d,o)}else if(d=tx(e),typeof d=="function")for(e=d.call(e),l=0;!(i=e.next()).done;)i=i.value,d=s+Cl(i,l++),a+=fi(i,t,n,d,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Uo(e,t,n){if(e==null)return e;var s=[],o=0;return fi(e,s,"","",function(i){return t.call(n,i,o++)}),s}function sx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},pi={transition:null},ox={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:pi,ReactCurrentOwner:Pd};function Hp(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:Uo,forEach:function(e,t,n){Uo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Uo(e,function(){t++}),t},toArray:function(e){return Uo(e,function(t){return t})||[]},only:function(e){if(!_d(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=us;ue.Fragment=Hg;ue.Profiler=Yg;ue.PureComponent=Sd;ue.StrictMode=Kg;ue.Suspense=Jg;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ox;ue.act=Hp;ue.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=zp({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Pd.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(d in t)Up.call(t,d)&&!qp.hasOwnProperty(d)&&(s[d]=t[d]===void 0&&l!==void 0?l[d]:t[d])}var d=arguments.length-2;if(d===1)s.children=n;else if(1<d){l=Array(d);for(var c=0;c<d;c++)l[c]=arguments[c+2];s.children=l}return{$$typeof:So,type:e.type,key:o,ref:i,props:s,_owner:a}};ue.createContext=function(e){return e={$$typeof:Qg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Gg,_context:e},e.Consumer=e};ue.createElement=Vp;ue.createFactory=function(e){var t=Vp.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:Xg,render:e}};ue.isValidElement=_d;ue.lazy=function(e){return{$$typeof:ex,_payload:{_status:-1,_result:e},_init:sx}};ue.memo=function(e,t){return{$$typeof:Zg,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=pi.transition;pi.transition={};try{e()}finally{pi.transition=t}};ue.unstable_act=Hp;ue.useCallback=function(e,t){return Je.current.useCallback(e,t)};ue.useContext=function(e){return Je.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};ue.useEffect=function(e,t){return Je.current.useEffect(e,t)};ue.useId=function(){return Je.current.useId()};ue.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return Je.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};ue.useRef=function(e){return Je.current.useRef(e)};ue.useState=function(e){return Je.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return Je.current.useTransition()};ue.version="18.3.1";Bp.exports=ue;var k=Bp.exports;const I=ko(k),dc=Ug({__proto__:null,default:I},[k]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ix=k,ax=Symbol.for("react.element"),lx=Symbol.for("react.fragment"),cx=Object.prototype.hasOwnProperty,dx=ix.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ux={key:!0,ref:!0,__self:!0,__source:!0};function Kp(e,t,n){var s,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(s in t)cx.call(t,s)&&!ux.hasOwnProperty(s)&&(o[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)o[s]===void 0&&(o[s]=t[s]);return{$$typeof:ax,type:e,key:i,ref:a,props:o,_owner:dx.current}}ka.Fragment=lx;ka.jsx=Kp;ka.jsxs=Kp;Lp.exports=ka;var r=Lp.exports,Yp={exports:{}},jt={},Gp={exports:{}},Qp={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(A,R){var M=A.length;A.push(R);e:for(;0<M;){var B=M-1>>>1,W=A[B];if(0<o(W,R))A[B]=R,A[M]=W,M=B;else break e}}function n(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var R=A[0],M=A.pop();if(M!==R){A[0]=M;e:for(var B=0,W=A.length,K=W>>>1;B<K;){var Y=2*(B+1)-1,ee=A[Y],re=Y+1,ne=A[re];if(0>o(ee,M))re<W&&0>o(ne,ee)?(A[B]=ne,A[re]=M,B=re):(A[B]=ee,A[Y]=M,B=Y);else if(re<W&&0>o(ne,M))A[B]=ne,A[re]=M,B=re;else break e}}return R}function o(A,R){var M=A.sortIndex-R.sortIndex;return M!==0?M:A.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var d=[],c=[],u=1,p=null,g=3,N=!1,x=!1,C=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(A){for(var R=n(c);R!==null;){if(R.callback===null)s(c);else if(R.startTime<=A)s(c),R.sortIndex=R.expirationTime,t(d,R);else break;R=n(c)}}function j(A){if(C=!1,h(A),!x)if(n(d)!==null)x=!0,U(E);else{var R=n(c);R!==null&&G(j,R.startTime-A)}}function E(A,R){x=!1,C&&(C=!1,m(_),_=-1),N=!0;var M=g;try{for(h(R),p=n(d);p!==null&&(!(p.expirationTime>R)||A&&!H());){var B=p.callback;if(typeof B=="function"){p.callback=null,g=p.priorityLevel;var W=B(p.expirationTime<=R);R=e.unstable_now(),typeof W=="function"?p.callback=W:p===n(d)&&s(d),h(R)}else s(d);p=n(d)}if(p!==null)var K=!0;else{var Y=n(c);Y!==null&&G(j,Y.startTime-R),K=!1}return K}finally{p=null,g=M,N=!1}}var T=!1,O=null,_=-1,L=5,z=-1;function H(){return!(e.unstable_now()-z<L)}function te(){if(O!==null){var A=e.unstable_now();z=A;var R=!0;try{R=O(!0,A)}finally{R?Q():(T=!1,O=null)}}else T=!1}var Q;if(typeof v=="function")Q=function(){v(te)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,D=Z.port2;Z.port1.onmessage=te,Q=function(){D.postMessage(null)}}else Q=function(){b(te,0)};function U(A){O=A,T||(T=!0,Q())}function G(A,R){_=b(function(){A(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){x||N||(x=!0,U(E))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(A){switch(g){case 1:case 2:case 3:var R=3;break;default:R=g}var M=g;g=R;try{return A()}finally{g=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,R){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var M=g;g=A;try{return R()}finally{g=M}},e.unstable_scheduleCallback=function(A,R,M){var B=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?B+M:B):M=B,A){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=M+W,A={id:u++,callback:R,priorityLevel:A,startTime:M,expirationTime:W,sortIndex:-1},M>B?(A.sortIndex=M,t(c,A),n(d)===null&&A===n(c)&&(C?(m(_),_=-1):C=!0,G(j,M-B))):(A.sortIndex=W,t(d,A),x||N||(x=!0,U(E))),A},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(A){var R=g;return function(){var M=g;g=R;try{return A.apply(this,arguments)}finally{g=M}}}})(Qp);Gp.exports=Qp;var fx=Gp.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var px=k,gt=fx;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xp=new Set,eo={};function kr(e,t){ns(e,t),ns(e+"Capture",t)}function ns(e,t){for(eo[e]=t,e=0;e<t.length;e++)Xp.add(t[e])}var ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uc=Object.prototype.hasOwnProperty,mx=/^[: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]*$/,zu={},$u={};function hx(e){return uc.call($u,e)?!0:uc.call(zu,e)?!1:mx.test(e)?$u[e]=!0:(zu[e]=!0,!1)}function vx(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gx(e,t,n,s){if(t===null||typeof t>"u"||vx(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ze(e,t,n,s,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new Ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){We[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var Td=/[\-:]([a-z])/g;function Od(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Td,Od);We[t]=new Ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Td,Od);We[t]=new Ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Td,Od);We[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ad(e,t,n,s){var o=We.hasOwnProperty(t)?We[t]:null;(o!==null?o.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gx(t,n,o,s)&&(n=null),s||o===null?hx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,s=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var mn=px.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qo=Symbol.for("react.element"),Ar=Symbol.for("react.portal"),Rr=Symbol.for("react.fragment"),Rd=Symbol.for("react.strict_mode"),fc=Symbol.for("react.profiler"),Jp=Symbol.for("react.provider"),Zp=Symbol.for("react.context"),Id=Symbol.for("react.forward_ref"),pc=Symbol.for("react.suspense"),mc=Symbol.for("react.suspense_list"),Fd=Symbol.for("react.memo"),Nn=Symbol.for("react.lazy"),em=Symbol.for("react.offscreen"),Wu=Symbol.iterator;function ws(e){return e===null||typeof e!="object"?null:(e=Wu&&e[Wu]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,bl;function Rs(e){if(bl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);bl=t&&t[1]||""}return`
`+bl+e}var wl=!1;function kl(e,t){if(!e||wl)return"";wl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var s=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){s=c}e.call(t.prototype)}else{try{throw Error()}catch(c){s=c}e()}}catch(c){if(c&&s&&typeof c.stack=="string"){for(var o=c.stack.split(`
`),i=s.stack.split(`
`),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||o[a]!==i[l]){var d=`
`+o[a].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=a&&0<=l);break}}}finally{wl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rs(e):""}function xx(e){switch(e.tag){case 5:return Rs(e.type);case 16:return Rs("Lazy");case 13:return Rs("Suspense");case 19:return Rs("SuspenseList");case 0:case 2:case 15:return e=kl(e.type,!1),e;case 11:return e=kl(e.type.render,!1),e;case 1:return e=kl(e.type,!0),e;default:return""}}function hc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rr:return"Fragment";case Ar:return"Portal";case fc:return"Profiler";case Rd:return"StrictMode";case pc:return"Suspense";case mc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zp:return(e.displayName||"Context")+".Consumer";case Jp:return(e._context.displayName||"Context")+".Provider";case Id:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fd:return t=e.displayName||null,t!==null?t:hc(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return hc(e(t))}catch{}}return null}function yx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hc(t);case 8:return t===Rd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jx(e){var t=tm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){s=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(a){s=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vo(e){e._valueTracker||(e._valueTracker=jx(e))}function nm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=tm(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Mi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vc(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uu(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Wn(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rm(e,t){t=t.checked,t!=null&&Ad(e,"checked",t,!1)}function gc(e,t){rm(e,t);var n=Wn(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xc(e,t.type,n):t.hasOwnProperty("defaultValue")&&xc(e,t.type,Wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xc(e,t,n){(t!=="number"||Mi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Is=Array.isArray;function Qr(e,t,n,s){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Wn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function yc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(V(92));if(Is(n)){if(1<n.length)throw Error(V(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wn(n)}}function sm(e,t){var n=Wn(t.value),s=Wn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Hu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function om(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?om(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ho,im=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ho=Ho||document.createElement("div"),Ho.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ho.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function to(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $s={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nx=["Webkit","ms","Moz","O"];Object.keys($s).forEach(function(e){Nx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$s[t]=$s[e]})});function am(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$s.hasOwnProperty(e)&&$s[e]?(""+t).trim():t+"px"}function lm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,o=am(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,o):e[n]=o}}var Cx=Se({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nc(e,t){if(t){if(Cx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function Cc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bc=null;function Dd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wc=null,Xr=null,Jr=null;function Ku(e){if(e=_o(e)){if(typeof wc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Ta(t),wc(e.stateNode,e.type,t))}}function cm(e){Xr?Jr?Jr.push(e):Jr=[e]:Xr=e}function dm(){if(Xr){var e=Xr,t=Jr;if(Jr=Xr=null,Ku(e),t)for(e=0;e<t.length;e++)Ku(t[e])}}function um(e,t){return e(t)}function fm(){}var Sl=!1;function pm(e,t,n){if(Sl)return e(t,n);Sl=!0;try{return um(e,t,n)}finally{Sl=!1,(Xr!==null||Jr!==null)&&(fm(),dm())}}function no(e,t){var n=e.stateNode;if(n===null)return null;var s=Ta(n);if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var kc=!1;if(ln)try{var ks={};Object.defineProperty(ks,"passive",{get:function(){kc=!0}}),window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{kc=!1}function bx(e,t,n,s,o,i,a,l,d){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ws=!1,zi=null,$i=!1,Sc=null,wx={onError:function(e){Ws=!0,zi=e}};function kx(e,t,n,s,o,i,a,l,d){Ws=!1,zi=null,bx.apply(wx,arguments)}function Sx(e,t,n,s,o,i,a,l,d){if(kx.apply(this,arguments),Ws){if(Ws){var c=zi;Ws=!1,zi=null}else throw Error(V(198));$i||($i=!0,Sc=c)}}function Sr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mm(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 Yu(e){if(Sr(e)!==e)throw Error(V(188))}function Ex(e){var t=e.alternate;if(!t){if(t=Sr(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,s=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(s=o.return,s!==null){n=s;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Yu(o),e;if(i===s)return Yu(o),t;i=i.sibling}throw Error(V(188))}if(n.return!==s.return)n=o,s=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,s=i;break}if(l===s){a=!0,s=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,s=o;break}if(l===s){a=!0,s=i,n=o;break}l=l.sibling}if(!a)throw Error(V(189))}}if(n.alternate!==s)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function hm(e){return e=Ex(e),e!==null?vm(e):null}function vm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vm(e);if(t!==null)return t;e=e.sibling}return null}var gm=gt.unstable_scheduleCallback,Gu=gt.unstable_cancelCallback,Px=gt.unstable_shouldYield,_x=gt.unstable_requestPaint,Te=gt.unstable_now,Tx=gt.unstable_getCurrentPriorityLevel,Ld=gt.unstable_ImmediatePriority,xm=gt.unstable_UserBlockingPriority,Wi=gt.unstable_NormalPriority,Ox=gt.unstable_LowPriority,ym=gt.unstable_IdlePriority,Sa=null,Qt=null;function Ax(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Sa,e,void 0,(e.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:Fx,Rx=Math.log,Ix=Math.LN2;function Fx(e){return e>>>=0,e===0?32:31-(Rx(e)/Ix|0)|0}var Ko=64,Yo=4194304;function Fs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ui(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?s=Fs(l):(i&=a,i!==0&&(s=Fs(i)))}else a=n&~o,a!==0?s=Fs(a):i!==0&&(s=Fs(i));if(s===0)return 0;if(t!==0&&t!==s&&!(t&o)&&(o=s&-s,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-It(t),o=1<<n,s|=e[n],t&=~o;return s}function Dx(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lx(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-It(i),l=1<<a,d=o[a];d===-1?(!(l&n)||l&s)&&(o[a]=Dx(l,t)):d<=t&&(e.expiredLanes|=l),i&=~l}}function Ec(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function jm(){var e=Ko;return Ko<<=1,!(Ko&4194240)&&(Ko=64),e}function El(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Eo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Bx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-It(n),i=1<<o;t[o]=0,s[o]=-1,e[o]=-1,n&=~i}}function Bd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-It(n),o=1<<s;o&t|e[s]&t&&(e[s]|=t),n&=~o}}var ve=0;function Nm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Cm,Md,bm,wm,km,Pc=!1,Go=[],Rn=null,In=null,Fn=null,ro=new Map,so=new Map,En=[],Mx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qu(e,t){switch(e){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":ro.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(t.pointerId)}}function Ss(e,t,n,s,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:i,targetContainers:[o]},t!==null&&(t=_o(t),t!==null&&Md(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function zx(e,t,n,s,o){switch(t){case"focusin":return Rn=Ss(Rn,e,t,n,s,o),!0;case"dragenter":return In=Ss(In,e,t,n,s,o),!0;case"mouseover":return Fn=Ss(Fn,e,t,n,s,o),!0;case"pointerover":var i=o.pointerId;return ro.set(i,Ss(ro.get(i)||null,e,t,n,s,o)),!0;case"gotpointercapture":return i=o.pointerId,so.set(i,Ss(so.get(i)||null,e,t,n,s,o)),!0}return!1}function Sm(e){var t=ar(e.target);if(t!==null){var n=Sr(t);if(n!==null){if(t=n.tag,t===13){if(t=mm(n),t!==null){e.blockedOn=t,km(e.priority,function(){bm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_c(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);bc=s,n.target.dispatchEvent(s),bc=null}else return t=_o(n),t!==null&&Md(t),e.blockedOn=n,!1;t.shift()}return!0}function Xu(e,t,n){mi(e)&&n.delete(t)}function $x(){Pc=!1,Rn!==null&&mi(Rn)&&(Rn=null),In!==null&&mi(In)&&(In=null),Fn!==null&&mi(Fn)&&(Fn=null),ro.forEach(Xu),so.forEach(Xu)}function Es(e,t){e.blockedOn===t&&(e.blockedOn=null,Pc||(Pc=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,$x)))}function oo(e){function t(o){return Es(o,e)}if(0<Go.length){Es(Go[0],e);for(var n=1;n<Go.length;n++){var s=Go[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Rn!==null&&Es(Rn,e),In!==null&&Es(In,e),Fn!==null&&Es(Fn,e),ro.forEach(t),so.forEach(t),n=0;n<En.length;n++)s=En[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<En.length&&(n=En[0],n.blockedOn===null);)Sm(n),n.blockedOn===null&&En.shift()}var Zr=mn.ReactCurrentBatchConfig,qi=!0;function Wx(e,t,n,s){var o=ve,i=Zr.transition;Zr.transition=null;try{ve=1,zd(e,t,n,s)}finally{ve=o,Zr.transition=i}}function Ux(e,t,n,s){var o=ve,i=Zr.transition;Zr.transition=null;try{ve=4,zd(e,t,n,s)}finally{ve=o,Zr.transition=i}}function zd(e,t,n,s){if(qi){var o=_c(e,t,n,s);if(o===null)Ll(e,t,s,Vi,n),Qu(e,s);else if(zx(o,e,t,n,s))s.stopPropagation();else if(Qu(e,s),t&4&&-1<Mx.indexOf(e)){for(;o!==null;){var i=_o(o);if(i!==null&&Cm(i),i=_c(e,t,n,s),i===null&&Ll(e,t,s,Vi,n),i===o)break;o=i}o!==null&&s.stopPropagation()}else Ll(e,t,s,null,n)}}var Vi=null;function _c(e,t,n,s){if(Vi=null,e=Dd(s),e=ar(e),e!==null)if(t=Sr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vi=e,null}function Em(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Tx()){case Ld:return 1;case xm:return 4;case Wi:case Ox:return 16;case ym:return 536870912;default:return 16}default:return 16}}var _n=null,$d=null,hi=null;function Pm(){if(hi)return hi;var e,t=$d,n=t.length,s,o="value"in _n?_n.value:_n.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(s=1;s<=a&&t[n-s]===o[i-s];s++);return hi=o.slice(e,1<s?1-s:void 0)}function vi(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 Qo(){return!0}function Ju(){return!1}function Nt(e){function t(n,s,o,i,a){this._reactName=n,this._targetInst=o,this.type=s,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qo:Ju,this.isPropagationStopped=Ju,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Qo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qo)},persist:function(){},isPersistent:Qo}),t}var fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wd=Nt(fs),Po=Se({},fs,{view:0,detail:0}),qx=Nt(Po),Pl,_l,Ps,Ea=Se({},Po,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ud,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!==Ps&&(Ps&&e.type==="mousemove"?(Pl=e.screenX-Ps.screenX,_l=e.screenY-Ps.screenY):_l=Pl=0,Ps=e),Pl)},movementY:function(e){return"movementY"in e?e.movementY:_l}}),Zu=Nt(Ea),Vx=Se({},Ea,{dataTransfer:0}),Hx=Nt(Vx),Kx=Se({},Po,{relatedTarget:0}),Tl=Nt(Kx),Yx=Se({},fs,{animationName:0,elapsedTime:0,pseudoElement:0}),Gx=Nt(Yx),Qx=Se({},fs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xx=Nt(Qx),Jx=Se({},fs,{data:0}),ef=Nt(Jx),Zx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ey={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"},ty={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ny(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ty[e])?!!t[e]:!1}function Ud(){return ny}var ry=Se({},Po,{key:function(e){if(e.key){var t=Zx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ey[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ud,charCode:function(e){return e.type==="keypress"?vi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sy=Nt(ry),oy=Se({},Ea,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tf=Nt(oy),iy=Se({},Po,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ud}),ay=Nt(iy),ly=Se({},fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),cy=Nt(ly),dy=Se({},Ea,{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}),uy=Nt(dy),fy=[9,13,27,32],qd=ln&&"CompositionEvent"in window,Us=null;ln&&"documentMode"in document&&(Us=document.documentMode);var py=ln&&"TextEvent"in window&&!Us,_m=ln&&(!qd||Us&&8<Us&&11>=Us),nf=" ",rf=!1;function Tm(e,t){switch(e){case"keyup":return fy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ir=!1;function my(e,t){switch(e){case"compositionend":return Om(t);case"keypress":return t.which!==32?null:(rf=!0,nf);case"textInput":return e=t.data,e===nf&&rf?null:e;default:return null}}function hy(e,t){if(Ir)return e==="compositionend"||!qd&&Tm(e,t)?(e=Pm(),hi=$d=_n=null,Ir=!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 _m&&t.locale!=="ko"?null:t.data;default:return null}}var vy={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 sf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vy[e.type]:t==="textarea"}function Am(e,t,n,s){cm(s),t=Hi(t,"onChange"),0<t.length&&(n=new Wd("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var qs=null,io=null;function gy(e){Um(e,0)}function Pa(e){var t=Lr(e);if(nm(t))return e}function xy(e,t){if(e==="change")return t}var Rm=!1;if(ln){var Ol;if(ln){var Al="oninput"in document;if(!Al){var of=document.createElement("div");of.setAttribute("oninput","return;"),Al=typeof of.oninput=="function"}Ol=Al}else Ol=!1;Rm=Ol&&(!document.documentMode||9<document.documentMode)}function af(){qs&&(qs.detachEvent("onpropertychange",Im),io=qs=null)}function Im(e){if(e.propertyName==="value"&&Pa(io)){var t=[];Am(t,io,e,Dd(e)),pm(gy,t)}}function yy(e,t,n){e==="focusin"?(af(),qs=t,io=n,qs.attachEvent("onpropertychange",Im)):e==="focusout"&&af()}function jy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pa(io)}function Ny(e,t){if(e==="click")return Pa(t)}function Cy(e,t){if(e==="input"||e==="change")return Pa(t)}function by(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:by;function ao(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var o=n[s];if(!uc.call(t,o)||!Bt(e[o],t[o]))return!1}return!0}function lf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cf(e,t){var n=lf(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=lf(n)}}function Fm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dm(){for(var e=window,t=Mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mi(e.document)}return t}function Vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wy(e){var t=Dm(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fm(n.ownerDocument.documentElement,n)){if(s!==null&&Vd(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(s.start,o);s=s.end===void 0?i:Math.min(s.end,o),!e.extend&&i>s&&(o=s,s=i,i=o),o=cf(n,i);var a=cf(n,s);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ky=ln&&"documentMode"in document&&11>=document.documentMode,Fr=null,Tc=null,Vs=null,Oc=!1;function df(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Oc||Fr==null||Fr!==Mi(s)||(s=Fr,"selectionStart"in s&&Vd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Vs&&ao(Vs,s)||(Vs=s,s=Hi(Tc,"onSelect"),0<s.length&&(t=new Wd("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Fr)))}function Xo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Dr={animationend:Xo("Animation","AnimationEnd"),animationiteration:Xo("Animation","AnimationIteration"),animationstart:Xo("Animation","AnimationStart"),transitionend:Xo("Transition","TransitionEnd")},Rl={},Lm={};ln&&(Lm=document.createElement("div").style,"AnimationEvent"in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),"TransitionEvent"in window||delete Dr.transitionend.transition);function _a(e){if(Rl[e])return Rl[e];if(!Dr[e])return e;var t=Dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lm)return Rl[e]=t[n];return e}var Bm=_a("animationend"),Mm=_a("animationiteration"),zm=_a("animationstart"),$m=_a("transitionend"),Wm=new Map,uf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Vn(e,t){Wm.set(e,t),kr(t,[e])}for(var Il=0;Il<uf.length;Il++){var Fl=uf[Il],Sy=Fl.toLowerCase(),Ey=Fl[0].toUpperCase()+Fl.slice(1);Vn(Sy,"on"+Ey)}Vn(Bm,"onAnimationEnd");Vn(Mm,"onAnimationIteration");Vn(zm,"onAnimationStart");Vn("dblclick","onDoubleClick");Vn("focusin","onFocus");Vn("focusout","onBlur");Vn($m,"onTransitionEnd");ns("onMouseEnter",["mouseout","mouseover"]);ns("onMouseLeave",["mouseout","mouseover"]);ns("onPointerEnter",["pointerout","pointerover"]);ns("onPointerLeave",["pointerout","pointerover"]);kr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));kr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));kr("onBeforeInput",["compositionend","keypress","textInput","paste"]);kr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));kr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));kr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Py=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ds));function ff(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,Sx(s,t,void 0,e),e.currentTarget=null}function Um(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],o=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var a=s.length-1;0<=a;a--){var l=s[a],d=l.instance,c=l.currentTarget;if(l=l.listener,d!==i&&o.isPropagationStopped())break e;ff(o,l,c),i=d}else for(a=0;a<s.length;a++){if(l=s[a],d=l.instance,c=l.currentTarget,l=l.listener,d!==i&&o.isPropagationStopped())break e;ff(o,l,c),i=d}}}if($i)throw e=Sc,$i=!1,Sc=null,e}function je(e,t){var n=t[Dc];n===void 0&&(n=t[Dc]=new Set);var s=e+"__bubble";n.has(s)||(qm(t,e,2,!1),n.add(s))}function Dl(e,t,n){var s=0;t&&(s|=4),qm(n,e,s,t)}var Jo="_reactListening"+Math.random().toString(36).slice(2);function lo(e){if(!e[Jo]){e[Jo]=!0,Xp.forEach(function(n){n!=="selectionchange"&&(Py.has(n)||Dl(n,!1,e),Dl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Jo]||(t[Jo]=!0,Dl("selectionchange",!1,t))}}function qm(e,t,n,s){switch(Em(t)){case 1:var o=Wx;break;case 4:o=Ux;break;default:o=zd}n=o.bind(null,t,n,e),o=void 0,!kc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ll(e,t,n,s,o){var i=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var a=s.tag;if(a===3||a===4){var l=s.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(a===4)for(a=s.return;a!==null;){var d=a.tag;if((d===3||d===4)&&(d=a.stateNode.containerInfo,d===o||d.nodeType===8&&d.parentNode===o))return;a=a.return}for(;l!==null;){if(a=ar(l),a===null)return;if(d=a.tag,d===5||d===6){s=i=a;continue e}l=l.parentNode}}s=s.return}pm(function(){var c=i,u=Dd(n),p=[];e:{var g=Wm.get(e);if(g!==void 0){var N=Wd,x=e;switch(e){case"keypress":if(vi(n)===0)break e;case"keydown":case"keyup":N=sy;break;case"focusin":x="focus",N=Tl;break;case"focusout":x="blur",N=Tl;break;case"beforeblur":case"afterblur":N=Tl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=Zu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Hx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=ay;break;case Bm:case Mm:case zm:N=Gx;break;case $m:N=cy;break;case"scroll":N=qx;break;case"wheel":N=uy;break;case"copy":case"cut":case"paste":N=Xx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=tf}var C=(t&4)!==0,b=!C&&e==="scroll",m=C?g!==null?g+"Capture":null:g;C=[];for(var v=c,h;v!==null;){h=v;var j=h.stateNode;if(h.tag===5&&j!==null&&(h=j,m!==null&&(j=no(v,m),j!=null&&C.push(co(v,j,h)))),b)break;v=v.return}0<C.length&&(g=new N(g,x,null,n,u),p.push({event:g,listeners:C}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",g&&n!==bc&&(x=n.relatedTarget||n.fromElement)&&(ar(x)||x[cn]))break e;if((N||g)&&(g=u.window===u?u:(g=u.ownerDocument)?g.defaultView||g.parentWindow:window,N?(x=n.relatedTarget||n.toElement,N=c,x=x?ar(x):null,x!==null&&(b=Sr(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(N=null,x=c),N!==x)){if(C=Zu,j="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(C=tf,j="onPointerLeave",m="onPointerEnter",v="pointer"),b=N==null?g:Lr(N),h=x==null?g:Lr(x),g=new C(j,v+"leave",N,n,u),g.target=b,g.relatedTarget=h,j=null,ar(u)===c&&(C=new C(m,v+"enter",x,n,u),C.target=h,C.relatedTarget=b,j=C),b=j,N&&x)t:{for(C=N,m=x,v=0,h=C;h;h=Pr(h))v++;for(h=0,j=m;j;j=Pr(j))h++;for(;0<v-h;)C=Pr(C),v--;for(;0<h-v;)m=Pr(m),h--;for(;v--;){if(C===m||m!==null&&C===m.alternate)break t;C=Pr(C),m=Pr(m)}C=null}else C=null;N!==null&&pf(p,g,N,C,!1),x!==null&&b!==null&&pf(p,b,x,C,!0)}}e:{if(g=c?Lr(c):window,N=g.nodeName&&g.nodeName.toLowerCase(),N==="select"||N==="input"&&g.type==="file")var E=xy;else if(sf(g))if(Rm)E=Cy;else{E=jy;var T=yy}else(N=g.nodeName)&&N.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(E=Ny);if(E&&(E=E(e,c))){Am(p,E,n,u);break e}T&&T(e,g,c),e==="focusout"&&(T=g._wrapperState)&&T.controlled&&g.type==="number"&&xc(g,"number",g.value)}switch(T=c?Lr(c):window,e){case"focusin":(sf(T)||T.contentEditable==="true")&&(Fr=T,Tc=c,Vs=null);break;case"focusout":Vs=Tc=Fr=null;break;case"mousedown":Oc=!0;break;case"contextmenu":case"mouseup":case"dragend":Oc=!1,df(p,n,u);break;case"selectionchange":if(ky)break;case"keydown":case"keyup":df(p,n,u)}var O;if(qd)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Ir?Tm(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(_m&&n.locale!=="ko"&&(Ir||_!=="onCompositionStart"?_==="onCompositionEnd"&&Ir&&(O=Pm()):(_n=u,$d="value"in _n?_n.value:_n.textContent,Ir=!0)),T=Hi(c,_),0<T.length&&(_=new ef(_,e,null,n,u),p.push({event:_,listeners:T}),O?_.data=O:(O=Om(n),O!==null&&(_.data=O)))),(O=py?my(e,n):hy(e,n))&&(c=Hi(c,"onBeforeInput"),0<c.length&&(u=new ef("onBeforeInput","beforeinput",null,n,u),p.push({event:u,listeners:c}),u.data=O))}Um(p,t)})}function co(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hi(e,t){for(var n=t+"Capture",s=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=no(e,n),i!=null&&s.unshift(co(e,i,o)),i=no(e,t),i!=null&&s.push(co(e,i,o))),e=e.return}return s}function Pr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function pf(e,t,n,s,o){for(var i=t._reactName,a=[];n!==null&&n!==s;){var l=n,d=l.alternate,c=l.stateNode;if(d!==null&&d===s)break;l.tag===5&&c!==null&&(l=c,o?(d=no(n,i),d!=null&&a.unshift(co(n,d,l))):o||(d=no(n,i),d!=null&&a.push(co(n,d,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var _y=/\r\n?/g,Ty=/\u0000|\uFFFD/g;function mf(e){return(typeof e=="string"?e:""+e).replace(_y,`
`).replace(Ty,"")}function Zo(e,t,n){if(t=mf(t),mf(e)!==t&&n)throw Error(V(425))}function Ki(){}var Ac=null,Rc=null;function Ic(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fc=typeof setTimeout=="function"?setTimeout:void 0,Oy=typeof clearTimeout=="function"?clearTimeout:void 0,hf=typeof Promise=="function"?Promise:void 0,Ay=typeof queueMicrotask=="function"?queueMicrotask:typeof hf<"u"?function(e){return hf.resolve(null).then(e).catch(Ry)}:Fc;function Ry(e){setTimeout(function(){throw e})}function Bl(e,t){var n=t,s=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(s===0){e.removeChild(o),oo(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=o}while(n);oo(t)}function Dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ps=Math.random().toString(36).slice(2),Yt="__reactFiber$"+ps,uo="__reactProps$"+ps,cn="__reactContainer$"+ps,Dc="__reactEvents$"+ps,Iy="__reactListeners$"+ps,Fy="__reactHandles$"+ps;function ar(e){var t=e[Yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[Yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vf(e);e!==null;){if(n=e[Yt])return n;e=vf(e)}return t}e=n,n=e.parentNode}return null}function _o(e){return e=e[Yt]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Lr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function Ta(e){return e[uo]||null}var Lc=[],Br=-1;function Hn(e){return{current:e}}function Ne(e){0>Br||(e.current=Lc[Br],Lc[Br]=null,Br--)}function xe(e,t){Br++,Lc[Br]=e.current,e.current=t}var Un={},He=Hn(Un),ot=Hn(!1),gr=Un;function rs(e,t){var n=e.type.contextTypes;if(!n)return Un;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function it(e){return e=e.childContextTypes,e!=null}function Yi(){Ne(ot),Ne(He)}function gf(e,t,n){if(He.current!==Un)throw Error(V(168));xe(He,t),xe(ot,n)}function Vm(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var o in s)if(!(o in t))throw Error(V(108,yx(e)||"Unknown",o));return Se({},n,s)}function Gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Un,gr=He.current,xe(He,e),xe(ot,ot.current),!0}function xf(e,t,n){var s=e.stateNode;if(!s)throw Error(V(169));n?(e=Vm(e,t,gr),s.__reactInternalMemoizedMergedChildContext=e,Ne(ot),Ne(He),xe(He,e)):Ne(ot),xe(ot,n)}var rn=null,Oa=!1,Ml=!1;function Hm(e){rn===null?rn=[e]:rn.push(e)}function Dy(e){Oa=!0,Hm(e)}function Kn(){if(!Ml&&rn!==null){Ml=!0;var e=0,t=ve;try{var n=rn;for(ve=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}rn=null,Oa=!1}catch(o){throw rn!==null&&(rn=rn.slice(e+1)),gm(Ld,Kn),o}finally{ve=t,Ml=!1}}return null}var Mr=[],zr=0,Qi=null,Xi=0,bt=[],wt=0,xr=null,sn=1,on="";function tr(e,t){Mr[zr++]=Xi,Mr[zr++]=Qi,Qi=e,Xi=t}function Km(e,t,n){bt[wt++]=sn,bt[wt++]=on,bt[wt++]=xr,xr=e;var s=sn;e=on;var o=32-It(s)-1;s&=~(1<<o),n+=1;var i=32-It(t)+o;if(30<i){var a=o-o%5;i=(s&(1<<a)-1).toString(32),s>>=a,o-=a,sn=1<<32-It(t)+o|n<<o|s,on=i+e}else sn=1<<i|n<<o|s,on=e}function Hd(e){e.return!==null&&(tr(e,1),Km(e,1,0))}function Kd(e){for(;e===Qi;)Qi=Mr[--zr],Mr[zr]=null,Xi=Mr[--zr],Mr[zr]=null;for(;e===xr;)xr=bt[--wt],bt[wt]=null,on=bt[--wt],bt[wt]=null,sn=bt[--wt],bt[wt]=null}var ht=null,ut=null,Ce=!1,At=null;function Ym(e,t){var n=kt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function yf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ht=e,ut=Dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ht=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=xr!==null?{id:sn,overflow:on}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ht=e,ut=null,!0):!1;default:return!1}}function Bc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mc(e){if(Ce){var t=ut;if(t){var n=t;if(!yf(e,t)){if(Bc(e))throw Error(V(418));t=Dn(n.nextSibling);var s=ht;t&&yf(e,t)?Ym(s,n):(e.flags=e.flags&-4097|2,Ce=!1,ht=e)}}else{if(Bc(e))throw Error(V(418));e.flags=e.flags&-4097|2,Ce=!1,ht=e}}}function jf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ht=e}function ei(e){if(e!==ht)return!1;if(!Ce)return jf(e),Ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ic(e.type,e.memoizedProps)),t&&(t=ut)){if(Bc(e))throw Gm(),Error(V(418));for(;t;)Ym(e,t),t=Dn(t.nextSibling)}if(jf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=Dn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=ht?Dn(e.stateNode.nextSibling):null;return!0}function Gm(){for(var e=ut;e;)e=Dn(e.nextSibling)}function ss(){ut=ht=null,Ce=!1}function Yd(e){At===null?At=[e]:At.push(e)}var Ly=mn.ReactCurrentBatchConfig;function _s(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(V(309));var s=n.stateNode}if(!s)throw Error(V(147,e));var o=s,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=o.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(V(284));if(!n._owner)throw Error(V(290,e))}return e}function ti(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Nf(e){var t=e._init;return t(e._payload)}function Qm(e){function t(m,v){if(e){var h=m.deletions;h===null?(m.deletions=[v],m.flags|=16):h.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function s(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function o(m,v){return m=zn(m,v),m.index=0,m.sibling=null,m}function i(m,v,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h<v?(m.flags|=2,v):h):(m.flags|=2,v)):(m.flags|=1048576,v)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,v,h,j){return v===null||v.tag!==6?(v=Hl(h,m.mode,j),v.return=m,v):(v=o(v,h),v.return=m,v)}function d(m,v,h,j){var E=h.type;return E===Rr?u(m,v,h.props.children,j,h.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Nn&&Nf(E)===v.type)?(j=o(v,h.props),j.ref=_s(m,v,h),j.return=m,j):(j=bi(h.type,h.key,h.props,null,m.mode,j),j.ref=_s(m,v,h),j.return=m,j)}function c(m,v,h,j){return v===null||v.tag!==4||v.stateNode.containerInfo!==h.containerInfo||v.stateNode.implementation!==h.implementation?(v=Kl(h,m.mode,j),v.return=m,v):(v=o(v,h.children||[]),v.return=m,v)}function u(m,v,h,j,E){return v===null||v.tag!==7?(v=fr(h,m.mode,j,E),v.return=m,v):(v=o(v,h),v.return=m,v)}function p(m,v,h){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Hl(""+v,m.mode,h),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case qo:return h=bi(v.type,v.key,v.props,null,m.mode,h),h.ref=_s(m,null,v),h.return=m,h;case Ar:return v=Kl(v,m.mode,h),v.return=m,v;case Nn:var j=v._init;return p(m,j(v._payload),h)}if(Is(v)||ws(v))return v=fr(v,m.mode,h,null),v.return=m,v;ti(m,v)}return null}function g(m,v,h,j){var E=v!==null?v.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return E!==null?null:l(m,v,""+h,j);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case qo:return h.key===E?d(m,v,h,j):null;case Ar:return h.key===E?c(m,v,h,j):null;case Nn:return E=h._init,g(m,v,E(h._payload),j)}if(Is(h)||ws(h))return E!==null?null:u(m,v,h,j,null);ti(m,h)}return null}function N(m,v,h,j,E){if(typeof j=="string"&&j!==""||typeof j=="number")return m=m.get(h)||null,l(v,m,""+j,E);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case qo:return m=m.get(j.key===null?h:j.key)||null,d(v,m,j,E);case Ar:return m=m.get(j.key===null?h:j.key)||null,c(v,m,j,E);case Nn:var T=j._init;return N(m,v,h,T(j._payload),E)}if(Is(j)||ws(j))return m=m.get(h)||null,u(v,m,j,E,null);ti(v,j)}return null}function x(m,v,h,j){for(var E=null,T=null,O=v,_=v=0,L=null;O!==null&&_<h.length;_++){O.index>_?(L=O,O=null):L=O.sibling;var z=g(m,O,h[_],j);if(z===null){O===null&&(O=L);break}e&&O&&z.alternate===null&&t(m,O),v=i(z,v,_),T===null?E=z:T.sibling=z,T=z,O=L}if(_===h.length)return n(m,O),Ce&&tr(m,_),E;if(O===null){for(;_<h.length;_++)O=p(m,h[_],j),O!==null&&(v=i(O,v,_),T===null?E=O:T.sibling=O,T=O);return Ce&&tr(m,_),E}for(O=s(m,O);_<h.length;_++)L=N(O,m,_,h[_],j),L!==null&&(e&&L.alternate!==null&&O.delete(L.key===null?_:L.key),v=i(L,v,_),T===null?E=L:T.sibling=L,T=L);return e&&O.forEach(function(H){return t(m,H)}),Ce&&tr(m,_),E}function C(m,v,h,j){var E=ws(h);if(typeof E!="function")throw Error(V(150));if(h=E.call(h),h==null)throw Error(V(151));for(var T=E=null,O=v,_=v=0,L=null,z=h.next();O!==null&&!z.done;_++,z=h.next()){O.index>_?(L=O,O=null):L=O.sibling;var H=g(m,O,z.value,j);if(H===null){O===null&&(O=L);break}e&&O&&H.alternate===null&&t(m,O),v=i(H,v,_),T===null?E=H:T.sibling=H,T=H,O=L}if(z.done)return n(m,O),Ce&&tr(m,_),E;if(O===null){for(;!z.done;_++,z=h.next())z=p(m,z.value,j),z!==null&&(v=i(z,v,_),T===null?E=z:T.sibling=z,T=z);return Ce&&tr(m,_),E}for(O=s(m,O);!z.done;_++,z=h.next())z=N(O,m,_,z.value,j),z!==null&&(e&&z.alternate!==null&&O.delete(z.key===null?_:z.key),v=i(z,v,_),T===null?E=z:T.sibling=z,T=z);return e&&O.forEach(function(te){return t(m,te)}),Ce&&tr(m,_),E}function b(m,v,h,j){if(typeof h=="object"&&h!==null&&h.type===Rr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case qo:e:{for(var E=h.key,T=v;T!==null;){if(T.key===E){if(E=h.type,E===Rr){if(T.tag===7){n(m,T.sibling),v=o(T,h.props.children),v.return=m,m=v;break e}}else if(T.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Nn&&Nf(E)===T.type){n(m,T.sibling),v=o(T,h.props),v.ref=_s(m,T,h),v.return=m,m=v;break e}n(m,T);break}else t(m,T);T=T.sibling}h.type===Rr?(v=fr(h.props.children,m.mode,j,h.key),v.return=m,m=v):(j=bi(h.type,h.key,h.props,null,m.mode,j),j.ref=_s(m,v,h),j.return=m,m=j)}return a(m);case Ar:e:{for(T=h.key;v!==null;){if(v.key===T)if(v.tag===4&&v.stateNode.containerInfo===h.containerInfo&&v.stateNode.implementation===h.implementation){n(m,v.sibling),v=o(v,h.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Kl(h,m.mode,j),v.return=m,m=v}return a(m);case Nn:return T=h._init,b(m,v,T(h._payload),j)}if(Is(h))return x(m,v,h,j);if(ws(h))return C(m,v,h,j);ti(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,v!==null&&v.tag===6?(n(m,v.sibling),v=o(v,h),v.return=m,m=v):(n(m,v),v=Hl(h,m.mode,j),v.return=m,m=v),a(m)):n(m,v)}return b}var os=Qm(!0),Xm=Qm(!1),Ji=Hn(null),Zi=null,$r=null,Gd=null;function Qd(){Gd=$r=Zi=null}function Xd(e){var t=Ji.current;Ne(Ji),e._currentValue=t}function zc(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function es(e,t){Zi=e,Gd=$r=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Gd!==e)if(e={context:e,memoizedValue:t,next:null},$r===null){if(Zi===null)throw Error(V(308));$r=e,Zi.dependencies={lanes:0,firstContext:e}}else $r=$r.next=e;return t}var lr=null;function Jd(e){lr===null?lr=[e]:lr.push(e)}function Jm(e,t,n,s){var o=t.interleaved;return o===null?(n.next=n,Jd(t)):(n.next=o.next,o.next=n),t.interleaved=n,dn(e,s)}function dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Cn=!1;function Zd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,pe&2){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,dn(e,n)}return o=s.interleaved,o===null?(t.next=t,Jd(s)):(t.next=o.next,o.next=t),s.interleaved=t,dn(e,n)}function gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Bd(e,n)}}function Cf(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ea(e,t,n,s){var o=e.updateQueue;Cn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var d=l,c=d.next;d.next=null,a===null?i=c:a.next=c,a=d;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==a&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=d))}if(i!==null){var p=o.baseState;a=0,u=c=d=null,l=i;do{var g=l.lane,N=l.eventTime;if((s&g)===g){u!==null&&(u=u.next={eventTime:N,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,C=l;switch(g=t,N=n,C.tag){case 1:if(x=C.payload,typeof x=="function"){p=x.call(N,p,g);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=C.payload,g=typeof x=="function"?x.call(N,p,g):x,g==null)break e;p=Se({},p,g);break e;case 2:Cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else N={eventTime:N,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=N,d=p):u=u.next=N,a|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(u===null&&(d=p),o.baseState=d,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);jr|=a,e.lanes=a,e.memoizedState=p}}function bf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],o=s.callback;if(o!==null){if(s.callback=null,s=n,typeof o!="function")throw Error(V(191,o));o.call(s)}}}var To={},Xt=Hn(To),fo=Hn(To),po=Hn(To);function cr(e){if(e===To)throw Error(V(174));return e}function eu(e,t){switch(xe(po,t),xe(fo,e),xe(Xt,To),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jc(t,e)}Ne(Xt),xe(Xt,t)}function is(){Ne(Xt),Ne(fo),Ne(po)}function eh(e){cr(po.current);var t=cr(Xt.current),n=jc(t,e.type);t!==n&&(xe(fo,e),xe(Xt,n))}function tu(e){fo.current===e&&(Ne(Xt),Ne(fo))}var we=Hn(0);function ta(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zl=[];function nu(){for(var e=0;e<zl.length;e++)zl[e]._workInProgressVersionPrimary=null;zl.length=0}var xi=mn.ReactCurrentDispatcher,$l=mn.ReactCurrentBatchConfig,yr=0,ke=null,Ae=null,Fe=null,na=!1,Hs=!1,mo=0,By=0;function Ue(){throw Error(V(321))}function ru(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function su(e,t,n,s,o,i){if(yr=i,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xi.current=e===null||e.memoizedState===null?Wy:Uy,e=n(s,o),Hs){i=0;do{if(Hs=!1,mo=0,25<=i)throw Error(V(301));i+=1,Fe=Ae=null,t.updateQueue=null,xi.current=qy,e=n(s,o)}while(Hs)}if(xi.current=ra,t=Ae!==null&&Ae.next!==null,yr=0,Fe=Ae=ke=null,na=!1,t)throw Error(V(300));return e}function ou(){var e=mo!==0;return mo=0,e}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?ke.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Pt(){if(Ae===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Fe===null?ke.memoizedState:Fe.next;if(t!==null)Fe=t,Ae=e;else{if(e===null)throw Error(V(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Fe===null?ke.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function ho(e,t){return typeof t=="function"?t(e):t}function Wl(e){var t=Pt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var s=Ae,o=s.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}s.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,s=s.baseState;var l=a=null,d=null,c=i;do{var u=c.lane;if((yr&u)===u)d!==null&&(d=d.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),s=c.hasEagerState?c.eagerState:e(s,c.action);else{var p={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};d===null?(l=d=p,a=s):d=d.next=p,ke.lanes|=u,jr|=u}c=c.next}while(c!==null&&c!==i);d===null?a=s:d.next=l,Bt(s,t.memoizedState)||(st=!0),t.memoizedState=s,t.baseState=a,t.baseQueue=d,n.lastRenderedState=s}if(e=n.interleaved,e!==null){o=e;do i=o.lane,ke.lanes|=i,jr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ul(e){var t=Pt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var s=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);Bt(i,t.memoizedState)||(st=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,s]}function th(){}function nh(e,t){var n=ke,s=Pt(),o=t(),i=!Bt(s.memoizedState,o);if(i&&(s.memoizedState=o,st=!0),s=s.queue,iu(oh.bind(null,n,s,e),[e]),s.getSnapshot!==t||i||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,vo(9,sh.bind(null,n,s,o,t),void 0,null),De===null)throw Error(V(349));yr&30||rh(n,t,o)}return o}function rh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sh(e,t,n,s){t.value=n,t.getSnapshot=s,ih(t)&&ah(e)}function oh(e,t,n){return n(function(){ih(t)&&ah(e)})}function ih(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function ah(e){var t=dn(e,1);t!==null&&Ft(t,e,1,-1)}function wf(e){var t=Ht();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ho,lastRenderedState:e},t.queue=e,e=e.dispatch=$y.bind(null,ke,e),[t.memoizedState,e]}function vo(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function lh(){return Pt().memoizedState}function yi(e,t,n,s){var o=Ht();ke.flags|=e,o.memoizedState=vo(1|t,n,void 0,s===void 0?null:s)}function Aa(e,t,n,s){var o=Pt();s=s===void 0?null:s;var i=void 0;if(Ae!==null){var a=Ae.memoizedState;if(i=a.destroy,s!==null&&ru(s,a.deps)){o.memoizedState=vo(t,n,i,s);return}}ke.flags|=e,o.memoizedState=vo(1|t,n,i,s)}function kf(e,t){return yi(8390656,8,e,t)}function iu(e,t){return Aa(2048,8,e,t)}function ch(e,t){return Aa(4,2,e,t)}function dh(e,t){return Aa(4,4,e,t)}function uh(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fh(e,t,n){return n=n!=null?n.concat([e]):null,Aa(4,4,uh.bind(null,t,e),n)}function au(){}function ph(e,t){var n=Pt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&ru(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function mh(e,t){var n=Pt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&ru(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function hh(e,t,n){return yr&21?(Bt(n,t)||(n=jm(),ke.lanes|=n,jr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function My(e,t){var n=ve;ve=n!==0&&4>n?n:4,e(!0);var s=$l.transition;$l.transition={};try{e(!1),t()}finally{ve=n,$l.transition=s}}function vh(){return Pt().memoizedState}function zy(e,t,n){var s=Mn(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},gh(e))xh(t,n);else if(n=Jm(e,t,n,s),n!==null){var o=Xe();Ft(n,e,s,o),yh(n,t,s)}}function $y(e,t,n){var s=Mn(e),o={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(gh(e))xh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Bt(l,a)){var d=t.interleaved;d===null?(o.next=o,Jd(t)):(o.next=d.next,d.next=o),t.interleaved=o;return}}catch{}finally{}n=Jm(e,t,o,s),n!==null&&(o=Xe(),Ft(n,e,s,o),yh(n,t,s))}}function gh(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function xh(e,t){Hs=na=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yh(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Bd(e,n)}}var ra={readContext:Et,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},Wy={readContext:Et,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:kf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yi(4194308,4,uh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yi(4194308,4,e,t)},useInsertionEffect:function(e,t){return yi(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Ht();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=zy.bind(null,ke,e),[s.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:wf,useDebugValue:au,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=wf(!1),t=e[0];return e=My.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=ke,o=Ht();if(Ce){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),De===null)throw Error(V(349));yr&30||rh(s,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,kf(oh.bind(null,s,i,e),[e]),s.flags|=2048,vo(9,sh.bind(null,s,i,n,t),void 0,null),n},useId:function(){var e=Ht(),t=De.identifierPrefix;if(Ce){var n=on,s=sn;n=(s&~(1<<32-It(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=mo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=By++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Uy={readContext:Et,useCallback:ph,useContext:Et,useEffect:iu,useImperativeHandle:fh,useInsertionEffect:ch,useLayoutEffect:dh,useMemo:mh,useReducer:Wl,useRef:lh,useState:function(){return Wl(ho)},useDebugValue:au,useDeferredValue:function(e){var t=Pt();return hh(t,Ae.memoizedState,e)},useTransition:function(){var e=Wl(ho)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:th,useSyncExternalStore:nh,useId:vh,unstable_isNewReconciler:!1},qy={readContext:Et,useCallback:ph,useContext:Et,useEffect:iu,useImperativeHandle:fh,useInsertionEffect:ch,useLayoutEffect:dh,useMemo:mh,useReducer:Ul,useRef:lh,useState:function(){return Ul(ho)},useDebugValue:au,useDeferredValue:function(e){var t=Pt();return Ae===null?t.memoizedState=e:hh(t,Ae.memoizedState,e)},useTransition:function(){var e=Ul(ho)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:th,useSyncExternalStore:nh,useId:vh,unstable_isNewReconciler:!1};function Tt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function $c(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ra={isMounted:function(e){return(e=e._reactInternals)?Sr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Xe(),o=Mn(e),i=an(s,o);i.payload=t,n!=null&&(i.callback=n),t=Ln(e,i,o),t!==null&&(Ft(t,e,o,s),gi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Xe(),o=Mn(e),i=an(s,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ln(e,i,o),t!==null&&(Ft(t,e,o,s),gi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xe(),s=Mn(e),o=an(n,s);o.tag=2,t!=null&&(o.callback=t),t=Ln(e,o,s),t!==null&&(Ft(t,e,s,n),gi(t,e,s))}};function Sf(e,t,n,s,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,i,a):t.prototype&&t.prototype.isPureReactComponent?!ao(n,s)||!ao(o,i):!0}function jh(e,t,n){var s=!1,o=Un,i=t.contextType;return typeof i=="object"&&i!==null?i=Et(i):(o=it(t)?gr:He.current,s=t.contextTypes,i=(s=s!=null)?rs(e,o):Un),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ra,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Ef(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Ra.enqueueReplaceState(t,t.state,null)}function Wc(e,t,n,s){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Zd(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Et(i):(i=it(t)?gr:He.current,o.context=rs(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&($c(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ra.enqueueReplaceState(o,o.state,null),ea(e,n,o,s),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function as(e,t){try{var n="",s=t;do n+=xx(s),s=s.return;while(s);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function ql(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Uc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Vy=typeof WeakMap=="function"?WeakMap:Map;function Nh(e,t,n){n=an(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){oa||(oa=!0,Zc=s),Uc(e,t)},n}function Ch(e,t,n){n=an(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var o=t.value;n.payload=function(){return s(o)},n.callback=function(){Uc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Uc(e,t),typeof s!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Pf(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Vy;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(n)||(o.add(n),e=oj.bind(null,e,t,n),t.then(e,e))}function _f(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Tf(e,t,n,s,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=an(-1,1),t.tag=2,Ln(n,t,1))),n.lanes|=1),e)}var Hy=mn.ReactCurrentOwner,st=!1;function Ge(e,t,n,s){t.child=e===null?Xm(t,null,n,s):os(t,e.child,n,s)}function Of(e,t,n,s,o){n=n.render;var i=t.ref;return es(t,o),s=su(e,t,n,s,i,o),n=ou(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,un(e,t,o)):(Ce&&n&&Hd(t),t.flags|=1,Ge(e,t,s,o),t.child)}function Af(e,t,n,s,o){if(e===null){var i=n.type;return typeof i=="function"&&!hu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,bh(e,t,i,s,o)):(e=bi(n.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:ao,n(a,s)&&e.ref===t.ref)return un(e,t,o)}return t.flags|=1,e=zn(i,s),e.ref=t.ref,e.return=t,t.child=e}function bh(e,t,n,s,o){if(e!==null){var i=e.memoizedProps;if(ao(i,s)&&e.ref===t.ref)if(st=!1,t.pendingProps=s=i,(e.lanes&o)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,un(e,t,o)}return qc(e,t,n,s,o)}function wh(e,t,n){var s=t.pendingProps,o=s.children,i=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xe(Ur,dt),dt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xe(Ur,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=i!==null?i.baseLanes:n,xe(Ur,dt),dt|=s}else i!==null?(s=i.baseLanes|n,t.memoizedState=null):s=n,xe(Ur,dt),dt|=s;return Ge(e,t,o,n),t.child}function kh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function qc(e,t,n,s,o){var i=it(n)?gr:He.current;return i=rs(t,i),es(t,o),n=su(e,t,n,s,i,o),s=ou(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,un(e,t,o)):(Ce&&s&&Hd(t),t.flags|=1,Ge(e,t,n,o),t.child)}function Rf(e,t,n,s,o){if(it(n)){var i=!0;Gi(t)}else i=!1;if(es(t,o),t.stateNode===null)ji(e,t),jh(t,n,s),Wc(t,n,s,o),s=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var d=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Et(c):(c=it(n)?gr:He.current,c=rs(t,c));var u=n.getDerivedStateFromProps,p=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==s||d!==c)&&Ef(t,a,s,c),Cn=!1;var g=t.memoizedState;a.state=g,ea(t,s,a,o),d=t.memoizedState,l!==s||g!==d||ot.current||Cn?(typeof u=="function"&&($c(t,n,u,s),d=t.memoizedState),(l=Cn||Sf(t,n,l,s,g,d,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=d),a.props=s,a.state=d,a.context=c,s=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{a=t.stateNode,Zm(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Tt(t.type,l),a.props=c,p=t.pendingProps,g=a.context,d=n.contextType,typeof d=="object"&&d!==null?d=Et(d):(d=it(n)?gr:He.current,d=rs(t,d));var N=n.getDerivedStateFromProps;(u=typeof N=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||g!==d)&&Ef(t,a,s,d),Cn=!1,g=t.memoizedState,a.state=g,ea(t,s,a,o);var x=t.memoizedState;l!==p||g!==x||ot.current||Cn?(typeof N=="function"&&($c(t,n,N,s),x=t.memoizedState),(c=Cn||Sf(t,n,c,s,g,x,d)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(s,x,d),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(s,x,d)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=x),a.props=s,a.state=x,a.context=d,s=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),s=!1)}return Vc(e,t,n,s,i,o)}function Vc(e,t,n,s,o,i){kh(e,t);var a=(t.flags&128)!==0;if(!s&&!a)return o&&xf(t,n,!1),un(e,t,i);s=t.stateNode,Hy.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&a?(t.child=os(t,e.child,null,i),t.child=os(t,null,l,i)):Ge(e,t,l,i),t.memoizedState=s.state,o&&xf(t,n,!0),t.child}function Sh(e){var t=e.stateNode;t.pendingContext?gf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gf(e,t.context,!1),eu(e,t.containerInfo)}function If(e,t,n,s,o){return ss(),Yd(o),t.flags|=256,Ge(e,t,n,s),t.child}var Hc={dehydrated:null,treeContext:null,retryLane:0};function Kc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Eh(e,t,n){var s=t.pendingProps,o=we.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),xe(we,o&1),e===null)return Mc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=s.children,e=s.fallback,i?(s=t.mode,i=t.child,a={mode:"hidden",children:a},!(s&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Da(a,s,0,null),e=fr(e,s,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Kc(n),t.memoizedState=Hc,e):lu(t,a));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return Ky(e,t,a,s,l,o,n);if(i){i=s.fallback,a=t.mode,o=e.child,l=o.sibling;var d={mode:"hidden",children:s.children};return!(a&1)&&t.child!==o?(s=t.child,s.childLanes=0,s.pendingProps=d,t.deletions=null):(s=zn(o,d),s.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=zn(l,i):(i=fr(i,a,n,null),i.flags|=2),i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,a=e.child.memoizedState,a=a===null?Kc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Hc,s}return i=e.child,e=i.sibling,s=zn(i,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function lu(e,t){return t=Da({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ni(e,t,n,s){return s!==null&&Yd(s),os(t,e.child,null,n),e=lu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ky(e,t,n,s,o,i,a){if(n)return t.flags&256?(t.flags&=-257,s=ql(Error(V(422))),ni(e,t,a,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=s.fallback,o=t.mode,s=Da({mode:"visible",children:s.children},o,0,null),i=fr(i,o,a,null),i.flags|=2,s.return=t,i.return=t,s.sibling=i,t.child=s,t.mode&1&&os(t,e.child,null,a),t.child.memoizedState=Kc(a),t.memoizedState=Hc,i);if(!(t.mode&1))return ni(e,t,a,null);if(o.data==="$!"){if(s=o.nextSibling&&o.nextSibling.dataset,s)var l=s.dgst;return s=l,i=Error(V(419)),s=ql(i,s,void 0),ni(e,t,a,s)}if(l=(a&e.childLanes)!==0,st||l){if(s=De,s!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(s.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,dn(e,o),Ft(s,e,o,-1))}return mu(),s=ql(Error(V(421))),ni(e,t,a,s)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=ij.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ut=Dn(o.nextSibling),ht=t,Ce=!0,At=null,e!==null&&(bt[wt++]=sn,bt[wt++]=on,bt[wt++]=xr,sn=e.id,on=e.overflow,xr=t),t=lu(t,s.children),t.flags|=4096,t)}function Ff(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),zc(e.return,t,n)}function Vl(e,t,n,s,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=o)}function Ph(e,t,n){var s=t.pendingProps,o=s.revealOrder,i=s.tail;if(Ge(e,t,s.children,n),s=we.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ff(e,n,t);else if(e.tag===19)Ff(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(xe(we,s),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ta(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ta(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vl(t,!0,n,null,i);break;case"together":Vl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ji(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),jr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=zn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Yy(e,t,n){switch(t.tag){case 3:Sh(t),ss();break;case 5:eh(t);break;case 1:it(t.type)&&Gi(t);break;case 4:eu(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,o=t.memoizedProps.value;xe(Ji,s._currentValue),s._currentValue=o;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(xe(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?Eh(e,t,n):(xe(we,we.current&1),e=un(e,t,n),e!==null?e.sibling:null);xe(we,we.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return Ph(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xe(we,we.current),s)break;return null;case 22:case 23:return t.lanes=0,wh(e,t,n)}return un(e,t,n)}var _h,Yc,Th,Oh;_h=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Yc=function(){};Th=function(e,t,n,s){var o=e.memoizedProps;if(o!==s){e=t.stateNode,cr(Xt.current);var i=null;switch(n){case"input":o=vc(e,o),s=vc(e,s),i=[];break;case"select":o=Se({},o,{value:void 0}),s=Se({},s,{value:void 0}),i=[];break;case"textarea":o=yc(e,o),s=yc(e,s),i=[];break;default:typeof o.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Ki)}Nc(n,s);var a;n=null;for(c in o)if(!s.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(eo.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in s){var d=s[c];if(l=o!=null?o[c]:void 0,s.hasOwnProperty(c)&&d!==l&&(d!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||d&&d.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in d)d.hasOwnProperty(a)&&l[a]!==d[a]&&(n||(n={}),n[a]=d[a])}else n||(i||(i=[]),i.push(c,n)),n=d;else c==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,l=l?l.__html:void 0,d!=null&&l!==d&&(i=i||[]).push(c,d)):c==="children"?typeof d!="string"&&typeof d!="number"||(i=i||[]).push(c,""+d):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(eo.hasOwnProperty(c)?(d!=null&&c==="onScroll"&&je("scroll",e),i||l===d||(i=[])):(i=i||[]).push(c,d))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Oh=function(e,t,n,s){n!==s&&(t.flags|=4)};function Ts(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&14680064,s|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Gy(e,t,n){var s=t.pendingProps;switch(Kd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return it(t.type)&&Yi(),qe(t),null;case 3:return s=t.stateNode,is(),Ne(ot),Ne(He),nu(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(ei(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,At!==null&&(nd(At),At=null))),Yc(e,t),qe(t),null;case 5:tu(t);var o=cr(po.current);if(n=t.type,e!==null&&t.stateNode!=null)Th(e,t,n,s,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(V(166));return qe(t),null}if(e=cr(Xt.current),ei(t)){s=t.stateNode,n=t.type;var i=t.memoizedProps;switch(s[Yt]=t,s[uo]=i,e=(t.mode&1)!==0,n){case"dialog":je("cancel",s),je("close",s);break;case"iframe":case"object":case"embed":je("load",s);break;case"video":case"audio":for(o=0;o<Ds.length;o++)je(Ds[o],s);break;case"source":je("error",s);break;case"img":case"image":case"link":je("error",s),je("load",s);break;case"details":je("toggle",s);break;case"input":Uu(s,i),je("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!i.multiple},je("invalid",s);break;case"textarea":Vu(s,i),je("invalid",s)}Nc(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?s.textContent!==l&&(i.suppressHydrationWarning!==!0&&Zo(s.textContent,l,e),o=["children",l]):typeof l=="number"&&s.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Zo(s.textContent,l,e),o=["children",""+l]):eo.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&je("scroll",s)}switch(n){case"input":Vo(s),qu(s,i,!0);break;case"textarea":Vo(s),Hu(s);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(s.onclick=Ki)}s=o,t.updateQueue=s,s!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=om(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=a.createElement(n,{is:s.is}):(e=a.createElement(n),n==="select"&&(a=e,s.multiple?a.multiple=!0:s.size&&(a.size=s.size))):e=a.createElementNS(e,n),e[Yt]=t,e[uo]=s,_h(e,t,!1,!1),t.stateNode=e;e:{switch(a=Cc(n,s),n){case"dialog":je("cancel",e),je("close",e),o=s;break;case"iframe":case"object":case"embed":je("load",e),o=s;break;case"video":case"audio":for(o=0;o<Ds.length;o++)je(Ds[o],e);o=s;break;case"source":je("error",e),o=s;break;case"img":case"image":case"link":je("error",e),je("load",e),o=s;break;case"details":je("toggle",e),o=s;break;case"input":Uu(e,s),o=vc(e,s),je("invalid",e);break;case"option":o=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},o=Se({},s,{value:void 0}),je("invalid",e);break;case"textarea":Vu(e,s),o=yc(e,s),je("invalid",e);break;default:o=s}Nc(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var d=l[i];i==="style"?lm(e,d):i==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&im(e,d)):i==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&to(e,d):typeof d=="number"&&to(e,""+d):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(eo.hasOwnProperty(i)?d!=null&&i==="onScroll"&&je("scroll",e):d!=null&&Ad(e,i,d,a))}switch(n){case"input":Vo(e),qu(e,s,!1);break;case"textarea":Vo(e),Hu(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Wn(s.value));break;case"select":e.multiple=!!s.multiple,i=s.value,i!=null?Qr(e,!!s.multiple,i,!1):s.defaultValue!=null&&Qr(e,!!s.multiple,s.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ki)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)Oh(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(V(166));if(n=cr(po.current),cr(Xt.current),ei(t)){if(s=t.stateNode,n=t.memoizedProps,s[Yt]=t,(i=s.nodeValue!==n)&&(e=ht,e!==null))switch(e.tag){case 3:Zo(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Zo(s.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Yt]=t,t.stateNode=s}return qe(t),null;case 13:if(Ne(we),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ce&&ut!==null&&t.mode&1&&!(t.flags&128))Gm(),ss(),t.flags|=98560,i=!1;else if(i=ei(t),s!==null&&s.dehydrated!==null){if(e===null){if(!i)throw Error(V(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(V(317));i[Yt]=t}else ss(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else At!==null&&(nd(At),At=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||we.current&1?Re===0&&(Re=3):mu())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return is(),Yc(e,t),e===null&&lo(t.stateNode.containerInfo),qe(t),null;case 10:return Xd(t.type._context),qe(t),null;case 17:return it(t.type)&&Yi(),qe(t),null;case 19:if(Ne(we),i=t.memoizedState,i===null)return qe(t),null;if(s=(t.flags&128)!==0,a=i.rendering,a===null)if(s)Ts(i,!1);else{if(Re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ta(e),a!==null){for(t.flags|=128,Ts(i,!1),s=a.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)i=n,e=s,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xe(we,we.current&1|2),t.child}e=e.sibling}i.tail!==null&&Te()>ls&&(t.flags|=128,s=!0,Ts(i,!1),t.lanes=4194304)}else{if(!s)if(e=ta(a),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ts(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ce)return qe(t),null}else 2*Te()-i.renderingStartTime>ls&&n!==1073741824&&(t.flags|=128,s=!0,Ts(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Te(),t.sibling=null,n=we.current,xe(we,s?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return pu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?dt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function Qy(e,t){switch(Kd(t),t.tag){case 1:return it(t.type)&&Yi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return is(),Ne(ot),Ne(He),nu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tu(t),null;case 13:if(Ne(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));ss()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(we),null;case 4:return is(),null;case 10:return Xd(t.type._context),null;case 22:case 23:return pu(),null;case 24:return null;default:return null}}var ri=!1,Ve=!1,Xy=typeof WeakSet=="function"?WeakSet:Set,J=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Ee(e,t,s)}else n.current=null}function Gc(e,t,n){try{n()}catch(s){Ee(e,t,s)}}var Df=!1;function Jy(e,t){if(Ac=qi,e=Dm(),Vd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var o=s.anchorOffset,i=s.focusNode;s=s.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,d=-1,c=0,u=0,p=e,g=null;t:for(;;){for(var N;p!==n||o!==0&&p.nodeType!==3||(l=a+o),p!==i||s!==0&&p.nodeType!==3||(d=a+s),p.nodeType===3&&(a+=p.nodeValue.length),(N=p.firstChild)!==null;)g=p,p=N;for(;;){if(p===e)break t;if(g===n&&++c===o&&(l=a),g===i&&++u===s&&(d=a),(N=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=N}n=l===-1||d===-1?null:{start:l,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rc={focusedElem:e,selectionRange:n},qi=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var C=x.memoizedProps,b=x.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?C:Tt(t.type,C),b);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(j){Ee(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return x=Df,Df=!1,x}function Ks(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var o=s=s.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Gc(t,n,i)}o=o.next}while(o!==s)}}function Ia(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Qc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ah(e){var t=e.alternate;t!==null&&(e.alternate=null,Ah(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[uo],delete t[Dc],delete t[Iy],delete t[Fy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rh(e){return e.tag===5||e.tag===3||e.tag===4}function Lf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ki));else if(s!==4&&(e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Jc(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Jc(e,t,n),e=e.sibling;e!==null;)Jc(e,t,n),e=e.sibling}var ze=null,Ot=!1;function yn(e,t,n){for(n=n.child;n!==null;)Ih(e,t,n),n=n.sibling}function Ih(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Sa,n)}catch{}switch(n.tag){case 5:Ve||Wr(n,t);case 6:var s=ze,o=Ot;ze=null,yn(e,t,n),ze=s,Ot=o,ze!==null&&(Ot?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Ot?(e=ze,n=n.stateNode,e.nodeType===8?Bl(e.parentNode,n):e.nodeType===1&&Bl(e,n),oo(e)):Bl(ze,n.stateNode));break;case 4:s=ze,o=Ot,ze=n.stateNode.containerInfo,Ot=!0,yn(e,t,n),ze=s,Ot=o;break;case 0:case 11:case 14:case 15:if(!Ve&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){o=s=s.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Gc(n,t,a),o=o.next}while(o!==s)}yn(e,t,n);break;case 1:if(!Ve&&(Wr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){Ee(n,t,l)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(Ve=(s=Ve)||n.memoizedState!==null,yn(e,t,n),Ve=s):yn(e,t,n);break;default:yn(e,t,n)}}function Bf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Xy),t.forEach(function(s){var o=aj.bind(null,e,s);n.has(s)||(n.add(s),s.then(o,o))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var o=n[s];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:ze=l.stateNode,Ot=!1;break e;case 3:ze=l.stateNode.containerInfo,Ot=!0;break e;case 4:ze=l.stateNode.containerInfo,Ot=!0;break e}l=l.return}if(ze===null)throw Error(V(160));Ih(i,a,o),ze=null,Ot=!1;var d=o.alternate;d!==null&&(d.return=null),o.return=null}catch(c){Ee(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Fh(t,e),t=t.sibling}function Fh(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),Vt(e),s&4){try{Ks(3,e,e.return),Ia(3,e)}catch(C){Ee(e,e.return,C)}try{Ks(5,e,e.return)}catch(C){Ee(e,e.return,C)}}break;case 1:_t(t,e),Vt(e),s&512&&n!==null&&Wr(n,n.return);break;case 5:if(_t(t,e),Vt(e),s&512&&n!==null&&Wr(n,n.return),e.flags&32){var o=e.stateNode;try{to(o,"")}catch(C){Ee(e,e.return,C)}}if(s&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&rm(o,i),Cc(l,a);var c=Cc(l,i);for(a=0;a<d.length;a+=2){var u=d[a],p=d[a+1];u==="style"?lm(o,p):u==="dangerouslySetInnerHTML"?im(o,p):u==="children"?to(o,p):Ad(o,u,p,c)}switch(l){case"input":gc(o,i);break;case"textarea":sm(o,i);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var N=i.value;N!=null?Qr(o,!!i.multiple,N,!1):g!==!!i.multiple&&(i.defaultValue!=null?Qr(o,!!i.multiple,i.defaultValue,!0):Qr(o,!!i.multiple,i.multiple?[]:"",!1))}o[uo]=i}catch(C){Ee(e,e.return,C)}}break;case 6:if(_t(t,e),Vt(e),s&4){if(e.stateNode===null)throw Error(V(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(C){Ee(e,e.return,C)}}break;case 3:if(_t(t,e),Vt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{oo(t.containerInfo)}catch(C){Ee(e,e.return,C)}break;case 4:_t(t,e),Vt(e);break;case 13:_t(t,e),Vt(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(uu=Te())),s&4&&Bf(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(c=Ve)||u,_t(t,e),Ve=c):_t(t,e),Vt(e),s&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(J=e,u=e.child;u!==null;){for(p=J=u;J!==null;){switch(g=J,N=g.child,g.tag){case 0:case 11:case 14:case 15:Ks(4,g,g.return);break;case 1:Wr(g,g.return);var x=g.stateNode;if(typeof x.componentWillUnmount=="function"){s=g,n=g.return;try{t=s,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(C){Ee(s,n,C)}}break;case 5:Wr(g,g.return);break;case 22:if(g.memoizedState!==null){zf(p);continue}}N!==null?(N.return=g,J=N):zf(p)}u=u.sibling}e:for(u=null,p=e;;){if(p.tag===5){if(u===null){u=p;try{o=p.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=p.stateNode,d=p.memoizedProps.style,a=d!=null&&d.hasOwnProperty("display")?d.display:null,l.style.display=am("display",a))}catch(C){Ee(e,e.return,C)}}}else if(p.tag===6){if(u===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(C){Ee(e,e.return,C)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:_t(t,e),Vt(e),s&4&&Bf(e);break;case 21:break;default:_t(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rh(n)){var s=n;break e}n=n.return}throw Error(V(160))}switch(s.tag){case 5:var o=s.stateNode;s.flags&32&&(to(o,""),s.flags&=-33);var i=Lf(e);Jc(e,i,o);break;case 3:case 4:var a=s.stateNode.containerInfo,l=Lf(e);Xc(e,l,a);break;default:throw Error(V(161))}}catch(d){Ee(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Zy(e,t,n){J=e,Dh(e)}function Dh(e,t,n){for(var s=(e.mode&1)!==0;J!==null;){var o=J,i=o.child;if(o.tag===22&&s){var a=o.memoizedState!==null||ri;if(!a){var l=o.alternate,d=l!==null&&l.memoizedState!==null||Ve;l=ri;var c=Ve;if(ri=a,(Ve=d)&&!c)for(J=o;J!==null;)a=J,d=a.child,a.tag===22&&a.memoizedState!==null?$f(o):d!==null?(d.return=a,J=d):$f(o);for(;i!==null;)J=i,Dh(i),i=i.sibling;J=o,ri=l,Ve=c}Mf(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,J=i):Mf(e)}}function Mf(e){for(;J!==null;){var t=J;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ve||Ia(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Ve)if(n===null)s.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Tt(t.type,n.memoizedProps);s.componentDidUpdate(o,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&bf(t,i,s);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}bf(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&oo(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}Ve||t.flags&512&&Qc(t)}catch(g){Ee(t,t.return,g)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function zf(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function $f(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ia(4,t)}catch(d){Ee(t,n,d)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var o=t.return;try{s.componentDidMount()}catch(d){Ee(t,o,d)}}var i=t.return;try{Qc(t)}catch(d){Ee(t,i,d)}break;case 5:var a=t.return;try{Qc(t)}catch(d){Ee(t,a,d)}}}catch(d){Ee(t,t.return,d)}if(t===e){J=null;break}var l=t.sibling;if(l!==null){l.return=t.return,J=l;break}J=t.return}}var ej=Math.ceil,sa=mn.ReactCurrentDispatcher,cu=mn.ReactCurrentOwner,St=mn.ReactCurrentBatchConfig,pe=0,De=null,Oe=null,$e=0,dt=0,Ur=Hn(0),Re=0,go=null,jr=0,Fa=0,du=0,Ys=null,rt=null,uu=0,ls=1/0,tn=null,oa=!1,Zc=null,Bn=null,si=!1,Tn=null,ia=0,Gs=0,ed=null,Ni=-1,Ci=0;function Xe(){return pe&6?Te():Ni!==-1?Ni:Ni=Te()}function Mn(e){return e.mode&1?pe&2&&$e!==0?$e&-$e:Ly.transition!==null?(Ci===0&&(Ci=jm()),Ci):(e=ve,e!==0||(e=window.event,e=e===void 0?16:Em(e.type)),e):1}function Ft(e,t,n,s){if(50<Gs)throw Gs=0,ed=null,Error(V(185));Eo(e,n,s),(!(pe&2)||e!==De)&&(e===De&&(!(pe&2)&&(Fa|=n),Re===4&&Pn(e,$e)),at(e,s),n===1&&pe===0&&!(t.mode&1)&&(ls=Te()+500,Oa&&Kn()))}function at(e,t){var n=e.callbackNode;Lx(e,t);var s=Ui(e,e===De?$e:0);if(s===0)n!==null&&Gu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Gu(n),t===1)e.tag===0?Dy(Wf.bind(null,e)):Hm(Wf.bind(null,e)),Ay(function(){!(pe&6)&&Kn()}),n=null;else{switch(Nm(s)){case 1:n=Ld;break;case 4:n=xm;break;case 16:n=Wi;break;case 536870912:n=ym;break;default:n=Wi}n=qh(n,Lh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Lh(e,t){if(Ni=-1,Ci=0,pe&6)throw Error(V(327));var n=e.callbackNode;if(ts()&&e.callbackNode!==n)return null;var s=Ui(e,e===De?$e:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=aa(e,s);else{t=s;var o=pe;pe|=2;var i=Mh();(De!==e||$e!==t)&&(tn=null,ls=Te()+500,ur(e,t));do try{rj();break}catch(l){Bh(e,l)}while(!0);Qd(),sa.current=i,pe=o,Oe!==null?t=0:(De=null,$e=0,t=Re)}if(t!==0){if(t===2&&(o=Ec(e),o!==0&&(s=o,t=td(e,o))),t===1)throw n=go,ur(e,0),Pn(e,s),at(e,Te()),n;if(t===6)Pn(e,s);else{if(o=e.current.alternate,!(s&30)&&!tj(o)&&(t=aa(e,s),t===2&&(i=Ec(e),i!==0&&(s=i,t=td(e,i))),t===1))throw n=go,ur(e,0),Pn(e,s),at(e,Te()),n;switch(e.finishedWork=o,e.finishedLanes=s,t){case 0:case 1:throw Error(V(345));case 2:nr(e,rt,tn);break;case 3:if(Pn(e,s),(s&130023424)===s&&(t=uu+500-Te(),10<t)){if(Ui(e,0)!==0)break;if(o=e.suspendedLanes,(o&s)!==s){Xe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Fc(nr.bind(null,e,rt,tn),t);break}nr(e,rt,tn);break;case 4:if(Pn(e,s),(s&4194240)===s)break;for(t=e.eventTimes,o=-1;0<s;){var a=31-It(s);i=1<<a,a=t[a],a>o&&(o=a),s&=~i}if(s=o,s=Te()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*ej(s/1960))-s,10<s){e.timeoutHandle=Fc(nr.bind(null,e,rt,tn),s);break}nr(e,rt,tn);break;case 5:nr(e,rt,tn);break;default:throw Error(V(329))}}}return at(e,Te()),e.callbackNode===n?Lh.bind(null,e):null}function td(e,t){var n=Ys;return e.current.memoizedState.isDehydrated&&(ur(e,t).flags|=256),e=aa(e,t),e!==2&&(t=rt,rt=n,t!==null&&nd(t)),e}function nd(e){rt===null?rt=e:rt.push.apply(rt,e)}function tj(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var o=n[s],i=o.getSnapshot;o=o.value;try{if(!Bt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pn(e,t){for(t&=~du,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-It(t),s=1<<n;e[n]=-1,t&=~s}}function Wf(e){if(pe&6)throw Error(V(327));ts();var t=Ui(e,0);if(!(t&1))return at(e,Te()),null;var n=aa(e,t);if(e.tag!==0&&n===2){var s=Ec(e);s!==0&&(t=s,n=td(e,s))}if(n===1)throw n=go,ur(e,0),Pn(e,t),at(e,Te()),n;if(n===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nr(e,rt,tn),at(e,Te()),null}function fu(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(ls=Te()+500,Oa&&Kn())}}function Nr(e){Tn!==null&&Tn.tag===0&&!(pe&6)&&ts();var t=pe;pe|=1;var n=St.transition,s=ve;try{if(St.transition=null,ve=1,e)return e()}finally{ve=s,St.transition=n,pe=t,!(pe&6)&&Kn()}}function pu(){dt=Ur.current,Ne(Ur)}function ur(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Oy(n)),Oe!==null)for(n=Oe.return;n!==null;){var s=n;switch(Kd(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Yi();break;case 3:is(),Ne(ot),Ne(He),nu();break;case 5:tu(s);break;case 4:is();break;case 13:Ne(we);break;case 19:Ne(we);break;case 10:Xd(s.type._context);break;case 22:case 23:pu()}n=n.return}if(De=e,Oe=e=zn(e.current,null),$e=dt=t,Re=0,go=null,du=Fa=jr=0,rt=Ys=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],s=n.interleaved,s!==null){n.interleaved=null;var o=s.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,s.next=a}n.pending=s}lr=null}return e}function Bh(e,t){do{var n=Oe;try{if(Qd(),xi.current=ra,na){for(var s=ke.memoizedState;s!==null;){var o=s.queue;o!==null&&(o.pending=null),s=s.next}na=!1}if(yr=0,Fe=Ae=ke=null,Hs=!1,mo=0,cu.current=null,n===null||n.return===null){Re=1,go=t,Oe=null;break}e:{var i=e,a=n.return,l=n,d=t;if(t=$e,l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var c=d,u=l,p=u.tag;if(!(u.mode&1)&&(p===0||p===11||p===15)){var g=u.alternate;g?(u.updateQueue=g.updateQueue,u.memoizedState=g.memoizedState,u.lanes=g.lanes):(u.updateQueue=null,u.memoizedState=null)}var N=_f(a);if(N!==null){N.flags&=-257,Tf(N,a,l,i,t),N.mode&1&&Pf(i,c,t),t=N,d=c;var x=t.updateQueue;if(x===null){var C=new Set;C.add(d),t.updateQueue=C}else x.add(d);break e}else{if(!(t&1)){Pf(i,c,t),mu();break e}d=Error(V(426))}}else if(Ce&&l.mode&1){var b=_f(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Tf(b,a,l,i,t),Yd(as(d,l));break e}}i=d=as(d,l),Re!==4&&(Re=2),Ys===null?Ys=[i]:Ys.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var m=Nh(i,d,t);Cf(i,m);break e;case 1:l=d;var v=i.type,h=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Bn===null||!Bn.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var j=Ch(i,l,t);Cf(i,j);break e}}i=i.return}while(i!==null)}$h(n)}catch(E){t=E,Oe===n&&n!==null&&(Oe=n=n.return);continue}break}while(!0)}function Mh(){var e=sa.current;return sa.current=ra,e===null?ra:e}function mu(){(Re===0||Re===3||Re===2)&&(Re=4),De===null||!(jr&268435455)&&!(Fa&268435455)||Pn(De,$e)}function aa(e,t){var n=pe;pe|=2;var s=Mh();(De!==e||$e!==t)&&(tn=null,ur(e,t));do try{nj();break}catch(o){Bh(e,o)}while(!0);if(Qd(),pe=n,sa.current=s,Oe!==null)throw Error(V(261));return De=null,$e=0,Re}function nj(){for(;Oe!==null;)zh(Oe)}function rj(){for(;Oe!==null&&!Px();)zh(Oe)}function zh(e){var t=Uh(e.alternate,e,dt);e.memoizedProps=e.pendingProps,t===null?$h(e):Oe=t,cu.current=null}function $h(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Qy(n,t),n!==null){n.flags&=32767,Oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Re=6,Oe=null;return}}else if(n=Gy(n,t,dt),n!==null){Oe=n;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);Re===0&&(Re=5)}function nr(e,t,n){var s=ve,o=St.transition;try{St.transition=null,ve=1,sj(e,t,n,s)}finally{St.transition=o,ve=s}return null}function sj(e,t,n,s){do ts();while(Tn!==null);if(pe&6)throw Error(V(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Bx(e,i),e===De&&(Oe=De=null,$e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||si||(si=!0,qh(Wi,function(){return ts(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=St.transition,St.transition=null;var a=ve;ve=1;var l=pe;pe|=4,cu.current=null,Jy(e,n),Fh(n,e),wy(Rc),qi=!!Ac,Rc=Ac=null,e.current=n,Zy(n),_x(),pe=l,ve=a,St.transition=i}else e.current=n;if(si&&(si=!1,Tn=e,ia=o),i=e.pendingLanes,i===0&&(Bn=null),Ax(n.stateNode),at(e,Te()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],s(o.value,{componentStack:o.stack,digest:o.digest});if(oa)throw oa=!1,e=Zc,Zc=null,e;return ia&1&&e.tag!==0&&ts(),i=e.pendingLanes,i&1?e===ed?Gs++:(Gs=0,ed=e):Gs=0,Kn(),null}function ts(){if(Tn!==null){var e=Nm(ia),t=St.transition,n=ve;try{if(St.transition=null,ve=16>e?16:e,Tn===null)var s=!1;else{if(e=Tn,Tn=null,ia=0,pe&6)throw Error(V(331));var o=pe;for(pe|=4,J=e.current;J!==null;){var i=J,a=i.child;if(J.flags&16){var l=i.deletions;if(l!==null){for(var d=0;d<l.length;d++){var c=l[d];for(J=c;J!==null;){var u=J;switch(u.tag){case 0:case 11:case 15:Ks(8,u,i)}var p=u.child;if(p!==null)p.return=u,J=p;else for(;J!==null;){u=J;var g=u.sibling,N=u.return;if(Ah(u),u===c){J=null;break}if(g!==null){g.return=N,J=g;break}J=N}}}var x=i.alternate;if(x!==null){var C=x.child;if(C!==null){x.child=null;do{var b=C.sibling;C.sibling=null,C=b}while(C!==null)}}J=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,J=a;else e:for(;J!==null;){if(i=J,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ks(9,i,i.return)}var m=i.sibling;if(m!==null){m.return=i.return,J=m;break e}J=i.return}}var v=e.current;for(J=v;J!==null;){a=J;var h=a.child;if(a.subtreeFlags&2064&&h!==null)h.return=a,J=h;else e:for(a=v;J!==null;){if(l=J,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ia(9,l)}}catch(E){Ee(l,l.return,E)}if(l===a){J=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,J=j;break e}J=l.return}}if(pe=o,Kn(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Sa,e)}catch{}s=!0}return s}finally{ve=n,St.transition=t}}return!1}function Uf(e,t,n){t=as(n,t),t=Nh(e,t,1),e=Ln(e,t,1),t=Xe(),e!==null&&(Eo(e,1,t),at(e,t))}function Ee(e,t,n){if(e.tag===3)Uf(e,e,n);else for(;t!==null;){if(t.tag===3){Uf(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Bn===null||!Bn.has(s))){e=as(n,e),e=Ch(t,e,1),t=Ln(t,e,1),e=Xe(),t!==null&&(Eo(t,1,e),at(t,e));break}}t=t.return}}function oj(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&n,De===e&&($e&n)===n&&(Re===4||Re===3&&($e&130023424)===$e&&500>Te()-uu?ur(e,0):du|=n),at(e,t)}function Wh(e,t){t===0&&(e.mode&1?(t=Yo,Yo<<=1,!(Yo&130023424)&&(Yo=4194304)):t=1);var n=Xe();e=dn(e,t),e!==null&&(Eo(e,t,n),at(e,n))}function ij(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wh(e,n)}function aj(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(V(314))}s!==null&&s.delete(t),Wh(e,n)}var Uh;Uh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,Yy(e,t,n);st=!!(e.flags&131072)}else st=!1,Ce&&t.flags&1048576&&Km(t,Xi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;ji(e,t),e=t.pendingProps;var o=rs(t,He.current);es(t,n),o=su(null,t,s,e,o,n);var i=ou();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,it(s)?(i=!0,Gi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Zd(t),o.updater=Ra,t.stateNode=o,o._reactInternals=t,Wc(t,s,e,n),t=Vc(null,t,s,!0,i,n)):(t.tag=0,Ce&&i&&Hd(t),Ge(null,t,o,n),t=t.child),t;case 16:s=t.elementType;e:{switch(ji(e,t),e=t.pendingProps,o=s._init,s=o(s._payload),t.type=s,o=t.tag=cj(s),e=Tt(s,e),o){case 0:t=qc(null,t,s,e,n);break e;case 1:t=Rf(null,t,s,e,n);break e;case 11:t=Of(null,t,s,e,n);break e;case 14:t=Af(null,t,s,Tt(s.type,e),n);break e}throw Error(V(306,s,""))}return t;case 0:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Tt(s,o),qc(e,t,s,o,n);case 1:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Tt(s,o),Rf(e,t,s,o,n);case 3:e:{if(Sh(t),e===null)throw Error(V(387));s=t.pendingProps,i=t.memoizedState,o=i.element,Zm(e,t),ea(t,s,null,n);var a=t.memoizedState;if(s=a.element,i.isDehydrated)if(i={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=as(Error(V(423)),t),t=If(e,t,s,n,o);break e}else if(s!==o){o=as(Error(V(424)),t),t=If(e,t,s,n,o);break e}else for(ut=Dn(t.stateNode.containerInfo.firstChild),ht=t,Ce=!0,At=null,n=Xm(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ss(),s===o){t=un(e,t,n);break e}Ge(e,t,s,n)}t=t.child}return t;case 5:return eh(t),e===null&&Mc(t),s=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Ic(s,o)?a=null:i!==null&&Ic(s,i)&&(t.flags|=32),kh(e,t),Ge(e,t,a,n),t.child;case 6:return e===null&&Mc(t),null;case 13:return Eh(e,t,n);case 4:return eu(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=os(t,null,s,n):Ge(e,t,s,n),t.child;case 11:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Tt(s,o),Of(e,t,s,o,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,xe(Ji,s._currentValue),s._currentValue=a,i!==null)if(Bt(i.value,a)){if(i.children===o.children&&!ot.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var d=l.firstContext;d!==null;){if(d.context===s){if(i.tag===1){d=an(-1,n&-n),d.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?d.next=d:(d.next=u.next,u.next=d),c.pending=d}}i.lanes|=n,d=i.alternate,d!==null&&(d.lanes|=n),zc(i.return,n,t),l.lanes|=n;break}d=d.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),zc(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,s=t.pendingProps.children,es(t,n),o=Et(o),s=s(o),t.flags|=1,Ge(e,t,s,n),t.child;case 14:return s=t.type,o=Tt(s,t.pendingProps),o=Tt(s.type,o),Af(e,t,s,o,n);case 15:return bh(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,o=t.pendingProps,o=t.elementType===s?o:Tt(s,o),ji(e,t),t.tag=1,it(s)?(e=!0,Gi(t)):e=!1,es(t,n),jh(t,s,o),Wc(t,s,o,n),Vc(null,t,s,!0,e,n);case 19:return Ph(e,t,n);case 22:return wh(e,t,n)}throw Error(V(156,t.tag))};function qh(e,t){return gm(e,t)}function lj(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,s){return new lj(e,t,n,s)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cj(e){if(typeof e=="function")return hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Id)return 11;if(e===Fd)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bi(e,t,n,s,o,i){var a=2;if(s=e,typeof e=="function")hu(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Rr:return fr(n.children,o,i,t);case Rd:a=8,o|=8;break;case fc:return e=kt(12,n,t,o|2),e.elementType=fc,e.lanes=i,e;case pc:return e=kt(13,n,t,o),e.elementType=pc,e.lanes=i,e;case mc:return e=kt(19,n,t,o),e.elementType=mc,e.lanes=i,e;case em:return Da(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jp:a=10;break e;case Zp:a=9;break e;case Id:a=11;break e;case Fd:a=14;break e;case Nn:a=16,s=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=kt(a,n,t,o),t.elementType=e,t.type=s,t.lanes=i,t}function fr(e,t,n,s){return e=kt(7,e,s,t),e.lanes=n,e}function Da(e,t,n,s){return e=kt(22,e,s,t),e.elementType=em,e.lanes=n,e.stateNode={isHidden:!1},e}function Hl(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function Kl(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dj(e,t,n,s,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=El(0),this.expirationTimes=El(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=El(0),this.identifierPrefix=s,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function vu(e,t,n,s,o,i,a,l,d){return e=new dj(e,t,n,l,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=kt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zd(i),e}function uj(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ar,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Vh(e){if(!e)return Un;e=e._reactInternals;e:{if(Sr(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(it(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var n=e.type;if(it(n))return Vm(e,n,t)}return t}function Hh(e,t,n,s,o,i,a,l,d){return e=vu(n,s,!0,e,o,i,a,l,d),e.context=Vh(null),n=e.current,s=Xe(),o=Mn(n),i=an(s,o),i.callback=t??null,Ln(n,i,o),e.current.lanes=o,Eo(e,o,s),at(e,s),e}function La(e,t,n,s){var o=t.current,i=Xe(),a=Mn(o);return n=Vh(n),t.context===null?t.context=n:t.pendingContext=n,t=an(i,a),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Ln(o,t,a),e!==null&&(Ft(e,o,a,i),gi(e,o,a)),a}function la(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function qf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gu(e,t){qf(e,t),(e=e.alternate)&&qf(e,t)}function fj(){return null}var Kh=typeof reportError=="function"?reportError:function(e){console.error(e)};function xu(e){this._internalRoot=e}Ba.prototype.render=xu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));La(e,t,null,null)};Ba.prototype.unmount=xu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nr(function(){La(null,e,null,null)}),t[cn]=null}};function Ba(e){this._internalRoot=e}Ba.prototype.unstable_scheduleHydration=function(e){if(e){var t=wm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<En.length&&t!==0&&t<En[n].priority;n++);En.splice(n,0,e),n===0&&Sm(e)}};function yu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ma(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vf(){}function pj(e,t,n,s,o){if(o){if(typeof s=="function"){var i=s;s=function(){var c=la(a);i.call(c)}}var a=Hh(t,s,e,0,null,!1,!1,"",Vf);return e._reactRootContainer=a,e[cn]=a.current,lo(e.nodeType===8?e.parentNode:e),Nr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof s=="function"){var l=s;s=function(){var c=la(d);l.call(c)}}var d=vu(e,0,!1,null,null,!1,!1,"",Vf);return e._reactRootContainer=d,e[cn]=d.current,lo(e.nodeType===8?e.parentNode:e),Nr(function(){La(t,d,n,s)}),d}function za(e,t,n,s,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var l=o;o=function(){var d=la(a);l.call(d)}}La(t,a,e,o)}else a=pj(n,t,e,o,s);return la(a)}Cm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Fs(t.pendingLanes);n!==0&&(Bd(t,n|1),at(t,Te()),!(pe&6)&&(ls=Te()+500,Kn()))}break;case 13:Nr(function(){var s=dn(e,1);if(s!==null){var o=Xe();Ft(s,e,1,o)}}),gu(e,1)}};Md=function(e){if(e.tag===13){var t=dn(e,134217728);if(t!==null){var n=Xe();Ft(t,e,134217728,n)}gu(e,134217728)}};bm=function(e){if(e.tag===13){var t=Mn(e),n=dn(e,t);if(n!==null){var s=Xe();Ft(n,e,t,s)}gu(e,t)}};wm=function(){return ve};km=function(e,t){var n=ve;try{return ve=e,t()}finally{ve=n}};wc=function(e,t,n){switch(t){case"input":if(gc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var o=Ta(s);if(!o)throw Error(V(90));nm(s),gc(s,o)}}}break;case"textarea":sm(e,n);break;case"select":t=n.value,t!=null&&Qr(e,!!n.multiple,t,!1)}};um=fu;fm=Nr;var mj={usingClientEntryPoint:!1,Events:[_o,Lr,Ta,cm,dm,fu]},Os={findFiberByHostInstance:ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hj={bundleType:Os.bundleType,version:Os.version,rendererPackageName:Os.rendererPackageName,rendererConfig:Os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hm(e),e===null?null:e.stateNode},findFiberByHostInstance:Os.findFiberByHostInstance||fj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oi.isDisabled&&oi.supportsFiber)try{Sa=oi.inject(hj),Qt=oi}catch{}}jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mj;jt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yu(t))throw Error(V(200));return uj(e,t,null,n)};jt.createRoot=function(e,t){if(!yu(e))throw Error(V(299));var n=!1,s="",o=Kh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=vu(e,1,!1,null,null,n,!1,s,o),e[cn]=t.current,lo(e.nodeType===8?e.parentNode:e),new xu(t)};jt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=hm(t),e=e===null?null:e.stateNode,e};jt.flushSync=function(e){return Nr(e)};jt.hydrate=function(e,t,n){if(!Ma(t))throw Error(V(200));return za(null,e,t,!0,n)};jt.hydrateRoot=function(e,t,n){if(!yu(e))throw Error(V(405));var s=n!=null&&n.hydratedSources||null,o=!1,i="",a=Kh;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Hh(t,null,e,1,n??null,o,!1,i,a),e[cn]=t.current,lo(e),s)for(e=0;e<s.length;e++)n=s[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Ba(t)};jt.render=function(e,t,n){if(!Ma(t))throw Error(V(200));return za(null,e,t,!1,n)};jt.unmountComponentAtNode=function(e){if(!Ma(e))throw Error(V(40));return e._reactRootContainer?(Nr(function(){za(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1};jt.unstable_batchedUpdates=fu;jt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Ma(n))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return za(e,t,n,!1,s)};jt.version="18.3.1-next-f1338f8080-20240426";function Yh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yh)}catch(e){console.error(e)}}Yh(),Yp.exports=jt;var Gh=Yp.exports;const qr=ko(Gh);var Qh,Hf=Gh;Qh=Hf.createRoot,Hf.hydrateRoot;var Xh={exports:{}},Jh={};/**
* @license React
* use-sync-external-store-with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Oo=k;function vj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gj=typeof Object.is=="function"?Object.is:vj,xj=Oo.useSyncExternalStore,yj=Oo.useRef,jj=Oo.useEffect,Nj=Oo.useMemo,Cj=Oo.useDebugValue;Jh.useSyncExternalStoreWithSelector=function(e,t,n,s,o){var i=yj(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Nj(function(){function d(N){if(!c){if(c=!0,u=N,N=s(N),o!==void 0&&a.hasValue){var x=a.value;if(o(x,N))return p=x}return p=N}if(x=p,gj(u,N))return x;var C=s(N);return o!==void 0&&o(x,C)?x:(u=N,p=C)}var c=!1,u,p,g=n===void 0?null:n;return[function(){return d(t())},g===null?void 0:function(){return d(g())}]},[t,n,s,o]);var l=xj(e,i[0],i[1]);return jj(function(){a.hasValue=!0,a.value=l},[l]),Cj(l),l};Xh.exports=Jh;var bj=Xh.exports,ft="default"in dc?I:dc,Kf=Symbol.for("react-redux-context"),Yf=typeof globalThis<"u"?globalThis:{};function wj(){if(!ft.createContext)return{};const e=Yf[Kf]??(Yf[Kf]=new Map);let t=e.get(ft.createContext);return t||(t=ft.createContext(null),e.set(ft.createContext,t)),t}var qn=wj(),kj=()=>{throw new Error("uSES not initialized!")};function ju(e=qn){return function(){return ft.useContext(e)}}var Zh=ju(),ev=kj,Sj=e=>{ev=e},Ej=(e,t)=>e===t;function Pj(e=qn){const t=e===qn?Zh:ju(e),n=(s,o={})=>{const{equalityFn:i=Ej,devModeChecks:a={}}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:d,getServerState:c,stabilityCheck:u,identityFunctionCheck:p}=t();ft.useRef(!0);const g=ft.useCallback({[s.name](x){return s(x)}}[s.name],[s,u,a.stabilityCheck]),N=ev(d.addNestedSub,l.getState,c||l.getState,g,i);return ft.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var _e=Pj();function _j(e){e()}function Tj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){_j(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let s=e;for(;s;)n.push(s),s=s.next;return n},subscribe(n){let s=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!s||e===null||(s=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Gf={notify(){},get:()=>[]};function Oj(e,t){let n,s=Gf,o=0,i=!1;function a(C){u();const b=s.subscribe(C);let m=!1;return()=>{m||(m=!0,b(),p())}}function l(){s.notify()}function d(){x.onStateChange&&x.onStateChange()}function c(){return i}function u(){o++,n||(n=e.subscribe(d),s=Tj())}function p(){o--,n&&o===0&&(n(),n=void 0,s.clear(),s=Gf)}function g(){i||(i=!0,u())}function N(){i&&(i=!1,p())}const x={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:c,trySubscribe:g,tryUnsubscribe:N,getListeners:()=>s};return x}var Aj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rj=typeof navigator<"u"&&navigator.product==="ReactNative",Ij=Aj||Rj?ft.useLayoutEffect:ft.useEffect;function Fj({store:e,context:t,children:n,serverState:s,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const a=ft.useMemo(()=>{const c=Oj(e);return{store:e,subscription:c,getServerState:s?()=>s:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,s,o,i]),l=ft.useMemo(()=>e.getState(),[e]);Ij(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,l]);const d=t||qn;return ft.createElement(d.Provider,{value:a},n)}var Dj=Fj;function tv(e=qn){const t=e===qn?Zh:ju(e),n=()=>{const{store:s}=t();return s};return Object.assign(n,{withTypes:()=>n}),n}var Lj=tv();function Bj(e=qn){const t=e===qn?Lj:tv(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ke=Bj();Sj(bj.useSyncExternalStoreWithSelector);function Me(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Mj=typeof Symbol=="function"&&Symbol.observable||"@@observable",Qf=Mj,Yl=()=>Math.random().toString(36).substring(7).split("").join("."),zj={INIT:`@@redux/INIT${Yl()}`,REPLACE:`@@redux/REPLACE${Yl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Yl()}`},ca=zj;function Nu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function nv(e,t,n){if(typeof e!="function")throw new Error(Me(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Me(1));return n(nv)(e,t)}let s=e,o=t,i=new Map,a=i,l=0,d=!1;function c(){a===i&&(a=new Map,i.forEach((b,m)=>{a.set(m,b)}))}function u(){if(d)throw new Error(Me(3));return o}function p(b){if(typeof b!="function")throw new Error(Me(4));if(d)throw new Error(Me(5));let m=!0;c();const v=l++;return a.set(v,b),function(){if(m){if(d)throw new Error(Me(6));m=!1,c(),a.delete(v),i=null}}}function g(b){if(!Nu(b))throw new Error(Me(7));if(typeof b.type>"u")throw new Error(Me(8));if(typeof b.type!="string")throw new Error(Me(17));if(d)throw new Error(Me(9));try{d=!0,o=s(o,b)}finally{d=!1}return(i=a).forEach(v=>{v()}),b}function N(b){if(typeof b!="function")throw new Error(Me(10));s=b,g({type:ca.REPLACE})}function x(){const b=p;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Me(11));function v(){const j=m;j.next&&j.next(u())}return v(),{unsubscribe:b(v)}},[Qf](){return this}}}return g({type:ca.INIT}),{dispatch:g,subscribe:p,getState:u,replaceReducer:N,[Qf]:x}}function $j(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ca.INIT})>"u")throw new Error(Me(12));if(typeof n(void 0,{type:ca.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function Wj(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const a=t[i];typeof e[a]=="function"&&(n[a]=e[a])}const s=Object.keys(n);let o;try{$j(n)}catch(i){o=i}return function(a={},l){if(o)throw o;let d=!1;const c={};for(let u=0;u<s.length;u++){const p=s[u],g=n[p],N=a[p],x=g(N,l);if(typeof x>"u")throw l&&l.type,new Error(Me(14));c[p]=x,d=d||x!==N}return d=d||s.length!==Object.keys(a).length,d?c:a}}function da(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function Uj(...e){return t=>(n,s)=>{const o=t(n,s);let i=()=>{throw new Error(Me(15))};const a={getState:o.getState,dispatch:(d,...c)=>i(d,...c)},l=e.map(d=>d(a));return i=da(...l)(o.dispatch),{...o,dispatch:i}}}function qj(e){return Nu(e)&&"type"in e&&typeof e.type=="string"}var rv=Symbol.for("immer-nothing"),Xf=Symbol.for("immer-draftable"),xt=Symbol.for("immer-state");function Rt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cs=Object.getPrototypeOf;function Cr(e){return!!e&&!!e[xt]}function fn(e){var t;return e?sv(e)||Array.isArray(e)||!!e[Xf]||!!((t=e.constructor)!=null&&t[Xf])||Wa(e)||Ua(e):!1}var Vj=Object.prototype.constructor.toString();function sv(e){if(!e||typeof e!="object")return!1;const t=cs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Vj}function ua(e,t){$a(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,s)=>t(s,n,e))}function $a(e){const t=e[xt];return t?t.type_:Array.isArray(e)?1:Wa(e)?2:Ua(e)?3:0}function rd(e,t){return $a(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ov(e,t,n){const s=$a(e);s===2?e.set(t,n):s===3?e.add(n):e[t]=n}function Hj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Wa(e){return e instanceof Map}function Ua(e){return e instanceof Set}function rr(e){return e.copy_||e.base_}function sd(e,t){if(Wa(e))return new Map(e);if(Ua(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=sv(e);if(t===!0||t==="class_only"&&!n){const s=Object.getOwnPropertyDescriptors(e);delete s[xt];let o=Reflect.ownKeys(s);for(let i=0;i<o.length;i++){const a=o[i],l=s[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(s[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[a]})}return Object.create(cs(e),s)}else{const s=cs(e);if(s!==null&&n)return{...e};const o=Object.create(s);return Object.assign(o,e)}}function Cu(e,t=!1){return qa(e)||Cr(e)||!fn(e)||($a(e)>1&&(e.set=e.add=e.clear=e.delete=Kj),Object.freeze(e),t&&Object.entries(e).forEach(([n,s])=>Cu(s,!0))),e}function Kj(){Rt(2)}function qa(e){return Object.isFrozen(e)}var Yj={};function br(e){const t=Yj[e];return t||Rt(0,e),t}var xo;function iv(){return xo}function Gj(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Jf(e,t){t&&(br("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function od(e){id(e),e.drafts_.forEach(Qj),e.drafts_=null}function id(e){e===xo&&(xo=e.parent_)}function Zf(e){return xo=Gj(xo,e)}function Qj(e){const t=e[xt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ep(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[xt].modified_&&(od(t),Rt(4)),fn(e)&&(e=fa(t,e),t.parent_||pa(t,e)),t.patches_&&br("Patches").generateReplacementPatches_(n[xt].base_,e,t.patches_,t.inversePatches_)):e=fa(t,n,[]),od(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==rv?e:void 0}function fa(e,t,n){if(qa(t))return t;const s=t[xt];if(!s)return ua(t,(o,i)=>tp(e,s,t,o,i,n)),t;if(s.scope_!==e)return t;if(!s.modified_)return pa(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let i=o,a=!1;s.type_===3&&(i=new Set(o),o.clear(),a=!0),ua(i,(l,d)=>tp(e,s,o,l,d,n,a)),pa(e,o,!1),n&&e.patches_&&br("Patches").generatePatches_(s,n,e.patches_,e.inversePatches_)}return s.copy_}function tp(e,t,n,s,o,i,a){if(Cr(o)){const l=i&&t&&t.type_!==3&&!rd(t.assigned_,s)?i.concat(s):void 0,d=fa(e,o,l);if(ov(n,s,d),Cr(d))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(fn(o)&&!qa(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;fa(e,o),(!t||!t.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,s)&&pa(e,o)}}function pa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Cu(t,n)}function Xj(e,t){const n=Array.isArray(e),s={type_:n?1:0,scope_:t?t.scope_:iv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=s,i=bu;n&&(o=[s],i=yo);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return s.draft_=l,s.revoke_=a,l}var bu={get(e,t){if(t===xt)return e;const n=rr(e);if(!rd(n,t))return Jj(e,n,t);const s=n[t];return e.finalized_||!fn(s)?s:s===Gl(e.base_,t)?(Ql(e),e.copy_[t]=ld(s,e)):s},has(e,t){return t in rr(e)},ownKeys(e){return Reflect.ownKeys(rr(e))},set(e,t,n){const s=av(rr(e),t);if(s!=null&&s.set)return s.set.call(e.draft_,n),!0;if(!e.modified_){const o=Gl(rr(e),t),i=o==null?void 0:o[xt];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Hj(n,o)&&(n!==void 0||rd(e.base_,t)))return!0;Ql(e),ad(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Gl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ql(e),ad(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=rr(e),s=Reflect.getOwnPropertyDescriptor(n,t);return s&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:s.enumerable,value:n[t]}},defineProperty(){Rt(11)},getPrototypeOf(e){return cs(e.base_)},setPrototypeOf(){Rt(12)}},yo={};ua(bu,(e,t)=>{yo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});yo.deleteProperty=function(e,t){return yo.set.call(this,e,t,void 0)};yo.set=function(e,t,n){return bu.set.call(this,e[0],t,n,e[0])};function Gl(e,t){const n=e[xt];return(n?rr(n):e)[t]}function Jj(e,t,n){var o;const s=av(t,n);return s?"value"in s?s.value:(o=s.get)==null?void 0:o.call(e.draft_):void 0}function av(e,t){if(!(t in e))return;let n=cs(e);for(;n;){const s=Object.getOwnPropertyDescriptor(n,t);if(s)return s;n=cs(n)}}function ad(e){e.modified_||(e.modified_=!0,e.parent_&&ad(e.parent_))}function Ql(e){e.copy_||(e.copy_=sd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Zj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,s)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(d=i,...c){return a.produce(d,u=>n.call(this,u,...c))}}typeof n!="function"&&Rt(6),s!==void 0&&typeof s!="function"&&Rt(7);let o;if(fn(t)){const i=Zf(this),a=ld(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?od(i):id(i)}return Jf(i,s),ep(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===rv&&(o=void 0),this.autoFreeze_&&Cu(o,!0),s){const i=[],a=[];br("Patches").generateReplacementPatches_(t,o,i,a),s(i,a)}return o}else Rt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,d=>t(d,...l));let s,o;return[this.produce(t,n,(a,l)=>{s=a,o=l}),s,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){fn(e)||Rt(8),Cr(e)&&(e=e1(e));const t=Zf(this),n=ld(e,void 0);return n[xt].isManual_=!0,id(t),n}finishDraft(e,t){const n=e&&e[xt];(!n||!n.isManual_)&&Rt(9);const{scope_:s}=n;return Jf(s,t),ep(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const s=br("Patches").applyPatches_;return Cr(e)?s(e,t):this.produce(e,o=>s(o,t))}};function ld(e,t){const n=Wa(e)?br("MapSet").proxyMap_(e,t):Ua(e)?br("MapSet").proxySet_(e,t):Xj(e,t);return(t?t.scope_:iv()).drafts_.push(n),n}function e1(e){return Cr(e)||Rt(10,e),lv(e)}function lv(e){if(!fn(e)||qa(e))return e;const t=e[xt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=sd(e,t.scope_.immer_.useStrictShallowCopy_)}else n=sd(e,!0);return ua(n,(s,o)=>{ov(n,s,lv(o))}),t&&(t.finalized_=!1),n}var yt=new Zj,cv=yt.produce;yt.produceWithPatches.bind(yt);yt.setAutoFreeze.bind(yt);yt.setUseStrictShallowCopy.bind(yt);yt.applyPatches.bind(yt);yt.createDraft.bind(yt);yt.finishDraft.bind(yt);function dv(e){return({dispatch:n,getState:s})=>o=>i=>typeof i=="function"?i(n,s,e):o(i)}var t1=dv(),n1=dv,r1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?da:da.apply(null,arguments)},s1=e=>e&&typeof e.match=="function";function Qs(e,t){function n(...s){if(t){let o=t(...s);if(!o)throw new Error(Dt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:s[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=s=>qj(s)&&s.type===e,n}var uv=class Ls extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ls.prototype)}static get[Symbol.species](){return Ls}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ls(...t[0].concat(this)):new Ls(...t.concat(this))}};function np(e){return fn(e)?cv(e,()=>{}):e}function rp(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(Dt(10));const s=n.insert(t,e);return e.set(t,s),s}function o1(e){return typeof e=="boolean"}var i1=()=>function(t){const{thunk:n=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new uv;return n&&(o1(n)?a.push(t1):a.push(n1(n.extraArgument))),a},a1="RTK_autoBatch",fv=e=>t=>{setTimeout(t,e)},l1=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fv(10),c1=(e={type:"raf"})=>t=>(...n)=>{const s=t(...n);let o=!0,i=!1,a=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?l1:e.type==="callback"?e.queueNotification:fv(e.timeout),c=()=>{a=!1,i&&(i=!1,l.forEach(u=>u()))};return Object.assign({},s,{subscribe(u){const p=()=>o&&u(),g=s.subscribe(p);return l.add(u),()=>{g(),l.delete(u)}},dispatch(u){var p;try{return o=!((p=u==null?void 0:u.meta)!=null&&p[a1]),i=!o,i&&(a||(a=!0,d(c))),s.dispatch(u)}finally{o=!0}}})},d1=e=>function(n){const{autoBatch:s=!0}=n??{};let o=new uv(e);return s&&o.push(c1(typeof s=="object"?s:void 0)),o};function u1(e){const t=i1(),{reducer:n=void 0,middleware:s,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(Nu(n))l=Wj(n);else throw new Error(Dt(1));let d;typeof s=="function"?d=s(t):d=t();let c=da;o&&(c=r1({trace:!1,...typeof o=="object"&&o}));const u=Uj(...d),p=d1(u);let g=typeof a=="function"?a(p):p();const N=c(...g);return nv(l,i,N)}function pv(e){const t={},n=[];let s;const o={addCase(i,a){const l=typeof i=="string"?i:i.type;if(!l)throw new Error(Dt(28));if(l in t)throw new Error(Dt(29));return t[l]=a,o},addMatcher(i,a){return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){return s=i,o}};return e(o),[t,n,s]}function f1(e){return typeof e=="function"}function p1(e,t){let[n,s,o]=pv(t),i;if(f1(e))i=()=>np(e());else{const l=np(e);i=()=>l}function a(l=i(),d){let c=[n[d.type],...s.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,p)=>{if(p)if(Cr(u)){const N=p(u,d);return N===void 0?u:N}else{if(fn(u))return cv(u,g=>p(g,d));{const g=p(u,d);if(g===void 0){if(u===null)return u;throw new Error(Dt(9))}return g}}return u},l)}return a.getInitialState=i,a}var m1=(e,t)=>s1(e)?e.match(t):e(t);function h1(...e){return t=>e.some(n=>m1(n,t))}var v1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",g1=(e=21)=>{let t="",n=e;for(;n--;)t+=v1[Math.random()*64|0];return t},x1=["name","message","stack","code"],Xl=class{constructor(e,t){Nl(this,"_type");this.payload=e,this.meta=t}},sp=class{constructor(e,t){Nl(this,"_type");this.payload=e,this.meta=t}},y1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of x1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},et=(()=>{function e(t,n,s){const o=Qs(t+"/fulfilled",(d,c,u,p)=>({payload:d,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),i=Qs(t+"/pending",(d,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:d,requestStatus:"pending"}})),a=Qs(t+"/rejected",(d,c,u,p,g)=>({payload:p,error:(s&&s.serializeError||y1)(d||"Rejected"),meta:{...g||{},arg:u,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(d==null?void 0:d.name)==="AbortError",condition:(d==null?void 0:d.name)==="ConditionError"}}));function l(d){return(c,u,p)=>{const g=s!=null&&s.idGenerator?s.idGenerator(d):g1(),N=new AbortController;let x,C;function b(v){C=v,N.abort()}const m=async function(){var j,E;let v;try{let T=(j=s==null?void 0:s.condition)==null?void 0:j.call(s,d,{getState:u,extra:p});if(N1(T)&&(T=await T),T===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((_,L)=>{x=()=>{L({name:"AbortError",message:C||"Aborted"})},N.signal.addEventListener("abort",x)});c(i(g,d,(E=s==null?void 0:s.getPendingMeta)==null?void 0:E.call(s,{requestId:g,arg:d},{getState:u,extra:p}))),v=await Promise.race([O,Promise.resolve(n(d,{dispatch:c,getState:u,extra:p,requestId:g,signal:N.signal,abort:b,rejectWithValue:(_,L)=>new Xl(_,L),fulfillWithValue:(_,L)=>new sp(_,L)})).then(_=>{if(_ instanceof Xl)throw _;return _ instanceof sp?o(_.payload,g,d,_.meta):o(_,g,d)})])}catch(T){v=T instanceof Xl?a(null,g,d,T.payload,T.meta):a(T,g,d)}finally{x&&N.signal.removeEventListener("abort",x)}return s&&!s.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(m,{abort:b,requestId:g,arg:d,unwrap(){return m.then(j1)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:o,settled:h1(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function j1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function N1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var C1=Symbol.for("rtk-slice-createasyncthunk");function b1(e,t){return`${e}/${t}`}function w1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[C1];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(Dt(11));typeof process<"u";const l=(typeof o.reducers=="function"?o.reducers(S1()):o.reducers)||{},d=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(h,j){const E=typeof h=="string"?h:h.type;if(!E)throw new Error(Dt(12));if(E in c.sliceCaseReducersByType)throw new Error(Dt(13));return c.sliceCaseReducersByType[E]=j,u},addMatcher(h,j){return c.sliceMatchers.push({matcher:h,reducer:j}),u},exposeAction(h,j){return c.actionCreators[h]=j,u},exposeCaseReducer(h,j){return c.sliceCaseReducersByName[h]=j,u}};d.forEach(h=>{const j=l[h],E={reducerName:h,type:b1(i,h),createNotation:typeof o.reducers=="function"};P1(j)?T1(E,j,u,t):E1(E,j,u)});function p(){const[h={},j=[],E=void 0]=typeof o.extraReducers=="function"?pv(o.extraReducers):[o.extraReducers],T={...h,...c.sliceCaseReducersByType};return p1(o.initialState,O=>{for(let _ in T)O.addCase(_,T[_]);for(let _ of c.sliceMatchers)O.addMatcher(_.matcher,_.reducer);for(let _ of j)O.addMatcher(_.matcher,_.reducer);E&&O.addDefaultCase(E)})}const g=h=>h,N=new Map;let x;function C(h,j){return x||(x=p()),x(h,j)}function b(){return x||(x=p()),x.getInitialState()}function m(h,j=!1){function E(O){let _=O[h];return typeof _>"u"&&j&&(_=b()),_}function T(O=g){const _=rp(N,j,{insert:()=>new WeakMap});return rp(_,O,{insert:()=>{const L={};for(const[z,H]of Object.entries(o.selectors??{}))L[z]=k1(H,O,b,j);return L}})}return{reducerPath:h,getSelectors:T,get selectors(){return T(E)},selectSlice:E}}const v={name:i,reducer:C,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:b,...m(a),injectInto(h,{reducerPath:j,...E}={}){const T=j??a;return h.inject({reducerPath:T,reducer:C},E),{...v,...m(T,!0)}}};return v}}function k1(e,t,n,s){function o(i,...a){let l=t(i);return typeof l>"u"&&s&&(l=n()),e(l,...a)}return o.unwrapped=e,o}var Ao=w1();function S1(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function E1({type:e,reducerName:t,createNotation:n},s,o){let i,a;if("reducer"in s){if(n&&!_1(s))throw new Error(Dt(17));i=s.reducer,a=s.prepare}else i=s;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Qs(e,a):Qs(e))}function P1(e){return e._reducerDefinitionType==="asyncThunk"}function _1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function T1({type:e,reducerName:t},n,s,o){if(!o)throw new Error(Dt(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:d,settled:c,options:u}=n,p=o(e,i,u);s.exposeAction(t,p),a&&s.addCase(p.fulfilled,a),l&&s.addCase(p.pending,l),d&&s.addCase(p.rejected,d),c&&s.addMatcher(p.settled,c),s.exposeCaseReducer(t,{fulfilled:a||ii,pending:l||ii,rejected:d||ii,settled:c||ii})}function ii(){}function Dt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function mv(e,t){return function(){return e.apply(t,arguments)}}const{toString:O1}=Object.prototype,{getPrototypeOf:wu}=Object,Va=(e=>t=>{const n=O1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>Va(t)===e),Ha=e=>t=>typeof t===e,{isArray:ms}=Array,jo=Ha("undefined");function A1(e){return e!==null&&!jo(e)&&e.constructor!==null&&!jo(e.constructor)&&vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hv=Mt("ArrayBuffer");function R1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hv(e.buffer),t}const I1=Ha("string"),vt=Ha("function"),vv=Ha("number"),Ka=e=>e!==null&&typeof e=="object",F1=e=>e===!0||e===!1,wi=e=>{if(Va(e)!=="object")return!1;const t=wu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},D1=Mt("Date"),L1=Mt("File"),B1=Mt("Blob"),M1=Mt("FileList"),z1=e=>Ka(e)&&vt(e.pipe),$1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vt(e.append)&&((t=Va(e))==="formdata"||t==="object"&&vt(e.toString)&&e.toString()==="[object FormData]"))},W1=Mt("URLSearchParams"),[U1,q1,V1,H1]=["ReadableStream","Request","Response","Headers"].map(Mt),K1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ro(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),ms(e))for(s=0,o=e.length;s<o;s++)t.call(null,e[s],s,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(s=0;s<a;s++)l=i[s],t.call(null,e[l],l,e)}}function gv(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,o;for(;s-- >0;)if(o=n[s],t===o.toLowerCase())return o;return null}const dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xv=e=>!jo(e)&&e!==dr;function cd(){const{caseless:e}=xv(this)&&this||{},t={},n=(s,o)=>{const i=e&&gv(t,o)||o;wi(t[i])&&wi(s)?t[i]=cd(t[i],s):wi(s)?t[i]=cd({},s):ms(s)?t[i]=s.slice():t[i]=s};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&Ro(arguments[s],n);return t}const Y1=(e,t,n,{allOwnKeys:s}={})=>(Ro(t,(o,i)=>{n&&vt(o)?e[i]=mv(o,n):e[i]=o},{allOwnKeys:s}),e),G1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Q1=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},X1=(e,t,n,s)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!s||s(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&wu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},J1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Z1=e=>{if(!e)return null;if(ms(e))return e;let t=e.length;if(!vv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},e0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wu(Uint8Array)),t0=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=s.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},n0=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},r0=Mt("HTMLFormElement"),s0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,o){return s.toUpperCase()+o}),op=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),o0=Mt("RegExp"),yv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ro(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(s[i]=a||o)}),Object.defineProperties(e,s)},i0=e=>{yv(e,(t,n)=>{if(vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(vt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},a0=(e,t)=>{const n={},s=o=>{o.forEach(i=>{n[i]=!0})};return ms(e)?s(e):s(String(e).split(t)),n},l0=()=>{},c0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Jl="abcdefghijklmnopqrstuvwxyz",ip="0123456789",jv={DIGIT:ip,ALPHA:Jl,ALPHA_DIGIT:Jl+Jl.toUpperCase()+ip},d0=(e=16,t=jv.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function u0(e){return!!(e&&vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const f0=e=>{const t=new Array(10),n=(s,o)=>{if(Ka(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[o]=s;const i=ms(s)?[]:{};return Ro(s,(a,l)=>{const d=n(a,o+1);!jo(d)&&(i[l]=d)}),t[o]=void 0,i}}return s};return n(e,0)},p0=Mt("AsyncFunction"),m0=e=>e&&(Ka(e)||vt(e))&&vt(e.then)&&vt(e.catch),Nv=((e,t)=>e?setImmediate:t?((n,s)=>(dr.addEventListener("message",({source:o,data:i})=>{o===dr&&i===n&&s.length&&s.shift()()},!1),o=>{s.push(o),dr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(dr.postMessage)),h0=typeof queueMicrotask<"u"?queueMicrotask.bind(dr):typeof process<"u"&&process.nextTick||Nv,$={isArray:ms,isArrayBuffer:hv,isBuffer:A1,isFormData:$1,isArrayBufferView:R1,isString:I1,isNumber:vv,isBoolean:F1,isObject:Ka,isPlainObject:wi,isReadableStream:U1,isRequest:q1,isResponse:V1,isHeaders:H1,isUndefined:jo,isDate:D1,isFile:L1,isBlob:B1,isRegExp:o0,isFunction:vt,isStream:z1,isURLSearchParams:W1,isTypedArray:e0,isFileList:M1,forEach:Ro,merge:cd,extend:Y1,trim:K1,stripBOM:G1,inherits:Q1,toFlatObject:X1,kindOf:Va,kindOfTest:Mt,endsWith:J1,toArray:Z1,forEachEntry:t0,matchAll:n0,isHTMLForm:r0,hasOwnProperty:op,hasOwnProp:op,reduceDescriptors:yv,freezeMethods:i0,toObjectSet:a0,toCamelCase:s0,noop:l0,toFiniteNumber:c0,findKey:gv,global:dr,isContextDefined:xv,ALPHABET:jv,generateString:d0,isSpecCompliantForm:u0,toJSONObject:f0,isAsyncFn:p0,isThenable:m0,setImmediate:Nv,asap:h0};function ie(e,t,n,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}$.inherits(ie,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:$.toJSONObject(this.config),code:this.code,status:this.status}}});const Cv=ie.prototype,bv={};["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(e=>{bv[e]={value:e}});Object.defineProperties(ie,bv);Object.defineProperty(Cv,"isAxiosError",{value:!0});ie.from=(e,t,n,s,o,i)=>{const a=Object.create(Cv);return $.toFlatObject(e,a,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),ie.call(a,e.message,t,n,s,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const v0=null;function dd(e){return $.isPlainObject(e)||$.isArray(e)}function wv(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function ap(e,t,n){return e?e.concat(t).map(function(o,i){return o=wv(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function g0(e){return $.isArray(e)&&!e.some(dd)}const x0=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Ya(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,b){return!$.isUndefined(b[C])});const s=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if($.isDate(x))return x.toISOString();if(!d&&$.isBlob(x))throw new ie("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(x)||$.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function u(x,C,b){let m=x;if(x&&!b&&typeof x=="object"){if($.endsWith(C,"{}"))C=s?C:C.slice(0,-2),x=JSON.stringify(x);else if($.isArray(x)&&g0(x)||($.isFileList(x)||$.endsWith(C,"[]"))&&(m=$.toArray(x)))return C=wv(C),m.forEach(function(h,j){!($.isUndefined(h)||h===null)&&t.append(a===!0?ap([C],j,i):a===null?C:C+"[]",c(h))}),!1}return dd(x)?!0:(t.append(ap(b,C,i),c(x)),!1)}const p=[],g=Object.assign(x0,{defaultVisitor:u,convertValue:c,isVisitable:dd});function N(x,C){if(!$.isUndefined(x)){if(p.indexOf(x)!==-1)throw Error("Circular reference detected in "+C.join("."));p.push(x),$.forEach(x,function(m,v){(!($.isUndefined(m)||m===null)&&o.call(t,m,$.isString(v)?v.trim():v,C,g))===!0&&N(m,C?C.concat(v):[v])}),p.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return N(e),t}function lp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function ku(e,t){this._pairs=[],e&&Ya(e,this,t)}const kv=ku.prototype;kv.append=function(t,n){this._pairs.push([t,n])};kv.toString=function(t){const n=t?function(s){return t.call(this,s,lp)}:lp;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function y0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sv(e,t,n){if(!t)return e;const s=n&&n.encode||y0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=$.isURLSearchParams(t)?t.toString():new ku(t,n).toString(s),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cp{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Ev={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},j0=typeof URLSearchParams<"u"?URLSearchParams:ku,N0=typeof FormData<"u"?FormData:null,C0=typeof Blob<"u"?Blob:null,b0={isBrowser:!0,classes:{URLSearchParams:j0,FormData:N0,Blob:C0},protocols:["http","https","file","blob","url","data"]},Su=typeof window<"u"&&typeof document<"u",ud=typeof navigator=="object"&&navigator||void 0,w0=Su&&(!ud||["ReactNative","NativeScript","NS"].indexOf(ud.product)<0),k0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",S0=Su&&window.location.href||"http://localhost",E0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Su,hasStandardBrowserEnv:w0,hasStandardBrowserWebWorkerEnv:k0,navigator:ud,origin:S0},Symbol.toStringTag,{value:"Module"})),lt={...E0,...b0};function P0(e,t){return Ya(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(n,s,o,i){return lt.isNode&&$.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function _0(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T0(e){const t={},n=Object.keys(e);let s;const o=n.length;let i;for(s=0;s<o;s++)i=n[s],t[i]=e[i];return t}function Pv(e){function t(n,s,o,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),d=i>=n.length;return a=!a&&$.isArray(o)?o.length:a,d?($.hasOwnProp(o,a)?o[a]=[o[a],s]:o[a]=s,!l):((!o[a]||!$.isObject(o[a]))&&(o[a]=[]),t(n,s,o[a],i)&&$.isArray(o[a])&&(o[a]=T0(o[a])),!l)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(s,o)=>{t(_0(s),o,n,0)}),n}return null}function O0(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Io={transitional:Ev,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",o=s.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o?JSON.stringify(Pv(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return P0(t,this.formSerializer).toString();if((l=$.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ya(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),O0(t)):t}],transformResponse:[function(t){const n=this.transitional||Io.transitional,s=n&&n.forcedJSONParsing,o=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(s&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?ie.from(l,ie.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{Io.headers[e]={}});const A0=$.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"]),R0=e=>{const t={};let n,s,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),s=a.substring(o+1).trim(),!(!n||t[n]&&A0[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},dp=Symbol("internals");function As(e){return e&&String(e).trim().toLowerCase()}function ki(e){return e===!1||e==null?e:$.isArray(e)?e.map(ki):String(e)}function I0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const F0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zl(e,t,n,s,o){if($.isFunction(s))return s.call(this,t,n);if(o&&(t=n),!!$.isString(t)){if($.isString(s))return t.indexOf(s)!==-1;if($.isRegExp(s))return s.test(t)}}function D0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function L0(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(o,i,a){return this[s].call(this,t,o,i,a)},configurable:!0})})}class ct{constructor(t){t&&this.set(t)}set(t,n,s){const o=this;function i(l,d,c){const u=As(d);if(!u)throw new Error("header name must be a non-empty string");const p=$.findKey(o,u);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||d]=ki(l))}const a=(l,d)=>$.forEach(l,(c,u)=>i(c,u,d));if($.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if($.isString(t)&&(t=t.trim())&&!F0(t))a(R0(t),n);else if($.isHeaders(t))for(const[l,d]of t.entries())i(d,l,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=As(t),t){const s=$.findKey(this,t);if(s){const o=this[s];if(!n)return o;if(n===!0)return I0(o);if($.isFunction(n))return n.call(this,o,s);if($.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=As(t),t){const s=$.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Zl(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let o=!1;function i(a){if(a=As(a),a){const l=$.findKey(s,a);l&&(!n||Zl(s,s[l],l,n))&&(delete s[l],o=!0)}}return $.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let s=n.length,o=!1;for(;s--;){const i=n[s];(!t||Zl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,s={};return $.forEach(this,(o,i)=>{const a=$.findKey(s,i);if(a){n[a]=ki(o),delete n[i];return}const l=t?D0(i):String(i).trim();l!==i&&delete n[i],n[l]=ki(o),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(s,o)=>{s!=null&&s!==!1&&(n[o]=t&&$.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(o=>s.set(o)),s}static accessor(t){const s=(this[dp]=this[dp]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=As(a);s[l]||(L0(o,a),s[l]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});$.freezeMethods(ct);function ec(e,t){const n=this||Io,s=t||n,o=ct.from(s.headers);let i=s.data;return $.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function _v(e){return!!(e&&e.__CANCEL__)}function hs(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(hs,ie,{__CANCEL__:!0});function Tv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function B0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function M0(e,t){e=e||10;const n=new Array(e),s=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=s[i];a||(a=c),n[o]=d,s[o]=c;let p=i,g=0;for(;p!==o;)g+=n[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const N=u&&c-u;return N?Math.round(g*1e3/N):void 0}}function z0(e,t){let n=0,s=1e3/t,o,i;const a=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),p=u-n;p>=s?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},s-p)))},()=>o&&a(o)]}const ma=(e,t,n=3)=>{let s=0;const o=M0(50,250);return z0(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,d=a-s,c=o(d),u=a<=l;s=a;const p={loaded:a,total:l,progress:l?a/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},up=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},fp=e=>(...t)=>$.asap(()=>e(...t)),$0=lt.hasStandardBrowserEnv?function(){const t=lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent),n=document.createElement("a");let s;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=o(window.location.href),function(a){const l=$.isString(a)?o(a):a;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),W0=lt.hasStandardBrowserEnv?{write(e,t,n,s,o,i){const a=[e+"="+encodeURIComponent(t)];$.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),$.isString(s)&&a.push("path="+s),$.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function U0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function q0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ov(e,t){return e&&!U0(t)?q0(e,t):t}const pp=e=>e instanceof ct?{...e}:e;function wr(e,t){t=t||{};const n={};function s(c,u,p){return $.isPlainObject(c)&&$.isPlainObject(u)?$.merge.call({caseless:p},c,u):$.isPlainObject(u)?$.merge({},u):$.isArray(u)?u.slice():u}function o(c,u,p){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c,p)}else return s(c,u,p)}function i(c,u){if(!$.isUndefined(u))return s(void 0,u)}function a(c,u){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function l(c,u,p){if(p in t)return s(c,u);if(p in e)return s(void 0,c)}const d={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,u)=>o(pp(c),pp(u),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=d[u]||o,g=p(e[u],t[u],u);$.isUndefined(g)&&p!==l||(n[u]=g)}),n}const Av=e=>{const t=wr({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=ct.from(a),t.url=Sv(Ov(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if($.isFormData(n)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((d=a.getContentType())!==!1){const[c,...u]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(lt.hasStandardBrowserEnv&&(s&&$.isFunction(s)&&(s=s(t)),s||s!==!1&&$0(t.url))){const c=o&&i&&W0.read(i);c&&a.set(o,c)}return t},V0=typeof XMLHttpRequest<"u",H0=V0&&function(e){return new Promise(function(n,s){const o=Av(e);let i=o.data;const a=ct.from(o.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=o,u,p,g,N,x;function C(){N&&N(),x&&x(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function m(){if(!b)return;const h=ct.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:h,config:e,request:b};Tv(function(O){n(O),C()},function(O){s(O),C()},E),b=null}"onloadend"in b?b.onloadend=m:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(m)},b.onabort=function(){b&&(s(new ie("Request aborted",ie.ECONNABORTED,e,b)),b=null)},b.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let j=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||Ev;o.timeoutErrorMessage&&(j=o.timeoutErrorMessage),s(new ie(j,E.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&$.forEach(a.toJSON(),function(j,E){b.setRequestHeader(E,j)}),$.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),l&&l!=="json"&&(b.responseType=o.responseType),c&&([g,x]=ma(c,!0),b.addEventListener("progress",g)),d&&b.upload&&([p,N]=ma(d),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(u=h=>{b&&(s(!h||h.type?new hs(null,e,b):h),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const v=B0(o.url);if(v&&lt.protocols.indexOf(v)===-1){s(new ie("Unsupported protocol "+v+":",ie.ERR_BAD_REQUEST,e));return}b.send(i||null)})},K0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,o;const i=function(c){if(!o){o=!0,l();const u=c instanceof Error?c:this.reason;s.abort(u instanceof ie?u:new hs(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new ie(`timeout ${t} of ms exceeded`,ie.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:d}=s;return d.unsubscribe=()=>$.asap(l),d}},Y0=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let s=0,o;for(;s<n;)o=s+t,yield e.slice(s,o),s=o},G0=async function*(e,t){for await(const n of Q0(e))yield*Y0(n,t)},Q0=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},mp=(e,t,n,s)=>{const o=G0(e,t);let i=0,a,l=d=>{a||(a=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await o.next();if(c){l(),d.close();return}let p=u.byteLength;if(n){let g=i+=p;n(g)}d.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(d){return l(d),o.return()}},{highWaterMark:2})},Ga=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rv=Ga&&typeof ReadableStream=="function",X0=Ga&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Iv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},J0=Rv&&Iv(()=>{let e=!1;const t=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),hp=64*1024,fd=Rv&&Iv(()=>$.isReadableStream(new Response("").body)),ha={stream:fd&&(e=>e.body)};Ga&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ha[t]&&(ha[t]=$.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,s)})})})(new Response);const Z0=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(lt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await X0(e)).byteLength},eN=async(e,t)=>{const n=$.toFiniteNumber(e.getContentLength());return n??Z0(t)},tN=Ga&&(async e=>{let{url:t,method:n,data:s,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:u,withCredentials:p="same-origin",fetchOptions:g}=Av(e);c=c?(c+"").toLowerCase():"text";let N=K0([o,i&&i.toAbortSignal()],a),x;const C=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let b;try{if(d&&J0&&n!=="get"&&n!=="head"&&(b=await eN(u,s))!==0){let E=new Request(t,{method:"POST",body:s,duplex:"half"}),T;if($.isFormData(s)&&(T=E.headers.get("content-type"))&&u.setContentType(T),E.body){const[O,_]=up(b,ma(fp(d)));s=mp(E.body,hp,O,_)}}$.isString(p)||(p=p?"include":"omit");const m="credentials"in Request.prototype;x=new Request(t,{...g,signal:N,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:m?p:void 0});let v=await fetch(x);const h=fd&&(c==="stream"||c==="response");if(fd&&(l||h&&C)){const E={};["status","statusText","headers"].forEach(L=>{E[L]=v[L]});const T=$.toFiniteNumber(v.headers.get("content-length")),[O,_]=l&&up(T,ma(fp(l),!0))||[];v=new Response(mp(v.body,hp,O,()=>{_&&_(),C&&C()}),E)}c=c||"text";let j=await ha[$.findKey(ha,c)||"text"](v,e);return!h&&C&&C(),await new Promise((E,T)=>{Tv(E,T,{data:j,headers:ct.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(m){throw C&&C(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,x),{cause:m.cause||m}):ie.from(m,m&&m.code,e,x)}}),pd={http:v0,xhr:H0,fetch:tN};$.forEach(pd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vp=e=>`- ${e}`,nN=e=>$.isFunction(e)||e===null||e===!1,Fv={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,s;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(s=n,!nN(n)&&(s=pd[(a=String(n)).toLowerCase()],s===void 0))throw new ie(`Unknown adapter '${a}'`);if(s)break;o[a||"#"+i]=s}if(!s){const i=Object.entries(o).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
`+i.map(vp).join(`
`):" "+vp(i[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:pd};function tc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hs(null,e)}function gp(e){return tc(e),e.headers=ct.from(e.headers),e.data=ec.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Fv.getAdapter(e.adapter||Io.adapter)(e).then(function(s){return tc(e),s.data=ec.call(e,e.transformResponse,s),s.headers=ct.from(s.headers),s},function(s){return _v(s)||(tc(e),s&&s.response&&(s.response.data=ec.call(e,e.transformResponse,s.response),s.response.headers=ct.from(s.response.headers))),Promise.reject(s)})}const Dv="1.7.7",Eu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Eu[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const xp={};Eu.transitional=function(t,n,s){function o(i,a){return"[Axios v"+Dv+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,l)=>{if(t===!1)throw new ie(o(a," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!xp[a]&&(xp[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};function rN(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const i=s[o],a=t[i];if(a){const l=e[i],d=l===void 0||a(l,i,e);if(d!==!0)throw new ie("option "+i+" must be "+d,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const md={assertOptions:rN,validators:Eu},jn=md.validators;class pr{constructor(t){this.defaults=t,this.interceptors={request:new cp,response:new cp}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wr(this.defaults,n);const{transitional:s,paramsSerializer:o,headers:i}=n;s!==void 0&&md.assertOptions(s,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean)},!1),o!=null&&($.isFunction(o)?n.paramsSerializer={serialize:o}:md.assertOptions(o,{encode:jn.function,serialize:jn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&$.merge(i.common,i[n.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=ct.concat(a,i);const l=[];let d=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(d=d&&C.synchronous,l.unshift(C.fulfilled,C.rejected))});const c=[];this.interceptors.response.forEach(function(C){c.push(C.fulfilled,C.rejected)});let u,p=0,g;if(!d){const x=[gp.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,c),g=x.length,u=Promise.resolve(n);p<g;)u=u.then(x[p++],x[p++]);return u}g=l.length;let N=n;for(p=0;p<g;){const x=l[p++],C=l[p++];try{N=x(N)}catch(b){C.call(this,b);break}}try{u=gp.call(this,N)}catch(x){return Promise.reject(x)}for(p=0,g=c.length;p<g;)u=u.then(c[p++],c[p++]);return u}getUri(t){t=wr(this.defaults,t);const n=Ov(t.baseURL,t.url);return Sv(n,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(t){pr.prototype[t]=function(n,s){return this.request(wr(s||{},{method:t,url:n,data:(s||{}).data}))}});$.forEach(["post","put","patch"],function(t){function n(s){return function(i,a,l){return this.request(wr(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}pr.prototype[t]=n(),pr.prototype[t+"Form"]=n(!0)});class Pu{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(o=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](o);s._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{s.subscribe(l),i=l}).then(o);return a.cancel=function(){s.unsubscribe(i)},a},t(function(i,a,l){s.reason||(s.reason=new hs(i,a,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Pu(function(o){t=o}),cancel:t}}}function sN(e){return function(n){return e.apply(null,n)}}function oN(e){return $.isObject(e)&&e.isAxiosError===!0}const hd={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(hd).forEach(([e,t])=>{hd[t]=e});function Lv(e){const t=new pr(e),n=mv(pr.prototype.request,t);return $.extend(n,pr.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lv(wr(e,o))},n}const me=Lv(Io);me.Axios=pr;me.CanceledError=hs;me.CancelToken=Pu;me.isCancel=_v;me.VERSION=Dv;me.toFormData=Ya;me.AxiosError=ie;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=sN;me.isAxiosError=oN;me.mergeConfig=wr;me.AxiosHeaders=ct;me.formToJSON=e=>Pv($.isHTMLForm(e)?new FormData(e):e);me.getAdapter=Fv.getAdapter;me.HttpStatusCode=hd;me.default=me;const iN="http://67.225.129.127:3002",Jt=me.create({baseURL:iN});Jt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const aN=e=>Jt.post("/users/signup",e),lN=e=>Jt.post("/users/signin",e),cN=(e,t,n)=>Jt.get(`/users/${e}/verify/${t}`,n),dN=e=>Jt.post("/properties",e),uN=(e,t,n)=>Jt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),fN=e=>Jt.get(`/properties/${e}`,e),pN=(e,t)=>Jt.put(`/properties/${e}`,t),mN=e=>Jt.get(`/users/${e}`),hN=e=>Jt.patch("/users/invest",e),vN="http://67.225.129.127:3002",Si=et("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const s=await lN(e);return t("/dashboard"),s.data}catch(s){return n(s.response.data)}}),Ei=et("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:s})=>{try{const o=await aN(e);return console.log("response",o),n.success("Register Successfully"),t("/registrationsuccess"),o.data}catch(o){return s(o.response.data)}}),Pi=et("auth/updateUser",async({formData:e,toast:t,navigate:n},{rejectWithValue:s})=>{try{const o=await me.put(`${vN}/users/update`,e);return t.success("Updated Successfully"),n("/login"),o.data}catch(o){return s(o.response.data)}}),_i=et("auth/WillingToInvest",async({formData:e,toast:t},{rejectWithValue:n})=>{try{const s=await hN(e);return t.success("Investment amount updated successfully!"),s.data}catch(s){return t.error(s.response.data.message),n(s.response.data)}}),Bv=Ao({name:"auth",initialState:{user:null,error:"",loading:!1,isLoading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload},updateUser:(e,t)=>{const n=t.payload;e.user={...e.user,...n}}},extraReducers:e=>{e.addCase(Si.pending,t=>{t.loading=!0}).addCase(Si.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Si.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ei.pending,t=>{t.loading=!0}).addCase(Ei.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Ei.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Pi.pending,t=>{t.isLoading=!0}).addCase(Pi.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Pi.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload}).addCase(_i.pending,t=>{t.loading=!0}).addCase(_i.fulfilled,(t,n)=>{t.loading=!1,t.user={...t.user,result:n.payload}}).addCase(_i.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),{setUser:fk,setLogout:gN,setUserDetails:pk}=Bv.actions,xN=Bv.reducer,Ti=et("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await mN(e)).data}catch(n){return t(n.response.data)}}),Oi=et("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:s})=>{try{return(await cN(e,t,n)).data.message}catch(o){return s(o.response.data)}}),yN=Ao({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(Ti.pending,t=>{t.loading=!0,t.error=null}).addCase(Ti.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Ti.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Oi.pending,t=>{t.loading=!0,t.error=null}).addCase(Oi.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Oi.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),jN=yN.reducer,Ai=et("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await dN(e)).data}catch(n){return t(n.response.data)}}),Xs=et("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:s})=>{try{return(await uN(e,t,n)).data}catch(o){return s(o.response.data)}}),Js=et("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await fN(e)).data}catch(n){return t(n.response.data)}}),Ri=et("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await pN(e,t)).data}catch(s){return n(s.response.data)}}),Ii=et("property/addFundDetails",async({id:e,fundDetails:t,toast:n},{rejectWithValue:s})=>{try{const o=await me.put(`http://67.225.129.127:3002/properties/${e}/fund-details`,t);return n.success("Submitted Successfully"),o.data}catch(o){return s(o.response.data)}}),Fi=et("property/deleteFundDetail",async({id:e,fundDetailId:t,token:n},{rejectWithValue:s})=>{try{return(await me.delete(`http://67.225.129.127:3002/properties/${e}/fund-details/${t}`,{headers:{Authorization:`Bearer ${n}`}})).data}catch(o){return s(o.response.data)}}),mr=et("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await me.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),NN=Ao({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[],fundDetails:[]},reducers:{},extraReducers:e=>{e.addCase(Ai.pending,t=>{t.status="loading"}).addCase(Ai.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Ai.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Xs.pending,t=>{t.loading=!0}).addCase(Xs.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Xs.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Js.pending,t=>{t.status="loading"}).addCase(Js.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Js.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ri.pending,t=>{t.status="loading"}).addCase(Ri.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ri.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(mr.pending,t=>{t.loading=!0}).addCase(mr.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(mr.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message}).addCase(Ii.pending,t=>{t.loading=!0}).addCase(Ii.fulfilled,(t,n)=>{t.loading=!1,t.property=n.payload.property}).addCase(Ii.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Fi.pending,t=>{t.loading=!0}).addCase(Fi.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=t.fundDetails.filter(s=>s._id!==n.meta.arg.id)}).addCase(Fi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),CN=NN.reducer,nc=et("fundDetails/fetchFundDetails",async(e,{rejectWithValue:t})=>{try{return(await me.get(`http://67.225.129.127:3002/properties/${e}/fund-details`)).data.fundDetails}catch(n){return t(n.response.data)}}),bN=Ao({name:"fundDetails",initialState:{fundDetails:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(nc.pending,t=>{t.loading=!0}).addCase(nc.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=n.payload}).addCase(nc.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),wN=bN.reducer,kN="http://67.225.129.127:3002",Di=et("admin/fetchAdminUser",async()=>(await me.get(`${kN}/admin/username`)).data),SN=Ao({name:"admin",initialState:{user:null,loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(Di.pending,t=>{t.loading=!0,t.error=null}).addCase(Di.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Di.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),EN=SN.reducer,PN=u1({reducer:{auth:xN,user:jN,property:CN,fundDetails:wN,admin:EN}});/**
* @remix-run/router v1.19.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},No.apply(this,arguments)}var On;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(On||(On={}));const yp="popstate";function _N(e){e===void 0&&(e={});function t(s,o){let{pathname:i,search:a,hash:l}=s.location;return vd("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(s,o){return typeof o=="string"?o:va(o)}return ON(t,n,null,e)}function Pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function TN(){return Math.random().toString(36).substr(2,8)}function jp(e,t){return{usr:e.state,key:e.key,idx:t}}function vd(e,t,n,s){return n===void 0&&(n=null),No({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vs(t):t,{state:n,key:t&&t.key||s||TN()})}function va(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function vs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function ON(e,t,n,s){s===void 0&&(s={});let{window:o=document.defaultView,v5Compat:i=!1}=s,a=o.history,l=On.Pop,d=null,c=u();c==null&&(c=0,a.replaceState(No({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function p(){l=On.Pop;let b=u(),m=b==null?null:b-c;c=b,d&&d({action:l,location:C.location,delta:m})}function g(b,m){l=On.Push;let v=vd(C.location,b,m);c=u()+1;let h=jp(v,c),j=C.createHref(v);try{a.pushState(h,"",j)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(j)}i&&d&&d({action:l,location:C.location,delta:1})}function N(b,m){l=On.Replace;let v=vd(C.location,b,m);c=u();let h=jp(v,c),j=C.createHref(v);a.replaceState(h,"",j),i&&d&&d({action:l,location:C.location,delta:0})}function x(b){let m=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof b=="string"?b:va(b);return v=v.replace(/ $/,"%20"),Pe(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let C={get action(){return l},get location(){return e(o,a)},listen(b){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(yp,p),d=b,()=>{o.removeEventListener(yp,p),d=null}},createHref(b){return t(o,b)},createURL:x,encodeLocation(b){let m=x(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:N,go(b){return a.go(b)}};return C}var Np;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Np||(Np={}));function AN(e,t,n){return n===void 0&&(n="/"),RN(e,t,n,!1)}function RN(e,t,n,s){let o=typeof t=="string"?vs(t):t,i=ds(o.pathname||"/",n);if(i==null)return null;let a=zv(e);IN(a);let l=null;for(let d=0;l==null&&d<a.length;++d){let c=VN(i);l=UN(a[d],c,s)}return l}function zv(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let o=(i,a,l)=>{let d={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};d.relativePath.startsWith("/")&&(Pe(d.relativePath.startsWith(s),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(s.length));let c=$n([s,d.relativePath]),u=n.concat(d);i.children&&i.children.length>0&&(Pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),zv(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:$N(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let d of $v(i.path))o(i,a,d)}),t}function $v(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(s.length===0)return o?[i,""]:[i];let a=$v(s.join("/")),l=[];return l.push(...a.map(d=>d===""?i:[i,d].join("/"))),o&&l.push(...a),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function IN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:WN(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const FN=/^:[\w-]+$/,DN=3,LN=2,BN=1,MN=10,zN=-2,Cp=e=>e==="*";function $N(e,t){let n=e.split("/"),s=n.length;return n.some(Cp)&&(s+=zN),t&&(s+=LN),n.filter(o=>!Cp(o)).reduce((o,i)=>o+(FN.test(i)?DN:i===""?BN:MN),s)}function WN(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function UN(e,t,n){let{routesMeta:s}=e,o={},i="/",a=[];for(let l=0;l<s.length;++l){let d=s[l],c=l===s.length-1,u=i==="/"?t:t.slice(i.length)||"/",p=ga({path:d.relativePath,caseSensitive:d.caseSensitive,end:c},u),g=d.route;if(!p&&c&&n&&!s[s.length-1].route.index&&(p=ga({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},u)),!p)return null;Object.assign(o,p.params),a.push({params:o,pathname:$n([i,p.pathname]),pathnameBase:GN($n([i,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(i=$n([i,p.pathnameBase]))}return a}function ga(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=qN(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:s.reduce((c,u,p)=>{let{paramName:g,isOptional:N}=u;if(g==="*"){let C=l[p]||"";a=i.slice(0,i.length-C.length).replace(/(.)\/+$/,"$1")}const x=l[p];return N&&!x?c[g]=void 0:c[g]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function qN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Mv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,d)=>(s.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function VN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ds(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function HN(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:o=""}=typeof e=="string"?vs(e):e;return{pathname:n?n.startsWith("/")?n:KN(n,t):t,search:QN(s),hash:XN(o)}}function KN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function rc(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function YN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Wv(e,t){let n=YN(e);return t?n.map((s,o)=>o===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Uv(e,t,n,s){s===void 0&&(s=!1);let o;typeof e=="string"?o=vs(e):(o=No({},e),Pe(!o.pathname||!o.pathname.includes("?"),rc("?","pathname","search",o)),Pe(!o.pathname||!o.pathname.includes("#"),rc("#","pathname","hash",o)),Pe(!o.search||!o.search.includes("#"),rc("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let p=t.length-1;if(!s&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}l=p>=0?t[p]:"/"}let d=HN(o,l),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(c||u)&&(d.pathname+="/"),d}const $n=e=>e.join("/").replace(/\/\/+/g,"/"),GN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,XN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function JN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qv=["post","put","patch","delete"];new Set(qv);const ZN=["get",...qv];new Set(ZN);/**
* React Router v6.26.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Co.apply(this,arguments)}const Qa=k.createContext(null),Vv=k.createContext(null),Yn=k.createContext(null),Xa=k.createContext(null),Gn=k.createContext({outlet:null,matches:[],isDataRoute:!1}),Hv=k.createContext(null);function eC(e,t){let{relative:n}=t===void 0?{}:t;Fo()||Pe(!1);let{basename:s,navigator:o}=k.useContext(Yn),{hash:i,pathname:a,search:l}=Ja(e,{relative:n}),d=a;return s!=="/"&&(d=a==="/"?s:$n([s,a])),o.createHref({pathname:d,search:l,hash:i})}function Fo(){return k.useContext(Xa)!=null}function Do(){return Fo()||Pe(!1),k.useContext(Xa).location}function Kv(e){k.useContext(Yn).static||k.useLayoutEffect(e)}function hn(){let{isDataRoute:e}=k.useContext(Gn);return e?pC():tC()}function tC(){Fo()||Pe(!1);let e=k.useContext(Qa),{basename:t,future:n,navigator:s}=k.useContext(Yn),{matches:o}=k.useContext(Gn),{pathname:i}=Do(),a=JSON.stringify(Wv(o,n.v7_relativeSplatPath)),l=k.useRef(!1);return Kv(()=>{l.current=!0}),k.useCallback(function(c,u){if(u===void 0&&(u={}),!l.current)return;if(typeof c=="number"){s.go(c);return}let p=Uv(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:$n([t,p.pathname])),(u.replace?s.replace:s.push)(p,u.state,u)},[t,s,a,i,e])}function gs(){let{matches:e}=k.useContext(Gn),t=e[e.length-1];return t?t.params:{}}function Ja(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=k.useContext(Yn),{matches:o}=k.useContext(Gn),{pathname:i}=Do(),a=JSON.stringify(Wv(o,s.v7_relativeSplatPath));return k.useMemo(()=>Uv(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function nC(e,t){return rC(e,t)}function rC(e,t,n,s){Fo()||Pe(!1);let{navigator:o}=k.useContext(Yn),{matches:i}=k.useContext(Gn),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let d=a?a.pathnameBase:"/";a&&a.route;let c=Do(),u;if(t){var p;let b=typeof t=="string"?vs(t):t;d==="/"||(p=b.pathname)!=null&&p.startsWith(d)||Pe(!1),u=b}else u=c;let g=u.pathname||"/",N=g;if(d!=="/"){let b=d.replace(/^\//,"").split("/");N="/"+g.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=AN(e,{pathname:N}),C=lC(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:$n([d,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?d:$n([d,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,s);return t&&C?k.createElement(Xa.Provider,{value:{location:Co({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:On.Pop}},C):C}function sC(){let e=fC(),t=JN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,null)}const oC=k.createElement(sC,null);class iC extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(Gn.Provider,{value:this.props.routeContext},k.createElement(Hv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function aC(e){let{routeContext:t,match:n,children:s}=e,o=k.useContext(Qa);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Gn.Provider,{value:t},s)}function lC(e,t,n,s){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=s)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let u=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);u>=0||Pe(!1),a=a.slice(0,Math.min(a.length,u+1))}let d=!1,c=-1;if(n&&s&&s.v7_partialHydration)for(let u=0;u<a.length;u++){let p=a[u];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=u),p.route.id){let{loaderData:g,errors:N}=n,x=p.route.loader&&g[p.route.id]===void 0&&(!N||N[p.route.id]===void 0);if(p.route.lazy||x){d=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,p,g)=>{let N,x=!1,C=null,b=null;n&&(N=l&&p.route.id?l[p.route.id]:void 0,C=p.route.errorElement||oC,d&&(c<0&&g===0?(x=!0,b=null):c===g&&(x=!0,b=p.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,g+1)),v=()=>{let h;return N?h=C:x?h=b:p.route.Component?h=k.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=u,k.createElement(aC,{match:p,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:h})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?k.createElement(iC,{location:n.location,revalidation:n.revalidation,component:C,error:N,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var Yv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Yv||{}),xa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xa||{});function cC(e){let t=k.useContext(Qa);return t||Pe(!1),t}function dC(e){let t=k.useContext(Vv);return t||Pe(!1),t}function uC(e){let t=k.useContext(Gn);return t||Pe(!1),t}function Gv(e){let t=uC(),n=t.matches[t.matches.length-1];return n.route.id||Pe(!1),n.route.id}function fC(){var e;let t=k.useContext(Hv),n=dC(xa.UseRouteError),s=Gv(xa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function pC(){let{router:e}=cC(Yv.UseNavigateStable),t=Gv(xa.UseNavigateStable),n=k.useRef(!1);return Kv(()=>{n.current=!0}),k.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Co({fromRouteId:t},i)))},[e,t])}function be(e){Pe(!1)}function mC(e){let{basename:t="/",children:n=null,location:s,navigationType:o=On.Pop,navigator:i,static:a=!1,future:l}=e;Fo()&&Pe(!1);let d=t.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:d,navigator:i,static:a,future:Co({v7_relativeSplatPath:!1},l)}),[d,l,i,a]);typeof s=="string"&&(s=vs(s));let{pathname:u="/",search:p="",hash:g="",state:N=null,key:x="default"}=s,C=k.useMemo(()=>{let b=ds(u,d);return b==null?null:{location:{pathname:b,search:p,hash:g,state:N,key:x},navigationType:o}},[d,u,p,g,N,x,o]);return C==null?null:k.createElement(Yn.Provider,{value:c},k.createElement(Xa.Provider,{children:n,value:C}))}function hC(e){let{children:t,location:n}=e;return nC(gd(t),n)}new Promise(()=>{});function gd(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(s,o)=>{if(!k.isValidElement(s))return;let i=[...t,o];if(s.type===k.Fragment){n.push.apply(n,gd(s.props.children,i));return}s.type!==be&&Pe(!1),!s.props.index||!s.props.children||Pe(!1);let a={id:s.props.id||i.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(a.children=gd(s.props.children,i)),n.push(a)}),n}/**
* React Router DOM v6.26.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ya.apply(this,arguments)}function Qv(e,t){if(e==null)return{};var n={},s=Object.keys(e),o,i;for(i=0;i<s.length;i++)o=s[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function vC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gC(e,t){return e.button===0&&(!t||t==="_self")&&!vC(e)}const xC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],yC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],jC="6";try{window.__reactRouterVersion=jC}catch{}const NC=k.createContext({isTransitioning:!1}),CC="startTransition",bp=dc[CC];function bC(e){let{basename:t,children:n,future:s,window:o}=e,i=k.useRef();i.current==null&&(i.current=_N({window:o,v5Compat:!0}));let a=i.current,[l,d]=k.useState({action:a.action,location:a.location}),{v7_startTransition:c}=s||{},u=k.useCallback(p=>{c&&bp?bp(()=>d(p)):d(p)},[d,c]);return k.useLayoutEffect(()=>a.listen(u),[a,u]),k.createElement(mC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}const wC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SC=k.forwardRef(function(t,n){let{onClick:s,relative:o,reloadDocument:i,replace:a,state:l,target:d,to:c,preventScrollReset:u,unstable_viewTransition:p}=t,g=Qv(t,xC),{basename:N}=k.useContext(Yn),x,C=!1;if(typeof c=="string"&&kC.test(c)&&(x=c,wC))try{let h=new URL(window.location.href),j=c.startsWith("//")?new URL(h.protocol+c):new URL(c),E=ds(j.pathname,N);j.origin===h.origin&&E!=null?c=E+j.search+j.hash:C=!0}catch{}let b=eC(c,{relative:o}),m=PC(c,{replace:a,state:l,target:d,preventScrollReset:u,relative:o,unstable_viewTransition:p});function v(h){s&&s(h),h.defaultPrevented||m(h)}return k.createElement("a",ya({},g,{href:x||b,onClick:C||i?s:v,ref:n,target:d}))}),ae=k.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:o=!1,className:i="",end:a=!1,style:l,to:d,unstable_viewTransition:c,children:u}=t,p=Qv(t,yC),g=Ja(d,{relative:p.relative}),N=Do(),x=k.useContext(Vv),{navigator:C,basename:b}=k.useContext(Yn),m=x!=null&&_C(g)&&c===!0,v=C.encodeLocation?C.encodeLocation(g).pathname:g.pathname,h=N.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;o||(h=h.toLowerCase(),j=j?j.toLowerCase():null,v=v.toLowerCase()),j&&b&&(j=ds(j,b)||j);const E=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let T=h===v||!a&&h.startsWith(v)&&h.charAt(E)==="/",O=j!=null&&(j===v||!a&&j.startsWith(v)&&j.charAt(v.length)==="/"),_={isActive:T,isPending:O,isTransitioning:m},L=T?s:void 0,z;typeof i=="function"?z=i(_):z=[i,T?"active":null,O?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(_):l;return k.createElement(SC,ya({},p,{"aria-current":L,className:z,ref:n,style:H,to:d,unstable_viewTransition:c}),typeof u=="function"?u(_):u)});var xd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xd||(xd={}));var wp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wp||(wp={}));function EC(e){let t=k.useContext(Qa);return t||Pe(!1),t}function PC(e,t){let{target:n,replace:s,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,d=hn(),c=Do(),u=Ja(e,{relative:a});return k.useCallback(p=>{if(gC(p,n)){p.preventDefault();let g=s!==void 0?s:va(c)===va(u);d(e,{replace:g,state:o,preventScrollReset:i,relative:a,unstable_viewTransition:l})}},[c,d,u,s,o,n,e,i,a,l])}function _C(e,t){t===void 0&&(t={});let n=k.useContext(NC);n==null&&Pe(!1);let{basename:s}=EC(xd.useViewTransitionState),o=Ja(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ds(n.currentLocation.pathname,s)||n.currentLocation.pathname,a=ds(n.nextLocation.pathname,s)||n.nextLocation.pathname;return ga(o.pathname,a)!=null||ga(o.pathname,i)!=null}function Xv(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Xv(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function An(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Xv(e))&&(s&&(s+=" "),s+=t);return s}const bo=e=>typeof e=="number"&&!isNaN(e),hr=e=>typeof e=="string",pt=e=>typeof e=="function",Li=e=>hr(e)||pt(e)?e:null,yd=e=>k.isValidElement(e)||hr(e)||pt(e)||bo(e);function TC(e,t,n){n===void 0&&(n=300);const{scrollHeight:s,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=s+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Za(e){let{enter:t,exit:n,appendPosition:s=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(a){let{children:l,position:d,preventExitTransition:c,done:u,nodeRef:p,isIn:g,playToast:N}=a;const x=s?`${t}--${d}`:t,C=s?`${n}--${d}`:n,b=k.useRef(0);return k.useLayoutEffect(()=>{const m=p.current,v=x.split(" "),h=j=>{j.target===p.current&&(N(),m.removeEventListener("animationend",h),m.removeEventListener("animationcancel",h),b.current===0&&j.type!=="animationcancel"&&m.classList.remove(...v))};m.classList.add(...v),m.addEventListener("animationend",h),m.addEventListener("animationcancel",h)},[]),k.useEffect(()=>{const m=p.current,v=()=>{m.removeEventListener("animationend",v),o?TC(m,u,i):u()};g||(c?v():(b.current=1,m.className+=` ${C}`,m.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function kp(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Qe=new Map;let wo=[];const jd=new Set,OC=e=>jd.forEach(t=>t(e)),Jv=()=>Qe.size>0;function Zv(e,t){var n;if(t)return!((n=Qe.get(t))==null||!n.isToastActive(e));let s=!1;return Qe.forEach(o=>{o.isToastActive(e)&&(s=!0)}),s}function eg(e,t){yd(e)&&(Jv()||wo.push({content:e,options:t}),Qe.forEach(n=>{n.buildToast(e,t)}))}function Sp(e,t){Qe.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function AC(e){const{subscribe:t,getSnapshot:n,setProps:s}=k.useRef(function(i){const a=i.containerId||1;return{subscribe(l){const d=function(u,p,g){let N=1,x=0,C=[],b=[],m=[],v=p;const h=new Map,j=new Set,E=()=>{m=Array.from(h.values()),j.forEach(_=>_())},T=_=>{b=_==null?[]:b.filter(L=>L!==_),E()},O=_=>{const{toastId:L,onOpen:z,updateId:H,children:te}=_.props,Q=H==null;_.staleId&&h.delete(_.staleId),h.set(L,_),b=[...b,_.props.toastId].filter(Z=>Z!==_.staleId),E(),g(kp(_,Q?"added":"updated")),Q&&pt(z)&&z(k.isValidElement(te)&&te.props)};return{id:u,props:v,observe:_=>(j.add(_),()=>j.delete(_)),toggle:(_,L)=>{h.forEach(z=>{L!=null&&L!==z.props.toastId||pt(z.toggle)&&z.toggle(_)})},removeToast:T,toasts:h,clearQueue:()=>{x-=C.length,C=[]},buildToast:(_,L)=>{if((W=>{let{containerId:K,toastId:Y,updateId:ee}=W;const re=K?K!==u:u!==1,ne=h.has(Y)&&ee==null;return re||ne})(L))return;const{toastId:z,updateId:H,data:te,staleId:Q,delay:Z}=L,D=()=>{T(z)},U=H==null;U&&x++;const G={...v,style:v.toastStyle,key:N++,...Object.fromEntries(Object.entries(L).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:z,updateId:H,data:te,closeToast:D,isIn:!1,className:Li(L.className||v.toastClassName),bodyClassName:Li(L.bodyClassName||v.bodyClassName),progressClassName:Li(L.progressClassName||v.progressClassName),autoClose:!L.isLoading&&(A=L.autoClose,R=v.autoClose,A===!1||bo(A)&&A>0?A:R),deleteToast(){const W=h.get(z),{onClose:K,children:Y}=W.props;pt(K)&&K(k.isValidElement(Y)&&Y.props),g(kp(W,"removed")),h.delete(z),x--,x<0&&(x=0),C.length>0?O(C.shift()):E()}};var A,R;G.closeButton=v.closeButton,L.closeButton===!1||yd(L.closeButton)?G.closeButton=L.closeButton:L.closeButton===!0&&(G.closeButton=!yd(v.closeButton)||v.closeButton);let M=_;k.isValidElement(_)&&!hr(_.type)?M=k.cloneElement(_,{closeToast:D,toastProps:G,data:te}):pt(_)&&(M=_({closeToast:D,toastProps:G,data:te}));const B={content:M,props:G,staleId:Q};v.limit&&v.limit>0&&x>v.limit&&U?C.push(B):bo(Z)?setTimeout(()=>{O(B)},Z):O(B)},setProps(_){v=_},setToggle:(_,L)=>{h.get(_).toggle=L},isToastActive:_=>b.some(L=>L===_),getSnapshot:()=>v.newestOnTop?m.reverse():m}}(a,i,OC);Qe.set(a,d);const c=d.observe(l);return wo.forEach(u=>eg(u.content,u.options)),wo=[],()=>{c(),Qe.delete(a)}},setProps(l){var d;(d=Qe.get(a))==null||d.setProps(l)},getSnapshot(){var l;return(l=Qe.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;s(e);const o=k.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!o)return[];const a=new Map;return o.forEach(l=>{const{position:d}=l.props;a.has(d)||a.set(d,[]),a.get(d).push(l)}),Array.from(a,l=>i(l[0],l[1]))},isToastActive:Zv,count:o==null?void 0:o.length}}function RC(e){const[t,n]=k.useState(!1),[s,o]=k.useState(!1),i=k.useRef(null),a=k.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:d,closeToast:c,onClick:u,closeOnClick:p}=e;var g,N;function x(){n(!0)}function C(){n(!1)}function b(h){const j=i.current;a.canDrag&&j&&(a.didMove=!0,t&&C(),a.delta=e.draggableDirection==="x"?h.clientX-a.start:h.clientY-a.start,a.start!==h.clientX&&(a.canCloseOnClick=!1),j.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,j.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function m(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",m);const h=i.current;if(a.canDrag&&a.didMove&&h){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();h.style.transition="transform 0.2s, opacity 0.2s",h.style.removeProperty("transform"),h.style.removeProperty("opacity")}}(N=Qe.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(g.id,g.fn),k.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||C(),window.addEventListener("focus",x),window.addEventListener("blur",C),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",C)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(h){if(e.draggable===!0||e.draggable===h.pointerType){a.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",m);const j=i.current;a.canCloseOnClick=!0,a.canDrag=!0,j.style.transition="none",e.draggableDirection==="x"?(a.start=h.clientX,a.removalDistance=j.offsetWidth*(e.draggablePercent/100)):(a.start=h.clientY,a.removalDistance=j.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(h){const{top:j,bottom:E,left:T,right:O}=i.current.getBoundingClientRect();h.nativeEvent.type!=="touchend"&&e.pauseOnHover&&h.clientX>=T&&h.clientX<=O&&h.clientY>=j&&h.clientY<=E?C():x()}};return l&&d&&(v.onMouseEnter=C,e.stacked||(v.onMouseLeave=x)),p&&(v.onClick=h=>{u&&u(h),a.canCloseOnClick&&c()}),{playToast:x,pauseToast:C,isRunning:t,preventExitTransition:s,toastRef:i,eventHandlers:v}}function IC(e){let{delay:t,isRunning:n,closeToast:s,type:o="default",hide:i,className:a,style:l,controlledProgress:d,progress:c,rtl:u,isIn:p,theme:g}=e;const N=i||d&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};d&&(x.transform=`scaleX(${c})`);const C=An("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":u}),b=pt(a)?a({rtl:u,type:o,defaultClassName:C}):An(C,a),m={[d&&c>=1?"onTransitionEnd":"onAnimationEnd"]:d&&c<1?null:()=>{p&&s()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${o}`}),I.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:b,style:x,...m}))}let FC=1;const tg=()=>""+FC++;function DC(e){return e&&(hr(e.toastId)||bo(e.toastId))?e.toastId:tg()}function Zs(e,t){return eg(e,t),t.toastId}function ja(e,t){return{...t,type:t&&t.type||e,toastId:DC(t)}}function ai(e){return(t,n)=>Zs(t,ja(e,n))}function oe(e,t){return Zs(e,ja("default",t))}oe.loading=(e,t)=>Zs(e,ja("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),oe.promise=function(e,t,n){let s,{pending:o,error:i,success:a}=t;o&&(s=hr(o)?oe.loading(o,n):oe.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(u,p,g)=>{if(p==null)return void oe.dismiss(s);const N={type:u,...l,...n,data:g},x=hr(p)?{render:p}:p;return s?oe.update(s,{...N,...x}):oe(x.render,{...N,...x}),g},c=pt(e)?e():e;return c.then(u=>d("success",a,u)).catch(u=>d("error",i,u)),c},oe.success=ai("success"),oe.info=ai("info"),oe.error=ai("error"),oe.warning=ai("warning"),oe.warn=oe.warning,oe.dark=(e,t)=>Zs(e,ja("default",{theme:"dark",...t})),oe.dismiss=function(e){(function(t){var n;if(Jv()){if(t==null||hr(n=t)||bo(n))Qe.forEach(s=>{s.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const s=Qe.get(t.containerId);s?s.removeToast(t.id):Qe.forEach(o=>{o.removeToast(t.id)})}}else wo=wo.filter(s=>t!=null&&s.options.toastId!==t)})(e)},oe.clearWaitingQueue=function(e){e===void 0&&(e={}),Qe.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},oe.isActive=Zv,oe.update=function(e,t){t===void 0&&(t={});const n=((s,o)=>{var i;let{containerId:a}=o;return(i=Qe.get(a||1))==null?void 0:i.toasts.get(s)})(e,t);if(n){const{props:s,content:o}=n,i={delay:100,...s,...t,toastId:t.toastId||e,updateId:tg()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Zs(a,i)}},oe.done=e=>{oe.update(e,{progress:1})},oe.onChange=function(e){return jd.add(e),()=>{jd.delete(e)}},oe.play=e=>Sp(!0,e),oe.pause=e=>Sp(!1,e);const LC=typeof window<"u"?k.useLayoutEffect:k.useEffect,li=e=>{let{theme:t,type:n,isLoading:s,...o}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},sc={info:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(li,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},BC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:o,playToast:i}=RC(e),{closeButton:a,children:l,autoClose:d,onClick:c,type:u,hideProgressBar:p,closeToast:g,transition:N,position:x,className:C,style:b,bodyClassName:m,bodyStyle:v,progressClassName:h,progressStyle:j,updateId:E,role:T,progress:O,rtl:_,toastId:L,deleteToast:z,isIn:H,isLoading:te,closeOnClick:Q,theme:Z}=e,D=An("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Q}),U=pt(C)?C({rtl:_,position:x,type:u,defaultClassName:D}):An(D,C),G=function(B){let{theme:W,type:K,isLoading:Y,icon:ee}=B,re=null;const ne={theme:W,type:K};return ee===!1||(pt(ee)?re=ee({...ne,isLoading:Y}):k.isValidElement(ee)?re=k.cloneElement(ee,ne):Y?re=sc.spinner():(se=>se in sc)(K)&&(re=sc[K](ne))),re}(e),A=!!O||!d,R={closeToast:g,type:u,theme:Z};let M=null;return a===!1||(M=pt(a)?a(R):k.isValidElement(a)?k.cloneElement(a,R):function(B){let{closeToast:W,theme:K,ariaLabel:Y="close"}=B;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),W(ee)},"aria-label":Y},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(R)),I.createElement(N,{isIn:H,done:z,position:x,preventExitTransition:n,nodeRef:s,playToast:i},I.createElement("div",{id:L,onClick:c,"data-in":H,className:U,...o,style:b,ref:s},I.createElement("div",{...H&&{role:T},className:pt(m)?m({type:u}):An("Toastify__toast-body",m),style:v},G!=null&&I.createElement("div",{className:An("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},G),I.createElement("div",null,l)),M,I.createElement(IC,{...E&&!A?{key:`pb-${E}`}:{},rtl:_,theme:Z,delay:d,isRunning:t,isIn:H,closeToast:g,hide:p,type:u,style:j,className:h,controlledProgress:A,progress:O||0})))},el=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},MC=Za(el("bounce",!0));Za(el("slide",!0));Za(el("zoom"));Za(el("flip"));const zC={position:"top-right",transition:MC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function $C(e){let t={...zC,...e};const n=e.stacked,[s,o]=k.useState(!0),i=k.useRef(null),{getToastToRender:a,isToastActive:l,count:d}=AC(t),{className:c,style:u,rtl:p,containerId:g}=t;function N(C){const b=An("Toastify__toast-container",`Toastify__toast-container--${C}`,{"Toastify__toast-container--rtl":p});return pt(c)?c({position:C,rtl:p,defaultClassName:b}):An(b,Li(c))}function x(){n&&(o(!0),oe.play())}return LC(()=>{if(n){var C;const b=i.current.querySelectorAll('[data-in="true"]'),m=12,v=(C=t.position)==null?void 0:C.includes("top");let h=0,j=0;Array.from(b).reverse().forEach((E,T)=>{const O=E;O.classList.add("Toastify__toast--stacked"),T>0&&(O.dataset.collapsed=`${s}`),O.dataset.pos||(O.dataset.pos=v?"top":"bot");const _=h*(s?.2:1)+(s?0:m*T);O.style.setProperty("--y",`${v?_:-1*_}px`),O.style.setProperty("--g",`${m}`),O.style.setProperty("--s",""+(1-(s?j:0))),h+=O.offsetHeight,j+=.025})}},[s,d,n]),I.createElement("div",{ref:i,className:"Toastify",id:g,onMouseEnter:()=>{n&&(o(!1),oe.pause())},onMouseLeave:x},a((C,b)=>{const m=b.length?{...u}:{...u,pointerEvents:"none"};return I.createElement("div",{className:N(C),style:m,key:`container-${C}`},b.map(v=>{let{content:h,props:j}=v;return I.createElement(BC,{...j,stacked:n,collapseAll:x,isIn:l(j.toastId,j.containerId),style:j.style,key:`toast-${j.key}`},h)}))}))}const tt=()=>{const e=new Date().getFullYear();return r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsx("div",{className:"footer_section layout_padding",children:r.jsxs("div",{className:"container",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12"})}),r.jsx("div",{className:"footer_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),r.jsx("div",{className:"footer_menu",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx(ae,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(ae,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(ae,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(ae,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),r.jsx("p",{className:"lorem_text",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem"})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),r.jsxs("div",{className:"form-group",children:[r.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),r.jsx("div",{className:"subscribe_bt",children:r.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),r.jsx("div",{className:"social_icon",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),r.jsx("div",{className:"copyright_section",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},Le=()=>{var o;const{user:e}=_e(i=>({...i.auth})),t=Ke(),n=hn(),s=()=>{t(gN()),n("/")};return r.jsx("nav",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"d-flex align-items-center",children:r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})}),r.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarNav","aria-controls":"navbarNav","aria-expanded":"false","aria-label":"Toggle navigation",style:{borderColor:"#fda417"},children:r.jsx("span",{className:"navbar-toggler-icon"})}),r.jsxs("div",{className:"collapse navbar-collapse justify-content-end",id:"navbarNav",children:[r.jsxs("ul",{className:"navbar-nav",children:[r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ae,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),r.jsx("div",{className:"navbar-right d-flex",children:(o=e==null?void 0:e.result)!=null&&o._id?r.jsxs(r.Fragment,{children:[r.jsx(ae,{to:"/dashboard",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Dashboard"}),r.jsx("span",{onClick:s,style:{fontWeight:"bold",color:"#fda417",cursor:"pointer"},className:"nav-link logout-link",children:"Logout"})]}):r.jsxs(r.Fragment,{children:[r.jsx(ae,{to:"/register",className:"nav-link",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Register"}),r.jsx(ae,{to:"/login",className:"nav-link",style:{fontWeight:"bold",color:"#fda417"},children:"Login"})]})})]})]})})},WC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("div",{className:"header_section",children:r.jsx("div",{className:"banner_section layout_padding",children:r.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[r.jsxs("div",{className:"carousel-inner",children:[r.jsxs("div",{className:"carousel-item active",children:[r.jsx("div",{className:"slider-image-container"}),r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),r.jsx("p",{className:"banner_text",children:"Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})]}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),r.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),r.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),r.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:r.jsx("i",{className:"fa fa-angle-left"})}),r.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:r.jsx("i",{className:"fa fa-angle-right"})})]})})}),r.jsx("div",{className:"services_section layout_padding",children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsx("p",{className:"services_text_1",style:{fontSize:"30px",padding:"10px",fontWeight:"bold"},children:"your documents, always and immediately within reach"})})}),r.jsx("div",{className:"services_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main active",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-1.png"})}),r.jsx("h4",{className:"development_text",children:"Dedication Services"}),r.jsx("p",{className:"services_text",children:"Real estate investing even on a very small scale remains a tried and true means of building and individual cash flow and wealth"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-2.png"})}),r.jsx("h4",{className:"development_text",children:"Building work Reports"}),r.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-3.png"})}),r.jsx("h4",{className:"development_text",children:"Reporting continuously"}),r.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-4.png"})}),r.jsx("h4",{className:"development_text",children:"Manage your investment "}),r.jsx("p",{className:"services_text",children:"We offer a comprehensive set of tools and services to fully facilitate all your real estate investment management needs"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})}),r.jsx(tt,{})]}),UC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"about_section layout_padding",children:[r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("h1",{className:"about_taital",children:"About Us"}),r.jsxs("p",{className:"about_text",children:["There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All"," "]}),r.jsx("div",{className:"read_bt_1",children:r.jsx("a",{href:"#",children:"Read More"})})]}),r.jsx("div",{className:"col-md-6",children:r.jsx("div",{className:"about_img",children:r.jsx("div",{className:"video_bt",children:r.jsx("div",{className:"play_icon",children:r.jsx("img",{src:"images/play-icon.png"})})})})})]})}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{})]}),r.jsx(tt,{})]}),qC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-6",children:r.jsx("form",{action:!0,children:r.jsxs("div",{className:"mail_section_1",children:[r.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),r.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),r.jsx("div",{className:"send_bt",children:r.jsx("a",{href:"#",children:"SEND"})})]})})}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img",children:r.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),r.jsx(tt,{})]});var nn=function(){return nn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nn.apply(this,arguments)};function VC(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.fill)!==null&&n!==void 0?n:"#fff",d=(s=e.stroke)!==null&&s!==void 0?s:"transparent",c=e.fillOpacity,u=e.strokeOpacity;return I.createElement("svg",nn({},nn(nn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:80,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:55}),{viewBox:"0 0 55 80"}),I.createElement("g",{transform:"matrix(1 0 0 -1 0 80)"},I.createElement("rect",nn({width:10,height:20,rx:3},{fill:l,stroke:d,fillOpacity:c,strokeOpacity:u}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(4.3/a,"s"),values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",nn({x:15,width:10,height:80,rx:3},{fill:l,stroke:d,fillOpacity:c,strokeOpacity:u}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(2/a,"s"),values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",nn({x:30,width:10,height:50,rx:3},{fill:l,stroke:d,fillOpacity:c,strokeOpacity:u}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(1.4/a,"s"),values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",nn({x:45,width:10,height:30,rx:3},{fill:l,stroke:d,fillOpacity:c,strokeOpacity:u}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(2/a,"s"),values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"}))))}var bn=function(){return bn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},bn.apply(this,arguments)};function HC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=e.fill,l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",bn({},bn(bn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:57,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:57}),{viewBox:"0 0 57 57"}),I.createElement("g",{transform:"translate(1 1)",strokeWidth:2,fill:"none",fillRule:"evenodd"},I.createElement("circle",bn({cx:5,cy:50,r:5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"cy",begin:"0s",dur:"".concat(2.2/i,"s"),values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"cx",begin:"0s",dur:"".concat(2.2/i,"s"),values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",bn({cx:27,cy:5,r:5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"cy",begin:"0s",dur:"".concat(2.2/i,"s"),from:5,to:5,values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"cx",begin:"0s",dur:"".concat(2.2/i,"s"),from:27,to:27,values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",bn({cx:49,cy:50,r:5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"cy",begin:"0s",dur:"".concat(2.2/i,"s"),values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"cx",from:49,to:49,begin:"0s",dur:"".concat(2.2/i,"s"),values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"}))))}var Kt=function(){return Kt=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Kt.apply(this,arguments)};function KC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",Kt({},Kt(Kt({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:140,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:135}),{viewBox:"0 0 135 140"}),I.createElement("rect",Kt({y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Kt({x:30,y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Kt({x:60,width:15,height:140,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Kt({x:90,y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Kt({x:120,y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"".concat(1/i,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"".concat(1/i,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var or=function(){return or=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},or.apply(this,arguments)};function YC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",or({},or(or({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:135,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:135}),{viewBox:"0 0 135 135"}),I.createElement("path",or({d:"M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 67 67",to:"-360 67 67",dur:"".concat(2.5/i,"s"),repeatCount:"indefinite"})),I.createElement("path",or({d:"M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z"},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 67 67",to:"360 67 67",dur:"".concat(8/i,"s"),repeatCount:"indefinite"})))}var nt=function(){return nt=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nt.apply(this,arguments)};function GC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",nt({},nt(nt({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:105,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:105}),{viewBox:"0 0 105 105"}),I.createElement("circle",nt({cx:12.5,cy:12.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:12.5,cy:52.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:52.5,cy:12.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:52.5,cy:52.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:92.5,cy:12.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:92.5,cy:52.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:12.5,cy:92.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:52.5,cy:92.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:92.5,cy:92.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"".concat(1/i,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})))}var wn=function(){return wn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},wn.apply(this,arguments)};function QC(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity;return I.createElement("svg",wn({},wn(wn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:64,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:140}),{viewBox:"0 0 140 64"}),I.createElement("path",wn({d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.717-6.002 11.47-7.65 17.305-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z",fillOpacity:d},{fill:a,stroke:l}),I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.4/i,"s"),values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("path",wn({d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.592-2.32 17.307 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z",fillOpacity:d},{fill:a,stroke:l}),I.createElement("animate",{attributeName:"fill-opacity",begin:"0.7s",dur:"".concat(1.4/i,"s"),values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("path",wn({d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"},{fill:a,stroke:l})))}var Vr=function(){return Vr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Vr.apply(this,arguments)};function XC(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Vr({},Vr(Vr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:38,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:38}),{viewBox:"0 0 38 38",overflow:"visible"}),I.createElement("g",Vr({transform:"translate(1 1)",fill:"none",fillRule:"evenodd"},{stroke:l,strokeWidth:d,strokeOpacity:c}),I.createElement("circle",{strokeOpacity:.5,cx:18,cy:18,r:18}),I.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"".concat(1/a,"s"),repeatCount:"indefinite"}))))}var Hr=function(){return Hr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hr.apply(this,arguments)};function JC(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Hr({},Hr(Hr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:44,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:44}),{viewBox:"0 0 44 44"}),I.createElement("g",Hr({fill:"none",fillRule:"evenodd"},{stroke:l,strokeWidth:d,strokeOpacity:c}),I.createElement("circle",{cx:22,cy:22,r:1},I.createElement("animate",{attributeName:"r",begin:"0s",dur:"".concat(1.8/a,"s"),values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"".concat(1.8/a,"s"),values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})),I.createElement("circle",{cx:22,cy:22,r:1},I.createElement("animate",{attributeName:"r",begin:"-0.9s",dur:"".concat(1.8/a,"s"),values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"".concat(1.8/a,"s"),values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}))))}var Kr=function(){return Kr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Kr.apply(this,arguments)};function ZC(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Kr({},Kr(Kr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:45,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:45}),{viewBox:"0 0 45 45"}),I.createElement("g",Kr({fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},{stroke:l,strokeWidth:d,strokeOpacity:c}),I.createElement("circle",{cx:22,cy:22,r:6},I.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"".concat(3/a,"s"),values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"".concat(3/a,"s"),values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"".concat(3/a,"s"),values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:22,cy:22,r:6},I.createElement("animate",{attributeName:"r",begin:"3s",dur:"".concat(3/a,"s"),values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"".concat(3/a,"s"),values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-width",begin:"3s",dur:"".concat(3/a,"s"),values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:22,cy:22,r:8},I.createElement("animate",{attributeName:"r",begin:"0s",dur:"".concat(1.5/a,"s"),values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}))))}var Yr=function(){return Yr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Yr.apply(this,arguments)};function eb(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",Yr({},Yr(Yr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:58,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:58}),{viewBox:"0 0 58 58"}),I.createElement("g",Yr({transform:"translate(2 1)",fillRule:"evenodd"},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("circle",{cx:42.601,cy:11.462,r:5},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"1;0;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:49.063,cy:27.063,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;1;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:42.601,cy:42.663,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;1;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:27,cy:49.125,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;1;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:11.399,cy:42.663,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;0;1;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:4.938,cy:27.063,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;0;0;1;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:11.399,cy:11.462,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;0;0;0;1;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:27,cy:5,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/i,"s"),values:"0;0;0;0;0;0;0;1",calcMode:"linear",repeatCount:"indefinite"}))))}var Gr=function(){return Gr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gr.apply(this,arguments)};function tb(e){var t,n,s,o,i,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Gr({},Gr(Gr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(o=e.height)!==null&&o!==void 0?o:38,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:38}),{viewBox:"0 0 38 38"}),I.createElement("defs",null,I.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"prefix__a"},I.createElement("stop",{stopOpacity:0,offset:"0%"}),I.createElement("stop",{stopOpacity:.631,offset:"63.146%"}),I.createElement("stop",{offset:"100%"}))),I.createElement("g",{transform:"translate(1 1)",fill:"none",fillRule:"evenodd"},I.createElement("path",Gr({d:"M36 18c0-9.94-8.06-18-18-18"},{stroke:l,strokeWidth:d,strokeOpacity:c}),I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"".concat(.9/a,"s"),repeatCount:"indefinite"})),I.createElement("circle",{cx:36,cy:18,r:1},I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"".concat(.9/a,"s"),repeatCount:"indefinite"}))))}var kn=function(){return kn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},kn.apply(this,arguments)};function nb(e){var t,n,s,o,i=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",kn({},kn(kn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:30,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:120}),{viewBox:"0 0 120 30"}),I.createElement("circle",kn({cx:15,cy:15,r:15},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"r",from:15,to:15,begin:"0s",dur:"".concat(.8/i,"s"),values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"fill-opacity",from:1,to:1,begin:"0s",dur:"".concat(.8/i,"s"),values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",kn({cx:60,cy:15,r:9},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"r",from:9,to:9,begin:"0s",dur:"".concat(.8/i,"s"),values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"fill-opacity",from:.5,to:.5,begin:"0s",dur:"".concat(.8/i,"s"),values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",kn({cx:105,cy:15,r:15},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"r",from:15,to:15,begin:"0s",dur:"".concat(.8/i,"s"),values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"fill-opacity",from:1,to:1,begin:"0s",dur:"".concat(.8/i,"s"),values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var rb=VC,sb=HC,ob=KC,ib=YC,ab=GC,lb=QC,cb=XC,db=JC,ub=ZC,fb=eb,pb=tb,mb=nb,ng={Audio:rb,BallTriangle:sb,Bars:ob,Circles:ib,Grid:ab,Hearts:lb,Oval:cb,Puff:db,Rings:ub,SpinningCircles:fb,TailSpin:pb,ThreeDots:mb};const hb={title:"None",firstName:"",middleName:"",lastName:"",email:"",password:"",confirmPassword:"",termsconditions:"",userType:""},vb=()=>{const[e,t]=k.useState(hb),[n,s]=k.useState(!1),{loading:o,error:i}=_e(E=>({...E.auth})),{title:a,email:l,password:d,firstName:c,middleName:u,lastName:p,confirmPassword:g,termsconditions:N,userType:x}=e,C=Ke(),b=hn();k.useEffect(()=>{i&&oe.error(i)},[i]),k.useEffect(()=>{s(a!=="None"&&l&&d&&c&&u&&p&&g&&N&&x!=="")},[a,l,d,c,u,p,g,N,x]);const m=E=>{if(E.preventDefault(),d!==g)return oe.error("Password should match");n?C(Ei({formValue:e,navigate:b,toast:oe})):oe.error("Please fill in all fields and select all checkboxes")},v=E=>E.charAt(0).toUpperCase()+E.slice(1),h=E=>{const{name:T,value:O,type:_,checked:L}=E.target;t(_==="checkbox"?z=>({...z,[T]:L}):z=>({...z,[T]:T==="email"||T==="password"||T==="confirmPassword"?O:v(O)}))},j=E=>{t(T=>({...T,userType:E.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Registration"}),r.jsx("h6",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:m,children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsxs("label",{className:"form-label",children:["Please select the role. ",r.jsx("br",{}),r.jsx("br",{})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:x==="Lender",onChange:j,required:!0}),r.jsx("label",{className:"form-check-label",children:"Lender"})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:x==="Borrower",onChange:j,required:!0}),r.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),r.jsx("br",{}),r.jsx("br",{})]})]})}),r.jsxs("div",{className:"col-12",children:[r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a,onChange:h,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]}),r.jsx("br",{})]}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:h,placeholder:"First Name",required:"required"}),r.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:u,name:"middleName",onChange:h,placeholder:"Middle Name",required:"required"}),r.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:h,placeholder:"Last Name",required:"required"}),r.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:l,name:"email",onChange:h,placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:d,name:"password",onChange:h,placeholder:"Password",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:h,placeholder:"confirmPassword",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:h,required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||o,children:[o&&r.jsx(ng.Bars,{}),"Sign up"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},gb={email:"",password:""},xb=()=>{const[e,t]=k.useState(gb),{loading:n,error:s}=_e(u=>({...u.auth})),{email:o,password:i}=e,a=Ke(),l=hn();k.useEffect(()=>{s&&oe.error(s)},[s]);const d=u=>{u.preventDefault(),o&&i&&a(Si({formValue:e,navigate:l,toast:oe}))},c=u=>{let{name:p,value:g}=u.target;t({...e,[p]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:r.jsx("div",{className:"text-bg-primary",children:r.jsxs("div",{className:"px-4",children:[r.jsx("hr",{className:"border-primary-subtle mb-4"}),r.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),r.jsx("div",{className:"text-endx",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"currentColor",className:"bi bi-grip-horizontal",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})})})]})})}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"mb-4",children:r.jsx("h2",{className:"h3",children:"Please Login"})})})}),r.jsx("form",{method:"POST",children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:o,name:"email",onChange:c,required:!0}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:i,name:"password",onChange:c,required:!0}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:d,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(ng.Bars,{}),"Sign In"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",r.jsx(ae,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(ae,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},Bs="/assets/samplepic-BM_cnzgz.jpg";var rg={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(qg,function(){return function(n){function s(i){if(o[i])return o[i].exports;var a=o[i]={exports:{},id:i,loaded:!1};return n[i].call(a.exports,a,a.exports,s),a.loaded=!0,a.exports}var o={};return s.m=n,s.c=o,s.p="",s(0)}([function(n,s,o){function i(N){return N&&N.__esModule?N:{default:N}}function a(N,x){if(!(N instanceof x))throw new TypeError("Cannot call a class as a function")}function l(N,x){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?N:x}function d(N,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);N.prototype=Object.create(x&&x.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(N,x):N.__proto__=x)}Object.defineProperty(s,"__esModule",{value:!0});var c=function(){function N(x,C){for(var b=0;b<C.length;b++){var m=C[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}return function(x,C,b){return C&&N(x.prototype,C),b&&N(x,b),x}}(),u=o(36),p=i(u),g=function(N){function x(C){a(this,x);var b=l(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,C));return b.state={files:[]},b}return d(x,N),c(x,[{key:"handleChange",value:function(C){for(var b=this,m=C.target.files,v=[],h=function(){var E=m[j],T=new FileReader;T.readAsDataURL(E),T.onload=function(){var O={name:E.name,type:E.type,size:Math.round(E.size/1e3)+" kB",base64:T.result,file:E};v.push(O),v.length==m.length&&(b.props.multiple?b.props.onDone(v):b.props.onDone(v[0]))}},j=0;j<m.length;j++)h()}},{key:"render",value:function(){return p.default.createElement("input",{type:"file",onChange:this.handleChange.bind(this),multiple:this.props.multiple})}}]),x}(p.default.Component);s.default=g,g.defaultProps={multiple:!1}},function(n,s){function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(h){if(g===setTimeout)return setTimeout(h,0);if((g===o||!g)&&setTimeout)return g=setTimeout,setTimeout(h,0);try{return g(h,0)}catch{try{return g.call(null,h,0)}catch{return g.call(this,h,0)}}}function l(h){if(N===clearTimeout)return clearTimeout(h);if((N===i||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(h);try{return N(h)}catch{try{return N.call(null,h)}catch{return N.call(this,h)}}}function d(){m&&C&&(m=!1,C.length?b=C.concat(b):v=-1,b.length&&c())}function c(){if(!m){var h=a(d);m=!0;for(var j=b.length;j;){for(C=b,b=[];++v<j;)C&&C[v].run();v=-1,j=b.length}C=null,m=!1,l(h)}}function u(h,j){this.fun=h,this.array=j}function p(){}var g,N,x=n.exports={};(function(){try{g=typeof setTimeout=="function"?setTimeout:o}catch{g=o}try{N=typeof clearTimeout=="function"?clearTimeout:i}catch{N=i}})();var C,b=[],m=!1,v=-1;x.nextTick=function(h){var j=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)j[E-1]=arguments[E];b.push(new u(h,j)),b.length!==1||m||a(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={},x.on=p,x.addListener=p,x.once=p,x.off=p,x.removeListener=p,x.removeAllListeners=p,x.emit=p,x.prependListener=p,x.prependOnceListener=p,x.listeners=function(h){return[]},x.binding=function(h){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(h){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},function(n,s,o){(function(i){function a(d,c,u,p,g,N,x,C){if(l(c),!d){var b;if(c===void 0)b=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[u,p,g,N,x,C],v=0;b=new Error(c.replace(/%s/g,function(){return m[v++]})),b.name="Invariant Violation"}throw b.framesToPop=1,b}}var l=function(d){};i.env.NODE_ENV!=="production"&&(l=function(d){if(d===void 0)throw new Error("invariant requires an error message argument")}),n.exports=a}).call(s,o(1))},function(n,s,o){(function(i){var a=o(9),l=a;if(i.env.NODE_ENV!=="production"){var d=function(c){for(var u=arguments.length,p=Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];var N=0,x="Warning: "+c.replace(/%s/g,function(){return p[N++]});typeof console<"u"&&console.error(x);try{throw new Error(x)}catch{}};l=function(c,u){if(u===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(u.indexOf("Failed Composite propType: ")!==0&&!c){for(var p=arguments.length,g=Array(p>2?p-2:0),N=2;N<p;N++)g[N-2]=arguments[N];d.apply(void 0,[u].concat(g))}}}n.exports=l}).call(s,o(1))},function(n,s,o){(function(i){function a(j){if(i.env.NODE_ENV!=="production"&&b.call(j,"ref")){var E=Object.getOwnPropertyDescriptor(j,"ref").get;if(E&&E.isReactWarning)return!1}return j.ref!==void 0}function l(j){if(i.env.NODE_ENV!=="production"&&b.call(j,"key")){var E=Object.getOwnPropertyDescriptor(j,"key").get;if(E&&E.isReactWarning)return!1}return j.key!==void 0}function d(j,E){var T=function(){u||(u=!0,i.env.NODE_ENV!=="production"&&x(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",E))};T.isReactWarning=!0,Object.defineProperty(j,"key",{get:T,configurable:!0})}function c(j,E){var T=function(){p||(p=!0,i.env.NODE_ENV!=="production"&&x(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",E))};T.isReactWarning=!0,Object.defineProperty(j,"ref",{get:T,configurable:!0})}var u,p,g=o(6),N=o(7),x=o(3),C=o(8),b=Object.prototype.hasOwnProperty,m=o(15),v={key:!0,ref:!0,__self:!0,__source:!0},h=function(j,E,T,O,_,L,z){var H={$$typeof:m,type:j,key:E,ref:T,props:z,_owner:L};return i.env.NODE_ENV!=="production"&&(H._store={},C?(Object.defineProperty(H._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(H,"_self",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.defineProperty(H,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_})):(H._store.validated=!1,H._self=O,H._source=_),Object.freeze&&(Object.freeze(H.props),Object.freeze(H))),H};h.createElement=function(j,E,T){var O,_={},L=null,z=null,H=null,te=null;if(E!=null){a(E)&&(z=E.ref),l(E)&&(L=""+E.key),H=E.__self===void 0?null:E.__self,te=E.__source===void 0?null:E.__source;for(O in E)b.call(E,O)&&!v.hasOwnProperty(O)&&(_[O]=E[O])}var Q=arguments.length-2;if(Q===1)_.children=T;else if(Q>1){for(var Z=Array(Q),D=0;D<Q;D++)Z[D]=arguments[D+2];i.env.NODE_ENV!=="production"&&Object.freeze&&Object.freeze(Z),_.children=Z}if(j&&j.defaultProps){var U=j.defaultProps;for(O in U)_[O]===void 0&&(_[O]=U[O])}if(i.env.NODE_ENV!=="production"&&(L||z)&&(typeof _.$$typeof>"u"||_.$$typeof!==m)){var G=typeof j=="function"?j.displayName||j.name||"Unknown":j;L&&d(_,G),z&&c(_,G)}return h(j,L,z,H,te,N.current,_)},h.createFactory=function(j){var E=h.createElement.bind(null,j);return E.type=j,E},h.cloneAndReplaceKey=function(j,E){var T=h(j.type,E,j.ref,j._self,j._source,j._owner,j.props);return T},h.cloneElement=function(j,E,T){var O,_=g({},j.props),L=j.key,z=j.ref,H=j._self,te=j._source,Q=j._owner;if(E!=null){a(E)&&(z=E.ref,Q=N.current),l(E)&&(L=""+E.key);var Z;j.type&&j.type.defaultProps&&(Z=j.type.defaultProps);for(O in E)b.call(E,O)&&!v.hasOwnProperty(O)&&(E[O]===void 0&&Z!==void 0?_[O]=Z[O]:_[O]=E[O])}var D=arguments.length-2;if(D===1)_.children=T;else if(D>1){for(var U=Array(D),G=0;G<D;G++)U[G]=arguments[G+2];_.children=U}return h(j.type,L,z,H,te,Q,_)},h.isValidElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===m},n.exports=h}).call(s,o(1))},function(n,s){function o(i){for(var a=arguments.length-1,l="Minified React error #"+i+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+i,d=0;d<a;d++)l+="&args[]="+encodeURIComponent(arguments[d+1]);l+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var c=new Error(l);throw c.name="Invariant Violation",c.framesToPop=1,c}n.exports=o},function(n,s){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function o(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function i(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var u={},p=0;p<10;p++)u["_"+String.fromCharCode(p)]=p;var g=Object.getOwnPropertyNames(u).map(function(x){return u[x]});if(g.join("")!=="0123456789")return!1;var N={};return"abcdefghijklmnopqrst".split("").forEach(function(x){N[x]=x}),Object.keys(Object.assign({},N)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;n.exports=i()?Object.assign:function(c,u){for(var p,g,N=o(c),x=1;x<arguments.length;x++){p=Object(arguments[x]);for(var C in p)l.call(p,C)&&(N[C]=p[C]);if(a){g=a(p);for(var b=0;b<g.length;b++)d.call(p,g[b])&&(N[g[b]]=p[g[b]])}}return N}},function(n,s){var o={current:null};n.exports=o},function(n,s,o){(function(i){var a=!1;if(i.env.NODE_ENV!=="production")try{Object.defineProperty({},"x",{get:function(){}}),a=!0}catch{}n.exports=a}).call(s,o(1))},function(n,s){function o(a){return function(){return a}}var i=function(){};i.thatReturns=o,i.thatReturnsFalse=o(!1),i.thatReturnsTrue=o(!0),i.thatReturnsNull=o(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(a){return a},n.exports=i},function(n,s,o){(function(i){function a(D){var U=Function.prototype.toString,G=Object.prototype.hasOwnProperty,A=RegExp("^"+U.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var R=U.call(D);return A.test(R)}catch{return!1}}function l(D){var U=g(D);if(U){var G=U.childIDs;N(D),G.forEach(l)}}function d(D,U,G){return`
in `+(D||"Unknown")+(U?" (at "+U.fileName.replace(/^.*[\\\/]/,"")+":"+U.lineNumber+")":G?" (created by "+G+")":"")}function c(D){return D==null?"#empty":typeof D=="string"||typeof D=="number"?"#text":typeof D.type=="string"?D.type:D.type.displayName||D.type.name||"Unknown"}function u(D){var U,G=Z.getDisplayName(D),A=Z.getElement(D),R=Z.getOwnerID(D);return R&&(U=Z.getDisplayName(R)),i.env.NODE_ENV!=="production"&&E(A,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",D),d(G,A&&A._source,U)}var p,g,N,x,C,b,m,v=o(5),h=o(7),j=o(2),E=o(3),T=typeof Array.from=="function"&&typeof Map=="function"&&a(Map)&&Map.prototype!=null&&typeof Map.prototype.keys=="function"&&a(Map.prototype.keys)&&typeof Set=="function"&&a(Set)&&Set.prototype!=null&&typeof Set.prototype.keys=="function"&&a(Set.prototype.keys);if(T){var O=new Map,_=new Set;p=function(D,U){O.set(D,U)},g=function(D){return O.get(D)},N=function(D){O.delete(D)},x=function(){return Array.from(O.keys())},C=function(D){_.add(D)},b=function(D){_.delete(D)},m=function(){return Array.from(_.keys())}}else{var L={},z={},H=function(D){return"."+D},te=function(D){return parseInt(D.substr(1),10)};p=function(D,U){var G=H(D);L[G]=U},g=function(D){var U=H(D);return L[U]},N=function(D){var U=H(D);delete L[U]},x=function(){return Object.keys(L).map(te)},C=function(D){var U=H(D);z[U]=!0},b=function(D){var U=H(D);delete z[U]},m=function(){return Object.keys(z).map(te)}}var Q=[],Z={onSetChildren:function(D,U){var G=g(D);G||(i.env.NODE_ENV!=="production"?j(!1,"Item must have been set"):v("144")),G.childIDs=U;for(var A=0;A<U.length;A++){var R=U[A],M=g(R);M||(i.env.NODE_ENV!=="production"?j(!1,"Expected hook events to fire for the child before its parent includes it in onSetChildren()."):v("140")),M.childIDs==null&&typeof M.element=="object"&&M.element!=null&&(i.env.NODE_ENV!=="production"?j(!1,"Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren()."):v("141")),M.isMounted||(i.env.NODE_ENV!=="production"?j(!1,"Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren()."):v("71")),M.parentID==null&&(M.parentID=D),M.parentID!==D&&(i.env.NODE_ENV!=="production"?j(!1,"Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",R,M.parentID,D):v("142",R,M.parentID,D))}},onBeforeMountComponent:function(D,U,G){var A={element:U,parentID:G,text:null,childIDs:[],isMounted:!1,updateCount:0};p(D,A)},onBeforeUpdateComponent:function(D,U){var G=g(D);G&&G.isMounted&&(G.element=U)},onMountComponent:function(D){var U=g(D);U||(i.env.NODE_ENV!=="production"?j(!1,"Item must have been set"):v("144")),U.isMounted=!0;var G=U.parentID===0;G&&C(D)},onUpdateComponent:function(D){var U=g(D);U&&U.isMounted&&U.updateCount++},onUnmountComponent:function(D){var U=g(D);if(U){U.isMounted=!1;var G=U.parentID===0;G&&b(D)}Q.push(D)},purgeUnmountedComponents:function(){if(!Z._preventPurging){for(var D=0;D<Q.length;D++){var U=Q[D];l(U)}Q.length=0}},isMounted:function(D){var U=g(D);return!!U&&U.isMounted},getCurrentStackAddendum:function(D){var U="";if(D){var G=c(D),A=D._owner;U+=d(G,D._source,A&&A.getName())}var R=h.current,M=R&&R._debugID;return U+=Z.getStackAddendumByID(M)},getStackAddendumByID:function(D){for(var U="";D;)U+=u(D),D=Z.getParentID(D);return U},getChildIDs:function(D){var U=g(D);return U?U.childIDs:[]},getDisplayName:function(D){var U=Z.getElement(D);return U?c(U):null},getElement:function(D){var U=g(D);return U?U.element:null},getOwnerID:function(D){var U=Z.getElement(D);return U&&U._owner?U._owner._debugID:null},getParentID:function(D){var U=g(D);return U?U.parentID:null},getSource:function(D){var U=g(D),G=U?U.element:null,A=G!=null?G._source:null;return A},getText:function(D){var U=Z.getElement(D);return typeof U=="string"?U:typeof U=="number"?""+U:null},getUpdateCount:function(D){var U=g(D);return U?U.updateCount:0},getRootIDs:m,getRegisteredIDs:x,pushNonStandardWarningStack:function(D,U){if(typeof console.reactStack=="function"){var G=[],A=h.current,R=A&&A._debugID;try{for(D&&G.push({name:R?Z.getDisplayName(R):null,fileName:U?U.fileName:null,lineNumber:U?U.lineNumber:null});R;){var M=Z.getElement(R),B=Z.getParentID(R),W=Z.getOwnerID(R),K=W?Z.getDisplayName(W):null,Y=M&&M._source;G.push({name:K,fileName:Y?Y.fileName:null,lineNumber:Y?Y.lineNumber:null}),R=B}}catch{}console.reactStack(G)}},popNonStandardWarningStack:function(){typeof console.reactStackEnd=="function"&&console.reactStackEnd()}};n.exports=Z}).call(s,o(1))},function(n,s,o){(function(i){var a=function(){};if(i.env.NODE_ENV!=="production"){var l=function(d){for(var c=arguments.length,u=Array(c>1?c-1:0),p=1;p<c;p++)u[p-1]=arguments[p];var g=0,N="Warning: "+d.replace(/%s/g,function(){return u[g++]});typeof console<"u"&&console.warn(N);try{throw new Error(N)}catch{}};a=function(d,c){if(c===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!d){for(var u=arguments.length,p=Array(u>2?u-2:0),g=2;g<u;g++)p[g-2]=arguments[g];l.apply(void 0,[c].concat(p))}}}n.exports=a}).call(s,o(1))},function(n,s,o){(function(i){var a={};i.env.NODE_ENV!=="production"&&Object.freeze(a),n.exports=a}).call(s,o(1))},function(n,s){var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";n.exports=o},function(n,s,o){(function(i){function a(h,j,E){this.props=h,this.context=j,this.refs=N,this.updater=E||p}function l(h,j,E){this.props=h,this.context=j,this.refs=N,this.updater=E||p}function d(){}var c=o(5),u=o(6),p=o(17),g=o(8),N=o(12),x=o(2),C=o(11);if(a.prototype.isReactComponent={},a.prototype.setState=function(h,j){typeof h!="object"&&typeof h!="function"&&h!=null&&(i.env.NODE_ENV!=="production"?x(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):c("85")),this.updater.enqueueSetState(this,h),j&&this.updater.enqueueCallback(this,j,"setState")},a.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this),h&&this.updater.enqueueCallback(this,h,"forceUpdate")},i.env.NODE_ENV!=="production"){var b={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},m=function(h,j){g&&Object.defineProperty(a.prototype,h,{get:function(){C(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])}})};for(var v in b)b.hasOwnProperty(v)&&m(v,b[v])}d.prototype=a.prototype,l.prototype=new d,l.prototype.constructor=l,u(l.prototype,a.prototype),l.prototype.isPureReactComponent=!0,n.exports={Component:a,PureComponent:l}}).call(s,o(1))},function(n,s){var o=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103;n.exports=o},function(n,s,o){(function(i){function a(){if(g.current){var T=g.current.getName();if(T)return" Check the render method of `"+T+"`."}return""}function l(T){if(T!=null&&T.__source!==void 0){var O=T.__source,_=O.fileName.replace(/^.*[\\\/]/,""),L=O.lineNumber;return" Check your code at "+_+":"+L+"."}return""}function d(T){var O=a();if(!O){var _=typeof T=="string"?T:T.displayName||T.name;_&&(O=" Check the top-level render call using <"+_+">.")}return O}function c(T,O){if(T._store&&!T._store.validated&&T.key==null){T._store.validated=!0;var _=j.uniqueKey||(j.uniqueKey={}),L=d(O);if(!_[L]){_[L]=!0;var z="";T&&T._owner&&T._owner!==g.current&&(z=" It was passed a child from "+T._owner.getName()+"."),i.env.NODE_ENV!=="production"&&v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',L,z,N.getCurrentStackAddendum(T))}}}function u(T,O){if(typeof T=="object"){if(Array.isArray(T))for(var _=0;_<T.length;_++){var L=T[_];x.isValidElement(L)&&c(L,O)}else if(x.isValidElement(T))T._store&&(T._store.validated=!0);else if(T){var z=m(T);if(z&&z!==T.entries)for(var H,te=z.call(T);!(H=te.next()).done;)x.isValidElement(H.value)&&c(H.value,O)}}}function p(T){var O=T.type;if(typeof O=="function"){var _=O.displayName||O.name;O.propTypes&&C(O.propTypes,T.props,"prop",_,T,null),typeof O.getDefaultProps=="function"&&(i.env.NODE_ENV!=="production"&&v(O.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}var g=o(7),N=o(10),x=o(4),C=o(32),b=o(8),m=o(18),v=o(3),h=o(11),j={},E={createElement:function(T,O,_){var L=typeof T=="string"||typeof T=="function";if(!L&&typeof T!="function"&&typeof T!="string"){var z="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in.");var H=l(O);z+=H||a(),z+=N.getCurrentStackAddendum();var te=O!=null&&O.__source!==void 0?O.__source:null;N.pushNonStandardWarningStack(!0,te),i.env.NODE_ENV!=="production"&&v(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T==null?T:typeof T,z),N.popNonStandardWarningStack()}var Q=x.createElement.apply(this,arguments);if(Q==null)return Q;if(L)for(var Z=2;Z<arguments.length;Z++)u(arguments[Z],T);return p(Q),Q},createFactory:function(T){var O=E.createElement.bind(null,T);return O.type=T,i.env.NODE_ENV!=="production"&&b&&Object.defineProperty(O,"type",{enumerable:!1,get:function(){return h(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:T}),T}}),O},cloneElement:function(T,O,_){for(var L=x.cloneElement.apply(this,arguments),z=2;z<arguments.length;z++)u(arguments[z],L.type);return p(L),L}};n.exports=E}).call(s,o(1))},function(n,s,o){(function(i){function a(c,u){if(i.env.NODE_ENV!=="production"){var p=c.constructor;i.env.NODE_ENV!=="production"&&l(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",u,u,p&&(p.displayName||p.name)||"ReactClass")}}var l=o(3),d={isMounted:function(c){return!1},enqueueCallback:function(c,u){},enqueueForceUpdate:function(c){a(c,"forceUpdate")},enqueueReplaceState:function(c,u){a(c,"replaceState")},enqueueSetState:function(c,u){a(c,"setState")}};n.exports=d}).call(s,o(1))},function(n,s){function o(l){var d=l&&(i&&l[i]||l[a]);if(typeof d=="function")return d}var i=typeof Symbol=="function"&&Symbol.iterator,a="@@iterator";n.exports=o},function(n,s,o){(function(i){function a(x){return x}function l(x,C,b){function m(A,R,M){for(var B in R)R.hasOwnProperty(B)&&i.env.NODE_ENV!=="production"&&p(typeof R[B]=="function","%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",A.displayName||"ReactClass",g[M],B)}function v(A,R){var M=te.hasOwnProperty(R)?te[R]:null;U.hasOwnProperty(R)&&u(M==="OVERRIDE_BASE","ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",R),A&&u(M==="DEFINE_MANY"||M==="DEFINE_MANY_MERGED","ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",R)}function h(A,R){if(R){u(typeof R!="function","ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!C(R),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var M=A.prototype,B=M.__reactAutoBindPairs;R.hasOwnProperty(N)&&Q.mixins(A,R.mixins);for(var W in R)if(R.hasOwnProperty(W)&&W!==N){var K=R[W],Y=M.hasOwnProperty(W);if(v(Y,W),Q.hasOwnProperty(W))Q[W](A,K);else{var ee=te.hasOwnProperty(W),re=typeof K=="function",ne=re&&!ee&&!Y&&R.autobind!==!1;if(ne)B.push(W,K),M[W]=K;else if(Y){var se=te[W];u(ee&&(se==="DEFINE_MANY_MERGED"||se==="DEFINE_MANY"),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",se,W),se==="DEFINE_MANY_MERGED"?M[W]=T(M[W],K):se==="DEFINE_MANY"&&(M[W]=O(M[W],K))}else M[W]=K,i.env.NODE_ENV!=="production"&&typeof K=="function"&&R.displayName&&(M[W].displayName=R.displayName+"_"+W)}}}else if(i.env.NODE_ENV!=="production"){var le=typeof R,de=le==="object"&&R!==null;i.env.NODE_ENV!=="production"&&p(de,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",A.displayName||"ReactClass",R===null?null:le)}}function j(A,R){if(R)for(var M in R){var B=R[M];if(R.hasOwnProperty(M)){var W=M in Q;u(!W,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',M);var K=M in A;u(!K,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",M),A[M]=B}}}function E(A,R){u(A&&R&&typeof A=="object"&&typeof R=="object","mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var M in R)R.hasOwnProperty(M)&&(u(A[M]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",M),A[M]=R[M]);return A}function T(A,R){return function(){var M=A.apply(this,arguments),B=R.apply(this,arguments);if(M==null)return B;if(B==null)return M;var W={};return E(W,M),E(W,B),W}}function O(A,R){return function(){A.apply(this,arguments),R.apply(this,arguments)}}function _(A,R){var M=R.bind(A);if(i.env.NODE_ENV!=="production"){M.__reactBoundContext=A,M.__reactBoundMethod=R,M.__reactBoundArguments=null;var B=A.constructor.displayName,W=M.bind;M.bind=function(K){for(var Y=arguments.length,ee=Array(Y>1?Y-1:0),re=1;re<Y;re++)ee[re-1]=arguments[re];if(K!==A&&K!==null)i.env.NODE_ENV!=="production"&&p(!1,"bind(): React component methods may only be bound to the component instance. See %s",B);else if(!ee.length)return i.env.NODE_ENV!=="production"&&p(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",B),M;var ne=W.apply(M,arguments);return ne.__reactBoundContext=A,ne.__reactBoundMethod=R,ne.__reactBoundArguments=ee,ne}}return M}function L(A){for(var R=A.__reactAutoBindPairs,M=0;M<R.length;M+=2){var B=R[M],W=R[M+1];A[B]=_(A,W)}}function z(A){var R=function(B,W,K){i.env.NODE_ENV!=="production"&&p(this instanceof R,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&L(this),this.props=B,this.context=W,this.refs=c,this.updater=K||b,this.state=null;var Y=this.getInitialState?this.getInitialState():null;i.env.NODE_ENV!=="production"&&Y===void 0&&this.getInitialState._isMockFunction&&(Y=null),u(typeof Y=="object"&&!Array.isArray(Y),"%s.getInitialState(): must return an object or null",R.displayName||"ReactCompositeComponent"),this.state=Y};R.prototype=new G,R.prototype.constructor=R,R.prototype.__reactAutoBindPairs=[],H.forEach(h.bind(null,R)),h(R,Z),h(R,A),h(R,D),R.getDefaultProps&&(R.defaultProps=R.getDefaultProps()),i.env.NODE_ENV!=="production"&&(R.getDefaultProps&&(R.getDefaultProps.isReactClassApproved={}),R.prototype.getInitialState&&(R.prototype.getInitialState.isReactClassApproved={})),u(R.prototype.render,"createClass(...): Class specification must implement a `render` method."),i.env.NODE_ENV!=="production"&&(p(!R.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",A.displayName||"A component"),p(!R.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",A.displayName||"A component"));for(var M in te)R.prototype[M]||(R.prototype[M]=null);return R}var H=[],te={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},Q={displayName:function(A,R){A.displayName=R},mixins:function(A,R){if(R)for(var M=0;M<R.length;M++)h(A,R[M])},childContextTypes:function(A,R){i.env.NODE_ENV!=="production"&&m(A,R,"childContext"),A.childContextTypes=d({},A.childContextTypes,R)},contextTypes:function(A,R){i.env.NODE_ENV!=="production"&&m(A,R,"context"),A.contextTypes=d({},A.contextTypes,R)},getDefaultProps:function(A,R){A.getDefaultProps?A.getDefaultProps=T(A.getDefaultProps,R):A.getDefaultProps=R},propTypes:function(A,R){i.env.NODE_ENV!=="production"&&m(A,R,"prop"),A.propTypes=d({},A.propTypes,R)},statics:function(A,R){j(A,R)},autobind:function(){}},Z={componentDidMount:function(){this.__isMounted=!0}},D={componentWillUnmount:function(){this.__isMounted=!1}},U={replaceState:function(A,R){this.updater.enqueueReplaceState(this,A,R)},isMounted:function(){return i.env.NODE_ENV!=="production"&&(p(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0),!!this.__isMounted}},G=function(){};return d(G.prototype,x.prototype,U),z}var d=o(6),c=o(12),u=o(2);if(i.env.NODE_ENV!=="production")var p=o(3);var g,N="mixins";g=i.env.NODE_ENV!=="production"?{prop:"prop",context:"context",childContext:"child context"}:{},n.exports=l}).call(s,o(1))},function(n,s,o){(function(i){function a(p,g,N,x,C){if(i.env.NODE_ENV!=="production"){for(var b in p)if(p.hasOwnProperty(b)){var m;try{l(typeof p[b]=="function","%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",x||"React class",N,b),m=p[b](g,b,x,N,null,c)}catch(h){m=h}if(d(!m||m instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",N,b,typeof m),m instanceof Error&&!(m.message in u)){u[m.message]=!0;var v=C?C():"";d(!1,"Failed %s type: %s%s",N,m.message,v??"")}}}}if(i.env.NODE_ENV!=="production")var l=o(2),d=o(3),c=o(13),u={};n.exports=a}).call(s,o(1))},function(n,s,o){var i=o(22);n.exports=function(a){var l=!1;return i(a,l)}},function(n,s,o){(function(i){var a=o(9),l=o(2),d=o(3),c=o(13),u=o(20);n.exports=function(p,g){function N(B){var W=B&&(G&&B[G]||B[A]);if(typeof W=="function")return W}function x(B,W){return B===W?B!==0||1/B===1/W:B!==B&&W!==W}function C(B){this.message=B,this.stack=""}function b(B){function W(re,ne,se,le,de,ge,Be){if(le=le||R,ge=ge||se,Be!==c){if(g)l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(i.env.NODE_ENV!=="production"&&typeof console<"u"){var Ct=le+":"+se;!K[Ct]&&Y<3&&(d(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",ge,le),K[Ct]=!0,Y++)}}return ne[se]==null?re?new C(ne[se]===null?"The "+de+" `"+ge+"` is marked as required "+("in `"+le+"`, but its value is `null`."):"The "+de+" `"+ge+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:B(ne,se,le,de,ge)}if(i.env.NODE_ENV!=="production")var K={},Y=0;var ee=W.bind(null,!1);return ee.isRequired=W.bind(null,!0),ee}function m(B){function W(K,Y,ee,re,ne,se){var le=K[Y],de=Q(le);if(de!==B){var ge=Z(le);return new C("Invalid "+re+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+ee+"`, expected ")+("`"+B+"`."))}return null}return b(W)}function v(){return b(a.thatReturnsNull)}function h(B){function W(K,Y,ee,re,ne){if(typeof B!="function")return new C("Property `"+ne+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var se=K[Y];if(!Array.isArray(se)){var le=Q(se);return new C("Invalid "+re+" `"+ne+"` of type "+("`"+le+"` supplied to `"+ee+"`, expected an array."))}for(var de=0;de<se.length;de++){var ge=B(se,de,ee,re,ne+"["+de+"]",c);if(ge instanceof Error)return ge}return null}return b(W)}function j(){function B(W,K,Y,ee,re){var ne=W[K];if(!p(ne)){var se=Q(ne);return new C("Invalid "+ee+" `"+re+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return b(B)}function E(B){function W(K,Y,ee,re,ne){if(!(K[Y]instanceof B)){var se=B.name||R,le=U(K[Y]);return new C("Invalid "+re+" `"+ne+"` of type "+("`"+le+"` supplied to `"+ee+"`, expected ")+("instance of `"+se+"`."))}return null}return b(W)}function T(B){function W(K,Y,ee,re,ne){for(var se=K[Y],le=0;le<B.length;le++)if(x(se,B[le]))return null;var de=JSON.stringify(B);return new C("Invalid "+re+" `"+ne+"` of value `"+se+"` "+("supplied to `"+ee+"`, expected one of "+de+"."))}return Array.isArray(B)?b(W):(i.env.NODE_ENV!=="production"&&d(!1,"Invalid argument supplied to oneOf, expected an instance of array."),a.thatReturnsNull)}function O(B){function W(K,Y,ee,re,ne){if(typeof B!="function")return new C("Property `"+ne+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var se=K[Y],le=Q(se);if(le!=="object")return new C("Invalid "+re+" `"+ne+"` of type "+("`"+le+"` supplied to `"+ee+"`, expected an object."));for(var de in se)if(se.hasOwnProperty(de)){var ge=B(se,de,ee,re,ne+"."+de,c);if(ge instanceof Error)return ge}return null}return b(W)}function _(B){function W(ee,re,ne,se,le){for(var de=0;de<B.length;de++){var ge=B[de];if(ge(ee,re,ne,se,le,c)==null)return null}return new C("Invalid "+se+" `"+le+"` supplied to "+("`"+ne+"`."))}if(!Array.isArray(B))return i.env.NODE_ENV!=="production"&&d(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),a.thatReturnsNull;for(var K=0;K<B.length;K++){var Y=B[K];if(typeof Y!="function")return d(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",D(Y),K),a.thatReturnsNull}return b(W)}function L(){function B(W,K,Y,ee,re){return H(W[K])?null:new C("Invalid "+ee+" `"+re+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return b(B)}function z(B){function W(K,Y,ee,re,ne){var se=K[Y],le=Q(se);if(le!=="object")return new C("Invalid "+re+" `"+ne+"` of type `"+le+"` "+("supplied to `"+ee+"`, expected `object`."));for(var de in B){var ge=B[de];if(ge){var Be=ge(se,de,ee,re,ne+"."+de,c);if(Be)return Be}}return null}return b(W)}function H(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(H);if(B===null||p(B))return!0;var W=N(B);if(!W)return!1;var K,Y=W.call(B);if(W!==B.entries){for(;!(K=Y.next()).done;)if(!H(K.value))return!1}else for(;!(K=Y.next()).done;){var ee=K.value;if(ee&&!H(ee[1]))return!1}return!0;default:return!1}}function te(B,W){return B==="symbol"||W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol}function Q(B){var W=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":te(W,B)?"symbol":W}function Z(B){if(typeof B>"u"||B===null)return""+B;var W=Q(B);if(W==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return W}function D(B){var W=Z(B);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(B){return B.constructor&&B.constructor.name?B.constructor.name:R}var G=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator",R="<<anonymous>>",M={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:v(),arrayOf:h,element:j(),instanceOf:E,node:L(),objectOf:O,oneOf:T,oneOfType:_,shape:z};return C.prototype=Error.prototype,M.checkPropTypes=u,M.PropTypes=M,M}}).call(s,o(1))},function(n,s){function o(l){var d=/[=:]/g,c={"=":"=0",":":"=2"},u=(""+l).replace(d,function(p){return c[p]});return"$"+u}function i(l){var d=/(=0|=2)/g,c={"=0":"=","=2":":"},u=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+u).replace(d,function(p){return c[p]})}var a={escape:o,unescape:i};n.exports=a},function(n,s,o){(function(i){var a=o(5),l=o(2),d=function(m){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,m),h}return new v(m)},c=function(m,v){var h=this;if(h.instancePool.length){var j=h.instancePool.pop();return h.call(j,m,v),j}return new h(m,v)},u=function(m,v,h){var j=this;if(j.instancePool.length){var E=j.instancePool.pop();return j.call(E,m,v,h),E}return new j(m,v,h)},p=function(m,v,h,j){var E=this;if(E.instancePool.length){var T=E.instancePool.pop();return E.call(T,m,v,h,j),T}return new E(m,v,h,j)},g=function(m){var v=this;m instanceof v||(i.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),m.destructor(),v.instancePool.length<v.poolSize&&v.instancePool.push(m)},N=10,x=d,C=function(m,v){var h=m;return h.instancePool=[],h.getPooled=v||x,h.poolSize||(h.poolSize=N),h.release=g,h},b={addPoolingTo:C,oneArgumentPooler:d,twoArgumentPooler:c,threeArgumentPooler:u,fourArgumentPooler:p};n.exports=b}).call(s,o(1))},function(n,s,o){(function(i){var a=o(6),l=o(14),d=o(26),c=o(27),u=o(4),p=o(29),g=o(31),N=o(33),x=o(34),C=u.createElement,b=u.createFactory,m=u.cloneElement;if(i.env.NODE_ENV!=="production"){var v=o(11),h=o(8),j=o(16),E=!1;C=j.createElement,b=j.createFactory,m=j.cloneElement}var T=a,O=function(Q){return Q};if(i.env.NODE_ENV!=="production"){var _=!1,L=!1;T=function(){return v(_,"React.__spread is deprecated and should not be used. Use Object.assign directly or another helper function with similar semantics. You may be seeing this warning due to your compiler. See https://fb.me/react-spread-deprecation for more details."),_=!0,a.apply(null,arguments)},O=function(Q){return v(L,"React.createMixin is deprecated and should not be used. In React v16.0, it will be removed. You can use this mixin directly instead. See https://fb.me/createmixin-was-never-implemented for more info."),L=!0,Q}}var z={Children:{map:d.map,forEach:d.forEach,count:d.count,toArray:d.toArray,only:x},Component:l.Component,PureComponent:l.PureComponent,createElement:C,cloneElement:m,isValidElement:u.isValidElement,PropTypes:p,createClass:N,createFactory:b,createMixin:O,DOM:c,version:g,__spread:T};if(i.env.NODE_ENV!=="production"){var H=!1;h&&(Object.defineProperty(z,"PropTypes",{get:function(){return v(E,"Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs"),E=!0,p}}),Object.defineProperty(z,"createClass",{get:function(){return v(H,"Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class"),H=!0,N}})),z.DOM={};var te=!1;Object.keys(c).forEach(function(Q){z.DOM[Q]=function(){return te||(v(!1,"Accessing factories like React.DOM.%s has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead. Version 1.0 provides a drop-in replacement. For more info, see https://fb.me/react-dom-factories",Q),te=!0),c[Q].apply(c,arguments)}})}n.exports=z}).call(s,o(1))},function(n,s,o){function i(_){return(""+_).replace(T,"$&/")}function a(_,L){this.func=_,this.context=L,this.count=0}function l(_,L,z){var H=_.func,te=_.context;H.call(te,L,_.count++)}function d(_,L,z){if(_==null)return _;var H=a.getPooled(L,z);h(_,l,H),a.release(H)}function c(_,L,z,H){this.result=_,this.keyPrefix=L,this.func=z,this.context=H,this.count=0}function u(_,L,z){var H=_.result,te=_.keyPrefix,Q=_.func,Z=_.context,D=Q.call(Z,L,_.count++);Array.isArray(D)?p(D,H,z,v.thatReturnsArgument):D!=null&&(m.isValidElement(D)&&(D=m.cloneAndReplaceKey(D,te+(!D.key||L&&L.key===D.key?"":i(D.key)+"/")+z)),H.push(D))}function p(_,L,z,H,te){var Q="";z!=null&&(Q=i(z)+"/");var Z=c.getPooled(L,Q,H,te);h(_,u,Z),c.release(Z)}function g(_,L,z){if(_==null)return _;var H=[];return p(_,H,null,L,z),H}function N(_,L,z){return null}function x(_,L){return h(_,N,null)}function C(_){var L=[];return p(_,L,null,v.thatReturnsArgument),L}var b=o(24),m=o(4),v=o(9),h=o(35),j=b.twoArgumentPooler,E=b.fourArgumentPooler,T=/\/+/g;a.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},b.addPoolingTo(a,j),c.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},b.addPoolingTo(c,E);var O={forEach:d,map:g,mapIntoWithKeyPrefixInternal:p,count:x,toArray:C};n.exports=O},function(n,s,o){(function(i){var a=o(4),l=a.createFactory;if(i.env.NODE_ENV!=="production"){var d=o(16);l=d.createFactory}var c={a:l("a"),abbr:l("abbr"),address:l("address"),area:l("area"),article:l("article"),aside:l("aside"),audio:l("audio"),b:l("b"),base:l("base"),bdi:l("bdi"),bdo:l("bdo"),big:l("big"),blockquote:l("blockquote"),body:l("body"),br:l("br"),button:l("button"),canvas:l("canvas"),caption:l("caption"),cite:l("cite"),code:l("code"),col:l("col"),colgroup:l("colgroup"),data:l("data"),datalist:l("datalist"),dd:l("dd"),del:l("del"),details:l("details"),dfn:l("dfn"),dialog:l("dialog"),div:l("div"),dl:l("dl"),dt:l("dt"),em:l("em"),embed:l("embed"),fieldset:l("fieldset"),figcaption:l("figcaption"),figure:l("figure"),footer:l("footer"),form:l("form"),h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),head:l("head"),header:l("header"),hgroup:l("hgroup"),hr:l("hr"),html:l("html"),i:l("i"),iframe:l("iframe"),img:l("img"),input:l("input"),ins:l("ins"),kbd:l("kbd"),keygen:l("keygen"),label:l("label"),legend:l("legend"),li:l("li"),link:l("link"),main:l("main"),map:l("map"),mark:l("mark"),menu:l("menu"),menuitem:l("menuitem"),meta:l("meta"),meter:l("meter"),nav:l("nav"),noscript:l("noscript"),object:l("object"),ol:l("ol"),optgroup:l("optgroup"),option:l("option"),output:l("output"),p:l("p"),param:l("param"),picture:l("picture"),pre:l("pre"),progress:l("progress"),q:l("q"),rp:l("rp"),rt:l("rt"),ruby:l("ruby"),s:l("s"),samp:l("samp"),script:l("script"),section:l("section"),select:l("select"),small:l("small"),source:l("source"),span:l("span"),strong:l("strong"),style:l("style"),sub:l("sub"),summary:l("summary"),sup:l("sup"),table:l("table"),tbody:l("tbody"),td:l("td"),textarea:l("textarea"),tfoot:l("tfoot"),th:l("th"),thead:l("thead"),time:l("time"),title:l("title"),tr:l("tr"),track:l("track"),u:l("u"),ul:l("ul"),var:l("var"),video:l("video"),wbr:l("wbr"),circle:l("circle"),clipPath:l("clipPath"),defs:l("defs"),ellipse:l("ellipse"),g:l("g"),image:l("image"),line:l("line"),linearGradient:l("linearGradient"),mask:l("mask"),path:l("path"),pattern:l("pattern"),polygon:l("polygon"),polyline:l("polyline"),radialGradient:l("radialGradient"),rect:l("rect"),stop:l("stop"),svg:l("svg"),text:l("text"),tspan:l("tspan")};n.exports=c}).call(s,o(1))},function(n,s,o){(function(i){var a={};i.env.NODE_ENV!=="production"&&(a={prop:"prop",context:"context",childContext:"child context"}),n.exports=a}).call(s,o(1))},function(n,s,o){var i=o(4),a=i.isValidElement,l=o(21);n.exports=l(a)},function(n,s){var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";n.exports=o},function(n,s){n.exports="15.6.1"},function(n,s,o){(function(i){function a(x,C,b,m,v,h){for(var j in x)if(x.hasOwnProperty(j)){var E;try{typeof x[j]!="function"&&(i.env.NODE_ENV!=="production"?p(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",m||"React class",c[b],j):d("84",m||"React class",c[b],j)),E=x[j](C,j,m,b,null,u)}catch(O){E=O}if(i.env.NODE_ENV!=="production"&&g(!E||E instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",c[b],j,typeof E),E instanceof Error&&!(E.message in N)){N[E.message]=!0;var T="";i.env.NODE_ENV!=="production"&&(l||(l=o(10)),h!==null?T=l.getStackAddendumByID(h):v!==null&&(T=l.getCurrentStackAddendum(v))),i.env.NODE_ENV!=="production"&&g(!1,"Failed %s type: %s%s",b,E.message,T)}}}var l,d=o(5),c=o(28),u=o(30),p=o(2),g=o(3);typeof i<"u"&&i.env&&i.env.NODE_ENV==="test"&&(l=o(10));var N={};n.exports=a}).call(s,o(1))},function(n,s,o){var i=o(14),a=i.Component,l=o(4),d=l.isValidElement,c=o(17),u=o(19);n.exports=u(a,d,c)},function(n,s,o){(function(i){function a(u){return d.isValidElement(u)||(i.env.NODE_ENV!=="production"?c(!1,"React.Children.only expected to receive a single React element child."):l("143")),u}var l=o(5),d=o(4),c=o(2);n.exports=a}).call(s,o(1))},function(n,s,o){(function(i){function a(h,j){return h&&typeof h=="object"&&h.key!=null?x.escape(h.key):j.toString(36)}function l(h,j,E,T){var O=typeof h;if(O!=="undefined"&&O!=="boolean"||(h=null),h===null||O==="string"||O==="number"||O==="object"&&h.$$typeof===p)return E(T,h,j===""?b+a(h,0):j),1;var _,L,z=0,H=j===""?b:j+m;if(Array.isArray(h))for(var te=0;te<h.length;te++)_=h[te],L=H+a(_,te),z+=l(_,L,E,T);else{var Q=g(h);if(Q){var Z,D=Q.call(h);if(Q!==h.entries)for(var U=0;!(Z=D.next()).done;)_=Z.value,L=H+a(_,U++),z+=l(_,L,E,T);else{if(i.env.NODE_ENV!=="production"){var G="";if(u.current){var A=u.current.getName();A&&(G=" Check the render method of `"+A+"`.")}i.env.NODE_ENV!=="production"&&C(v,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead.%s",G),v=!0}for(;!(Z=D.next()).done;){var R=Z.value;R&&(_=R[1],L=H+x.escape(R[0])+m+a(_,0),z+=l(_,L,E,T))}}}else if(O==="object"){var M="";if(i.env.NODE_ENV!=="production"&&(M=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",h._isReactElement&&(M=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),u.current)){var B=u.current.getName();B&&(M+=" Check the render method of `"+B+"`.")}var W=String(h);i.env.NODE_ENV!=="production"?N(!1,"Objects are not valid as a React child (found: %s).%s",W==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":W,M):c("31",W==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":W,M)}}return z}function d(h,j,E){return h==null?0:l(h,"",j,E)}var c=o(5),u=o(7),p=o(15),g=o(18),N=o(2),x=o(23),C=o(3),b=".",m=":",v=!1;n.exports=d}).call(s,o(1))},function(n,s,o){n.exports=o(25)}])})})(rg);var yb=rg.exports;const Na=ko(yb),sg=()=>{const[e,t]=k.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting"),e==="Accounting"&&t("IAB"),e==="IAB"&&t("IAB")},s=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images"),e==="IAB"&&t("Accounting")},o=Ke(),{status:i,error:a}=_e(f=>f.property),{user:l}=_e(f=>({...f.auth})),d=[1,2,3,4,5,6,7,8,9,10],[c,u]=k.useState({propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",IAB:[{title:"IAB Title",URL:"Please enter URL"}],files:[{title:"",file:""}]}),[p,g]=k.useState(!1),N=(f,y)=>{console.log("File received:",f);const w=[...c.images];w[y].file=f.base64,u({...c,images:w})},x=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},C=f=>{const y=c.images.filter((w,F)=>F!==f);u({...c,images:y})},b=(f,y)=>{const w=[...c.images];w[f].title=y.target.value,u({...c,images:w})},m=(f,y,w)=>{const{name:F,value:q}=f.target;if(w==="propertyTaxInfo"){const X=[...c.propertyTaxInfo];X[y][F]=q,u({...c,propertyTaxInfo:X})}else u({...c,[F]:q})},v=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=f=>{const y=c.propertyTaxInfo.filter((w,F)=>F!==f);u({...c,propertyTaxInfo:y})},j=()=>{u(f=>({...f,costPaidAtoB:[...f.costPaidAtoB,{title:"",price:""}]}))},E=f=>{const y=c.costPaidAtoB.filter((w,F)=>F!==f);u(w=>({...w,costPaidAtoB:y}))},T=(f,y,w)=>{const F=[...c.costPaidAtoB];F[f][y]=w,u(q=>({...q,costPaidAtoB:F}))},O=(f,y)=>{let w=f.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,costPaidAtoB:q})}},_=()=>{const f=c.costPaidAtoB.reduce((w,F)=>{const q=parseFloat(F.price)||0;return w+q},0),y=parseFloat(c.purchaseCost)||0;return f+y},L=()=>{u(f=>({...f,credits:[...f.credits,{title:"",price:""}]}))},z=f=>{const y=c.credits.filter((w,F)=>F!==f);u(w=>({...w,credits:y}))},H=(f,y,w)=>{const F=[...c.credits];F[f][y]=w,u(q=>({...q,credits:F}))},te=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,credits:q})}else{const q=c.credits.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,credits:q})}},Q=()=>c.credits.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Z=()=>{const f=c.costPaidAtoB.reduce((F,q)=>{const X=parseFloat(q.price)||0;return F+X},0),y=c.credits.reduce((F,q)=>{const X=parseFloat(q.price)||0;return F+X},0),w=parseFloat(c.purchaseCost)||0;return f+y+w},D=()=>{u(f=>({...f,cashAdjustments:[...f.cashAdjustments,{title:"",price:""}]}))},U=f=>{const y=c.cashAdjustments.filter((w,F)=>F!==f);u(w=>({...w,cashAdjustments:y}))},G=(f,y,w)=>{const F=[...c.cashAdjustments];F[f][y]=w,u(q=>({...q,cashAdjustments:F}))},A=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,cashAdjustments:q})}},R=()=>c.cashAdjustments.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),M=()=>{const f=R(),y=Q(),w=_();return f+y+w},B=()=>{u(f=>({...f,incidentalCost:[...f.incidentalCost,{title:"",price:""}]}))},W=f=>{const y=c.incidentalCost.filter((w,F)=>F!==f);u(w=>({...w,incidentalCost:y}))},K=(f,y,w)=>{const F=[...c.incidentalCost];F[f][y]=w,u(q=>({...q,incidentalCost:F}))},Y=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),re=()=>{u(f=>({...f,carryCosts:[...f.carryCosts,{title:"",price:""}]}))},ne=f=>{const y=c.carryCosts.filter((w,F)=>F!==f);u(w=>({...w,carryCosts:y}))},se=(f,y,w)=>{const F=[...c.carryCosts];F[f][y]=w,u(q=>({...q,carryCosts:F}))},le=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,carryCosts:q})}else{const q=c.carryCosts.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,carryCosts:q})}},de=()=>c.carryCosts.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),ge=()=>{u(f=>({...f,renovationCost:[...f.renovationCost,{title:"",price:""}]}))},Be=f=>{const y=c.renovationCost.filter((w,F)=>F!==f);u(w=>({...w,renovationCost:y}))},Ct=(f,y,w)=>{const F=[...c.renovationCost];F[f][y]=w,u(q=>({...q,renovationCost:F}))},zt=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,renovationCost:q})}else{const q=c.renovationCost.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,renovationCost:q})}},he=()=>c.renovationCost.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),$t=()=>{const f=ee(),y=de(),w=he();return f+y+w},Ye=()=>{const f=$t(),y=M();return f+y},Qn=()=>{u(f=>({...f,costPaidOutofClosing:[...f.costPaidOutofClosing,{title:"",price:""}]}))},Zt=f=>{const y=c.costPaidOutofClosing.filter((w,F)=>F!==f);u(w=>({...w,costPaidOutofClosing:y}))},ys=(f,y,w)=>{const F=[...c.costPaidOutofClosing];F[f][y]=w,u(q=>({...q,costPaidOutofClosing:F}))},js=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,costPaidOutofClosing:q})}},Xn=()=>c.costPaidOutofClosing.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Wt=()=>{const f=c.sellingPriceBtoC,y=Xn();return f-y},gn=()=>{u(f=>({...f,adjustments:[...f.adjustments,{title:"",price:""}]}))},Ut=f=>{const y=c.adjustments.filter((w,F)=>F!==f);u(w=>({...w,adjustments:y}))},fe=(f,y,w)=>{const F=[...c.adjustments];F[f][y]=w,u(q=>({...q,adjustments:F}))},qt=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,adjustments:q})}else{const q=c.adjustments.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,adjustments:q})}},xn=()=>c.adjustments.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Bo=()=>{const f=Wt(),y=xn();return f+y},Ns=()=>{u(f=>({...f,incomestatement:[...f.incomestatement,{title:"",price:""}]}))},Mo=f=>{const y=c.incomestatement.filter((w,F)=>F!==f);u(w=>({...w,incomestatement:y}))},sl=(f,y,w)=>{const F=[...c.incomestatement];F[f][y]=w,u(q=>({...q,incomestatement:F}))},ol=(f,y)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((X,ce)=>ce===y?{...X,price:w,isInvalid:!1}:X);u({...c,incomestatement:q})}else{const q=c.incomestatement.map((X,ce)=>ce===y?{...X,isInvalid:!0}:X);u({...c,incomestatement:q})}},Cs=()=>c.incomestatement.reduce((f,y)=>{const w=parseFloat(y.price);return f+(isNaN(w)?0:w)},0),Jn=()=>{const f=Cs(),y=Wt();return f+y},Zn=()=>{const f=isNaN(parseFloat(Jn()))?0:parseFloat(Jn()),y=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),F=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),X=isNaN(parseFloat(Ye()))?0:parseFloat(Ye());return f+y+w+F+q-X},en=()=>{const f=Zn(),y=c.FinancingCostClosingCost;return f-y},Er=()=>en(),bs=()=>{var f,y,w,F,q,X;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.renovationRisk&&c.closeDateAtoB&&c.closeDateBtoC&&c.purchaseCost&&c.sellingPriceBtoC&&c.fundspriortoclosing&&c.shorttermrental&&c.OtherIncome&&c.InsuranceClaim&&c.LongTermRental&&c.FinancingCostClosingCost){const ce=Er(),Wo=_(),cl=Z(),dl=R(),ul=ee(),fl=Q(),pl=M(),ml=de(),hl=he(),vl=$t(),gl=Ye(),xl=Xn(),yl=xn(),Ig=Bo(),Fg=Wt(),Dg=Wt(),Lg=Cs(),Bg=Jn(),Mg=Zn(),zg=en(),jl={...c,userfirstname:(f=l==null?void 0:l.result)==null?void 0:f.firstName,usermiddlename:(y=l==null?void 0:l.result)==null?void 0:y.middleName,userlastname:(w=l==null?void 0:l.result)==null?void 0:w.lastName,usertitle:(F=l==null?void 0:l.result)==null?void 0:F.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(X=l==null?void 0:l.result)==null?void 0:X.userId,totalPurchaseCosts:Wo,totalcredits:fl,totalPurchaseCostsaftercredits:cl,totalcashAdjustments:dl,totalcashrequiredonsettlement:pl,totalincidentalCost:ul,totalcarryCosts:ml,totalrenovationCost:hl,totalRenovationsandHoldingCost:vl,totalCoststoBuyAtoB:gl,totalcostPaidOutofClosing:xl,totaladjustments:yl,fundsavailablefordistribution:Ig,grossproceedsperHUD:Fg,totalCosttoSellBtoC:Dg,totalincomestatement:Lg,netBtoCsalevalue:Bg,netprofitbeforefinancingcosts:Mg,NetProfit:zg,rateofreturn:ce};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?jl.propertyTaxInfo=c.propertyTaxInfo:jl.propertyTaxInfo=[],o(Ai(jl)),g(!0)}else oe.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};k.useEffect(()=>{p&&(i==="succeeded"?(oe.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):i==="failed"&&(oe.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[i,a,p]);const[il,zo]=k.useState("0 days"),$o=(f,y)=>{if(f&&y){const w=new Date(f),F=new Date(y),q=Math.abs(F-w),X=Math.ceil(q/(1e3*60*60*24));zo(`${X} days`)}else zo("0 days")},al=()=>{u(f=>({...f,IAB:[...f.IAB,{title:"",URL:""}]}))},ll=f=>{const y=c.IAB.filter((w,F)=>F!==f);u(w=>({...w,IAB:y}))},S=(f,y,w)=>{const F=[...c.IAB];F[f][y]=w,u(q=>({...q,IAB:F}))},P=(f,y,w)=>{const F=[...c.IAB];F[f][y]=w,u(q=>({...q,IAB:F}))};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Le,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:e==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("IAB"),role:"tab",children:"IAB Verified Report"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((f,y)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:f.propertytaxowned,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:f.ownedyear,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:f.taxassessed,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:f.taxyear,onChange:w=>m(w,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>h(y),style:{height:"25px",width:"35px"},children:"X"})]})})]},y)),r.jsx("button",{className:"btn btn-secondary",onClick:v,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[c.images.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,placeholder:"Image Title",onChange:w=>b(y,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:w=>N(w,y)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>C(y),style:{marginLeft:"5px"},children:"Delete"})]}),f.file&&r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"Base64 Data:"})," ",r.jsxs("pre",{children:[f.file.slice(0,100),"..."]})," ",r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:f.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})]})]},y)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY&center=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:f=>{const y=f.target.value;u({...c,closeDateAtoB:y}),$o(y,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:f=>{const y=f.target.value;u({...c,closeDateBtoC:y}),$o(c.closeDateAtoB,y)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:d.map(f=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${f}`,value:f,checked:c.renovationRisk===f,onChange:y=>{const w=parseInt(y.target.value,10);u({...c,renovationRisk:w})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${f}`,children:f})]},f))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${Er().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:il,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${c.purchaseCost}`,name:"purchaseCost",onChange:f=>{let y=f.target.value.replace(/[^\d.]/g,"");const w=/^\d*\.?\d*$/.test(y);u({...c,purchaseCost:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>T(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:`$ ${f.price}`,onChange:w=>O(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>E(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:j,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${_().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>H(y,"title",w.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>te(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>z(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>G(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>A(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>U(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:R(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:M(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>K(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>Y(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>W(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:B,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ee(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>se(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>le(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ne(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:re,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:de(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),c.renovationCost.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>Ct(y,"title",w.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>zt(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Be(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ge,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:he(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,sellingPriceBtoC:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>ys(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>js(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Zt(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Qn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>fe(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>qt(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ut(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Bo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>sl(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:w=>ol(w,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Mo(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ns,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Cs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Ye(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,fundspriortoclosing:y,isfundspriortoclosingInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,shorttermrental:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,OtherIncome:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,InsuranceClaim:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,LongTermRental:y,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:f=>{const y=f.target.value,w=/^\d*\.?\d*$/.test(y);u({...c,FinancingCostClosingCost:y,isFinancingCostClosingCostInvalid:!w})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:n,children:"Continue"})," "]}),r.jsx("br",{})]}),e==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),c.IAB.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:w=>S(y,"title",w.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:f.URL,onChange:w=>P(y,"URL",w.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ll(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:al,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Files"," "]}),c.images.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,placeholder:"Image Title",onChange:w=>b(y,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:w=>N(w,y)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>C(y),style:{marginLeft:"5px"},children:"Delete"})]}),f.file&&r.jsx(r.Fragment,{children:r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:f.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})})]},y)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bs,children:"Submit"})," "]})]})]})]})})},mt="/assets/propertydummy-DhVEZ7jN.jpg",jb=()=>{var d;const e=Ke(),{user:t}=_e(c=>({...c.auth})),{userProperties:n,totalPages:s}=_e(c=>c.property),[o,i]=k.useState(1),a=5;k.useEffect(()=>{e(Xs({userId:t.result.userId,page:o,limit:a}))},[e,(d=t==null?void 0:t.result)==null?void 0:d.userId,o]);const l=c=>{i(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:c.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(c,u)=>u+1).map(c=>c===o||c===1||c===s||c>=o-1&&c<=o+1?r.jsx("button",{onClick:()=>l(c),disabled:o===c,children:c},c):c===2||c===s-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},Nb=()=>{var c,u,p,g,N,x,C,b,m,v,h,j;const{user:e,isLoading:t}=_e(E=>E.auth),n=Ke(),s=hn(),[o,i]=k.useState({userId:((c=e==null?void 0:e.result)==null?void 0:c.userId)||"",title:((u=e==null?void 0:e.result)==null?void 0:u.title)||"",firstName:((p=e==null?void 0:e.result)==null?void 0:p.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((N=e==null?void 0:e.result)==null?void 0:N.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((C=e==null?void 0:e.result)==null?void 0:C.aboutme)||"",city:((b=e==null?void 0:e.result)==null?void 0:b.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((v=e==null?void 0:e.result)==null?void 0:v.county)||"",zip:((h=e==null?void 0:e.result)==null?void 0:h.zip)||"",profileImage:((j=e==null?void 0:e.result)==null?void 0:j.profileImage)||""});k.useEffect(()=>{e&&i({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=E=>{i({...o,[E.target.name]:E.target.value})},l=()=>{i({...o,profileImage:""})},d=E=>{E.preventDefault(),n(Pi({formData:o,toast:oe,navigate:s}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:d,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:o.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:o.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:o.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:o.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:o.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:o.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:o.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:o.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:o.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:o.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Na,{type:"file",multiple:!1,onDone:({base64:E})=>i({...o,profileImage:E})})})]}),o.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:o.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},Cb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{userProperties:n,totalPages:s}=_e(u=>u.property),[o,i]=k.useState(1),a=5;k.useEffect(()=>{e(Xs({userId:t.result.userId,page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=u=>{i(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===o||u===1||u===s||u>=o-1&&u<=o+1?r.jsx("button",{onClick:()=>l(u),disabled:o===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},bb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{properties:n,totalPages:s}=_e(u=>u.property),[o,i]=k.useState(1),a=5;k.useEffect(()=>{e(mr({page:o,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,o]);const l=u=>{i(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId===t.result._id));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(ae,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(ae,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===o||u===1||u===s||u>=o-1&&u<=o+1?r.jsx("button",{onClick:()=>l(u),disabled:o===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},wb=()=>{var a,l;const{user:e}=_e(d=>({...d.auth}));console.log("user",e);const t=Ke(),[n,s]=k.useState({userId:((a=e==null?void 0:e.result)==null?void 0:a.userId)||"",fundAmount:((l=e==null?void 0:e.result)==null?void 0:l.fundAmount)||""});k.useEffect(()=>{var d,c;e&&s({userId:(d=e==null?void 0:e.result)==null?void 0:d.userId,fundAmount:(c=e==null?void 0:e.result)==null?void 0:c.fundAmount})},[e]);const o=d=>{s({...n,[d.target.name]:d.target.value})},i=d=>{if(d.preventDefault(),n.fundAmount<=0)return oe.error("Please enter a valid funding amount greater than 0");t(_i({formData:n,toast:oe}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:i,children:[r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Willing to Invest",r.jsx("input",{type:"text",className:"form-control",placeholder:"Enter Fund Amount",name:"fundAmount",value:n.fundAmount,onChange:o})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"submit"})})})]})})},kb=()=>{const[e,t]=k.useState("dashboard"),{user:n}=_e(o=>o.auth),s=()=>{switch(e){case"Userdetails":return r.jsx(Nb,{});case"FundToInvest":return r.jsx(wb,{});case"addProperty":return r.jsx(sg,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(jb,{})]});case"Fundings Received":return r.jsxs("div",{children:[r.jsx("h3",{children:"Fundings Received"}),r.jsx(Cb,{})]});case"Offers Submitted":return r.jsxs("div",{children:[r.jsx("h3",{children:"Offers Submitted"}),r.jsx(bb,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"d-flex",style:{margin:"0",padding:"0"},children:[r.jsx("div",{className:"col-md-3 p-1",style:{paddingRight:"2px",margin:"0"},children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Bs,alt:"ProfileImage",style:{maxWidth:"250px",maxHeight:"250px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsx("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:r.jsx("span",{children:"User Profile"})}),r.jsx("button",{className:`btn mt-3 ${e==="FundToInvest"?"active":""}`,onClick:()=>t("FundToInvest"),children:r.jsx("span",{children:"Fund To Invest"})}),r.jsx("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:r.jsx("span",{children:"Add Property"})}),r.jsx("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:r.jsx("span",{children:"Active Properties"})}),r.jsx("button",{className:`btn mt-3 ${e==="Fundings Received"?"active":""}`,onClick:()=>t("Fundings Received"),children:r.jsx("span",{children:"Fundings Received"})}),r.jsx("button",{className:`btn mt-3 ${e==="Offers Submitted"?"active":""}`,onClick:()=>t("Offers Submitted"),children:r.jsx("span",{children:"Offers Submitted"})}),r.jsx("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:r.jsx("span",{children:"Closed Properties"})})]})]})}),r.jsx("div",{className:"col-md-9 p-1",style:{paddingLeft:"2px",margin:"0"},children:r.jsxs("div",{className:"card card2 p-2",children:[r.jsxs("span",{children:[r.jsx("br",{})," ",r.jsx("br",{}),"Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(ae,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})}),r.jsx("span",{style:{color:"#067ADC"},children:r.jsx(ae,{to:"/addproperty",className:"link-primary text-decoration-none",children:"add"})})]}),e==="dashboard"&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsxs("div",{className:"banner_taital",children:[r.jsxs("h1",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},className:"services_taital",children:["Now you are accessing the world's only portal which has Streamlined the",r.jsxs("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:[" ","investor-borrower interactions,"," "]})]}),r.jsxs("h1",{className:"services_taital",style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["gaining complete visibility into your data, and using smart filters to",r.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("br",{}),s()]})})]}),r.jsx(tt,{})]})};var og={exports:{}},Sb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Eb=Sb,Pb=Eb;function ig(){}function ag(){}ag.resetWarningCache=ig;var _b=function(){function e(s,o,i,a,l,d){if(d!==Pb){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ag,resetWarningCache:ig};return n.PropTypes=n,n};og.exports=_b();var Tb=og.exports;const Lt=ko(Tb),Ob=()=>{const[e,t]=k.useState(3),n=hn();return k.useEffect(()=>{const s=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(s)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ms=({children:e})=>{const{user:t}=_e(n=>({...n.auth}));return t?e:r.jsx(Ob,{})};Ms.propTypes={children:Lt.node.isRequired};const Ab=()=>{const e=Ke(),{id:t,token:n}=gs();return k.useEffect(()=>{e(Oi({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(ae,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(tt,{})]})},Rb=()=>{const[e,t]=k.useState(""),[n,s]=k.useState(""),o="http://67.225.129.127:3002",i=async()=>{try{const a=await me.post(`${o}/users/forgotpassword`,{email:e});s(a.data.message)}catch(a){console.error("Forgot Password Error:",a),s(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:i,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(ae,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(tt,{})]})]})},Ib=()=>{const{userId:e,token:t}=gs(),[n,s]=k.useState(""),[o,i]=k.useState(""),[a,l]=k.useState(""),d="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),oe.error("Password not entered");return}const u=await me.post(`${d}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){l("Passwords do not match."),oe.error("Passwords do not match.");return}else l("Password reset successfull"),oe.success(u.data.message)}catch(u){console.error("Reset Password Error:",u)}};return k.useEffect(()=>{oe.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:u=>s(u.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:o,onChange:u=>i(u.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),r.jsx(tt,{})]})},Fb=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the worlds most trusted portal for real estate investments and borrowing."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]});var lg={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,s(l)))}return i}function s(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(lg);var Db=lg.exports;const ye=ko(Db);function Lb(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.includes(s))continue;n[s]=e[s]}return n}function Nd(e,t){return Nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},Nd(e,t)}function Bb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nd(e,t)}const Mb=["xxl","xl","lg","md","sm","xs"],zb="xs",tl=k.createContext({prefixes:{},breakpoints:Mb,minBreakpoint:zb});function Ie(e,t){const{prefixes:n}=k.useContext(tl);return e||n[t]||t}function $b(){const{breakpoints:e}=k.useContext(tl);return e}function Wb(){const{minBreakpoint:e}=k.useContext(tl);return e}function Ub(){const{dir:e}=k.useContext(tl);return e==="rtl"}function nl(e){return e&&e.ownerDocument||document}function qb(e){var t=nl(e);return t&&t.defaultView||window}function Vb(e,t){return qb(e).getComputedStyle(e,t)}var Hb=/([A-Z])/g;function Kb(e){return e.replace(Hb,"-$1").toLowerCase()}var Yb=/^ms-/;function ci(e){return Kb(e).replace(Yb,"-ms-")}var Gb=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Qb(e){return!!(e&&Gb.test(e))}function vr(e,t){var n="",s="";if(typeof t=="string")return e.style.getPropertyValue(ci(t))||Vb(e).getPropertyValue(ci(t));Object.keys(t).forEach(function(o){var i=t[o];!i&&i!==0?e.style.removeProperty(ci(o)):Qb(o)?s+=o+"("+i+") ":n+=ci(o)+": "+i+";"}),s&&(n+="transform: "+s+";"),e.style.cssText+=";"+n}const Ep={disabled:!1},cg=I.createContext(null);var Xb=function(t){return t.scrollTop},zs="unmounted",sr="exited",Sn="entering",ir="entered",Cd="exiting",vn=function(e){Bb(t,e);function t(s,o){var i;i=e.call(this,s,o)||this;var a=o,l=a&&!a.isMounting?s.enter:s.appear,d;return i.appearStatus=null,s.in?l?(d=sr,i.appearStatus=Sn):d=ir:s.unmountOnExit||s.mountOnEnter?d=zs:d=sr,i.state={status:d},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===zs?{status:sr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Sn&&a!==ir&&(i=Sn):(a===Sn||a===ir)&&(i=Cd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:qr.findDOMNode(this);a&&Xb(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sr&&this.setState({status:zs})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,d=this.props.nodeRef?[l]:[qr.findDOMNode(this),l],c=d[0],u=d[1],p=this.getTimeouts(),g=l?p.appear:p.enter;if(!o&&!a||Ep.disabled){this.safeSetState({status:ir},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Sn},function(){i.props.onEntering(c,u),i.onTransitionEnd(g,function(){i.safeSetState({status:ir},function(){i.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:qr.findDOMNode(this);if(!i||Ep.disabled){this.safeSetState({status:sr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Cd},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:sr},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:qr.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=d[0],u=d[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===zs)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Lb(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(cg.Provider,{value:null},typeof a=="function"?a(o,l):I.cloneElement(I.Children.only(a),l))},t}(I.Component);vn.contextType=cg;vn.propTypes={};function _r(){}vn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_r,onEntering:_r,onEntered:_r,onExit:_r,onExiting:_r,onExited:_r};vn.UNMOUNTED=zs;vn.EXITED=sr;vn.ENTERING=Sn;vn.ENTERED=ir;vn.EXITING=Cd;const xs=!!(typeof window<"u"&&window.document&&window.document.createElement);var bd=!1,wd=!1;try{var oc={get passive(){return bd=!0},get once(){return wd=bd=!0}};xs&&(window.addEventListener("test",oc,oc),window.removeEventListener("test",oc,!0))}catch{}function dg(e,t,n,s){if(s&&typeof s!="boolean"&&!wd){var o=s.once,i=s.capture,a=n;!wd&&o&&(a=n.__once||function l(d){this.removeEventListener(t,l,i),n.call(this,d)},n.__once=a),e.addEventListener(t,a,bd?s:i)}e.addEventListener(t,n,s)}function kd(e,t,n,s){var o=s&&typeof s!="boolean"?s.capture:s;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}function Ca(e,t,n,s){return dg(e,t,n,s),function(){kd(e,t,n,s)}}function Jb(e,t,n,s){if(s===void 0&&(s=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,s),e.dispatchEvent(o)}}function Zb(e){var t=vr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function ew(e,t,n){n===void 0&&(n=5);var s=!1,o=setTimeout(function(){s||Jb(e,"transitionend",!0)},t+n),i=Ca(e,"transitionend",function(){s=!0},{once:!0});return function(){clearTimeout(o),i()}}function ug(e,t,n,s){n==null&&(n=Zb(e)||0);var o=ew(e,n,s),i=Ca(e,"transitionend",t);return function(){o(),i()}}function Pp(e,t){const n=vr(e,t)||"",s=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*s}function tw(e,t){const n=Pp(e,"transitionDuration"),s=Pp(e,"transitionDelay"),o=ug(e,i=>{i.target===e&&(o(),t(i))},n+s)}function nw(e){e.offsetHeight}const _p=e=>!e||typeof e=="function"?e:t=>{e.current=t};function rw(e,t){const n=_p(e),s=_p(t);return o=>{n&&n(o),s&&s(o)}}function Lo(e,t){return k.useMemo(()=>rw(e,t),[e,t])}function sw(e){return e&&"setState"in e?qr.findDOMNode(e):e??null}const ow=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:s,onExiting:o,onExited:i,addEndListener:a,children:l,childRef:d,...c},u)=>{const p=k.useRef(null),g=Lo(p,d),N=T=>{g(sw(T))},x=T=>O=>{T&&p.current&&T(p.current,O)},C=k.useCallback(x(e),[e]),b=k.useCallback(x(t),[t]),m=k.useCallback(x(n),[n]),v=k.useCallback(x(s),[s]),h=k.useCallback(x(o),[o]),j=k.useCallback(x(i),[i]),E=k.useCallback(x(a),[a]);return r.jsx(vn,{ref:u,...c,onEnter:C,onEntered:m,onEntering:b,onExit:v,onExited:j,onExiting:h,addEndListener:E,nodeRef:p,children:typeof l=="function"?(T,O)=>l(T,{...O,ref:N}):I.cloneElement(l,{ref:N})})});function iw(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function Gt(e){const t=iw(e);return k.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const aw=e=>k.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:ye(t.className,e)}));function lw(){return k.useState(null)}function cw(){const e=k.useRef(!0),t=k.useRef(()=>e.current);return k.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function dw(e){const t=k.useRef(null);return k.useEffect(()=>{t.current=e}),t.current}const uw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",fw=typeof document<"u",Tp=fw||uw?k.useLayoutEffect:k.useEffect,pw=["as","disabled"];function mw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function hw(e){return!e||e.trim()==="#"}function fg({tagName:e,disabled:t,href:n,target:s,rel:o,role:i,onClick:a,tabIndex:l=0,type:d}){e||(n!=null||s!=null||o!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:d||"button",disabled:t},c];const u=g=>{if((t||e==="a"&&hw(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},p=g=>{g.key===" "&&(g.preventDefault(),u(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?s:void 0,"aria-disabled":t||void 0,rel:e==="a"?o:void 0,onClick:u,onKeyDown:p},c]}const vw=k.forwardRef((e,t)=>{let{as:n,disabled:s}=e,o=mw(e,pw);const[i,{tagName:a}]=fg(Object.assign({tagName:n,disabled:s},o));return r.jsx(a,Object.assign({},o,i,{ref:t}))});vw.displayName="Button";function gw(e){return e.code==="Escape"||e.keyCode===27}function pg(){const e=k.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const xw={[Sn]:"show",[ir]:"show"},_u=k.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:s,...o},i)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},l=k.useCallback((u,p)=>{nw(u),s==null||s(u,p)},[s]),{major:d}=pg(),c=d>=19?t.props.ref:t.ref;return r.jsx(ow,{ref:i,addEndListener:tw,...a,onEnter:l,childRef:c,children:(u,p)=>k.cloneElement(t,{...p,className:ye("fade",e,t.props.className,xw[u],n[u])})})});_u.displayName="Fade";const yw={"aria-label":Lt.string,onClick:Lt.func,variant:Lt.oneOf(["white"])},Tu=k.forwardRef(({className:e,variant:t,"aria-label":n="Close",...s},o)=>r.jsx("button",{ref:o,type:"button",className:ye("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...s}));Tu.displayName="CloseButton";Tu.propTypes=yw;const mg=k.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:s,active:o=!1,disabled:i=!1,className:a,...l},d)=>{const c=Ie(t,"btn"),[u,{tagName:p}]=fg({tagName:e,disabled:i,...l}),g=p;return r.jsx(g,{...u,...l,ref:d,disabled:i,className:ye(a,c,o&&"active",n&&`${c}-${n}`,s&&`${c}-${s}`,l.href&&i&&"disabled")})});mg.displayName="Button";function jw(e){const t=k.useRef(e);return t.current=e,t}function hg(e){const t=jw(e);k.useEffect(()=>()=>t.current(),[])}function Nw(e,t){return k.Children.toArray(e).some(n=>k.isValidElement(n)&&n.type===t)}function Cw({as:e,bsPrefix:t,className:n,...s}){t=Ie(t,"col");const o=$b(),i=Wb(),a=[],l=[];return o.forEach(d=>{const c=s[d];delete s[d];let u,p,g;typeof c=="object"&&c!=null?{span:u,offset:p,order:g}=c:u=c;const N=d!==i?`-${d}`:"";u&&a.push(u===!0?`${t}${N}`:`${t}${N}-${u}`),g!=null&&l.push(`order${N}-${g}`),p!=null&&l.push(`offset${N}-${p}`)}),[{...s,className:ye(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const vg=k.forwardRef((e,t)=>{const[{className:n,...s},{as:o="div",bsPrefix:i,spans:a}]=Cw(e);return r.jsx(o,{...s,ref:t,className:ye(n,!a.length&&i)})});vg.displayName="Col";var bw=Function.prototype.bind.call(Function.prototype.call,[].slice);function Tr(e,t){return bw(e.querySelectorAll(t))}function Op(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const ww="data-rr-ui-";function kw(e){return`${ww}${e}`}const gg=k.createContext(xs?window:void 0);gg.Provider;function Ou(){return k.useContext(gg)}const Sw={type:Lt.string,tooltip:Lt.bool,as:Lt.elementType},rl=k.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:s=!1,...o},i)=>r.jsx(e,{...o,ref:i,className:ye(t,`${n}-${s?"tooltip":"feedback"}`)}));rl.displayName="Feedback";rl.propTypes=Sw;const pn=k.createContext({}),Au=k.forwardRef(({id:e,bsPrefix:t,className:n,type:s="checkbox",isValid:o=!1,isInvalid:i=!1,as:a="input",...l},d)=>{const{controlId:c}=k.useContext(pn);return t=Ie(t,"form-check-input"),r.jsx(a,{...l,ref:d,type:s,id:e||c,className:ye(n,t,o&&"is-valid",i&&"is-invalid")})});Au.displayName="FormCheckInput";const ba=k.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...s},o)=>{const{controlId:i}=k.useContext(pn);return e=Ie(e,"form-check-label"),r.jsx("label",{...s,ref:o,htmlFor:n||i,className:ye(t,e)})});ba.displayName="FormCheckLabel";const xg=k.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:s=!1,reverse:o=!1,disabled:i=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:d=!1,feedback:c,feedbackType:u,className:p,style:g,title:N="",type:x="checkbox",label:C,children:b,as:m="input",...v},h)=>{t=Ie(t,"form-check"),n=Ie(n,"form-switch");const{controlId:j}=k.useContext(pn),E=k.useMemo(()=>({controlId:e||j}),[j,e]),T=!b&&C!=null&&C!==!1||Nw(b,ba),O=r.jsx(Au,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:a,isInvalid:l,disabled:i,as:m});return r.jsx(pn.Provider,{value:E,children:r.jsx("div",{style:g,className:ye(p,T&&t,s&&`${t}-inline`,o&&`${t}-reverse`,x==="switch"&&n),children:b||r.jsxs(r.Fragment,{children:[O,T&&r.jsx(ba,{title:N,children:C}),c&&r.jsx(rl,{type:u,tooltip:d,children:c})]})})})});xg.displayName="FormCheck";const wa=Object.assign(xg,{Input:Au,Label:ba}),yg=k.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:s,id:o,className:i,isValid:a=!1,isInvalid:l=!1,plaintext:d,readOnly:c,as:u="input",...p},g)=>{const{controlId:N}=k.useContext(pn);return e=Ie(e,"form-control"),r.jsx(u,{...p,type:t,size:s,ref:g,readOnly:c,id:o||N,className:ye(i,d?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});yg.displayName="FormControl";const Ew=Object.assign(yg,{Feedback:rl}),jg=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"form-floating"),r.jsx(n,{ref:o,className:ye(e,t),...s})));jg.displayName="FormFloating";const Ru=k.forwardRef(({controlId:e,as:t="div",...n},s)=>{const o=k.useMemo(()=>({controlId:e}),[e]);return r.jsx(pn.Provider,{value:o,children:r.jsx(t,{...n,ref:s})})});Ru.displayName="FormGroup";const Ng=k.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:s=!1,className:o,htmlFor:i,...a},l)=>{const{controlId:d}=k.useContext(pn);t=Ie(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=ye(o,t,s&&"visually-hidden",n&&c);return i=i||d,n?r.jsx(vg,{ref:l,as:"label",className:u,htmlFor:i,...a}):r.jsx(e,{ref:l,className:u,htmlFor:i,...a})});Ng.displayName="FormLabel";const Cg=k.forwardRef(({bsPrefix:e,className:t,id:n,...s},o)=>{const{controlId:i}=k.useContext(pn);return e=Ie(e,"form-range"),r.jsx("input",{...s,type:"range",ref:o,className:ye(t,e),id:n||i})});Cg.displayName="FormRange";const bg=k.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:s,isValid:o=!1,isInvalid:i=!1,id:a,...l},d)=>{const{controlId:c}=k.useContext(pn);return e=Ie(e,"form-select"),r.jsx("select",{...l,size:n,ref:d,className:ye(s,e,t&&`${e}-${t}`,o&&"is-valid",i&&"is-invalid"),id:a||c})});bg.displayName="FormSelect";const wg=k.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:s,...o},i)=>(e=Ie(e,"form-text"),r.jsx(n,{...o,ref:i,className:ye(t,e,s&&"text-muted")})));wg.displayName="FormText";const kg=k.forwardRef((e,t)=>r.jsx(wa,{...e,ref:t,type:"switch"}));kg.displayName="Switch";const Pw=Object.assign(kg,{Input:wa.Input,Label:wa.Label}),Sg=k.forwardRef(({bsPrefix:e,className:t,children:n,controlId:s,label:o,...i},a)=>(e=Ie(e,"form-floating"),r.jsxs(Ru,{ref:a,className:ye(t,e),controlId:s,...i,children:[n,r.jsx("label",{htmlFor:s,children:o})]})));Sg.displayName="FloatingLabel";const _w={_ref:Lt.any,validated:Lt.bool,as:Lt.elementType},Iu=k.forwardRef(({className:e,validated:t,as:n="form",...s},o)=>r.jsx(n,{...s,ref:o,className:ye(e,t&&"was-validated")}));Iu.displayName="Form";Iu.propTypes=_w;const er=Object.assign(Iu,{Group:Ru,Control:Ew,Floating:jg,Check:wa,Switch:Pw,Label:Ng,Text:wg,Range:Cg,Select:bg,FloatingLabel:Sg});var di;function Ap(e){if((!di&&di!==0||e)&&xs){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),di=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return di}function ic(e){e===void 0&&(e=nl());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Tw(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Rp=kw("modal-open");class Fu{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:s=!1}={}){this.handleContainerOverflow=n,this.isRTL=s,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return Tw(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();t.style={overflow:o.style.overflow,[s]:o.style[s]},t.scrollBarWidth&&(n[s]=`${parseInt(vr(o,s)||"0",10)+t.scrollBarWidth}px`),o.setAttribute(Rp,""),vr(o,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Rp),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const ac=(e,t)=>xs?e==null?(t||nl()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ow(e,t){const n=Ou(),[s,o]=k.useState(()=>ac(e,n==null?void 0:n.document));if(!s){const i=ac(e);i&&o(i)}return k.useEffect(()=>{},[t,s]),k.useEffect(()=>{const i=ac(e);i!==s&&o(i)},[e,s]),s}function Aw({children:e,in:t,onExited:n,mountOnEnter:s,unmountOnExit:o}){const i=k.useRef(null),a=k.useRef(t),l=Gt(n);k.useEffect(()=>{t?a.current=!0:l(i.current)},[t,l]);const d=Lo(i,e.ref),c=k.cloneElement(e,{ref:d});return t?c:o||!a.current&&s?null:c}const Rw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Iw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function Fw(e){let{onEnter:t,onEntering:n,onEntered:s,onExit:o,onExiting:i,onExited:a,addEndListener:l,children:d}=e,c=Iw(e,Rw);const{major:u}=pg(),p=u>=19?d.props.ref:d.ref,g=k.useRef(null),N=Lo(g,typeof d=="function"?null:p),x=T=>O=>{T&&g.current&&T(g.current,O)},C=k.useCallback(x(t),[t]),b=k.useCallback(x(n),[n]),m=k.useCallback(x(s),[s]),v=k.useCallback(x(o),[o]),h=k.useCallback(x(i),[i]),j=k.useCallback(x(a),[a]),E=k.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:C},n&&{onEntering:b},s&&{onEntered:m},o&&{onExit:v},i&&{onExiting:h},a&&{onExited:j},l&&{addEndListener:E},{children:typeof d=="function"?(T,O)=>d(T,Object.assign({},O,{ref:N})):k.cloneElement(d,{ref:N})})}const Dw=["component"];function Lw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}const Bw=k.forwardRef((e,t)=>{let{component:n}=e,s=Lw(e,Dw);const o=Fw(s);return r.jsx(n,Object.assign({ref:t},o))});function Mw({in:e,onTransition:t}){const n=k.useRef(null),s=k.useRef(!0),o=Gt(t);return Tp(()=>{if(!n.current)return;let i=!1;return o({in:e,element:n.current,initial:s.current,isStale:()=>i}),()=>{i=!0}},[e,o]),Tp(()=>(s.current=!1,()=>{s.current=!0}),[]),n}function zw({children:e,in:t,onExited:n,onEntered:s,transition:o}){const[i,a]=k.useState(!t);t&&i&&a(!1);const l=Mw({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?s==null||s(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(o(c)).then(u,p=>{throw c.in||a(!0),p})}}),d=Lo(l,e.ref);return i&&!t?null:k.cloneElement(e,{ref:d})}function Ip(e,t,n){return e?r.jsx(Bw,Object.assign({},n,{component:e})):t?r.jsx(zw,Object.assign({},n,{transition:t})):r.jsx(Aw,Object.assign({},n))}const $w=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Ww(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}let lc;function Uw(e){return lc||(lc=new Fu({ownerDocument:e==null?void 0:e.document})),lc}function qw(e){const t=Ou(),n=e||Uw(t),s=k.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>n.add(s.current),remove:()=>n.remove(s.current),isTopModal:()=>n.isTopModal(s.current),setDialogRef:k.useCallback(o=>{s.current.dialog=o},[]),setBackdropRef:k.useCallback(o=>{s.current.backdrop=o},[])})}const Eg=k.forwardRef((e,t)=>{let{show:n=!1,role:s="dialog",className:o,style:i,children:a,backdrop:l=!0,keyboard:d=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:p,runTransition:g,backdropTransition:N,runBackdropTransition:x,autoFocus:C=!0,enforceFocus:b=!0,restoreFocus:m=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:j=he=>r.jsx("div",Object.assign({},he)),manager:E,container:T,onShow:O,onHide:_=()=>{},onExit:L,onExited:z,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,D=Ww(e,$w);const U=Ou(),G=Ow(T),A=qw(E),R=cw(),M=dw(n),[B,W]=k.useState(!n),K=k.useRef(null);k.useImperativeHandle(t,()=>A,[A]),xs&&!M&&n&&(K.current=ic(U==null?void 0:U.document)),n&&B&&W(!1);const Y=Gt(()=>{if(A.add(),de.current=Ca(document,"keydown",se),le.current=Ca(document,"focus",()=>setTimeout(re),!0),O&&O(),C){var he,$t;const Ye=ic((he=($t=A.dialog)==null?void 0:$t.ownerDocument)!=null?he:U==null?void 0:U.document);A.dialog&&Ye&&!Op(A.dialog,Ye)&&(K.current=Ye,A.dialog.focus())}}),ee=Gt(()=>{if(A.remove(),de.current==null||de.current(),le.current==null||le.current(),m){var he;(he=K.current)==null||he.focus==null||he.focus(v),K.current=null}});k.useEffect(()=>{!n||!G||Y()},[n,G,Y]),k.useEffect(()=>{B&&ee()},[B,ee]),hg(()=>{ee()});const re=Gt(()=>{if(!b||!R()||!A.isTopModal())return;const he=ic(U==null?void 0:U.document);A.dialog&&he&&!Op(A.dialog,he)&&A.dialog.focus()}),ne=Gt(he=>{he.target===he.currentTarget&&(c==null||c(he),l===!0&&_())}),se=Gt(he=>{d&&gw(he)&&A.isTopModal()&&(u==null||u(he),he.defaultPrevented||_())}),le=k.useRef(),de=k.useRef(),ge=(...he)=>{W(!0),z==null||z(...he)};if(!G)return null;const Be=Object.assign({role:s,ref:A.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},D,{style:i,className:o,tabIndex:-1});let Ct=h?h(Be):r.jsx("div",Object.assign({},Be,{children:k.cloneElement(a,{role:"document"})}));Ct=Ip(p,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:L,onExiting:H,onExited:ge,onEnter:te,onEntering:Q,onEntered:Z,children:Ct});let zt=null;return l&&(zt=j({ref:A.setBackdropRef,onClick:ne}),zt=Ip(N,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:zt})),r.jsx(r.Fragment,{children:qr.createPortal(r.jsxs(r.Fragment,{children:[zt,Ct]}),G)})});Eg.displayName="Modal";const Vw=Object.assign(Eg,{Manager:Fu});function Hw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Kw(e,t){e.classList?e.classList.add(t):Hw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Fp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Yw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Fp(e.className,t):e.setAttribute("class",Fp(e.className&&e.className.baseVal||"",t))}const Or={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Gw extends Fu{adjustAndStore(t,n,s){const o=n.style[t];n.dataset[t]=o,vr(n,{[t]:`${parseFloat(vr(n,t))+s}px`})}restore(t,n){const s=n.dataset[t];s!==void 0&&(delete n.dataset[t],vr(n,{[t]:s}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Kw(n,"modal-open"),!t.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(i=>this.adjustAndStore(s,i,t.scrollBarWidth)),Tr(n,Or.STICKY_CONTENT).forEach(i=>this.adjustAndStore(o,i,-t.scrollBarWidth)),Tr(n,Or.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(o,i,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Yw(n,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(i=>this.restore(s,i)),Tr(n,Or.STICKY_CONTENT).forEach(i=>this.restore(o,i)),Tr(n,Or.NAVBAR_TOGGLER).forEach(i=>this.restore(o,i))}}let cc;function Qw(e){return cc||(cc=new Gw(e)),cc}const Pg=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"modal-body"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Pg.displayName="ModalBody";const _g=k.createContext({onHide(){}}),Du=k.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:s,size:o,fullscreen:i,children:a,scrollable:l,...d},c)=>{e=Ie(e,"modal");const u=`${e}-dialog`,p=typeof i=="string"?`${e}-fullscreen-${i}`:`${e}-fullscreen`;return r.jsx("div",{...d,ref:c,className:ye(u,t,o&&`${e}-${o}`,s&&`${u}-centered`,l&&`${u}-scrollable`,i&&p),children:r.jsx("div",{className:ye(`${e}-content`,n),children:a})})});Du.displayName="ModalDialog";const Tg=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},o)=>(t=Ie(t,"modal-footer"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Tg.displayName="ModalFooter";const Xw=k.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:s,children:o,...i},a)=>{const l=k.useContext(_g),d=Gt(()=>{l==null||l.onHide(),s==null||s()});return r.jsxs("div",{ref:a,...i,children:[o,n&&r.jsx(Tu,{"aria-label":e,variant:t,onClick:d})]})}),Og=k.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:s=!1,...o},i)=>(e=Ie(e,"modal-header"),r.jsx(Xw,{ref:i,...o,className:ye(t,e),closeLabel:n,closeButton:s})));Og.displayName="ModalHeader";const Jw=aw("h4"),Ag=k.forwardRef(({className:e,bsPrefix:t,as:n=Jw,...s},o)=>(t=Ie(t,"modal-title"),r.jsx(n,{ref:o,className:ye(e,t),...s})));Ag.displayName="ModalTitle";function Zw(e){return r.jsx(_u,{...e,timeout:null})}function ek(e){return r.jsx(_u,{...e,timeout:null})}const Rg=k.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:s,contentClassName:o,children:i,dialogAs:a=Du,"data-bs-theme":l,"aria-labelledby":d,"aria-describedby":c,"aria-label":u,show:p=!1,animation:g=!0,backdrop:N=!0,keyboard:x=!0,onEscapeKeyDown:C,onShow:b,onHide:m,container:v,autoFocus:h=!0,enforceFocus:j=!0,restoreFocus:E=!0,restoreFocusOptions:T,onEntered:O,onExit:_,onExiting:L,onEnter:z,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...D},U)=>{const[G,A]=k.useState({}),[R,M]=k.useState(!1),B=k.useRef(!1),W=k.useRef(!1),K=k.useRef(null),[Y,ee]=lw(),re=Lo(U,ee),ne=Gt(m),se=Ub();e=Ie(e,"modal");const le=k.useMemo(()=>({onHide:ne}),[ne]);function de(){return Z||Qw({isRTL:se})}function ge(fe){if(!xs)return;const qt=de().getScrollbarWidth()>0,xn=fe.scrollHeight>nl(fe).documentElement.clientHeight;A({paddingRight:qt&&!xn?Ap():void 0,paddingLeft:!qt&&xn?Ap():void 0})}const Be=Gt(()=>{Y&&ge(Y.dialog)});hg(()=>{kd(window,"resize",Be),K.current==null||K.current()});const Ct=()=>{B.current=!0},zt=fe=>{B.current&&Y&&fe.target===Y.dialog&&(W.current=!0),B.current=!1},he=()=>{M(!0),K.current=ug(Y.dialog,()=>{M(!1)})},$t=fe=>{fe.target===fe.currentTarget&&he()},Ye=fe=>{if(N==="static"){$t(fe);return}if(W.current||fe.target!==fe.currentTarget){W.current=!1;return}m==null||m()},Qn=fe=>{x?C==null||C(fe):(fe.preventDefault(),N==="static"&&he())},Zt=(fe,qt)=>{fe&&ge(fe),z==null||z(fe,qt)},ys=fe=>{K.current==null||K.current(),_==null||_(fe)},js=(fe,qt)=>{H==null||H(fe,qt),dg(window,"resize",Be)},Xn=fe=>{fe&&(fe.style.display=""),te==null||te(fe),kd(window,"resize",Be)},Wt=k.useCallback(fe=>r.jsx("div",{...fe,className:ye(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),gn={...n,...G};gn.display="block";const Ut=fe=>r.jsx("div",{role:"dialog",...fe,style:gn,className:ye(t,e,R&&`${e}-static`,!g&&"show"),onClick:N?Ye:void 0,onMouseUp:zt,"data-bs-theme":l,"aria-label":u,"aria-labelledby":d,"aria-describedby":c,children:r.jsx(a,{...D,onMouseDown:Ct,className:s,contentClassName:o,children:i})});return r.jsx(_g.Provider,{value:le,children:r.jsx(Vw,{show:p,ref:re,backdrop:N,container:v,keyboard:!0,autoFocus:h,enforceFocus:j,restoreFocus:E,restoreFocusOptions:T,onEscapeKeyDown:Qn,onShow:b,onHide:m,onEnter:Zt,onEntering:js,onEntered:O,onExit:ys,onExiting:L,onExited:Xn,manager:de(),transition:g?Zw:void 0,backdropTransition:g?ek:void 0,renderBackdrop:Wt,renderDialog:Ut})})});Rg.displayName="Modal";const ui=Object.assign(Rg,{Body:Pg,Header:Og,Title:Ag,Footer:Tg,Dialog:Du,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),tk=()=>{var T;const{id:e}=gs(),t=Ke(),{selectedProperty:n,status:s,error:o}=_e(O=>O.property),{user:i}=_e(O=>({...O.auth})),[a,l]=k.useState("propertydetails"),[d,c]=k.useState(!0),[u,p]=k.useState(!1),[g,N]=k.useState({fundValue:"0",fundPercentage:"0"});if(k.useEffect(()=>{e&&t(Js(e))},[e,t]),k.useEffect(()=>{s==="succeeded"&&c(!1)},[s]),s==="failed")return r.jsxs("p",{children:["Error loading property: ",o]});const x=((T=i==null?void 0:i.result)==null?void 0:T.userId)===(n==null?void 0:n.userId),C=!!i,b=()=>{p(!0)},m=()=>{p(!1)},v=O=>{const{name:_,value:L}=O.target;N({...g,[_]:L})},h=O=>{if(O.preventDefault(),g.fundValue<=0)return oe.error("Please enter a valid funding amount greater than 0");if(g.fundValue>((n==null?void 0:n.totalCoststoBuyAtoB)||0))return oe.error(`Funding amount cannot exceed ${(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"}`);if(g.fundPercentage<=0||g.fundPercentage>100)return oe.error("Please enter a valid interest percentage (0-100)");const _={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:i.result._id};t(Ii({id:e,fundDetails:_,toast:oe})),m()},j=O=>{const _=JSON.parse(localStorage.getItem("profile")).token;t(Fi({id:e,fundDetailId:O,token:_}))},E=O=>{window.confirm("Are you sure you want to delete this?")&&j(O)};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",style:{borderRadius:"12px 12px 0 0"},children:[r.jsx("li",{role:"presentation",className:a==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:a==="Funding Details"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),r.jsx("li",{role:"presentation",className:a==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{children:[a==="propertydetails"&&r.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:r.jsx("div",{className:"container col-12",children:d?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-5 mt-3",children:[r.jsx("div",{children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||mt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"]})]}),r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.NetProfit)||"N/A"]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!C,onClick:x||!C?null:b,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!C&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("span",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",n.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",n.zip," "]}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property found."})})}),a==="Funding Details"&&r.jsx("div",{children:a==="Funding Details"&&r.jsx("div",{className:"tab-pane active",children:r.jsx("div",{children:n.fundDetails.length===0?r.jsx("p",{children:"No fund details available."}):r.jsx("ul",{style:{listStyleType:"none",padding:0},children:n.fundDetails.map((O,_)=>{var L,z;return r.jsx("li",{className:"d-flex align-items-center",children:r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsxs("span",{children:["Total Fund Value: $ ",O.fundValue,", Interest Percentage: ",O.fundPercentage,"%"]}),r.jsx("br",{})," ",r.jsx("br",{}),((L=i==null?void 0:i.result)==null?void 0:L.userId)&&((z=i==null?void 0:i.result)==null?void 0:z._id)===O.userId&&r.jsx("button",{className:"btn btn-danger ms-2",onClick:()=>E(O._id),style:{padding:"2px 10px",marginLeft:"8px"},children:"x"})]})},_)})})})})}),a==="Accounting"&&r.jsx("div",{})]})]}),r.jsx(tt,{}),r.jsxs(ui,{show:u,onHide:m,children:[r.jsx(ui.Header,{closeButton:!0,children:r.jsx(ui.Title,{children:"Investment/Funding Details"})}),r.jsx(ui.Body,{children:r.jsxs(er,{onSubmit:h,children:[r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Total Fund Value"}),r.jsx(er.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),r.jsx("br",{}),r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Interest Percentage"}),r.jsx(er.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),r.jsx(mg,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},nk=()=>{const[e,t]=k.useState([]),[n,s]=k.useState(0),[o,i]=k.useState(0),[a]=k.useState(10),[l,d]=k.useState(""),[c,u]=k.useState(!1),[p,g]=k.useState(!1),N=async()=>{u(!0),g(!1);try{const m=await me.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:o*a,search:l},headers:{"Cache-Control":"no-cache"}});t(m.data.data),s(m.data.totalRecords),l.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{u(!1)}},x=m=>{d(m.target.value),m.target.value.trim()===""&&(i(0),t([]),s(0),g(!1),N())},C=m=>{m.key==="Enter"&&(m.preventDefault(),N())};k.useEffect(()=>{N()},[l,o]);const b=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:C})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[p&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},v)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>i(o-1),disabled:o===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",o+1," of ",b," "]}),r.jsx("button",{onClick:()=>i(o+1),disabled:o+1>=b||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(tt,{})]})},rk=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]}),sk=()=>{const{house_id:e}=gs();console.log("house_id",e);const[t,n]=k.useState(null),[s,o]=k.useState(!0);return k.useEffect(()=>{(async()=>{try{const a=await me.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{o(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:s?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(tt,{})]})},Dp=()=>{const{id:e}=gs(),t=Ke(),[n,s]=k.useState("propertydetails"),o=()=>{n==="propertydetails"&&s("Images"),n==="Images"&&s("Accounting"),n==="Accounting"&&s("IAB"),n==="IAB"&&s("IAB")},i=()=>{n==="Images"&&s("propertydetails"),n==="Accounting"&&s("Images"),n==="IAB"&&s("Accounting")},{selectedProperty:a}=_e(S=>S.property),[l,d]=k.useState({address:"",city:"",state:"",county:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],renovationRisk:null,turnTime:"",credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",IAB:[{title:"IAB Title",URL:"Please enter URL"}]}),c=[1,2,3,4,5,6,7,8,9,10];k.useEffect(()=>{t(Js(e))},[t,e]),k.useEffect(()=>{a&&d({address:a.address||"",city:a.city||"",state:a.state||"",county:a.county||"",zip:a.zip||"",parcel:a.parcel||"",subdivision:a.subdivision||"",legal:a.legal||"",costpersqft:a.costpersqft||"",propertyType:a.propertyType||"",lotacres:a.lotacres||"",yearBuild:a.yearBuild||"",totallivingsqft:a.totallivingsqft||"",beds:a.beds||"",baths:a.baths||"",stories:a.stories||"",garage:a.garage||"",garagesqft:a.garagesqft||"",poolspa:a.poolspa||"",fireplaces:a.fireplaces||"",ac:a.ac||"",heating:a.heating||"",buildingstyle:a.buildingstyle||"",sitevacant:a.sitevacant||"",extwall:a.extwall||"",roofing:a.roofing||"",totalSqft:a.totalSqft||"",renovationRisk:a.renovationRisk,closeDateAtoB:a.closeDateAtoB,closeDateBtoC:a.closeDateBtoC,purchaseCost:a.purchaseCost,costPaidAtoB:a.costPaidAtoB,totalPurchaseCosts:a.totalPurchaseCosts,credits:a.credits,totalPurchaseCostsaftercredits:a.totalPurchaseCostsaftercredits,cashAdjustments:a.cashAdjustments,totalcashrequiredonsettlement:a.totalcashrequiredonsettlement,incidentalCost:a.incidentalCost,carryCosts:a.carryCosts,renovationCost:a.renovationCost,sellingPriceBtoC:a.sellingPriceBtoC,costPaidOutofClosing:a.costPaidOutofClosing,totalCosttoSellBtoC:a.totalCosttoSellBtoC,grossproceedsperHUD:a.grossproceedsperHUD,adjustments:a.adjustments,fundsavailablefordistribution:a.fundsavailablefordistribution,incomestatement:a.incomestatement,fundspriortoclosing:a.fundspriortoclosing,shorttermrental:a.shorttermrental,OtherIncome:a.OtherIncome,InsuranceClaim:a.InsuranceClaim,LongTermRental:a.LongTermRental,netprofitbeforefinancingcosts:a.netprofitbeforefinancingcosts,FinancingCostClosingCost:a.FinancingCostClosingCost,propertyTaxInfo:a.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:a.images||[{title:"",file:""}],googleMapLink:a.googleMapLink,rateofreturn:a.rateofreturn,IAB:a.IAB})},[a]);const u=S=>{d({...l,[S.target.name]:S.target.value})},p=(S,P)=>{const{name:f,value:y}=S.target,w=[...l.propertyTaxInfo],F={...w[P]};F[f]=y,w[P]=F,d({...l,propertyTaxInfo:w})},g=S=>{S.preventDefault();const P=z(),f=D(),y=U(),w=B(),F=W(),q=ne(),X=Be(),ce=Ye(),Wo=Qn(),cl=Zt(),dl=gn(),ul=Ut(),fl=Ut(),pl=Ns(),ml=Mo(),hl=Zn(),vl=en(),gl=Er(),xl=bs(),yl={...l,totalPurchaseCosts:P.toFixed(2),totalcredits:f.toFixed(2),totalPurchaseCostsaftercredits:y.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:F.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:X.toFixed(2),totalrenovationCost:ce.toFixed(2),totalRenovationsandHoldingCost:Wo.toFixed(2),totalCoststoBuyAtoB:cl.toFixed(2),totalcostPaidOutofClosing:dl.toFixed(2),totalCosttoSellBtoC:ul.toFixed(2),grossproceedsperHUD:fl.toFixed(2),totaladjustments:pl.toFixed(2),fundsavailablefordistribution:ml.toFixed(2),totalincomestatement:hl.toFixed(2),netBtoCsalevalue:vl.toFixed(2),netprofitbeforefinancingcosts:gl.toFixed(2),netprofit:xl.toFixed(2)};t(Ri({id:e,propertyData:yl}))},N=()=>{d({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=S=>{const P=l.propertyTaxInfo.filter((f,y)=>y!==S);d({...l,propertyTaxInfo:P})},C=(S,P)=>{const f=[...l.images];f[P]={...f[P],file:S.base64},d({...l,images:f})},b=()=>{d({...l,images:[...l.images,{title:"",file:""}]})},m=S=>{const P=l.images.filter((f,y)=>y!==S);d({...l,images:P})},v=(S,P)=>{const f=[...l.images];f[S]={...f[S],title:P.target.value},d({...l,images:f})};k.useEffect(()=>{E(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,j]=k.useState("0 days"),E=(S,P)=>{if(S&&P){const f=new Date(S),y=new Date(P),w=Math.abs(y-f),F=Math.ceil(w/(1e3*60*60*24));j(`${F} days`)}else j("0 days")},T=()=>{d(S=>({...S,costPaidAtoB:[...S.costPaidAtoB,{title:"",price:""}]}))},O=S=>{const P=l.costPaidAtoB.filter((f,y)=>y!==S);d(f=>({...f,costPaidAtoB:P}))},_=(S,P,f)=>{const y=[...l.costPaidAtoB];y[S][P]=f,d(w=>({...w,costPaidAtoB:y}))},L=(S,P)=>{let f=S.target.value;if(f=f.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidAtoB.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,costPaidAtoB:w})}},z=()=>{const S=l.costPaidAtoB.reduce((f,y)=>{const w=parseFloat(y.price)||0;return f+w},0),P=parseFloat(l.purchaseCost)||0;return S+P},H=()=>{d(S=>({...S,credits:[...S.credits,{title:"",price:""}]}))},te=S=>{const P=l.credits.filter((f,y)=>y!==S);d(f=>({...f,credits:P}))},Q=(S,P,f)=>{const y=[...l.credits];y[S][P]=f,d(w=>({...w,credits:y}))},Z=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.credits.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,credits:w})}else{const w=l.credits.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,credits:w})}},D=()=>l.credits.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),U=()=>{const S=l.costPaidAtoB.reduce((y,w)=>{const F=parseFloat(w.price)||0;return y+F},0),P=l.credits.reduce((y,w)=>{const F=parseFloat(w.price)||0;return y+F},0),f=parseFloat(l.purchaseCost)||0;return S+P+f},G=()=>{d(S=>({...S,cashAdjustments:[...S.cashAdjustments,{title:"",price:""}]}))},A=S=>{const P=l.cashAdjustments.filter((f,y)=>y!==S);d(f=>({...f,cashAdjustments:P}))},R=(S,P,f)=>{const y=[...l.cashAdjustments];y[S][P]=f,d(w=>({...w,cashAdjustments:y}))},M=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.cashAdjustments.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,cashAdjustments:w})}},B=()=>l.cashAdjustments.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),W=()=>{const S=B(),P=D(),f=z();return S+P+f},K=()=>{d(S=>({...S,incidentalCost:[...S.incidentalCost,{title:"",price:""}]}))},Y=S=>{const P=l.incidentalCost.filter((f,y)=>y!==S);d(f=>({...f,incidentalCost:P}))},ee=(S,P,f)=>{const y=[...l.incidentalCost];y[S][P]=f,d(w=>({...w,incidentalCost:y}))},re=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incidentalCost.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),se=()=>{d(S=>({...S,carryCosts:[...S.carryCosts,{title:"",price:""}]}))},le=S=>{const P=l.carryCosts.filter((f,y)=>y!==S);d(f=>({...f,carryCosts:P}))},de=(S,P,f)=>{const y=[...l.carryCosts];y[S][P]=f,d(w=>({...w,carryCosts:y}))},ge=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.carryCosts.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,carryCosts:w})}else{const w=l.carryCosts.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,carryCosts:w})}},Be=()=>l.carryCosts.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),Ct=()=>{d(S=>({...S,renovationCost:[...S.renovationCost,{title:"",price:""}]}))},zt=S=>{const P=l.renovationCost.filter((f,y)=>y!==S);d(f=>({...f,renovationCost:P}))},he=(S,P,f)=>{const y=[...l.renovationCost];y[S][P]=f,d(w=>({...w,renovationCost:y}))},$t=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.renovationCost.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,renovationCost:w})}else{const w=l.renovationCost.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,renovationCost:w})}},Ye=()=>l.renovationCost.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),Qn=()=>{const S=ne(),P=Be(),f=Ye();return S+P+f},Zt=()=>{const S=Qn(),P=W();return S+P},ys=()=>{d(S=>({...S,costPaidOutofClosing:[...S.costPaidOutofClosing,{title:"",price:""}]}))},js=S=>{const P=l.costPaidOutofClosing.filter((f,y)=>y!==S);d(f=>({...f,costPaidOutofClosing:P}))},Xn=(S,P,f)=>{const y=[...l.costPaidOutofClosing];y[S][P]=f,d(w=>({...w,costPaidOutofClosing:y}))},Wt=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidOutofClosing.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,costPaidOutofClosing:w})}},gn=()=>l.costPaidOutofClosing.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),Ut=()=>{const S=l.sellingPriceBtoC,P=gn();return S-P},fe=()=>{d(S=>({...S,adjustments:[...S.adjustments,{title:"",price:""}]}))},qt=S=>{const P=l.adjustments.filter((f,y)=>y!==S);d(f=>({...f,adjustments:P}))},xn=(S,P,f)=>{const y=[...l.adjustments];y[S][P]=f,d(w=>({...w,adjustments:y}))},Bo=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.adjustments.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,adjustments:w})}else{const w=l.adjustments.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,adjustments:w})}},Ns=()=>l.adjustments.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),Mo=()=>{const S=Ut(),P=Ns();return S+P},sl=()=>{d(S=>({...S,incomestatement:[...S.incomestatement,{title:"",price:""}]}))},ol=S=>{const P=l.incomestatement.filter((f,y)=>y!==S);d(f=>({...f,incomestatement:P}))},Cs=(S,P,f)=>{const y=[...l.incomestatement];y[S][P]=f,d(w=>({...w,incomestatement:y}))},Jn=(S,P)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incomestatement.map((F,q)=>q===P?{...F,price:f,isInvalid:!1}:F);d({...l,incomestatement:w})}else{const w=l.incomestatement.map((F,q)=>q===P?{...F,isInvalid:!0}:F);d({...l,incomestatement:w})}},Zn=()=>l.incomestatement.reduce((S,P)=>{const f=parseFloat(P.price);return S+(isNaN(f)?0:f)},0),en=()=>{const S=Zn(),P=Ut();return S+P},Er=()=>{const S=isNaN(parseFloat(en()))?0:parseFloat(en()),P=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),f=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),y=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),w=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),F=isNaN(parseFloat(Zt()))?0:parseFloat(Zt());return S+P+f+y+w-F},bs=()=>{const S=Er(),P=l.FinancingCostClosingCost;return S-P},il=()=>bs(),zo=()=>{d(S=>({...S,IAB:[...S.IAB,{title:"",URL:""}]}))},$o=S=>{const P=l.IAB.filter((f,y)=>y!==S);d(f=>({...f,IAB:P}))},al=(S,P,f)=>{const y=[...l.IAB];y[S][P]=f,d(w=>({...w,IAB:y}))},ll=(S,P,f)=>{const y=[...l.IAB];y[S][P]=f,d(w=>({...w,IAB:y}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"card d-flex justify-content-center align-items-center col-12",style:{padding:"35px",paddingLeft:"250px"},children:r.jsxs("div",{className:"justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:n==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("IAB"),role:"tab",children:"IAB Verified Report"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:u,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((S,P)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:S.propertytaxowned,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:S.ownedyear,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:S.taxassessed,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:S.taxyear,onChange:f=>p(f,P),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>x(P),style:{height:"25px",width:"35px"},children:"X"})]})})]},P)),r.jsx("button",{className:"btn btn-secondary",onClick:N,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,placeholder:"Image Title",onChange:f=>v(P,f)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:f=>C(f,P)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(P),style:{marginLeft:"5px"},children:"Delete"})]}),S.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:S.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},P)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:b,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:u,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY&center=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 col-16",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:S=>{const P=S.target.value;d({...l,closeDateAtoB:P}),E(P,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:S=>{const P=S.target.value;d({...l,closeDateBtoC:P}),E(l.closeDateAtoB,P)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(S=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${S}`,value:S,checked:l.renovationRisk===S,onChange:P=>{const f=parseInt(P.target.value,10);d({...l,renovationRisk:f})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${S}`,children:S})]},S))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${il().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:S=>{let P=S.target.value.replace(/[^\d.]/g,"");const f=/^\d*\.?\d*$/.test(P);d({...l,purchaseCost:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>_(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:`$ ${S.price}`,onChange:f=>L(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>O(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:T,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${z().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>Q(P,"title",f.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Z(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>te(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>R(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>M(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>A(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:G,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>ee(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>re(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Y(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>de(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>ge(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>le(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Be(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>he(P,"title",f.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>$t(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>zt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ct,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,sellingPriceBtoC:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>Xn(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Wt(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>js(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ys,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>xn(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Bo(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>qt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:fe,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:Ns(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Mo(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>Cs(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Jn(f,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ol(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:sl,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Zt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,fundspriortoclosing:P,isfundspriortoclosingInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,shorttermrental:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,OtherIncome:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,InsuranceClaim:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,LongTermRental:P,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Er(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:S=>{const P=S.target.value,f=/^\d*\.?\d*$/.test(P);d({...l,FinancingCostClosingCost:P,isFinancingCostClosingCostInvalid:!f})},onKeyPress:S=>{const P=S.charCode;(P<48||P>57)&&P!==46&&(S.preventDefault(),d({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:o,children:"Continue"})," "]})]}),n==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),l.IAB.map((S,P)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>al(P,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:S.URL,onChange:f=>ll(P,"URL",f.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>$o(P),style:{marginLeft:"5px"},children:"x"})})]},P)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:zo,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]})]})]})]})})]})},ok=()=>{const e=Ke(),{properties:t,loading:n,totalPages:s,currentPage:o}=_e(C=>C.property),[i,a]=k.useState(""),[l,d]=k.useState([]),[c,u]=k.useState(1),p=10;k.useEffect(()=>{e(mr({page:c,limit:p,keyword:i}))},[e,c,i]),k.useEffect(()=>{i.trim()?d(t.filter(C=>C.address.toLowerCase().includes(i.toLowerCase()))):d(t)},[i,t]);const g=C=>{a(C.target.value)},N=C=>{C.preventDefault()},x=C=>{u(C),e(mr({page:C,limit:p,keyword:i}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:N,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:i,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:l.length>0?l.map(C=>r.jsxs("tr",{children:[r.jsx("td",{children:C.images&&C.images[0]?r.jsx("img",{src:C.images[0].file||mt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ae,{to:`/property/${C.propertyId}`,className:"link-primary text-decoration-none",children:C.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),C.city,", ",C.county,","," ",C.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",C.propertyId]})]})]})}),r.jsx("td",{children:C.totallivingsqft}),r.jsx("td",{children:C.yearBuild}),r.jsx("td",{children:C.costpersqft})]},C.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${o===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o-1),children:"Previous"})}),Array.from({length:s},(C,b)=>r.jsx("li",{className:`page-item ${o===b+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(b+1),children:b+1})},b+1)),r.jsx("li",{className:`page-item ${o===s?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(o+1),children:"Next"})})]})})]}),r.jsx(tt,{})]})},ik=()=>{const{userId:e}=gs(),t=Ke(),{user:n,loading:s}=_e(o=>o.user);return k.useEffect(()=>{e&&t(Ti(e))},[e,t]),s?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{className:"img-fluid",src:n.profileImage||Bs,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"300px",maxHeight:"300px"}}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsxs("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:["$ ",n.fundAmount]}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})};function ak(){const e="http://67.225.129.127:3002",[t,n]=k.useState(""),[s,o]=k.useState(""),i=hn(),a=async l=>{l.preventDefault();try{const{data:d}=await me.post(`${e}/admin/login`,{username:t,password:s});localStorage.setItem("token",d.token),i("/AdminPLogin/dashboard")}catch(d){alert("Invalid login credentials",d)}};return r.jsx(r.Fragment,{children:r.jsx("section",{className:"d-flex justify-content-center align-items-center col-12",style:{minHeight:"100vh",backgroundColor:"#FFFFFF",width:"100%",paddingLeft:"500px"},children:r.jsx("div",{className:"col-md-6 col-lg-4",children:r.jsx("div",{className:"container-fluid px-0",children:r.jsx("div",{className:"row gy-4 align-items-center justify-content-center",children:r.jsxs("div",{className:"col-12 text-center",children:[r.jsx("input",{autoComplete:"off",type:"text",value:t,onChange:l=>n(l.target.value)}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("input",{autoComplete:"off",type:"password",value:s,onChange:l=>o(l.target.value)}),r.jsx("div",{className:"mb-3",children:r.jsx("button",{onClick:a,className:"btn btn-dark w-70",children:"Login"})})]})})})})})})}function Bi({children:e}){const t=hn(),n=localStorage.getItem("token");return k.useEffect(()=>{n||t("/AdminPLogin")},[n,t]),n?e:null}Bi.propTypes={children:Lt.node.isRequired};const lk=()=>{const e=hn(),t=Ke(),{properties:n,totalPages:s}=_e(N=>N.property),[o,i]=k.useState(1),a=5,l="",[d,c]=k.useState("dashboard");k.useEffect(()=>{t(mr({page:o,limit:a,keyword:l}))},[t,o,l]);const u=N=>{i(N)},p=()=>{switch(d){case"activeUsers":return r.jsx("div",{children:"Active Users Content"});case"inactiveUsers":return r.jsx("div",{children:"Inactive Users Content"});case"addProperty":return r.jsx("div",{children:"Add Property Content"});case"userProperties":return r.jsx("div",{className:"container-fluid",style:{padding:"35px",paddingLeft:"120px"},children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(N=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:N.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsx("h5",{children:r.jsxs(ae,{to:`/property/${N.propertyId}`,target:"_blank",children:[N.address,"....."]})}),r.jsx("p",{className:"text-justify text-truncate para mb-0",children:"There are many variations of passages of"})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(ae,{to:`/property/${N.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," ","View Details"]})}),r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:()=>c("editDetails"),children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," ","Edit Details"]})]})})]})})})},N._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>u(o-1),disabled:o===1,children:"Previous"}),Array.from({length:s},(N,x)=>x+1).map(N=>N===o||N===1||N===s||N>=o-1&&N<=o+1?r.jsx("button",{onClick:()=>u(N),disabled:o===N,children:N},N):N===2||N===s-1?r.jsx("span",{children:"..."},N):null),r.jsx("button",{onClick:()=>u(o+1),disabled:o===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})});case"adminProperties":return r.jsx("div",{children:"Admin Properties Content"});case"newPage":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"New Page"}),r.jsx("p",{children:"This is some dummy text. You can replace it with your content later."})]});case"editDetails":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"Edit Property Details"}),r.jsx("p",{children:"You can add your edit details here."})]});default:return r.jsx("div",{children:r.jsx(ae,{to:"/AdminPLogin/admininfo",children:"Welcome to the Dashboard"})})}},g=()=>{localStorage.removeItem("token"),e("/AdminPLogin")};return r.jsxs("div",{id:"wrapper",children:[r.jsxs("ul",{className:"navbar-nav bg-gradient-primary sidebar sidebar-dark accordion",id:"accordionSidebar",children:[r.jsxs("span",{className:"sidebar-brand d-flex align-items-center justify-content-center",children:[r.jsx("div",{className:"sidebar-brand-icon rotate-n-15",children:r.jsx("i",{className:"fas fa-laugh-wink"})}),r.jsxs("div",{className:"sidebar-brand-text mx-3",children:["Admin ",r.jsx("sup",{children:"EL"})]})]}),r.jsx("hr",{className:"sidebar-divider my-0"}),r.jsx("li",{className:"nav-item active",children:r.jsxs(ae,{to:"#",onClick:()=>c("dashboard"),className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-tachometer-alt"}),r.jsx("span",{children:"Dashboard"})]})}),r.jsx("hr",{className:"sidebar-divider"}),r.jsx("div",{className:"sidebar-heading",children:"Interface"}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseTwo","aria-expanded":"true","aria-controls":"collapseTwo",children:[r.jsx("i",{className:"fas fa-fw fa-cog"}),r.jsx("span",{children:"Users"})]}),r.jsx("div",{id:"collapseTwo",className:"collapse","aria-labelledby":"headingTwo","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Registered Users:"}),r.jsx(ae,{to:"#",onClick:()=>c("activeUsers"),className:"collapse-item link-primary text-decoration-none",children:"Active Users"}),r.jsx(ae,{to:"#",onClick:()=>c("inactiveUsers"),className:"collapse-item link-primary text-decoration-none",children:"Inactive Users"})]})})]}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseUtilities","aria-expanded":"true","aria-controls":"collapseUtilities",children:[r.jsx("i",{className:"fas fa-fw fa-wrench"}),r.jsx("span",{children:"Properties"})]}),r.jsx("div",{id:"collapseUtilities",className:"collapse","aria-labelledby":"headingUtilities","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Details:"}),r.jsx(ae,{to:"#",onClick:()=>c("addProperty"),className:"collapse-item link-primary text-decoration-none",children:"Add Property"}),r.jsx(ae,{to:"#",onClick:()=>c("userProperties"),className:"collapse-item link-primary text-decoration-none",children:"User Properties"}),r.jsx(ae,{to:"#",onClick:()=>c("adminProperties"),className:"collapse-item link-primary text-decoration-none",children:"Admin Properties"}),r.jsx(ae,{to:"#",onClick:()=>c("newPage"),className:"collapse-item link-primary text-decoration-none",children:"New Page"})]})})]}),r.jsx("li",{className:"nav-item",children:r.jsxs(ae,{to:"#",onClick:g,className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-sign-out-alt"}),r.jsx("span",{children:"Logout"})]})})]}),r.jsx("div",{id:"content-wrapper",className:"d-flex flex-column",children:r.jsx("div",{id:"content",children:r.jsx("div",{className:"container-fluid",children:p()})})})]})},ck=()=>{const e=Ke(),{user:t,loading:n,error:s}=_e(o=>o.admin);return console.log("user",t),k.useEffect(()=>{e(Di())},[e]),n?r.jsx("p",{children:"Loading..."}):s?r.jsxs("p",{children:["Error: ",s]}):r.jsxs("div",{children:[r.jsx("h2",{children:"Admin Details"}),t?r.jsx("div",{children:r.jsxs("p",{children:[r.jsx("strong",{children:"Username:"})," ",t.username]})}):r.jsx("p",{children:"No user details found. Thank you"})]})},dk=()=>r.jsxs(bC,{children:[r.jsx($C,{}),r.jsxs(hC,{children:[r.jsx(be,{path:"/",element:r.jsx(WC,{})}),r.jsx(be,{path:"/about",element:r.jsx(UC,{})}),r.jsx(be,{path:"/services",element:r.jsx(rk,{})}),r.jsx(be,{path:"/contact",element:r.jsx(qC,{})}),r.jsx(be,{path:"/register",element:r.jsx(vb,{})}),r.jsx(be,{path:"/registrationsuccess",element:r.jsx(Ms,{children:r.jsx(Fb,{})})}),r.jsx(be,{path:"/login",element:r.jsx(xb,{})}),r.jsx(be,{path:"/dashboard",element:r.jsx(Ms,{children:r.jsx(kb,{})})}),r.jsx(be,{path:"/users/:id/verify/:token",element:r.jsx(Ab,{})}),r.jsx(be,{path:"/forgotpassword",element:r.jsx(Rb,{})}),r.jsx(be,{path:"/users/resetpassword/:userId/:token",element:r.jsx(Ib,{})}),r.jsx(be,{path:"/addproperty",element:r.jsx(Ms,{children:r.jsx(sg,{})})}),r.jsx(be,{path:"/property/:id",element:r.jsx(tk,{})}),r.jsx(be,{path:"/properties/:house_id",element:r.jsx(sk,{})}),r.jsx(be,{path:"/searchmyproperties",element:r.jsx(nk,{})}),r.jsx(be,{path:"/searchproperties",element:r.jsx(ok,{})}),r.jsx(be,{path:"/editproperty/:id",element:r.jsx(Ms,{children:r.jsx(Dp,{})})}),r.jsx(be,{path:"/profile/:userId",element:r.jsx(ik,{})}),r.jsx(be,{path:"/AdminPLogin",element:r.jsx(ak,{})}),r.jsx(be,{path:"/AdminPLogin/dashboard",element:r.jsx(Bi,{children:r.jsx(lk,{})})}),r.jsx(be,{path:"/AdminPLogin/admininfo",element:r.jsx(Bi,{children:r.jsx(ck,{})})}),r.jsx(be,{path:"/admineditproperty/:id",element:r.jsx(Bi,{children:r.jsx(Dp,{})})})]})]});Qh(document.getElementById("root")).render(r.jsx(k.StrictMode,{children:r.jsx(Dj,{store:PN,children:r.jsx(dk,{})})}));