var nv=Object.defineProperty;var rv=(e,t,n)=>t in e?nv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fa=(e,t,n)=>rv(e,typeof t!="symbol"?t+"":t,n);function iv(e,t){for(var n=0;ni[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"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var ov=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kf={exports:{}},zs={},Ef={exports:{}},le={};/** * @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 Zi=Symbol.for("react.element"),sv=Symbol.for("react.portal"),av=Symbol.for("react.fragment"),lv=Symbol.for("react.strict_mode"),cv=Symbol.for("react.profiler"),uv=Symbol.for("react.provider"),dv=Symbol.for("react.context"),fv=Symbol.for("react.forward_ref"),pv=Symbol.for("react.suspense"),mv=Symbol.for("react.memo"),hv=Symbol.for("react.lazy"),Fu=Symbol.iterator;function vv(e){return e===null||typeof e!="object"?null:(e=Fu&&e[Fu]||e["@@iterator"],typeof e=="function"?e:null)}var Pf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_f=Object.assign,Of={};function Br(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Pf}Br.prototype.isReactComponent={};Br.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")};Br.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tf(){}Tf.prototype=Br.prototype;function Tc(e,t,n){this.props=e,this.context=t,this.refs=Of,this.updater=n||Pf}var Ac=Tc.prototype=new Tf;Ac.constructor=Tc;_f(Ac,Br.prototype);Ac.isPureReactComponent=!0;var Lu=Array.isArray,Af=Object.prototype.hasOwnProperty,Ic={current:null},If={key:!0,ref:!0,__self:!0,__source:!0};function Rf(e,t,n){var i,o={},s=null,a=null;if(t!=null)for(i in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(s=""+t.key),t)Af.call(t,i)&&!If.hasOwnProperty(i)&&(o[i]=t[i]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,$=A[B];if(0>>1;Bo(ee,L))re<$&&0>o(ne,ee)?(A[B]=ne,A[re]=L,B=re):(A[B]=ee,A[G]=L,B=G);else if(re<$&&0>o(ne,L))A[B]=ne,A[re]=L,B=re;else break e}}return T}function o(A,T){var L=A.sortIndex-T.sortIndex;return L!==0?L:A.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],c=[],d=1,p=null,x=3,b=!1,g=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,h=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 m(A){for(var T=n(c);T!==null;){if(T.callback===null)i(c);else if(T.startTime<=A)i(c),T.sortIndex=T.expirationTime,t(u,T);else break;T=n(c)}}function y(A){if(N=!1,m(A),!g)if(n(u)!==null)g=!0,U(E);else{var T=n(c);T!==null&&Q(y,T.startTime-A)}}function E(A,T){g=!1,N&&(N=!1,h(P),P=-1),b=!0;var L=x;try{for(m(T),p=n(u);p!==null&&(!(p.expirationTime>T)||A&&!H());){var B=p.callback;if(typeof B=="function"){p.callback=null,x=p.priorityLevel;var $=B(p.expirationTime<=T);T=e.unstable_now(),typeof $=="function"?p.callback=$:p===n(u)&&i(u),m(T)}else i(u);p=n(u)}if(p!==null)var K=!0;else{var G=n(c);G!==null&&Q(y,G.startTime-T),K=!1}return K}finally{p=null,x=L,b=!1}}var _=!1,O=null,P=-1,M=5,W=-1;function H(){return!(e.unstable_now()-WA||125B?(A.sortIndex=L,t(c,A),n(u)===null&&A===n(c)&&(N?(h(P),P=-1):N=!0,Q(y,L-B))):(A.sortIndex=$,t(u,A),g||b||(g=!0,U(E))),A},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(A){var T=x;return function(){var L=x;x=T;try{return A.apply(this,arguments)}finally{x=L}}}})(Bf);Mf.exports=Bf;var Ev=Mf.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 Pv=R,lt=Ev;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jl=Object.prototype.hasOwnProperty,_v=/^[: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]*$/,Bu={},zu={};function Ov(e){return jl.call(zu,e)?!0:jl.call(Bu,e)?!1:_v.test(e)?zu[e]=!0:(Bu[e]=!0,!1)}function Tv(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Av(e,t,n,i){if(t===null||typeof t>"u"||Tv(e,t,n,i))return!0;if(i)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 Ve(e,t,n,i,o,s,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=a}var Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Fe[e]=new Ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Fe[t]=new Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Fe[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Fe[e]=new Ve(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){Fe[e]=new Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Fe[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Fe[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Fe[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Fe[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Dc=/[\-:]([a-z])/g;function Fc(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(Dc,Fc);Fe[t]=new Ve(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(Dc,Fc);Fe[t]=new Ve(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(Dc,Fc);Fe[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Fe[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Fe[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Lc(e,t,n,i){var o=Fe.hasOwnProperty(t)?Fe[t]:null;(o!==null?o.type!==0:i||!(2l||o[a]!==s[l]){var u=` `+o[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{Ba=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?di(e):""}function Iv(e){switch(e.tag){case 5:return di(e.type);case 16:return di("Lazy");case 13:return di("Suspense");case 19:return di("SuspenseList");case 0:case 2:case 15:return e=za(e.type,!1),e;case 11:return e=za(e.type.render,!1),e;case 1:return e=za(e.type,!0),e;default:return""}}function wl(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 lr:return"Fragment";case ar:return"Portal";case Nl:return"Profiler";case Mc:return"StrictMode";case Cl:return"Suspense";case bl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $f:return(e.displayName||"Context")+".Consumer";case Wf:return(e._context.displayName||"Context")+".Provider";case Bc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zc:return t=e.displayName||null,t!==null?t:wl(e.type)||"Memo";case on:t=e._payload,e=e._init;try{return wl(e(t))}catch{}}return null}function Rv(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 wl(t);case 8:return t===Mc?"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 Sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dv(e){var t=qf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){i=""+a,s.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(a){i=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ho(e){e._valueTracker||(e._valueTracker=Dv(e))}function Vf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=qf(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function is(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 Sl(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $u(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=Sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hf(e,t){t=t.checked,t!=null&&Lc(e,"checked",t,!1)}function kl(e,t){Hf(e,t);var n=Sn(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?El(e,t.type,n):t.hasOwnProperty("defaultValue")&&El(e,t.type,Sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="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 El(e,t,n){(t!=="number"||is(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var fi=Array.isArray;function wr(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=vo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Oi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vi={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},Fv=["Webkit","ms","Moz","O"];Object.keys(vi).forEach(function(e){Fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vi[t]=vi[e]})});function Qf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vi.hasOwnProperty(e)&&vi[e]?(""+t).trim():t+"px"}function Jf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,o=Qf(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,o):e[n]=o}}var Lv=Ce({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 Ol(e,t){if(t){if(Lv[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 Tl(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 Al=null;function Wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Il=null,Sr=null,kr=null;function Hu(e){if(e=no(e)){if(typeof Il!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Vs(t),Il(e.stateNode,e.type,t))}}function Xf(e){Sr?kr?kr.push(e):kr=[e]:Sr=e}function Zf(){if(Sr){var e=Sr,t=kr;if(kr=Sr=null,Hu(e),t)for(e=0;e>>=0,e===0?32:31-(Kv(e)/Gv|0)|0}var go=64,xo=4194304;function pi(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 ls(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,o=e.suspendedLanes,s=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?i=pi(l):(s&=a,s!==0&&(i=pi(s)))}else a=n&~o,a!==0?i=pi(a):s!==0&&(i=pi(s));if(i===0)return 0;if(t!==0&&t!==i&&!(t&o)&&(o=i&-i,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;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-wt(t),e[t]=n}function Zv(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 i=e.eventTimes;for(e=e.expirationTimes;0=xi),td=" ",nd=!1;function yp(e,t){switch(e){case"keyup":return Eg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cr=!1;function _g(e,t){switch(e){case"compositionend":return jp(t);case"keypress":return t.which!==32?null:(nd=!0,td);case"textInput":return e=t.data,e===td&&nd?null:e;default:return null}}function Og(e,t){if(cr)return e==="compositionend"||!Gc&&yp(e,t)?(e=gp(),Fo=Hc=fn=null,cr=!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)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=sd(n)}}function wp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sp(){for(var e=window,t=is();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=is(e.document)}return t}function Qc(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 Bg(e){var t=Sp(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wp(n.ownerDocument.documentElement,n)){if(i!==null&&Qc(n)){if(t=i.start,e=i.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,s=Math.min(i.start,o);i=i.end===void 0?s:Math.min(i.end,o),!e.extend&&s>i&&(o=i,i=s,s=o),o=ad(n,s);var a=ad(n,i);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(),s>i?(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=document.documentMode,ur=null,Bl=null,ji=null,zl=!1;function ld(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zl||ur==null||ur!==is(i)||(i=ur,"selectionStart"in i&&Qc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ji&&Fi(ji,i)||(ji=i,i=ds(Bl,"onSelect"),0pr||(e.current=Hl[pr],Hl[pr]=null,pr--)}function pe(e,t){pr++,Hl[pr]=e.current,e.current=t}var kn={},ze=_n(kn),Qe=_n(!1),Kn=kn;function Tr(e,t){var n=e.type.contextTypes;if(!n)return kn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Je(e){return e=e.childContextTypes,e!=null}function ps(){ve(Qe),ve(ze)}function hd(e,t,n){if(ze.current!==kn)throw Error(V(168));pe(ze,t),pe(Qe,n)}function Rp(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var o in i)if(!(o in t))throw Error(V(108,Rv(e)||"Unknown",o));return Ce({},n,i)}function ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||kn,Kn=ze.current,pe(ze,e),pe(Qe,Qe.current),!0}function vd(e,t,n){var i=e.stateNode;if(!i)throw Error(V(169));n?(e=Rp(e,t,Kn),i.__reactInternalMemoizedMergedChildContext=e,ve(Qe),ve(ze),pe(ze,e)):ve(Qe),pe(Qe,n)}var Ut=null,Hs=!1,el=!1;function Dp(e){Ut===null?Ut=[e]:Ut.push(e)}function Jg(e){Hs=!0,Dp(e)}function On(){if(!el&&Ut!==null){el=!0;var e=0,t=fe;try{var n=Ut;for(fe=1;e>=a,o-=a,qt=1<<32-wt(t)+o|n<P?(M=O,O=null):M=O.sibling;var W=x(h,O,m[P],y);if(W===null){O===null&&(O=M);break}e&&O&&W.alternate===null&&t(h,O),v=s(W,v,P),_===null?E=W:_.sibling=W,_=W,O=M}if(P===m.length)return n(h,O),xe&&Fn(h,P),E;if(O===null){for(;PP?(M=O,O=null):M=O.sibling;var H=x(h,O,W.value,y);if(H===null){O===null&&(O=M);break}e&&O&&H.alternate===null&&t(h,O),v=s(H,v,P),_===null?E=H:_.sibling=H,_=H,O=M}if(W.done)return n(h,O),xe&&Fn(h,P),E;if(O===null){for(;!W.done;P++,W=m.next())W=p(h,W.value,y),W!==null&&(v=s(W,v,P),_===null?E=W:_.sibling=W,_=W);return xe&&Fn(h,P),E}for(O=i(h,O);!W.done;P++,W=m.next())W=b(O,h,P,W.value,y),W!==null&&(e&&W.alternate!==null&&O.delete(W.key===null?P:W.key),v=s(W,v,P),_===null?E=W:_.sibling=W,_=W);return e&&O.forEach(function(te){return t(h,te)}),xe&&Fn(h,P),E}function C(h,v,m,y){if(typeof m=="object"&&m!==null&&m.type===lr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case mo:e:{for(var E=m.key,_=v;_!==null;){if(_.key===E){if(E=m.type,E===lr){if(_.tag===7){n(h,_.sibling),v=o(_,m.props.children),v.return=h,h=v;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===on&&yd(E)===_.type){n(h,_.sibling),v=o(_,m.props),v.ref=ai(h,_,m),v.return=h,h=v;break e}n(h,_);break}else t(h,_);_=_.sibling}m.type===lr?(v=Vn(m.props.children,h.mode,y,m.key),v.return=h,h=v):(y=qo(m.type,m.key,m.props,null,h.mode,y),y.ref=ai(h,v,m),y.return=h,h=y)}return a(h);case ar:e:{for(_=m.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===m.containerInfo&&v.stateNode.implementation===m.implementation){n(h,v.sibling),v=o(v,m.children||[]),v.return=h,h=v;break e}else{n(h,v);break}else t(h,v);v=v.sibling}v=ll(m,h.mode,y),v.return=h,h=v}return a(h);case on:return _=m._init,C(h,v,_(m._payload),y)}if(fi(m))return g(h,v,m,y);if(ni(m))return N(h,v,m,y);So(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,v!==null&&v.tag===6?(n(h,v.sibling),v=o(v,m),v.return=h,h=v):(n(h,v),v=al(m,h.mode,y),v.return=h,h=v),a(h)):n(h,v)}return C}var Ir=Bp(!0),zp=Bp(!1),gs=_n(null),xs=null,vr=null,eu=null;function tu(){eu=vr=xs=null}function nu(e){var t=gs.current;ve(gs),e._currentValue=t}function Gl(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Pr(e,t){xs=e,eu=vr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ge=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(eu!==e)if(e={context:e,memoizedValue:t,next:null},vr===null){if(xs===null)throw Error(V(308));vr=e,xs.dependencies={lanes:0,firstContext:e}}else vr=vr.next=e;return t}var Wn=null;function ru(e){Wn===null?Wn=[e]:Wn.push(e)}function Wp(e,t,n,i){var o=t.interleaved;return o===null?(n.next=n,ru(t)):(n.next=o.next,o.next=n),t.interleaved=n,Gt(e,i)}function Gt(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 sn=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $p(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 Ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,ue&2){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,Gt(e,n)}return o=i.interleaved,o===null?(t.next=t,ru(i)):(t.next=o.next,o.next=t),i.interleaved=t,Gt(e,n)}function Mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Uc(e,n)}}function jd(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,s=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};s===null?o=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ys(e,t,n,i){var o=e.updateQueue;sn=!1;var s=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?s=c:a.next=c,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=u))}if(s!==null){var p=o.baseState;a=0,d=c=u=null,l=s;do{var x=l.lane,b=l.eventTime;if((i&x)===x){d!==null&&(d=d.next={eventTime:b,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,N=l;switch(x=t,b=n,N.tag){case 1:if(g=N.payload,typeof g=="function"){p=g.call(b,p,x);break e}p=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=N.payload,x=typeof g=="function"?g.call(b,p,x):g,x==null)break e;p=Ce({},p,x);break e;case 2:sn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,x=o.effects,x===null?o.effects=[l]:x.push(l))}else b={eventTime:b,lane:x,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=b,u=p):d=d.next=b,a|=x;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;x=l,l=x.next,x.next=null,o.lastBaseUpdate=x,o.shared.pending=null}}while(!0);if(d===null&&(u=p),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Jn|=a,e.lanes=a,e.memoizedState=p}}function Nd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var i=nl.transition;nl.transition={};try{e(!1),t()}finally{fe=n,nl.transition=i}}function om(){return xt().memoizedState}function tx(e,t,n){var i=Cn(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},sm(e))am(t,n);else if(n=Wp(e,t,n,i),n!==null){var o=Ue();St(n,e,i,o),lm(n,t,i)}}function nx(e,t,n){var i=Cn(e),o={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(sm(e))am(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var a=t.lastRenderedState,l=s(a,n);if(o.hasEagerState=!0,o.eagerState=l,Et(l,a)){var u=t.interleaved;u===null?(o.next=o,ru(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=Wp(e,t,o,i),n!==null&&(o=Ue(),St(n,e,i,o),lm(n,t,i))}}function sm(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function am(e,t){Ni=Ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lm(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Uc(e,n)}}var Cs={readContext:gt,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},rx={readContext:gt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:bd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zo(4194308,4,em.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=At();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=tx.bind(null,Ne,e),[i.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:Cd,useDebugValue:fu,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=Cd(!1),t=e[0];return e=ex.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Ne,o=At();if(xe){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),Te===null)throw Error(V(349));Qn&30||Hp(i,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,bd(Kp.bind(null,i,s,e),[e]),i.flags|=2048,qi(9,Yp.bind(null,i,s,n,t),void 0,null),n},useId:function(){var e=At(),t=Te.identifierPrefix;if(xe){var n=Vt,i=qt;n=(i&~(1<<32-wt(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=$i++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=a.createElement(n,{is:i.is}):(e=a.createElement(n),n==="select"&&(a=e,i.multiple?a.multiple=!0:i.size&&(a.size=i.size))):e=a.createElementNS(e,n),e[Rt]=t,e[Bi]=i,xm(e,t,!1,!1),t.stateNode=e;e:{switch(a=Tl(n,i),n){case"dialog":he("cancel",e),he("close",e),o=i;break;case"iframe":case"object":case"embed":he("load",e),o=i;break;case"video":case"audio":for(o=0;oFr&&(t.flags|=128,i=!0,li(s,!1),t.lanes=4194304)}else{if(!i)if(e=js(a),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),li(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!xe)return Me(t),null}else 2*Se()-s.renderingStartTime>Fr&&n!==1073741824&&(t.flags|=128,i=!0,li(s,!1),t.lanes=4194304);s.isBackwards?(a.sibling=t.child,t.child=a):(n=s.last,n!==null?n.sibling=a:t.child=a,s.last=a)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Se(),t.sibling=null,n=je.current,pe(je,i?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return xu(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?nt&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function dx(e,t){switch(Xc(t),t.tag){case 1:return Je(t.type)&&ps(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rr(),ve(Qe),ve(ze),au(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return su(t),null;case 13:if(ve(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(je),null;case 4:return Rr(),null;case 10:return nu(t.type._context),null;case 22:case 23:return xu(),null;case 24:return null;default:return null}}var Eo=!1,Be=!1,fx=typeof WeakSet=="function"?WeakSet:Set,J=null;function gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){be(e,t,i)}else n.current=null}function ic(e,t,n){try{n()}catch(i){be(e,t,i)}}var Rd=!1;function px(e,t){if(Wl=cs,e=Sp(),Qc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,c=0,d=0,p=e,x=null;t:for(;;){for(var b;p!==n||o!==0&&p.nodeType!==3||(l=a+o),p!==s||i!==0&&p.nodeType!==3||(u=a+i),p.nodeType===3&&(a+=p.nodeValue.length),(b=p.firstChild)!==null;)x=p,p=b;for(;;){if(p===e)break t;if(x===n&&++c===o&&(l=a),x===s&&++d===i&&(u=a),(b=p.nextSibling)!==null)break;p=x,x=p.parentNode}p=b}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for($l={focusedElem:e,selectionRange:n},cs=!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 g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var N=g.memoizedProps,C=g.memoizedState,h=t.stateNode,v=h.getSnapshotBeforeUpdate(t.elementType===t.type?N:jt(t.type,N),C);h.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(y){be(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return g=Rd,Rd=!1,g}function Ci(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&ic(t,n,s)}o=o.next}while(o!==i)}}function Gs(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 i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function oc(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 Nm(e){var t=e.alternate;t!==null&&(e.alternate=null,Nm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Bi],delete t[Vl],delete t[Gg],delete t[Qg])),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 Cm(e){return e.tag===5||e.tag===3||e.tag===4}function Dd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cm(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 sc(e,t,n){var i=e.tag;if(i===5||i===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=fs));else if(i!==4&&(e=e.child,e!==null))for(sc(e,t,n),e=e.sibling;e!==null;)sc(e,t,n),e=e.sibling}function ac(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}var Re=null,Nt=!1;function nn(e,t,n){for(n=n.child;n!==null;)bm(e,t,n),n=n.sibling}function bm(e,t,n){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(Ws,n)}catch{}switch(n.tag){case 5:Be||gr(n,t);case 6:var i=Re,o=Nt;Re=null,nn(e,t,n),Re=i,Nt=o,Re!==null&&(Nt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(Nt?(e=Re,n=n.stateNode,e.nodeType===8?Za(e.parentNode,n):e.nodeType===1&&Za(e,n),Ri(e)):Za(Re,n.stateNode));break;case 4:i=Re,o=Nt,Re=n.stateNode.containerInfo,Nt=!0,nn(e,t,n),Re=i,Nt=o;break;case 0:case 11:case 14:case 15:if(!Be&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var s=o,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&ic(n,t,a),o=o.next}while(o!==i)}nn(e,t,n);break;case 1:if(!Be&&(gr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(l){be(n,t,l)}nn(e,t,n);break;case 21:nn(e,t,n);break;case 22:n.mode&1?(Be=(i=Be)||n.memoizedState!==null,nn(e,t,n),Be=i):nn(e,t,n);break;default:nn(e,t,n)}}function Fd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fx),t.forEach(function(i){var o=Cx.bind(null,e,i);n.has(i)||(n.add(i),i.then(o,o))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var i=0;io&&(o=a),i&=~s}if(i=o,i=Se()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*hx(i/1960))-i,10e?16:e,pn===null)var i=!1;else{if(e=pn,pn=null,Ss=0,ue&6)throw Error(V(331));var o=ue;for(ue|=4,J=e.current;J!==null;){var s=J,a=s.child;if(J.flags&16){var l=s.deletions;if(l!==null){for(var u=0;uSe()-vu?qn(e,0):hu|=n),Xe(e,t)}function Tm(e,t){t===0&&(e.mode&1?(t=xo,xo<<=1,!(xo&130023424)&&(xo=4194304)):t=1);var n=Ue();e=Gt(e,t),e!==null&&(eo(e,t,n),Xe(e,n))}function Nx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Tm(e,n)}function Cx(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(V(314))}i!==null&&i.delete(t),Tm(e,n)}var Am;Am=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,cx(e,t,n);Ge=!!(e.flags&131072)}else Ge=!1,xe&&t.flags&1048576&&Fp(t,vs,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Wo(e,t),e=t.pendingProps;var o=Tr(t,ze.current);Pr(t,n),o=cu(null,t,i,e,o,n);var s=uu();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,Je(i)?(s=!0,ms(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,iu(t),o.updater=Ks,t.stateNode=o,o._reactInternals=t,Jl(t,i,e,n),t=ec(null,t,i,!0,s,n)):(t.tag=0,xe&&s&&Jc(t),We(null,t,o,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Wo(e,t),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=wx(i),e=jt(i,e),o){case 0:t=Zl(null,t,i,e,n);break e;case 1:t=Td(null,t,i,e,n);break e;case 11:t=_d(null,t,i,e,n);break e;case 14:t=Od(null,t,i,jt(i.type,e),n);break e}throw Error(V(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:jt(i,o),Zl(e,t,i,o,n);case 1:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:jt(i,o),Td(e,t,i,o,n);case 3:e:{if(hm(t),e===null)throw Error(V(387));i=t.pendingProps,s=t.memoizedState,o=s.element,$p(e,t),ys(t,i,null,n);var a=t.memoizedState;if(i=a.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Dr(Error(V(423)),t),t=Ad(e,t,i,n,o);break e}else if(i!==o){o=Dr(Error(V(424)),t),t=Ad(e,t,i,n,o);break e}else for(rt=yn(t.stateNode.containerInfo.firstChild),st=t,xe=!0,Ct=null,n=zp(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ar(),i===o){t=Qt(e,t,n);break e}We(e,t,i,n)}t=t.child}return t;case 5:return Up(t),e===null&&Kl(t),i=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,a=o.children,Ul(i,o)?a=null:s!==null&&Ul(i,s)&&(t.flags|=32),mm(e,t),We(e,t,a,n),t.child;case 6:return e===null&&Kl(t),null;case 13:return vm(e,t,n);case 4:return ou(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ir(t,null,i,n):We(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:jt(i,o),_d(e,t,i,o,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,s=t.memoizedProps,a=o.value,pe(gs,i._currentValue),i._currentValue=a,s!==null)if(Et(s.value,a)){if(s.children===o.children&&!Qe.current){t=Qt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var u=l.firstContext;u!==null;){if(u.context===i){if(s.tag===1){u=Ht(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Gl(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(s.tag===10)a=s.type===t.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Gl(a,n,t),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}We(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,Pr(t,n),o=gt(o),i=i(o),t.flags|=1,We(e,t,i,n),t.child;case 14:return i=t.type,o=jt(i,t.pendingProps),o=jt(i.type,o),Od(e,t,i,o,n);case 15:return fm(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:jt(i,o),Wo(e,t),t.tag=1,Je(i)?(e=!0,ms(t)):e=!1,Pr(t,n),cm(t,i,o),Jl(t,i,o,n),ec(null,t,i,!0,e,n);case 19:return gm(e,t,n);case 22:return pm(e,t,n)}throw Error(V(156,t.tag))};function Im(e,t){return sp(e,t)}function bx(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,i){return new bx(e,t,n,i)}function ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wx(e){if(typeof e=="function")return ju(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bc)return 11;if(e===zc)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=ht(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 qo(e,t,n,i,o,s){var a=2;if(i=e,typeof e=="function")ju(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case lr:return Vn(n.children,o,s,t);case Mc:a=8,o|=8;break;case Nl:return e=ht(12,n,t,o|2),e.elementType=Nl,e.lanes=s,e;case Cl:return e=ht(13,n,t,o),e.elementType=Cl,e.lanes=s,e;case bl:return e=ht(19,n,t,o),e.elementType=bl,e.lanes=s,e;case Uf:return Js(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wf:a=10;break e;case $f:a=9;break e;case Bc:a=11;break e;case zc:a=14;break e;case on:a=16,i=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=ht(a,n,t,o),t.elementType=e,t.type=i,t.lanes=s,t}function Vn(e,t,n,i){return e=ht(7,e,i,t),e.lanes=n,e}function Js(e,t,n,i){return e=ht(22,e,i,t),e.elementType=Uf,e.lanes=n,e.stateNode={isHidden:!1},e}function al(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function ll(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sx(e,t,n,i,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=$a(0),this.expirationTimes=$a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$a(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nu(e,t,n,i,o,s,a,l,u){return e=new Sx(e,t,n,l,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ht(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iu(s),e}function kx(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lm)}catch(e){console.error(e)}}Lm(),Lf.exports=dt;var Tx=Lf.exports,Mm,qd=Tx;Mm=qd.createRoot,qd.hydrateRoot;var Bm={exports:{}},zm={};/** * @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 io=R;function Ax(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ix=typeof Object.is=="function"?Object.is:Ax,Rx=io.useSyncExternalStore,Dx=io.useRef,Fx=io.useEffect,Lx=io.useMemo,Mx=io.useDebugValue;zm.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var s=Dx(null);if(s.current===null){var a={hasValue:!1,value:null};s.current=a}else a=s.current;s=Lx(function(){function u(b){if(!c){if(c=!0,d=b,b=i(b),o!==void 0&&a.hasValue){var g=a.value;if(o(g,b))return p=g}return p=b}if(g=p,Ix(d,b))return g;var N=i(b);return o!==void 0&&o(g,N)?g:(d=b,p=N)}var c=!1,d,p,x=n===void 0?null:n;return[function(){return u(t())},x===null?void 0:function(){return u(x())}]},[t,n,i,o]);var l=Rx(e,s[0],s[1]);return Fx(function(){a.hasValue=!0,a.value=l},[l]),Mx(l),l};Bm.exports=zm;var Bx=Bm.exports,it="default"in yl?I:yl,Vd=Symbol.for("react-redux-context"),Hd=typeof globalThis<"u"?globalThis:{};function zx(){if(!it.createContext)return{};const e=Hd[Vd]??(Hd[Vd]=new Map);let t=e.get(it.createContext);return t||(t=it.createContext(null),e.set(it.createContext,t)),t}var En=zx(),Wx=()=>{throw new Error("uSES not initialized!")};function Su(e=En){return function(){return it.useContext(e)}}var Wm=Su(),$m=Wx,$x=e=>{$m=e},Ux=(e,t)=>e===t;function qx(e=En){const t=e===En?Wm:Su(e),n=(i,o={})=>{const{equalityFn:s=Ux,devModeChecks:a={}}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:p}=t();it.useRef(!0);const x=it.useCallback({[i.name](g){return i(g)}}[i.name],[i,d,a.stabilityCheck]),b=$m(u.addNestedSub,l.getState,c||l.getState,x,s);return it.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var tt=qx();function Vx(e){e()}function Hx(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Vx(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let i=e;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Yd={notify(){},get:()=>[]};function Yx(e,t){let n,i=Yd,o=0,s=!1;function a(N){d();const C=i.subscribe(N);let h=!1;return()=>{h||(h=!0,C(),p())}}function l(){i.notify()}function u(){g.onStateChange&&g.onStateChange()}function c(){return s}function d(){o++,n||(n=e.subscribe(u),i=Hx())}function p(){o--,n&&o===0&&(n(),n=void 0,i.clear(),i=Yd)}function x(){s||(s=!0,d())}function b(){s&&(s=!1,p())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:c,trySubscribe:x,tryUnsubscribe:b,getListeners:()=>i};return g}var Kx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gx=typeof navigator<"u"&&navigator.product==="ReactNative",Qx=Kx||Gx?it.useLayoutEffect:it.useEffect;function Jx({store:e,context:t,children:n,serverState:i,stabilityCheck:o="once",identityFunctionCheck:s="once"}){const a=it.useMemo(()=>{const c=Yx(e);return{store:e,subscription:c,getServerState:i?()=>i:void 0,stabilityCheck:o,identityFunctionCheck:s}},[e,i,o,s]),l=it.useMemo(()=>e.getState(),[e]);Qx(()=>{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 u=t||En;return it.createElement(u.Provider,{value:a},n)}var Xx=Jx;function Um(e=En){const t=e===En?Wm:Su(e),n=()=>{const{store:i}=t();return i};return Object.assign(n,{withTypes:()=>n}),n}var Zx=Um();function ey(e=En){const t=e===En?Zx:Um(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Pt=ey();$x(Bx.useSyncExternalStoreWithSelector);function Ie(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 ty=typeof Symbol=="function"&&Symbol.observable||"@@observable",Kd=ty,cl=()=>Math.random().toString(36).substring(7).split("").join("."),ny={INIT:`@@redux/INIT${cl()}`,REPLACE:`@@redux/REPLACE${cl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${cl()}`},Ps=ny;function ku(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 qm(e,t,n){if(typeof e!="function")throw new Error(Ie(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Ie(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Ie(1));return n(qm)(e,t)}let i=e,o=t,s=new Map,a=s,l=0,u=!1;function c(){a===s&&(a=new Map,s.forEach((C,h)=>{a.set(h,C)}))}function d(){if(u)throw new Error(Ie(3));return o}function p(C){if(typeof C!="function")throw new Error(Ie(4));if(u)throw new Error(Ie(5));let h=!0;c();const v=l++;return a.set(v,C),function(){if(h){if(u)throw new Error(Ie(6));h=!1,c(),a.delete(v),s=null}}}function x(C){if(!ku(C))throw new Error(Ie(7));if(typeof C.type>"u")throw new Error(Ie(8));if(typeof C.type!="string")throw new Error(Ie(17));if(u)throw new Error(Ie(9));try{u=!0,o=i(o,C)}finally{u=!1}return(s=a).forEach(v=>{v()}),C}function b(C){if(typeof C!="function")throw new Error(Ie(10));i=C,x({type:Ps.REPLACE})}function g(){const C=p;return{subscribe(h){if(typeof h!="object"||h===null)throw new Error(Ie(11));function v(){const y=h;y.next&&y.next(d())}return v(),{unsubscribe:C(v)}},[Kd](){return this}}}return x({type:Ps.INIT}),{dispatch:x,subscribe:p,getState:d,replaceReducer:b,[Kd]:g}}function ry(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ps.INIT})>"u")throw new Error(Ie(12));if(typeof n(void 0,{type:Ps.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ie(13))})}function iy(e){const t=Object.keys(e),n={};for(let s=0;s"u")throw l&&l.type,new Error(Ie(14));c[p]=g,u=u||g!==b}return u=u||i.length!==Object.keys(a).length,u?c:a}}function _s(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function oy(...e){return t=>(n,i)=>{const o=t(n,i);let s=()=>{throw new Error(Ie(15))};const a={getState:o.getState,dispatch:(u,...c)=>s(u,...c)},l=e.map(u=>u(a));return s=_s(...l)(o.dispatch),{...o,dispatch:s}}}function sy(e){return ku(e)&&"type"in e&&typeof e.type=="string"}var Vm=Symbol.for("immer-nothing"),Gd=Symbol.for("immer-draftable"),ct=Symbol.for("immer-state");function bt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Lr=Object.getPrototypeOf;function Zn(e){return!!e&&!!e[ct]}function Jt(e){var t;return e?Hm(e)||Array.isArray(e)||!!e[Gd]||!!((t=e.constructor)!=null&&t[Gd])||ra(e)||ia(e):!1}var ay=Object.prototype.constructor.toString();function Hm(e){if(!e||typeof e!="object")return!1;const t=Lr(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)===ay}function Os(e,t){na(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,i)=>t(i,n,e))}function na(e){const t=e[ct];return t?t.type_:Array.isArray(e)?1:ra(e)?2:ia(e)?3:0}function fc(e,t){return na(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ym(e,t,n){const i=na(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function ly(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function ra(e){return e instanceof Map}function ia(e){return e instanceof Set}function Mn(e){return e.copy_||e.base_}function pc(e,t){if(ra(e))return new Map(e);if(ia(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Hm(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[ct];let o=Reflect.ownKeys(i);for(let s=0;s1&&(e.set=e.add=e.clear=e.delete=cy),Object.freeze(e),t&&Object.entries(e).forEach(([n,i])=>Eu(i,!0))),e}function cy(){bt(2)}function oa(e){return Object.isFrozen(e)}var uy={};function er(e){const t=uy[e];return t||bt(0,e),t}var Hi;function Km(){return Hi}function dy(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Qd(e,t){t&&(er("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function mc(e){hc(e),e.drafts_.forEach(fy),e.drafts_=null}function hc(e){e===Hi&&(Hi=e.parent_)}function Jd(e){return Hi=dy(Hi,e)}function fy(e){const t=e[ct];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ct].modified_&&(mc(t),bt(4)),Jt(e)&&(e=Ts(t,e),t.parent_||As(t,e)),t.patches_&&er("Patches").generateReplacementPatches_(n[ct].base_,e,t.patches_,t.inversePatches_)):e=Ts(t,n,[]),mc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Vm?e:void 0}function Ts(e,t,n){if(oa(t))return t;const i=t[ct];if(!i)return Os(t,(o,s)=>Zd(e,i,t,o,s,n)),t;if(i.scope_!==e)return t;if(!i.modified_)return As(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let s=o,a=!1;i.type_===3&&(s=new Set(o),o.clear(),a=!0),Os(s,(l,u)=>Zd(e,i,o,l,u,n,a)),As(e,o,!1),n&&e.patches_&&er("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Zd(e,t,n,i,o,s,a){if(Zn(o)){const l=s&&t&&t.type_!==3&&!fc(t.assigned_,i)?s.concat(i):void 0,u=Ts(e,o,l);if(Ym(n,i,u),Zn(u))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Jt(o)&&!oa(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Ts(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,i)&&As(e,o)}}function As(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Eu(t,n)}function py(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:Km(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,s=Pu;n&&(o=[i],s=Yi);const{revoke:a,proxy:l}=Proxy.revocable(o,s);return i.draft_=l,i.revoke_=a,l}var Pu={get(e,t){if(t===ct)return e;const n=Mn(e);if(!fc(n,t))return my(e,n,t);const i=n[t];return e.finalized_||!Jt(i)?i:i===ul(e.base_,t)?(dl(e),e.copy_[t]=gc(i,e)):i},has(e,t){return t in Mn(e)},ownKeys(e){return Reflect.ownKeys(Mn(e))},set(e,t,n){const i=Gm(Mn(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=ul(Mn(e),t),s=o==null?void 0:o[ct];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(ly(n,o)&&(n!==void 0||fc(e.base_,t)))return!0;dl(e),vc(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 ul(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,dl(e),vc(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mn(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){bt(11)},getPrototypeOf(e){return Lr(e.base_)},setPrototypeOf(){bt(12)}},Yi={};Os(Pu,(e,t)=>{Yi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Yi.deleteProperty=function(e,t){return Yi.set.call(this,e,t,void 0)};Yi.set=function(e,t,n){return Pu.set.call(this,e[0],t,n,e[0])};function ul(e,t){const n=e[ct];return(n?Mn(n):e)[t]}function my(e,t,n){var o;const i=Gm(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function Gm(e,t){if(!(t in e))return;let n=Lr(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Lr(n)}}function vc(e){e.modified_||(e.modified_=!0,e.parent_&&vc(e.parent_))}function dl(e){e.copy_||(e.copy_=pc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var hy=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,i)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const a=this;return function(u=s,...c){return a.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&bt(6),i!==void 0&&typeof i!="function"&&bt(7);let o;if(Jt(t)){const s=Jd(this),a=gc(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?mc(s):hc(s)}return Qd(s,i),Xd(o,s)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Vm&&(o=void 0),this.autoFreeze_&&Eu(o,!0),i){const s=[],a=[];er("Patches").generateReplacementPatches_(t,o,s,a),i(s,a)}return o}else bt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,u=>t(u,...l));let i,o;return[this.produce(t,n,(a,l)=>{i=a,o=l}),i,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){Jt(e)||bt(8),Zn(e)&&(e=vy(e));const t=Jd(this),n=gc(e,void 0);return n[ct].isManual_=!0,hc(t),n}finishDraft(e,t){const n=e&&e[ct];(!n||!n.isManual_)&&bt(9);const{scope_:i}=n;return Qd(i,t),Xd(void 0,i)}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 i=er("Patches").applyPatches_;return Zn(e)?i(e,t):this.produce(e,o=>i(o,t))}};function gc(e,t){const n=ra(e)?er("MapSet").proxyMap_(e,t):ia(e)?er("MapSet").proxySet_(e,t):py(e,t);return(t?t.scope_:Km()).drafts_.push(n),n}function vy(e){return Zn(e)||bt(10,e),Qm(e)}function Qm(e){if(!Jt(e)||oa(e))return e;const t=e[ct];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=pc(e,t.scope_.immer_.useStrictShallowCopy_)}else n=pc(e,!0);return Os(n,(i,o)=>{Ym(n,i,Qm(o))}),t&&(t.finalized_=!1),n}var ut=new hy,Jm=ut.produce;ut.produceWithPatches.bind(ut);ut.setAutoFreeze.bind(ut);ut.setUseStrictShallowCopy.bind(ut);ut.applyPatches.bind(ut);ut.createDraft.bind(ut);ut.finishDraft.bind(ut);function Xm(e){return({dispatch:n,getState:i})=>o=>s=>typeof s=="function"?s(n,i,e):o(s)}var gy=Xm(),xy=Xm,yy=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_s:_s.apply(null,arguments)},jy=e=>e&&typeof e.match=="function";function Si(e,t){function n(...i){if(t){let o=t(...i);if(!o)throw new Error(kt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:i[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=i=>sy(i)&&i.type===e,n}var Zm=class hi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,hi.prototype)}static get[Symbol.species](){return hi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new hi(...t[0].concat(this)):new hi(...t.concat(this))}};function ef(e){return Jt(e)?Jm(e,()=>{}):e}function tf(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(kt(10));const i=n.insert(t,e);return e.set(t,i),i}function Ny(e){return typeof e=="boolean"}var Cy=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let a=new Zm;return n&&(Ny(n)?a.push(gy):a.push(xy(n.extraArgument))),a},by="RTK_autoBatch",eh=e=>t=>{setTimeout(t,e)},wy=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:eh(10),Sy=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let o=!0,s=!1,a=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?wy:e.type==="callback"?e.queueNotification:eh(e.timeout),c=()=>{a=!1,s&&(s=!1,l.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){const p=()=>o&&d(),x=i.subscribe(p);return l.add(d),()=>{x(),l.delete(d)}},dispatch(d){var p;try{return o=!((p=d==null?void 0:d.meta)!=null&&p[by]),s=!o,s&&(a||(a=!0,u(c))),i.dispatch(d)}finally{o=!0}}})},ky=e=>function(n){const{autoBatch:i=!0}=n??{};let o=new Zm(e);return i&&o.push(Sy(typeof i=="object"?i:void 0)),o};function Ey(e){const t=Cy(),{reducer:n=void 0,middleware:i,devTools:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(ku(n))l=iy(n);else throw new Error(kt(1));let u;typeof i=="function"?u=i(t):u=t();let c=_s;o&&(c=yy({trace:!1,...typeof o=="object"&&o}));const d=oy(...u),p=ky(d);let x=typeof a=="function"?a(p):p();const b=c(...x);return qm(l,s,b)}function th(e){const t={},n=[];let i;const o={addCase(s,a){const l=typeof s=="string"?s:s.type;if(!l)throw new Error(kt(28));if(l in t)throw new Error(kt(29));return t[l]=a,o},addMatcher(s,a){return n.push({matcher:s,reducer:a}),o},addDefaultCase(s){return i=s,o}};return e(o),[t,n,i]}function Py(e){return typeof e=="function"}function _y(e,t){let[n,i,o]=th(t),s;if(Py(e))s=()=>ef(e());else{const l=ef(e);s=()=>l}function a(l=s(),u){let c=[n[u.type],...i.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[o]),c.reduce((d,p)=>{if(p)if(Zn(d)){const b=p(d,u);return b===void 0?d:b}else{if(Jt(d))return Jm(d,x=>p(x,u));{const x=p(d,u);if(x===void 0){if(d===null)return d;throw new Error(kt(9))}return x}}return d},l)}return a.getInitialState=s,a}var Oy=(e,t)=>jy(e)?e.match(t):e(t);function Ty(...e){return t=>e.some(n=>Oy(n,t))}var Ay="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Iy=(e=21)=>{let t="",n=e;for(;n--;)t+=Ay[Math.random()*64|0];return t},Ry=["name","message","stack","code"],fl=class{constructor(e,t){Fa(this,"_type");this.payload=e,this.meta=t}},nf=class{constructor(e,t){Fa(this,"_type");this.payload=e,this.meta=t}},Dy=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Ry)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Mt=(()=>{function e(t,n,i){const o=Si(t+"/fulfilled",(u,c,d,p)=>({payload:u,meta:{...p||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),s=Si(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),a=Si(t+"/rejected",(u,c,d,p,x)=>({payload:p,error:(i&&i.serializeError||Dy)(u||"Rejected"),meta:{...x||{},arg:d,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function l(u){return(c,d,p)=>{const x=i!=null&&i.idGenerator?i.idGenerator(u):Iy(),b=new AbortController;let g,N;function C(v){N=v,b.abort()}const h=async function(){var y,E;let v;try{let _=(y=i==null?void 0:i.condition)==null?void 0:y.call(i,u,{getState:d,extra:p});if(Ly(_)&&(_=await _),_===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((P,M)=>{g=()=>{M({name:"AbortError",message:N||"Aborted"})},b.signal.addEventListener("abort",g)});c(s(x,u,(E=i==null?void 0:i.getPendingMeta)==null?void 0:E.call(i,{requestId:x,arg:u},{getState:d,extra:p}))),v=await Promise.race([O,Promise.resolve(n(u,{dispatch:c,getState:d,extra:p,requestId:x,signal:b.signal,abort:C,rejectWithValue:(P,M)=>new fl(P,M),fulfillWithValue:(P,M)=>new nf(P,M)})).then(P=>{if(P instanceof fl)throw P;return P instanceof nf?o(P.payload,x,u,P.meta):o(P,x,u)})])}catch(_){v=_ instanceof fl?a(null,x,u,_.payload,_.meta):a(_,x,u)}finally{g&&b.signal.removeEventListener("abort",g)}return i&&!i.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(h,{abort:C,requestId:x,arg:u,unwrap(){return h.then(Fy)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:o,settled:Ty(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Fy(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Ly(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var My=Symbol.for("rtk-slice-createasyncthunk");function By(e,t){return`${e}/${t}`}function zy({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[My];return function(o){const{name:s,reducerPath:a=s}=o;if(!s)throw new Error(kt(11));typeof process<"u";const l=(typeof o.reducers=="function"?o.reducers($y()):o.reducers)||{},u=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(m,y){const E=typeof m=="string"?m:m.type;if(!E)throw new Error(kt(12));if(E in c.sliceCaseReducersByType)throw new Error(kt(13));return c.sliceCaseReducersByType[E]=y,d},addMatcher(m,y){return c.sliceMatchers.push({matcher:m,reducer:y}),d},exposeAction(m,y){return c.actionCreators[m]=y,d},exposeCaseReducer(m,y){return c.sliceCaseReducersByName[m]=y,d}};u.forEach(m=>{const y=l[m],E={reducerName:m,type:By(s,m),createNotation:typeof o.reducers=="function"};qy(y)?Hy(E,y,d,t):Uy(E,y,d)});function p(){const[m={},y=[],E=void 0]=typeof o.extraReducers=="function"?th(o.extraReducers):[o.extraReducers],_={...m,...c.sliceCaseReducersByType};return _y(o.initialState,O=>{for(let P in _)O.addCase(P,_[P]);for(let P of c.sliceMatchers)O.addMatcher(P.matcher,P.reducer);for(let P of y)O.addMatcher(P.matcher,P.reducer);E&&O.addDefaultCase(E)})}const x=m=>m,b=new Map;let g;function N(m,y){return g||(g=p()),g(m,y)}function C(){return g||(g=p()),g.getInitialState()}function h(m,y=!1){function E(O){let P=O[m];return typeof P>"u"&&y&&(P=C()),P}function _(O=x){const P=tf(b,y,{insert:()=>new WeakMap});return tf(P,O,{insert:()=>{const M={};for(const[W,H]of Object.entries(o.selectors??{}))M[W]=Wy(H,O,C,y);return M}})}return{reducerPath:m,getSelectors:_,get selectors(){return _(E)},selectSlice:E}}const v={name:s,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...h(a),injectInto(m,{reducerPath:y,...E}={}){const _=y??a;return m.inject({reducerPath:_,reducer:N},E),{...v,...h(_,!0)}}};return v}}function Wy(e,t,n,i){function o(s,...a){let l=t(s);return typeof l>"u"&&i&&(l=n()),e(l,...a)}return o.unwrapped=e,o}var _u=zy();function $y(){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 Uy({type:e,reducerName:t,createNotation:n},i,o){let s,a;if("reducer"in i){if(n&&!Vy(i))throw new Error(kt(17));s=i.reducer,a=i.prepare}else s=i;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?Si(e,a):Si(e))}function qy(e){return e._reducerDefinitionType==="asyncThunk"}function Vy(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Hy({type:e,reducerName:t},n,i,o){if(!o)throw new Error(kt(18));const{payloadCreator:s,fulfilled:a,pending:l,rejected:u,settled:c,options:d}=n,p=o(e,s,d);i.exposeAction(t,p),a&&i.addCase(p.fulfilled,a),l&&i.addCase(p.pending,l),u&&i.addCase(p.rejected,u),c&&i.addMatcher(p.settled,c),i.exposeCaseReducer(t,{fulfilled:a||Oo,pending:l||Oo,rejected:u||Oo,settled:c||Oo})}function Oo(){}function kt(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 nh(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yy}=Object.prototype,{getPrototypeOf:Ou}=Object,sa=(e=>t=>{const n=Yy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_t=e=>(e=e.toLowerCase(),t=>sa(t)===e),aa=e=>t=>typeof t===e,{isArray:$r}=Array,Ki=aa("undefined");function Ky(e){return e!==null&&!Ki(e)&&e.constructor!==null&&!Ki(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rh=_t("ArrayBuffer");function Gy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rh(e.buffer),t}const Qy=aa("string"),at=aa("function"),ih=aa("number"),la=e=>e!==null&&typeof e=="object",Jy=e=>e===!0||e===!1,Vo=e=>{if(sa(e)!=="object")return!1;const t=Ou(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xy=_t("Date"),Zy=_t("File"),ej=_t("Blob"),tj=_t("FileList"),nj=e=>la(e)&&at(e.pipe),rj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=sa(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},ij=_t("URLSearchParams"),[oj,sj,aj,lj]=["ReadableStream","Request","Response","Headers"].map(_t),cj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),$r(e))for(i=0,o=e.length;i0;)if(o=n[i],t===o.toLowerCase())return o;return null}const Un=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sh=e=>!Ki(e)&&e!==Un;function xc(){const{caseless:e}=sh(this)&&this||{},t={},n=(i,o)=>{const s=e&&oh(t,o)||o;Vo(t[s])&&Vo(i)?t[s]=xc(t[s],i):Vo(i)?t[s]=xc({},i):$r(i)?t[s]=i.slice():t[s]=i};for(let i=0,o=arguments.length;i(oo(t,(o,s)=>{n&&at(o)?e[s]=nh(o,n):e[s]=o},{allOwnKeys:i}),e),dj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fj=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pj=(e,t,n,i)=>{let o,s,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],(!i||i(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Ou(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},mj=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},hj=e=>{if(!e)return null;if($r(e))return e;let t=e.length;if(!ih(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ou(Uint8Array)),gj=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},xj=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},yj=_t("HTMLFormElement"),jj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),rf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nj=_t("RegExp"),ah=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};oo(n,(o,s)=>{let a;(a=t(o,s,e))!==!1&&(i[s]=a||o)}),Object.defineProperties(e,i)},Cj=e=>{ah(e,(t,n)=>{if(at(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(at(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bj=(e,t)=>{const n={},i=o=>{o.forEach(s=>{n[s]=!0})};return $r(e)?i(e):i(String(e).split(t)),n},wj=()=>{},Sj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,pl="abcdefghijklmnopqrstuvwxyz",of="0123456789",lh={DIGIT:of,ALPHA:pl,ALPHA_DIGIT:pl+pl.toUpperCase()+of},kj=(e=16,t=lh.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Ej(e){return!!(e&&at(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Pj=e=>{const t=new Array(10),n=(i,o)=>{if(la(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const s=$r(i)?[]:{};return oo(i,(a,l)=>{const u=n(a,o+1);!Ki(u)&&(s[l]=u)}),t[o]=void 0,s}}return i};return n(e,0)},_j=_t("AsyncFunction"),Oj=e=>e&&(la(e)||at(e))&&at(e.then)&&at(e.catch),ch=((e,t)=>e?setImmediate:t?((n,i)=>(Un.addEventListener("message",({source:o,data:s})=>{o===Un&&s===n&&i.length&&i.shift()()},!1),o=>{i.push(o),Un.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",at(Un.postMessage)),Tj=typeof queueMicrotask<"u"?queueMicrotask.bind(Un):typeof process<"u"&&process.nextTick||ch,z={isArray:$r,isArrayBuffer:rh,isBuffer:Ky,isFormData:rj,isArrayBufferView:Gy,isString:Qy,isNumber:ih,isBoolean:Jy,isObject:la,isPlainObject:Vo,isReadableStream:oj,isRequest:sj,isResponse:aj,isHeaders:lj,isUndefined:Ki,isDate:Xy,isFile:Zy,isBlob:ej,isRegExp:Nj,isFunction:at,isStream:nj,isURLSearchParams:ij,isTypedArray:vj,isFileList:tj,forEach:oo,merge:xc,extend:uj,trim:cj,stripBOM:dj,inherits:fj,toFlatObject:pj,kindOf:sa,kindOfTest:_t,endsWith:mj,toArray:hj,forEachEntry:gj,matchAll:xj,isHTMLForm:yj,hasOwnProperty:rf,hasOwnProp:rf,reduceDescriptors:ah,freezeMethods:Cj,toObjectSet:bj,toCamelCase:jj,noop:wj,toFiniteNumber:Sj,findKey:oh,global:Un,isContextDefined:sh,ALPHABET:lh,generateString:kj,isSpecCompliantForm:Ej,toJSONObject:Pj,isAsyncFn:_j,isThenable:Oj,setImmediate:ch,asap:Tj};function ie(e,t,n,i,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),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}z.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:z.toJSONObject(this.config),code:this.code,status:this.status}}});const uh=ie.prototype,dh={};["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=>{dh[e]={value:e}});Object.defineProperties(ie,dh);Object.defineProperty(uh,"isAxiosError",{value:!0});ie.from=(e,t,n,i,o,s)=>{const a=Object.create(uh);return z.toFlatObject(e,a,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),ie.call(a,e.message,t,n,i,o),a.cause=e,a.name=e.name,s&&Object.assign(a,s),a};const Aj=null;function yc(e){return z.isPlainObject(e)||z.isArray(e)}function fh(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function sf(e,t,n){return e?e.concat(t).map(function(o,s){return o=fh(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Ij(e){return z.isArray(e)&&!e.some(yc)}const Rj=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function ca(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,C){return!z.isUndefined(C[N])});const i=n.metaTokens,o=n.visitor||d,s=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(z.isDate(g))return g.toISOString();if(!u&&z.isBlob(g))throw new ie("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,N,C){let h=g;if(g&&!C&&typeof g=="object"){if(z.endsWith(N,"{}"))N=i?N:N.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&Ij(g)||(z.isFileList(g)||z.endsWith(N,"[]"))&&(h=z.toArray(g)))return N=fh(N),h.forEach(function(m,y){!(z.isUndefined(m)||m===null)&&t.append(a===!0?sf([N],y,s):a===null?N:N+"[]",c(m))}),!1}return yc(g)?!0:(t.append(sf(C,N,s),c(g)),!1)}const p=[],x=Object.assign(Rj,{defaultVisitor:d,convertValue:c,isVisitable:yc});function b(g,N){if(!z.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+N.join("."));p.push(g),z.forEach(g,function(h,v){(!(z.isUndefined(h)||h===null)&&o.call(t,h,z.isString(v)?v.trim():v,N,x))===!0&&b(h,N?N.concat(v):[v])}),p.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return b(e),t}function af(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Tu(e,t){this._pairs=[],e&&ca(e,this,t)}const ph=Tu.prototype;ph.append=function(t,n){this._pairs.push([t,n])};ph.toString=function(t){const n=t?function(i){return t.call(this,i,af)}:af;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Dj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mh(e,t,n){if(!t)return e;const i=n&&n.encode||Dj,o=n&&n.serialize;let s;if(o?s=o(t,n):s=z.isURLSearchParams(t)?t.toString():new Tu(t,n).toString(i),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class lf{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(i){i!==null&&t(i)})}}const hh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fj=typeof URLSearchParams<"u"?URLSearchParams:Tu,Lj=typeof FormData<"u"?FormData:null,Mj=typeof Blob<"u"?Blob:null,Bj={isBrowser:!0,classes:{URLSearchParams:Fj,FormData:Lj,Blob:Mj},protocols:["http","https","file","blob","url","data"]},Au=typeof window<"u"&&typeof document<"u",jc=typeof navigator=="object"&&navigator||void 0,zj=Au&&(!jc||["ReactNative","NativeScript","NS"].indexOf(jc.product)<0),Wj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$j=Au&&window.location.href||"http://localhost",Uj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Au,hasStandardBrowserEnv:zj,hasStandardBrowserWebWorkerEnv:Wj,navigator:jc,origin:$j},Symbol.toStringTag,{value:"Module"})),Ze={...Uj,...Bj};function qj(e,t){return ca(e,new Ze.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,s){return Ze.isNode&&z.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Vj(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hj(e){const t={},n=Object.keys(e);let i;const o=n.length;let s;for(i=0;i=n.length;return a=!a&&z.isArray(o)?o.length:a,u?(z.hasOwnProp(o,a)?o[a]=[o[a],i]:o[a]=i,!l):((!o[a]||!z.isObject(o[a]))&&(o[a]=[]),t(n,i,o[a],s)&&z.isArray(o[a])&&(o[a]=Hj(o[a])),!l)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(i,o)=>{t(Vj(i),o,n,0)}),n}return null}function Yj(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const so={transitional:hh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,s=z.isObject(t);if(s&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return o?JSON.stringify(vh(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return qj(t,this.formSerializer).toString();if((l=z.isFileList(t))||i.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ca(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Yj(t)):t}],transformResponse:[function(t){const n=this.transitional||so.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(i&&!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:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{so.headers[e]={}});const Kj=z.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"]),Gj=e=>{const t={};let n,i,o;return e&&e.split(` `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),i=a.substring(o+1).trim(),!(!n||t[n]&&Kj[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},cf=Symbol("internals");function ui(e){return e&&String(e).trim().toLowerCase()}function Ho(e){return e===!1||e==null?e:z.isArray(e)?e.map(Ho):String(e)}function Qj(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const Jj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ml(e,t,n,i,o){if(z.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!z.isString(t)){if(z.isString(i))return t.indexOf(i)!==-1;if(z.isRegExp(i))return i.test(t)}}function Xj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Zj(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,s,a){return this[i].call(this,t,o,s,a)},configurable:!0})})}class et{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function s(l,u,c){const d=ui(u);if(!d)throw new Error("header name must be a non-empty string");const p=z.findKey(o,d);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||u]=Ho(l))}const a=(l,u)=>z.forEach(l,(c,d)=>s(c,d,u));if(z.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(z.isString(t)&&(t=t.trim())&&!Jj(t))a(Gj(t),n);else if(z.isHeaders(t))for(const[l,u]of t.entries())s(u,l,i);else t!=null&&s(n,t,i);return this}get(t,n){if(t=ui(t),t){const i=z.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return Qj(o);if(z.isFunction(n))return n.call(this,o,i);if(z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ui(t),t){const i=z.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||ml(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function s(a){if(a=ui(a),a){const l=z.findKey(i,a);l&&(!n||ml(i,i[l],l,n))&&(delete i[l],o=!0)}}return z.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const s=n[i];(!t||ml(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,i={};return z.forEach(this,(o,s)=>{const a=z.findKey(i,s);if(a){n[a]=Ho(o),delete n[s];return}const l=t?Xj(s):String(s).trim();l!==s&&delete n[s],n[l]=Ho(o),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&z.isArray(i)?i.join(", "):i)}),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 i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[cf]=this[cf]={accessors:{}}).accessors,o=this.prototype;function s(a){const l=ui(a);i[l]||(Zj(o,a),i[l]=!0)}return z.isArray(t)?t.forEach(s):s(t),this}}et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(et.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});z.freezeMethods(et);function hl(e,t){const n=this||so,i=t||n,o=et.from(i.headers);let s=i.data;return z.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function gh(e){return!!(e&&e.__CANCEL__)}function Ur(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(Ur,ie,{__CANCEL__:!0});function xh(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(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 e1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function t1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,s=0,a;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=i[s];a||(a=c),n[o]=u,i[o]=c;let p=s,x=0;for(;p!==o;)x+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-a{n=d,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),p=d-n;p>=i?a(c,d):(o=c,s||(s=setTimeout(()=>{s=null,a(o)},i-p)))},()=>o&&a(o)]}const Is=(e,t,n=3)=>{let i=0;const o=t1(50,250);return n1(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,u=a-i,c=o(u),d=a<=l;i=a;const p={loaded:a,total:l,progress:l?a/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-a)/c:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},uf=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},df=e=>(...t)=>z.asap(()=>e(...t)),r1=Ze.hasStandardBrowserEnv?function(){const t=Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent),n=document.createElement("a");let i;function o(s){let a=s;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 i=o(window.location.href),function(a){const l=z.isString(a)?o(a):a;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),i1=Ze.hasStandardBrowserEnv?{write(e,t,n,i,o,s){const a=[e+"="+encodeURIComponent(t)];z.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),z.isString(i)&&a.push("path="+i),z.isString(o)&&a.push("domain="+o),s===!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 o1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function s1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yh(e,t){return e&&!o1(t)?s1(e,t):t}const ff=e=>e instanceof et?{...e}:e;function tr(e,t){t=t||{};const n={};function i(c,d,p){return z.isPlainObject(c)&&z.isPlainObject(d)?z.merge.call({caseless:p},c,d):z.isPlainObject(d)?z.merge({},d):z.isArray(d)?d.slice():d}function o(c,d,p){if(z.isUndefined(d)){if(!z.isUndefined(c))return i(void 0,c,p)}else return i(c,d,p)}function s(c,d){if(!z.isUndefined(d))return i(void 0,d)}function a(c,d){if(z.isUndefined(d)){if(!z.isUndefined(c))return i(void 0,c)}else return i(void 0,d)}function l(c,d,p){if(p in t)return i(c,d);if(p in e)return i(void 0,c)}const u={url:s,method:s,data:s,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,d)=>o(ff(c),ff(d),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=u[d]||o,x=p(e[d],t[d],d);z.isUndefined(x)&&p!==l||(n[d]=x)}),n}const jh=e=>{const t=tr({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;t.headers=a=et.from(a),t.url=mh(yh(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(z.isFormData(n)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[c,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Ze.hasStandardBrowserEnv&&(i&&z.isFunction(i)&&(i=i(t)),i||i!==!1&&r1(t.url))){const c=o&&s&&i1.read(s);c&&a.set(o,c)}return t},a1=typeof XMLHttpRequest<"u",l1=a1&&function(e){return new Promise(function(n,i){const o=jh(e);let s=o.data;const a=et.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:c}=o,d,p,x,b,g;function N(){b&&b(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function h(){if(!C)return;const m=et.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),E={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:m,config:e,request:C};xh(function(O){n(O),N()},function(O){i(O),N()},E),C=null}"onloadend"in C?C.onloadend=h:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(h)},C.onabort=function(){C&&(i(new ie("Request aborted",ie.ECONNABORTED,e,C)),C=null)},C.onerror=function(){i(new ie("Network Error",ie.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||hh;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),i(new ie(y,E.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,C)),C=null},s===void 0&&a.setContentType(null),"setRequestHeader"in C&&z.forEach(a.toJSON(),function(y,E){C.setRequestHeader(E,y)}),z.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),l&&l!=="json"&&(C.responseType=o.responseType),c&&([x,g]=Is(c,!0),C.addEventListener("progress",x)),u&&C.upload&&([p,b]=Is(u),C.upload.addEventListener("progress",p),C.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=m=>{C&&(i(!m||m.type?new Ur(null,e,C):m),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const v=e1(o.url);if(v&&Ze.protocols.indexOf(v)===-1){i(new ie("Unsupported protocol "+v+":",ie.ERR_BAD_REQUEST,e));return}C.send(s||null)})},c1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,o;const s=function(c){if(!o){o=!0,l();const d=c instanceof Error?c:this.reason;i.abort(d instanceof ie?d:new Ur(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,s(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(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=i;return u.unsubscribe=()=>z.asap(l),u}},u1=function*(e,t){let n=e.byteLength;if(!t||n{const o=d1(e,t);let s=0,a,l=u=>{a||(a=!0,i&&i(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){l(),u.close();return}let p=d.byteLength;if(n){let x=s+=p;n(x)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},ua=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Nh=ua&&typeof ReadableStream=="function",p1=ua&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ch=(e,...t)=>{try{return!!e(...t)}catch{return!1}},m1=Nh&&Ch(()=>{let e=!1;const t=new Request(Ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),mf=64*1024,Nc=Nh&&Ch(()=>z.isReadableStream(new Response("").body)),Rs={stream:Nc&&(e=>e.body)};ua&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Rs[t]&&(Rs[t]=z.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new ie(`Response type '${t}' is not supported`,ie.ERR_NOT_SUPPORT,i)})})})(new Response);const h1=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(Ze.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await p1(e)).byteLength},v1=async(e,t)=>{const n=z.toFiniteNumber(e.getContentLength());return n??h1(t)},g1=ua&&(async e=>{let{url:t,method:n,data:i,signal:o,cancelToken:s,timeout:a,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:x}=jh(e);c=c?(c+"").toLowerCase():"text";let b=c1([o,s&&s.toAbortSignal()],a),g;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(u&&m1&&n!=="get"&&n!=="head"&&(C=await v1(d,i))!==0){let E=new Request(t,{method:"POST",body:i,duplex:"half"}),_;if(z.isFormData(i)&&(_=E.headers.get("content-type"))&&d.setContentType(_),E.body){const[O,P]=uf(C,Is(df(u)));i=pf(E.body,mf,O,P)}}z.isString(p)||(p=p?"include":"omit");const h="credentials"in Request.prototype;g=new Request(t,{...x,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:h?p:void 0});let v=await fetch(g);const m=Nc&&(c==="stream"||c==="response");if(Nc&&(l||m&&N)){const E={};["status","statusText","headers"].forEach(M=>{E[M]=v[M]});const _=z.toFiniteNumber(v.headers.get("content-length")),[O,P]=l&&uf(_,Is(df(l),!0))||[];v=new Response(pf(v.body,mf,O,()=>{P&&P(),N&&N()}),E)}c=c||"text";let y=await Rs[z.findKey(Rs,c)||"text"](v,e);return!m&&N&&N(),await new Promise((E,_)=>{xh(E,_,{data:y,headers:et.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:g})})}catch(h){throw N&&N(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,g),{cause:h.cause||h}):ie.from(h,h&&h.code,e,g)}}),Cc={http:Aj,xhr:l1,fetch:g1};z.forEach(Cc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hf=e=>`- ${e}`,x1=e=>z.isFunction(e)||e===null||e===!1,bh={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let s=0;s`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?s.length>1?`since : `+s.map(hf).join(` `):" "+hf(s[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i},adapters:Cc};function vl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ur(null,e)}function vf(e){return vl(e),e.headers=et.from(e.headers),e.data=hl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bh.getAdapter(e.adapter||so.adapter)(e).then(function(i){return vl(e),i.data=hl.call(e,e.transformResponse,i),i.headers=et.from(i.headers),i},function(i){return gh(i)||(vl(e),i&&i.response&&(i.response.data=hl.call(e,e.transformResponse,i.response),i.response.headers=et.from(i.response.headers))),Promise.reject(i)})}const wh="1.7.7",Iu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Iu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const gf={};Iu.transitional=function(t,n,i){function o(s,a){return"[Axios v"+wh+"] Transitional option '"+s+"'"+a+(i?". "+i:"")}return(s,a,l)=>{if(t===!1)throw new ie(o(a," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!gf[a]&&(gf[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}};function y1(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const s=i[o],a=t[s];if(a){const l=e[s],u=l===void 0||a(l,s,e);if(u!==!0)throw new ie("option "+s+" must be "+u,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+s,ie.ERR_BAD_OPTION)}}const bc={assertOptions:y1,validators:Iu},rn=bc.validators;class Hn{constructor(t){this.defaults=t,this.interceptors={request:new lf,response:new lf}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=` `+s):i.stack=s}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=tr(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:s}=n;i!==void 0&&bc.assertOptions(i,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),o!=null&&(z.isFunction(o)?n.paramsSerializer={serialize:o}:bc.assertOptions(o,{encode:rn.function,serialize:rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&z.merge(s.common,s[n.method]);s&&z.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=et.concat(a,s);const l=[];let u=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(n)===!1||(u=u&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});const c=[];this.interceptors.response.forEach(function(N){c.push(N.fulfilled,N.rejected)});let d,p=0,x;if(!u){const g=[vf.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,c),x=g.length,d=Promise.resolve(n);p{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](o);i._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{i.subscribe(l),s=l}).then(o);return a.cancel=function(){i.unsubscribe(s)},a},t(function(s,a,l){i.reason||(i.reason=new Ur(s,a,l),n(i.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=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ru(function(o){t=o}),cancel:t}}}function j1(e){return function(n){return e.apply(null,n)}}function N1(e){return z.isObject(e)&&e.isAxiosError===!0}const wc={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(wc).forEach(([e,t])=>{wc[t]=e});function Sh(e){const t=new Hn(e),n=nh(Hn.prototype.request,t);return z.extend(n,Hn.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Sh(tr(e,o))},n}const me=Sh(so);me.Axios=Hn;me.CanceledError=Ur;me.CancelToken=Ru;me.isCancel=gh;me.VERSION=wh;me.toFormData=ca;me.AxiosError=ie;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=j1;me.isAxiosError=N1;me.mergeConfig=tr;me.AxiosHeaders=et;me.formToJSON=e=>vh(z.isHTMLForm(e)?new FormData(e):e);me.getAdapter=bh.getAdapter;me.HttpStatusCode=wc;me.default=me;const C1="http://67.225.129.127:3002/estateslending",Zt=me.create({baseURL:C1});Zt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const b1=e=>Zt.post("/users/signup",e),w1=e=>Zt.post("/users/signin",e),S1=(e,t,n)=>Zt.get(`/users/${e}/verify/${t}`,n),k1=e=>Zt.post("/properties",e),E1=(e,t,n)=>Zt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),P1=e=>Zt.get(`/properties/${e}`,e),_1=(e,t)=>Zt.put(`/properties/${e}`,t),O1=e=>Zt.get(`/users/${e}`),Yo=Mt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const i=await w1(e);return t("/dashboard"),i.data}catch(i){return n(i.response.data)}}),Ko=Mt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:i})=>{try{const o=await b1(e);return n.success("Register Successfully"),t("/registrationsuccess"),o.data}catch(o){return i(o.response.data)}}),Go=Mt("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await me.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),kh=_u({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(Yo.pending,t=>{t.loading=!0}).addCase(Yo.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Yo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Ko.pending,t=>{t.loading=!0}).addCase(Ko.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Ko.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Go.pending,t=>{t.isLoading=!0}).addCase(Go.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Go.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:eC,setLogout:T1,setUserDetails:tC}=kh.actions,A1=kh.reducer,Qo=Mt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await O1(e)).data}catch(n){return t(n.response.data)}}),Jo=Mt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:i})=>{try{return(await S1(e,t,n)).data.message}catch(o){return i(o.response.data)}}),I1=_u({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(Qo.pending,t=>{t.loading=!0,t.error=null}).addCase(Qo.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Qo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Jo.pending,t=>{t.loading=!0,t.error=null}).addCase(Jo.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Jo.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),R1=I1.reducer,Xo=Mt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await k1(e)).data}catch(n){return t(n.response.data)}}),Zo=Mt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:i})=>{try{return(await E1(e,t,n)).data}catch(o){return i(o.response.data)}}),ki=Mt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await P1(e)).data}catch(n){return t(n.response.data)}}),es=Mt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await _1(e,t)).data}catch(i){return n(i.response.data)}}),Ei=Mt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await me.get(`http://67.225.129.127:3002/estateslending/properties?page=${e}&limit=${t}&keyword=${n}`)).data),D1=_u({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(Xo.pending,t=>{t.status="loading"}).addCase(Xo.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Xo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Zo.pending,t=>{t.loading=!0}).addCase(Zo.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Zo.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(ki.pending,t=>{t.status="loading"}).addCase(ki.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(ki.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(es.pending,t=>{t.status="loading"}).addCase(es.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(es.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ei.pending,t=>{t.loading=!0}).addCase(Ei.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(Ei.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),F1=D1.reducer,L1=Ey({reducer:{auth:A1,user:R1,property:F1}});/** * @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 Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Eh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function B1(){return Math.random().toString(36).substr(2,8)}function yf(e,t){return{usr:e.state,key:e.key,idx:t}}function Sc(e,t,n,i){return n===void 0&&(n=null),Gi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?qr(t):t,{state:n,key:t&&t.key||i||B1()})}function Ds(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function qr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function z1(e,t,n,i){i===void 0&&(i={});let{window:o=document.defaultView,v5Compat:s=!1}=i,a=o.history,l=mn.Pop,u=null,c=d();c==null&&(c=0,a.replaceState(Gi({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function p(){l=mn.Pop;let C=d(),h=C==null?null:C-c;c=C,u&&u({action:l,location:N.location,delta:h})}function x(C,h){l=mn.Push;let v=Sc(N.location,C,h);c=d()+1;let m=yf(v,c),y=N.createHref(v);try{a.pushState(m,"",y)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(y)}s&&u&&u({action:l,location:N.location,delta:1})}function b(C,h){l=mn.Replace;let v=Sc(N.location,C,h);c=d();let m=yf(v,c),y=N.createHref(v);a.replaceState(m,"",y),s&&u&&u({action:l,location:N.location,delta:0})}function g(C){let h=o.location.origin!=="null"?o.location.origin:o.location.href,v=typeof C=="string"?C:Ds(C);return v=v.replace(/ $/,"%20"),we(h,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,h)}let N={get action(){return l},get location(){return e(o,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(xf,p),u=C,()=>{o.removeEventListener(xf,p),u=null}},createHref(C){return t(o,C)},createURL:g,encodeLocation(C){let h=g(C);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:x,replace:b,go(C){return a.go(C)}};return N}var jf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(jf||(jf={}));function W1(e,t,n){return n===void 0&&(n="/"),$1(e,t,n,!1)}function $1(e,t,n,i){let o=typeof t=="string"?qr(t):t,s=Mr(o.pathname||"/",n);if(s==null)return null;let a=Ph(e);U1(a);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};u.relativePath.startsWith("/")&&(we(u.relativePath.startsWith(i),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(i.length));let c=wn([i,u.relativePath]),d=n.concat(u);s.children&&s.children.length>0&&(we(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ph(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Q1(c,s.index),routesMeta:d})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,a);else for(let u of _h(s.path))o(s,a,u)}),t}function _h(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return o?[s,""]:[s];let a=_h(i.join("/")),l=[];return l.push(...a.map(u=>u===""?s:[s,u].join("/"))),o&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function U1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:J1(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const q1=/^:[\w-]+$/,V1=3,H1=2,Y1=1,K1=10,G1=-2,Nf=e=>e==="*";function Q1(e,t){let n=e.split("/"),i=n.length;return n.some(Nf)&&(i+=G1),t&&(i+=H1),n.filter(o=>!Nf(o)).reduce((o,s)=>o+(q1.test(s)?V1:s===""?Y1:K1),i)}function J1(e,t){return e.length===t.length&&e.slice(0,-1).every((i,o)=>i===t[o])?e[e.length-1]-t[t.length-1]:0}function X1(e,t,n){let{routesMeta:i}=e,o={},s="/",a=[];for(let l=0;l{let{paramName:x,isOptional:b}=d;if(x==="*"){let N=l[p]||"";a=s.slice(0,s.length-N.length).replace(/(.)\/+$/,"$1")}const g=l[p];return b&&!g?c[x]=void 0:c[x]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:a,pattern:e}}function Z1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Eh(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 i=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(i.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),i]}function e0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Eh(!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 Mr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function t0(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:o=""}=typeof e=="string"?qr(e):e;return{pathname:n?n.startsWith("/")?n:n0(n,t):t,search:o0(i),hash:s0(o)}}function n0(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 gl(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function r0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Oh(e,t){let n=r0(e);return t?n.map((i,o)=>o===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function Th(e,t,n,i){i===void 0&&(i=!1);let o;typeof e=="string"?o=qr(e):(o=Gi({},e),we(!o.pathname||!o.pathname.includes("?"),gl("?","pathname","search",o)),we(!o.pathname||!o.pathname.includes("#"),gl("#","pathname","hash",o)),we(!o.search||!o.search.includes("#"),gl("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,l;if(a==null)l=n;else{let p=t.length-1;if(!i&&a.startsWith("..")){let x=a.split("/");for(;x[0]==="..";)x.shift(),p-=1;o.pathname=x.join("/")}l=p>=0?t[p]:"/"}let u=t0(o,l),c=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const wn=e=>e.join("/").replace(/\/\/+/g,"/"),i0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),o0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,s0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function a0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ah=["post","put","patch","delete"];new Set(Ah);const l0=["get",...Ah];new Set(l0);/** * 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 Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),R.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){i.go(c);return}let p=Th(c,JSON.parse(a),s,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:wn([t,p.pathname])),(d.replace?i.replace:i.push)(p,d.state,d)},[t,i,a,s,e])}function Hr(){let{matches:e}=R.useContext(An),t=e[e.length-1];return t?t.params:{}}function pa(e,t){let{relative:n}=t===void 0?{}:t,{future:i}=R.useContext(Tn),{matches:o}=R.useContext(An),{pathname:s}=lo(),a=JSON.stringify(Oh(o,i.v7_relativeSplatPath));return R.useMemo(()=>Th(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function d0(e,t){return f0(e,t)}function f0(e,t,n,i){ao()||we(!1);let{navigator:o}=R.useContext(Tn),{matches:s}=R.useContext(An),a=s[s.length-1],l=a?a.params:{};a&&a.pathname;let u=a?a.pathnameBase:"/";a&&a.route;let c=lo(),d;if(t){var p;let C=typeof t=="string"?qr(t):t;u==="/"||(p=C.pathname)!=null&&p.startsWith(u)||we(!1),d=C}else d=c;let x=d.pathname||"/",b=x;if(u!=="/"){let C=u.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(C.length).join("/")}let g=W1(e,{pathname:b}),N=g0(g&&g.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:wn([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:wn([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),s,n,i);return t&&N?R.createElement(fa.Provider,{value:{location:Qi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:mn.Pop}},N):N}function p0(){let e=N0(),t=a0(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 R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:o},n):null,null)}const m0=R.createElement(p0,null);class h0 extends R.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?R.createElement(An.Provider,{value:this.props.routeContext},R.createElement(Rh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function v0(e){let{routeContext:t,match:n,children:i}=e,o=R.useContext(da);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(An.Provider,{value:t},i)}function g0(e,t,n,i){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=i)!=null&&s.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 d=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);d>=0||we(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,c=-1;if(n&&i&&i.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,p,x)=>{let b,g=!1,N=null,C=null;n&&(b=l&&p.route.id?l[p.route.id]:void 0,N=p.route.errorElement||m0,u&&(c<0&&x===0?(g=!0,C=null):c===x&&(g=!0,C=p.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,x+1)),v=()=>{let m;return b?m=N:g?m=C:p.route.Component?m=R.createElement(p.route.Component,null):p.route.element?m=p.route.element:m=d,R.createElement(v0,{match:p,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:m})};return n&&(p.route.ErrorBoundary||p.route.errorElement||x===0)?R.createElement(h0,{location:n.location,revalidation:n.revalidation,component:N,error:b,children:v(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):v()},null)}var Fh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Fh||{}),Ls=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}(Ls||{});function x0(e){let t=R.useContext(da);return t||we(!1),t}function y0(e){let t=R.useContext(Ih);return t||we(!1),t}function j0(e){let t=R.useContext(An);return t||we(!1),t}function Lh(e){let t=j0(),n=t.matches[t.matches.length-1];return n.route.id||we(!1),n.route.id}function N0(){var e;let t=R.useContext(Rh),n=y0(Ls.UseRouteError),i=Lh(Ls.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}function C0(){let{router:e}=x0(Fh.UseNavigateStable),t=Lh(Ls.UseNavigateStable),n=R.useRef(!1);return Dh(()=>{n.current=!0}),R.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Qi({fromRouteId:t},s)))},[e,t])}function _e(e){we(!1)}function b0(e){let{basename:t="/",children:n=null,location:i,navigationType:o=mn.Pop,navigator:s,static:a=!1,future:l}=e;ao()&&we(!1);let u=t.replace(/^\/*/,"/"),c=R.useMemo(()=>({basename:u,navigator:s,static:a,future:Qi({v7_relativeSplatPath:!1},l)}),[u,l,s,a]);typeof i=="string"&&(i=qr(i));let{pathname:d="/",search:p="",hash:x="",state:b=null,key:g="default"}=i,N=R.useMemo(()=>{let C=Mr(d,u);return C==null?null:{location:{pathname:C,search:p,hash:x,state:b,key:g},navigationType:o}},[u,d,p,x,b,g,o]);return N==null?null:R.createElement(Tn.Provider,{value:c},R.createElement(fa.Provider,{children:n,value:N}))}function w0(e){let{children:t,location:n}=e;return d0(kc(t),n)}new Promise(()=>{});function kc(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(i,o)=>{if(!R.isValidElement(i))return;let s=[...t,o];if(i.type===R.Fragment){n.push.apply(n,kc(i.props.children,s));return}i.type!==_e&&we(!1),!i.props.index||!i.props.children||we(!1);let a={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(a.children=kc(i.props.children,s)),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 Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function S0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function k0(e,t){return e.button===0&&(!t||t==="_self")&&!S0(e)}const E0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],P0=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],_0="6";try{window.__reactRouterVersion=_0}catch{}const O0=R.createContext({isTransitioning:!1}),T0="startTransition",Cf=yl[T0];function A0(e){let{basename:t,children:n,future:i,window:o}=e,s=R.useRef();s.current==null&&(s.current=M1({window:o,v5Compat:!0}));let a=s.current,[l,u]=R.useState({action:a.action,location:a.location}),{v7_startTransition:c}=i||{},d=R.useCallback(p=>{c&&Cf?Cf(()=>u(p)):u(p)},[u,c]);return R.useLayoutEffect(()=>a.listen(d),[a,d]),R.createElement(b0,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:i})}const I0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",R0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,D0=R.forwardRef(function(t,n){let{onClick:i,relative:o,reloadDocument:s,replace:a,state:l,target:u,to:c,preventScrollReset:d,unstable_viewTransition:p}=t,x=Mh(t,E0),{basename:b}=R.useContext(Tn),g,N=!1;if(typeof c=="string"&&R0.test(c)&&(g=c,I0))try{let m=new URL(window.location.href),y=c.startsWith("//")?new URL(m.protocol+c):new URL(c),E=Mr(y.pathname,b);y.origin===m.origin&&E!=null?c=E+y.search+y.hash:N=!0}catch{}let C=c0(c,{relative:o}),h=L0(c,{replace:a,state:l,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:p});function v(m){i&&i(m),m.defaultPrevented||h(m)}return R.createElement("a",Ms({},x,{href:g||C,onClick:N||s?i:v,ref:n,target:u}))}),ge=R.forwardRef(function(t,n){let{"aria-current":i="page",caseSensitive:o=!1,className:s="",end:a=!1,style:l,to:u,unstable_viewTransition:c,children:d}=t,p=Mh(t,P0),x=pa(u,{relative:p.relative}),b=lo(),g=R.useContext(Ih),{navigator:N,basename:C}=R.useContext(Tn),h=g!=null&&M0(x)&&c===!0,v=N.encodeLocation?N.encodeLocation(x).pathname:x.pathname,m=b.pathname,y=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(m=m.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&C&&(y=Mr(y,C)||y);const E=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let _=m===v||!a&&m.startsWith(v)&&m.charAt(E)==="/",O=y!=null&&(y===v||!a&&y.startsWith(v)&&y.charAt(v.length)==="/"),P={isActive:_,isPending:O,isTransitioning:h},M=_?i:void 0,W;typeof s=="function"?W=s(P):W=[s,_?"active":null,O?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(P):l;return R.createElement(D0,Ms({},p,{"aria-current":M,className:W,ref:n,style:H,to:u,unstable_viewTransition:c}),typeof d=="function"?d(P):d)});var Ec;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ec||(Ec={}));var bf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bf||(bf={}));function F0(e){let t=R.useContext(da);return t||we(!1),t}function L0(e,t){let{target:n,replace:i,state:o,preventScrollReset:s,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,u=Vr(),c=lo(),d=pa(e,{relative:a});return R.useCallback(p=>{if(k0(p,n)){p.preventDefault();let x=i!==void 0?i:Ds(c)===Ds(d);u(e,{replace:x,state:o,preventScrollReset:s,relative:a,unstable_viewTransition:l})}},[c,u,d,i,o,n,e,s,a,l])}function M0(e,t){t===void 0&&(t={});let n=R.useContext(O0);n==null&&we(!1);let{basename:i}=F0(Ec.useViewTransitionState),o=pa(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Mr(n.currentLocation.pathname,i)||n.currentLocation.pathname,a=Mr(n.nextLocation.pathname,i)||n.nextLocation.pathname;return Fs(o.pathname,a)!=null||Fs(o.pathname,s)!=null}function Bh(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Yn=e=>typeof e=="string",ot=e=>typeof e=="function",ts=e=>Yn(e)||ot(e)?e:null,Pc=e=>R.isValidElement(e)||Yn(e)||ot(e)||Ji(e);function B0(e,t,n){n===void 0&&(n=300);const{scrollHeight:i,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=i+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function ma(e){let{enter:t,exit:n,appendPosition:i=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(a){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:p,isIn:x,playToast:b}=a;const g=i?`${t}--${u}`:t,N=i?`${n}--${u}`:n,C=R.useRef(0);return R.useLayoutEffect(()=>{const h=p.current,v=g.split(" "),m=y=>{y.target===p.current&&(b(),h.removeEventListener("animationend",m),h.removeEventListener("animationcancel",m),C.current===0&&y.type!=="animationcancel"&&h.classList.remove(...v))};h.classList.add(...v),h.addEventListener("animationend",m),h.addEventListener("animationcancel",m)},[]),R.useEffect(()=>{const h=p.current,v=()=>{h.removeEventListener("animationend",v),o?B0(h,d,s):d()};x||(c?v():(C.current=1,h.className+=` ${N}`,h.addEventListener("animationend",v)))},[x]),I.createElement(I.Fragment,null,l)}}function wf(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 $e=new Map;let Xi=[];const _c=new Set,z0=e=>_c.forEach(t=>t(e)),zh=()=>$e.size>0;function Wh(e,t){var n;if(t)return!((n=$e.get(t))==null||!n.isToastActive(e));let i=!1;return $e.forEach(o=>{o.isToastActive(e)&&(i=!0)}),i}function $h(e,t){Pc(e)&&(zh()||Xi.push({content:e,options:t}),$e.forEach(n=>{n.buildToast(e,t)}))}function Sf(e,t){$e.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 W0(e){const{subscribe:t,getSnapshot:n,setProps:i}=R.useRef(function(s){const a=s.containerId||1;return{subscribe(l){const u=function(d,p,x){let b=1,g=0,N=[],C=[],h=[],v=p;const m=new Map,y=new Set,E=()=>{h=Array.from(m.values()),y.forEach(P=>P())},_=P=>{C=P==null?[]:C.filter(M=>M!==P),E()},O=P=>{const{toastId:M,onOpen:W,updateId:H,children:te}=P.props,X=H==null;P.staleId&&m.delete(P.staleId),m.set(M,P),C=[...C,P.props.toastId].filter(Z=>Z!==P.staleId),E(),x(wf(P,X?"added":"updated")),X&&ot(W)&&W(R.isValidElement(te)&&te.props)};return{id:d,props:v,observe:P=>(y.add(P),()=>y.delete(P)),toggle:(P,M)=>{m.forEach(W=>{M!=null&&M!==W.props.toastId||ot(W.toggle)&&W.toggle(P)})},removeToast:_,toasts:m,clearQueue:()=>{g-=N.length,N=[]},buildToast:(P,M)=>{if(($=>{let{containerId:K,toastId:G,updateId:ee}=$;const re=K?K!==d:d!==1,ne=m.has(G)&&ee==null;return re||ne})(M))return;const{toastId:W,updateId:H,data:te,staleId:X,delay:Z}=M,F=()=>{_(W)},U=H==null;U&&g++;const Q={...v,style:v.toastStyle,key:b++,...Object.fromEntries(Object.entries(M).filter($=>{let[K,G]=$;return G!=null})),toastId:W,updateId:H,data:te,closeToast:F,isIn:!1,className:ts(M.className||v.toastClassName),bodyClassName:ts(M.bodyClassName||v.bodyClassName),progressClassName:ts(M.progressClassName||v.progressClassName),autoClose:!M.isLoading&&(A=M.autoClose,T=v.autoClose,A===!1||Ji(A)&&A>0?A:T),deleteToast(){const $=m.get(W),{onClose:K,children:G}=$.props;ot(K)&&K(R.isValidElement(G)&&G.props),x(wf($,"removed")),m.delete(W),g--,g<0&&(g=0),N.length>0?O(N.shift()):E()}};var A,T;Q.closeButton=v.closeButton,M.closeButton===!1||Pc(M.closeButton)?Q.closeButton=M.closeButton:M.closeButton===!0&&(Q.closeButton=!Pc(v.closeButton)||v.closeButton);let L=P;R.isValidElement(P)&&!Yn(P.type)?L=R.cloneElement(P,{closeToast:F,toastProps:Q,data:te}):ot(P)&&(L=P({closeToast:F,toastProps:Q,data:te}));const B={content:L,props:Q,staleId:X};v.limit&&v.limit>0&&g>v.limit&&U?N.push(B):Ji(Z)?setTimeout(()=>{O(B)},Z):O(B)},setProps(P){v=P},setToggle:(P,M)=>{m.get(P).toggle=M},isToastActive:P=>C.some(M=>M===P),getSnapshot:()=>v.newestOnTop?h.reverse():h}}(a,s,z0);$e.set(a,u);const c=u.observe(l);return Xi.forEach(d=>$h(d.content,d.options)),Xi=[],()=>{c(),$e.delete(a)}},setProps(l){var u;(u=$e.get(a))==null||u.setProps(l)},getSnapshot(){var l;return(l=$e.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;i(e);const o=R.useSyncExternalStore(t,n,n);return{getToastToRender:function(s){if(!o)return[];const a=new Map;return o.forEach(l=>{const{position:u}=l.props;a.has(u)||a.set(u,[]),a.get(u).push(l)}),Array.from(a,l=>s(l[0],l[1]))},isToastActive:Wh,count:o==null?void 0:o.length}}function $0(e){const[t,n]=R.useState(!1),[i,o]=R.useState(!1),s=R.useRef(null),a=R.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:p}=e;var x,b;function g(){n(!0)}function N(){n(!1)}function C(m){const y=s.current;a.canDrag&&y&&(a.didMove=!0,t&&N(),a.delta=e.draggableDirection==="x"?m.clientX-a.start:m.clientY-a.start,a.start!==m.clientX&&(a.canCloseOnClick=!1),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,y.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function h(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",h);const m=s.current;if(a.canDrag&&a.didMove&&m){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity")}}(b=$e.get((x={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||b.setToggle(x.id,x.fn),R.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||N(),window.addEventListener("focus",g),window.addEventListener("blur",N),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",N)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(m){if(e.draggable===!0||e.draggable===m.pointerType){a.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",h);const y=s.current;a.canCloseOnClick=!0,a.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(a.start=m.clientX,a.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(a.start=m.clientY,a.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(m){const{top:y,bottom:E,left:_,right:O}=s.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&e.pauseOnHover&&m.clientX>=_&&m.clientX<=O&&m.clientY>=y&&m.clientY<=E?N():g()}};return l&&u&&(v.onMouseEnter=N,e.stacked||(v.onMouseLeave=g)),p&&(v.onClick=m=>{d&&d(m),a.canCloseOnClick&&c()}),{playToast:g,pauseToast:N,isRunning:t,preventExitTransition:i,toastRef:s,eventHandlers:v}}function U0(e){let{delay:t,isRunning:n,closeToast:i,type:o="default",hide:s,className:a,style:l,controlledProgress:u,progress:c,rtl:d,isIn:p,theme:x}=e;const b=s||u&&c===0,g={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(g.transform=`scaleX(${c})`);const N=hn("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${x}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),C=ot(a)?a({rtl:d,type:o,defaultClassName:N}):hn(N,a),h={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{p&&i()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${x} Toastify__progress-bar--${o}`}),I.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:C,style:g,...h}))}let q0=1;const Uh=()=>""+q0++;function V0(e){return e&&(Yn(e.toastId)||Ji(e.toastId))?e.toastId:Uh()}function Pi(e,t){return $h(e,t),t.toastId}function Bs(e,t){return{...t,type:t&&t.type||e,toastId:V0(t)}}function To(e){return(t,n)=>Pi(t,Bs(e,n))}function ae(e,t){return Pi(e,Bs("default",t))}ae.loading=(e,t)=>Pi(e,Bs("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ae.promise=function(e,t,n){let i,{pending:o,error:s,success:a}=t;o&&(i=Yn(o)?ae.loading(o,n):ae.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,p,x)=>{if(p==null)return void ae.dismiss(i);const b={type:d,...l,...n,data:x},g=Yn(p)?{render:p}:p;return i?ae.update(i,{...b,...g}):ae(g.render,{...b,...g}),x},c=ot(e)?e():e;return c.then(d=>u("success",a,d)).catch(d=>u("error",s,d)),c},ae.success=To("success"),ae.info=To("info"),ae.error=To("error"),ae.warning=To("warning"),ae.warn=ae.warning,ae.dark=(e,t)=>Pi(e,Bs("default",{theme:"dark",...t})),ae.dismiss=function(e){(function(t){var n;if(zh()){if(t==null||Yn(n=t)||Ji(n))$e.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const i=$e.get(t.containerId);i?i.removeToast(t.id):$e.forEach(o=>{o.removeToast(t.id)})}}else Xi=Xi.filter(i=>t!=null&&i.options.toastId!==t)})(e)},ae.clearWaitingQueue=function(e){e===void 0&&(e={}),$e.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ae.isActive=Wh,ae.update=function(e,t){t===void 0&&(t={});const n=((i,o)=>{var s;let{containerId:a}=o;return(s=$e.get(a||1))==null?void 0:s.toasts.get(i)})(e,t);if(n){const{props:i,content:o}=n,s={delay:100,...i,...t,toastId:t.toastId||e,updateId:Uh()};s.toastId!==e&&(s.staleId=e);const a=s.render||o;delete s.render,Pi(a,s)}},ae.done=e=>{ae.update(e,{progress:1})},ae.onChange=function(e){return _c.add(e),()=>{_c.delete(e)}},ae.play=e=>Sf(!0,e),ae.pause=e=>Sf(!1,e);const H0=typeof window<"u"?R.useLayoutEffect:R.useEffect,Ao=e=>{let{theme:t,type:n,isLoading:i,...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})},xl={info:function(e){return I.createElement(Ao,{...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(Ao,{...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(Ao,{...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(Ao,{...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"})}},Y0=e=>{const{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:o,playToast:s}=$0(e),{closeButton:a,children:l,autoClose:u,onClick:c,type:d,hideProgressBar:p,closeToast:x,transition:b,position:g,className:N,style:C,bodyClassName:h,bodyStyle:v,progressClassName:m,progressStyle:y,updateId:E,role:_,progress:O,rtl:P,toastId:M,deleteToast:W,isIn:H,isLoading:te,closeOnClick:X,theme:Z}=e,F=hn("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":P},{"Toastify__toast--close-on-click":X}),U=ot(N)?N({rtl:P,position:g,type:d,defaultClassName:F}):hn(F,N),Q=function(B){let{theme:$,type:K,isLoading:G,icon:ee}=B,re=null;const ne={theme:$,type:K};return ee===!1||(ot(ee)?re=ee({...ne,isLoading:G}):R.isValidElement(ee)?re=R.cloneElement(ee,ne):G?re=xl.spinner():(oe=>oe in xl)(K)&&(re=xl[K](ne))),re}(e),A=!!O||!u,T={closeToast:x,type:d,theme:Z};let L=null;return a===!1||(L=ot(a)?a(T):R.isValidElement(a)?R.cloneElement(a,T):function(B){let{closeToast:$,theme:K,ariaLabel:G="close"}=B;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),$(ee)},"aria-label":G},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"})))}(T)),I.createElement(b,{isIn:H,done:W,position:g,preventExitTransition:n,nodeRef:i,playToast:s},I.createElement("div",{id:M,onClick:c,"data-in":H,className:U,...o,style:C,ref:i},I.createElement("div",{...H&&{role:_},className:ot(h)?h({type:d}):hn("Toastify__toast-body",h),style:v},Q!=null&&I.createElement("div",{className:hn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},Q),I.createElement("div",null,l)),L,I.createElement(U0,{...E&&!A?{key:`pb-${E}`}:{},rtl:P,theme:Z,delay:u,isRunning:t,isIn:H,closeToast:x,hide:p,type:d,style:y,className:m,controlledProgress:A,progress:O||0})))},ha=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},K0=ma(ha("bounce",!0));ma(ha("slide",!0));ma(ha("zoom"));ma(ha("flip"));const G0={position:"top-right",transition:K0,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q0(e){let t={...G0,...e};const n=e.stacked,[i,o]=R.useState(!0),s=R.useRef(null),{getToastToRender:a,isToastActive:l,count:u}=W0(t),{className:c,style:d,rtl:p,containerId:x}=t;function b(N){const C=hn("Toastify__toast-container",`Toastify__toast-container--${N}`,{"Toastify__toast-container--rtl":p});return ot(c)?c({position:N,rtl:p,defaultClassName:C}):hn(C,ts(c))}function g(){n&&(o(!0),ae.play())}return H0(()=>{if(n){var N;const C=s.current.querySelectorAll('[data-in="true"]'),h=12,v=(N=t.position)==null?void 0:N.includes("top");let m=0,y=0;Array.from(C).reverse().forEach((E,_)=>{const O=E;O.classList.add("Toastify__toast--stacked"),_>0&&(O.dataset.collapsed=`${i}`),O.dataset.pos||(O.dataset.pos=v?"top":"bot");const P=m*(i?.2:1)+(i?0:h*_);O.style.setProperty("--y",`${v?P:-1*P}px`),O.style.setProperty("--g",`${h}`),O.style.setProperty("--s",""+(1-(i?y:0))),m+=O.offsetHeight,y+=.025})}},[i,u,n]),I.createElement("div",{ref:s,className:"Toastify",id:x,onMouseEnter:()=>{n&&(o(!1),ae.pause())},onMouseLeave:g},a((N,C)=>{const h=C.length?{...d}:{...d,pointerEvents:"none"};return I.createElement("div",{className:b(N),style:h,key:`container-${N}`},C.map(v=>{let{content:m,props:y}=v;return I.createElement(Y0,{...y,stacked:n,collapseAll:g,isIn:l(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},m)}))}))}const He=()=>{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(ge,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(ge,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(ge,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(ge,{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."]})})})})})]})})},J0="/assets/logo-Cb1x1exd.png",Ae=()=>{var o,s;const{user:e}=tt(a=>({...a.auth})),t=Pt(),n=Vr(),i=()=>{t(T1()),n("/")};return r.jsx(r.Fragment,{children:r.jsx("div",{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 d-flex align-items-center justify-content-between",children:[r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsx("img",{src:J0,alt:"logo",width:"75",height:"75",className:"img-fluid"}),r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),r.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[r.jsxs("ul",{className:"navbar-nav ml-auto",children:[r.jsx("li",{className:"nav-item active",children:r.jsx(ge,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(ge,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(o=e==null?void 0:e.result)!=null&&o._id?r.jsx(ge,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):r.jsx(ge,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(s=e==null?void 0:e.result)!=null&&s._id?r.jsx(ge,{to:"/login",children:r.jsx("p",{className:"header-text",onClick:i,style:{fontWeight:"bold"},children:"Logout"})}):r.jsx(ge,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},X0=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[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.jsx("div",{className:"carousel-item active",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:"Reinventing real estate investment"}),r.jsxs("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.jsxs("div",{className:"col-sm-12",children:[r.jsx("h1",{className:"services_taital",children:"Our Services"}),r.jsx("p",{className:"services_text_1",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(He,{})]}),Z0=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(He,{})]}),eN=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(He,{})]});var $t=function(){return $t=Object.assign||function(e){for(var t,n=1,i=arguments.length;n{const[e,t]=R.useState(SN),[n,i]=R.useState(!1),{loading:o,error:s}=tt(E=>({...E.auth})),{title:a,email:l,password:u,firstName:c,middleName:d,lastName:p,confirmPassword:x,termsconditions:b,userType:g}=e,N=Pt(),C=Vr();R.useEffect(()=>{s&&ae.error(s)},[s]),R.useEffect(()=>{i(a!=="None"&&l&&u&&c&&d&&p&&x&&b&&g!=="")},[a,l,u,c,d,p,x,b,g]);const h=E=>{if(E.preventDefault(),u!==x)return ae.error("Password should match");n?N(Ko({formValue:e,navigate:C,toast:ae})):ae.error("Please fill in all fields and select all checkboxes")},v=E=>E.charAt(0).toUpperCase()+E.slice(1),m=E=>{const{name:_,value:O,type:P,checked:M}=E.target;t(P==="checkbox"?W=>({...W,[_]:M}):W=>({...W,[_]:_==="email"||_==="password"||_==="confirmPassword"?O:v(O)}))},y=E=>{t(_=>({..._,userType:E.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),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("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:h,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:g==="Lender",onChange:y,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:g==="Borrower",onChange:y,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:m,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:m,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:d,name:"middleName",onChange:m,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:m,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:m,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:u,name:"password",onChange:m,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:x,name:"confirmPassword",onChange:m,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:b,name:"termsconditions",checked:b,onChange:m,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(qh.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(He,{})]})},EN={email:"",password:""},PN=()=>{const[e,t]=R.useState(EN),{loading:n,error:i}=tt(d=>({...d.auth})),{email:o,password:s}=e,a=Pt(),l=Vr();R.useEffect(()=>{i&&ae.error(i)},[i]);const u=d=>{d.preventDefault(),o&&s&&a(Yo({formValue:e,navigate:l,toast:ae}))},c=d=>{let{name:p,value:x}=d.target;t({...e,[p]:x})};return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),r.jsx("br",{}),r.jsx("br",{}),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:s,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:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(qh.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(ge,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(ge,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(He,{})]})},ns="/assets/samplepic-BM_cnzgz.jpg";var Vh={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(ov,function(){return function(n){function i(s){if(o[s])return o[s].exports;var a=o[s]={exports:{},id:s,loaded:!1};return n[s].call(a.exports,a,a.exports,i),a.loaded=!0,a.exports}var o={};return i.m=n,i.c=o,i.p="",i(0)}([function(n,i,o){function s(b){return b&&b.__esModule?b:{default:b}}function a(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function l(b,g){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?b:g}function u(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(b,g):b.__proto__=g)}Object.defineProperty(i,"__esModule",{value:!0});var c=function(){function b(g,N){for(var C=0;C1)for(var E=1;E1?d-1:0),x=1;x2?p-2:0),b=2;b1){for(var Z=Array(X),F=0;F"u"||P.$$typeof!==h)){var Q=typeof y=="function"?y.displayName||y.name||"Unknown":y;M&&u(P,Q),W&&c(P,Q)}return m(y,M,W,H,te,b.current,P)},m.createFactory=function(y){var E=m.createElement.bind(null,y);return E.type=y,E},m.cloneAndReplaceKey=function(y,E){var _=m(y.type,E,y.ref,y._self,y._source,y._owner,y.props);return _},m.cloneElement=function(y,E,_){var O,P=x({},y.props),M=y.key,W=y.ref,H=y._self,te=y._source,X=y._owner;if(E!=null){a(E)&&(W=E.ref,X=b.current),l(E)&&(M=""+E.key);var Z;y.type&&y.type.defaultProps&&(Z=y.type.defaultProps);for(O in E)C.call(E,O)&&!v.hasOwnProperty(O)&&(E[O]===void 0&&Z!==void 0?P[O]=Z[O]:P[O]=E[O])}var F=arguments.length-2;if(F===1)P.children=_;else if(F>1){for(var U=Array(F),Q=0;Q1?c-1:0),p=1;p2?d-2:0),x=2;x.")}return O}function c(_,O){if(_._store&&!_._store.validated&&_.key==null){_._store.validated=!0;var P=y.uniqueKey||(y.uniqueKey={}),M=u(O);if(!P[M]){P[M]=!0;var W="";_&&_._owner&&_._owner!==x.current&&(W=" It was passed a child from "+_._owner.getName()+"."),s.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',M,W,b.getCurrentStackAddendum(_))}}}function d(_,O){if(typeof _=="object"){if(Array.isArray(_))for(var P=0;P<_.length;P++){var M=_[P];g.isValidElement(M)&&c(M,O)}else if(g.isValidElement(_))_._store&&(_._store.validated=!0);else if(_){var W=h(_);if(W&&W!==_.entries)for(var H,te=W.call(_);!(H=te.next()).done;)g.isValidElement(H.value)&&c(H.value,O)}}}function p(_){var O=_.type;if(typeof O=="function"){var P=O.displayName||O.name;O.propTypes&&N(O.propTypes,_.props,"prop",P,_,null),typeof O.getDefaultProps=="function"&&(s.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 x=o(7),b=o(10),g=o(4),N=o(32),C=o(8),h=o(18),v=o(3),m=o(11),y={},E={createElement:function(_,O,P){var M=typeof _=="string"||typeof _=="function";if(!M&&typeof _!="function"&&typeof _!="string"){var W="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(W+=" You likely forgot to export your component from the file it's defined in.");var H=l(O);W+=H||a(),W+=b.getCurrentStackAddendum();var te=O!=null&&O.__source!==void 0?O.__source:null;b.pushNonStandardWarningStack(!0,te),s.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",_==null?_:typeof _,W),b.popNonStandardWarningStack()}var X=g.createElement.apply(this,arguments);if(X==null)return X;if(M)for(var Z=2;Z1?G-1:0),re=1;re"u"||B===null)return""+B;var $=X(B);if($==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return $}function F(B){var $=Z(B);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function U(B){return B.constructor&&B.constructor.name?B.constructor.name:T}var Q=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator",T="<>",L={array:h("array"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:v(),arrayOf:m,element:y(),instanceOf:E,node:M(),objectOf:O,oneOf:_,oneOfType:P,shape:W};return N.prototype=Error.prototype,L.checkPropTypes=d,L.PropTypes=L,L}}).call(i,o(1))},function(n,i){function o(l){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+l).replace(u,function(p){return c[p]});return"$"+d}function s(l){var u=/(=0|=2)/g,c={"=0":"=","=2":":"},d=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+d).replace(u,function(p){return c[p]})}var a={escape:o,unescape:s};n.exports=a},function(n,i,o){(function(s){var a=o(5),l=o(2),u=function(h){var v=this;if(v.instancePool.length){var m=v.instancePool.pop();return v.call(m,h),m}return new v(h)},c=function(h,v){var m=this;if(m.instancePool.length){var y=m.instancePool.pop();return m.call(y,h,v),y}return new m(h,v)},d=function(h,v,m){var y=this;if(y.instancePool.length){var E=y.instancePool.pop();return y.call(E,h,v,m),E}return new y(h,v,m)},p=function(h,v,m,y){var E=this;if(E.instancePool.length){var _=E.instancePool.pop();return E.call(_,h,v,m,y),_}return new E(h,v,m,y)},x=function(h){var v=this;h instanceof v||(s.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),h.destructor(),v.instancePool.length{const[e,t]=R.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},i=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},o=Pt(),{status:s,error:a}=tt(f=>f.property),{user:l}=tt(f=>({...f.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=R.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"}),[p,x]=R.useState(!1),b=(f,j)=>{console.log("File received:",f);const w=[...c.images];w[j].file=f.base64,d({...c,images:w})},g=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},N=f=>{const j=c.images.filter((w,D)=>D!==f);d({...c,images:j})},C=(f,j)=>{const w=[...c.images];w[f].title=j.target.value,d({...c,images:w})},h=(f,j,w)=>{const{name:D,value:q}=f.target;if(w==="propertyTaxInfo"){const Y=[...c.propertyTaxInfo];Y[j][D]=q,d({...c,propertyTaxInfo:Y})}else d({...c,[D]:q})},v=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},m=f=>{const j=c.propertyTaxInfo.filter((w,D)=>D!==f);d({...c,propertyTaxInfo:j})},y=()=>{d(f=>({...f,costPaidAtoB:[...f.costPaidAtoB,{title:"",price:""}]}))},E=f=>{const j=c.costPaidAtoB.filter((w,D)=>D!==f);d(w=>({...w,costPaidAtoB:j}))},_=(f,j,w)=>{const D=[...c.costPaidAtoB];D[f][j]=w,d(q=>({...q,costPaidAtoB:D}))},O=(f,j)=>{let w=f.target.value;if(w=w.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidAtoB.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,costPaidAtoB:q})}},P=()=>{const f=c.costPaidAtoB.reduce((w,D)=>{const q=parseFloat(D.price)||0;return w+q},0),j=parseFloat(c.purchaseCost)||0;return f+j},M=()=>{d(f=>({...f,credits:[...f.credits,{title:"",price:""}]}))},W=f=>{const j=c.credits.filter((w,D)=>D!==f);d(w=>({...w,credits:j}))},H=(f,j,w)=>{const D=[...c.credits];D[f][j]=w,d(q=>({...q,credits:D}))},te=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.credits.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,credits:q})}else{const q=c.credits.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,credits:q})}},X=()=>c.credits.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Z=()=>{const f=c.costPaidAtoB.reduce((D,q)=>{const Y=parseFloat(q.price)||0;return D+Y},0),j=c.credits.reduce((D,q)=>{const Y=parseFloat(q.price)||0;return D+Y},0),w=parseFloat(c.purchaseCost)||0;return f+j+w},F=()=>{d(f=>({...f,cashAdjustments:[...f.cashAdjustments,{title:"",price:""}]}))},U=f=>{const j=c.cashAdjustments.filter((w,D)=>D!==f);d(w=>({...w,cashAdjustments:j}))},Q=(f,j,w)=>{const D=[...c.cashAdjustments];D[f][j]=w,d(q=>({...q,cashAdjustments:D}))},A=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.cashAdjustments.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,cashAdjustments:q})}},T=()=>c.cashAdjustments.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),L=()=>{const f=T(),j=X(),w=P();return f+j+w},B=()=>{d(f=>({...f,incidentalCost:[...f.incidentalCost,{title:"",price:""}]}))},$=f=>{const j=c.incidentalCost.filter((w,D)=>D!==f);d(w=>({...w,incidentalCost:j}))},K=(f,j,w)=>{const D=[...c.incidentalCost];D[f][j]=w,d(q=>({...q,incidentalCost:D}))},G=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incidentalCost.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),re=()=>{d(f=>({...f,carryCosts:[...f.carryCosts,{title:"",price:""}]}))},ne=f=>{const j=c.carryCosts.filter((w,D)=>D!==f);d(w=>({...w,carryCosts:j}))},oe=(f,j,w)=>{const D=[...c.carryCosts];D[f][j]=w,d(q=>({...q,carryCosts:D}))},ce=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.carryCosts.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,carryCosts:q})}else{const q=c.carryCosts.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,carryCosts:q})}},de=()=>c.carryCosts.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),ye=()=>{d(f=>({...f,renovationCost:[...f.renovationCost,{title:"",price:""}]}))},Ot=f=>{const j=c.renovationCost.filter((w,D)=>D!==f);d(w=>({...w,renovationCost:j}))},ir=(f,j,w)=>{const D=[...c.renovationCost];D[f][j]=w,d(q=>({...q,renovationCost:D}))},va=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.renovationCost.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,renovationCost:q})}else{const q=c.renovationCost.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,renovationCost:q})}},Yr=()=>c.renovationCost.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Kr=()=>{const f=ee(),j=de(),w=Yr();return f+j+w},Bt=()=>{const f=Kr(),j=L();return f+j},Gr=()=>{d(f=>({...f,costPaidOutofClosing:[...f.costPaidOutofClosing,{title:"",price:""}]}))},In=f=>{const j=c.costPaidOutofClosing.filter((w,D)=>D!==f);d(w=>({...w,costPaidOutofClosing:j}))},ga=(f,j,w)=>{const D=[...c.costPaidOutofClosing];D[f][j]=w,d(q=>({...q,costPaidOutofClosing:D}))},xa=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.costPaidOutofClosing.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,costPaidOutofClosing:q})}},Qr=()=>c.costPaidOutofClosing.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),en=()=>{const f=c.sellingPriceBtoC,j=Qr();return f-j},Jr=()=>{d(f=>({...f,adjustments:[...f.adjustments,{title:"",price:""}]}))},tn=f=>{const j=c.adjustments.filter((w,D)=>D!==f);d(w=>({...w,adjustments:j}))},ya=(f,j,w)=>{const D=[...c.adjustments];D[f][j]=w,d(q=>({...q,adjustments:D}))},ja=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.adjustments.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,adjustments:q})}else{const q=c.adjustments.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,adjustments:q})}},Xr=()=>c.adjustments.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),co=()=>{const f=en(),j=Xr();return f+j},Zr=()=>{d(f=>({...f,incomestatement:[...f.incomestatement,{title:"",price:""}]}))},uo=f=>{const j=c.incomestatement.filter((w,D)=>D!==f);d(w=>({...w,incomestatement:j}))},Na=(f,j,w)=>{const D=[...c.incomestatement];D[f][j]=w,d(q=>({...q,incomestatement:D}))},Ca=(f,j)=>{const w=f.target.value;if(/^\d*\.?\d*$/.test(w)||w===""){const q=c.incomestatement.map((Y,se)=>se===j?{...Y,price:w,isInvalid:!1}:Y);d({...c,incomestatement:q})}else{const q=c.incomestatement.map((Y,se)=>se===j?{...Y,isInvalid:!0}:Y);d({...c,incomestatement:q})}},ei=()=>c.incomestatement.reduce((f,j)=>{const w=parseFloat(j.price);return f+(isNaN(w)?0:w)},0),Rn=()=>{const f=ei(),j=en();return f+j},Dn=()=>{const f=isNaN(parseFloat(Rn()))?0:parseFloat(Rn()),j=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),w=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),D=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),Y=isNaN(parseFloat(Bt()))?0:parseFloat(Bt());return f+j+w+D+q-Y},zt=()=>{const f=Dn(),j=c.FinancingCostClosingCost;return f-j},or=()=>zt(),ti=()=>{var f,j,w,D,q,Y;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 se=or(),fo=P(),wa=Z(),Sa=T(),ka=ee(),Ea=X(),Pa=L(),_a=de(),Oa=Yr(),Ta=Kr(),Aa=Bt(),Ia=Qr(),Ra=Xr(),Gh=co(),Qh=en(),Jh=en(),Xh=ei(),Zh=Rn(),ev=Dn(),tv=zt(),Da={...c,userfirstname:(f=l==null?void 0:l.result)==null?void 0:f.firstName,usermiddlename:(j=l==null?void 0:l.result)==null?void 0:j.middleName,userlastname:(w=l==null?void 0:l.result)==null?void 0:w.lastName,usertitle:(D=l==null?void 0:l.result)==null?void 0:D.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(Y=l==null?void 0:l.result)==null?void 0:Y.userId,totalPurchaseCosts:fo,totalcredits:Ea,totalPurchaseCostsaftercredits:wa,totalcashAdjustments:Sa,totalcashrequiredonsettlement:Pa,totalincidentalCost:ka,totalcarryCosts:_a,totalrenovationCost:Oa,totalRenovationsandHoldingCost:Ta,totalCoststoBuyAtoB:Aa,totalcostPaidOutofClosing:Ia,totaladjustments:Ra,fundsavailablefordistribution:Gh,grossproceedsperHUD:Qh,totalCosttoSellBtoC:Jh,totalincomestatement:Xh,netBtoCsalevalue:Zh,netprofitbeforefinancingcosts:ev,NetProfit:tv,rateofreturn:se};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?Da.propertyTaxInfo=c.propertyTaxInfo:Da.propertyTaxInfo=[],o(Xo(Da)),x(!0)}else ae.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};R.useEffect(()=>{p&&(s==="succeeded"?(ae.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),x(!1)):s==="failed"&&(ae.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),x(!1)))},[s,a,p]);const[ba,S]=R.useState("0 days"),k=(f,j)=>{if(f&&j){const w=new Date(f),D=new Date(j),q=Math.abs(D-w),Y=Math.ceil(q/(1e3*60*60*24));S(`${Y} days`)}else S("0 days")};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Ae,{}),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.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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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:h,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,j)=>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=>h(w,j,"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=>h(w,j,"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=>h(w,j,"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=>h(w,j,"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:()=>m(j),style:{height:"25px",width:"35px"},children:"X"})]})})]},j)),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,j)=>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=>C(j,w)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Du,{multiple:!1,onDone:w=>b(w,j)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>N(j),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"}})})]})]},j)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:g,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:h,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¢er=${c.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: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 j=f.target.value;d({...c,closeDateAtoB:j}),k(j,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 j=f.target.value;d({...c,closeDateBtoC:j}),k(c.closeDateAtoB,j)},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:u.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:j=>{const w=parseInt(j.target.value,10);d({...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:`$ ${or().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:ba,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 j=f.target.value.replace(/[^\d.]/g,"");const w=/^\d*\.?\d*$/.test(j);d({...c,purchaseCost:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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,j)=>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=>_(j,"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,j),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(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:y,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:`$ ${P().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,j)=>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(j,"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,j),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(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:M,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:X(),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,j)=>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=>Q(j,"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,j),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(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:F,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: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 Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:L(),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,j)=>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(j,"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=>G(w,j),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:()=>$(j),style:{marginLeft:"5px"},children:"x"})})]},j)),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,j)=>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=>oe(j,"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=>ce(w,j),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(j),style:{marginLeft:"5px"},children:"x"})})]},j)),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,j)=>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=>ir(j,"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=>va(w,j),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:()=>Ot(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ye,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:Yr(),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:Kr(),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:Bt(),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 j=f.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,sellingPriceBtoC:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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,j)=>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=>ga(j,"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=>xa(w,j),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:()=>In(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Gr,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:Qr(),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: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.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: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:"Adjustments:"}),c.adjustments.map((f,j)=>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=>ya(j,"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=>ja(w,j),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:()=>tn(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Jr,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:Xr(),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:co(),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,j)=>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=>Na(j,"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=>Ca(w,j),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:()=>uo(j),style:{marginLeft:"5px"},children:"x"})})]},j)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Zr,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:ei(),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:Rn(),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:Bt(),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 j=f.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,fundspriortoclosing:j,isfundspriortoclosingInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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:Rn(),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 j=f.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,shorttermrental:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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 j=f.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,OtherIncome:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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 j=f.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,InsuranceClaim:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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 j=f.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,LongTermRental:j,isPurchaseCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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:Dn(),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 j=f.target.value,w=/^\d*\.?\d*$/.test(j);d({...c,FinancingCostClosingCost:j,isFinancingCostClosingCostInvalid:!w})},onKeyPress:f=>{const j=f.charCode;(j<48||j>57)&&j!==46&&(f.preventDefault(),d({...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:zt(),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: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:ti,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})},Dt="/assets/propertydummy-DhVEZ7jN.jpg",TN=()=>{var u;const e=Pt(),{user:t}=tt(c=>({...c.auth})),{userProperties:n,totalPages:i}=tt(c=>c.property),[o,s]=R.useState(1),a=5;R.useEffect(()=>{e(Zo({userId:t.result.userId,page:o,limit:a}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,o]);const l=c=>{s(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||Dt,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(ge,{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(ge,{to:`/property/${c.propertyId}`,target:"_blank",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(ge,{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:i},(c,d)=>d+1).map(c=>c===o||c===1||c===i||c>=o-1&&c<=o+1?r.jsx("button",{onClick:()=>l(c),disabled:o===c,children:c},c):c===2||c===i-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(o+1),disabled:o===i,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},AN=()=>{var d,p,x,b,g,N,C,h,v,m,y,E;const{user:e,isLoading:t,error:n}=tt(_=>_.auth),i=Pt(),o=Vr(),[s,a]=R.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((p=e==null?void 0:e.result)==null?void 0:p.title)||"",firstName:((x=e==null?void 0:e.result)==null?void 0:x.firstName)||"",middleName:((b=e==null?void 0:e.result)==null?void 0:b.middleName)||"",lastName:((g=e==null?void 0:e.result)==null?void 0:g.lastName)||"",email:((N=e==null?void 0:e.result)==null?void 0:N.email)||"",aboutme:((C=e==null?void 0:e.result)==null?void 0:C.aboutme)||"",city:((h=e==null?void 0:e.result)==null?void 0:h.city)||"",state:((v=e==null?void 0:e.result)==null?void 0:v.state)||"",county:((m=e==null?void 0:e.result)==null?void 0:m.county)||"",zip:((y=e==null?void 0:e.result)==null?void 0:y.zip)||"",profileImage:((E=e==null?void 0:e.result)==null?void 0:E.profileImage)||""});R.useEffect(()=>{e&&a({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 l=_=>{a({...s,[_.target.name]:_.target.value})},u=()=>{a({...s,profileImage:""})},c=_=>{_.preventDefault(),i(Go(s)),o("/login")};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:c,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:s.title,onChange:l,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:s.firstName,onChange:l})]})}),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:s.middleName,onChange:l})]})}),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:s.lastName,onChange:l})]})}),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:s.email,onChange:l,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:s.aboutme,onChange:l})]})}),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:s.city,onChange:l,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:s.state,onChange:l,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:s.county,onChange:l,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:s.zip,onChange:l,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Du,{type:"file",multiple:!1,onDone:({base64:_})=>a({...s,profileImage:_})})})]}),s.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:s.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:u,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"})})}),n&&r.jsx("p",{children:n})]})})},IN=()=>{const[e,t]=R.useState("dashboard"),{user:n}=tt(o=>o.auth),i=()=>{switch(e){case"Userdetails":return r.jsx(AN,{});case"addProperty":return r.jsx(ON,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(TN,{})]});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(Ae,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"d-flex flex-row",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||ns,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),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.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"User Profile"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Add Property"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Active Properties"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Closed Properties"})]})]})]})}),r.jsx("div",{className:"col-md-9",children:r.jsxs("div",{className:"card card2 p-1",children:[r.jsx("br",{}),r.jsxs("span",{children:["Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(ge,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",target:"_blank",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),r.jsx("br",{}),i()]})})]}),r.jsx(He,{})]})};var Hh={exports:{}},RN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",DN=RN,FN=DN;function Yh(){}function Kh(){}Kh.resetWarningCache=Yh;var LN=function(){function e(i,o,s,a,l,u){if(u!==FN){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:Kh,resetWarningCache:Yh};return n.PropTypes=n,n};Hh.exports=LN();var MN=Hh.exports;const BN=Oc(MN),zN=()=>{const[e,t]=R.useState(3),n=Vr();return R.useEffect(()=>{const i=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(i)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},rs=({children:e})=>{const{user:t}=tt(n=>({...n.auth}));return t?e:r.jsx(zN,{})};rs.propTypes={children:BN.node.isRequired};const WN=()=>{const e=Pt(),{id:t,token:n}=Hr();return R.useEffect(()=>{e(Jo({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(ge,{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(He,{})]})},$N=()=>{const[e,t]=R.useState(""),[n,i]=R.useState(""),o="http://67.225.129.127:3002/estateslending",s=async()=>{try{const a=await me.post(`${o}/users/forgotpassword`,{email:e});i(a.data.message)}catch(a){console.error("Forgot Password Error:",a),i(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:s,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(ge,{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(He,{})]})]})},UN=()=>{const{userId:e,token:t}=Hr(),[n,i]=R.useState(""),[o,s]=R.useState(""),[a,l]=R.useState(""),u="http://67.225.129.127:3002/estateslending",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),ae.error("Password not entered");return}const d=await me.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){l("Passwords do not match."),ae.error("Passwords do not match.");return}else l("Password reset successfull"),ae.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return R.useEffect(()=>{ae.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:d=>i(d.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:d=>s(d.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(He,{})]})},qN=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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 world's most trusted realtor investment and borrowers portal."]}),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(He,{})]}),VN=()=>{const{id:e}=Hr(),t=Pt(),{selectedProperty:n,status:i,error:o}=tt(l=>l.property),[s,a]=R.useState(!0);return R.useEffect(()=>{e&&(t(ki(e)),a(!1))},[e,t]),i==="loading"?r.jsx("p",{children:"Loading property details..."}):i==="failed"?r.jsxs("p",{children:["Error loading property: ",o]}):r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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..."}):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.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||Dt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):r.jsx("img",{src:Dt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),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("p",{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.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),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:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white",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 details found."})}),r.jsx(He,{})]})},HN=()=>{const[e,t]=R.useState([]),[n,i]=R.useState(0),[o,s]=R.useState(0),[a]=R.useState(10),[l,u]=R.useState(""),[c,d]=R.useState(!1),[p,x]=R.useState(!1),b=async()=>{d(!0),x(!1);try{const h=await me.get("http://67.225.129.127:3002/estateslending/mysql/searchmysql",{params:{limit:a,offset:o*a,search:l},headers:{"Cache-Control":"no-cache"}});t(h.data.data),i(h.data.totalRecords),l.trim()&&x(!0)}catch(h){console.log("Error fetching data:",h)}finally{d(!1)}},g=h=>{u(h.target.value),h.target.value.trim()===""&&(s(0),t([]),i(0),x(!1),b())},N=h=>{h.key==="Enter"&&(h.preventDefault(),b())};R.useEffect(()=>{b()},[l,o]);const C=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:g,onKeyDown:N})})})})})})})})})}),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((h,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ge,{to:`/properties/${h.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:h.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"}}),h.city,", ",h.county,",",h.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",h.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:h.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:h.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",h.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:()=>s(o-1),disabled:o===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",o+1," of ",C," "]}),r.jsx("button",{onClick:()=>s(o+1),disabled:o+1>=C||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(He,{})]})},YN=()=>r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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(He,{})]}),KN=()=>{const{house_id:e}=Hr();console.log("house_id",e);const[t,n]=R.useState(null),[i,o]=R.useState(!0);return R.useEffect(()=>{(async()=>{try{const a=await me.get(`http://67.225.129.127:3002/estateslending/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(Ae,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:i?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:Dt,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(He,{})]})},GN=()=>{const{id:e}=Hr(),t=Pt(),[n,i]=R.useState("propertydetails"),o=()=>{n==="propertydetails"&&i("Images"),n==="Images"&&i("Accounting")},s=()=>{n==="Images"&&i("propertydetails"),n==="Accounting"&&i("Images")},{selectedProperty:a}=tt(S=>S.property),[l,u]=R.useState({address:"",city:"",state:"",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"}),c=[1,2,3,4,5,6,7,8,9,10];R.useEffect(()=>{t(ki(e))},[t,e]),R.useEffect(()=>{a&&u({address:a.address||"",city:a.city||"",state:a.state||"",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})},[a]);const d=S=>{u({...l,[S.target.name]:S.target.value})},p=(S,k)=>{const{name:f,value:j}=S.target,w=[...l.propertyTaxInfo],D={...w[k]};D[f]=j,w[k]=D,u({...l,propertyTaxInfo:w})},x=S=>{S.preventDefault();const k=W(),f=F(),j=U(),w=B(),D=$(),q=ne(),Y=Ot(),se=Bt(),fo=Gr(),wa=In(),Sa=Jr(),ka=tn(),Ea=tn(),Pa=Zr(),_a=uo(),Oa=Dn(),Ta=zt(),Aa=or(),Ia=ti(),Ra={...l,totalPurchaseCosts:k.toFixed(2),totalcredits:f.toFixed(2),totalPurchaseCostsaftercredits:j.toFixed(2),totalcashAdjustments:w.toFixed(2),totalcashrequiredonsettlement:D.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:Y.toFixed(2),totalrenovationCost:se.toFixed(2),totalRenovationsandHoldingCost:fo.toFixed(2),totalCoststoBuyAtoB:wa.toFixed(2),totalcostPaidOutofClosing:Sa.toFixed(2),totalCosttoSellBtoC:ka.toFixed(2),grossproceedsperHUD:Ea.toFixed(2),totaladjustments:Pa.toFixed(2),fundsavailablefordistribution:_a.toFixed(2),totalincomestatement:Oa.toFixed(2),netBtoCsalevalue:Ta.toFixed(2),netprofitbeforefinancingcosts:Aa.toFixed(2),netprofit:Ia.toFixed(2)};t(es({id:e,propertyData:Ra}))},b=()=>{u({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},g=S=>{const k=l.propertyTaxInfo.filter((f,j)=>j!==S);u({...l,propertyTaxInfo:k})},N=(S,k)=>{const f=[...l.images];f[k]={...f[k],file:S.base64},u({...l,images:f})},C=()=>{u({...l,images:[...l.images,{title:"",file:""}]})},h=S=>{const k=l.images.filter((f,j)=>j!==S);u({...l,images:k})},v=(S,k)=>{const f=[...l.images];f[S]={...f[S],title:k.target.value},u({...l,images:f})};R.useEffect(()=>{E(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[m,y]=R.useState("0 days"),E=(S,k)=>{if(S&&k){const f=new Date(S),j=new Date(k),w=Math.abs(j-f),D=Math.ceil(w/(1e3*60*60*24));y(`${D} days`)}else y("0 days")},_=()=>{u(S=>({...S,costPaidAtoB:[...S.costPaidAtoB,{title:"",price:""}]}))},O=S=>{const k=l.costPaidAtoB.filter((f,j)=>j!==S);u(f=>({...f,costPaidAtoB:k}))},P=(S,k,f)=>{const j=[...l.costPaidAtoB];j[S][k]=f,u(w=>({...w,costPaidAtoB:j}))},M=(S,k)=>{let f=S.target.value;if(f=f.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidAtoB.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,costPaidAtoB:w})}else{const w=l.costPaidAtoB.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,costPaidAtoB:w})}},W=()=>{const S=l.costPaidAtoB.reduce((f,j)=>{const w=parseFloat(j.price)||0;return f+w},0),k=parseFloat(l.purchaseCost)||0;return S+k},H=()=>{u(S=>({...S,credits:[...S.credits,{title:"",price:""}]}))},te=S=>{const k=l.credits.filter((f,j)=>j!==S);u(f=>({...f,credits:k}))},X=(S,k,f)=>{const j=[...l.credits];j[S][k]=f,u(w=>({...w,credits:j}))},Z=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.credits.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,credits:w})}else{const w=l.credits.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,credits:w})}},F=()=>l.credits.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),U=()=>{const S=l.costPaidAtoB.reduce((j,w)=>{const D=parseFloat(w.price)||0;return j+D},0),k=l.credits.reduce((j,w)=>{const D=parseFloat(w.price)||0;return j+D},0),f=parseFloat(l.purchaseCost)||0;return S+k+f},Q=()=>{u(S=>({...S,cashAdjustments:[...S.cashAdjustments,{title:"",price:""}]}))},A=S=>{const k=l.cashAdjustments.filter((f,j)=>j!==S);u(f=>({...f,cashAdjustments:k}))},T=(S,k,f)=>{const j=[...l.cashAdjustments];j[S][k]=f,u(w=>({...w,cashAdjustments:j}))},L=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.cashAdjustments.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,cashAdjustments:w})}else{const w=l.cashAdjustments.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,cashAdjustments:w})}},B=()=>l.cashAdjustments.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),$=()=>{const S=B(),k=F(),f=W();return S+k+f},K=()=>{u(S=>({...S,incidentalCost:[...S.incidentalCost,{title:"",price:""}]}))},G=S=>{const k=l.incidentalCost.filter((f,j)=>j!==S);u(f=>({...f,incidentalCost:k}))},ee=(S,k,f)=>{const j=[...l.incidentalCost];j[S][k]=f,u(w=>({...w,incidentalCost:j}))},re=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incidentalCost.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,incidentalCost:w})}else{const w=l.incidentalCost.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,incidentalCost:w})}},ne=()=>l.incidentalCost.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),oe=()=>{u(S=>({...S,carryCosts:[...S.carryCosts,{title:"",price:""}]}))},ce=S=>{const k=l.carryCosts.filter((f,j)=>j!==S);u(f=>({...f,carryCosts:k}))},de=(S,k,f)=>{const j=[...l.carryCosts];j[S][k]=f,u(w=>({...w,carryCosts:j}))},ye=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.carryCosts.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,carryCosts:w})}else{const w=l.carryCosts.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,carryCosts:w})}},Ot=()=>l.carryCosts.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),ir=()=>{u(S=>({...S,renovationCost:[...S.renovationCost,{title:"",price:""}]}))},va=S=>{const k=l.renovationCost.filter((f,j)=>j!==S);u(f=>({...f,renovationCost:k}))},Yr=(S,k,f)=>{const j=[...l.renovationCost];j[S][k]=f,u(w=>({...w,renovationCost:j}))},Kr=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.renovationCost.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,renovationCost:w})}else{const w=l.renovationCost.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,renovationCost:w})}},Bt=()=>l.renovationCost.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),Gr=()=>{const S=ne(),k=Ot(),f=Bt();return S+k+f},In=()=>{const S=Gr(),k=$();return S+k},ga=()=>{u(S=>({...S,costPaidOutofClosing:[...S.costPaidOutofClosing,{title:"",price:""}]}))},xa=S=>{const k=l.costPaidOutofClosing.filter((f,j)=>j!==S);u(f=>({...f,costPaidOutofClosing:k}))},Qr=(S,k,f)=>{const j=[...l.costPaidOutofClosing];j[S][k]=f,u(w=>({...w,costPaidOutofClosing:j}))},en=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.costPaidOutofClosing.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,costPaidOutofClosing:w})}else{const w=l.costPaidOutofClosing.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,costPaidOutofClosing:w})}},Jr=()=>l.costPaidOutofClosing.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),tn=()=>{const S=l.sellingPriceBtoC,k=Jr();return S-k},ya=()=>{u(S=>({...S,adjustments:[...S.adjustments,{title:"",price:""}]}))},ja=S=>{const k=l.adjustments.filter((f,j)=>j!==S);u(f=>({...f,adjustments:k}))},Xr=(S,k,f)=>{const j=[...l.adjustments];j[S][k]=f,u(w=>({...w,adjustments:j}))},co=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.adjustments.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,adjustments:w})}else{const w=l.adjustments.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,adjustments:w})}},Zr=()=>l.adjustments.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),uo=()=>{const S=tn(),k=Zr();return S+k},Na=()=>{u(S=>({...S,incomestatement:[...S.incomestatement,{title:"",price:""}]}))},Ca=S=>{const k=l.incomestatement.filter((f,j)=>j!==S);u(f=>({...f,incomestatement:k}))},ei=(S,k,f)=>{const j=[...l.incomestatement];j[S][k]=f,u(w=>({...w,incomestatement:j}))},Rn=(S,k)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const w=l.incomestatement.map((D,q)=>q===k?{...D,price:f,isInvalid:!1}:D);u({...l,incomestatement:w})}else{const w=l.incomestatement.map((D,q)=>q===k?{...D,isInvalid:!0}:D);u({...l,incomestatement:w})}},Dn=()=>l.incomestatement.reduce((S,k)=>{const f=parseFloat(k.price);return S+(isNaN(f)?0:f)},0),zt=()=>{const S=Dn(),k=tn();return S+k},or=()=>{const S=isNaN(parseFloat(zt()))?0:parseFloat(zt()),k=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),f=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),j=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),w=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),D=isNaN(parseFloat(In()))?0:parseFloat(In());return S+k+f+j+w-D},ti=()=>{const S=or(),k=l.FinancingCostClosingCost;return S-k},ba=()=>ti();return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",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",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:()=>i("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>i("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>i("Accounting"),role:"tab",children:"Accounting"})})]}),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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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:d,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,k)=>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,k),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,k),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,k),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,k),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:()=>g(k),style:{height:"25px",width:"35px"},children:"X"})]})})]},k)),r.jsx("button",{className:"btn btn-secondary",onClick:b,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,k)=>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(k,f)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Du,{multiple:!1,onDone:f=>N(f,k)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>h(k),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"}})})]},k)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:C,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:d,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¢er=${l.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: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 k=S.target.value;u({...l,closeDateAtoB:k}),E(k,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 k=S.target.value;u({...l,closeDateBtoC:k}),E(l.closeDateAtoB,k)},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:k=>{const f=parseInt(k.target.value,10);u({...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:`$ ${ba().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:m,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 k=S.target.value.replace(/[^\d.]/g,"");const f=/^\d*\.?\d*$/.test(k);u({...l,purchaseCost:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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,k)=>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(k,"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,k),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(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:_,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:`$ ${W().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,k)=>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=>X(k,"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,k),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(k),style:{marginLeft:"5px"},children:"x"})})]},k)),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:F(),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,k)=>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=>T(k,"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,k),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(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Q,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:$(),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,k)=>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(k,"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,k),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:()=>G(k),style:{marginLeft:"5px"},children:"x"})})]},k)),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,k)=>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(k,"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=>ye(f,k),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:()=>ce(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:oe,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:Ot(),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,k)=>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=>Yr(k,"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=>Kr(f,k),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:()=>va(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ir,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:Bt(),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:Gr(),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:In(),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 k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,sellingPriceBtoC:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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,k)=>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=>Qr(k,"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=>en(f,k),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:()=>xa(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ga,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:Jr(),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:tn(),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:tn(),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,k)=>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=>Xr(k,"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=>co(f,k),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:()=>ja(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ya,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:Zr(),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:uo(),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,k)=>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=>ei(k,"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=>Rn(f,k),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:()=>Ca(k),style:{marginLeft:"5px"},children:"x"})})]},k)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Na,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:Dn(),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:zt(),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:In(),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 k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,fundspriortoclosing:k,isfundspriortoclosingInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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: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:"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 k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,shorttermrental:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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 k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,OtherIncome:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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 k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,InsuranceClaim:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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 k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,LongTermRental:k,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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:or(),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 k=S.target.value,f=/^\d*\.?\d*$/.test(k);u({...l,FinancingCostClosingCost:k,isFinancingCostClosingCostInvalid:!f})},onKeyPress:S=>{const k=S.charCode;(k<48||k>57)&&k!==46&&(S.preventDefault(),u({...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:ti(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),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:x,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})]})},QN=()=>{const e=Pt(),{properties:t,loading:n,totalPages:i,currentPage:o}=tt(N=>N.property),[s,a]=R.useState(""),[l,u]=R.useState([]),[c,d]=R.useState(1),p=10;R.useEffect(()=>{e(Ei({page:c,limit:p,keyword:s}))},[e,c,s]),R.useEffect(()=>{s.trim()?u(t.filter(N=>N.address.toLowerCase().includes(s.toLowerCase()))):u(t)},[s,t]);const x=N=>{a(N.target.value)},b=N=>{N.preventDefault()},g=N=>{d(N),e(Ei({page:N,limit:p,keyword:s}))};return r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),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:b,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:s,onChange:x,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(N=>r.jsxs("tr",{children:[r.jsx("td",{children:N.images&&N.images[0]?r.jsx("img",{src:N.images[0].file||Dt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:Dt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(ge,{to:`/property/${N.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:N.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"}}),N.city,", ",N.county,","," ",N.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",N.propertyId]})]})]})}),r.jsx("td",{children:N.totallivingsqft}),r.jsx("td",{children:N.yearBuild}),r.jsx("td",{children:N.costpersqft})]},N.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:()=>g(o-1),children:"Previous"})}),Array.from({length:i},(N,C)=>r.jsx("li",{className:`page-item ${o===C+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>g(C+1),children:C+1})},C+1)),r.jsx("li",{className:`page-item ${o===i?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>g(o+1),children:"Next"})})]})})]}),r.jsx(He,{})]})},JN=()=>{const{userId:e}=Hr(),t=Pt(),{user:n,loading:i}=tt(o=>o.user);return console.log("user",n),R.useEffect(()=>{e&&t(Qo(e))},[e,t]),i?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Ae,{}),r.jsx("br",{}),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",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),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:Dt,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:Dt,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:Dt,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:Dt,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.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),r.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:r.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),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:ns,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:ns,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:ns,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},XN=()=>r.jsxs(A0,{children:[r.jsx(Q0,{}),r.jsxs(w0,{children:[r.jsx(_e,{path:"/",element:r.jsx(X0,{})}),r.jsx(_e,{path:"/about",element:r.jsx(Z0,{})}),r.jsx(_e,{path:"/services",element:r.jsx(YN,{})}),r.jsx(_e,{path:"/contact",element:r.jsx(eN,{})}),r.jsx(_e,{path:"/register",element:r.jsx(kN,{})}),r.jsx(_e,{path:"/registrationsuccess",element:r.jsx(rs,{children:r.jsx(qN,{})})}),r.jsx(_e,{path:"/login",element:r.jsx(PN,{})}),r.jsx(_e,{path:"/dashboard",element:r.jsx(rs,{children:r.jsx(IN,{})})}),r.jsx(_e,{path:"/users/:id/verify/:token",element:r.jsx(WN,{})}),r.jsx(_e,{path:"/forgotpassword",element:r.jsx($N,{})}),r.jsx(_e,{path:"/users/resetpassword/:userId/:token",element:r.jsx(UN,{})}),r.jsx(_e,{path:"/property/:id",element:r.jsx(VN,{})}),r.jsx(_e,{path:"/properties/:house_id",element:r.jsx(KN,{})}),r.jsx(_e,{path:"/searchmyproperties",element:r.jsx(HN,{})}),r.jsx(_e,{path:"/searchproperties",element:r.jsx(QN,{})}),r.jsx(_e,{path:"/editproperty/:id",element:r.jsx(rs,{children:r.jsx(GN,{})})}),r.jsx(_e,{path:"/profile/:userId",element:r.jsx(JN,{})})]})]});Mm(document.getElementById("root")).render(r.jsx(R.StrictMode,{children:r.jsx(Xx,{store:L1,children:r.jsx(XN,{})})}));